Skip to content

← Math Further 9–12

Are Some Infinities Bigger Than Others?

Topic 38 · Grades 9–12 · Countable and uncountable sets

What this builds on from class
In this unit 9 sections
  1. Try it: beat the list
  2. What’s going on: the diagonal argument
  3. Same size, surprisingly
  4. Bigger and bigger: Cantor’s theorem
  5. The twist: a question with no answer
  6. Fractions everywhere, and nowhere
  7. Where this is used
  8. Questions
  9. Where to go next

After an Optional Maths class on limits, Bibek makes a bold claim. “I have a list,” he says, “of every number between 0 and 1. Row 1, row 2, row 3, and so on forever. It never ends, but every number you can think of is on it somewhere: 0.5, 0.25, 1/3, 0.3141592…, all of them.”

His friend Aarati says she can name a number that isn’t on his list. Bibek laughs: “Then you will have to read my whole list, and it never ends.” Aarati says she won’t need to read it all. She will look at one digit of each row, and only one.

Who is right? The even numbers and the fractions can be listed one after another (as at the endless hotel of Is There Room at a Full Hotel with Endless Rooms?). Can the decimals?

Guess first. Can any list, made as cleverly as you like, hold every number between 0 and 1?

Pick an answer to see why.

Try it

Beat Bibek’s list

Bibek’s list goes on forever; you see its first 8 rows and their first 8 digits. Type a number and try to make it differ from every row. Try both of his lists.

Bibek’s list10.10000000…20.20000000…30.30000000…40.40000000…50.50000000…60.60000000…70.70000000…80.80000000…… and so on: the rows never endYou0.
Rows beaten (of the 8 shown)
0 of 8
Digits typed
0 of 8

Type a number, one digit at a time. A row turns green as soon as your number differs from it in a digit shown.

Try it: beat the list

Bibek’s first list is of the short decimals, the ones that stop: first the one-digit ones, 0.1, 0.2, …, 0.9, then the two-digit ones, 0.01, 0.02, …, 0.99 (leaving out 0.10, 0.20, …, already there as 0.1, 0.2, …), then the three-digit ones, and so on. Every decimal that stops is somewhere on it: 0.37 is row 43, and 0.31415926 is row 38,274,333.

Beating the 8 rows on the screen is easy. Type 9, and your number already differs from 0.1, 0.2, …, 0.8. But row 9 is 0.9, which starts the same way. Type 0.95, and row 9 is beaten, but row 95 is 0.95. Whatever digits you type, there is a row further down that starts with exactly those digits, so checking row by row can never finish.

Bibek’s second list is of the fractions between 0 and 1, in lowest terms, by their bottom number: 1/2, then 1/3 and 2/3, then 1/4 and 3/4, then 1/5, 2/5, 3/5, 4/5, and so on. Every fraction, such as 3/7 (row 14), is on it. Fractions crowd so thickly that there is one close to any number you type: a fraction starting 0.45555555 is 41/90, at row 2,466.

So checking won’t do. Aarati needs to choose her digits so that she knows her number differs from every row, even row 38,274,333, without looking at it.

What’s going on: the diagonal argument

Same size means a matching

What does “bigger” mean for collections that never end? You can’t count them to the end, but you can match them: two collections are the same size if their members can be paired off, one with one, with nothing left over on either side. A set that can be matched with the counting numbers 1, 2, 3, … is called countable; matching it with 1, 2, 3, … is the same as writing it as a list in which every member has a row of its own. The even numbers are countable (pair n with 2n), and so are the short decimals and the fractions, as Bibek’s lists show.

No list holds every decimal

Now Aarati’s argument. Suppose someone has a list of the numbers between 0 and 1, any list at all. Here are its first six rows, each going on forever:

Row The number Its diagonal digit
1 0.14285714… (1/7) 1
2 0.66666666… (2/3) 6
3 0.31415926… 4
4 0.25000000… (1/4) 0
5 0.55555555… (5/9) 5
6 0.70710678… 6
… … …

