Exercise 6.7

If A and B are finite, show that the set of all functions f : A B is finite.

Answers

Proof. As is customary, denote the set of all functions from A to B by BA. First, if A = , then the only function from A to B is the vacuous function so that BA = {}, which is clearly finite. So assume that A. Then, since A is finite, there is a bijection f from A to {1,,n} for some n +, noting that of course f1 is then a bijection from {1,,n} to A.

We construct a bijection h from BA to Bn. So, for any g BA set h(g) = g f1, noting that clearly this is a function from {1,,n} to B. Hence h is a function from BA to Bn.

To show that h is injective consider g and g in BA where gg. It then follows that there is an a A where g(a)g(a). Then let k = f(a) so that clearly f1(k) = a and k {1,,n}. We then have that (g f1)(k) = g(f1(k)) = g(a)g(a) = g(f1(k)) = (g f1)(k) so that it must be that h(g) = g f1g f1 = h(g). Since g and g were arbitrary, this shows that h is injective.

Now consider any function i Bn and let g = i f so that clearly g is a function from A to B since f : A {1,,n} and i : {1,,n} B. Hence g BA, and h(g) = g f1 = (i f) f1 = i (f f1) = i. Since i was arbitrary, this shows that h is surjective as well.

Hence h is bijection from BA to Bn. Now, since Bn is a finite cartesian product of finite sets (since B is finite), it is finite by Corollary 6.8. Thus it must be that BA is also finite since there is a bijection between them. □

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