An equivalence relation on is a binary relation that is reflexive, symmetric and transitive: for every ; ; and . Write , using the stated order for composition of relations. Composition is associative because both possible bracketings mean that there is a two-step sequence of intermediate witnesses. Reflexivity shows
and also that is reflexive. Transitivity and reflexivity of the original relations give , . Since both original relations are symmetric,
The four parts below show that each condition is equivalent to the commuting equivalence relations condition .
For the integer example, put . Membership of in the composite means that some satisfies , for integers . Consequently is divisible by . Conversely, if is divisible by , the Bezout identity expresses it as ; setting provides the required witness. Thus
Reversing the roles of gives exactly the same modular congruence relation, hence . This verifies all four conditions and identifies their common smallest equivalence relation explicitly.