Build a new number, one digit at a time, by this rule: **if row n’s nth digit is 5, write 4; otherwise write 5.** The diagonal digits 1, 6, 4, 0, 5, 6 give

0.555545… 0.555545\ldots

and the rule carries on down the list forever. Is this number on the list? It isn’t row 1: they differ in the 1st digit. It isn’t row n, for any n, because they differ in the nth digit. Every row is ruled out in its own place, with no reading of the whole list.

So no list can hold every number between 0 and 1. Whatever list is offered, the diagonal rule builds a number it missed. The numbers between 0 and 1 are uncountable: there are too many of them to match with 1, 2, 3, …. This is Cantor’s diagonal argument, published by Georg Cantor in 1891.

And there are more of them than counting numbers, not just “different”: you can match the counting numbers with some of the decimals (1 with 0.1, 2 with 0.11, 3 with 0.111, …), but never with all of them. That is what “bigger” means for infinite sets: the smaller one matches part of the bigger one, and nothing matches the whole.

Bibek fights back: “Fine. I’ll put your new number at the top of my list as row 1, and move every other row down one.” What happens?

Pick an answer to see why.

Why doesn’t the same argument prove that the fractions can’t be listed?

Pick an answer to see why.

Same size, surprisingly

A short line and a long line. Does a 10 cm line have more points than a 2 cm line? Place the short line above the long one, and draw a ray from a point O through any point of the short line: it meets the long line in exactly one point, its partner, 5x cm along for a point x cm along. Every point of each line has exactly one partner on the other, so the two lines have the same number of points.

Try it

Give every point a partner

Drag the yellow point. Then bend a 1 cm line, without its two ends, into a half circle, and match it with a line that goes on forever in both directions.

2 cm line02O024681010 cm line
Your point
0.60 cm along
Its partner
3.00 cm along

Every point of the 2 cm line has one partner on the 10 cm line, and every point of the 10 cm line has one on the 2 cm line. Nothing is left over.

A short line and an endless line. Bend the 1 cm line, without its ends, into a half circle. A ray from the circle’s center through any of its points meets the endless line once: at the middle the partner is 0; at 0.9 cm along, about 9.2; at 0.99 cm, about 95.5; at 0.999 cm, about 955. Every point of the endless line, however far out, has a partner just short of an end. So a line 1 cm long has as many points as a line that never ends.

A square and a line. In 1874 Cantor asked his friend Richard Dedekind whether the points of a square could be matched with the points of a line, expecting no. In 1877 he found it was yes. Here is his first attempt. A point inside a square of side 1 has two coordinates, each written the usual way (not ending in endless 9s), say (0.1234…, 0.5678…). Weave their digits together, one from each in turn:

(0.1234…, 0.5678…)⟶0.15263748… (0.1234\ldots,\ 0.5678\ldots) \longrightarrow 0.15263748\ldots

To go back, unweave: the odd-placed digits give the first coordinate and the even-placed ones the second, so 0.31415926… comes from (0.3452…, 0.1196…). Different points of the square give different points of the line.

Cantor wrote to Dedekind in June 1877 that until Dedekind agreed, he could only say je le vois, mais je ne le crois pas: “I see it, but I don’t believe it.” Often quoted as amazement, it was really a request to check his proof.

Bigger and bigger: Cantor’s theorem

So are there just two sizes of infinity, the countable and the size of the line? No: there is no biggest one.

Teams from a group

How many teams can be picked from three friends, Asha, Bina and Chiran, counting the empty team and the team of all three? Each friend is in or out, two choices each, so 2 × 2 × 2 = 8: { }, {Asha}, {Bina}, {Chiran}, {Asha, Bina}, {Asha, Chiran}, {Bina, Chiran}, {Asha, Bina, Chiran}. With n people there are 2ⁿ teams, always more than n: 4 people make 16, 10 make 1,024. The collection of all the teams (subsets) of a set is its power set. Cantor’s argument shows there are more teams than members for every set, finite or infinite, without counting at all.

