Sets
Elements, subsets, products and operations
Adapted from Kameron Decker Harris’s Fall 2026 lecture notes “Sets 0” to “Sets 3”, which are typed transcriptions of Scott Wehrwein’s Spring 2025 handwritten lecture notes. These come from those notes:
- roster notation, and that order and repetition do not matter in a set;
- the table of sets of numbers;
- set-builder notation with a test and with an expression;
- cardinality, and the pattern of the example of a set whose elements are sets;
- countably infinite sets, and the diagonal argument that the real numbers are not countable;
- subsets, strict subsets and power sets;
- tuples and Cartesian products, including products of three sets;
- union, intersection, difference, complement and the universal set (with its example of the even integers), with their other notations;
- Venn diagrams.
The exercises are new.
1 Sets and their elements
Other sources may define \(\mathbb{N}\) differently, so check each source’s definition before reading its formulas:
- Many sources include \(0\) in \(\mathbb{N}\). The international standard ISO 80000-2 defines \(\mathbb{N}\) to include \(0\), continuing the earlier standard ISO 31-11 (1978).
- Other sources start \(\mathbb{N}\) at \(1\), as these notes do.
- To remove the ambiguity, some sources write \(\mathbb{N}_1\) or \(\mathbb{Z}^+\) for \(\mathopen{}\left\{1, 2, 3, \ldots\right\}\mathclose{}\), and \(\mathbb{N}_0\) or \(\mathbb{Z}^{0+}\) for \(\mathopen{}\left\{0, 1, 2, \ldots\right\}\mathclose{}\).
- The words vary too. “Positive integers” (\(\mathopen{}\left\{1, 2, 3, \ldots\right\}\mathclose{}\)) and “non-negative integers” (\(\mathopen{}\left\{0, 1, 2, \ldots\right\}\mathclose{}\)) are unambiguous. “Whole numbers” usually includes \(0\), but can also mean all of the integers, negative ones included. “Counting numbers” usually starts at \(1\), but some sources include \(0\).
- Some older texts write \(J\) for the natural numbers.
When a formula’s meaning depends on whether \(0\) is included, we write the set out explicitly, for example \(\mathopen{}\left\{0, 1, 2, \ldots\right\}\mathclose{}\) or \(\mathopen{}\left\{1, \ldots, n\right\}\mathclose{}\).
Source: Wikipedia, “Natural number”, “Terminology and notation” and “Zero as natural number”, which cites ISO 80000-2:2019 and the textbooks using each notation.
2 Set-builder notation
3 Cardinality
Proof. Suppose, for contradiction (Definition: Proof by contradiction), that \(\mathbb{R}\) is countable. \(\mathbb{R}\) is not finite, because it contains the natural numbers, and a list of every real number would include a list of every natural number, which cannot be finite (Example 6). So the elements of \(\mathbb{R}\) can be listed as a sequence \(r_1, r_2, r_3, \ldots\) in which every real number appears. Write each \(r_n\) as a decimal expansion, choosing one if \(r_n\) has two. Let \(d\) be the number between \(0\) and \(1\) whose \(n\)th decimal place is
- \(5\), if the \(n\)th decimal place of \(r_n\) is not \(5\);
- \(4\), if the \(n\)th decimal place of \(r_n\) is \(5\).
Then \(d\) is a real number, so \(d = r_m\) for some \(m\). The decimal places of \(d\) are all \(4\)s and \(5\)s, so \(d\) has only one decimal expansion (Remark 7), and the expansion chosen for \(r_m\) must be that one. But the two expansions differ in the \(m\)th decimal place, by the choice of \(d\). That is a contradiction, so \(\mathbb{R}\) is not countable.
4 Subsets and power sets
Proof. By Definition 13, \(\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.
Proof. Every element of \(A\) is an element of \(A\), which is Definition 13 with \(B = A\).
