I am trying to prove the commutative law of multiplication for the natural numbers using the Peano axioms. I have already defined addition and order with the successor function. My definition of multiplication is as follows:
- $0 \times n = 0$
- $s(n) \times m = (n \times m) + m$
I want to now show that $n \times m = m \times n$ for all $m,n \in \mathbb{N}$. I attempt to do this as follows:
- Show that $n \times 0 = 0$ --- (completed)
- Show that $m \times s(n) = (n \times m) + m$ --- (this is where I have trouble)
- Given 1. and 2. show that $n \times m = m \times n$ --- (completed)
So, step 2 is the only place I have a problem. This is my attempt at proving it.
Prove $m \times s(n) = (n \times m) + m$ by induction on $m$. For the base case, let $m = 0$. Then on LHS $0 \times s(n) = 0$ from def'n of multiplication. On RHS, ($n \times 0) + 0 = 0 + 0 = 0$ from 1. LHS = RHS so base case is proven
For the inductive step, assume $m \times s(n) = (n \times m) + m$, and attempt to prove $s(m) \times s(n) = (n \times s(m)) + s(m)$.
$s(m)\times s(n) = (m \times s(n)) + s(n) = (n \times m) + m + s(n) = s(n) \times m + s(n)$
= $(n \times m) + n + s(m)$
$= (s(n) \times m) + s(m)$
????
It seems no matter how I try and manipulate this, I can't prove the inductive step. Am I missing something here?
NOTE: This should not require the associative or distributive law to already be proven, as these aren't asked to be proven until later on in the book I am reading. I am using Tao's Analysis I, and am essentially trying to prove Lemma 2.3.2.
It seems that what I wanted to prove in step 2. was not what I needed. What I need to prove in step 2. is $n \times s(m) = (n \times m) + n$. This I could prove without a problem, and therefore can now prove commutativity of multiplication.