# Cantor's first set theory article

Cantor's first set theory article contains Georg Cantor's first theorems of transfinite set theory, which studies infinite sets and their properties. One of these theorems is his "revolutionary discovery" that the set of all real numbers is uncountably, rather than countably, infinite. This theorem is proved using Cantor's first uncountability proof, which differs from the more familiar proof using his diagonal argument. The title of the article, "On a Property of the Collection of All Real Algebraic Numbers" ("Ueber eine Eigenschaft des Inbegriffes aller reellen algebraischen Zahlen"), refers to its first theorem: the set of real algebraic numbers is countable. Cantor's article was published in 1874. In 1879, he modified his uncountability proof by using the topological notion of a set being dense in an interval.
Cantor's article also contains a proof of the existence of transcendental numbers. Both constructive and non-constructive proofs have been presented as "Cantor's proof." The popularity of presenting a non-constructive proof has led to a misconception that Cantor's arguments are non-constructive. Since the proof that Cantor published either constructs transcendental numbers or does not, an analysis of his article can determine whether or not this proof is constructive. Cantor's correspondence with Richard Dedekind shows the development of his ideas and reveals that he had a choice between two proofs: a non-constructive proof that uses the uncountability of the real numbers and a constructive proof that does not use uncountability.
Historians of mathematics have examined Cantor's article and the circumstances in which it was written. For example, they have discovered that Cantor was advised to leave out his uncountability theorem in the article he submitted — he added it during proofreading. They have traced this and other facts about the article to the influence of Karl Weierstrass and Leopold Kronecker. Historians have also studied Dedekind's contributions to the article, including his contributions to the theorem on the countability of the real algebraic numbers. In addition, they have recognized the role played by the uncountability theorem and the concept of countability in the development of set theory, measure theory, and the Lebesgue integral.

## The article

Cantor's article is short, less than four and a half pages. It begins with a discussion of the real algebraic numbers and a statement of his first theorem: The set of real algebraic numbers can be put into one-to-one correspondence with the set of positive integers. Cantor restates this theorem in terms more familiar to mathematicians of his time: "The set of real algebraic numbers can be written as an infinite sequence in which each number appears only once."
Cantor's second theorem works with a closed interval [a, b], which is the set of real numbers ≥ a and ≤ b. The theorem states: Given any sequence of real numbers x$_1$, x$_2$, x$_3$, ... and any interval [a, b], there is a number in [a, b] that is not contained in the given sequence. Hence, there are infinitely many such numbers.
Cantor observes that combining his two theorems yields a new proof of Liouville's theorem that every interval [a, b] contains infinitely many transcendental numbers.
Cantor then remarks that his second theorem is:
   the reason why collections of real numbers forming a so-called continuum (such as, all real numbers which are ≥ 0 and ≤ 1) cannot correspond one-to-one with the collection (ν) [the collection of all positive integers]; thus I have found the clear difference between a so-called continuum and a collection like the totality of real algebraic numbers.
This remark contains Cantor's uncountability theorem, which only states that an interval [a, b] cannot be put into one-to-one correspondence with the set of positive integers. It does not state that this interval is an infinite set of larger cardinality than the set of positive integers. Cardinality is defined in Cantor's next article, which was published in 1878.
* Proof of Cantor's uncountability theorem
* Cantor does not explicitly prove his uncountability theorem, which follows easily from his second theorem. It can be proved by using proof by contradiction. Assume that the interval [a, b] can be put into one-to-one correspondence with the set of positive integers, or equivalently: The real numbers in [a, b] can be written as a sequence in which each real number appears only once. Applying Cantor's second theorem to this sequence and [a, b] produces a real number in [a, b] that does not belong to the sequence. This contradicts the original assumption and proves the uncountability theorem.
Cantor only states his uncountability theorem. He does not use it in any proofs.

## The proofs
### First theorem

To prove that the set of real algebraic numbers is countable, define the height of a polynomial of degree n with integer coefficients as: n − 1 + |a$_0$| + |a$_1$| + ... + |a$_n$|, where a$_0$, a$_1$, ..., a$_n$ are the coefficients of the polynomial. Order the polynomials by their height, and order the real roots of polynomials of the same height by numeric order. Since there are only a finite number of roots of polynomials of a given height, these orderings put the real algebraic numbers into a sequence. Cantor went a step further and produced a sequence in which each real algebraic number appears just once. He did this by only using polynomials that are irreducible over the integers. The following table contains the beginning of Cantor's enumeration.
Cantor's enumeration of the real algebraic numbers :
| Real algebraic number | Polynomial | Height of polynomial |
| x$_1$ = 0 | x | 1 |
| x$_2$ = −1 | x + 1 | 2 |
| x$_3$ = 1 | x − 1 | 2 |
| x$_4$ = −2 | x + 2 | 3 |
| x$_5$ = −⁠1/2⁠ | 2x + 1 | 3 |
| x$_6$ = ⁠1/2⁠ | 2x − 1 | 3 |
| x$_7$ = 2 | x − 2 | 3 |
| x$_8$ = −3 | x + 3 | 4 |
| x$_9$ = ⁠−1 − √5/2⁠ | x$^2$ + x − 1 | 4 |
| x$_{10}$ = −√2 | x$^2$ − 2 | 4 |
| x$_{11}$ = −⁠1/√2⁠ | 2x$^2$ − 1 | 4 |
| x$_{12}$ = ⁠1 − √5/2⁠ | x$^2$ − x − 1 | 4 |
| x$_{13}$ = −⁠1/3⁠ | 3x + 1 | 4 |
| x$_{14}$ = ⁠1/3⁠ | 3x − 1 | 4 |
| x$_{15}$ = ⁠−1 + √5/2⁠ | x$^2$ + x − 1 | 4 |
| x$_{16}$ = ⁠1/√2⁠ | 2x$^2$ − 1 | 4 |
| x$_{17}$ = √2 | x$^2$ − 2 | 4 |
| x$_{18}$ = ⁠1 + √5/2⁠ | x$^2$ − x − 1 | 4 |
| x$_{19}$ = 3 | x − 3 | 4 |

