Essays北极甜虾 · No. 10

SET THEORY · I数到无穷之后
第一讲 · 可数与不可数

无穷也分大小

不造一个,也知道它们遍地都是
1844 年,Liouville 费了一番功夫,才造出第一个超越数。三十年后,Cantor 用一篇短文证明:超越数比代数数多得多,多到数不完,而他一个也没造。这一讲从“什么叫一样多”讲起,一直走到“没有最大的无穷”。七条定理,都带证明。
Ⅰ可数性
Ⅱ比大小
Ⅲ序数
Ⅳ连续统
Ⅴ大基数
代数数:可数个,排成一队,第 个罩上长 的小区间
0123
罩子总长不超过 ;剩下的几乎全是超越数,比如 和
图 1·1代数数在数轴上处处稠密,却只有可数个。把它们排成一队,给第 个罩上长 的小区间,罩子总长不超过 ,剩下的几乎全是超越数。(只画了高度不超过 6 的代数数,按本文脚本算出;罩子的形状是示意)

先来一个问题。正整数和偶数,哪个多?

直觉说正整数多,偶数只占一半。可如果把它们配成对:1 配 2,2 配 4,3 配 6,……每个正整数恰好配上一个偶数,谁也不落单。照这个配法,它们一样多。

这个别扭的现象,Galileo 在 1638 年的《两门新科学》里就写过:平方数 1, 4, 9, 16, … 越往后越稀,却能和全体正整数一个对一个地配齐。他的结论是,“相等”“更大”“更小”这些词,不能用在无穷上。

两百多年后,Cantor 反过来想:既然配对这么好用,干脆拿它来定义“一样多”。这一讲就从这个定义出发,看它能推出什么。需要的只是一点高中数学,加上反证法。

1
THE SAME SIZE

什么叫“一样多”

定义 1等势

若存在从集合 到集合 的双射,就说 与 等势,记作 。若存在从 到 的单射,记作 。

对有限集合,这就是“个数相等”。对无穷集合,这是唯一一个不需要“数完”就能比较的办法。照这个定义,下面四个集合和自然数集 一样大:

0123456…
偶数
024681012…
01−12−23−3…
平方数
14916253649…
来回跳
图 1·2四种无穷,竖着配成对:自然数、偶数()、整数(0, 1, −1, 2, −2, … 来回跳)、平方数(Galileo 的例子)。

偶数只是 的一部分,却和整个 一样多。Dedekind 在 1888 年看出,这不是悖论,而恰好可以当作“无穷”的定义。他在书的脚注里说,1882 年 9 月就把这个定义告诉了 Cantor。

定义 2Dedekind 无穷

一个集合是无穷的,当且仅当它能和自己的某个真子集等势。

之前聊过的 Deutsch 书里那家“无穷旅馆”,说的就是这件事:所有房间都住满了,再来一位客人,就请 号房的客人搬到 号,空出 1 号房给新客。有限的旅馆做不到这一点,无穷的可以。

旁注“能和真子集等势”与“不是有限集”是否等价,严格说要用到一点选择公理(可数选择)。这个系列默认在通常的 ZFC 公理系统里讲,两者等价。选择公理第二讲细说。

2
COUNTABLE

能排成一队的无穷

定义 3可数

与 等势的集合叫可数集。换句话说,它的元素可以排成一队:第 0 个、第 1 个、第 2 个……每个元素都分到一个号码。

平面上的整点 呢?看起来比 多了一整个维度。

定理 1Cantor 配对函数

映射 是 到 的双射。

证明按 把整点分到一条条斜线上,第 条斜线上有 个点。第 0 到第 条斜线一共有 个点,所以 给第 条斜线上的点依次编号 ,正好接上下一条的起点 。反过来,任给 ,有唯一的 使 ,于是 ,。∎

02591420148131937121861117101615012345012345mn
图 1·3沿斜线一条条数下去,每个整点都分到一个号码。比如 在第 5 条斜线上,前面五条共 15 个点,所以它是 。(本文脚本在 的范围里逐个核对过)

推论马上就来:有理数是可数的。把每个正有理数写成既约分数 ,对应到整点 ;不同的分数对应不同的点。可数集的子集要么有限、要么可数,再把 0 和负数交替插进去就行。

旁注Fueter 和 Pólya 1923 年证明,把 一一映到 的二次多项式,只有这一个和把 、 对调的那一个。Pólya 的证明里竟然用到了 Lindemann 关于超越数的定理。三次及以上有没有别的,至今还是猜想。

