A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Cantor's Diagonalization Argument

College Depth 75 in the knowledge graph ☐ I know this ☆ Set as goal
629topics build on this
356prerequisites beneath it
See this on the map →
Cardinality and CountabilityProof by Contradiction→→Cantor's TheoremContinuum Hypothesis+5 more
diagonalization uncountability Cantor real-numbers power-set

Core Idea

Cantor's diagonalization argument proves that the real numbers in [0,1] are uncountable: assume for contradiction that they can be listed r₁, r₂, r₃, …, then construct a new real number d whose nth decimal digit differs from the nth digit of rₙ. This number d is in [0,1] but differs from every entry on the list, contradicting the assumption. The same argument shows that for any set A, the power set P(A) has strictly greater cardinality than A, implying there is no largest infinity.

How It's Best Learned

Work through the argument step by step with a concrete table of decimal expansions. Explicitly construct d and verify it is not on the list. Then discuss implications: there are infinitely many levels of infinity. Contrast with the countability of ℚ to emphasize how different ℝ is.

Common Misconceptions

Explainer

From cardinality and countability, you know that two sets have the same cardinality when there exists a bijection between them, and that a set is countable when it can be placed in bijection with the natural numbers ℕ — equivalently, when its elements can be listed in a sequence r₁, r₂, r₃, …. Cantor's diagonalization argument proves that the real numbers in [0,1] cannot be listed this way. The proof proceeds by contradiction and by construction: assume you *have* a complete list, then construct a number that isn't on it.

Here is the argument made concrete. Suppose, for contradiction, that [0,1] is countable and we have a list: r₁ = 0.a₁₁a₁₂a₁₃…, r₂ = 0.a₂₁a₂₂a₂₃…, r₃ = 0.a₃₁a₃₂a₃₃…, and so on, where aᵢⱼ denotes the j-th decimal digit of the i-th number. Now construct a new real number d by reading down the diagonal — the entries a₁₁, a₂₂, a₃₃, … — and changing each digit: if aₙₙ = 1, set the n-th digit of d to 2; otherwise set it to 1. The resulting d is a real number in [0,1]. But d ≠ r₁ because they differ in the 1st digit. And d ≠ r₂ because they differ in the 2nd digit. In general, d ≠ rₙ because they differ in the n-th digit. So d is not on the list — contradicting the assumption that the list was complete.

The proof-by-contradiction structure is the same one you've practiced before. What makes diagonalization special is the *mechanism* of construction: instead of guessing a missing element, you systematically ensure the new element differs from every listed element at a specific, designated position. The diagonal position aₙₙ is the clever choice — it's the one position where the construction can target rₙ without interfering with the distinctions already made from r₁, …, rₙ₋₁. Using only digits 1 and 2 sidesteps the decimal ambiguity (0.999… = 1.000…) that would otherwise undermine the argument.

The same idea generalizes far beyond real numbers. For *any* set A, define a function f: A → {0,1}^A (the set of all binary-valued functions on A). Cantor's theorem says no such f can be surjective: given any f, define g(a) = 1 − f(a)(a) — a function that differs from f(a) on the input a, for every a. This is diagonalization in its abstract form, and it proves that P(A) — the power set of A — has strictly larger cardinality than A itself. Since you can apply this to ℕ, to P(ℕ), to P(P(ℕ)), and so on indefinitely, there is no largest infinity. The diagonalization argument is the engine behind the entire hierarchy of infinite cardinalities.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Set Operations: Union, Intersection, and Complement → Cartesian Products and Relations → Partial Orders → Binary Relations → Equivalence Relations → Injective, Surjective, and Bijective Functions → Cardinality and Countability → Cantor's Diagonalization Argument

Longest path: 76 steps · 356 total prerequisite topics

Prerequisites (2)

Leads To (7)