Skip to main content

Diagonalization

Now, can we say that every infinite set is countable? This would be nice since we would end up saying that all infinite sets are (roughly) the same. Unfortunately, this is false since the real numbers are not countable.

Theorem 32 (Cantor)

The real interval [0,1][0,1] is uncountable (not countable).

Proof:

We prove this by contradiction. The proof uses a technique called diagonalization which is also used a lot when studying computational complexity. Let us assume for the sake of contradiction that the interval [0,1][0,1] is countable and ff is a an onto mapping from N{\mathbb N} to [0,1][0,1]. So we could list all numbers f(1),f(2),f(1),f(2), \ldots and this would end up enumerating every member of [0,1][0,1]. Notice that each number y[0,1]y \in [0,1] is of the form y=0.y1y2y = 0.y_1y_2 \cdots (yiy_i is the ii-th digit after the decimal point).

We construct a number x=0.x1x2x = 0.x_1 x_2 \cdots as follows: The number xix_i is defined by taking the ii-th digit of f(i)f(i) and add +1+1 (modulo 1010). In particular, the number xx differs from f(i)f(i) at the ii-th digit, for all ii. This implies that xx cannot be in the range of ff, but since x[0,1]x \in [0,1] and is a real number, this is a contradiction with the fact that ff is an onto mapping.

Another interesting fact is that the power set of an infinite set is bigger than the set itself. Denote by P(X)\mathcal{P}(X) the power set of set XX (the set of all subsets of XX). When XX is finite, we know that P(X)=2X|\mathcal{P}(X)|=2^{|X|}. But what about when XX is infinite? For example, what is the cardinality of P(N)\mathcal{P}({\mathbb N})? Is it the same as the cardinality of N{\mathbb N}?

Exercise 81

Use diagonalization to prove that P(N)\mathcal{P}({\mathbb N}) is uncountable.