一个公式,数遍所有分数

上面的排法要跳过重复的点( 和 是同一个数),不够干净。2000 年,Calkin 和 Wilf 给了一个漂亮得多的排法。从 出发,每个分数 生两个孩子:左边是 ,右边是 。

111122213134325236317148439351052112512531334144115
第五层:、、、、、、、 …
金色小数字是按层读的顺序;Newman 公式一步一个,正好走这条路
图 1·4Calkin–Wilf 树的前四层。左孩子都小于 1,右孩子都大于 1。
定理 2Calkin–Wilf(2000)

每个正有理数在这棵树上恰好出现一次,而且是以既约分数的形式出现。

证明分三步。既约:,所以既约分数的孩子还是既约的;从 归纳即可。出现:任给既约分数 。若 ,它只可能是 的左孩子;若 ,只可能是 的右孩子。这个“父亲”仍然既约,而分子分母之和严格变小。一路往上走,最后必然停在 。这其实就是辗转相减的欧几里得算法,倒着走了一遍。只出现一次:小于 1 的只能是左孩子,大于 1 的只能是右孩子,父亲由分数本身唯一确定。对 归纳,每个分数至多出现一次。∎

把这棵树一层一层读下来,得到 。更妙的是,后一项可以直接由前一项算出来:

这个公式归功于 Moshe Newman,2003 年发表在《美国数学月刊》一道题(Knuth 出的)的解答里。从 1 出发反复代入,你会一个不重、一个不漏地走遍所有正分数。本文脚本核对了前 8191 项:和按层读树的结果完全一致,两两不同。

旁注这个数列每一项的分母,恰好是下一项的分子;所有分子排在一起,是 Stern 1858 年研究过的“双原子数列”。Calkin 和 Wilf 自己也说,Stern 那篇论文里其实已经有这棵树,只是换了一身衣服。

代数数也只有可数个
定义 4代数数与超越数

实数 叫代数数,如果它是某个整系数非零多项式的根;不是代数数的实数叫超越数。

所有有理数都是代数数, 是 的根,黄金比 是 的根。代数数在数轴上密密麻麻,可它们照样能排成一队。

定理 3Cantor(1874)

全体实代数数是可数的。

证明每个实代数数 有唯一一个“最简”的多项式:整系数、不可约、系数互素、首项为正。设它是 ,Cantor 定义 的高度为 。高度为 的多项式只有有限个:次数不超过 ,每个系数的绝对值也不超过 。每个多项式至多有 个根。所以高度为 的实代数数只有有限个。先列高度 1 的,再列高度 2 的,依次往下,每个实代数数都会在有限步内被点到名。∎

旁注“不可约”这一条不能省。 的高度是 7,可它等于 ,实根 真正的高度是 9。脚本数了一下:如果把可约多项式也算上,第 7 层会多出 4 个这样“早到”的数。

11224312428572617274848
高度 (柱高取对数刻度)
、 在第 4 层
图 1·5各高度的实代数数:1, 2, 4, 12, 28, 72, 172, 484 个(本文脚本按 Cantor 的约定精确算出;前三个数 1, 2, 4 和 Cantor 原文给的一致)。每一层都只有有限个,所以能排成一队。
3
UNCOUNTABLE

数不完的无穷

到这里,你也许会猜:无穷都一样大,都能排成一队。Cantor 1874 年那篇论文的另一半,就是证明这个猜测是错的。

定理 4实数不可数

区间 里的实数不能排成一队。

证明用对角线论证(下面是今天教科书常用的十进制版本)。假设能排成一队 ,把每个数写成十进制小数。构造 :若 的第 位不是 5,令 ;若是 5,令 。于是 和每个 在第 位上都不同。还要排除一种情况:同一个数有两种小数写法,比如 。这只在末尾是无穷个 0 或无穷个 9 时发生,而 只用 5 和 6,没有这个问题。所以 不等于任何 ,矛盾。∎

0.1415926
0.7182818
0.4142135
0.6180339
0.1234567
0.3333333x0.555565…
规则:第 位不是 5 就写 5,是 5 就写 6
图 1·6沿对角线逐位唱反调,造出一个不在名单上的数。这里 (第 5 行第 5 位恰好是 5,所以写 6)。

旁注Cantor 1874 年的原始证明用的是区间套:任给一列实数,任何区间里都能找到一个不在这列里的数。对角线论证是 1891 年才有的,而且原文也不用小数,用的是由两个符号 、 组成的无穷序列。他特意强调,这个证明用不着无理数的理论。

