Exercises on sets
Prove that A ∪ (B ∪ C) = (A ∪ B) ∪ C (associative laws for union of sets)
Prove that (A ∩ B) ∩ C = A ∩ (B ∩ C) (associative laws for intersections of sets)
Prove that (A ∪ B) = A only if B ⊆ A.
Prove the following distributive properties
(A ∪ B) ∩C = (A ∩ C) ∪ (B ∩ C) (distributive of the intersection with regards to union)
(A ∩ B) ∪C = (A ∪ C) ∩ (B ∪ C) (distributive of the union with regards to intersection)
Prove De Morgan's laws
𝓒(A ∩ B) = 𝓒A ∪ 𝓒B
𝓒(A ∪ B) = 𝓒A ∩ 𝓒B
Prove that for any sets A, B, C:
(A − B) U (B − A) = (A U B) − (A n B)
Solutions
To prove this identity it necessary to show that any element in the left-hand side is also an element of the right-hand side. We have
x ∈ A ∪ (B ∪ C) ⇒ x ∈ A or x ∈ B ∪ C ⇒ x ∈ A or x ∈ B or x ∈ C ⇒ x ∈ A ∪ B or x ∈ C ⇒ x ∈ (A ∪ B) ∪ C.
Analogously by inverting the order of the implications we prove that
x ∈ (A ∪ B) ∪ C ⇒ x ∈ A ∪ (B ∪ C)
it is thus correct to remove parenthesis and write
A ∪ B ∪ C = (A ∪ B) ∪ C = A ∪ (B ∪ C) ■
For the sake of simplicity let
D = A ∩ B and E = B ∩ C, then
D = {x: x ∈ A and x ∈ B}
E = {x: x ∈ B and x ∈ C}
thus
(A ∩ B) ∩ C = D ∩ C = {x: x ∈ D and x ∈ C} = {x: x ∈ A and x ∈ B and x ∈ C}
hence the equality. ■
[A ∪ B = A] ⇒ [x ∈ A ∪ B ⇐⇒ x ∈ A] ⇒ B ⊆ A. ■
We have
x ∈ (A ∪ B) ∩ C ⇒ x ∈ C and x ∈ A ∪ B ⇒ [x ∈ C and [x ∈ A or x ∈ B]] ⇒ [x ∈ C and x ∈ A] or [x ∈ C and x ∈ B] ⇒ x ∈ (C ∩ A) ∪ (C ∩ B).
x ∈ (A ∩ B) ∪ C ⇒ x ∈ C and x ∈ A ∩ B ⇒ [x ∈ C and [x ∈ A and x ∈ B]] ⇒ [x ∈ C and x ∈ A] and [x ∈ C and x ∈ B] ⇒ x ∈ (C ∩ A) ∪ (C ∩ B). ■□
We have
-
x ∈ 𝓒A ∪ 𝓒B ⇒ x ∈ 𝓒A or x ∈ 𝓒B ⇒ x ∉ A ∩ B ⇒ x ∈ 𝓒(A ∩ B)
-
x ∈ 𝓒A∩ 𝓒B ⇒ x ∈ 𝓒A and x ∈ 𝓒B ⇒ x ∉ A ∪ B ⇒ x ∈ 𝓒(A ∩ B) ■
-
(A − B) U (B − A) = {x: x ∈ A | x ∉ B} U {x: x ∈ B | x ∉ A} = {x: x ∈ A, x ∈ B | x ∉ A, x ∉ B} = (A U B) − (A n B). ■