Skip to content
The Lumenary
Wonder TrailOptional · never gradedStarts from Sets

How many infinities?

1

The question

There are infinitely many counting numbers and infinitely many infinite 0–1 sequences. Are these two infinities the same size?

Try the experiment before reading on. There’s no wrong way to explore.

2

Experiment

The diagonal machine

Here is a list of infinite 0–1 sequences (we can only show the start). The gold sequence d flips the diagonal.

s1…
s2…
s3…
s4…
s5…
s6…
d101001????…

Point at (or tab to) a row to see where d differs from it. Click any digit to change the list.

Add d to the list and a new d appears that is different again. No list — however long — can contain every sequence.

3

Hints, if you want them

    4

    What’s going on

    What’s going on

    Two sets have the same size — the same cardinality — when their elements can be paired off one-to-one, by a bijection. For finite sets this is just counting. For infinite sets it gives surprises: the even numbers 0,2,4,…0, 2, 4, \dots can be paired with all counting numbers 0,1,2,…0, 1, 2, \dots by n↦2nn \mapsto 2n, so there are "as many" even numbers as counting numbers. A set that can be listed as s1,s2,s3,…s_1, s_2, s_3, \dots is called countable.

    Are all infinite sets countable? In 1891 Georg Cantor gave a famous argument that the answer is no.

    Suppose someone hands us a list s1,s2,s3,…s_1, s_2, s_3, \dots of infinite 0–1 sequences. Build a new sequence dd by flipping the diagonal: let the nn-th digit of dd be the opposite of the nn-th digit of sns_n. Then dd differs from s1s_1 in position 11, from s2s_2 in position 22, and in general from sns_n in position nn. So dd is not anywhere on the list.

    Since every list misses some sequence, the set of all infinite 0–1 sequences is uncountable: it is a strictly bigger infinity than the counting numbers.

    Note

    The experiment shows the mechanism on a finite part of a list. It illustrates the idea; the argument above — which works for any list whatsoever — is the proof.

    The same diagonal idea reappears across mathematics and computer science: in showing that the real numbers are uncountable, in Gödel's incompleteness theorems, and in Turing's proof that no program can decide whether every program halts.

    Computationally testedAI-drafted · awaiting human review
    5

    Where this leads