The following takes place in the category of sets.
Suppose $(p_0,p_1):R \rightarrow X \times X$ in an equivalence relation on $X$. Let $p_R: X \rightarrow P_R$ be the coequalizer of $p_0,p_1:R \rightarrow X$. Let $x,x': T \rightarrow X$.
I want to prove the following are equivalent:
$1)$ $p_R (x) = p_R (x')$ in $P_R$.
$2)$ There exists an $r: T \rightarrow R$ such that $p_0 r = x$ and $p_1 r = x'$
$3)$ $(x,x') \in R$
My definition of an equivalence relation is as follows:
1) $(p_0,p_1): R \rightarrow X \times X$ is reflexive iff there is an $r: X \rightarrow R$ such that $p_0 r = 1_X = p_1 r$.
2) $(p_0,p_1):R \rightarrow X \times X$ is symmetric iff $R^{\text{op}} \subseteq_{X \times X} R$.
3) $(p_0,p_1):R \rightarrow X \times X$ is transitive iff for all $(x,y),(y,z): T \rightarrow X \times X$, if $(x,y) \in R$ and $(y,z) \in R$ then $(x,z) \in R$.
$R^{\text{op}}=(p_1,p_0): R \rightarrow X \times X$ is the opposite relation on $X \times X$ with the same domain $R$ as $(p_0,p_1)$.
So far my work on $1) \Rightarrow 2)$ goes as follows:
Suppose $p_R x = p_R x'$ for some $x,x'$. Since $R$ is reflexive, there is an $s:X \rightarrow R$ such that $p_0 s = 1_X = p_1 s$. Define $r=s x'$..
Now my problem is that, I find it hard to see how to define $r$ with out running into trouble, since it is not obvious to me that $s x' = s x$ and I suspect it is not true, but I don't know how else to define a working $r$. Proving 2) implies 3) and 3) implies 1) are easy enough.
Any help is much appreciated!