推论是:超越数存在,而且多得多。实数是代数数和超越数的并。代数数可数;如果超越数也可数,两个可数集交替着排,并起来还是可数,实数就可数了,矛盾。所以超越数不可数。

还可以说得更具体:代数数不但“少”,在长度的意义下简直不占地方。

定理 5可数集的长度为零

数轴上任何可数集,都能被总长任意小的一列区间罩住。

证明把它排成 ,给 罩上一个长 的区间,总长 。 可以任意小。∎

这就是图 1·1 画的事。从 里“随机”挑一个数,挑到代数数的概率是 0。我们从小认识的整数、分数、根号,在实数里只是一层几乎没有厚度的灰。

存在,却一个也没造
1844
Liouville 证明超越数存在:代数数很难被有理数逼得太近,逼得特别近的就不是代数数
1851
他证明 是超越数:只在第 1、2、6、24、120… 位(各个 )上是 1。这个级数 1844 年就提过,这时才补上证明
1873
Hermite 证明 是超越数
1874
Cantor:代数数可数,实数不可数,超越数遍地都是
1882
Lindemann 证明 是超越数,尺规化圆为方从此不可能
图 1·7造一个超越数,和证明它们遍地都是。

Liouville 和 Hermite、Lindemann 都是一个一个地造、一个一个地证,每一步都很费力。Cantor 换了一个问题:不去造,去数。

常有人说,Cantor 的证明是“非构造”的:只说存在,不告诉你是哪一个。其实不然。1994 年 Gray 专门写文章澄清:把代数数按高度明明白白排出来,再把对角线一位一位算下去,就能得到一个确定的超越数。只是这个数又难算又不好看,没人真想去算它。

叫得出名字的数,只有可数个

再往前走一步。任何一个数,只要你能用一句有限长的话描述它,比如“圆周率”“2 的平方根”“ 的实根”,这句话就是有限个字符排成的串。所有有限长的串可以先按长度、再按字典序排成一队,所以只有可数个。可是实数不可数。于是:几乎所有实数,人类永远叫不出它的名字。

旁注这是直观说法。“能用一句话描述”要在形式系统里说清楚并不容易,一不小心就掉进 Richard 悖论;严格的版本要区分“在集合论内部可定义”和“从外部看可定义”。这里只取它的直观意思。

4
NO LARGEST INFINITY

没有最大的无穷

实数比自然数多。有没有比实数还多的?有,而且永远有。

定义 5幂集

集合 的幂集 ,是 的全体子集组成的集合。 个元素的集合,幂集有 个元素。

定理 6Cantor(1891)

对任何集合 ,都不存在从 到 的满射。因此 。

证明(1891 年原文只具体证了 的情形:比的是 上只取 0、1 两个值的函数,也就是 的子集,一般情形是他断言的。下面是今天的写法。)任取映射 ,令 。假如 在 的像里,设 。问: 吗?若 ,按 的定义 ;若 ,按定义又有 。两头都矛盾,所以 不在像里, 不是满射。另一方面 是单射,所以 ,合起来严格小于。∎

这个元素在不在 里
abcde
D
把对角线翻过来:在第 格上和 唱反调
图 1·8把每个 画成一行,第 格有点表示 。 沿对角线把每一格翻过来,于是和每一行都至少差一格。和图 1·6 是同一个动作。

于是有一座没有顶的塔:

<
<
<
每往上一层都严格更大,没有尽头
图 1·9,没有最大的无穷。

顺带一句, 和 一样大:把子集看成二进制小数的各位,0 表示不在、1 表示在。要严格证明,得处理 这种重复,下一讲用 Schröder–Bernstein 定理一行就能证完。

同一条对角线

Russell 读到 Cantor 定理时想到:所有集合组成的“集合” ,它的幂集应该比它大;可幂集里的元素都是集合,所以 ,矛盾。把上面证明里的 换成恒等映射, 就成了 ,“所有不属于自己的集合”。1902 年他写信告诉 Frege,后者的《算术基本规律》第二卷正在付印。朴素集合论从此不得不改用公理来写,这是第四讲的伏笔。

这条对角线后来一次次出现:

