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 TheoremThe 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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesIntroduction to Graph TheoryPropositional Logic FoundationsLogical EquivalencesBoolean AlgebraIntroduction to Propositional LogicIntroduction to Predicate Logic (First-Order Logic)First-Order Logic SyntaxZFC Axioms OverviewAxiom Schema of SeparationAxiom Schema of ReplacementVon Neumann OrdinalsHereditarily Finite SetsRecursive Definitions on Finite SetsWell-Founded Relations and Transfinite RecursionThe Axiom of Choice and Equivalent FormulationsAxiom of ChoiceWell-Ordering TheoremInfinite Cardinal NumbersCantor's TheoremUncountability and the Diagonal Argument

Longest path: 85 steps · 428 total prerequisite topics

Prerequisites (2)

Leads To (1)