Math 121 Notes Sets II
Math 121 Notes Sets II
5 SETS II
There is a standard strategy for proving that A ⊆ B. The proof has the following form.
Let a ∈ A.
..
.
(argumentation)
..
.
Then a ∈ B. Hence A ⊆ B.
1. X ⊆ X.
2. ∅ ⊆ X
3. If X ⊆ Y and Y ⊆ Z, then X ⊆ Z.
1. Let x ∈ X(on the LHS of X ⊆ X). Then, x ∈ X(on the RHS of X ⊆ X). Hence,
X ⊆ X.
2. We observe that x ∈ ∅ is always false. Thus, the logical implication “if x ∈ ∅, then
x ∈ X” is always true. Therefore, ∅ ⊆ X.
[email protected] 1
5 SETS II
Lemma 5.2. Let A, B and C be sets.
1. A = A.
2. If A = B then B = A.
3. If A = B and B = C then A = C.
Proof. Let A, B and C be sets.
1. We see that A ⊆ A, by Lemma 5.1. It follows that A = A.
5. A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) and A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) (Distributive
Laws).
9. If A ⊆ B then A ∪ C ⊆ B ∪ C and A ∩ C ⊆ B ∩ C.
Proof. Let A, B and C be sets.
1. Let x ∈ A ∩ B. Then x ∈ A and x ∈ B. Thus, x ∈ A. Hence A ∩ B ⊆ A. Let
y ∈ A ∩ B. Then y ∈ A and y ∈ B. This means that x ∈ B. Hence, A ∩ B ⊆ B. Next,
suppose that X ⊆ A and X ⊆ B. Now, let x ∈ X. Then x ∈ A and x ∈ B, which
leads to x ∈ A ∩ B. Consequently, X ⊆ A ∩ B. Therefore, X ⊆ A and X ⊆ B implies
X ⊆ A ∩ B.
[email protected] 2
5 SETS II
3. Let x ∈ A ∪ B. Then, x ∈ A or x ∈ B. If x ∈ A then x ∈ B ∪ A, by definition, and
so A ∪ B ⊆ B ∪ A. If x ∈ B then x ∈ B ∪ A, by definition, and so A ∪ B ⊆ B ∪ A.
Thus, we obtain A ∪ B ⊆ B ∪ A. Conversely, let x ∈ B ∪ A. Then, x ∈ B or x ∈ A. If
x ∈ B then x ∈ B ∪ A, by definition, and so B ∪ A ⊆ A ∪ B. If x ∈ A then x ∈ B ∪ A,
by definition, and so A ∪ B ⊆ B ∪ A. Consequently, we have that B ∪ A ⊆ A ∪ B.
Therefore, B ∪ A = A ∪ B.
Let z ∈ A ∩ B. Then, z ∈ A and z ∈ B. Thus, z ∈ B ∩ A by definition, meaning
A ∩ B ⊆ B ∩ A. Let u ∈ B ∩ A. Then, u ∈ B and u ∈ A. It follows that u ∈ A ∩ B
by definition, and so B ∩ A ⊆ A ∩ B. Therefore, A ∩ B = B ∩ A.
4. Let z ∈ (A ∪ B) ∪ C. Then z ∈ A ∪ B or z ∈ C. First, suppose that z ∈ A ∪ B. Then,
z ∈ A or z ∈ B. If z ∈ A then z ∈ A ∪ (B ∪ C) by Part (2) of Theorem 5.1, and if
x ∈ B then x ∈ B ∪ C, and hence z ∈ A ∪ (B ∪ C). Second, suppose that x ∈ C. It
follows from Part (2) of Theorem 5.1 that x ∈ B ∪ C, and hence z ∈ A ∪ (B ∪ C).
Putting the two cases together, we deduce that (A ∪ B) ∪ C ⊆ A ∪ (B ∪ C).
Conversely, let y ∈ A∪(B ∪C). Then, y ∈ A or y ∈ B ∪C. Firstly, suppose that y ∈ A.
It follows that y ∈ A∪B, and hence y ∈ (A∪B)∪C, where we used Part (2) of Theorem
5.1. Secondly, suppose that y ∈ B ∪ C. Then y ∈ B or y ∈ C. If y ∈ B then y ∈ A ∪ B,
and so by Part (2) of Theorem 5.1, y ∈ (A ∪ B) ∪ C. If y ∈ C then y ∈ (A ∪ B) ∪ C.
Putting the two cases together, we deduce that A ∪ (B ∪ C) ⊆ (A ∪ B) ∪ C. Therefore,
(A ∪ B) ∪ C = A ∪ (B ∪ C).
5. Let x ∈ A ∩ (B ∪ C). Then, x ∈ A and x ∈ B ∪ C. Hence, x ∈ B or x ∈ C. If
x ∈ B we deduce that x ∈ A ∩ B, and if x ∈ C we deduce that x ∈ A ∩ C. In either
case, we use Part (2) of this theorem to see that x ∈ (A ∩ B) ∪ (A ∩ C). Therefore,
A ∩ (B ∪ C) ⊆ (A ∩ B) ∪ (A ∩ C).
Conversely, let x ∈ (A ∩ B) ∪ (A ∩ C). Then, x ∈ A ∩ B or x ∈ A ∩ C. First, suppose
that x ∈ A ∩ B. Then, x ∈ A and x ∈ B. Hence x ∈ B ∪ C by Part (2) of Theorem
5.1, and therefore x ∈ A ∩ (B ∪ C). Second, suppose that x ∈ A ∩ C. Then, x ∈ A and
x ∈ C. By part 2 of Theorem 5.1, it follows that x ∈ B ∪ C, and so x ∈ A ∩ (B ∪ C).
Combining the two cases we deduce that (A ∩ B) ∪ (A ∩ C) ⊆ A ∩ (B ∪ C). Therefore,
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C).
[email protected] 3
5 SETS II
Proof. Let A, B and C be sets.
1. Let u ∈ A \ B. Then, u ∈ A and u ∈
/ B. Thus, u ∈ A. Therefore, A \ B ⊆ A.
[email protected] 4
5 SETS II
′ ′
3. A ∪ A = U and A ∩ A = ∅ (Complement laws).
Theorem 5.4. Let X, Y and Z be sets.
1. X △ ∅ = X.
2. X △ X = ∅.
3. X △ Y = Y △ X.
4. X △ (Y △ Z) = (X △ Y ) △ Z.
5. X ∩ (Y △ Z) = (X ∩ Y ) △ (X ∩ Z).
6. X △ Y = (X ∪ Y ) \ (X ∩ Y ).
Proof. Let X, Y and Z be sets.
1. Let h ∈ X △ ∅. Then, h ∈ X \ ∅ or h ∈ ∅ \ X. If h ∈ X \ ∅, then h ∈ X, which
means that X △ ∅ ⊆ X. If h ∈ ∅ \ X, then h ∈ X because h ∈ ∅ \ X is false. Thus
X △ ∅ ⊆ X. Both cases lead to X △ ∅ ⊆ X. Next, let g ∈ X. Then g ∈ X \ ∅, and so
g ∈ X \ ∅ ∪ ∅ \ X. Hence, X ⊆ X △ ∅. Therefore, X △ ∅ = X.
2. Let z ∈ X △ X. Then, z ∈ X \ X. That is z ∈ X and z ∈/ X, which is false. Hence,
X △ X ⊆ ∅. Next, we observe that ∅ ⊆ X △ X. Therefore, X △ X = ∅.
[email protected] 5
5 SETS II
Theorem 5.6.
Non-Indexed Version: Let F be a non-empty family of sets and let B be a set.
T T
1. X∈F X ⊆ A for all A ∈ F. If B ⊆ X for all X ∈ F then B ⊆ X∈F X.
S S
2. A ⊆ X∈F X for all A ∈ F. If X ⊆ B for all X ∈ F then X∈F X ⊆ B.
T S S T
3. B X∈F X = X∈F (B X) (Distributive Law).
S T T S
4. B X∈F X = X∈F (B X) (Distributive Law).
S T
5. B \ X∈F X = X∈F B \ X (De Morgan’s law).
T S
6. B \ X∈F X = X∈F B \ X (De Morgan’s law).
S S
7. B × X∈F X = X∈F (B × X) (Distributive Law).
T T
8. B × X∈F X = X∈F (B × X) (Distributive Law).
Indexed Version: Let I be a non-empty set, let {Ai }i∈I be a family of sets indexed by I
and let B be a set.
T T
1. i∈I Ai ⊆ Ak for all k ∈ I. If B ⊆ Ak for all k ∈ I then B ⊆ i∈I Ai .
S S
2. Ak ⊆ i∈I Ai for all k ∈ I. If Ak ⊆ B for all k ∈ I then i∈I Ai ⊆ B.
T S S T
3. B i∈I Ai = i∈I (B Ai ) (Distributive Law).
S T T S
4. B i∈I Ai = i∈I (B Ai ) (Distributive Law).
S T
5. B \ i∈I Ai = i∈I B \ Ai (De Morgan’s law).
T S
6. B \ i∈I Ai = i∈I B \ Ai (De Morgan’s law).
S S
7. B × i∈I Ai = i∈I (B × Ai ) (Distributive Law).
T T
8. B × i∈I Ai = i∈I (B × Ai ) (Distributive Law).
T
Proof.T 1. Non-Indexed: Let z ∈ X∈F X. Then z ∈ A for all A ∈ F. Therefore
X∈F X ⊆ A for all A ∈ F.
T T
Indexed: Let z ∈ i∈I Ai . Then, z ∈ Ak for all k ∈ I. Therefore, i∈I Ai ⊆ Ak for
all k ∈ I.
T S S
3. Indexed: Let u ∈ B i∈I AT i . Then, u ∈ B and u ∈ i∈I Ai . It follows
S that Tu ∈ Ak
for some k ∈ I. Hence, u ∈ B AT k for
S some k
S∈ I. Therefore,
T u ∈ i∈I (B Ai ) by
Part (2) of Theorem 5.6. Hence B i∈I Ai ⊆ i∈I (B Ai ).
S T T
Now, let v ∈ i∈I (B Ai ). Then, v ∈ S B Aj for some j ∈ I. Hence, v ∈ B and
v ∈ Aj for some
T S j ∈ I. Therefore, Sv ∈ T Ai by Part
i∈I T(2)
S of Theorem
5.6. It follows
T vS∈ B S
that i∈I Ai . THence, i∈I (B Ai ) ⊆ B i∈I Ai . We conclude that
B A
i∈I i = i∈I (B A i ).
[email protected] 6
5 SETS II
T T
6. Let x ∈ B \ X∈F X . Then, we have that x ∈ B and x ∈ / X∈F X. It follows
that Sx ∈
/ Y for some Y ∈ F. Consequently, x ∈ B \ Y for some Y ∈TF. Hence,
x
S ∈ X∈F (B \ X) by Part (2) of this theorem. It follows that B \ X∈F X ⊆
X∈F (B \ X).
S
Now let y ∈ X∈F (B \ X). Then,T y ∈ B \ Z for some Z ∈ F. Thus,
T y ∈ B and y ∈ /Z
for some Z ∈ F. Hence,
S Ty∈ / X∈F X. It follows that y ∈TB \ X∈FSX . Therefore,
X∈F (B \ X) ⊆ B \ X∈F X . We conclude that B \ X∈F X = X∈F (B \ X).
EXERCISE FIVE
1. Suppose that A, B, C are sets. For each of the following statements, either prove that
it is true or give a counterexample to show that it is false.
(a) A ⊂ B and B ⊂ C =⇒ A ⊂ C
(b) A ∈ B and B ⊂ C =⇒ A ∈ C
(c) A ⊂ B and B ∈ C =⇒ C
(a) If A ∈
/ B and B ∈
/ C then A ∈
/ C.
(b) If A ∈ B and B ⊈ C then A ∈
/ C.
(c) If A ⊆ B and B ⊆ C then C ⊈ A.
(d) If A ⊆ B and B ∈ C then A ∈
/ C.
3. Let M and N be sets. Prove that it is not possible that M ⊂ N and N ⊆ M are both
true.
[email protected] 7
5 SETS II
11. Let U be a universal set and let A and B be subsets of U . Prove that
(U \ A) \ (U \ B) = (B \ A).
19. Let I be a non-empty set and let {Ai }i∈I and {Bi }i∈I be families of sets indexed by I.
Suppose that Ai ⊆ Bi for all i ∈ I.
S S
(a) Show that i∈I Ai ⊆ i∈I Bi .
T T
(b) Show that i∈I Ai ⊆ i∈I Bi .