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.
The real interval is uncountable (not countable).
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 is countable and is a an onto mapping from to . So we could list all numbers and this would end up enumerating every member of . Notice that each number is of the form ( is the -th digit after the decimal point).
We construct a number as follows: The number is defined by taking the -th digit of and add (modulo ). In particular, the number differs from at the -th digit, for all . This implies that cannot be in the range of , but since and is a real number, this is a contradiction with the fact that is an onto mapping.
Another interesting fact is that the power set of an infinite set is bigger than the set itself. Denote by the power set of set (the set of all subsets of ). When is finite, we know that . But what about when is infinite? For example, what is the cardinality of ? Is it the same as the cardinality of ?
Use diagonalization to prove that is uncountable.