The objective of this excersise it's to demostrate the result known as commutativity in $\mathbb{N}.$
For that it's defined the function p: $\mathbb{N} \times \mathbb{N} \rightarrow \mathbb{N} $
$ p(m,n) = m + ... + m $ (n times)
The formal inductive definition it's as follows:
$$ p(m,n) = \left\{ \begin{array}{l l} m & \quad \text{if n = 1,}\\ p(m,n-1) +m & \quad \text{other case.} \end{array} \right. $$
Prove that for every pair of natural numbers: $$ p(m,n) = p(n,m)$$
as a hint, they tell me to do induction in $max(n,m).$
any sugetions on how to start?
Don't really know how to use $\text{max}$ function — I've done it the other way — may be it will help you.
You have two axioms:
$p(a,1)=a$ — number one,
$p(a,n+1)=p(a,n)+a$ — number two.
Lemma 1: $$p(1,a)=a.$$
Induction.
Base: $p(1,1)=1$ — the first axiom.
Induction hypothesis: $p(1,n)=n$
Induction step:
$p(1,n+1)=p(1,n)+1$ — the second axiom,
$p(1,n)+1=n+1$ — induction hypothesis.
So, $$p(1,n+1)=n+1$$ and Lemma 1 is proved.
Lemma 2 — right-distributive property, $$p(a+b,c)=p(a,c)+p(b,c)$$
Base: $p(a+b,1)=a+b=p(a,1)+p(b,1)$ — the first axiom.
Induction hypothesis: $p(a+b,n)=p(a,n)+p(b,n)$
Step:
$p(a+b,n+1)=p(a+b,n)+(a+b)$ — the second axiom,
$p(a+b,n)+(a+b)=p(a,n)+p(b,n)+(a+b)$ — induction hypothesis,
$p(a,n)+p(b,n)+(a+b)=(p(a,n)+a)+(p(b,n)+b)$ — the associative and commutative laws for addition,
$(p(a,n)+a)+(p(b,n)+b)=p(a,n+1)+p(b,n+1)$ — the second axiom.
So, $$p(a+b,n+1)=p(a,n+1)+p(b,n+1)$$ proved.
Now your Theorem: $$p(m,n)=p(n,m).$$
Base: $p(m,1)=p(1,m)$ — Lemma 1 and the first axiom.
Induction hypothesis: $p(m,n)=p(n,m)$.
Step: $p(m,n+1)=p(m,n)+m$ — the second axiom,
$p(m,n)+m=p(n,m)+m$ — induction hypothesis,
$p(n,m)+m=p(n,m)+p(1,m)$ — Lemma 1,
$p(n,m)+p(1,m)=p(n+1,m)$ — Lemma 2.
We have $p(m,n+1)=p(n+1,m)$ and that's all.