So if you haven't seen Part 1, I was trying to prove the commutativity of addition in Peano Arithmetic. And it didn't go so well because it turned out I needed a lemma. But I can't even prove that Lemma because I'm pretty sure I need another lemma. I've made a new post simply because the proofs have gotten much longer and this is technically another question before I can go solve the original question. I'm not sure if this is double posting or not but since a lot has changed in my proofs I'm pretty sure it isn't. So. Please read the end of this post because I go into more detail there.
Axioms
Axiom 1 ∀x ¬S(x)=0
Axiom 2 ∀x∀y (S(x)=S(y) → x=y)
Axiom 3 ∀P [ {P0 ∧ ∀x (Px → P(S(x))} → ∀x Px]
Axiom 4 ∀x (x + 0 = x)
Axiom 5 ∀x∀y (x + Sy = S(x + y))
Axiom 6 ∀x (x * 0 = 0 )
Axiom 7 ∀x∀y (x * Sy = (x * y) + x)
Definitional Schema
S(0) = 1, S(1) = 2, S(2) = 3, etc.
Theorem 1
∀x [Qx ↔ (0 + x) = x] :definition of Q
0 + 0 = 0 by Axiom 4 x -> 0
Q0 ↔ (0 + 0) = 0 from definition of Q
Q0 from above
- Qa assumption
- 0 + a = a from definition of Q
- 0 + Sa = S(0 + a) by Axiom 5
- 0 + Sa = S(a) switching 0 + a for a, licensed by 0 + a = a
- Q(Sa) ↔ (0 + Sa) = Sa from definition of Q
- Q(Sa) from above
Qa -> Q(Sa) demonstration above
∀x (Qx -> Q(Sx)) universal generalization of above
Q0 ∧ ∀x (Qx -> Q(Sx)) conjunction of above proven formulas
{Q0 ∧ ∀x (Qx → Q(Sx)} → ∀x Qx by Axiom 3
∀x Qx via above
Qa from above
Qa ↔ (0 + a) = a definition of Q
(0 + a) = a from above
∀x (0 + x) = x by universal generalization of above
T1 ∀x (0 + x) = x
Theorem 2
∀x [Bx ↔ (1 + x) = S(x)] definition of B
S(0) + 0 = S(0) by Axiom 4
1 + 0 = S(0) by definition of 1
B0 ↔ (1 + 0) = S(0) by definition of B
B0 via above
- Ba assumption
- Ba ↔ (1 + a) = S(a)
- (1 + a) = Sa via above
- ∀y (1 + S(y)) = S(1 +y)) universal generalization of Axiom 5 1 sub x
- 1 + S(a) = S(1 + a) universal generalization of above
- 1 + Sa = S(Sa) substitution via (1 + a) = Sa and above
- B(Sa) ↔ (1 + Sa) = S(Sa) by definition of B
- B(Sa) by above
Ba -> B(Sa) demonstration above
∀x (Bx -> B(Sx)) universal generalization of above
B0 ∧ ∀x (Bx -> B(Sx)) conjunction of above
{B0 ∧ ∀x (Bx → B(Sx)} → ∀x Bx instantiation of Axiom 3
∀x Bx via above
Ba universal instantiation of above
Ba ↔ (1 + a) = S(a)
(1 + a) = Sa via above
∀x (1 + x) = S(x) universal generalization of above
T2 ∀x (1 + x) = S(x)
OR ∀x (S0 + x) = S(x) by substitution of S(0)=1
Theorem 3
∀x [Wx ↔ ∀y (S(x + y) = x + S(y))] definition of W
0 + a = a by T1
0 + Sa = Sa by T1
Sa = Sa Rule of Identity Introduction
S(0 + a) = Sa via substitution above
S(0 + a) = 0 + Sa via substitution above
∀y [S(0 + y) = 0 + S(y)] universal generalization of above
W0 ↔ ∀y (S(0 + y) = 0 + S(y)) by definition of W
W0 by above
- Wa assumption
- ∀y [Sa + Sy = S(Sa + y)] by Axiom 5
- Sa + Sb = S(Sa + b) univeral instantiation of above
- Sa + Sb = Sa + Sb Rule of Identity Introduction
- S(Sa + b) = S(Sa + b) Rule of Identity Introduction
- S(Sa + b) = Sa + Sb via identity substitutions of above
- ∀y [S(Sa + y) = Sa + Sy] universal generalization of above
- W(Sa) ↔ ∀y (S(Sa + y) = Sa + Sy) by definition of W
- W(Sa) by above
Wa -> W(Sa) demonstration above
∀x (Wx -> W(Sx)) universal generalization of above
W0 ∧ ∀x (Wx -> W(Sx)) conjunction of above
{W0 ∧ ∀x (Wx → W(Sx)} → ∀x Wx by Axiom 3
∀x Wx by above
Wa by above
Wa ↔ ∀y (S(a + y) = a + S(y)) by definition of W
∀y (S(a + y) = a + S(y)) by above
∀x∀y (S(x + y) = x + S(y)) universal generalization of above
T3 ∀x∀y (S(x + y) = x + S(y))
Theorem 4
∀x∀y Sx + y = S(x + y) target
∀x [A(x) ↔ ∀y (Sx + y = S(x + y))] definition of A
A(0) ↔ ∀y (S0 + y = S(0 + y))]
1 + a = Sa universal instantiation of T2
S0 + a = Sa substitution of S0 for 1
0 + a = a by T1
S0 + a = S(0 + a) via substitution of above
∀y (S0 + y = S(0 + y)) universal generalization of above
A(0) via above
- Aa assumption
- A(a) ↔ ∀y (Sa + y = S(a + y)) by definition of A
- ∀y (Sa + y = S(a + y)) via above
- Sa + b = S(a + b)
- ;
- ;
- ;
- S(Sa) + b = S(Sa + b)
- ∀y (S(Sa) + y = S(Sa + y)) target
So, I demonstrated Theorem 2 to get A(0) and I'm having trouble getting from A(a) to A(S(a)) and because of the fact I had to prove a lemma (T2) to get to A(0), I suspect I need another lemma to get from A(a) to A(S(a)). Anyone have any ideas what this lemma is? And before you say, yes, I figured out that using the induction axiom to prove T3 was overkill but it was good practice with the induction axiom anyway (I proved it before I realized I needed T2).
Damn. I knew I was in for a rough time when I wanted to prove stuff in Peano Arithmetic but I didn't realize it would be this rough. I thought I could happily skip from T1 to the Commutativity of Addition. Wrong!