Collections, Taken Seriously
A set is a collection of distinct objects, its members. Everything follows from two decisions: a set is fixed entirely by which objects belong to it, the axiom of extensionality, and it has no order and no repetition. So , and are all the same set.
Sets are specified by listing, , or by a condition, . The empty set has no members and is unique, since any two memberless sets have the same members and are therefore identical.
Two relations are constantly confused. Membership holds between an object and a set. Inclusion holds between two sets, when every member of is also a member of . They are different relations, and while .
The operations combine sets:
| Operation | Notation | Members |
|---|---|---|
| Union | in , or in , or both | |
| Intersection | in both | |
| Difference | in but not | |
| Complement | in the universe but not |
The parallel with logic is exact and not a coincidence: union behaves like disjunction, intersection like conjunction, complement like negation. De Morgan's laws hold in both, in the same form.
Counting gives the inclusion-exclusion principle:
The subtraction is the whole content: adding the two sizes counts the overlap twice, so it must be removed once. For 30 students taking logic, 25 taking ethics and 10 taking both, the total is , not 55.
Common pitfall: confusing with . The empty set is a subset of every set — vacuously, since it has no member that could fail to belong — but it is a member only of sets that explicitly contain it. is true; is false.