Homepage › Solution manuals › Terence Tao › Analysis I › Exercise 3.6.5 (Cartesian product of A,B and B,A have equal cardinality)
Exercise 3.6.5 (Cartesian product of A,B and B,A have equal cardinality)
Let and be sets. Show that and have equal cardinality by constructing an explicit bijection between the two sets. Then use Proposition 3.6.14 to conclude an alternate proof of Lemma 2.3.2.
Answers
Before we prove this, just note that we do not require that and be finite for the first part to be true. But we do have to check two cases: (1) At least one of or is empty, (2) Neither are empty.
Proof. Let and be sets. Consider the following sets:
(1) If at least one of or is empty, then, by Exercise 3.5.8, we have and . This implies, by Exercise 3.6.2, that and , implying , as was to be shown (technically, I did not make an explicit bijection for this case, but it should be easy to do).
(2) Now suppose neither nor is empty. Let’s define a function by .
Let’s show is injective (one-to-one). Let and such that . We want to show this implies . Well, implies by definition of . Then, by Definition 3.5.1, we have and , which is logically equivalent to and . Then, by Definition 3.5.1 again, we have . Hence, is injective.
Let’s show is surjective (onto). Let be any element of . We want to show there exists a such that . Indeed, choosing makes it true. Hence, is surjective (if this argument isn’t to your liking, then an alternative is to show the forward image equals ).
By showing is injective and surjective, we have shown it is bijective (a one-to-one correspondence). This implies, by Definition 3.6.1, that and have equal cardinality.
Now we prove Lemma 2.3.2 using the above and Proposition 3.6.14. Suppose we have two finite sets and with and . By part (e) of Proposition 3.6.14, we have and . We proved above that and must have equal cardinality. Thus, , proving Lemma 2.3.2.