2 Sets and functions

2.4 De Morgan’s laws

Take a look at this Venn diagram:

Figure 2.6: Venn diagram for the complement of the union of A and B

You can see that the shaded area is exactly the area not in AB, so this is the Venn diagram for (AB)c. Now consider the Venn diagrams for Ac and Bc:

Figure 2.7: Venn diagram for the complement of A
Refer to caption
Figure 2.8: Venn diagram for the complement of B

You can see from the diagrams that AcBc=(AB)c. This is a general and useful fact, one of De Morgan’s laws.

Theorem 2.4.1.

(De Morgan’s laws for sets). Let A,BΩ and let Ac and Bc denote the complement with respect to Ω. Then

  1. 1.

    (AB)c=AcBc, and

  2. 2.

    (AB)c=AcBc.

Proof.

These follow from De Morgan’s laws in logic. The left hand side of the first of these is the set of all xΩ such that

¬(xAxB)

and the right hand side is the set of all xΩ such that

¬(xA)¬(xB).

Since ¬(pq) is logically equivalent to (¬p¬q) (Theorem 1.6.3), the two sets have the same elements and so are equal. The second equality follows from the other logical De Morgan law. ∎

De Morgan’s laws also work for unions and intersections of more than two sets.

Theorem 2.4.2.

For any sets A1,A2,

  1. 1.

    (A1A2)c=A1cA2c, and

  2. 2.

    (A1A2)c=A1cA2c