Proofs with Sets
Membership, subsets and set equality
Adapted from Kameron Decker Harris’s Fall 2026 lecture notes “Proofs Involving Sets”, which are typed transcriptions of Scott Wehrwein’s Spring 2025 handwritten lecture notes. These come from those notes:
- what to show to prove that an element is in a set given in set-builder notation;
- the direct and contrapositive outlines of a subset proof;
- proving set equality by proving that each set is a subset of the other;
- the theorem that a nonempty factor cancels from both sides of an equation between Cartesian products, with the proof of its first half.
Everything else is new: the exercises, the other examples and theorems, the second half of that proof, the membership test for a set built with an expression, and the section on disproving a claim about sets.
1 Proving membership
2 Proving a subset
Proof. Suppose \(A \subseteq B\) and \(B \subseteq C\), and let \(a \in A\). Since \(A \subseteq B\), \(a \in B\) (Definition: Subset). Since \(B \subseteq C\), \(a \in C\). So every element of \(A\) is in \(C\), and \(A \subseteq C\).
3 Proving set equality
Proof. By Definition: Set, \(A = B\) means that every \(x\) has \(x \in A \Leftrightarrow x \in B\). By Theorem: A biconditional is two conditionals, that biconditional is the same as “\(x \in A \Rightarrow x \in B\), and \(x \in B \Rightarrow x \in A\)”. A conjunction is true for every \(x\) exactly when each of its two parts is true for every \(x\). The first conditional, for every \(x\), is \(A \subseteq B\) (Definition: Subset), and the second, for every \(x\), is \(B \subseteq A\).
Proof. (\(\Rightarrow\)) Suppose \(A \subseteq B\). We show \(A \cap B = A\) with Theorem 2. If \(x \in A \cap B\), then \(x \in A\) (Definition: Intersection). If \(x \in A\), then \(x \in B\), since \(A \subseteq B\), so \(x \in A \cap B\).
(\(\Leftarrow\)) Suppose \(A \cap B = A\), and let \(x \in A\). Then \(x \in A \cap B\), since the two sets are equal, so \(x \in B\). So \(A \subseteq B\).
Proof. Suppose \(A \times C = B \times C\). Since \(C \ne \emptyset\), there is some \(c \in C\) (Definition: Empty set).
(\(\subseteq\)) Let \(a \in A\). Then \((a, c) \in A \times C\). Since \(A \times C = B \times C\), also \((a, c) \in B \times C\), so \((a, c) = (b, c')\) for some \(b \in B\) and \(c' \in C\) (Definition: Cartesian product). Two ordered pairs are equal only when their first entries are equal (Definition: Ordered pair), so \(a = b\), and \(a \in B\).
(\(\supseteq\)) Let \(b \in B\). Then \((b, c) \in B \times C = A \times C\), so \(b \in A\), by the same steps with \(A\) and \(B\) swapped.
So \(A = B\) (Theorem 2).