If every element of \mathcal{A} is also an element of \mathcal{B}, then we say \mathcal{A} is a subset of \mathcal{B}, denoted \mathcal{A} \subseteq \mathcal{B}.
We write \mathcal{A} \not\subseteq \mathcal{B} if \mathcal{A} is not a subset of \mathcal{B}, that is, if it is not true that every element of \mathcal{A} is also an element of \mathcal{B}. Thus \mathcal{A} \not\subseteq \mathcal{B} means that there is at least one element of \mathcal{A} that is not an element of \mathcal{B}.
CautionSubsets: Example 1
The set of natural numbers \mathbb{N} is a subset of the set of integers \mathbb{Z}, which is a subset of the set of real numbers \mathbb{R}:
The correct answer is \big\{\, \{\text{Python}, \text{R}\}, \{\text{Python}, \text{SQL}\}, \{\text{R}, \text{SQL}\} \,\big\} since these are the only subsets of the set \{\text{Python}, \text{R}, \text{SQL}\} that have exactly 2 elements.
Note Subsets: LaTeX
The LaTeX command \subseteq is used to denote a subset equal to \subseteq, and \not\subseteq for \not\subseteq.
Note Subsets: Python
In Python, you can whether a set is a subset by using the issubset() method.
Subsets: Exercises
Tip Subsets: Exercises 1-5
List all of the subsets for the following sets:
\emptyset
\{1,2,3\}
\{\text{Python},\text{R},\text{SQL}\}
\{1,\{2,3\}\}
\{\mathbb{N},\mathbb{Z}\}
Hammack, Richard H. 2013. Book of Proof. Richard Hammack.