Cantor's Theorem
Statement
For any set , the cardinality of is strictly less than the cardinality of its power set :
In cardinal arithmetic: there is no surjection from onto the set of all subsets of .
Visualization
The diagonal argument for . Suppose is any function. Build a diagonal set .
n f(n) n ∈ f(n)? D contains n?
--- ----------- --------- -------------
0 {0, 2, 4, …} yes no
1 {3, 5, 7, …} no YES
2 {2, 4, 6, …} yes no
3 {0, 1, 3, 5} yes no
4 {1, 4, 9, …} yes no
5 {0, 2, 6, …} no YES
…
. For every , because they differ at position . So is not surjective. Since was arbitrary, no surjection exists.
Proof Sketch
- Suppose for contradiction that is surjective.
- Define the diagonal set .
- Since is surjective, there exists with .
- Ask: is ? If yes, then , contradiction. If no, then , contradiction.
- Therefore no such surjection can exist, so .
Connections
Cantor's Theorem is the key to the Halting ProblemHalting Problem UndecidableThere is no computable function that decides whether an arbitrary program halts on a given input.Read more → via a related diagonalization, and it implies there is no universal set (Russell's paradox). Compare the diagonal technique with the Pigeonhole PrinciplePigeonhole PrincipleIf n+1 objects are placed into n boxes, some box contains at least two objectsRead more →, which gives a bound in the finite case.
Lean4 Proof
import Mathlib.SetTheory.Cardinal.Order
/-- Cantor's Theorem: every cardinal is strictly less than 2 to its own power.
Mathlib: `Cardinal.cantor`. -/
theorem cantor_theorem (a : Cardinal.{u}) : a < 2 ^ a :=
Cardinal.cantor aReferenced by
- Well-Ordering TheoremSet Theory and Logic
- Axiom of ChoiceSet Theory and Logic
- Schröder–Bernstein TheoremSet Theory and Logic
- Halting Problem UndecidableSet Theory and Logic
- Halting Problem UndecidableSet Theory and Logic