Skip to content
Part IA Michaelmas, Lent Term

Unions and Intersections

Binary Operations

Union

AB={x:xAxB}A \cup B = \{x : x \in A \lor x \in B\}

Intersection

AB={x:xAxB}A \cap B = \{x : x \in A \land x \in B\}

Properties

PropertyUnionIntersection
CommutativeAB=BAA \cup B = B \cup AAB=BAA \cap B = B \cap A
Associative(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)
IdentityA=AA \cup \emptyset = AAU=AA \cap U = A
IdempotentAA=AA \cup A = AAA=AA \cap A = A

Distributive Laws

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

Proof of the First

xA(BC)    xA(xBxC)x \in A \cap (B \cup C) \iff x \in A \land (x \in B \lor x \in C)     (xAxB)(xAxC)\iff (x \in A \land x \in B) \lor (x \in A \land x \in C)     x(AB)(AC)\iff x \in (A \cap B) \cup (A \cap C)

Big Unions and Intersections

Notation

For an indexed family of sets {Ai}iI\{A_i\}_{i \in I}:

iIAi={x:iI.xAi}\bigcup_{i \in I} A_i = \{x : \exists i \in I. x \in A_i\}

iIAi={x:iI.xAi}\bigcap_{i \in I} A_i = \{x : \forall i \in I. x \in A_i\}

Examples

  • nN{0,1,,n}=N\displaystyle\bigcup_{n \in \mathbb{N}} \{0, 1, \ldots, n\} = \mathbb{N}
  • nN{n,n+1,n+2,}=\displaystyle\bigcap_{n \in \mathbb{N}} \{n, n+1, n+2, \ldots\} = \emptyset
  • nN{n}=N\displaystyle\bigcup_{n \in \mathbb{N}} \{n\} = \mathbb{N} (each {n}\{n\} is a singleton)

De Morgan’s Laws for Big Operations

(iIAi)c=iIAic\left(\bigcup_{i \in I} A_i\right)^c = \bigcap_{i \in I} A_i^c (iIAi)c=iIAic\left(\bigcap_{i \in I} A_i\right)^c = \bigcup_{i \in I} A_i^c

Verification

x(iIAi)c    ¬(iI.xAi)x \in (\bigcup_{i \in I} A_i)^c \iff \neg(\exists i \in I. x \in A_i)     iI.xAi\iff \forall i \in I. x \notin A_i     iI.xAic\iff \forall i \in I. x \in A_i^c     xiIAic\iff x \in \bigcap_{i \in I} A_i^c

Distributivity of Big Operations

Big Union over Intersection

A(iIBi)=iI(ABi)A \cap \left(\bigcup_{i \in I} B_i\right) = \bigcup_{i \in I} (A \cap B_i)

Big Intersection over Union

A(iIBi)=iI(ABi)A \cup \left(\bigcap_{i \in I} B_i\right) = \bigcap_{i \in I} (A \cup B_i)

Empty Index Set

Convention

When I=I = \emptyset:

iAi=\bigcup_{i \in \emptyset} A_i = \emptyset iAi=U\bigcap_{i \in \emptyset} A_i = U

Rationale: i\exists i \in \emptyset is always false, so the union is empty.

For intersection: i\forall i \in \emptyset is vacuously true, so every xx satisfies the condition. The intersection is the entire universe UU.

Set Difference

Definition

AB={xA:xB}A \setminus B = \{x \in A : x \notin B\}

Properties

  • AB=ABcA \setminus B = A \cap B^c
  • AA=A \setminus A = \emptyset
  • A=AA \setminus \emptyset = A
  • A=\emptyset \setminus A = \emptyset

Symmetric Difference

AB=(AB)(BA)A \triangle B = (A \setminus B) \cup (B \setminus A)

This is the set of elements in exactly one of AA or BB.


Summary

  • \cup and \cap are commutative, associative, and idempotent
  • \cup distributes over \cap and vice versa
  • Big unions iIAi\bigcup_{i \in I} A_i generalise to indexed families
  • De Morgan’s laws apply to complemented big unions/intersections