A set is a bag, and that's almost the whole story
Forget every fancy thing you've heard. A set is a collection of objects, called its elements or members. That's it. The objects can be numbers, letters, other sets, wolves — the set doesn't care what they are, only which ones are inside. This is not a warm-up; this is the whole damn foundation.
A set has exactly three personality traits, and they're all about what it refuses to track:
- No order. and are the same set. A bag doesn't know which rock you dropped in first.
- No duplicates. is just . Either a thing is in the bag or it isn't; "in twice" is meaningless.
- No opinions. The only question a set will answer is: are you in me or not? That question has a symbol, and you'll write it ten thousand times before you die.
That symbol is . We write for " is an element of ", and for " is not". So is true and is true. Membership is the only primitive. Everything else in set theory gets defined out of . Everything. The whole fucking edifice. Remember that the way you remember your own name.
Two ways to name a bag
You can describe a set by roster notation — just list the elements between braces:
That's great until your set is infinite or huge. For that we use set-builder notation, which says "the set of all such that some condition holds":
Read the bar as "such that". The left side is the template (what shape the elements take); the right side is the filter (which ones survive). This is just the quantifier machinery from the Logic stratum wearing braces — literally means "the filter is true for ".
Here's the standard cast of infinite sets you'll see forever — tattoo them on the inside of your skull:
- — the natural numbers.
- — the integers.
- — the rationals, all fractions .
- — the reals, the whole continuous line.
- — the empty set, the bag with nothing in it. More on this bastard in a minute.
Subset: one bag fits inside another
Now the second relation, and it's the one that powers every proof in this stratum. We say is a subset of , written , when every element of is also an element of . Stated precisely — and this is the definition, carve it into the goddamn lab wall:
Stare at that. is an implication wearing a subset costume. That means every subset proof is just an implication proof: assume , do some honest work, conclude . We will beat that single move to death in the proofs lesson, so internalize it now. If I have to remind you of this in office hours — and I don't have office hours because this is a particle accelerator — I will be deeply disappointed in both of us.
Drag the regions around and watch what looks like — when 's circle sits entirely inside 's, every point of is a point of :
The empty set is a subset of everything
Here's a fact that feels like a scam until you see why it's airtight: for every set . The empty set is a subset of literally everything, including itself. Every student I've ever shown this to says "that can't be right." Every one of them was wrong.
Why? Run the definition. means . But there is no with — the bag is empty. So the hypothesis is never true, which means the implication is never tested, which means it never fails. An implication with a false hypothesis is vacuously true. The empty set passes the subset exam by never showing up to be questioned. That's not a trick; that's logic cashing a check it wrote in the quantifiers lesson.
A bag containing an empty bag is not empty
Now the classic head-on collision. Is the same as ? No. Absolutely not. And if you nod along too fast you'll get burned for the rest of your mathematical life.
is the empty bag — zero elements. is a bag with one element inside it, and that element happens to be the empty bag. One is empty; the other contains something. So is true, and has size one, not zero. Sets can contain sets. A set can contain other sets as elements, and this is exactly how mathematicians build numbers, pairs, functions, and the entire universe out of nothing but braces and the empty set.
The power set: every possible sub-bag
Last piece of equipment — and it's a hell of a piece. Given a set , its power set is the set of all subsets of . Not the elements — the subsets. For :
Four subsets. Notice and itself always make the list — and if you forget either of them on an exam, the ghost of Cantor will personally haunt you. Now the gorgeous part: if has elements, has elements. Here's the proof, and it's a thing of beauty. To build a subset of , walk down the elements one at a time and flip a switch for each: in or out. Two choices per element, elements, independent choices — so total subsets. Every subset is one setting of on/off switches. That is going to detonate again in the cardinality lesson, where it proves there are infinitely many sizes of infinity. File it away.