年份对角线上的东西结论
1891集合和它的子集没有最大的无穷
1901不属于自己的集合朴素集合论自相矛盾(Russell)
1931说“我不可证”的句子足够强的形式系统不完备(Gödel)
1936和停机判定程序反着干的程序停机问题不可判定(Turing;之前讲过的 Rice 定理就站在它上面)
1969一条不动点定理把前三条统一成一句话(Lawvere;2003 年 Yanofsky 把停机问题也放了进来)
图 1·10同一个证明的几种面目(示意;各条的严格形式各不相同)。
定理 7Lawvere 不动点定理(集合版)

若存在满射 (从 到“ 上取值于 的全体函数”),则任何函数 都有不动点。

证明令 。 是 上取值于 的函数,由满射性存在 使 。于是 , 就是 的不动点。∎

取 , 为“取反”。 没有不动点,所以不存在满射 。而 就是 的全体子集(用 0 和 1 标记在不在),这正是定理 6。Lawvere 在同一篇文章里还推出了 Russell、Gödel、Tarski 的结果;2003 年 Yanofsky 照这个路子,把停机问题和 Rice 定理也收了进来。之前提过的 Mac Lane 和这里的 Lawvere 都是范畴论学者,他们看数学,就是在找这种“同一个形状”。

5
CODA

写在最后

这一讲只做了一件事:拿“能不能配对”去比较无穷。比出来的结果是两档。能排成一队的:自然数、整数、有理数、代数数。排不成的:实数、超越数、。而且往上没有尽头。

我最喜欢的是 1874 年那一步。Cantor 证明超越数存在,没有比 Liouville 更聪明地去“造”,而是换了一个问题:数一数。数学里很多“存在”和“不可能”,都是这样换个问法得来的。

留两个问题给后面。实数轴 和平面 谁大?Cantor 1877 年得出答案时,自己都不敢相信,这是下一讲的事。还有, 和 之间,有没有第三种大小?这就是第四讲的连续统假设。

没有人能把我们
从 Cantor 为我们创造的乐园中
赶出去。
Hilbert,《论无穷》(1926)
✎ 留言区小题

用 Newman 公式从 1 开始算,第 2026 项是哪个分数?答案下一讲公布。也欢迎说说:你第一次听说“无穷有大小”时,哪一步最让你不服?

参考资料
  1. G. Galilei, Discorsi e dimostrazioni matematiche intorno a due nuove scienze(1638),第一日
  2. G. Cantor, “Über eine Eigenschaft des Inbegriffes aller reellen algebraischen Zahlen”, J. reine angew. Math. 77 (1874)
  3. G. Cantor, “Über eine elementare Frage der Mannigfaltigkeitslehre”, Jahresbericht der DMV 1 (1891)
  4. R. Dedekind, Was sind und was sollen die Zahlen?(1888)
  5. J. Liouville, Comptes rendus 18 (1844);J. math. pures appl. 16 (1851);C. Hermite(1873);F. Lindemann(1882)
  6. R. Gray, “Georg Cantor and Transcendental Numbers”, Amer. Math. Monthly 101 (1994)
  7. N. Calkin, H. Wilf, “Recounting the Rationals”, Amer. Math. Monthly 107 (2000)
  8. R. Fueter, G. Pólya, “Rationale Abzählung der Gitterpunkte”, Vierteljahrsschrift Naturf. Ges. Zürich 68 (1923)
  9. D. Knuth et al., “Recounting the Rationals, Continued”(Problem 10906), Amer. Math. Monthly 110 (2003);M. Stern, J. reine angew. Math. 55 (1858)
  10. F. W. Lawvere, “Diagonal arguments and cartesian closed categories”, LNM 92(1969);N. Yanofsky, Bull. Symbolic Logic 9 (2003)
  11. B. Russell 致 G. Frege 的信(1902-06-16);B. Russell, The Principles of Mathematics(1903),§100
  12. D. Hilbert, “Über das Unendliche”, Math. Annalen 95 (1926)
  13. D. Deutsch, The Beginning of Infinity(2011),第 8 章
注:文中插图均为本文自制示意图;图 1·1、1·3、1·4、1·5、1·6 的数据由本文脚本算出。
犹剑在心
北极甜虾(剑心犹在!)
— 第一讲完 —
Translated from the Chinese original, “无穷也分大小”.
SET THEORY · ICounting Past Infinity
Lecture 1 · Countable and Uncountable

Infinities Come in Sizes

