MATH 2200 Homework #3 Solutions Thomas Goller February 7, 2013 General Comments: • Make sure you can draw and interpret Venn diagrams. (Scratch work, of course.) • To prove that two sets are equal, you should almost always prove both containments, namely (⊆) and (⊇). • Remember that |A| means the cardinality (number of elements) of A, which is a number, not a set! • Labeling is a decent way to prove facts about cardinality of finite sets, but it is rarely a good way of proving that sets are equal. For instance, general sets can be infinite, so it’s hard to pick “general” labels. In fact, some sets (such as R) are so big that it is impossible to put their elements in a list! • The empty set is denoted ∅. This is not the same as {∅}, which is a set containing the empty set as an element! • Many of the claims below can be proved by contraposition or contradiction, but direct proofs usually work just fine. Exercise 3.1.12 Claim (a). Let A and B be finite sets. Then |A ∪ B| = |A| + |B|. This claim is false! Let A = {ω} and B = {ω}. Then A ∪ B = {ω}, so |A ∪ B| = 1 but |A| + |B| = 2. Claim (b). Let A and B be finite sets. Then |A − B| = |A| − |B|. This claim is false! Let A = ∅ and B = {Carlsen}. Then A − B = ∅, so |A − B| = 0 but |A| − |B| = −1. Claim (c). Let A and B be finite sets. If A and B are disjoint, then |A & B| = |A| + |B|. 1 Proof. Write A = {a1 , a2 , . . . , a|A| } and B = {b1 , b2 , . . . , b|B| }. Since A ∩ B = ∅, none of the ai ’s are equal to any of the bj ’s, so A & B = {a1 , a2 , . . . , a|A| , b1 , b2 , . . . , b|B| }. Thus |A & B| = |A| + |B|. Comments: • This is the only proof for which I think labeling is the best choice. In general, try to avoid labeling. Claim (d). Let A and B be finite sets. Then |A ∪ B| = |A| + |B| − |A ∩ B|. Proof. Note that A ∪ B = (A − B) & (A ∩ B) & (B − A). Thus by (c), |A ∪ B| = |A − B| + |A ∩ B| + |B − A|. Also note that A = (A − B) & (A ∩ B) and B = (B − A) & (A ∩ B), so that by (c), |A| + |B| − |A ∩ B| = (|A − B| + |A ∩ B|) + (|B| + |A ∩ B|) − |A ∩ B| = |A − B| + |A ∩ B| + |B − A|. Thus |A ∪ B| = |A| + |B| − |A ∩ B|. Comments: • This was not a very fair problem because we haven’t proved the identities I cited in the proof above (such as A ∪ B = (A − B) & (A ∩ B) & (B − A)). But you should be able to prove those identities! Exercise 3.1.15 Claim (a). Let A, B, and C be sets. Then A ⊆ B if and only if A ∩ B = A. Proof. ( =⇒ ): (⊆): If a ∈ A ∩ B, then a ∈ A. (⊇): If a ∈ A, then a ∈ B since A ⊆ B. Thus a ∈ A and a ∈ B, so a ∈ A ∩ B. ( ⇐= ): If a ∈ A, then a ∈ A ∩ B since A = A ∩ B. Thus a ∈ B. Comments: • The main difficulties in this proof are knowing exactly what you have to prove and keeping track of what you are doing. Claim (b). Let A, B, and C be sets. Then A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C). 2 Proof. (⊆): If a ∈ A ∪ (B ∩ C), then a ∈ A or a ∈ B ∩ C. In the case a ∈ A, then a ∈ A ∪ B and a ∈ A ∪ C, thus a ∈ (A ∪ B) ∩ (A ∪ C). If instead a ∈ B ∩ C, then a ∈ B and a ∈ C, thus a ∈ A ∪ B and a ∈ A ∪ C, so a ∈ (A ∪ B) ∩ (A ∪ C). (⊇): If a ∈ (A ∪ B) ∩ (A ∪ C), then a ∈ A ∪ B and a ∈ A ∪ C. In the case a ∈ A, then a ∈ A ∪ (B ∩ C). If instead a ∈ / A, then a ∈ B and a ∈ C, namely a ∈ B ∩ C, so a ∈ A ∪ (B ∩ C). Claim (c). Let A and B be sets and let X be a set containing A and B. Then X −(A∪B) = (X − A) ∩ (X − B). Proof. (⊆): If a ∈ X − (A ∪ B), then a ∈ X and a ∈ / A ∪ B, namely a ∈ / A and a ∈ / B. Thus a ∈ X − A and a ∈ X − B, so a ∈ (X − A) ∩ (X − B). (⊇): If a ∈ (X − A) ∩ (X − B), then a ∈ X − A and a ∈ X − B. Thus a ∈ X, a ∈ / A, and a ∈ / B. Therefore a ∈ / A ∪ B, so a ∈ X − (A ∪ B). Comments: • Actually, claims (c) and (d) are still true if we drop the assumption that X contains A and B. The exact same proof works! It’s better not to have unnecessary assumptions in a claim, so I erred! Claim (d). Let A and B be sets and let X be a set containing A and B. Then X −(A∩B) = (X − A) ∪ (X − B). Proof. (⊆): If a ∈ X − (A ∩ B), then a ∈ X and a ∈ / A ∩ B. Thus a ∈ / A or a ∈ / B, so a∈ / X − A or a ∈ / X − B, namely a ∈ (X − A) ∪ (X − B). (⊇): If a ∈ (X − A) ∪ (X − B), then a ∈ X − A or a ∈ X − B. So a ∈ X and also a ∈ /A or a ∈ / B. Thus a ∈ / A ∩ B, so a ∈ X − (A ∩ B). Claim (e). Let A, B, and C be sets. If A ∪ C = B ∪ C, then A = B. This claim is false! Counterexample: Let A = ∅, B = {ζ}, and C = {ζ}. Then A ∪ C = {ζ} = B ∪ C, but A += B. Claim (f). Let A, B, and C be sets. If A ∩ C = B ∩ C, then A = B. This claim is false! Counterexample: Let A = ∅, B = {pegasus}, and C = ∅. Then A ∩ C = ∅ = B ∩ C, but A += B. Claim (g). Let A, B, and C be sets. If A ∪ C = B ∪ C and A ∩ C = B ∩ C, then A = B. Proof. (⊇): If a ∈ A, then a ∈ A ∪ C, so a ∈ B ∪ C. If a ∈ B, then we are done. Otherwise a ∈ C, so a ∈ A ∩ C. But then a ∈ B ∩ C, so a ∈ B. (⊆): Since the claim is completely symmetric in A and B, this part of the proof is the same as (⊇) with the roles of A and B reversed. 3 Comments: • Remember: you are trying to prove that A = B, and you will use the assumptions A ∪ C = B ∪ C and A ∩ C = B ∩ C to do so. Do not start by assuming a ∈ A ∪ C or a ∈ A ∩ C. To prove a statement like A = B, you should be showing that A ⊆ B and that A ⊇ B. This claim can also be proved nicely by contradiction. 4