Skip to content

Mathematics · Ch 1 — Relations and Functions

Equivalence Relations and Equivalence Classes

2

Equivalence Relations and Equivalence Classes

2. Equivalence Relations and Equivalence Classes

A relation RR in a set AA is called an equivalence relation if RR is simultaneously reflexive, symmetric and transitive.

Equivalence relations formalise the everyday idea of "being alike" in some respect — same remainder on division, same length, same shape, and so on. To prove RR is an equivalence relation, all three properties from Section 1 must be verified explicitly; to disprove it, a single counterexample to any one property is enough.

Worked Illustration — Congruence Modulo 5

Let RR be the relation on Z\mathbb{Z} defined by a R ba\,R\,b iff 55 divides a−ba - b (written a≡b(mod5)a \equiv b \pmod 5).

  • Reflexive: a−a=0a - a = 0, and 5∣05 \mid 0, so (a,a)∈R(a,a) \in R for every aa.
  • Symmetric: if 5∣(a−b)5 \mid (a-b) then a−b=5ka-b = 5k for some integer kk, so b−a=5(−k)b - a = 5(-k), and 5∣(b−a)5 \mid (b-a).
  • Transitive: if 5∣(a−b)5 \mid (a-b) and 5∣(b−c)5 \mid (b-c), write a−b=5ka-b=5k, b−c=5mb-c=5m; then a−c=(a−b)+(b−c)=5(k+m)a-c = (a-b)+(b-c) = 5(k+m), so 5∣(a−c)5 \mid (a-c).

All three hold, so RR is an equivalence relation on Z\mathbb{Z}.

Equivalence Classes

For an equivalence relation RR on AA and a∈Aa \in A, the equivalence class of aa, written [a][a], is the set of all elements related to aa:

[a]={x∈A:x R a}[a] = \{x \in A : x\,R\,a\}

Equivalence classes have a remarkable structural property: any two equivalence classes are either identical or completely disjoint, and their union is all of AA — that is, the classes partition AA into non-overlapping blocks.

For congruence modulo 55 above, there are exactly five classes:

[0]={…,−10,−5,0,5,10,… },[1]={…,−9,−4,1,6,11,… },[2]={…,−8,−3,2,7,12,… }[0] = \{\dots,-10,-5,0,5,10,\dots\},\quad [1] = \{\dots,-9,-4,1,6,11,\dots\},\quad [2] = \{\dots,-8,-3,2,7,12,\dots\}

[3]={…,−7,−2,3,8,13,… },[4]={…,−6,−1,4,9,14,… }[3] = \{\dots,-7,-2,3,8,13,\dots\},\quad [4] = \{\dots,-6,-1,4,9,14,\dots\}

Every integer lies in exactly one of these five classes, decided entirely by its remainder on division by 55. …