Given the reflexive property of equality and the axiom of substitution, we can prove the property of symmetry. I came across the following proof:
$\alpha=\beta$ (hypothesis)
$\alpha=\alpha$ (axiom of reflexivity)
$\alpha=\beta\rightarrow\left(\alpha=\alpha\rightarrow\beta=\alpha\right)$ (axiom of substitution)
$\alpha=\alpha\rightarrow\beta=\alpha$ (MP 3,1)
$\beta=\alpha$ (MP 4,2)
First question: I think the above proof is not correct. The axiom of substitution, $\alpha=\beta\rightarrow\left[P(\alpha)\rightarrow P(\beta)\right]$ , requires that every free occurrence of $\alpha$ in $P$, is replaced by $\beta$ . Then, (3) should have been: $\alpha=\beta\rightarrow\left(\alpha=\alpha\rightarrow\beta=\beta\right)$. Am I right?
I also came across the following trick: Let $\alpha=\beta$ and let $P(x)$ be the predicate $x=\alpha$ . Then, obviously, $P(\alpha)$, since $\alpha=\alpha$ is an axiom. So:
$\alpha=\beta$ (hypothesis)
$P(\alpha)\leftrightarrow\alpha=\alpha$ (definition of $P(x)$)
$\alpha=\alpha$ (axiom of reflexivity)
$P(\alpha)$ (BMP 2,3)
$\alpha=\beta\rightarrow\left[P(\alpha)\rightarrow P(\beta)\right]$ (axiom of substitution)
$P(\alpha)\rightarrow P(\beta)$ (MP 5,1)
$P(\beta)$ (MP 6,4)
$P(\beta)\leftrightarrow\beta=\alpha$ (definition of $P(x)$ )
$\beta=\alpha$ (BMP 8,7)
Second question: I think the above proof is also not correct, strictly speaking. Why, how is it justified to attribute to $x=\alpha$ the name $P(x)$? To put it differently, by which inference rule we get the formula $P(x)\leftrightarrow x=\alpha$? Not by modus ponens, not by replacing variables in a given propositional schema, not by universal generalization. But these are all inference rules that we have at our disposal. Therefore, the formula $P(x)\leftrightarrow x=\alpha$ is arbitrary, right?
After all, if it is legitimate to produce the formula $P(x)\leftrightarrow x=\alpha$ by naming "$x=\alpha$" as "$P(x)$", then - by analogy - why we can not produce the sentence $\varepsilon=\alpha$, by naming $\alpha$ with the new name "$\varepsilon$"? Here we just assign the value $\alpha$ to the new symbol "$\varepsilon$", which has not been used before. But then, we can prove the reflexive property with the following instance of the substitution axiom: $\varepsilon=\alpha\rightarrow\left(\varepsilon=\alpha\rightarrow\alpha=\alpha\right)$. However, in all the books I have read, it is taken for granted that the reflexive property can not be proven. Besides, who assures us that there is an $\varepsilon$ , such that $\varepsilon=\alpha$ ? If $\alpha=\alpha$ does not hold, we have no reason to suppose that such an $\varepsilon$ exists. If it does hold, we get $\exists x(x=\alpha)$ with existential generalization and $\varepsilon=\alpha$ with existential determination. So, the reflexive property is equivalent to the ability to assign a value to a new symbol. If one of the two applies, then the other applies. This shows that we can not arbitrarily attribute a value to a new symbol, or a name to an object, for proof purposes. An axiom is needed. Why should we believe we are entitled to do something similar with a predicate?
Third question: If indeed the above proofs are not correct, then how do we prove the property of symmetry of equality in ordinary first order logic? (Without set theory, and the proof must be strict).