My goal is to prove math theorems without skipping any steps. Is this proof correct?
I googled Peano exercises
I found: http://www.public.coe.edu/~jwhite/s11/fndho5.s11.pdf
Question 1 says to prove the following from Peano Axioms: $\forall x, y \in N, x + (y + 0) = (x + y) + 0$.
Axiom: $\forall x (x + 0 = x)$, therefore $\forall y (y + 0 = y)$ (substituting $x$ for $y$).
Axiom: $\forall x (x=x)$ therefore $\forall x, y \in N, x + (y + 0) = x + (y + 0)$. Can you do this in a single step? Or would you need to build up the expression on either side?
2: $\forall x, y \in N, x + (y + 0) = x + (y + 0)$ and 1: $\forall y (y + 0 = y)$ therefore $\forall x, y \in N, x + (y + 0) = x + y$ (substituted the second instance of $(y + 0)$ for $y$).
Axiom: $\forall x (x + 0 = x)$, therefore $\forall x,y ((x + y) + 0 = (x + y))$ (substituting $x$ for $(x + y)$). Is this valid?
Axiom: $\forall a,b ((a = b) \implies (b = a))$ and 4: $\forall x,y (((x + y) + 0) = (x + y)))$ therefore $\forall x,y ((x + y) = ((x + y) + 0))$ (substituting $((x + y) + 0)$ for $a$ and $(x + y)$ for $b$).
3: $\forall x, y \in N, x + (y + 0) = x + y$ and $\forall x,y ((x + y) = ((x + y) + 0))$ therefore $\forall x, y \in N, x + (y + 0) = (x + y) + 0$ (substituting $((x + y) + 0)$ for $(x + y)$). Question 1 has been proved.
Something that puzzles me - does this mean $\forall x (x=x)$ that $x$ doesn't have to be used by substituting a constant like $1$, $2$, etc. but can be an expression like $a+b$?