Exercise 7.5

Determine, for each of the following sets, whether or not it is countable. Justify your answers.

(a)
The set A of all functions f : {0,1} +.
(b)
The set Bn of all functions f : {1,,n} +.
(c)
The set C = n+Bn.
(d)
The set D of all functions f : + +.
(e)
The set E of all functions f : + {0,1}.
(f)
The set F of all functions f : + {0,1} that are “eventually zero.” [We say that f is eventually zero if there is a positive integer N such that f(n) = 0 for all n N.]
(g)
The set G of all functions f : + + that are eventually 1.
(h)
The set H of all functions f : + + that are eventually constant.
(i)
The set I of all two-element subsets of +.
(j)
The set J of all finite subsets of +.

Answers

Solution for (j). We claim J is countable. Consider I = n=0In where In is the set of sequences with n elements. Each In is countable by Theorem 7.6 so I is countable by Theorem 7.5. Identifying each finite subset in J with the finite sequence with the same elements in increasing order, we see that J I, and so J is countable by Corollary 7.3. □

User profile picture
2021-12-21 18:21
Comments

(a) The set A of all functions f : {0,1} +.

We claim that A is countable.

Proof. For any f A, clearly the mapping g(f) = (f(0),f(1)) is a bijection from A to +2. Since +2 is a finite cartesian product of countable sets, it follows that it is also countable by Theorem 7.6. Hence there is a bijection h : +2 +. It is then obvious that h g is a bijection from A to + so that A is countable. □

(b) The set Bn of all functions f : {1,,n} +.

We claim that Bn (for some n +) is also countable.

Proof. By the definition of +n, Bn = +n, which is clearly a finite cartesian product of countable sets. Thus Bn is countable by Theorem 7.6. □

(c) The set C = n+Bn.

We claim that C is countable.

Proof. Since n was arbitrary in part (b), we showed that Bn is countable for any n +. Thus C = n+Bn is a countable union of countable sets, which is itself also countable by Theorem 7.5 as desired. □

(d) The set D of all functions f : + +.

Clearly D = +ω, which we claim is uncountable.

Proof. We proceed to show, as in Theorem 7.7, that any function g : + D is not surjective. So denote

g(n) = xn = (xn1,xn2,),

where of course each xnm + since xn D and so is a function from + to +. Now set

yn = { 0xnn0 1xnn = 0

so that clearly y = y is an element of D. Now consider any n +. If xnn = 0 then yn = 10 = xnn, and if xnn0 then yn = 0xnn. Thus clearly g(n) = xny since the nth element of each differs. This shows that g cannot be surjective since y D and n was arbitrary. It then follows from Theorem 7.1 that D is not countable. □

(e) The set E of all functions f : + {0,1}.

This is exactly the set Xω in Theorem 7.7, wherein it was shown to be uncountable.

(f) The set F of all functions f : + {0,1} that are “eventually zero.” [We say that f is eventually zero if there is a positive integer N such that f(n) = 0 for all n N.]

We claim that F is countable.

Proof. For brevity define X = {0,1}. First let FN be the set of all eventually zero functions f : + X that are zero for n N, where of course N +. Then clearly F = N+FN.

We show that each FN is countable. So consider any N +. If N = 1 then clearly f : + X defined by f(n) = 0 for n + (which could be denoted (0,0,)) is the only element of FN = F1 so that fN is clearly finite and therefore countable. If N > 1 then for x = xN 1 XN1 define

yn = { xnn < N 0 n N

for n +. It then trivial to show that g defined by g(x) = y = y is a bijection from XN1 to FN. Now, since X = {0,1} is finite, XN1 is finite by Corollary 6.8. Since this is in bijective correspondence with FN, it follows that it must also be finite and therefore countable.

Thus F = N+FN is a countable union of countable sets, and so is countable by Theorem 7.5 as desired □

(g) The set G of all functions f : + + that are eventually 1.

Since G is clearly a subset of H in part (h) below, it is countable by Corollary 7.3 since H is.

(h) The set H of all functions f : + + that are eventually constant.

We claim that H is countable.

Proof. For N +, let HN be the set of functions f : + + such that f(n) is constant for n N. Thus clearly H = N+HN.

We show that each HN is countable. So consider N +. For any x = xN +N define

yn = { xn n < N xNn N

for n +, and set g(x) = y = y. It is then a simple matter to show that g is a bijection from +N to HN. Then, since +N is a finite product of countable sets, it is countable by Theorem 7.6. Hence HN must also be countable since there is a bijective correspondence between them.

Thus H = N+HN is the countable union of countable sets so that it must also be countable by Theorem 7.5. □

(i) The set I of all two-element subsets of +.

In part (j) below it is shown that the set J of all finite subsets of + is countable. Since clearly I J, it follows that I is also countable by Corollary 7.3.

(j) The set J of all finite subsets of +.

We claim that J is countable.

Proof. First, let Jn denote the set of n-element subsets of + (for n pints), and let J0 = {} since is the only “zero-element” subset of +. Clearly then J = n+ {0}Jn. Obviously, J0 is finite and therefore countable. Next, we show that Jn is countable for any n +.

So consider any such n +. Clearly +n is countable by Theorem 7.6 since it is a finite product of countable sets. Hence there is a bijection f : +n +. We now construct an injective function g : Jn +n. For any X Jn, we can choose a bijection h : X {1,,n} since it has n elements. Since X +, clearly h1 +n, so set g(X) = h1. To show that g is injective, consider X and X in Jn where XX. Without loss of generality, we can assume that there is an x X where xX. Let h and h be the chosen bijections from X and X, respectively, to {1,,n} so that by definition g(X) = h1 and g(X) = h1. Now let k = h(x) so that h1(k) = x. It has to be that h1(k)x since otherwise x would be in X. Hence h1(k) = xh1(k), which shows that g(X) = h1h1 = g(X). Thus g is injective since X and X were arbitrary. It then follows that f g is an injective function from Jn to + so that Jn must be countable by Theorem 7.1.

Since n was arbitrary, this shows that Jn is countable for any n +. From this, it follows from Theorem 7.5 that J = n+ {0}Jn is also countable since it is clearly a countable union of countable sets. □

User profile picture
2019-12-01 00:00
Comments