Same size = a bijection exists. Counting without counting.
How do you know two finite sets have the same size without counting? You pair them up. If every left sock matches exactly one right sock with none left over, there are equally many — no counting required, just a bijection (last lesson: a perfect pairing, no collisions, no orphans).
Cantor's leap — and it is a genuine intellectual leap, the kind that separates genius from competence: make that the definition, and let it run on infinite sets. Two sets and have the same cardinality, written , exactly when there exists a bijection . That's it. No counting, just pairing. This single definition will show you that your intuition about infinity is completely, hilariously wrong, and by the end of this lesson you will love it for that. (And because bijections compose and invert — proven last lesson — "same cardinality" is an equivalence relation: reflexive via , symmetric via , transitive via . The relations lesson cashes its check.)
A set is countable if it's finite or has the same cardinality as — i.e. you can list it so every element appears exactly once. That list is the bijection . Hold onto "countable means listable." Everything turns on it.
Hilbert's Hotel: infinity breaks your intuition
David Hilbert ran a thought-hotel with rooms — one per natural number, all full. A new guest arrives. "No vacancy," says your intuition. Your intuition is about to get humiliated.
The manager announces: everyone move from room to room . Room empties; the new guest checks in. Every original guest still has a room. A full infinite hotel absorbed another guest. The map is an injection of into itself that misses one room — proof that an infinite set can biject with a proper subset of itself. No finite set can do that; it's the signature of infinity.
Push harder. and the even numbers have the same size. The pairing is a bijection : injective () and surjective (every even number is hit by ). "Half" of is the same size as . And ? Same size too — list it by zig-zagging: , hitting every integer exactly once. That list is a bijection . So . Infinite sets do not obey "the part is smaller than the whole." Throw that finite intuition in the incinerator and light it on fire — Hilbert's Hotel is what infinity actually looks like, and it is deeply, gloriously weird.
ℚ is countable: the zigzag through the grid
Surely the rationals are bigger than — they're dense, infinitely many crammed between any two integers, no gaps, suffocatingly close together. Your intuition is about to get humiliated again. is countable too, and the proof is one of the prettiest pictures in mathematics.
Arrange the positive rationals in an infinite grid: row , column holds .
Now walk the diagonals: ; then ; then ; and so on, sweeping each finite anti-diagonal before moving deeper. Skip any fraction already seen in lowest terms (, already counted). This single snaking path hits every positive rational exactly once — so it's a list, hence a bijection with . Tack on and the negatives by the -style zig-zag, and all of is countable. The density was a red herring; you can still line them up single file.
So far every infinite set we've met is the same size as . You might start to suspect all infinities are equal — that the universe is tidier than it looks. Cantor is about to detonate that suspicion with a single argument so clean it should make you angry at every math teacher who never showed it to you.
Cantor's diagonal argument: ℝ is uncountable
Theorem. The real numbers in cannot be listed. There is no bijection . is uncountable — strictly bigger than .
Proof (by contradiction — diagonalization). Suppose, for contradiction, that is countable. Then we can list every such real by its decimal expansion:
where is the -th digit of the -th number. By assumption this list contains every real in . Now I build a number that cannot be on it.
Walk down the diagonal — the digits — and construct a new number by the rule: make each digit differ from the diagonal, (Using only s and s dodges the duplicate-expansion loophole — has a unique expansion.)
Now ask: is anywhere on the list? Suppose for some . Then their -th digits must agree: . But we built to differ from — that's the whole point of the rule. Contradiction. So for every : differs from in digit , from in digit , from in digit , and so on forever. The diagonal is a perfect alibi — is a genuine real in that appears nowhere on the supposedly-complete list.
That contradicts "the list contains every real." So no such list exists: , and hence , is uncountable.
Sit with what just happened. We didn't fail to find a list — we proved that every conceivable list must miss something, by manufacturing its own counterexample from its diagonal. This is not a limitation of our imagination. This is a proof that no such list can exist, full stop, forever, for anyone. has strictly more elements than . There are at least two sizes of infinity. The smaller, , is named ; the size of is strictly bigger. This is what Cantor showed the world. This is what they called him a charlatan for. The bastards.
The punchline: infinitely many infinities
One more turn of the screw, because Cantor didn't stop. Remember the power set — all subsets of — and that for finite (the on/off-switch argument, way back in the membership lesson)?
Cantor's Theorem. For every set , . The power set is always strictly bigger.
The proof is diagonalization again, stripped to its bones. Suppose some were a bijection (so and were the same size). Build the "diagonal" set — the elements that aren't in the subset they're assigned to. Since is surjective, for some . Now ask the lethal question: is ? If , then by 's definition — contradiction. If , then , so by definition — contradiction. Either way, disaster. No such bijection exists, so .
Apply it forever: — an endless tower of ever-larger infinities, each strictly dwarfing the last. There is no biggest infinity. The "number" of sizes of infinity is itself unbounded. That fact is so insane I want you to just stare at it for a second before scrolling down.
You started this stratum learning that a set is a bag with no opinions. You're ending it holding a proof that infinity comes in infinitely many sizes, built entirely from bijections, diagonals, and the empty goddamn bag. That is the whole power of rigor: the unhinged is true, and you can prove it. The Federation of Boring Textbook Authors will tell you this is "too advanced." They are cowards. You did it. Now go finish the gauntlet — you've earned the kill.