Skip to main content

Section 4.3 Equivalence Relations

With modulo arithmetic any number that is equivalent to another can be substituted in arithmetic without changing the result. In an error correcting code any strings that are equivalent are interpreted as the same data. This section develops the properties that define equivalence in a general sense.

Subsection 4.3.1 Defined

Definition 4.3.1. Equivalence Relation.

A relation is an equivalence relation if and only if the relation is reflexive, symmetric, and transitive.

Checkpoint 4.3.2.

Determine whether the following relation is an equivalence relation. Consider the set \(\Pow(X)\) for the set \(X=\{a,b,c\}.\) Let the relation \(R\) be defined by \(A\) is related to \(B\) if and only if \(A \subseteq B.\) It may help to list all the elements of \(\Pow(X)\) first using the definition of power set.

Checkpoint 4.3.3.

Determine whether the following relation is an equivalence relation. Let the relation \(R\) on the set of integers be defined by \(aRb\) if and only if \(a \equiv b \pmod n.\) Note the value of \(n\) is irrelevant here.

Checkpoint 4.3.4.

Determine whether the following relation is an equivalence relation. Let the relation \(R\) on the set of integers be defined by \(aRb\) if and only if \(a|b.\)

Checkpoint 4.3.5.

Determine whether the following relation is an equivalence relation. Let the relation \(R\) on the set of real numbers be defined by \(aRb\) if and only if \(a \le b.\)

Subsection 4.3.2 Equivalence Classes

Definition 4.3.6. Equivalence Class.

For an equivalence relation \(R\text{,}\) a set of elements, denoted \([y]\text{,}\) is an equivalence class if and only if \([y]=\{ x \: | \: xRy \}.\)

The two questions we ask are

  1. What are the equivalence classes?
  2. What are the elements of an equivalence class.

Questions asking about elements of an equivalence class may be phrased any of the following ways.

  • List elements from the equivalence class \([a]\)
  • Find elements of the equivalence class \([a]\)
  • Find the equivalence class \([a]\)
Example 4.3.7. Find an Equivalence Class.

Consider the equivalence relation defined by \(aRb\) if and only if \(a \cong b \pmod 5\text{.}\) Find the equivalence class \([0]\text{.}\) List at least four elements.

Solution

\([0]\) is the set of all integers \(n\) such that \(n \cong 0 \pmod 5.\) We calculated some of these before: \(0,5,10,-5,\ldots\) Thus \([0]=\{\ldots, -5, 0, 5, 10, \ldots \}.\)

Example 4.3.8. Find an Equivalence Class.

Consider the relation \(R\) on \(\Z^+ \times \Z^+\) defined by \((a,b)R(c,d)\) if and only if \(ad=bc.\) Find the equivalence class \([(1,2)]\text{.}\) List at least four elements.

Solution

Based on previous calculations we know \((2,4)R(1,2),\text{,}\) \((3,6)R(1,2),\) and \((-1,-2)R(1,2).\) Thus \([(1,2)]=\{\ldots, (-1,-2), (1,2), (2,4), (3,6), \ldots \}.\)

Example 4.3.9. Find Distinct Equivalence Classes.

Consider the equivalence relation defined by \(aRb\) if and only if \(a \cong b \pmod 5\text{.}\) List multiple, distinct equivalence classes.

Solution

Note \(5 \not| (1-0)\) so \([0]\) and \([1]\) are distinct equivalence classes. Also \(5 \not| (2-0)\) and \(5 \not|(2-1).\) Thus \([2]\) is a third, distinct equivalence class.

Example 4.3.10. Find Distinct Equivalence Classes.

Consider the relation \(R\) on \(\Z^+ \times \Z^+\) defined by \((a,b)R(c,d)\) if and only if \(ad=bc.\) List multiple, distinct equivalence classes.

Solution

Consider (1,2) and (3,5). Note \(1 \cdot 5 \ne 2 \cdot 3.\) Thus \([(1,2)]\) and \([(3,5)]\) are distinct equivalence classes. Also consider (1,7). Note \(1 \cdot 7 \ne 2 \cdot 4\) and \(3 \cdot 7 \ne 5 \cdot 4.\) Thus \([(4,7)]\) is a third, distinct equivalence class.

Checkpoint 4.3.11.

Find the equivalence class of 0 and the class of 1 for the relation \(a \equiv b \pmod 6. \)

Checkpoint 4.3.12.

List every equivalence class for the relation \(a \equiv b \pmod 6. \)

Checkpoint 4.3.13.

Two five bit, binary code words are equivalent if they are distance two or less from one of the selected code words. List all the code words equivalent to 00000.

Checkpoint 4.3.14.

For the code word problem above, what is the maximum number of equivalence classes possible?

Checkpoint 4.3.15.

Consider the following equivalence relation. \(X=\{mx+b \: | \: m,b \in \R \},\) the set of all 2D lines. \(R\) is defined by \(\ell_1(x)=m_1x+b_1 \equiv \ell_2(x)=m_2x+b_2\) if and only if \(m_1=m_2.\)

Find the equivalence class of \(y=5x+3\) and the class of \(y=\frac{11}{7}x+\frac{13}{208}.\)

Checkpoint 4.3.16.

Consider the following equivalence relation. \(X=\{mx+b \: | \: m,b \in \R \},\) the set of all 2D lines. \(R\) is defined by \(\ell_1(x)=m_1x+b_1 \equiv \ell_2(x)=m_2x+b_2\) if and only if \(m_1=m_2.\)

List four distinct equivalence classes for this relation.

Subsection 4.3.3 Characterizing Equivalence Classes

The following questions draw attention to properties of equivalence classes

Checkpoint 4.3.17.

Suppose the equivalence class \([a]=\{a,c,e\}.\) What is the equivalence class \([c]\text{?}\)

Checkpoint 4.3.18.

Suppose the equivalence class \([a]\) contains \(a,c,e,g\) and \([i]\) contains \(g\text{.}\) What else do we know is in \([i]\text{.}\)

Checkpoint 4.3.19.

If two equivalence classes share one element, how many elements do they share?

Checkpoint 4.3.20.

Prove no even number is odd.

Checkpoint 4.3.21.

Explain how even/odd defines an equivalence relation on the integers.

Checkpoint 4.3.22.

Why does major not define an equivalence relation on the set of current students at UAA?