E 30.1
The function takes an input from the interval (0, 1) and maps it to the interval (a, b).
(Injective)
Assume . Substituting the function, we get .
Simplifying, . Since , is non-zero, we can divide by to get . Thus, the function is injective.
(Surjective)
Let (a, b). We want to show there exists an such that .
Define . Note that since is in (a, b), , and hence . Thus, is in the interval (0, 1). We find:
Since for every in (a, b), there exists an in (0, 1) such that , is surjective.
Since is injective and surjective, is bijective.
E 30.2
Define the bijection as follows:
Map 0 to 1/2.
Map 1/2 to 1/3.
Map 1/3 to 1/4, and so on, in general mapping to for all positive integers .
For all other that are not of the form (rational), map to itself.
This function is injective because each element in maps to a unique element in . It is also surjective because every element in either is an image of an element in not of the form , or is the image of some .
Thus .
E 30.3
Define a function as follows:
(injective)
If for some and in , then either both and are of the form for some , or neither of them is, or both are equal to 0. If both and are of the form , then implies , which is true. In this case, and are the same. If both and are not of the form for any and are also not equal to 0, then implies , as both are equal to themselves. In this case, and are the same. If both and are equal to 0, then implies , which is true. In this case, and are the same. Therefore, is injective.
(surjective)
For any in , if is not of the form for any natural number , then there exists in such that (since for these values). If is of the form for some , then will be in . So, for these values as well, there exists in such that . For , we have , so the value 0 is correctly mapped to . Therefore, is surjective.
Since is both injective and surjective, it is a bijection, so and have the same cardinality, proving that the interval has continuum cardinality.
E 30.4
Assume by way of contradiction that the set of irrational numbers () is countable. We know . By Corollary 29.7, is countable. If both and are countable, then by Theorem 29.1, their union, which is , should also be countable. However, this is a contradiction, since by Corollary 30.5, is uncountable. Thus the set of irrational numbers is not countable.
An example of a subset of the irrational numbers that is countably infinite is the set .
E 30.5
For all we have . So . By Collary 30.5, is uncountable. Thus by theorem 30.7, must be uncountable.
E 30.6 Proof.
Assume, by way of contradiction, that the set of all infinite sequences of 0's and 1's, denoted by , is countable. Then we can list all sequences in the form of where each is an infinite sequence of 0's and 1's.
Construct a new sequence by selecting the th digit of for each and flipping it (i.e., if the digit is 0, change it to 1, and if it is 1, change it to 0). The resulting sequence will differ from each in the list at the th position, ensuring that is not equal to any sequence in the list.
This new sequence cannot be part of our original list because it was constructed to have at least one digit different from every sequence in the list. This contradicts our assumption that the set of all sequences was countable, as we have found a sequence not included in our list.
Hence, the assumption that is countable must be false, implying that the set is indeed uncountable.