Binary Operations
Union
A∪B={x:x∈A∨x∈B}
Intersection
A∩B={x:x∈A∧x∈B}
Properties
| Property | Union | Intersection |
|---|
| Commutative | A∪B=B∪A | A∩B=B∩A |
| Associative | (A∪B)∪C=A∪(B∪C) | (A∩B)∩C=A∩(B∩C) |
| Identity | A∪∅=A | A∩U=A |
| Idempotent | A∪A=A | A∩A=A |
Distributive Laws
A∩(B∪C)=(A∩B)∪(A∩C)
A∪(B∩C)=(A∪B)∩(A∪C)
Proof of the First
x∈A∩(B∪C)⟺x∈A∧(x∈B∨x∈C)
⟺(x∈A∧x∈B)∨(x∈A∧x∈C)
⟺x∈(A∩B)∪(A∩C)
Big Unions and Intersections
Notation
For an indexed family of sets {Ai}i∈I:
⋃i∈IAi={x:∃i∈I.x∈Ai}
⋂i∈IAi={x:∀i∈I.x∈Ai}
Examples
- n∈N⋃{0,1,…,n}=N
- n∈N⋂{n,n+1,n+2,…}=∅
- n∈N⋃{n}=N (each {n} is a singleton)
De Morgan’s Laws for Big Operations
(⋃i∈IAi)c=⋂i∈IAic
(⋂i∈IAi)c=⋃i∈IAic
Verification
x∈(⋃i∈IAi)c⟺¬(∃i∈I.x∈Ai)
⟺∀i∈I.x∈/Ai
⟺∀i∈I.x∈Aic
⟺x∈⋂i∈IAic
Distributivity of Big Operations
Big Union over Intersection
A∩(⋃i∈IBi)=⋃i∈I(A∩Bi)
Big Intersection over Union
A∪(⋂i∈IBi)=⋂i∈I(A∪Bi)
Empty Index Set
Convention
When I=∅:
⋃i∈∅Ai=∅
⋂i∈∅Ai=U
Rationale: ∃i∈∅ is always false, so the union is empty.
For intersection: ∀i∈∅ is vacuously true, so every x satisfies the condition. The intersection is the entire universe U.
Set Difference
Definition
A∖B={x∈A:x∈/B}
Properties
- A∖B=A∩Bc
- A∖A=∅
- A∖∅=A
- ∅∖A=∅
Symmetric Difference
A△B=(A∖B)∪(B∖A)
This is the set of elements in exactly one of A or B.
Summary
- ∪ and ∩ are commutative, associative, and idempotent
- ∪ distributes over ∩ and vice versa
- Big unions ⋃i∈IAi generalise to indexed families
- De Morgan’s laws apply to complemented big unions/intersections