Maths WorkshopMaths problems with full solutions
Exercise 820Logic, sets and proofs › Countability and cardinalityL1Added 3 Nov 2026

Cantor's diagonal argument

#diagonal argument#Cantor#uncountability

Statement

Explain the structure of Cantor's diagonal argument.

Hint

Given any enumeration, construct an element not in the list by differing in the nn-th position.

Show solutionHide solution

Solution

Setup. Suppose AA is countable, enumerated a1,a2,…a_1,a_2,\ldots; each ana_n has a "representation" with digits.

Diagonal. Build bb whose nn-th digit differs from the nn-th digit of ana_n.

Contradiction. bb is a valid element but not in the enumeration, contradicting countability.

Conclusion. Cantor's diagonal argument proves uncountability.