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

Uncountable Sets and Cantor's Diagonal Argument

College Depth 77 in the knowledge graph I know this Set as goal
48topics build on this
379prerequisites beneath it
See this on the map →
Countable Sets and EnumerabilityCantor Pairing Functions and Product CountabilityComparing Cardinalities: The Schröder-Bernstein TheoremThe Aleph and Beth Hierarchies of Infinities
uncountability diagonal-argument continuum

Core Idea

Cantor's diagonal argument proves no bijection exists between ℕ and ℝ: assuming a listing of all reals, construct a new real not on the list by flipping digits, creating a contradiction. Therefore ℝ is uncountable, disproving the notion that all infinities are equal and establishing a strict hierarchy of infinities.

How It's Best Learned

Work through the diagonal argument for ℕ and ℝ explicitly; then see how the same proof adapts to show 𝒫(ℕ) is uncountable.

Explainer

You already know, from your study of countable sets, that "infinite" does not mean "the same size." You can put ℕ and ℤ and ℚ into bijection with each other — each can be listed in a sequence that eventually reaches every element. The question is whether the same is true for ℝ. Cantor's diagonal argument answers: no. But the proof is not just a negative result — it is a constructive recipe for defeating any proposed listing.

Assume for contradiction that all real numbers in [0,1] can be listed: r₁, r₂, r₃, … . Write each as an infinite decimal expansion. Now focus on the diagonal of this infinite table — take the first decimal digit of r₁, the second decimal digit of r₂, the third digit of r₃, and so on. From this diagonal sequence, construct a new real number d by changing every digit (for instance, replace each digit d by 5 if it is not 5, and by 6 if it is 5). What is special about d? It differs from r₁ in position 1, from r₂ in position 2, and from rₙ in position n — so d cannot be anywhere on the list. But d is a well-defined real number in [0,1], which means the list was incomplete. This contradicts our assumption, so no such list exists: ℝ is uncountable.

The proof is often summarized as "there are more reals than naturals," but the deeper point is that the argument works by construction, not coincidence. Given any proposed listing, the diagonal procedure creates a real not on it. This means no listing strategy — however clever — can succeed. The argument also generalizes far beyond ℝ: for any set S, the same diagonal logic shows that 𝒫(S) (the power set, the set of all subsets) has strictly greater cardinality than S itself. There is no largest infinite set — the power set operation always produces a strictly larger one.

This establishes a hierarchy of infinities. The cardinality of ℕ is called ℵ₀ (aleph-null); the cardinality of ℝ is called the continuum, often written c or 2^ℵ₀, and it is strictly greater than ℵ₀. Whether there exists a cardinality strictly between ℵ₀ and c is the Continuum Hypothesis — a statement that turns out to be independent of the standard axioms of set theory (ZFC). You can neither prove nor disprove it from those axioms, which is itself one of the deepest results in twentieth-century logic. Cantor's diagonal argument is the tool that opens this entire world.

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 EquivalencesSet Operations: Union, Intersection, and ComplementCartesian Products and RelationsPartial OrdersBinary RelationsEquivalence RelationsInjective, Surjective, and Bijective FunctionsCardinality and CountabilityCountable Sets and EnumerabilityCantor Pairing Functions and Product CountabilityUncountable Sets and Cantor's Diagonal Argument

Longest path: 78 steps · 379 total prerequisite topics

Prerequisites (2)

Leads To (2)