Equality of Sets
Sets can be represented in various ways. Even the same set can be represented by listing its elements or by using a propositional function. Therefore, two expressions that look different may in fact represent the same set.
In such situations, it is necessary to define clearly what it means for two sets to be equal. In this section, we define equality of sets and learn the basic methods for proving equality of sets from that definition.
If two sets \(A,B\) have exactly the same elements, then \(A\) and \(B\) are said to be equal as sets (set equality), which is denoted by \[
A=B.
\]
Conversely, if the set \(A\) and the set \(B\) are not equal, this is denoted by \[
A\not =B.
\]
\begin{align*}
A & =\left\{ 1,2,3,4,5\right\} \\
B & =\left\{ 5,4,3,2,1\right\} .
\end{align*}Since the elements belonging to \(A\) and those belonging to \(B\) are exactly the same, \[
A=B
\]holds.
\begin{align*}
A & =\left\{ 1,2,3,4\right\} \\
B & =\left\{ 1,2,3,4,5\right\} .
\end{align*}The elements belonging to \(A\) and those belonging to \(B\) do not coincide completely (\(5\) is an element of \(B\) but not of \(A\)). Therefore, \[
A\not =B
\]holds.
\[
\left\{ 2,4,6,8,\cdots\right\} ,
\]whereas it can be represented intensionally as
\[
\left\{ 2n\ |\ n\in\mathbb{N} \right\} .
\]Since the elements belonging to the two sets are the same,
\[
\left\{ 2,4,6,8,\cdots\right\} = \left\{ 2n\ |\ n\in\mathbb{N} \right\}
\]holds.
Definition of Equality of Sets Using Inclusion Relations
For two sets \(A,B\), the statement that \(A\) and \(B\) are not equal, that is, \(A\not =B\), means that the proposition “the sets \(A,B\) have exactly the same elements” is false. The following cases are possible:
- There exists an element of \(A\) that is not an element of \(B\). That is, \begin{equation}
\exists x\in A:x\not \in B.\quad \cdots (1)\end{equation} - There exists an element of \(B\) that is not an element of \(A\). That is, \begin{equation}
\exists x\in B:x\not \in A.\quad \cdots (2)\end{equation} - Both \(\left( 1\right) \) and \(\left( 2\right) \) hold.
Therefore, \(A\not =B\) means that at least one of \(\left( 1\right) \) and \(\left( 2\right) \) holds, that is, that the proposition \[
\left( \exists x\in A:x\not \in B\right) \vee\left( \exists x\in B:x\not \in A\right)
\]is true. By the definition of the inclusion relation \(\subset\), this is equivalent to \[
A\not \subset B\vee B\not \subset A.
\]Thus, \(A\) and \(B\) are unequal precisely when either \(A\) is not a subset of \(B\), or \(B\) is not a subset of \(A\), or both.
& \left( a\right) \ A\not =B\\
& \left( b\right) \ \left( \exists x\in A:x\not \in B\right) \vee\left(
\exists x\in B:x\not \in A\right) \\
& \left( c\right) \ A\not \subset B\vee B\not \subset A
\end{align*}are equivalent.
The proposition above shows that, in order to prove that two sets \(A,B\) are not equal, it is enough to show that \(A\) is not a subset of \(B\), or that \(B\) is not a subset of \(A\).
\text{Suzuki}\in A\wedge\text{Suzuki}\not \in B
\]holds. Therefore, by the preceding proposition,
\[
A\not =B
\]holds.
The converse argument also holds. If it is known that two sets \(A,B\) are not equal, then there necessarily exists an element that belongs to exactly one of \(A\) and \(B\).
Since \(A\not =B\) is equivalent to the proposition \[
\left( \exists x\in A:x\not \in B\right) \vee\left( \exists x\in B:x\not \in A\right) ,
\]the equality \(A=B\) is equivalent to the negation of this proposition, namely, \[
\left( \forall x\in A:x\in B\right) \wedge\left( \forall x\in B:x\in A\right) .
\]By the definition of the inclusion relation \(\subset\), this is further equivalent to \[
A\subset B\wedge B\subset A.
\]Thus, \(A\) and \(B\) are equal precisely when \(A\) is a subset of \(B\) and \(B\) is a subset of \(A\).
& \left( a\right) \ A=B\\
& \left( b\right) \ \left( \forall x\in A:x\in B\right) \wedge\left(
\forall x\in B:x\in A\right) \\
& \left( c\right) \ A\subset B\wedge B\subset A
\end{align*}are equivalent.
The proposition above shows that, in order to prove that two sets \(A,B\) are equal, it is enough to show that \(A\) is a subset of \(B\) and that \(B\) is a subset of \(A\).
\left( \forall x\in A:x\in B\right) \wedge\left( \forall x\in B:x\in A\right)
\]holds. Therefore, by the preceding proposition,
\[
A=B
\]holds.
The converse argument also holds. If it is known that two sets \(A,B\) are equal, then there is no element that belongs to exactly one of \(A\) and \(B\).
Equality of Sets Defined Intensionally
Suppose that the sets \(A,B\) are defined intensionally by propositional functions \(P\left( x\right) ,Q\left( x\right) \) of the variable \(x\) as \begin{align*}
A & =\left\{ x\in X\ |\ P\left( x\right) \right\} \\
B & =\left\{ x\in X\ |\ Q\left( x\right) \right\} .
\end{align*}Here, \(X\) is the domain of the variable \(x\). Thus, for every \(x\in X\), \begin{align*}
x & \in A\Leftrightarrow P\left( x\right) \\
x & \in B\Leftrightarrow Q\left( x\right)
\end{align*}hold by definition. We have already expressed the equality of \(A\) and \(B\) in terms of inclusion relations, but it can also be expressed in the following form.
A & =\left\{ x\in X\ |\ P\left( x\right) \right\} \\
B & =\left\{ x\in X\ |\ Q\left( x\right) \right\} .
\end{align*}Then the following three statements
\begin{align*}
& \left( a\right) \ A=B\\
& \left( b\right) \ \forall x\in X:\left[ P\left( x\right) \Rightarrow Q\left( x\right) \right] \wedge\forall x\in X:\left[ Q\left( x\right)
\Rightarrow P\left( x\right) \right] \\
& \left( c\right) \ \forall x\in X:\left[ P\left( x\right)
\Leftrightarrow Q\left( x\right) \right] \end{align*}are equivalent.
Suppose that the sets \(A,B\) are defined as \begin{align*}
A & =\left\{ x\in X\ |\ P\left( x\right) \right\} \\
B & =\left\{ x\in X\ |\ Q\left( x\right) \right\} .
\end{align*}We have seen that \(A=B\) means that the proposition \[
\forall x\in X:\left[ P\left( x\right) \Rightarrow Q\left( x\right)
\right] \wedge\forall x\in X:\left[ Q\left( x\right) \Rightarrow P\left(
x\right) \right]
\]is true. Therefore, in order to show that \(A=B\), it is enough to show that \(Q\left( x\right) \) holds for every value \(x\in X\) satisfying \(P\left( x\right) \), and that \(P\left( x\right) \) holds for every value \(x\in X\) satisfying \(Q\left( x\right) \).
A=\left\{ 3a+2b\ |\ a,b\in\mathbb{Z} \right\} ,
\]where \(\mathbb{Z}\) is the set of all integers. We show that
\[
A=\mathbb{Z} .
\]First, we show that
\begin{equation}
A\subset\mathbb{Z} \quad \cdots (1)\end{equation}holds. Choose an arbitrary element \(x\in A\). By the definition of \(A\), there exist integers \(a,b\in\mathbb{Z} \) such that \[
x=3a+2b.
\]Since sums and products of integers are integers, \(3a+2b\) is an integer, and hence so is \(x\). Thus \(x\in\mathbb{Z} \), proving \(\left( 1\right) \).
Next, we show that
\begin{equation}\mathbb{Z} \subset A.\quad \cdots (2)\end{equation}Choose an arbitrary \(z\in\mathbb{Z} \). We can write \[
z=3z+2\left( -z\right) .
\]Since \(z,-z\in\mathbb{Z} \), the definition of \(A\) implies that \(3z+2\left( -z\right) \in A\). Therefore \(z\in A\), proving \(\left( 2\right) \). Since both \(\left( 1\right) \) and \(\left( 2\right) \) have been established, the proof that \(A=\mathbb{Z} \) is complete.
The fact that two sets are not equal can be expressed as follows.
A & =\left\{ x\in X\ |\ P\left( x\right) \right\} \\
B & =\left\{ x\in X\ |\ Q\left( x\right) \right\} .
\end{align*}Then the following three statements
\begin{align*}
& \left( a\right) \ A\not =B\\
& \left( b\right) \ \exists x\in X:\left[ P\left( x\right) \wedge\lnot Q\left( x\right) \right] \vee\exists x\in X:\left[ Q\left( x\right)
\wedge\lnot P\left( x\right) \right] \\
& \left( c\right) \ \exists x\in X:\lnot\left[ P\left( x\right)
\Leftrightarrow Q\left( x\right) \right] \end{align*}are equivalent.
Proper Subsets
For two sets \(A,B\), if \(A\) is a subset of \(B\) but \(A\) is not equal to \(B\), that is, if \[
A\subset B\wedge A\not =B
\]holds, then \(A\) is said to be a proper subset of \(B\), denoted by \[
A\varsubsetneq B.
\]
The statement that \(A\) is not a proper subset of \(B\) means that the negation of the proposition above holds, namely, \[
A\not \subset B\vee A=B.
\]Thus, \(A\) is not a proper subset of \(B\) when at least one of the following holds: \(A\) is not a subset of \(B\), or \(A\) and \(B\) are equal.
\left\{ 1,3\right\} \varsubsetneq\left\{ 1,3,5\right\}
\]holds. Also,
\begin{align*}
\left\{ 1,3\right\} & \subset\left\{ 1,3\right\} \\
\left\{ 1,3,5\right\} & \subset\left\{ 1,3,5\right\}
\end{align*}both hold, whereas
\begin{align*}
\left\{ 1,3\right\} & \varsubsetneq\left\{ 1,3\right\} \\
\left\{ 1,3,5\right\} & \varsubsetneq\left\{ 1,3,5\right\}
\end{align*}are both false.
Exercises
\begin{align*}
A & =\left\{ x\in\mathbb{R} \ |\ x^{2}=1\right\} \\
B & =\left\{ -1,1\right\} ,
\end{align*}does
\[
A=B
\]hold?
A=B
\]holds if and only if
\[
\forall x\in U:\left( x\in A\Leftrightarrow x\in B\right)
\]holds.
& \left( a\right) \ A=B\Rightarrow A\subset B\\
& \left( b\right) \ A\subset B\Rightarrow A=B.
\end{align*}
& \left( a\right) \ A=B\Rightarrow A\varsubsetneq B\\
& \left( b\right) \ A\varsubsetneq B\Rightarrow A=B.
\end{align*}
A & =\left\{ 1,2,3,4\right\} \\
B & =\left\{ n\in\mathbb{N} \ |\ n^{2}<17\right\} .
\end{align*}Prove that \(A=B\). Here, \(\mathbb{N}\) denotes the set of all natural numbers.
A & =\left\{ 4x+1\in\mathbb{R} \ |\ x\in\mathbb{Z} \right\} \\
B & =\left\{ 4x-3\in\mathbb{R} \ |\ x\in\mathbb{Z} \right\} .
\end{align*}Prove that \(A=B\). Here, \(\mathbb{Z}\) denotes the set of all integers.
& \left( a\right) \ A\subset A\\
& \left( b\right) \ (A\subset B\wedge B\subset C)\Rightarrow A\subset C\\
& \left( c\right) \ (A\subset B\wedge B\subset A)\Rightarrow A=B.
\end{align*}That is, the inclusion relation \(\subset\) is a partial order relation.
A\subset B\vee B\subset A
\]always hold? Explain your answer.
& \left( a\right) \ A=A\\
& \left( b\right) \ A=B\Rightarrow B=A\\
& \left( c\right) \ (A=B\wedge B=C)\Rightarrow A=C.
\end{align*}That is, the equality relation \(=\) on sets is an equivalence relation.