### Second theorem

Only the first part of Cantor's second theorem needs to be proved. It states: Given any sequence of real numbers x$_1$, x$_2$, x$_3$, ... and any interval [a, b], there is a number in [a, b] that is not contained in the given sequence.
To find a number in [a, b] that is not contained in the given sequence, construct two sequences of real numbers as follows: Find the first two numbers of the given sequence that are in the open interval (a, b). Denote the smaller of these two numbers by a$_1$ and the larger by b$_1$. Similarly, find the first two numbers of the given sequence that are in (a$_1$, b$_1$). Denote the smaller by a$_2$ and the larger by b$_2$. Continuing this procedure generates a sequence of intervals (a$_1$, b$_1$), (a$_2$, b$_2$), (a$_3$, b$_3$), ... such that each interval in the sequence contains all succeeding intervals — that is, it generates a sequence of nested intervals. This implies that the sequence a$_1$, a$_2$, a$_3$, ... is increasing and the sequence b$_1$, b$_2$, b$_3$, ... is decreasing.
Either the number of intervals generated is finite or infinite. If finite, let (a$_L$, b$_L$) be the last interval. If infinite, take the limits a$_∞$ = lim$_{n→∞}$ a$_n$ and b$_∞$ = lim$_{n→∞}$ b$_n$. Since a$_n$ < b$_n$ for all n, either a$_∞$ = b$_∞$ or a$_∞$ < b$_∞$. Thus, there are three cases to consider:
    Case 1: There is a last interval (a$_L$, b$_L$). Since at most one x$_n$ can be in this interval, every y in this interval except x$_n$ (if it exists) is not in the given sequence.
    Case 2: a$_∞$ = b$_∞$. Then a$_∞$ is not in the sequence since for all n : a$_∞$ is in the interval (a$_n$, b$_n$) but x$_n$ does not belong to (a$_n$, b$_n$). In symbols: a$_∞$ ∈ (a$_n$, b$_n$) but x$_n$ ∉ (a$_n$, b$_n$).
    Proof that for all n :  x$_n$  ∉ (a$_n$, b$_n$)   This lemma is used by cases 2 and 3. It is implied by the stronger lemma: For all n, (a$_n$, b$_n$) excludes x$_1$, ..., x$_{2n}$. This is proved by induction. Basis step: Since the endpoints of (a$_1$, b$_1$) are x$_1$ and x$_2$ and an open interval excludes its endpoints, (a$_1$, b$_1$) excludes x$_1$, x$_2$. Inductive step: Assume that (a$_n$, b$_n$) excludes x$_1$, ..., x$_{2n}$. Since (a$_{n+1}$, b$_{n+1}$) is a subset of (a$_n$, b$_n$) and its endpoints are x$_{2n+1}$ and x$_{2n+2}$, (a$_{n+1}$, b$_{n+1}$) excludes x$_1$, ..., x$_{2n}$ and x$_{2n+1}$, x$_{2n+2}$. Hence, for all n, (a$_n$, b$_n$) excludes x$_1$, ..., x$_{2n}$. Therefore, for all n, x$_n$ ∉ (a$_n$, b$_n$).
    Case 3: a$_∞$ < b$_∞$. Then every y in [a$_∞$, b$_∞$] is not contained in the given sequence since for all n : y belongs to (a$_n$, b$_n$) but x$_n$ does not.
The proof is complete since, in all cases, at least one real number in [a, b] has been found that is not contained in the given sequence.
Cantor's proofs are constructive and have been used to write a computer program that generates the digits of a transcendental number. This program applies Cantor's construction to a sequence containing all the real algebraic numbers between 0 and 1. The article that discusses this program gives some of its output, which shows how the construction generates a transcendental.

### Example of Cantor's construction

