34. The universal set and complements
Since we cannot talk about the set of all sets, there is no universal way to mirror TRUE as a set. However, in many situations, all elements are of a particular type. For example, all the elements in Example 33.2.5 are chips. The set of all elements of that type constitutes a single set containing as subsets all the sets under consideration. Such a set is called a universal set, and is customarily denoted $\mathcal{U}$.
Given a universal set, we can define an operation corresponding to ‘$\neg$’, as in the following defintion.
34.1 Definition: complement
If $A$ is a set, $A^{c}$ is the set of all elements in $\mathcal{U}$ but not in $A$. $A^{c}$ is called the complement of $A$ (note the spelling).
34.1.1 Usage $A^{c}$ may be denoted $\overline{A}$ or $A'$ in other texts.
34.1.2 Example The complement of $\mathrm{N}$ in $\mathrm{Z}$ is the set of all negative integers.
34.2 Definition: set difference
Let $A$ and $B$ be any two sets. The set difference $A-B$ is the set defined by
$$A-B=\{x\mid x\in A\wedge x\notin B\} \tag{34.1}$$
34.2.1 Example Let $A=\{1,2,3\}$ and $B=\{3,4,5\}$; then $A-B=\{1,2\}$.
34.2.2 Exercise What is $\mathrm{Z}-\mathrm{N}$? What is $\mathrm{N}-\mathrm{Z}$? (Answer on page 244.)
34.2.3 Fact If there is a universal set $\mathcal{U}$, then $A^{c}=\mathcal{U}-A$.
34.2.4 Usage $A-B$ is written $A\backslash B$ in many texts..
34.2.5 Exercise Let $A=\{1,2,3\}$, $B=\{2,3,4,5\}$ and $C=\{1,7,8\}$. Write out the elements of the following sets:
$$\begin{array}{ll} \text{a) } A\cup B & \text{f) } B-C \\ \text{b) } A\cap B & \text{g) } A\cap(B\cup C) \\ \text{c) } B\cup C & \text{h) } B\cup(A\cap C) \\ \text{d) } B\cap C & \text{i) } B\cup(A-C) \\ \text{e) } A-B & \end{array}$$
(Answer on page 244.)
34.2.6 Exercise State whether each item in the first column is an element of each set in the second column. $A=\{1,3,7\}$, $B=\{1,2,3,4,5\}$, and the universal set is $\mathrm{Z}$.
$$\begin{array}{rrrr} \text{1) } & 1 & \text{1) } & A\cup B \\ \text{2) } & 4 & \text{2) } & A\cap B \\ \text{3) } & 7 & \text{3) } & A-B \\ \text{4) } & -2 & \text{4) } & A-\mathrm{Z} \\ \text{5) } & \emptyset & \text{5) } & B^{c} \\ \text{6) } & \{2,4,5\} & \text{6) } & \mathcal{P}A \\ \text{7) } & \{1,3\} & \text{7) } & \mathcal{P}(A\cap B) \end{array}$$
(Answer on page 244.)
34.2.7 Exercise Explain why the following statements are true for all sets $A$ and $B$ or give examples showing they are false for some $A$ and $B$.
a) $\mathcal{P}(A)\cap\mathcal{P}(B)=\mathcal{P}(A\cap B)$
b) $\mathcal{P}(A)\cup\mathcal{P}(B)=\mathcal{P}(A\cup B)$
c) $\mathcal{P}(A)-\mathcal{P}(B)=\mathcal{P}(A-B)$
34.2.8 Exercise Show that for any sets $A$ and $B$ included in a universal set $\mathcal{U}$, if $A\cup B =\mathcal{U}$ and $A\cap B =\emptyset$, then $B =A^{c}$.
Pages 48–49 of the book (PDF).