Sets
Proof. Every element of \(A\) is an element of \(A\), which is Definition 5 with \(B = A\).
Proof. Neither set has any elements, so every element of \(E_1\) is an element of \(E_2\) and vice versa, vacuously. Sets with the same elements are equal (Definition 1).
Proof. By Definition 5, \(\emptyset \subseteq A\) fails only if some element of \(\emptyset\) is not in \(A\). The empty set has no elements, so no such element exists.
1 Combining sets
Proof. Two sets are equal when they have the same elements (Definition 1), so it is enough to show that an element \(x\) is in the left-hand side if and only if (\(\iff\)) it is in the right-hand side. Each step applies the definition named at its right: set difference (Definition 26), union (Definition 22) or intersection (Definition 24). For the first law:
\[ \begin{aligned} x \in S \setminus \bigcup_{i \in I} A_i &\iff x \in S \text{ and } x \notin \bigcup_{i \in I} A_i && \text{(set difference)} \\ &\iff x \in S \text{ and } x \notin A_i \text{ for every } i \in I && \text{(union)} \\ &\iff x \in S \setminus A_i \text{ for every } i \in I && \text{(set difference)} \\ &\iff x \in \bigcap_{i \in I} (S \setminus A_i) && \text{(intersection)} \end{aligned} \]
For the second law:
\[ \begin{aligned} x \in S \setminus \bigcap_{i \in I} A_i &\iff x \in S \text{ and } x \notin \bigcap_{i \in I} A_i && \text{(set difference)} \\ &\iff x \in S \text{ and } x \notin A_i \text{ for some } i \in I && \text{(intersection)} \\ &\iff x \in S \setminus A_i \text{ for some } i \in I && \text{(set difference)} \\ &\iff x \in \bigcup_{i \in I} (S \setminus A_i) && \text{(union)} \end{aligned} \]
2 Extended non-negative real numbers
3 Further reading
These books and articles treat sets and the logic behind them in more depth.
- Devlin (1993) is an undergraduate introduction to axiomatic set theory. It covers the axioms of set theory, ordinals, and cardinals, which go well beyond the countable sets and functions in these notes.
- Halmos (1974) is a short, informal treatment of the same axioms, covering relations, functions, families of sets, and cardinal numbers.
- Enderton (2001) is a standard introduction to mathematical logic. Its first chapter collects the facts about sets, relations, and functions that the later chapters use.
- Barker-Plummer et al. (2011) teaches propositional and first-order logic, the language behind statements such as “for every set \(A\) there exists…”.
Definitions on this page
- Definition 1 (Set)
- Definition 2 (Roster notation)
- Definition 3 (Set-builder notation)
- Definition 4 (Set-builder notation with an expression)
- Definition 5 (Subset)
- Definition 6 (Strict subset, proper subset)
- Definition 7 (Superset)
- Definition 8 (Strict superset)
- Definition 9 (Empty set)
- Definition 10 (Vacuous truth)
- Definition 11 (Power set)
- Definition 12 (Lower bound and upper bound)
- Definition 13 (Interval)
- Definition 14 (Closed interval)
- Definition 15 (Open interval)
- Definition 16 (Half-open intervals)
- Definition 17 (Unbounded intervals)
- Definition 18 (Collection of sets, family of sets)
- Definition 19 (Label)
- Definition 20 (Index set)
- Definition 21 (Indexed family)
- Definition 22 (Union)
- Definition 23 (Union of a family of sets)
- Definition 24 (Intersection)
- Definition 25 (Intersection of a family of sets)
- Definition 26 (Set difference)
- Definition 27 (Complement)
- Definition 28 (Disjoint sets)
- Definition 29 (Pairwise disjoint sets, mutually disjoint sets)
- Definition 30 (Ordered pair)
- Definition 31 (Cartesian product)
- Definition 32 (Tuple)
- Definition 33 (Cartesian product of several sets)
- Definition 34 (Extended non-negative real numbers)