The argument never counted, so it works for any set, even an infinite one: pair each member with a team, and the team of “everyone not in their own team” is left over. This is Cantor’s theorem: every set has more subsets than members. If the rebel team reminds you of the village barber who shaves exactly the men who don’t shave themselves, it should: Can a Sentence Say It Is False? builds the barber from the same diagonal.

A team of counting numbers, like the even numbers or {2, 3, 5}, can be written as an endless string of 0s and 1s, a 1 in place n if n is in it, so these teams can’t be listed either. Then take the teams of those, and so on: each step gives a bigger infinity. There is no biggest infinity.

Cantor gave the sizes names. The size of the counting numbers is written ℵ₀ (aleph-null, after the first letter of the Hebrew alphabet), and the size of the line is 2 to the power ℵ₀, because the line has as many points as there are teams of counting numbers.

The twist: a question with no answer

The line is bigger than the counting numbers. Is there a set in between: bigger than the counting numbers, smaller than the line? Cantor guessed no, in 1878, and never managed to prove it. His guess is called the continuum hypothesis (the continuum is the line). In 1900 David Hilbert put it first on his famous list of problems for the new century.

The answer, when it came, was stranger than yes or no. In 1940 Kurt Gödel proved that the usual rules (the axioms) on which mathematicians build set theory can never prove that the guess is false, as long as those rules don’t contradict themselves. In 1963 Paul Cohen proved that they can never prove it true either. So, from the axioms nearly all of mathematics rests on, the question cannot be settled at all; Cohen received the Fields Medal for this in 1966. Mathematicians could add a new axiom to decide it either way, and some study what each choice leads to, but there is no agreement on which one to add.

What did Gödel and Cohen show about the continuum hypothesis?

Pick an answer to see why.

Fractions everywhere, and nowhere

Between any two numbers, however close, there are endless fractions: between 0.3141 and 0.3142 lie 0.31415, 0.314151, …. Fractions are everywhere on the line, yet they are only a countable sliver of it. Here is how thin.

Lay a small cover over each fraction on Bibek’s list: 0.05 long over the first (1/2), 0.025 over the second, and so on, each half the one before. Every fraction gets a cover, and together the covers take up at most

0.05+0.025+0.0125+⋯=0.1, 0.05 + 0.025 + 0.0125 + \cdots = 0.1,

because halves added forever come to the whole (Can You Add Halves Forever and Still Get One?). Every fraction is hidden, and at least nine tenths of the line is bare. Start with 0.0005, and the covers add up to a thousandth.

Try it

Cover every fraction

Make the covers smaller. Every fraction stays under a cover, while the line left bare grows.

0½1Ticks: fractions with bottoms up to 12
Cover over ½ (the first)
0.5
Line left bare
at least 0

Each fraction in the list gets a cover half as long as the one before. Covers this big hide a lot of the line. Make them smaller.

The covers can be as small as you like, so the fractions take up no length at all: they have measure zero. The bare points, the numbers that are not fractions, are nearly all of the line. Pick a number between 0 and 1 truly at random, and the chance of a fraction is 0.

Where this is used

Questions

Which of these sets is uncountable?

Pick an answer to see why.

a.★

Here are the first five rows of a list. Use the rule “5 becomes 4, anything else becomes 5” on the diagonal to write the first five digits of a number that is not on it. Say in which digit it differs from row 3.
0.12345678…
0.55555555…
0.98765432…
0.50505050…
0.11111111…

Hint
Answer
b.★

On Bibek’s list of short decimals (0.1 to 0.9, then 0.01 to 0.99 leaving out those ending in 0, then three digits, …), which row is 0.05? On his list of fractions, which row is 1/10?

Hint
Answer

A line 3 cm long and a line 12 cm long are matched by rays from one point. A point 2 cm along the short line goes to which point of the long one?

Pick an answer to see why.

c.★★

a. Weave the digits of the point (0.333…, 0.666…) into one number. b. Is that number a fraction? Which?

Hint
Answer
d.★★

A set has 5 members. How many subsets does it have? Show that there are more subsets than members by finding, for the matching a → {a, b}, b → { }, c → {c}, d → {a, d, e}, e → {b}, the rebel subset.

