foundations
Sets and Set Operations
Overview
A set is a collection of distinct objects, called its elements or members. The objects can be anything — numbers, points, letters, even other sets. Sets are the foundational language of modern mathematics: nearly every mathematical object is ultimately built from sets. What matters about a set is only which elements it contains, not their order or repetition, so {1, 2, 3} and {3, 2, 1, 1} denote the same set.
Intuition
Think of a set as a box that either contains a given thing or doesn't — no counting, no ordering, just membership. Two boxes are the same set exactly when they hold the same things. From this single idea — membership — you can build unions (everything in either box), intersections (things in both), and complements (everything outside the box), and those three operations behave like a clean algebra.
Formal Definition
A set A is determined entirely by its members: x ∈ A means x is an element of A. Two sets are equal iff they have exactly the same elements (the axiom of extensionality). Core operations: union A ∪ B, intersection A ∩ B, complement Aᶜ, and subset A ⊆ B.
Notation
| Notation | Meaning |
|---|---|
| Is an element of | |
| Is a subset of | |
| Union | |
| Intersection | |
| The empty set — the set with no elements | |
| Cardinality — the number of elements of A |
Properties
Commutativity of union
Commutativity of intersection
Associativity of union
Distributivity
De Morgan's law
Applications
Worked Examples
Union collects all elements from either set (no repeats); intersection keeps only shared ones.
Answer: A ∪ B = {1,2,3,4,5}; A ∩ B = {3}
Practice Problems
If A = {2,4,6} and B = {1,2,3}, what is A ∩ B?
How many elements are in the power set of a 4-element set?
State De Morgan's law for (A ∩ B)ᶜ.
Common Mistakes
Thinking order or repetition matters in a set.
A set is defined only by membership: {1,2,2,3} = {1,2,3} = {3,1,2}. Use a sequence or multiset if order/repetition matters.
Confusing ∈ (element of) with ⊆ (subset of).
1 ∈ {1,2} (1 is a member), but {1} ⊆ {1,2} ({1} is a subset). '1 ⊆ {1,2}' and '{1} ∈ {1,2}' are both wrong.
Quiz
Flashcards
Summary
- A set is a collection of distinct elements, determined solely by membership.
- Core operations: union (∪), intersection (∩), complement (ᶜ), subset (⊆).
- Set algebra obeys commutative, associative, distributive, and De Morgan laws.
- A set of n elements has 2ⁿ subsets (its power set).
- Sets are the foundational language for functions, relations, probability, and logic.
References
- BookHalmos, P. Naive Set Theory.
Mathematics