Complement of a set. Once a universal set U has been fixed, the complement
of a set A (with A⊆U), written A′ (or Ac, or U−A), is the set of
all elements of U that do not belong to A:
A′=U−A={x∈U:x∈/A}.
Worked illustration. Let U={1,2,…,12} and A={2,4,6,8,10,12}
(the even numbers up to 12). Then A′ consists of everything in U that is not in
A, namely the odd numbers: A′={1,3,5,7,9,11}.
Properties of the complement. For any set A⊆U:
- Complement laws: A∪A′=U and A∩A′=∅. (Every element
of U is either in A or in A′, never both — so together they fill up all of
U with no overlap.)
- Law of double complementation: (A′)′=A. Taking the complement of the
complement returns the original set.
- ∅′=U and U′=∅.
- De Morgan's laws:
(A∪B)′=A′∩B′,(A∩B)′=A′∪B′.
Proof of (A′)′=A. By definition, (A′)′=U−A′={x∈U:x∈/A′}.
But x∈/A′ means x is not in "everything outside A," which (since
x∈U) can only mean x∈A. Hence (A′)′={x∈U:x∈A}=A.
■
Proof of De Morgan's law (A∪B)′=A′∩B′. Let x be any element of
U.
x∈(A∪B)′⟺x∈/(A∪B)⟺not(x∈A or x∈B)
⟺(x∈/A) and (x∈/B)⟺x∈A′ and x∈B′⟺x∈A′∩B′.
Since this chain of "if and only if" holds for every x∈U, the two sets
(A∪B)′ and A′∩B′ have exactly the same elements, so they are equal.
■ The second law, (A∩B)′=A′∪B′, is proved the same way, …