Lably
Skip to content

Cantor's diagonal argument

Proof in set theory

  • 9 min read
  • 3 chapters

Related on Lably

Through Infinite set, Bijection and Natural number

Georg Cantor published this proof in 1891, but it was not his first proof of the uncountability of the real numbers, which appeared in 1874. However, it demonstrates a general technique that has since been used in a wide range of proofs, including the first of Gödel's incompleteness theorems and Turing's answer to the Entscheidungsproblem. Diagonalization arguments are often also the source of contradictions like Russell's paradox and Richard's paradox.

Uncountable set

Cantor considered the set T of all infinite sequences of binary digits (i.e. each digit is zero or one). He begins with a constructive proof of the following lemma:

If s1, s2, ... , sn, ... is any enumeration of elements from T, then an element s of T can be constructed that doesn't correspond to any sn in the enumeration.

The proof starts with an enumeration of elements from T, for example

Next, a sequence s is constructed by choosing the 1st digit as complementary to the 1st digit of s1 (swapping 0s for 1s and vice versa), the 2nd digit as complementary to the 2nd digit of s2, the 3rd digit as complementary to the 3rd digit of s3, and generally for every n, the n-th digit as complementary to the n-th digit of sn. For the example above, this yields

By construction, s is a member of T that differs from each sn, since their n-th digits differ (highlighted in the example). Hence, s cannot occur in the enumeration.

Based on this lemma, Cantor then uses a proof by contradiction to show that:

The set T is uncountable.

The proof starts by assuming that T is countable. Then all its elements can be written in an enumeration s1, s2, ... , sn, ... . Applying the previous lemma to this enumeration produces a sequence s, which is a member of T, but is not in the enumeration. However, if T is enumerated, then every member of T, including this s, is in the enumeration. This contradiction implies that the original assumption is false. Therefore, T is uncountable.

Real numbers

The uncountability of the real numbers was already established by Cantor's first uncountability proof, but it also follows from the above result. To prove this, an injection will be constructed from the set T of infinite binary strings to the set R of real numbers. Since T is uncountable, the image of this function, which is a subset of R, is uncountable. Therefore, R is uncountable. Also, by using a method of construction devised by Cantor, a bijection will be constructed between T and R. Therefore, T and R have the same cardinality, which is called the "cardinality of the continuum" and is usually denoted by c or 2ℵ0.

An injection from T to R is given by mapping binary strings in T to decimal fractions, such as mapping t = 0111... to the decimal 0.0111.... This function, defined by f (t) = 0.t, is an injection because it maps different strings to different numbers.

Constructing a bijection between T and R is slightly more complicated. Instead of mapping 0111... to the decimal 0.0111..., it can be mapped to the base-b number: 0.0111...b. This leads to the family of functions: fb (t) = 0.tb. The functions f b(t) are injections, except for f 2(t). This function will be modified to produce a bijection between T and R.

General sets

A generalized form of the diagonal argument was used by Cantor to prove Cantor's theorem: for every set S, the power set of S—that is, the set of all subsets of S (here written as P(S))—cannot be in bijection with S itself. This proof proceeds as follows:

Let f be any function from S to P(S). It suffices to prove that f cannot be surjective. This means that some member T of P(S), i.e. some subset of S, is not in the image of f. As a candidate consider the set

T={s∈S:s∉f(s)}.

For every s in S, either s is in T or not. If s is in T, then by definition of T, s is not in f(s), so T is not equal to f(s). On the other hand, if s is not in T, then by definition of T, s is in f(s), so again T is not equal to f(s); see picture.

For a more complete account of this proof, see Cantor's theorem.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Foundations