← All animations

๐Ÿ”ข Cantor's Diagonal Argument

Counting numbers go on forever โ€” but so do the decimals between 0 and 1, and it turns out there are strictly more of the latter. Georg Cantor proved it with one devastating trick: take any list that claims to contain every real number, walk down its diagonal flipping digits, and you build a number that can't be anywhere on the list. Some infinities are bigger than others. Scroll through and watch a list get defeated.

1. The diagonal โ€” building a number no list can contain

Below is a list that claims to hold every real number in (0,1), one per row, each an infinite string of digits. We walk down the diagonal (row 1 digit 1, row 2 digit 2, โ€ฆ) and flip every digit we land on. The flipped digits spell a brand-new number d. By construction d differs from row n at position n โ€” so it equals no row. The list was supposedly complete; it missed d. Contradiction.

binary (0/1) Click "Walk the diagonal" to begin

2. Two sizes of infinity โ€” |โ„| > |โ„•|

Not every infinity can be listed. The naturals โ„• and even the fractions โ„š can be put in a single endless list (they're countable, size โ„ตโ‚€). The reals cannot โ€” the diagonal defeats any attempt โ€” so there are strictly more of them (size 2โ„ตโ‚€). Toggle between the two cases and watch each row get an index, or watch the diagonal escape.

โ„•, fractions: every item gets a counting number โ€” โ„ตโ‚€

The same trick generalises: any set is strictly smaller than its set of subsets (its power set) โ€” diagonalise the supposed pairing and you always escape. Apply it again and again and you get an endless ladder of ever-larger infinities: โ„ตโ‚€ < 2โ„ตโ‚€ < 22โ„ตโ‚€ < โ€ฆ The Continuum Hypothesis asks whether there is any infinity strictly between โ„ตโ‚€ and 2โ„ตโ‚€ โ€” and that question turns out to be undecidable from the standard axioms of mathematics.

3. In short โ€” how to measure the size of infinity