Equivalence Relation is Congruence iff Compatible with Operation/Proof 1

Proof
Suppose $\mathcal R$ is a congruence relation for $\circ$.

That is:
 * $\forall x_1, x_2, y_1, y_2 \in S: x_1 \mathrel {\mathcal R} x_2 \land y_1 \mathrel {\mathcal R} y_2 \implies \left({x_1 \circ y_1}\right) \mathrel {\mathcal R} \left({x_2 \circ y_2}\right)$

As $\mathcal R$ is an equivalence relation it is by definition reflexive.

That is:
 * $\forall z \in S: z \mathop {\mathcal R} z$

Make the substitutions:
 * $x_1 \to x$
 * $x_2 \to y$
 * $y_1 \to z$
 * $y_2 \to z$

It follows that:
 * $\forall x, y, z \in S: x \mathrel {\mathcal R} y \implies \left({x \circ z}\right) \mathrel {\mathcal R} \left({y \circ z}\right)$

Similarly, make the substitutions:
 * $x_1 \to z$
 * $x_2 \to z$
 * $y_1 \to x$
 * $y_2 \to y$

It follows that:
 * $\forall x, y, z \in S: x \mathrel {\mathcal R} y \implies \left({z \circ x}\right) \mathrel {\mathcal R} \left({z \circ y}\right)$

Now let $\mathcal R$ have the nature that:

Then we have:

As $\mathcal R$ is an equivalence relation it is by definition transitive.

Thus it follows that:
 * $\left({x_1 \circ x_2}\right) \mathrel {\mathcal R} \left({y_1 \circ y_2}\right)$

The result follows.