Countable and uncountable sets¶
In this section, we deal with questions concerning the size of a set.
When do we say that two sets have same number of elements?
If we can find a one-to-one correspondence between two sets \(A\) and \(B\) then we can say that the two sets \(A\) and \(B\) have same number of elements.
In other words, if there exists a function \(f : A \to B\) that is one-to-one and onto (hence invertible), we say that \(A\) and \(B\) have same number of elements.
Note that two sets may be equivalent yet not equal to each other.
The set of natural numbers \(\Nat\) is equivalent to the set of integers \(\ZZ\). Consider the function \(f : \Nat \to \ZZ\) given by
\[\begin{split}f (n) = \left\{ \begin{array}{ll} (n - 1) / 2 & \mbox{if $n$ is odd};\\ -n / 2 & \mbox{if $n$ is even}. \end{array} \right.\end{split}\]It is easy to show that this function is one-one and on-to.
\(\Nat\) is equivalent to the set of even natural numbers \(E\). Consider the function \(f : \Nat \to E\) given by \(f(n) = 2n\). This is one-one and onto.
\(\Nat\) is equivalent to the set of rational numbers \(\QQ\).
The sets \(\{a, b, c\}\) and \(\{1,4, 9\}\) are equivalent but not equal.
Let \(A, B, C\) be sets. Then:
- \(A \sim A\).
- If \(A \sim B\), then \(B \sim A\).
- If \(A \sim B\), and \(B \sim C\), then \(A \sim C\).
Thus it is an equivalence relation.
(i). Construct a function \(f : A \to A\) given by \(f (a) = a \Forall a \in A\). This is a one-one and onto function. Hence \(A \sim A\).
(ii). It is given that \(A \sim B\). Thus, there exists a function \(f : A \to B\) which is one-one and onto. Thus, there exists an inverse function \(g : B \to A\) which is one-one and onto. Thus, \(B \sim A\).
(iii). It is given that \(A \sim B\) and \(B \sim C\). Thus there exist two one-one and onto functions \(f : A \to B\) and \(g : B \to C\). Define a function \(h : A \to C\) given by \(h = g \circ f\). Since composition of bijective functions is bijective , \(h\) is one-one and onto. Thus, \(A \sim C\).
We now look closely at the set of natural numbers \(\Nat = \{1,2,3,\dots\}\).
Clearly, two segments \(\{1,\dots,m\}\) and \(\{1,\dots,n\}\) are equivalent only if \(m= n\).
Thus a proper subset of a segment cannot be equivalent to the segment.
The number of elements of a set which is equivalent to a segment is equal to the number of elements in the segment.
The empty set is also considered to be finite with zero elements.
It should be noted that so far we have defined number of elements only for sets which are equivalent to a segment.
A countable set \(A\) is usually written as \(A = \{a_1, a_2, \dots\}\) which indicates the one-to-one correspondence of \(A\) with the set of natural numbers \(\Nat\).
This notation is also known as the enumeration of \(A\).
With the definitions in place, we are now ready to study the connections between countable, uncountable and finite sets.
If a subset \(S\) of \(\Nat\) satisfies the following properties:
- \(1 \in S\) and
- \(n \in S \implies n + 1 \in S\),
then \(S = \Nat\).
The principle of mathematical induction is applied as follows. We consider a set \(S = \{ n \in \Nat : n \mbox{ satisfies } P \}\) where \(P\) is some property that the members of this set satisfy. We that show that \(1\) satisfies the property \(P\). Further, we show that if \(n\) satisfies property \(P\), then \(n + 1\) also has to satisfy \(P\). Then applying the principle of mathematical induction, we claim that \(S = \Nat\) i.e. every number \(n \in \Nat\) satisfies the property \(P\).
We present different characterizations of a countable set.
Let \(A\) be an infinite set. The following are equivalent:
- A is countable
- There exists a subset \(B\) of \(\Nat\) and a function \(f: B \to A\) that is on-to.
- There exists a function \(g : A \to \Nat\) that is one-one.
(i):math:implies (ii). Since \(A\) is countable, there exists a function \(f : \Nat \to A\) which is one-one and on to. Choosing \(B = \Nat\), we get the result.
(ii):math:implies (iii). We are given that there exists a subset \(B\) of \(\Nat\) and a function \(f: B \to A\) that is on-to. For some \(a \in A\), consider \(f^{-1}{a} = \{ b \in B : f(b) = a \}\). Since \(f\) is on-to, hence \(f^{-1}(a)\) is non-empty. Since \(f^{-1}(a)\) is a set of natural numbers, it has a least element due to well ordering principle. Further if \(a_1, a_2 \in A\) are distinct, then \(f^{-1}(a_1)\) and \(f^{-1}(a_2)\) are disjoint and the corresponding least elements are distinct. Assign \(g(a) = \text{ least element of } f^{-1}(a) \Forall a \in A\). Such a function is well defined by construction. Clearly, the function is one-one.
(iii):math:implies (i). We are given that there exists a function \(g : A \to \Nat\) that is one-one. Clearly, \(A \sim g(A)\) where \(g(A) \subseteq \Nat\). Since \(A\) is infinite, hence \(g(A)\) is also infinite. Due to here, \(g(A)\) is countable implying \(g(A) \sim \Nat\). Thus, \(A \sim g(A) \sim \Nat\) and \(A\) is countable.
Let \(\{A_1, A_2, \dots \}\) be a countable family of sets where each \(A_i\) is a countable set. Then
is countable.
Let \(A_i = \{a_1^i, a_2^i, \dots\} \Forall 1 \leq i \leq n\). Choose \(n\) distinct prime numbers \(p_1, p_2, \dots, p_n\). Consider the set \(B = \{p_1^{k_1}p_2^{k_2} \dots p_n^{k_n} : k_1, k_2, \dots, k_n \in \Nat \}\). Clearly, \(B \subset \Nat\). Define a function \(f : A \to \Nat\) as
By fundamental theorem of arithmetic, every natural number has a unique prime factorization. Thus, \(f\) is one-one. Invoking here, \(A\) is countable.
Let \(F\) denote the set of finite subsets of \(\Nat\). Let \(f \in F\). Then we can write \(f = \{n_1, \dots, n_k\}\) where \(k\) is the number of elements in \(f\). Consider the sequence of prime numbers \(\{p_n\}\) where \(p_n\) denotes \(n\)-th prime number. Now, define a mapping \(g : F \to \Nat\) as
The mapping \(g\) is one-one, since the prime decomposition of a natural number is unique. Hence invoking here, \(F\) is countable.
In this sense, \(B\) has at least as many elements as \(A\).
The relation \(\preceq\) satisfies following properties
- \(A \preceq A\) for all sets \(A\).
- If \(A \preceq B\) and \(b \preceq C\), then \(A \preceq C\).
- If \(A \preceq B\) and \(B \preceq A\), then \(A \sim B\).
(i). We can use the identity function \(f (a ) = a \Forall a \in A\).
(ii). Straightforward application of the result that composition of injective functions is injective.
(iii). Straightforward application of Schröder-Bernstein theorem.
If \(A = \EmptySet\), then \(\Power(A) = \{ \EmptySet\}\) and the result is trivial. So, lets consider non-empty \(A\). We can choose \(f : A \to \Power(A)\) given by \(f (x) = \{ x\} \Forall x \in A\). This is clearly a one-one function leading to \(A \preceq \Power (A)\).
Now for the sake of contradiction, lets us assume that \(A \sim \Power (A)\). Then, there exists a bijective function \(g : A \to \Power(A)\). Consider the set \(B = \{ a \in A : a \notin g(a) \}\). Since \(B \subseteq A\), and \(g\) is bijective, there exists \(a \in A\) such that \(g (a) = B\).
Now if \(a \in B\) then \(a \notin g(a) = B\). And if \(a \notin B\), then \(a \in g(a) = B\). This is impossible, hence \(A \nsim \Power(A)\).
Note that the cardinal numbers are different from natural numbers, real numbers etc. If \(A\) is finite, with \(A = \{a_1, a_2, \dots, a_n \}\), then \(\Card{A} = n\). We use the symbol \(\aleph_0\) to denote the cardinality of \(\Nat\). By saying \(A\) has the cardinality of \(\aleph_0\), we simply mean that \(A \sim \Nat\).
If \(a\) and \(b\) are two cardinal numbers, then by \(a \leq b\), we mean that there exist two sets \(A\) and \(B\) such that \(\Card{A} = a\), \(\Card{B} = b\) and \(A \preceq B\). By \(a < b\), we mean that \(A \preceq B\) and \(A \nsim B\). \(a \leq b\) and \(b \leq a\) guarantees that \(a = b\).
It can be shown that \(\Power(\Nat) \sim \RR\). The cardinality of \(\RR\) is denoted by \(\mathfrak{c}\).
\(2^X\) is the set of all functions \(f : X \to 2\). i.e. a function from \(X\) to \(\{ 0, 1 \}\) which can take only one the two values \(0\) and \(1\).
Define a function \(g : \Power (X) \to 2^X\) as follows. Let \(y \in \Power(X)\). Then \(g(y)\) is a function \(f : X \to \{ 0, 1 \}\) given by
The function \(g\) is one-one and on-to. Thus \(2^X \sim \Power(X)\).
We denote the cardinal number of \(\Power(X)\) by \(2^{\Card{X}}\). Thus, \(\mathfrak{c} = 2^{\aleph_0}\).
The following inequalities of cardinal numbers hold: