I saw this problem:
$$∀x.x+0=x $$
in a introduction to logic text book but I am unsure how to go about solving it.
The book provides the following axioms:
$A1: nat(0)$
$A2: nat(T) ⊢ nat(s(T))$
$A3: nat(T), nat(U) ⊢ nat(T+U)$
$A4: nat(T), nat(U) ⊢ nat(T · U)$
$A5: 1=s(0)$
$A6: ∀x. 0+x=x$
$A7: ∀x.∀y.s(x)+y=s(x+y)$
$A8: ∀x.0·x = 0$
$A9: ∀x.∀y.s(x)·y = y + x · y$
Here is my attempt so far, if it is totally on the wrong track feel free to start from scratch :)
__________________
1.| nat(a) | assumption
2.| nat(0) | A1 nat(0)
3.| ∀x1. 0+x1=x1 | A6 ∀x.0+x=x
4.| 0+a=a | ∀-elim 3,1
5.| 0+a=0+a | =-into
6.| a=0+a | =-elim-1 5,4
7.| a=a | =-intro
| ... |
8.| a=a+0 |
9.| a+0=a | =-elim-1 7,8
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
10. ∀x.x+0=x ∀-intro 1-7
Thank you guys especially @Brams28 I have managed to prove it using induction
To be complete there should be something to tell us the names of the naturals generated by $A2$, I'll call it $N2$ in the following (i.e. $2=s(1)$, $3=s(2)$, etc.)
But anyway, I think this can be done by repeated usage of $A6,A7$ (and of course $A1,A2,A3$ as they are constantly used by the process described below, I will not mention them explicitely).
$1+0\ \stackrel{N2}=\ s(0)+0\ \stackrel{A7}=\ s(0+0)\ \stackrel{A6}=\ s(0)\ \stackrel{N2}=\ 1\tag{B1}$
$2+0\ \stackrel{N2}=\ s(1)+0\ \stackrel{A7}=\ s(1+0)\ \stackrel{B1}=\ s(1)\ \stackrel{N2}=\ 2\tag{B2}$
$3+0\ \stackrel{N2}=\ s(2)+0\ \stackrel{A7}=\ s(2+0)\ \stackrel{B2}=\ s(2)\ \stackrel{N2}=\ 3\tag{B3}$
and so on either directly until we reach $x$...
or by induction: $s(x)+0\ \stackrel{A7}=\ s(x+0)\ \stackrel{induction}=\ s(x)$
@GrahamKemp
$1.x=x$ can be deducted from $1.y\ \stackrel{N2}=\ s(0).y\ \stackrel{A9}=\ y+0.y\ \stackrel{(*)}=\ y+0\ \stackrel{B\infty}=\ y$
And for $(*)\ :\ 0.y=0$ we do like we have done by induction for $+$ but this time for $\times$ starting from repeated usage of $A8,A9$.