Equality of Sets

For sets \(A\) and \(B\), if the elements of \(A\) and \(B\) coincide exactly, then \(A\) and \(B\) are said to be equal, and this is denoted by \(A=B\). The equality of \(A\) and \(B\) can also be expressed by saying that \(A\) is a subset of \(B\) and \(B\) is a subset of \(A\).

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.
\]

Example (Equal Sets)
Consider the following two sets:
\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.
Example (Unequal Sets)
Consider the following two sets:
\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.
Example (Intensional and Extensional Notation)
The set of positive even integers can be represented extensionally as
\[
\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:

  1. 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}

  2. 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}

  3. 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.

Proposition (Characterization of Unequal Sets Using Inclusion Relations)
For arbitrary sets \(A,B\), the following three statements \begin{align*}
& \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\).

Example (Unequal Sets)
Let \(A\) be the set of students who passed the mathematics examination, and let \(B\) be the set of students who passed the physics examination. Suzuki passed the mathematics examination but failed the physics examination. Thus, \[
\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\).

Example (Unequal Sets)
Let \(A\) be the set of students who passed the mathematics examination, and let \(B\) be the set of students who passed the physics examination. Suppose that the numbers of elements of \(A\) and \(B\) are counted and found to be different. Then \(A\not =B\). Therefore, by the preceding proposition, there must exist a student who passed exactly one of the mathematics and physics examinations.

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\).

Proposition (Characterization of Equal Sets Using Inclusion Relations)
For arbitrary sets \(A,B\), the following three statements \begin{align*}
& \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\).

Example (Equal Sets)
Suppose that, in order for students to use the basement stacks of a university library, they must pass their student ID cards through a card reader both when entering and when leaving. Let \(A\) be the set of students registered on the entry list, and let \(B\) be the set of students registered on the exit list. When the records are checked, suppose that every student with an entry record also has an exit record, and every student with an exit record also has an entry record. Thus, \[
\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\).

Example (Equal Sets)
Suppose that, in order for students to use the basement stacks of a university library, they must pass their student ID cards through a card reader both when entering and when leaving. Let \(A\) be the set of students registered on the entry list, and let \(B\) be the set of students registered on the exit list. Suppose that inspection of the records shows that the entry list and the exit list coincide exactly. Therefore, by the preceding proposition, there is no student registered on only one of the entry list and the exit list.

 

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.

Proposition (Equality of Sets Defined Intensionally)
Suppose that the sets \(A,B\) are defined intensionally 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*}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.
Proof

Members-Only Content
【Log In】【Sign Up】

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) \).

Example (Equal Sets)
Define the set \(A\) by \[
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.

Proposition (Inequality of Sets Defined Intensionally)
Suppose that the sets \(A,B\) are defined intensionally 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*}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.
Proof

Members-Only Content
【Log In】【Sign Up】

 

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.

Example (Proper Subset)
For the sets \(\left\{ 1,3,5\right\} \) and \(\left\{ 1,3\right\} \), \[
\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

Problem (Equality of Sets)
For the sets
\begin{align*}
A & =\left\{ x\in\mathbb{R} \ |\ x^{2}=1\right\} \\
B & =\left\{ -1,1\right\} ,
\end{align*}does
\[
A=B
\]hold?
View Solution

Members-Only Content
【Log In】【Sign Up】

Problem (Equality Relation of Sets)
Let the universal set be denoted by \(U\). For arbitrary sets \(A,B\subset U\), show that \[
A=B
\]holds if and only if
\[
\forall x\in U:\left( x\in A\Leftrightarrow x\in B\right)
\]holds.
View Solution

Members-Only Content
【Log In】【Sign Up】

Problem (Equality of Sets)
For arbitrary sets \(A,B\), determine whether each of the following statements holds, and explain why: \begin{align*}
& \left( a\right) \ A=B\Rightarrow A\subset B\\
& \left( b\right) \ A\subset B\Rightarrow A=B.
\end{align*}

View Solution

Members-Only Content
【Log In】【Sign Up】

Problem (Equality of Sets)
For arbitrary sets \(A,B\), determine whether each of the following statements holds, and explain why: \begin{align*}
& \left( a\right) \ A=B\Rightarrow A\varsubsetneq B\\
& \left( b\right) \ A\varsubsetneq B\Rightarrow A=B.
\end{align*}

View Solution

Members-Only Content
【Log In】【Sign Up】

Problem (Equality of Sets)
Define the sets \(A,B\) by \begin{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.
View Solution

Members-Only Content
【Log In】【Sign Up】

Problem (Equality of Sets)
Define the sets \(A,B\) by \begin{align*}
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.
View Solution

Members-Only Content
【Log In】【Sign Up】

Problem (Inclusion Relation Is an Order Relation)
For arbitrary sets \(A,B,C\), prove that \begin{align*}
& \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.
View Solution

Members-Only Content
【Log In】【Sign Up】

Problem (Property of the Inclusion Relation)
For arbitrary sets \(A,B\), does \[
A\subset B\vee B\subset A
\]always hold? Explain your answer.
View Solution

Members-Only Content
【Log In】【Sign Up】

Problem (Equality Relation Is an Equivalence Relation)
For arbitrary sets \(A,B,C\), prove that \begin{align*}
& \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.
View Solution

Members-Only Content
【Log In】【Sign Up】

Discussion

To ask questions about this material or discuss it with other learners, you need to register as a member and log in.

  • Members can post comments
  • You can reply to other users
  • You can search and view past discussions
  • You can edit your posts later

At WIIS, we believe that all users are equal as learners, regardless of age, gender, educational background, occupation, or social status.

This is not a place to compete over knowledge, but a space to deepen understanding while respecting one another’s ideas. Questions and opinions are welcome, and you are also encouraged to ask openly about anything you do not understand.

To help maintain a constructive and welcoming learning environment, please review the guidelines before posting.

If you find a typo, broken link, or error in the content, please let us know using the form below.

User Posts Related to This Lesson

Table of Contents

MEMBERSHIP

Take your learning further.

Join WIIS to access
members-only content,
downloadable PDF textbooks,
AI Tutor, forums,
and other member benefits.

MEMBERS-ONLY CONTENT

Access exclusive materials designed for deeper learning.

PDF TEXTBOOKS

Download textbooks and study them anywhere.

AI Tutor

Use AI-powered support to deepen your understanding.

COMMUNITY FEATURES

Connect with other learners and join discussions and research.

ログイン

アカウントにログインして、学習ノートやブックマーク、投稿記事などを管理できます。

Recently Viewed Pages