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

Uncountability and the Diagonal Argument

College Depth 84 in the knowledge graph ☐ I know this ☆ Set as goal
102topics build on this
428prerequisites beneath it
See this on the map →
Countable Sets and EnumerationCantor's Theorem→→The Cantor Set: An Uncountable Nowhere Dense Example
uncountability diagonal-argument cardinality reals

Core Idea

The real numbers ℝ are uncountable, meaning no bijection with ℕ exists. Cantor's diagonal argument proves this: assume an enumeration of reals exists, then construct a new real (via the diagonal) that contradicts the enumeration. This technique generalizes to show the power set P(X) is always larger than X.

How It's Best Learned

Work through the decimal-expansion version: list assumed sequence of reals as infinite decimals, modify the diagonal to create a real not on the list. Verify this works even with overcounting concerns (address the 0.999... = 1 subtlety).

Common Misconceptions

Explainer

You already know what it means for a set to be countable: there exists a bijection between it and the natural numbers ℕ. This means you can list every element in an infinite sequence — first, second, third, and so on — hitting every element eventually. The integers are countable. The rationals are countable (you learned the zig-zag enumeration). So is it possible that every infinite set is countable? Cantor's diagonal argument proves the answer is no — the real numbers ℝ cannot be listed, no matter how clever the listing.

The proof works by contradiction. Suppose someone claims they have listed every real number between 0 and 1: the first real is r₁ = 0.d₁₁d₁₂d₁₃..., the second is r₂ = 0.d₂₁d₂₂d₂₃..., and so on indefinitely. Now construct a new real number x by looking at the diagonal entries — the nth digit of rₙ — and changing each one. If the nth diagonal digit is 5, set the nth digit of x to 6; otherwise set it to 5. The resulting x = 0.x₁x₂x₃... differs from r₁ in the first decimal place, differs from r₂ in the second decimal place, and differs from every rₙ in the nth decimal place. So x is not on the list. But x is a real number between 0 and 1. This contradicts the assumption that the list was complete — so no such list can exist.

The construction is self-referential in a precise and deliberate way. It uses the assumed enumeration against itself, building a counterexample that is guaranteed to escape every entry in the list. Notice this has nothing to do with the specific reals on the supposed list — the diagonal construction works against any list, which is what makes it so powerful. The argument generalizes: given any set X, you can use the same diagonal idea to show that the power set P(X) — the set of all subsets of X — cannot be put in bijection with X. This is Cantor's theorem, your soft prerequisite. Diagonal arguments appear throughout logic and computability theory as a standard technique for proving impossibility results.

Two subtleties are worth addressing. First, the decimal representation of reals is not unique — 0.999... = 1.000... — so you need to choose digits (like 5 and 6) that avoid the boundary cases. This prevents the constructed x from being the other representation of some rₙ. Second, the diagonal argument shows no surjection from ℕ to ℝ exists, which establishes that ℝ is not countable. Showing that |ℕ| < |ℝ| in the strict cardinality sense additionally requires the Cantor-Bernstein-Schroeder theorem to confirm that ℕ and ℝ cannot be in bijection at all — the proof gives you non-surjectivity, and you combine it with the obvious injection ℕ ↪ ℝ to conclude ℝ is strictly larger.

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 → Boolean Algebra → Introduction to Propositional Logic → Introduction to Predicate Logic (First-Order Logic) → First-Order Logic Syntax → ZFC Axioms Overview → Axiom Schema of Separation → Axiom Schema of Replacement → Von Neumann Ordinals → Hereditarily Finite Sets → Recursive Definitions on Finite Sets → Well-Founded Relations and Transfinite Recursion → The Axiom of Choice and Equivalent Formulations → Axiom of Choice → Well-Ordering Theorem → Infinite Cardinal Numbers → Cantor's Theorem → Uncountability and the Diagonal Argument

Longest path: 85 steps · 428 total prerequisite topics

Prerequisites (2)

Leads To (1)