Equality of sets [006N]
- February 18, 2026
Now that we have defined subset, we can define what it means for two sets to be equal.
Definition Set equality [006O]
- February 18, 2026
Two sets are equal if each is a subset of the other; that is, (A = B) \equiv (A \subseteq B) \land (B \subseteq A).
Remark [006P]
- February 18, 2026
This is typically how we prove that two sets are equal: show that each is a subset of the other. We might want to do this, for example, in a situation where we have two sets which are described in very different ways, and it is an interesting and nontrivial fact that these two different descriptions actually result in the same set.
Example [006Q]
- February 18, 2026
Let A = \{ 2x+3 \mid x \in \Z \} and B = \{ x \mid x \in \Z , \mathrm {Odd}(x) \}. Prove that A = B.
Proof.
- February 18, 2026
By definition, A = B if A \subseteq B and B \subseteq A. We will prove each separately.
Subproof. http://ozark.hendrix.edu/~yorgey/forest/006Q/ ›
- February 18, 2026
We will first show A \subseteq B. By definition, this means \forall {y}: {A}.\; y \in B. So let a \in A be an arbitrary element of A. We must show a \in B as well.
Subproof. http://ozark.hendrix.edu/~yorgey/forest/006Q/ ›
- February 18, 2026
By definition of A, if a \in A there must exist some x \in \Z such that a = 2x+3. We can rewrite this as a = 2(x+1) + 1, thus showing that a is odd, and hence a \in B.
Subproof. http://ozark.hendrix.edu/~yorgey/forest/006Q/ ›
- February 18, 2026
Next we must show B \subseteq A, which means \forall {y}: {B}.\; y \in A. So let b \in B be an arbitrary element of B, and we will show b \in A.
Subproof. http://ozark.hendrix.edu/~yorgey/forest/006Q/ ›
- February 18, 2026
By definition of B, since b \in B we must have b \in \Z and \mathrm {Odd}(b), that is, b = 2k+1 for some k \in \Z .
But b = 2k+1 = 2k - 2 + 3 = 2(k-1) + 3. Since k is an integer, so is k-1; hence b \in A by definition, since it is three more than twice an integer.