Give a Hilbert-style proof $$ \vdash ( x=y \rightarrow y = x) $$
I don't know where to start. I thought maybe I can use Ax5 (Identity axiom) $ x = x $ as a starting point.
See George Tourlakis, Mathematical Logic (2008) or this post for a list of axioms and theorems.
If you want, you can "rewrite" Amr's proof with Tourlakis' rules as follows.
Start from Ax6 [page 139] : this group contains all formulae of the form :
It is called the "Leibniz axiom (group) for equality".
Using the following instance of Ax6, with $A(x) := (w = x)$ :
we get :
Now, as per Amr's answer, assume :
$x = y$;
by modus ponens we get :
$x = y \vdash ((x = x) \equiv (y = x))$.
But we have Ax5 : $\vdash x = x$; using Equanimity [page 39] we have :
$x = y \vdash y = x$.
A last step with Deduction Theorem and we will have :