I am trying to understand if for two binary relations $\mathcal R$ and $\mathcal S$ the following statements are equivalent.
- $\mathcal R=\mathcal S$
- $\mathcal R\circ\mathcal T=\mathcal S\circ\mathcal T$ for any (possible) relation $\mathcal T$
- $\mathcal R[X]=\mathcal S[X]$ for any (possible) $X$
- $\mathcal R^{-1}=\mathcal S^{-1}$
- $\mathcal T\circ\mathcal R=\mathcal T\circ\mathcal S$ for any (possible) relation $\mathcal T$
So if $1$ holds then trivially $2$ holds.
Now if $2$ holds then for any $X$ we can consider the identity relation $\operatorname{id}_X$ so that the equality $$ \tag{2.1}\label{2.1}\mathcal R\circ\operatorname{id}_X=\mathcal S\circ\operatorname{id}_X $$ holds. So by \eqref{2.1} we argue that the equality $$ \mathcal R[X]=\mathcal R\big[\operatorname{id}_X[X]\big]=(\mathcal R\circ\operatorname{id}_X)[X]=(\mathcal S\circ\operatorname{id}_X)[X]=\mathcal S\big[\operatorname{id}_X[X]\big]=\mathcal S[X] $$ holds.
Now if $(y,x)$ is in $\mathcal R^{-1}$ then $(x,y)$ is in $\mathcal R$ and so $y$ is in $\mathcal R[x]$; however, if by hypothesis the equality $$ \mathcal R[x]=\mathcal S[x] $$ holds then $y$ is in $\mathcal S[x]$ and thus $(x,y)$ is in $\mathcal S$: we conclude that $(y,x)$ is in $\mathcal S^{-1}$ which is in particular not empty. Moreover by analogous arguments we can see that if $\mathcal S^{-1}$ is not empty then even $\mathcal R^{-1}$ is not empty and in particular it contains $\mathcal S^{-1}$. So by extensionality we conclude that $\mathcal R^{-1}$ and $\mathcal S^{-1}$ are equals.
Now if $\mathcal R^{-1}$ and $\mathcal S^{-1}$ are equals then the equality $$ \mathcal R^{-1}\circ\mathcal T^{-1}=\mathcal S^{-1}\circ\mathcal T^{-1} $$ holds so that even the equality $$ \mathcal T\circ\mathcal R=\big((\mathcal T\circ\mathcal R)^{-1}\big)^{-1}=(\mathcal R^{-1}\circ\mathcal T^{-1})^{-1}=(\mathcal S^{-1}\circ\mathcal T^{-1})^{-1}=\big((\mathcal T\circ\mathcal S)^{-1}\big)^{-1}=\mathcal T\circ\mathcal S $$ holds.
Finally if 5. holds then the equality $$ \mathcal T^{-1}\circ\mathcal R=\mathcal T^{-1}\circ\mathcal S $$ holds so that as above it is not complicate to conclude that the equality $$ \mathcal S^{-1}\circ\mathcal T=\mathcal R^{-1}\circ\mathcal T $$ holds. So as in 2. we conclude that $$ \mathcal R^{-1}[X]=\mathcal S^{-1}[X] $$ for any set $X$. Finally as in $3$ we conclude that $$ \mathcal R=\mathcal S $$
So first of all I ask if actually statements 1-5 are equivalent and so I ask if I well proved it. Specifically I ask to prove it more using a more clear argument since it seems to me it would be better to prove $1\to 5\to 2\to 3\to 4\to 1$ but unfortunately I am not able to prove $5\to 2$. So couls someone help me, please?
A possible solution could be the following which use the following theorem.
So let's we prove the following corollary
Now by extensionality a set $A$ is equal to a set $B$ iff $A$ is contained into $B$ and vice versa: so using thm. 1 and crl. 2 is possibile to prove the following theorem which actually is a corollary of thm. 1.