Definition 7.5.1 Equivalence Relation.
Consider a relation \(R\) on a set \(X\text{.}\)
-
The relation \(R\) is reflexive if \((x,x) \in R\) for all \(x \in X\text{.}\) If the relation is defined by \(\sim\text{,}\) then we need \(x \sim x\) for all \(x \in X\text{.}\) For example, the relation\begin{equation*} R=\{ (a,b) \mid a, b\in \mathbb{Z} \text{ and } ab \ge 0\} \end{equation*}is reflexive on \(\mathbb{Z}\text{,}\) because for any \(a \in \mathbb{Z}\) we have \(aa=a^2 \ge 0\text{.}\) Thus \((a,a) \in R\text{.}\)
-
The relation \(R\) is symmetric if whenever \((x,y) \in R\text{,}\) then also \((y,x)\in R\) for all \(x,y \in X\text{.}\) If the relation is defined by \(\sim\text{,}\) then we need if \(x \sim y\text{,}\) then \(y \sim x\) for all \(x,y \in X\text{.}\) For example, the relation\begin{equation*} R=\{ (a,b) \mid a, b\in \mathbb{Z} \text{ and } ab = 0\} \end{equation*}is symmetric on \(\mathbb{Z}\text{,}\) because for any \(a,b \in \mathbb{Z}\) with \((a,b) \in R\) we have \(ab=0\text{.}\) Thus \(ba=0\) and so \((b,a) \in R\text{.}\)
-
The relation \(R\) is transitive if whenever \((x,y) \in R\) and \((y,z) \in R\text{,}\) then \((x,z)\in R\) for all \(x,y,z \in X\text{.}\) If the relation is defined by \(\sim\text{,}\) then we need if \(x \sim y\) and \(y \sim z\text{,}\) then \(x \sim z\) for all \(x,y,z \in X\text{.}\) For example, the relation\begin{equation*} R=\{ (a,b) \mid a, b\in \mathbb{Z} \text{ and } a \le b\} \end{equation*}is transitive on \(\mathbb{Z}\text{,}\) because for any \(a,b,c \in \mathbb{Z}\) with \((a,b) \in R\) and \((b,c) \in R\) we have \(a \le b\) and \(b \le c\text{.}\) Thus \(a \le c\) and so \((a,c) \in R\text{.}\)
-
The relation \(R\) is an equivalence relation if it is reflexive, symmetric, and transitive. For example, The relation\begin{equation*} R=\{ (a,b) \mid a, b\in \mathbb{Z} \text{ and } a^2=b^2\} \end{equation*}is an equivalence relation.
