Every set is smaller than its power set — ∣X∣<∣P(X)∣. The diagonal-flipped set differs from every row of the list. (This is the theorem itself, not the Cantor "set" scene.)
∣X∣<∣P(X)∣
D={x∈X:x∈/f(x)}=f(y)∀y
Examples & Exercises
Prove Cantor's theorem completely: for every set X, ∣X∣<∣P(X)∣. Get ≤ from the injection x↦{x}, and rule out any surjection with the diagonal set D={x:x∈/f(x)}.
D={x∈X:x∈/f(x)},y∈D⟺y∈/f(y)
∣X∣≤∣P(X)∣ via x↦{x},∣X∣=∣P(X)∣(no surjection)
n=5: the flipped row 11111 sits below the 5 listed rows and differs from row i at column i — the finite version of the proof below.Show proof
∣X∣≤∣P(X)∣ comes from the injection ι:X→P(X), ι(x)={x}: if {x}={y} then x=y, so ι is injective. (For X=∅ the empty map is injective.)
Now we show no f:X→P(X) is surjective. Form the diagonal set D={x∈X:x∈/f(x)} (D⊆X, so D∈P(X)). If f were surjective, some y∈X would satisfy D=f(y).
For that y: y∈D is equivalent by definition to y∈/f(y), and since f(y)=D, this is equivalent to y∈/D. So y∈D⟺y∈/D — a contradiction. Hence no such y exists, D is not in the range of f, and f is not surjective.
If ∣X∣=∣P(X)∣ there would be a bijection, hence in particular a surjection — contradicting the above. So ∣X∣=∣P(X)∣, and together with ≤ from the first step, ∣X∣<∣P(X)∣. QED.
Prove (0,1) is uncountable, completely: assume an enumeration, write out decimal expansions, and build a diagonal number y whose n-th digit differs from the n-th digit of the n-th number while avoiding the digits 0 and 9 (to dodge the 0.0999…=0.1000… ambiguity).
y=0.e1e2⋯,en={45dnn=5dnn=5
en=dnn,en∈/{0,9},y∈(0,1),y=xn∀n
n=5: just as 5 rows cannot exhaust the 25=32 possible rows, no enumeration of (0,1) can catch the diagonal number.Show proof
Assume (0,1) is countable and fix an enumeration x1,x2,…. Write each xn in decimal as xn=0.dn1dn2⋯ (dnk∈{0,…,9}).
Define the diagonal number y=0.e1e2⋯ by en=4 if dnn=5, else en=5. Then en=dnn for every n, and en∈{4,5}, so the digits 0 and 9 never occur.
y∈(0,1): 0.444…≤y≤0.555…. If y=xn, then since the decimal expansion of y contains no 0 or 9, it cannot have an alternative expansion — two decimal expansions of the same number can differ only when one ends in infinite 0s and the other in infinite 9s — so the expansion of y is unique. Hence the n-th digit of xn must be en, contradicting en=dnn.
So y differs from every xn, contradicting the claim that the enumeration covers (0,1). Hence (0,1) is not countable: it is uncountable. QED.
For finite ∣X∣=n, prove ∣P(X)∣=2n>n completely by induction. Connect it to the picture above: only n of the 2n possible rows are listed in the n×n table.
P(X)=P(X′)⊔{A∪{x0}:A∈P(X′)},∣P(X)∣=2∣P(X′)∣
∣P(X)∣=2n>n(n≥0)
n=5: there are 25=32 possible 0/1 rows but only 5 are listed — the flipped row being off the list is inevitable.Show proof
We prove ∣P(X)∣=2n for ∣X∣=n by induction on n. Base n=0: X=∅ and P(∅)={∅}, so ∣P(X)∣=1=20.
Inductive step: let ∣X∣=n+1, pick x0∈X and put X′=X∖{x0}. Subsets of X either contain x0 or not, so P(X)=P(X′)⊔{A∪{x0}:A∈P(X′)} (disjoint union). Hence ∣P(X)∣=2∣P(X′)∣=2⋅2n=2n+1 by the induction hypothesis.
Also 2n>n (n≥0) by induction: 1>0 at n=0; if 2n>n then 2n+1=2⋅2n>2n≥n+1 (for n≥1; check n=0 directly). So ∣P(X)∣=2n>n=∣X∣.
Connection to the picture: subsets of X={0,…,n−1} correspond bijectively to the 2n binary rows. The n×n table lists only n of them, and since 2n>n some row is necessarily missing — flipping the diagonal explicitly constructs one. This is the finite version of Cantor's theorem.