Properties of Set Operations

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

AB=BAA \cup B = B \cup A

AB=BAA \cap B = B \cap A

This should be intuitive by the definition of both union and intersection. ABA \cup B means that "all xx that are in AA or BB" which is the same as "all xx that are in BB or AA". ABA \cap B means that "all xx that are in both AA and BB" which is the same as "all xx that are in both BB and AA"

AB={xxAxB}={xxBxA}=BA A \cup B = \{ x | x \in A \lor x \in B\} = \{ x | x \in B \lor x \in A\} = B \cup A

AB={xxAxB}={xxBxA}=BA A \cap B = \{ x | x \in A \wedge x \in B\} = \{ x | x \in B \wedge x \in A\} = B \cap A

Associativity

(AB)C=A(BC)(A \cup B) \cup C = A \cup (B \cup C)

(AB)C=A(BC)(A \cap B) \cap C = A \cap (B \cap 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

(AB)C=A(BC)(A \cup B) \cup C = A \cup (B \cup C)

Let x(AB)Cx \in (A \cup B) \cup C

x(AB)xC \Rightarrow x \in (A \cup B) \lor x \in C

xAxBxC \Rightarrow x \in A \lor x \in B \lor x \in C

xAx(BC) \Rightarrow x \in A \lor x \in (B \cup C)

xA(BC) \Rightarrow x \in A \cup (B \cup C)

But x is an arbitary member of (AB)C(A \cup B) \cup C and all xx are also in A(BC)A \cup (B \cup C). Which means that;

(AB)CA(BC)[1] \Rightarrow (A \cup B) \cup C \subseteq A \cup (B \cup C) \quad [1]

Similarly, we have to prove that (AB)CA(BC)(A \cup B) \cup C \subseteq A \cup (B \cup C)

Let yA(BC)y \in A \cup (B \cup C)

yAx(BC) \Rightarrow y \in A \lor x \in (B \cup C)

yAxBxC \Rightarrow y \in A \lor x \in B \lor x \in C

y(AB)C \Rightarrow y \in (A \cup B) \lor C

y(AB)C \Rightarrow y \in (A \cup B) \cup C

But y is an arbitary member of A(BC) A \cup (B \cup C) and all yy are also in (AB)C(A \cup B) \cup C. Which means that;

A(BC)(AB)C[2] \Rightarrow A \cup (B \cup C) \subseteq (A \cup B) \cup C \quad [2]

From [1][1] and [2][2], we get;

A(BC)=(AB)C[2] \Rightarrow A \cup (B \cup C) = (A \cup B) \cup C \quad [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(BC)=ABAC A \cup (B \cap C) = A \cup B \cap A \cup C

A(BC)=ABAC A \cap (B \cup C) = A \cap B \cup A \cap C

Here is the interactive step by step proof for union over intersection distributive property.

Prove that A(BC)=(AB)(AC)A \cup (B \cap C) = (A \cup B) \cap (A \cup C)

Start by assuming an arbitrary element of the left-hand side.

Let xA(BC)[1]x \in A \cup (B \cap C) \quad [1]

Rewrite the membership in terms of logical operators.

xAx(BC)[2] \Rightarrow x \in A \lor x \in (B \cap C) \quad [2]

SKIP

We need to transform xAx \in A and xBCx \in B \cap C into the same expression.

SKIP

Starting with xAx \in A

If xx is in AA, how does that relate to ABA \cup B and ACA \cup C?

If xAx \in A, then it must belong to ABA \cup B and ACA \cup C

Express this statement with set membership notation and logical 'and'.

xA=x(AB)(AC)x \in A = x \in (A \cup B) \wedge (A \cup C)

Change \wedge to \cap.

=x(AB)(AC)[3] = x \in (A \cup B) \cap (A \cup C) \quad [3]

SKIP

Now transforming x(BC)x \in (B \cap C)

State what x(BC)x \in (B \cap C) means in terms of membership in BB and CC.

If x(BC)x \in (B \cap C) then xBx \in B and xCx \in C

Express this with logical 'and' notation.

x(BC)=xBxC x \in (B \cap C) = x \in B \wedge x \in C

Relate this to ABA \cup B and ACA \cup C.

=x(AB)x(AC)[4] = x \in (A \cup B) \wedge x \in (A \cup C) \quad [4]

SKIP

Going back to the relation xAx(BC)x \in A \lor x \in (B \cap C)

Substituting [3][3] and [4][4] in [2][2]

(x(AB)x(AC))x(AB)x(AC)\Rightarrow (x \in (A \cup B) \wedge x \in (A \cup C)) \lor x \in (A \cup B) \wedge x \in (A \cup C)

Simplifying the statement

=x(AB)x(AC) = x \in (A \cup B) \wedge x \in (A \cup C)

Simplifying the statement

=x(AB)(AC)[5]= x \in (A \cup B) \cap (A \cup C) \quad [5]

From the membership of xx in [1][1] and [5][5], we can conclude that;

A(BC)(AB)(AC)[6]\Rightarrow A \cup (B \cap C) \subseteq (A \cup B) \cap (A \cup C) \quad [6]

SKIP

Now we need to prove the opposite that (AB)(AC)A(BC)\\ (A \cup B) \cap (A \cup C) \subseteq A \cup (B \cap C) \\ to complete the proof.

Assume an arbitrary element from the right-hand side intersection.

Let y(AB)(AC)[7]y \in (A \cup B) \cap (A \cup C) \quad [7]

SKIP

CASE 1: yAy \in A

If yy is in AA, where else must it belong?

if yAy \in A, then it must be that yA(BC)[8]y \in A \cup (B \cap C) \quad [8]

SKIP

CASE 2: yAy \notin A

SKIP

if y(AB)(AC)y \in (A \cup B) \cap (A \cup C) but yAy \notin A

From the above, what can we conclude about yy?

yB\Rightarrow y \in B and yCy \in C

What does that imply about yy?

y(BC)\Rightarrow y \in (B \cap C)

If yy is in BCB \cap C, where else must it belong?

if y(BC)y \in (B \cap C), then it must be that yA(BC)[9]y \in A \cup (B \cap C) \quad [9]

From [8][8] and [9][9], we can conclude that;

yA(BC)[10]y \in A \cup (B \cap C) \quad [10]

From the membership of yy from [7][7] and [10][10], we can conclude that:

(AB)(AC)A(BC)[11]\Rightarrow (A \cup B) \cap (A \cup C) \subseteq A \cup (B \cap C) \quad [11]

From [6][6] and [11][11], we can conclude the following from the two subset relations;

A(BC)=(AB)(AC)\Rightarrow A \cup (B \cap C) = (A \cup B) \cap (A \cup C)

SKIP

Proven!

The same steps can be taken to prove A(BC)=(AB)(AC)A \cap (B \cup C) = (A \cap B) \cup (A \cap C). That proof is left to the student.

Prove that (AB)c=AcBc(A \cup B)^c = A^c \cap B^c

Start by assuming an arbitrary element of the left-hand side.

Let x(AB)c[1]x \in (A \cup B)^{c} \quad [1]

Unpack the complement of a union into a statement about non-membership.

xA    xB[2]\Rightarrow x \notin A \;\wedge\; x \notin B \quad [2]

Restate non-membership using complements.

xAc    xBc[3]\Rightarrow x \in A^{c} \;\wedge\; x \in B^{c} \quad [3]

Change \wedge to intersection.

xAcBc[4]\Rightarrow x \in A^{c} \cap B^{c} \quad [4]

Conclude the subset direction.

(AB)cAcBc[5]\Rightarrow (A \cup B)^{c} \subseteq A^{c} \cap B^{c} \quad [5]

SKIP

Now prove the reverse inclusion to complete the equality.

Assume an arbitrary element of the right-hand side.

Let yAcBc[6]y \in A^{c} \cap B^{c} \quad [6]

Unpack the intersection.

yAc    yBc[7]\Rightarrow y \in A^{c} \;\wedge\; y \in B^{c} \quad [7]

Translate membership in complements to non-membership.

yA    yB[8]\Rightarrow y \notin A \;\wedge\; y \notin B \quad [8]

Conclude non-membership in the union.

y(AB)[9]\Rightarrow y \notin (A \cup B) \quad [9]

Return to complement notation.

y(AB)c[10]\Rightarrow y \in (A \cup B)^{c} \quad [10]

Conclude the second subset direction.

AcBc(AB)c[11]\Rightarrow A^{c} \cap B^{c} \subseteq (A \cup B)^{c} \quad [11]

Combine the two inclusions.

(AB)c=AcBc\Rightarrow (A \cup B)^{c} = A^{c} \cap B^{c}

SKIP

Proven!

The same steps can be taken to prove (AB)c=AcBc(A \cap B)^c = A^c \cup B^c. That proof is left to the student.

Visualizing Proofs Using Venn Diagrams


End of Lesson

 Previous
Set Operations
Next
Verifying Set Identities