I am reading "Logic" by Paul Tomassi. While discussing first-order logic in Chapter $6$ p. $310$, he provides the following justification for the inference rule known as identity introduction:
"The intuition which identity introduction exploits is [...] that everything is identical with itself, i.e. the law of identity."
Elsewhere, on p. $311$, he offers proof of the law identity as follows
$\vdash \forall x [x=x]$
$\emptyset \:\:\:$ $1. a=a \:\:\:\:\:\:\:\:\:\:\:\:\:$ =I
$\emptyset \:\:\:$ $2. \forall x [x=x] \:\:\:\:\:\:$ $1$ UI
As you can see, the law of identity is proven using identity introduction, denoted as =I, which exploits the idea that everything is identical to itself, which is in turn expressed by the law of identity. This kind of reasoning appears circular to me.
Can someone bring some clarity? My initial thought is that the law of identity is taken as an axiom of classical logic. However, if that was the case, then why would Tomassi bother offerring a proof of the law identity?
There is a difference between $a=a$ and $\forall x[x=x]$. The second one has a quantifier. Of course passing from one to the other is completely trivial, given the introduction rule for the universal quantifier. So the first one is taken as an axiom, and the second one as a very easy consequence.