Without building a single one, we know they are everywhere
In 1844 Liouville went to some trouble to construct the first transcendental number. Thirty years later Cantor proved, in a short paper, that there are far more transcendental numbers than algebraic ones, too many to count, and he did not construct a single one. This lecture starts from what “as many” means and goes all the way to “there is no largest infinity.” Seven theorems, all with proofs.
ⅠCountable
ⅡComparing Sizes
ⅢOrdinals
ⅣContinuum
ⅤLarge Cardinals
Algebraic numbers, in a list: cover the th with length
0123
Total ≤ ; almost all the rest is transcendental, like ,
Figure 1·1The algebraic numbers are everywhere dense on the number line, yet there are only countably many of them. Line them up and cover the th with a small interval of length : the covers have total length at most , and almost everything left over is transcendental. (Only algebraic numbers of height at most 6 are drawn, computed by this article's script; the shapes of the covers are schematic.)

A question to start. Which are there more of, positive integers or even numbers?

Intuition says positive integers: the even numbers are only half of them. But pair them up: 1 with 2, 2 with 4, 3 with 6, … Every positive integer gets exactly one even number, and nobody is left without a partner. By this pairing, there are just as many of each.

Galileo had already described this awkward fact in 1638, in “Two New Sciences”: the squares 1, 4, 9, 16, … grow sparser and sparser, yet they can be matched one-to-one with all the positive integers. His conclusion was that words like “equal,” “greater” and “less” cannot be applied to the infinite.

More than two hundred years later, Cantor turned this around: since pairing works so well, why not use it to define “as many”? This lecture starts from that definition and sees what follows from it. All you need is a little high-school mathematics and proof by contradiction.

1
THE SAME SIZE

What “as many” means

Definition 1Equinumerous sets

If there is a bijection from a set to a set , we say that and are equinumerous, and write . If there is an injection from to , we write .

For finite sets this just means “having the same number of elements.” For infinite sets it is the only way to compare them without “counting to the end.” By this definition, the four sets below are all the same size as the set of natural numbers :

0123456…
Evens
024681012…
01−12−23−3…
Squares
14916253649…
zigzag
Figure 1·2Four infinities, paired up vertically: the natural numbers, the even numbers (), the integers (0, 1, −1, 2, −2, …, zigzagging) and the squares (Galileo's example).

The even numbers are only part of , yet there are just as many of them as there are in the whole of . In 1888 Dedekind saw that this is no paradox: it can serve as the very definition of “infinite.” In a footnote to his book he says that he had told Cantor this definition in September 1882.

Definition 2Dedekind-infinite

A set is infinite if and only if it is equinumerous with one of its proper subsets.

The “infinite hotel” in Deutsch's book, which came up before, is exactly this. Every room is taken, a new guest arrives, and the guest in room is asked to move to room , which frees room 1 for the newcomer. A finite hotel cannot do this; an infinite one can.

AsideStrictly speaking, showing that “equinumerous with a proper subset” is equivalent to “not finite” takes a little of the axiom of choice (countable choice). This series works by default in the usual ZFC axioms, where the two are equivalent. More on the axiom of choice in Lecture 2.

2
COUNTABLE

Infinities that line up

Definition 3Countable

A set equinumerous with is called countable. In other words, its elements can be lined up: the 0th, the 1st, the 2nd, … with every element given a number.

What about the lattice points of the plane, ? They seem to have a whole extra dimension compared with .

Theorem 1Cantor's pairing function

The map is a bijection from to .

ProofGroup the lattice points into diagonals according to ; diagonal holds points. Diagonals 0 through hold points in all, so numbers the points on diagonal in turn as , which runs right up to where the next diagonal starts, . Conversely, given any , there is a unique with , and then and .∎

02591420148131937121861117101615012345012345mn
Figure 1·3Count along the diagonals one after another, and every lattice point gets a number. For example, lies on diagonal 5; the five diagonals before it hold 15 points, so its number is . (This article's script checked every point with , one by one.)

A corollary follows at once: the rational numbers are countable. Write each positive rational number as a fraction in lowest terms, , and send it to the lattice point ; different fractions go to different points. A subset of a countable set is either finite or countable; after that, just slip in 0 and the negatives, alternating with the positives.

AsideIn 1923 Fueter and Pólya proved that the only quadratic polynomials mapping one-to-one onto are this one and the one with and swapped. Surprisingly, Pólya's proof uses Lindemann's theorem on transcendental numbers. For degree three and higher, it is still only a conjecture that there are no others.

One formula that counts every fraction

The listing above has to skip repeated points ( and are the same number), which is not very clean. In 2000 Calkin and Wilf gave a much prettier one. Start from ; every fraction has two children, on the left and on the right.

111122213134325236317148439351052112512531334144115
Level 5: , , , , , , , …
Gold numbers: level-by-level order; Newman's formula walks it
Figure 1·4The first four levels of the Calkin–Wilf tree. Every left child is less than 1, and every right child is greater than 1.
Theorem 2Calkin–Wilf (2000)

Every positive rational number appears in this tree exactly once, and it appears in lowest terms.

ProofIn three steps. Lowest terms: , so the children of a fraction in lowest terms are again in lowest terms; induct from . Every fraction appears: take any fraction in lowest terms . If , it can only be the left child of ; if , it can only be the right child of . This “parent” is still in lowest terms, and the sum of its numerator and denominator is strictly smaller. Keep climbing and you must end at . This is really Euclid's algorithm by repeated subtraction, run backwards. Only once: a fraction less than 1 can only be a left child, one greater than 1 only a right child, and the parent is determined by the fraction itself. By induction on , each fraction appears at most once.∎

Read the tree level by level and you get . Better still, each term can be computed directly from the one before it:

This formula is due to Moshe Newman; it appeared in 2003 in the solution to a problem (posed by Knuth) in the American Mathematical Monthly. Start from 1 and keep applying it, and you will walk through every positive fraction, missing none and repeating none. This article's script checked the first 8191 terms: they match the level-by-level reading of the tree exactly, and no two are equal.

AsideThe denominator of each term in this sequence is exactly the numerator of the next; put all the numerators in a row and you get the “diatomic sequence” that Stern studied in 1858. Calkin and Wilf themselves say that the tree is already in Stern's paper, just dressed differently.

The algebraic numbers are countable too
Definition 4Algebraic and transcendental numbers

A real number is called algebraic if it is a root of some nonzero polynomial with integer coefficients; a real number that is not algebraic is called transcendental.

Every rational number is algebraic; is a root of , and the golden ratio is a root of . The algebraic numbers crowd the number line, yet they too can be lined up.

Theorem 3Cantor (1874)

The real algebraic numbers are countable.

ProofEach real algebraic number has a unique “simplest” polynomial: integer coefficients, irreducible, coefficients with no common factor, leading coefficient positive. If this polynomial is , Cantor defines the height of to be . There are only finitely many polynomials of height : the degree is at most , and every coefficient has absolute value at most . Each polynomial has at most roots. So there are only finitely many real algebraic numbers of height . List those of height 1 first, then those of height 2, and so on down the line; every real algebraic number has its name called after finitely many steps.∎

AsideThe condition “irreducible” cannot be dropped. has height 7, but it equals , and the real root actually has height 9. The script counted them: if reducible polynomials were allowed, height 7 would gain 4 such “early arrivals.”

11224312428572617274848
Height (bars on a log scale)
and at height 4
Figure 1·5The number of real algebraic numbers of each height: 1, 2, 4, 12, 28, 72, 172, 484 (computed exactly by this article's script, using Cantor's conventions; the first three, 1, 2, 4, agree with those in Cantor's paper). Each height has only finitely many, so they can be lined up.
3
UNCOUNTABLE

Too many to count

By now you might guess that all infinities are the same size, and that they can all be lined up. The other half of Cantor's 1874 paper proves that guess wrong.

Theorem 4The reals are uncountable

The real numbers in the interval cannot be lined up.

ProofBy the diagonal argument (in the decimal version that textbooks use today). Suppose they could be lined up as , and write each one as a decimal. Build : if the th digit of is not 5, let ; if it is 5, let . Then differs from every in the th digit. One case remains to rule out: the same number can have two decimal expansions, such as . That happens only with an infinite tail of 0s or of 9s, and uses only 5s and 6s, so it has no such problem. So is not equal to any , a contradiction.∎

0.1415926
0.7182818
0.4142135
0.6180339
0.1234567
0.3333333x0.555565…
Rule: if digit isn't 5, write 5; if it is, write 6
Figure 1·6Go down the diagonal, contradicting it digit by digit, and you build a number that is not on the list. Here (the 5th digit of row 5 happens to be 5, so we write 6).

AsideCantor's original proof of 1874 used nested intervals: given any sequence of real numbers, every interval contains a number not in the sequence. The diagonal argument came only in 1891, and the original did not use decimals either, but infinite sequences of two symbols, and . He stressed that this proof does not need the theory of irrational numbers.

The corollary: transcendental numbers exist, and there are far more of them. The reals are the union of the algebraic and the transcendental numbers. The algebraic numbers are countable; if the transcendental numbers were countable too, you could interleave the two lists and the union would still be countable, so the reals would be countable, a contradiction. So the transcendental numbers are uncountable.

We can say something more concrete: the algebraic numbers are not just “fewer”; in the sense of length, they take up no room at all.

Theorem 5Countable sets have length zero

Any countable set on the number line can be covered by a sequence of intervals of arbitrarily small total length.

ProofList it as , and cover with an interval of length ; the total length is . And can be as small as you like.∎

This is what Figure 1·1 shows. Pick a number “at random” from , and the probability of picking an algebraic number is 0. The integers, fractions and square roots we have known since childhood are, among the reals, only a film of dust with almost no thickness.

Existence, without building a single one
1844
Liouville proves that transcendental numbers exist: algebraic numbers cannot be approximated too closely by rationals, so a number that can be approximated especially closely is not algebraic
1851
He proves that is transcendental: its only 1s are in decimal places 1, 2, 6, 24, 120, … (the places ). This series had been mentioned back in 1844; only now was the proof supplied
1873
Hermite proves that is transcendental
1874
Cantor: the algebraic numbers are countable, the reals uncountable, and transcendental numbers are everywhere
1882
Lindemann proves that is transcendental; so squaring the circle with ruler and compass is impossible
Figure 1·7Constructing a transcendental number, and proving that they are everywhere.

Liouville, Hermite and Lindemann built them one at a time and proved them one at a time, and every step took a great deal of work. Cantor changed the question: don't build, count.

People often say that Cantor's proof is “non-constructive”: it says one exists without telling you which. Not so. In 1994 Gray wrote a paper specifically to set the record straight: list the algebraic numbers explicitly by height, then compute the diagonal digit by digit, and you get a definite transcendental number. It is just that the number is hard to work out and not pretty, so nobody really wants to.

Only countably many numbers have names

One step further. Any number you can describe in a sentence of finite length, such as “pi,” “the square root of 2” or “the real root of ,” is described by a string of finitely many characters. All finite strings can be lined up, first by length and then alphabetically, so there are only countably many of them. But the reals are uncountable. So almost every real number is one that humans will never be able to name.

AsideThis is the intuitive version. Making “describable in a sentence” precise inside a formal system is not easy; one slip and you fall into Richard's paradox. A rigorous version has to distinguish “definable inside set theory” from “definable as seen from outside.” Here we take only the intuitive meaning.

4
NO LARGEST INFINITY

There is no largest infinity

There are more reals than natural numbers. Is there anything with even more elements than the reals? Yes, and there always is.

Definition 5Power set

The power set of a set , , is the set of all subsets of . A set with elements has a power set with elements.

Theorem 6Cantor (1891)

For any set , there is no surjection from to . Hence .

Proof(The 1891 paper itself worked out only the case , comparing functions on that take only the two values 0 and 1, that is, subsets of ; the general case he simply asserted. What follows is the modern version.) Take any map , and let . Suppose were in the image of , say . Ask: is ? If , then by the definition of , ; if , then by the definition again . Either way we get a contradiction, so is not in the image, and is not a surjection. On the other hand, is an injection, so ; put together, the inequality is strict.∎

is this element in ?
abcde
D
flips the diagonal: it differs from in cell
Figure 1·8Draw each as a row, with a dot in cell meaning . flips every cell along the diagonal, so it differs from every row in at least one cell. It is the same move as in Figure 1·6.

So there is a tower with no top:

<
<
<
Each step up is strictly bigger, without end
Figure 1·9: there is no largest infinity.

Incidentally, and are the same size: think of a subset as the digits of a binary fraction, 0 for “not in” and 1 for “in.” A rigorous proof has to deal with duplicates like ; in the next lecture, the Cantor–Schröder–Bernstein theorem will settle it in one line.

The same diagonal

When Russell read Cantor's theorem, he thought of this: the “set” of all sets, , should have a power set bigger than itself; but the elements of the power set are all sets, so , a contradiction. Replace in the proof above by the identity map, and becomes , “the set of all sets that do not belong to themselves.” In 1902 he wrote to tell Frege, whose “Basic Laws of Arithmetic,” volume II, was then at the printer. From then on, naive set theory had to be rebuilt on axioms, which sets the stage for Lecture 4.

This diagonal later turned up again and again:

YearWhat's on the diagonalConclusion
1891A set and its subsetsThere is no largest infinity
1901Sets that do not belong to themselvesNaive set theory is inconsistent (Russell)
1931A sentence saying “I am not provable”Strong enough formal systems are incomplete (Gödel)
1936A program that does the opposite of what a halting decider predictsThe halting problem is undecidable (Turing; Rice's theorem, from an earlier essay, rests on it)
1969A fixed-point theoremUnifies the first three in a single statement (Lawvere; in 2003 Yanofsky brought in the halting problem too)
Figure 1·10Several faces of the same proof (schematic; the precise forms differ from case to case).
Theorem 7Lawvere's fixed-point theorem (set version)

If there is a surjection (from onto “all functions on with values in ”), then every function has a fixed point.

ProofLet . Then is a function on with values in , so by surjectivity there is an with . Then , so is a fixed point of .∎

Take , and let be negation. has no fixed point, so there is no surjection . And is just the set of all subsets of (with 0 and 1 marking “out” and “in”), so this is exactly Theorem 6. In the same paper Lawvere also derived the results of Russell, Gödel and Tarski; in 2003 Yanofsky followed the same path and brought in the halting problem and Rice's theorem as well. Mac Lane, who came up in an earlier essay, and Lawvere here are both category theorists; for them, looking at mathematics means looking for this kind of “same shape.”

5
CODA

In closing

This lecture did one thing: it compared infinities by asking whether they can be paired up. The comparison gives two tiers. Those that can be lined up: the natural numbers, the integers, the rationals, the algebraic numbers. Those that cannot: the reals, the transcendental numbers, . And going up, there is no end.

My favorite step is the one from 1874. To prove that transcendental numbers exist, Cantor did not try to out-clever Liouville at “building” them; he changed the question and counted. Many of the “there exists” and “it is impossible” results in mathematics came about in just this way, by asking the question differently.

Two questions for later. Which is bigger, the real line or the plane ? When Cantor found the answer in 1877, he could hardly believe it himself; that is for the next lecture. And is there a third size between and ? That is the continuum hypothesis, in Lecture 4.

No one shall expel us
from the paradise
that Cantor has created.
Hilbert, “On the Infinite” (1926)
✎ A puzzle for the comments

Starting from 1 with Newman's formula, which fraction is the 2026th term? The answer comes in the next lecture. And do tell us: when you first heard that “infinities come in sizes,” which step did you find hardest to accept?

References
  1. G. Galilei, Discorsi e dimostrazioni matematiche intorno a due nuove scienze (1638), First Day
  2. G. Cantor, “Über eine Eigenschaft des Inbegriffes aller reellen algebraischen Zahlen”, J. reine angew. Math. 77 (1874)
  3. G. Cantor, “Über eine elementare Frage der Mannigfaltigkeitslehre”, Jahresbericht der DMV 1 (1891)
  4. R. Dedekind, Was sind und was sollen die Zahlen? (1888)
  5. J. Liouville, Comptes rendus 18 (1844); J. math. pures appl. 16 (1851); C. Hermite (1873); F. Lindemann (1882)
  6. R. Gray, “Georg Cantor and Transcendental Numbers”, Amer. Math. Monthly 101 (1994)
  7. N. Calkin, H. Wilf, “Recounting the Rationals”, Amer. Math. Monthly 107 (2000)
  8. R. Fueter, G. Pólya, “Rationale Abzählung der Gitterpunkte”, Vierteljahrsschrift Naturf. Ges. Zürich 68 (1923)
  9. D. Knuth et al., “Recounting the Rationals, Continued” (Problem 10906), Amer. Math. Monthly 110 (2003); M. Stern, J. reine angew. Math. 55 (1858)
  10. F. W. Lawvere, “Diagonal arguments and cartesian closed categories”, LNM 92 (1969); N. Yanofsky, Bull. Symbolic Logic 9 (2003)
  11. Letter from B. Russell to G. Frege (June 16, 1902); B. Russell, The Principles of Mathematics (1903), §100
  12. D. Hilbert, “Über das Unendliche”, Math. Annalen 95 (1926)
  13. D. Deutsch, The Beginning of Infinity (2011), chapter 8
Note: All figures are schematic illustrations made for this article; the data in Figures 1·1, 1·3, 1·4, 1·5 and 1·6 were computed by this article's script.
犹剑在心
北极甜虾(剑心犹在!)
— End of Lecture 1 —

← All essays