Maths WorkshopMaths problems with full solutions
Exercise 1178Logic, sets and proofs › Sets and mapsL1Added 3 Nov 2026

Equivalence relations

#equivalence relation#reflexive#symmetric#transitive

Statement

Define an equivalence relation on a set AA and give an example.

Hint

Reflexive, symmetric, transitive.

Show solutionHide solution

Solution

Definition. ∼\sim is an equivalence relation on AA if:
- *Reflexive*: ∀x∈A\forall x\in A, x∼xx\sim x;
- *Symmetric*: ∀x,y∈A\forall x,y\in A, x∼y⇒y∼xx\sim y\Rightarrow y\sim x;
- *Transitive*: ∀x,y,z∈A\forall x,y,z\in A, (x∼y∧y∼z)⇒x∼z(x\sim y\land y\sim z)\Rightarrow x\sim z.

Example. On Z\mathbb{Z}, x∼y  ⟺  x−yx\sim y\iff x-y is even.

Verification.
- Reflexive: x−x=0x-x=0 is even.
- Symmetric: if x−yx-y even, then y−x=−(x−y)y-x=-(x-y) even.
- Transitive: if x−yx-y and y−zy-z are even, then x−z=(x−y)+(y−z)x-z=(x-y)+(y-z) even.

Conclusion. Congruence mod 22 (and more generally mod nn) is an equivalence relation.