An example illustrates how Cantor's construction works. Consider the sequence: ⁠1/2⁠, ⁠1/3⁠, ⁠2/3⁠, ⁠1/4⁠, ⁠3/4⁠, ⁠1/5⁠, ⁠2/5⁠, ⁠3/5⁠, ⁠4/5⁠, ... This sequence is obtained by ordering the rational numbers in (0, 1) by increasing denominators, ordering those with the same denominator by increasing numerators, and omitting reducible fractions. The table below shows the first five steps of the construction. The table's first column contains the intervals (a$_n$, b$_n$). The second column lists the terms visited during the search for the first two terms in (a$_n$, b$_n$). These two terms are in red.
Generating a number using Cantor's construction :
| Interval | Finding the next interval | Interval (decimal) |
| $\left(\;{\frac {1}{3}},\;\;\!{\frac {1}{2}}\;\right)$ | $\;{\frac {2}{3}},\;\!{\frac {1}{4}},\;\!{\frac {3}{4}},\;\!{\frac {1}{5}},\;\!{\color {red}{\frac {2}{5}},}\;\!\;\!{\frac {3}{5}},\;\!{\frac {4}{5}},\;\!{\frac {1}{6}},\;\!{\frac {5}{6}},\;\!{\frac {1}{7}},\;\!{\frac {2}{7}},\;\!{\color {red}{\frac {3}{7}}}$ | $\left(0.3333\dots ,\;0.5000\dots \right)$ |
| $\left(\;{\frac {2}{5}},\;\;\!{\frac {3}{7}}\;\right)$ | $\;{\frac {4}{7}},\;\dots ,\;{\frac {1}{12}},{\color {red}{\frac {5}{12}},}\;\!{\frac {7}{12}},\;\dots ,\;{\frac {6}{17}},{\color {red}{\frac {7}{17}}}$ | $\left(0.4000\dots ,\;0.4285\dots \right)$ |
| $\left({\frac {7}{17}},{\frac {5}{12}}\right)$ | ${\frac {8}{17}},\;\!\dots ,\;\!{\frac {11}{29}},{\color {red}{\frac {12}{29}},}\;\!{\frac {13}{29}},\;\dots ,\;{\frac {16}{41}},{\color {red}{\frac {17}{41}}}$ | $\left(0.4117\dots ,\;0.4166\dots \right)$ |
| $\left({\frac {12}{29}},{\frac {17}{41}}\right)$ | ${\frac {18}{41}},\;\!\dots ,\;\!{\frac {27}{70}},{\color {red}{\frac {29}{70}},}\;\!{\frac {31}{70}},\;\dots ,\;{\frac {40}{99}},{\color {red}{\frac {41}{99}}}$ | $\left(0.4137\dots ,\;0.4146\dots \right)$ |
| $\left({\frac {41}{99}},{\frac {29}{70}}\right)$ | ${\frac {43}{99}},\dots ,{\frac {69}{169}},{\color {red}{\frac {70}{169}},}\;\!{\frac {71}{169}},\,\dots ,{\frac {98}{239}},{\color {red}{\frac {99}{239}}}$ | $\left(0.4141\dots ,\;0.4142\dots \right)$ |
Since the sequence contains all the rational numbers in (0, 1), the construction generates an irrational number, which turns out to be √2 − 1.
* Proof that the number generated is √2 − 1
* The proof uses Farey sequences and simple continued fractions. The Farey sequence $F_{n}$ is the increasing sequence of completely reduced fractions whose denominators are $\leq n.$ If ${\frac {a}{b}}$ and ${\frac {c}{d}}$ are adjacent in a Farey sequence, the lowest denominator fraction between them is their mediant ${\frac {a+c}{b+d}}.$ This mediant is adjacent to both ${\frac {a}{b}}$ and ${\frac {c}{d}}$ in the Farey sequence $F_{b+d}.$
* Cantor's construction produces mediants because the rational numbers were sequenced by increasing denominator. The first interval in the table is $({\frac {1}{3}},{\frac {1}{2}}).$ Since ${\frac {1}{3}}$ and ${\frac {1}{2}}$ are adjacent in $F_{3},$ their mediant ${\frac {2}{5}}$ is the first fraction in the sequence between ${\frac {1}{3}}$ and ${\frac {1}{2}}.$ Hence, ${\frac {1}{3}}<{\frac {2}{5}}<{\frac {1}{2}}.$ In this inequality, ${\frac {1}{2}}$ has the smallest denominator, so the second fraction is the mediant of ${\frac {2}{5}}$ and ${\frac {1}{2}},$ which equals ${\frac {3}{7}}.$ This implies: ${\frac {1}{3}}<{\frac {2}{5}}<{\frac {3}{7}}<{\frac {1}{2}}.$ Therefore, the next interval is $({\frac {2}{5}},{\frac {3}{7}}).$
* We will prove that the endpoints of the intervals converge to the continued fraction $[0;2,2,\dots ].$ This continued fraction is the limit of its convergents:
* ${\frac {p_{n}}{q_{n}}}=[0;2,\dots ,2]\;\;(n\;2{\text{'s}}).$
* The $p_{n}$ and $q_{n}$ sequences satisfy the equations:
* $p_{0}=0\;\;\;\;\;\;\;p_{1}=1\;\;\;\;\;\;\;p_{n+1}=2p_{n}+p_{n-1}{\text{ for }}n\geq 1$
* $q_{0}=1\;\;\;\;\;\;\;q_{1}=2\;\;\;\;\;\;\;q_{n+1}=2q_{n}+q_{n-1}{\text{ for }}n\geq 1$
* First, we prove by induction that for odd n, the n-th interval in the table is:
* $\left({\frac {p_{n}+p_{n-1}}{q_{n}+q_{n-1}}},{\frac {p_{n}}{q_{n}}}\right)\!,$
* and for even n, the interval's endpoints are reversed: $\left({\frac {p_{n}}{q_{n}}},{\frac {p_{n}+p_{n-1}}{q_{n}+q_{n-1}}}\right)\!.$
* This is true for the first interval since:
* $\left({\frac {p_{1}+p_{0}}{q_{1}+q_{0}}},{\frac {p_{1}}{q_{1}}}\right)=\left({\frac {1}{3}},{\frac {1}{2}}\right)\!.$
* Assume that the inductive hypothesis is true for the k-th interval. If k is odd, this interval is:
* $\left({\frac {p_{k}+p_{k-1}}{q_{k}+q_{k-1}}},{\frac {p_{k}}{q_{k}}}\right)\!.$
* The mediant of its endpoints ${\frac {2p_{k}+p_{k-1}}{2q_{k}+q_{k-1}}}={\frac {p_{k+1}}{q_{k+1}}}$ is the first fraction in the sequence between these endpoints.
* Hence, ${\frac {p_{k}+p_{k-1}}{q_{k}+q_{k-1}}}<{\frac {p_{k+1}}{q_{k+1}}}<{\frac {p_{k}}{q_{k}}}.$
* In this inequality, ${\frac {p_{k}}{q_{k}}}$ has the smallest denominator, so the second fraction is the mediant of ${\frac {p_{k+1}}{q_{k+1}}}$ and ${\frac {p_{k}}{q_{k}}},$ which equals ${\frac {p_{k+1}+p_{k}}{p_{k+1}+q_{k}}}.$
* This implies: ${\frac {p_{k}+p_{k-1}}{q_{k}+q_{k-1}}}<{\frac {p_{k+1}}{q_{k+1}}}<{\frac {p_{k+1}+p_{k}}{p_{k+1}+q_{k}}}<{\frac {p_{k}}{q_{k}}}.$
* Therefore, the (k + 1)-st interval is $\left({\frac {p_{k+1}}{q_{k+1}}},{\frac {p_{k+1}+p_{k}}{p_{k+1}+q_{k}}}\right)\!.$
* This is the desired interval; ${\frac {p_{k+1}}{q_{k+1}}}$ is the left endpoint because k + 1 is even. Thus, the inductive hypothesis is true for the (k + 1)-st interval. For even k, the proof is similar. This completes the inductive proof.
* Since the right endpoints of the intervals are decreasing and every other endpoint is ${\frac {p_{2n-1}}{q_{2n-1}}},$ their limit equals
* $\lim _{n\to \infty }{\frac {p_{n}}{q_{n}}}.$ The left endpoints have the same limit because they are increasing and every other endpoint is ${\frac {p_{2n}}{q_{2n}}}.$ As mentioned above, this limit is the continued fraction $[0;2,2,\dots ],$ which equals ${\sqrt {2}}-1.$

## Cantor's 1879 uncountability proof
### Everywhere dense

In 1879, Cantor published a new uncountability proof that modifies his 1874 proof. He first defines the topological notion of a point set P being "everywhere dense in an interval":
    If P lies partially or completely in the interval [α, β], then the remarkable case can happen that every interval [γ, δ] contained in [α, β], no matter how small, contains points of P. In such a case, we will say that P is everywhere dense in the interval [α, β].
In this discussion of Cantor's proof: a, b, c, d are used instead of α, β, γ, δ. Also, Cantor only uses his interval notation if the first endpoint is less than the second. For this discussion, this means that (a, b) implies a < b.
Since the discussion of Cantor's 1874 proof was simplified by using open intervals rather than closed intervals, the same simplification is used here. This requires an equivalent definition of everywhere dense: A set P is everywhere dense in the interval [a, b] if and only if every open subinterval (c, d) of [a, b] contains at least one point of P.
Cantor did not specify how many points of P an open subinterval (c, d) must contain. He did not need to specify this because the assumption that every open subinterval contains at least one point of P implies that every open subinterval contains infinitely many points of P.

### Cantor's 1879 proof

Cantor modified his 1874 proof with a new proof of its second theorem: Given any sequence P of real numbers x$_1$, x$_2$, x$_3$, ... and any interval [a, b], there is a number in [a, b] that is not contained in P. Cantor's new proof has only two cases. First, it handles the case of P not being dense in the interval, then it deals with the more difficult case of P being dense in the interval. This division into cases not only indicates which sequences are more difficult to handle, but it also reveals the important role denseness plays in the proof.
In the first case, P is not dense in [a, b]. By definition, P is dense in [a, b] if and only if for all subintervals (c, d) of [a, b], there is an x ∈ P such that x ∈ (c, d). Taking the negation of each side of the "if and only if" produces: P is not dense in [a, b] if and only if there exists a subinterval (c, d) of [a, b] such that for all x ∈ P : x ∉ (c, d). Therefore, every number in (c, d) is not contained in the sequence P. This case handles case 1 and case 3 of Cantor's 1874 proof.
In the second case, which handles case 2 of Cantor's 1874 proof, P is dense in [a, b]. The denseness of sequence P is used to recursively define a sequence of nested intervals that excludes all the numbers in P and whose intersection contains a single real number in [a, b]. The sequence of intervals starts with (a, b). Given an interval in the sequence, the next interval is obtained by finding the two numbers with the least indices that belong to P and to the current interval. These two numbers are the endpoints of the next open interval. Since an open interval excludes its endpoints, every nested interval eliminates two numbers from the front of sequence P, which implies that the intersection of the nested intervals excludes all the numbers in P. Details of this proof and a proof that this intersection contains a single real number in [a, b] are given below.
* Definition and proofs for the nested intervals
* The denseness of sequence P is used to recursively define a nested sequence of intervals that excludes all of the numbers in P. The base case starts with the interval (a, b). Since P is dense in [a, b], there are infinitely many numbers of P in (a, b). Let x$_{k1}$ be the number with the least index and x$_{k2}$ be the number with the next larger index, and let a$_1$ be the smaller and b$_1$ be the larger of these two numbers. Then, k$_1$ < k$_2$, a < a$_1$ < b$_1$ < b, and (a$_1$, b$_1$) is a proper subinterval of (a, b). Also, x$_m$ ∉ (a$_1$, b$_1$) for m ≤ k$_2$ since these x$_m$ are the endpoints of (a$_1$, b$_1$). Repeating the above proof with the interval (a$_1$, b$_1$) produces k$_3$, k$_4$, a$_2$, b$_2$ such that k$_1$ < k$_2$ < k$_3$ < k$_4$ and a < a$_1$ < a$_2$ < b$_2$ < b$_1$ < b and x$_m$ ∉ (a$_2$, b$_2$) for m ≤ k$_4$.
* The recursive step starts with the interval (a$_{n–1}$, b$_{n–1}$), the inequalities k$_1$ < k$_2$ < . . . < k$_{2n–2}$ < k$_{2n–1}$ and a < a$_1$ < . . . < a$_{n–1}$ < b$_{n–1}$ . . . < b$_1$ < b, and the fact that the interval (a$_{n–1}$, b$_{n–1}$) excludes the first 2n –2 members of the sequence P — that is, x$_m$ ∉ (a$_{n–1}$, b$_{n–1}$) for m ≤ k$_{2n–2}$. Since P is dense in [a, b], there are infinitely many numbers of P in (a$_{n–1}$, b$_{n–1}$). Let x$_{k2n–1}$ be the number with the least index and x$_{k2n}$ be the number with the next larger index, and let a$_n$ be the smaller and b$_n$ be the larger of these two numbers. Then, k$_{2n–1}$ < k$_{2n}$, a$_{n–1}$ < a$_n$ < b$_n$ < b$_{n–1}$, and (a$_n$, b$_n$) is a proper subinterval of (a$_{n–1}$, b$_{n–1}$). Combining these inequalities with the ones for step n –1 of the recursion produces k$_1$ < k$_2$ < . . . < k$_{2n–1}$ < k$_{2n}$ and a < a$_1$ < . . . < a$_n$ < b$_n$ . . . < b$_1$ < b. Also, x$_m$ ∉ (a$_n$, b$_n$) for m = k$_{2n–1}$ and m = k$_{2n}$ since these x$_m$ are the endpoints of (a$_n$, b$_n$). This together with (a$_{n–1}$, b$_{n–1}$) excluding the first 2n –2 members of sequence P implies that the interval (a$_n$, b$_n$) excludes the first 2n members of P — that is, x$_m$ ∉ (a$_n$, b$_n$) for m ≤ k$_{2n}$. Therefore, for all n, x$_n$ ∉ (a$_n$, b$_n$) since n ≤ k$_{2n}$.
* The sequence a$_n$ is increasing and bounded above by b, so the limit A = lim$_{n→∞}$ a$_n$ exists. Similarly, the limit B = lim$_{n→∞}$ b$_n$ exists since the sequence b$_n$ is decreasing and bounded below by a. Also, a$_n$ < b$_n$ implies A ≤ B. If A < B, then for every n: x$_n$ ∉ (A, B) because x$_n$ is not in the larger interval (a$_n$, b$_n$). This contradicts P being dense in [a, b]. Hence, A = B. For all n, A ∈ (a$_n$, b$_n$) but x$_n$ ∉ (a$_n$, b$_n$). Therefore, A is a number in [a, b] that is not contained in P.

## The development of Cantor's ideas

The development leading to Cantor's 1874 article appears in the correspondence between Cantor and Richard Dedekind. On November 29, 1873, Cantor asked Dedekind whether the collection of positive integers and the collection of positive real numbers "can be corresponded so that each individual of one collection corresponds to one and only one individual of the other?" Cantor added that collections having such a correspondence include the collection of positive rational numbers, and collections of the form (a$_{n1,n2,...,nν}$) where n$_1$, n$_2$, . . . , n$_ν$, and ν are positive integers.
Dedekind replied that he was unable to answer Cantor's question, and said that it "did not deserve too much effort because it has no particular practical interest". Dedekind also sent Cantor a proof that the set of algebraic numbers is countable.
On December 2, Cantor responded that his question does have interest: "It would be nice if it could be answered; for example, provided that it could be answered no, one would have a new proof of Liouville's theorem that there are transcendental numbers."
On December 7, Cantor sent Dedekind a proof by contradiction that the set of real numbers is uncountable. Cantor starts by assuming that the real numbers in $[0,1]$ can be written as a sequence. Then, he applies a construction to this sequence to produce a number in $[0,1]$ that is not in the sequence, thus contradicting his assumption. Together, the letters of December 2 and 7 provide a non-constructive proof of the existence of transcendental numbers. Also, the proof in Cantor's December 7 letter shows some of the reasoning that led to his discovery that the real numbers form an uncountable set.
* Cantor's December 7, 1873 proof
* The proof is by contradiction and starts by assuming that the real numbers in $[0,1]$ can be written as a sequence:
* $(\mathrm {I} )\;\;\omega _{1},\,\omega _{2},\,\omega _{3},\,\ldots ,\,\omega _{n},\,\ldots$
* An increasing sequence is extracted from this sequence by letting   $\omega _{1}^{1}=$ the first term$,\ \omega _{1}^{2}=$ the next largest term following $\omega _{1}^{1},\ \omega _{1}^{3}=$ the next largest term following $\omega _{1}^{2},$  and so forth. The same procedure is applied to the remaining members of the original sequence to extract another increasing sequence. By continuing this process of extracting sequences, one sees that the sequence $(\mathrm {I} )$ can be decomposed into the infinitely many sequences:
* $(1)\;\;\omega _{1}^{1},\,\omega _{1}^{2},\,\omega _{1}^{3},\,\ldots ,\,\omega _{1}^{n},\,\ldots$
* $(2)\;\;\omega _{2}^{1},\,\omega _{2}^{2},\,\omega _{2}^{3},\,\ldots ,\,\omega _{2}^{n},\,\ldots$
* $(3)\;\;\omega _{3}^{1},\,\omega _{3}^{2},\,\omega _{3}^{3},\,\ldots ,\,\omega _{3}^{n},\,\ldots$
* $\ \ \vdots$
* Let $[p,q]$ be an interval such that no term of sequence (1) lies in it. For example, let $p$ and $q$ satisfy $\omega _{1}^{1}<p<q<\omega _{1}^{2}.$ Then $\omega _{1}^{1}<p<q<\omega _{1}^{n}$ for $n\geq 2,$ so no term of sequence (1) lies in $[p,q].$
* Now consider whether the terms of the other sequences lie outside $[p,q].$ All terms of some of these sequences may lie outside of $[p,q];$ however, there must be some sequence such that not all its terms lie outside $[p,q].$ Otherwise, the numbers in $[p,q]$ would not be contained in sequence $(\mathrm {I} ),$ contrary to the initial hypothesis. Let sequence $(k)$ be the first sequence that contains a term in $[p,q]$ and let $\omega _{k}^{n}$ be the first term. Since $p<\omega _{k}^{n}<q,$ let $p_{1}$ and $q_{1}$ satisfy $p<p_{1}<q_{1}<\omega _{k}^{n}<q.$ Then $[p,q]$ is a proper superset of $[p_{1},q_{1}]$ (in symbols, $[p,q]\supsetneq [p_{1},q_{1}]$). Also, the terms of sequences $(1),(2),\ldots ,(k-1)$ lie outside of $[p_{1},q_{1}].$
* Repeat the above argument starting with $[p_{1},q_{1}]\!:\,$ Let sequence $(k_{1})$ be the first sequence containing a term in $[p_{1},q_{1}]$ and let $\omega _{k_{1}}^{n}$ be the first term. Since $\ p_{1}<\omega _{k_{1}}^{n}<q_{1},$ let $p_{2}$ and $q_{2}$ satisfy $p_{1}<p_{2}<q_{2}<\omega _{k_{1}}^{n}<q_{1}.$ Then $[p_{1},q_{1}]\supsetneq [p_{2},q_{2}]$ and the terms of sequences $(k_{1}),\ldots ,(k_{2}-1)$ lie outside of $[p_{2},q_{2}].$
* One sees that it is possible to form an infinite sequence of nested intervals $[p,q]\supsetneq [p_{1},q_{1}]\supsetneq [p_{2},q_{2}]\supsetneq \ldots$ such that:
* the members of the $1^{\text{st}},2^{\text{nd}},\ldots ,(k-1)^{\text{st}}$ sequence lie outside $[p,q];$
* the members of the $k^{\text{th}},\ldots ,(k_{1}-1)^{\text{st}}$ sequence lie outside $[p_{1},q_{1}];$
* the members of the $(k_{1})^{\text{th}},\ldots ,(k_{2}-1)^{\text{st}}$ sequence lie outside $[p_{2},q_{2}];$
* $\ldots ;$
* Since $p_{n}$ and $q_{n}$ are bounded monotonic sequences, the limits $\lim _{n\to \infty }p_{n}$ and $\lim _{n\to \infty }q_{n}$ exist. Also, $p_{n}<q_{n}$ for all $n$ implies $\lim _{n\to \infty }p_{n}\leq \lim _{n\to \infty }q_{n}.$ Hence, there is at least one number $\eta$ in $(0,1)$ that lies in all the intervals $[p,q]$ and $[p_{n},q_{n}].$ Namely, $\eta$ can be any number in $[\lim _{n\to \infty }p_{n},\lim _{n\to \infty }q_{n}].$ This implies that $\eta$ lies outside all the sequences $(1),(2),(3),\ldots ,$ contradicting the initial hypothesis that sequence $(\mathrm {I} )$ contains all the real numbers in $[0,1].$ Therefore, the set of all real numbers is uncountable.
Dedekind received Cantor's proof on December 8. On that same day, Dedekind simplified the proof and mailed his proof to Cantor. Cantor used Dedekind's proof in his article. The letter containing Cantor's December 7 proof was not published until 1937.
On December 9, Cantor announced the theorem that allowed him to construct transcendental numbers as well as prove the uncountability of the set of real numbers:
   I show directly that if I start with a sequence
   (1) ω$_1$, ω$_2$, ... , ω$_n$, ...
   I can determine, in every given interval [α, β], a number η that is not included in (1).
This is the second theorem in Cantor's article. It comes from realizing that his construction can be applied to any sequence, not just to sequences that supposedly enumerate the real numbers. So Cantor had a choice between two proofs that demonstrate the existence of transcendental numbers: one proof is constructive, but the other is not. These two proofs can be compared by starting with a sequence consisting of all the real algebraic numbers.
The constructive proof applies Cantor's construction to this sequence and the interval [a, b] to produce a transcendental number in this interval.
The non-constructive proof uses two proofs by contradiction:
* The proof by contradiction used to prove the uncountability theorem (see Proof of Cantor's uncountability theorem).
* The proof by contradiction used to prove the existence of transcendental numbers from the countability of the real algebraic numbers and the uncountability of real numbers. Cantor's December 2nd letter mentions this existence proof but does not contain it. Here is a proof: Assume that there are no transcendental numbers in [a, b]. Then all the numbers in [a, b] are algebraic. This implies that they form a subsequence of the sequence of all real algebraic numbers, which contradicts Cantor's uncountability theorem. Thus, the assumption that there are no transcendental numbers in [a, b] is false. Therefore, there is a transcendental number in [a, b].
Cantor chose to publish the constructive proof, which not only produces a transcendental number but is also shorter and avoids two proofs by contradiction. The non-constructive proof from Cantor's correspondence is simpler than the one above because it works with all the real numbers rather than the interval [a, b]. This eliminates the subsequence step and all occurrences of [a, b] in the second proof by contradiction.

## A misconception about Cantor's work

Akihiro Kanamori, who specializes in set theory, stated that "Accounts of Cantor's work have mostly reversed the order for deducing the existence of transcendental numbers, establishing first the uncountability of the reals and only then drawing the existence conclusion from the countability of the algebraic numbers. In textbooks the inversion may be inevitable, but this has promoted the misconception that Cantor's arguments are non-constructive."
Cantor's published proof and the reverse-order proof both use the theorem: Given a sequence of reals, a real can be found that is not in the sequence. By applying this theorem to the sequence of real algebraic numbers, Cantor produced a transcendental number. He then proved that the reals are uncountable: Assume that there is a sequence containing all the reals. Applying the theorem to this sequence produces a real not in the sequence, contradicting the assumption that the sequence contains all the reals. Hence, the reals are uncountable. The reverse-order proof starts by first proving the reals are uncountable. It then proves that transcendental numbers exist: If there were no transcendental numbers, all the reals would be algebraic and hence countable, which contradicts what was just proved. This contradiction proves that transcendental numbers exist without constructing any.
The correspondence containing Cantor's non-constructive reasoning was published in 1937. By then, other mathematicians had rediscovered his non-constructive, reverse-order proof. As early as 1921, this proof was called "Cantor's proof" and criticized for not producing any transcendental numbers. In that year, Oskar Perron gave the reverse-order proof and then stated: "... Cantor's proof for the existence of transcendental numbers has, along with its simplicity and elegance, the great disadvantage that it is only an existence proof; it does not enable us to actually specify even a single transcendental number."
As early as 1930, some mathematicians have attempted to correct this misconception of Cantor's work. In that year, the set theorist Abraham Fraenkel stated that Cantor's method is "... a method that incidentally, contrary to a widespread interpretation, is fundamentally constructive and not merely existential." In 1972, Irving Kaplansky wrote: "It is often said that Cantor's proof is not 'constructive,' and so does not yield a tangible transcendental number. This remark is not justified. If we set up a definite listing of all algebraic numbers ... and then apply the diagonal procedure ..., we get a perfectly definite transcendental number (it could be computed to any number of decimal places)." Cantor's proof is not only constructive, it is also simpler than Perron's proof, which requires the detour of first proving that the set of all reals is uncountable.
Cantor's diagonal argument has often replaced his 1874 construction in expositions of his proof. The diagonal argument is constructive and produces a more efficient computer program than his 1874 construction. Using it, a computer program has been written that computes the digits of a transcendental number in polynomial time. The program that uses Cantor's 1874 construction requires at least sub-exponential time.
The presentation of the non-constructive proof without mentioning Cantor's constructive proof appears in some books that were quite successful as measured by the length of time new editions or reprints appeared—for example: Oskar Perron's Irrationalzahlen (1921; 1960, 4th edition), Eric Temple Bell's Men of Mathematics (1937; still being reprinted), Godfrey Hardy and E. M. Wright's An Introduction to the Theory of Numbers (1938; 2008 6th edition), Garrett Birkhoff and Saunders Mac Lane's A Survey of Modern Algebra (1941; 1997 5th edition), and Michael Spivak's Calculus (1967; 2008 4th edition). Since 2014, at least two books have appeared stating that Cantor's proof is constructive, and at least four have appeared stating that his proof does not construct any (or a single) transcendental.
Asserting that Cantor gave a non-constructive argument without mentioning the constructive proof he published can lead to erroneous statements about the history of mathematics. In A Survey of Modern Algebra, Birkhoff and Mac Lane state: "Cantor's argument for this result [Not every real number is algebraic] was at first rejected by many mathematicians, since it did not exhibit any specific transcendental number." The proof that Cantor published produces transcendental numbers, and there appears to be no evidence that his argument was rejected. Even Leopold Kronecker, who had strict views on what is acceptable in mathematics and who could have delayed publication of Cantor's article, did not delay it. In fact, applying Cantor's construction to the sequence of real algebraic numbers produces a limiting process that Kronecker accepted—namely, it determines a number to any required degree of accuracy.

## The influence of Weierstrass and Kronecker on Cantor's article

Historians of mathematics have discovered the following facts about Cantor's article "On a Property of the Collection of All Real Algebraic Numbers":
* Cantor's uncountability theorem was left out of the article he submitted. He added it during proofreading.
* The article's title refers to the set of real algebraic numbers. The main topic in Cantor's correspondence was the set of real numbers.
* The proof of Cantor's second theorem came from Dedekind. However, it omits Dedekind's explanation of why the limits a$_∞$ and b$_∞$ exist.
* Cantor restricted his first theorem to the set of real algebraic numbers. The proof he was using demonstrates the countability of the set of all algebraic numbers.
To explain these facts, historians have pointed to the influence of Cantor's former professors, Karl Weierstrass and Leopold Kronecker. Cantor discussed his results with Weierstrass on December 23, 1873. Weierstrass was first amazed by the concept of countability, but then found the countability of the set of real algebraic numbers useful. Cantor did not want to publish yet, but Weierstrass felt that he must publish at least his results concerning the algebraic numbers.
From his correspondence, it appears that Cantor only discussed his article with Weierstrass. However, Cantor told Dedekind: "The restriction which I have imposed on the published version of my investigations is caused in part by local circumstances ..." Cantor biographer Joseph Dauben believes that "local circumstances" refers to Kronecker who, as a member of the editorial board of Crelle's Journal, had delayed publication of an 1870 article by Eduard Heine, one of Cantor's colleagues. Cantor would submit his article to Crelle's Journal.
Weierstrass advised Cantor to leave his uncountability theorem out of the article he submitted, but Weierstrass also told Cantor that he could add it as a marginal note during proofreading, which he did. It appears in a remark at the end of the article's introduction. The opinions of Kronecker and Weierstrass both played a role here. Kronecker did not accept infinite sets, and it seems that Weierstrass did not accept that two infinite sets could be so different, with one being countable and the other not. Weierstrass changed his opinion later. Without the uncountability theorem, the article needed a title that did not refer to this theorem. Cantor chose "Ueber eine Eigenschaft des Inbegriffes aller reellen algebraischen Zahlen" ("On a Property of the Collection of All Real Algebraic Numbers"), which refers to the countability of the set of real algebraic numbers, the result that Weierstrass found useful.
Kronecker's influence appears in the proof of Cantor's second theorem. Cantor used Dedekind's version of the proof except he left out why the limits a$_∞$ = lim$_{n→∞}$ a$_n$ and b$_∞$ = lim$_{n→∞}$ b$_n$ exist. Dedekind had used his "principle of continuity" to prove they exist. This principle (which is equivalent to the least upper bound property of the real numbers) comes from Dedekind's construction of the real numbers, a construction Kronecker did not accept.
Cantor restricted his first theorem to the set of real algebraic numbers even though Dedekind had sent him a proof that handled all algebraic numbers. Cantor did this for expository reasons and because of "local circumstances". This restriction simplifies the article because the second theorem works with real sequences. Hence, the construction in the second theorem can be applied directly to the enumeration of the real algebraic numbers to produce "an effective procedure for the calculation of transcendental numbers". This procedure would be acceptable to Weierstrass.

## Dedekind's contributions to Cantor's article

Since 1856, Dedekind had developed theories involving infinitely many infinite sets—for example: ideals, which he used in algebraic number theory, and Dedekind cuts, which he used to construct the real numbers. This work enabled him to understand and contribute to Cantor's work.
Dedekind's first contribution concerns the theorem that the set of real algebraic numbers is countable. Cantor is usually given credit for this theorem, but the mathematical historian José Ferreirós calls it "Dedekind's theorem." Their correspondence reveals what each mathematician contributed to the theorem.
In his letter introducing the concept of countability, Cantor stated without proof that the set of positive rational numbers is countable, as are sets of the form (a$_{n1,n2,...,nν}$) where n$_1$, n$_2$, ..., n$_ν$, and ν are positive integers. Cantor's second result uses an indexed family of numbers: a set of the form (a$_{n1,n2,...,nν}$) is the range of a function from the ν indices to the set of real numbers. His second result implies his first: let ν = 2 and a$_{n1,n2}$ = ⁠n$_1$/n$_2$⁠. The function can be quite general—for example, a$_{n1,n2,n3,n4,n5}$ = (⁠n$_1$/n$_2$⁠)$^{⁠1/n3⁠}$ + tan(⁠n$_4$/n$_5$⁠).
Dedekind replied with a proof of the theorem that the set of all algebraic numbers is countable. In his reply to Dedekind, Cantor did not claim to have proved Dedekind's result. He did indicate how he proved his theorem about indexed families of numbers: "Your proof that (n) [the set of positive integers] can be correlated one-to-one with the field of all algebraic numbers is approximately the same as the way I prove my contention in the last letter. I take n$_1$$^2$ + n$_2$$^2$ + ··· + n$_ν$$^2$ = ${\mathfrak {N}}$ and order the elements accordingly." However, Cantor's ordering is weaker than Dedekind's and cannot be extended to $n$-tuples of integers that include zeros.
Dedekind's second contribution is his proof of Cantor's second theorem. Dedekind sent this proof in reply to Cantor's letter that contained the uncountability theorem, which Cantor proved using infinitely many sequences. Cantor next wrote that he had found a simpler proof that did not use infinitely many sequences. So Cantor had a choice of proofs and chose to publish Dedekind's.
Cantor thanked Dedekind privately for his help: "... your comments (which I value highly) and your manner of putting some of the points were of great assistance to me." However, he did not mention Dedekind's help in his article. In previous articles, he had acknowledged help received from Kronecker, Weierstrass, Heine, and Hermann Schwarz. Cantor's failure to mention Dedekind's contributions damaged his relationship with Dedekind. Dedekind stopped replying to his letters and did not resume the correspondence until October 1876.

## The legacy of Cantor's article

Cantor's article introduced the uncountability theorem and the concept of countability. Both would lead to significant developments in mathematics. The uncountability theorem demonstrated that one-to-one correspondences can be used to analyze infinite sets. In 1878, Cantor used them to define and compare cardinalities. He also constructed one-to-one correspondences to prove that the n-dimensional spaces R$^n$ (where R is the set of real numbers) and the set of irrational numbers have the same cardinality as R.
In 1883, Cantor extended the positive integers with his infinite ordinals. This extension was necessary for his work on the Cantor–Bendixson theorem. Cantor discovered other uses for the ordinals—for example, he used sets of ordinals to produce an infinity of sets having different infinite cardinalities. His work on infinite sets together with Dedekind's set-theoretical work created set theory.
The concept of countability led to countable operations and objects that are used in various areas of mathematics. For example, in 1878, Cantor introduced countable unions of sets. In the 1890s, Émile Borel used countable unions in his theory of measure, and René Baire used countable ordinals to define his classes of functions. Building on the work of Borel and Baire, Henri Lebesgue created his theories of measure and integration, which were published from 1899 to 1901.
Countable models are used in set theory. In 1922, Thoralf Skolem proved that if conventional axioms of set theory are consistent, then they have a countable model. Since this model is countable, its set of real numbers is countable. This consequence is called Skolem's paradox, and Skolem explained why it does not contradict Cantor's uncountability theorem: although there is a one-to-one correspondence between this set and the set of positive integers, no such one-to-one correspondence is a member of the model. Thus the model considers its set of real numbers to be uncountable, or more precisely, the first-order sentence that says the set of real numbers is uncountable is true within the model. In 1963, Paul Cohen used countable models to prove his independence theorems.