Skip to content
The Lumenary
Grades 9–12FoundationsLesson available

Countability and Cantor's diagonal argument

Comparing infinite sets by bijections: ℕ, ℤ and ℚ are countable, every set is strictly smaller than its power set, and Cantor's diagonal argument shows that the real numbers are uncountable.

math.found.countability

Builds on

Required prerequisites, all the way down: 14

You will learn to

  • Show that ℤ and ℚ are countable by constructing explicit enumerations or bijections.
  • Define the power set P(A) and prove Cantor's theorem that no function A → P(A) is surjective.
  • Reproduce Cantor's diagonal argument that [0, 1) is uncountable, handling numbers with two decimal expansions.

Definition

  • Sets A and B have the same cardinality if there is a bijection A → B.
  • A set is countable if it is finite or has the same cardinality as ℕ; otherwise it is uncountable.
  • The power set P(A) is the set of all subsets of A.

Theorem

  • ℤ, ℚ and ℕ × ℕ are countable.
  • A countable union of countable sets is countable (the general statement uses the axiom of countable choice).
  • Cantor's theorem: for every set A there is no surjection from A onto P(A).
  • ℝ is uncountable; in fact ℝ and P(ℕ) have the same cardinality.

Common misconceptions

  • Thinking a proper subset of an infinite set must be smaller: ℕ and the even numbers have the same cardinality.
  • Objecting that the diagonal number 'can just be added to the list'; the argument shows that every list misses some number.
  • Forgetting that 0.4999… = 0.5, which a careful diagonal argument must avoid (for example by never changing a digit to 0 or 9).

Leads to

Optional discoveries

Learning pathways

Further reading

  • Paul R. Halmos, Naive Set Theory (1960)
  • Martin Aigner and Günter M. Ziegler, Proofs from THE BOOK (1998)