Hint
Answer
e.★★★

Your friend says: “The diagonal argument proves too much. Use it on the list of all endless strings of 0s and 1s that have only finitely many 1s (like 0110000…), and it makes a string not on the list, so these strings can’t be listed. But they can.” Is the friend right?

Hint
Answer

Where to go next

Where these facts come from
  • Cantor’s diagonal argument, published in 1891 in the Jahresbericht der Deutschen Mathematiker-Vereinigung, for endless strings of binary digits; numbers with two expansions; its use in Gödel’s and Turing’s proofs and in the halting problem; Cantor’s first proof of 1874: Wikipedia, “Cantor’s diagonal argument”, read October 2026.
  • The 1874 article and its title, the algebraic numbers countable, the letters with Dedekind of 29 November to 9 December 1873 (Dedekind’s reply that the question had no practical interest; his simplified proof), Weierstrass’s advice of 23 December 1873 and the title that hid the result, Kronecker on the editorial board: Wikipedia, “Cantor’s first set theory article”, read October 2026.
  • Cantor’s theorem (every set smaller than its power set, 1891), the proof by the set of members not in their own subset, 2ⁿ subsets for n members, no largest infinity: Wikipedia, “Cantor’s theorem”, read October 2026.
  • Cantor’s dates and life (Halle, depression from 1884, sanatoria, death in Halle on 6 January 1918), the January 1874 question to Dedekind, the 1877 result and “I see it, but I don’t believe it!”, the 1878 paper and Dedekind’s intervention, Hilbert’s assessment: MacTutor, “Georg Cantor”, read October 2026.
  • The letter of 29 June 1877 and its fuller wording (Cantor asking Dedekind to confirm the proof, after F. Q. Gouvêa, “Was Cantor Surprised?”, American Mathematical Monthly 118, 2011), the weaving of digits for the square and the line, Dedekind’s objection about numbers with two expansions, and the theorem of 1897 that completes it: Tim Button, Set Theory (Open Logic Project, CC BY 4.0), sections 1.3–1.4 and 5.10, st.openlogicproject.org, read October 2026.
  • The continuum hypothesis: Cantor 1878, Hilbert’s first problem in 1900, Gödel 1940, Cohen 1963, the Fields Medal in 1966: Wikipedia, “Continuum hypothesis”, read October 2026.
  • ℵ₀ for the size of the counting numbers, Cantor’s notation, and 2 to the power ℵ₀ for the size of the line: Wikipedia, “Aleph number”, read October 2026.
  • Countable sets, the rationals included, have measure zero; covering by intervals of total length as small as you like: Wikipedia, “Null set”, read October 2026.
  • Computable numbers (Borel 1912, Turing 1936), countable, so almost all real numbers are not computable: Wikipedia, “Computable number”, read October 2026.
  • Turing’s 1936 paper and that “halting” is the later name for what it proved: Wikipedia, “Halting problem”; Rice’s theorem (Henry Gordon Rice, dissertation of 1951, published 1953): Wikipedia, “Rice’s theorem”, read October 2026.
  • Kolmogorov’s axioms of 1933 and countable additivity: Wikipedia, “Probability axioms”, read October 2026.
  • The Jaina enumerable, unenumerable and infinite (the Bhagabati Sutra, about 300 BC), the five kinds of infinity of the Anuyoga Dwara Sutra (as quoted from G. G. Joseph), and that the Jainas did not define their infinite measures rigorously: MacTutor, “Jaina mathematics”, read October 2026.
  • Every number on this page (both lists and the rows of 0.37, 0.05, 0.31415926, 0.95, 3/7, 1/10 and 41/90, checked against the lists themselves; the diagonal table; the partners 5x and 3 tan((t − 1/2) × 180°); the woven and unwoven digits and 0.10909…; 8, 16, 32 and 1,024 subsets; the rebel teams, and all 512 ways of giving teams to three friends; the covers’ sums; 0.3636… = 4/11) was computed in checks/textbooks/math-further-9-12/38/tmp/infinity_numbers.py.