In this lesson we will look at the following properties and laws for union and intersection as well as their proof.
Commutativity of Union and Intersection
Associativity of Union and Intersection
Distributive Property of Union over Intersection and Intersection over Union
De Morgan's Laws
Commutativity
A∪B=B∪A
A∩B=B∩A
This should be intuitive by the definition of both union and intersection. A∪B means that "all x that are in A or B" which is the same as "all x that are in B or A". A∩B means that "all x that are in both A and B" which is the same as "all x that are in both B and A"
A∪B={x∣x∈A∨x∈B}={x∣x∈B∨x∈A}=B∪A
A∩B={x∣x∈A∧x∈B}={x∣x∈B∧x∈A}=B∩A
Associativity
(A∪B)∪C=A∪(B∪C)
(A∩B)∩C=A∩(B∩C)
The proof for this is also intuitive, but for the sake of completion and as a precursor for what is to come, here is the proof in technical terms.
Proof for Associativity of Union
(A∪B)∪C=A∪(B∪C)
Let x∈(A∪B)∪C
⇒x∈(A∪B)∨x∈C
⇒x∈A∨x∈B∨x∈C
⇒x∈A∨x∈(B∪C)
⇒x∈A∪(B∪C)
But x is an arbitary member of (A∪B)∪C and all x are also in A∪(B∪C). Which means that;
⇒(A∪B)∪C⊆A∪(B∪C)[1]
Similarly, we have to prove that (A∪B)∪C⊆A∪(B∪C)
Let y∈A∪(B∪C)
⇒y∈A∨x∈(B∪C)
⇒y∈A∨x∈B∨x∈C
⇒y∈(A∪B)∨C
⇒y∈(A∪B)∪C
But y is an arbitary member of A∪(B∪C) and all y are also in (A∪B)∪C. Which means that;
⇒A∪(B∪C)⊆(A∪B)∪C[2]
From [1] and [2], we get;
⇒A∪(B∪C)=(A∪B)∪C[2]
Because two sets that are subset of each other much be equal.
The proof for associativity of intersection is exactly the same with the signs switched and is left to the student.
Distributivity Properties:
A∪(B∩C)=A∪B∩A∪C
A∩(B∪C)=A∩B∪A∩C
Here is the interactive step by step proof for union over intersection distributive property.
Prove that A∪(B∩C)=(A∪B)∩(A∪C)
Start by assuming an arbitrary element of the left-hand side.
Let x∈A∪(B∩C)[1]
Rewrite the membership in terms of logical operators.
⇒x∈A∨x∈(B∩C)[2]
SKIP
We need to transform x∈A and x∈B∩C into the same expression.
SKIP
Starting with x∈A
If x is in A, how does that relate to A∪B and A∪C?
If x∈A, then it must belong to A∪B and A∪C
Express this statement with set membership notation and logical 'and'.
x∈A=x∈(A∪B)∧(A∪C)
Change ∧ to ∩.
=x∈(A∪B)∩(A∪C)[3]
SKIP
Now transforming x∈(B∩C)
State what x∈(B∩C) means in terms of membership in B and C.
If x∈(B∩C) then x∈B and x∈C
Express this with logical 'and' notation.
x∈(B∩C)=x∈B∧x∈C
Relate this to A∪B and A∪C.
=x∈(A∪B)∧x∈(A∪C)[4]
SKIP
Going back to the relation x∈A∨x∈(B∩C)
Substituting [3] and [4] in [2]
⇒(x∈(A∪B)∧x∈(A∪C))∨x∈(A∪B)∧x∈(A∪C)
Simplifying the statement
=x∈(A∪B)∧x∈(A∪C)
Simplifying the statement
=x∈(A∪B)∩(A∪C)[5]
From the membership of x in [1] and [5], we can conclude that;
⇒A∪(B∩C)⊆(A∪B)∩(A∪C)[6]
SKIP
Now we need to prove the opposite that (A∪B)∩(A∪C)⊆A∪(B∩C) to complete the proof.
Assume an arbitrary element from the right-hand side intersection.
Let y∈(A∪B)∩(A∪C)[7]
SKIP
CASE 1: y∈A
If y is in A, where else must it belong?
if y∈A, then it must be that y∈A∪(B∩C)[8]
SKIP
CASE 2: y∈/A
SKIP
if y∈(A∪B)∩(A∪C) but y∈/A
From the above, what can we conclude about y?
⇒y∈B and y∈C
What does that imply about y?
⇒y∈(B∩C)
If y is in B∩C, where else must it belong?
if y∈(B∩C), then it must be that y∈A∪(B∩C)[9]
From [8] and [9], we can conclude that;
y∈A∪(B∩C)[10]
From the membership of y from [7] and [10], we can conclude that:
⇒(A∪B)∩(A∪C)⊆A∪(B∩C)[11]
From [6] and [11], we can conclude the following from the two subset relations;
⇒A∪(B∩C)=(A∪B)∩(A∪C)
SKIP
Proven!
The same steps can be taken to prove A∩(B∪C)=(A∩B)∪(A∩C). That proof is left to the student.
Prove that (A∪B)c=Ac∩Bc
Start by assuming an arbitrary element of the left-hand side.
Let x∈(A∪B)c[1]
Unpack the complement of a union into a statement about non-membership.
⇒x∈/A∧x∈/B[2]
Restate non-membership using complements.
⇒x∈Ac∧x∈Bc[3]
Change ∧ to intersection.
⇒x∈Ac∩Bc[4]
Conclude the subset direction.
⇒(A∪B)c⊆Ac∩Bc[5]
SKIP
Now prove the reverse inclusion to complete the equality.
Assume an arbitrary element of the right-hand side.
Let y∈Ac∩Bc[6]
Unpack the intersection.
⇒y∈Ac∧y∈Bc[7]
Translate membership in complements to non-membership.
⇒y∈/A∧y∈/B[8]
Conclude non-membership in the union.
⇒y∈/(A∪B)[9]
Return to complement notation.
⇒y∈(A∪B)c[10]
Conclude the second subset direction.
⇒Ac∩Bc⊆(A∪B)c[11]
Combine the two inclusions.
⇒(A∪B)c=Ac∩Bc
SKIP
Proven!
The same steps can be taken to prove (A∩B)c=Ac∪Bc. That proof is left to the student.