Returns the number of elements in a set.Notes:
- not explicitly defined in the KIF 3.0 spec
(<=> (Cardinality ?Set)
(And (Set ?Set)
(Exists (@Elements)
(And (= ?Set (Setof @Elements))
(= ?Integer (Length (Listof @Elements)))))))
(=> (= (Cardinality ?Set) ?Integer)
(Exists (@Elements)
(And (= ?Set (Setof @Elements))
(= ?Integer (Length (Listof @Elements))))))
(=> (= (Cardinality ?Set) ?Integer) (Set ?Set))