In SectionΒ 4.1, we briefly introduced the idea of cardinality. Recall the definition: a (nonempty) finite set \(S\) has cardinality \(k\in \N\) if there is a one-to-one correspondence (i.e., a bijection) between \(S\) and \(\set{1,2,\ldots,k}\text{.}\) Nonempty sets which are not finite are infinite. But do all infinite sets have the same cardinality? Or are there different βsizesβ of βinfinityβ? These were the questions that Georg Cantor explored, and to which we now turn.
Prove that the following sets are countably infinite by exhibiting bijections between each of them and \(\N\text{.}\) You should be ready to give an informal proof that your function is, in fact, a bijection.
Assume we can write an infinite set \(X\) as \(X = \set{x_1, x_2, x_3, \ldots}\text{;}\) that is, we can write the elements of \(X\) in some order, with a first element, and a second, and a third, and so on. Explain why such an \(X\) must be countable.
Let \(A\) and \(B\) be sets. We say \(A\) and \(B\) have the same cardinality if there is a bijection \(f: A\to B\text{.}\) In this case, we write \(|A| = |B|\text{.}\)
The reason for the second part of DefinitionΒ 7.1.6 is hopefully clear: if such an injection exists, there is a set \(A'\subseteq B\) for which \(|A| = |A'|\text{,}\) and it is reasonable to take \(|A'| \le |B|\text{.}\)
The following theorem (which you do not need to prove) answers the natural question: if \(|A| \le |B|\) and \(|B| \le |A|\text{,}\) must we have \(|A| = |B|\text{?}\) That is, if there are injections \(A\hookrightarrow B\) and \(B\hookrightarrow A\text{,}\) must there be a bijection \(A\to B\text{.}\)
Let \(A,B\) be sets. If there is a one-to-one function \(f: A\to B\) and a one-to-one function \(g : B\to A\text{,}\) then \(A\) and \(B\) have the same cardinality.
We have seen thus far that many familiar sets are countable. One may rightly wonder: are all infinite sets countable? The answer turns out to be βnoβ βwe explore this further in SectionΒ 7.2.