31. Subsets and inclusion
Every integer is a rational number (see Chapter 7). This means that the sets $\mathrm{Z}$ and $\mathrm{Q}$ have a special relationship to each other: every element of $\mathrm{Z}$ is an element of $\mathrm{Q}$. This is the relationship captured by the following definition:
31.1 Definition: inclusion
For all sets $A$ and $B$, $A \subseteq B$ if and only if $x\in A \Rightarrow x\in B$ is true for all $x$.
31.1.1 Usage The statement $A \subseteq B$ is read “$A$ is included in $B$” or “$A$ is a subset of $B$”.
31.1.2 Example $\mathrm{Z}\subseteq\mathrm{Q}$, $\mathrm{Q}\subseteq\mathrm{R}$ and $\mathrm{I}\subseteq\mathrm{R}$.
Definition 31.1 gives an immediate rule of inference and a method:
31.1.3 Method
To show that $A \subseteq B$, prove that every element of $A$ is an element of $B$.
31.1.4 Remark If $P (x)$ is a predicate whose only variable is $x$ and $x$ is of type $S$ for some set $S$, then the extension of $P (x)$, namely $\{x\mid P(x)\}$, is a subset of $S$.
Some useful consequences of Definition 31.1 are included in the following theorem.
31.2 Theorem
a) For any set $A$, $A \subseteq A$.
b) For any set $A$, $\emptyset \subseteq A$.
c) For any sets $A$ and $B$, $A =B$ if and only if $A \subseteq B$ and $B \subseteq A$.
Proof Using Definition 31.1, the statement $A \subseteq A$ translates to the statement $x\in A \Rightarrow x\in A$, which is trivially true. The statement $\emptyset \subseteq A$ is equivalent to the statement $x\in \emptyset \Rightarrow x\in A$, which is vacuously true for any $x$ whatever (the hypothesis is always false). We leave the third statement to you.
31.2.1 Exercise Prove part (c) of Theorem 31.2.
31.3 Definition: strict inclusion
If $A \subseteq B$ but $A \neq B$ then every element of $A$ is in $B$ but there is at least one element of $B$ not in $A$. This is symbolized by $A \subsetneq B$, and is read “$A$ is properly included in $B$”.
31.3.1 Warning Don’t confuse the statement “$A \subsetneq B$” with “$\neg (A \subseteq B)$”: the latter means that there is an element of $A$ not in $B$.
31.3.2 Exercise Prove that for all sets $A$ and $B$, $(A \subsetneq B)\Rightarrow \neg (B \subseteq A)$.
31.4 Inclusion and elementhood
The statement “$A \subseteq B$” must be carefully distinguished from the statement “$A \in B$”.
31.4.1 Example Consider these sets:
$A=\{1,2,3\}$
$B=\{1,2,\{1,2,3\}\}$
$C=\{1,2,3,\{1,2,3\}\}$
$A$ and $B$ have three elements each and $C$ has four. $A \in B$ because $A$ occurs in the list which defines $B$. However, $A$ is not included in $B$ since $3\in A$ but $3\notin B$. On the other hand, $A \in C$ and $A \subseteq C$ both.
31.4.2 Exercise Answer each of (i) through (iii) for the sets $X$ and $Y$ as defined:
(i) $X \in Y$,
(ii) $X \subseteq Y$, and
(iii) $X =Y$.
a) $X=\{1,3\}$, $Y=\{1,3,5\}$.
b) $X=\{1,2\}$, $Y=\{1,\{1,2\}\}$.
c) $X=\{1,2\}$, $Y=\{2,1,1\}$.
d) $X=\{1,2,\{1,3\}\}$, $Y=\{1,3,\{1,2\}\}$.
e) $X=\{1,2,\{1,3\}\}$, $Y=\{1,\{1,2\},\{1,3\}\}$.
(Answer on page 243.)
31.4.3 Remark The fact that $A \subseteq A$ for any set $A$ means that any set is a subset of itself. This may not be what you expected the word “subset” to mean. This leads to the following definition:
31.5 Definition: proper
A proper subset of a set $A$ is a set $B$ with the property that $B \subseteq A$ and $B \neq A$. A nontrivial subset of $A$ is a set $B$ with the property that $B \subseteq A$ and $B \neq \emptyset$.
31.5.1 Usage
a) The word “contain” is ambiguous as mathematicians usually use it. If $x \in A$, one often says “$A$ contains $x$”, and if $B \subseteq A$, one often says “$A$ contains $B$”!
One thing that keeps the terminological situation from being worse than it is is that most of the time in practice either none of the elements of a set are sets or all of them are. In fact, sets such as $B$ and $C$ in Example 31.4.1 which have both sets and numbers as elements almost never occur in mathematical writing except as examples in texts such as this which are intended to bring out the difference between “element of” and “included in”!
Nevertheless, when this book uses the word “contain” in one of these senses, one of the phrases “as an element” or “as a subset” is always added.
b) The original notation for “$A \subseteq B$” was “$A \subset B$”. In recent years authors of high school and college texts have begun using the symbol ‘$\subseteq$’ by analogy with ‘$\leq$’. However, the symbol ‘$\subset$’ is still the one used most by research mathematicians. Some authors have used it to mean ‘$\subsetneq$’, but that is an entirely terrible idea considering that ‘$\subset$’ originally meant and is still widely used to mean ‘$\subseteq$’. This text avoids the symbol ‘$\subset$’ altogether.
31.5.2 Exercise Explain why each statement is true for all sets $A$ and $B$, or give an example showing it is false for some sets $A$ and $B$:
a) $\emptyset \in A$
b) If $A \subseteq \emptyset$, then $A =\emptyset$.
c) If $A =B$, then $A\subseteq B$.
d) If $\emptyset \in A$ then $A \neq \emptyset$.
e) If $A \in B$ and $B \in C$, then $A \in C$.
f) If $A \subseteq B$ and $B \subseteq C$, then $A \subseteq C$.
g) If $A \subsetneq B$ and $B \subsetneq C$, then $A \subsetneq C$.
h) If $A \neq B$ and $B \neq C$, then $A \neq C$.
31.5.3 Exercise Given two sets $S$ and $T$, how do you show that $S$ is not a subset of $T$? (Answer on page 244.)
Pages 43–45 of the book (PDF).