When m=0,
Q(0)=P(n+0)=P(n) which we have taken to be true. Suppose inductively that Q(m)=P(n+m) is true. Then, from the definition of P(m), we know that P((n+m)++) is true. P((n+m)++)=P(n+m++)=Q(m++)⇒Q(m++)is true. (Multiplication Of Natural Numbers)
Let m be a natural number. To multiply zero to m, we define 0×m:=0. Now suppose inductively that we have defined how to multiply n to m. Then we can multiply n++ to m by defining (n++)×m:=(n×m)+m
We can say 0×m=0, 1×m=0+m, 2×m=0+m+m and so on.
Prove that multiplication is commutative
Proof. We use the way we proved that addition is commutative as a blueprint. There are two things we need to prove first. For any natural number, n, n×0=0
For any natural numbers, n and m, n×(m++)=(n×m)+m
First we prove,
For any natural number, n, n×0=n We induct over n, For n=0,
0×0=0 Which is true from the definition Now suppose inductively, that n×0=0, For (n++)×0, From the definition we can write this as,
(n++)×0We know that n×0=0(n++)×0(n++)×0=(n×0)+0=0+0=0 Therefore, n×0=n For any natural numbers, n and m, n×(m++)=(n×m)+m We induct over n, (keeping m fixed)
For n=0, We know from the definition for multiplication with zero that,
0×(m++)=0We also know that(m++)×0(m++)×0(m++)×0=0×(m++)=(m×0)+0=0=(0×m)+m Suppose inductively that n×(m++)=(n×m)+m For n=(n++) To prove (n++)×(m++)=((n++)×m)+m,
(n++)×(m++)We can rewrite RHS using the inductive hypothesis(n++)×(m++)=(n×(m++))+m++=((n×m)+m)+m++ Taking the LHS, we write (n++)×(m++)=(n×(m++))+m++=(n×m)+m)+m++=(n×m)+m+(m++)=(n×m)+(m++)+mFrom the definitionFrom the inductive hypothesisAssociativity of additionCommutativity of addition We can say that LHS = RHS, closing the inductive loop
Now we can finally get on with proving that multiplication is commutative, armed with the lemmas we've proved here we can prove this similarly to how we proved addition is commutative We are proving, m×n=n×m We fix m and induct over n
For n=0,
0×mm×0m×0=0=0=0×mFrom the definitionProved earlier Suppose inductively that m×n=n×m is true.
For proving m×(n++)=(n++)×m, Take the LHS,
m×(n++)=(n×m)+mProved earlier Take the RHS, (n++)×m=(n×m)+mFrom the definition We can see that LHS = RHS, closing the inductive loop Thus multiplication is commutative
Let
n,m be natural numbers, then
n×m=0 if and only if at least one of
n,m is equal to zero. In particular, if both
n,m are both positive, then
nm is positive
Proof. First we prove if both n,m are both positive, then nm is positive We have, n and m such that n,m>0 Let a,b∈N such that a++=m,b++=n
n×m=(a++)(b++)=(a++)b+(a++)=ab+b+(a++)=ab+b+(m)m×n++=m×n+mm++×n=m×n+nm++×n=m×n+n Since we know that m>0, then m+d where d∈N is also greater than 0. Thus it's proved. Now onto proving the first statement, Let n,m be natural numbers, then n×m=0 if and only if at least one of n,m is equal to zero.
We have to prove it both ways, if n×m=0 then at least one of n,m is equal to zero.
Proving by contradiction when nm=0 let's assume n,m=0 meaning n,m are positive natural numbers.
(Associativity Of Multiplication)
For any natural numbers, a,b,c We have, a(b+c)=ab+ac and (b+c)a=ba+ca
Proof. We only need to show the first identity, then the other would be implied by commutativity We keep a and b fixed, and induct over c. For c=0, We have on the LHS,
a(b+0)=ab(b+0=b) We have on the RHS, ab+ac=ab+a0=ab+0=abSince m×0=0 LHS=RHS
This is true for the base case. Now suppose inductively that a(b+c)=ab+ac For c=(n++), We have on the LHS,
a(b+(n++))=a((b+n)++)=a(b+n)×aProved earlierm×(n++)=(m×n)+m We have on the RHS,
ab+ac=a(b+c)Inductive hypothesis Thus, LHS = RHS
Closing the inductive loop.
(Virtual Cancellation Law)
Prove,
(a×b)×c=a×(b×c) Proof. We fix a,b and induct over c For c=0, On the LHS,
(ab)0=0m×0=0 On the RHS,
a(b×0)=a(0)=0m×0=0 This covers the base case, suppose inductively that (a×b)×c=a×(b×c)
For c=c++,
We have on the LHS,
(a×b)×(c++)=((ab)c)+ab=(ab)c+abm×0=m We have on the RHS, a×(b×(c++))=a((bc)+b)=a(bc)+abm×n++=m×n+mDistributive Law From the inductive hypothesis, (ab)c=a(bc), the LHS and the RHS statements are equivalent
Thus we have LHS = RHS
Closing the inductive hypothesis
(Preserving Order)
If a,b are natural numbers such that a>b and c is positive, then ac>bc
Proof. If a>b, we say that a=b+d where d is a positive natural number. Multiplying by c on both sides,
acac=(b+d)c=bc+cdDistributive Law We know that cd is a positive natural number, so this is expressed in the form m=n+d which is the same as writing m>c Thus we can write,
ac>bc
Let a,b,c be natural numbers such that ac=bc and c is non-zero. Then a=b
Proof. Let's examine the three cases possible for a,b When a<b, then ac<bc from the previous proposition which is a contradiction of the assumption.
When a>b, then ac>bc from the previous proposition which is another contradiction of the assumption.
Thus, the only possible case is a=b
(Division)
Let n be a natural number and let q be a postive number. Then there exists natural numbers m,r such that 0≤r≤q and n=mq+r
Proof. Inducting over n, For n=0,
0=mq+r When a,b∈N, a+b=0 if and only if a=b=0 We know that,
m+00+0=m=0 The converse is easily true, since a+b=0, Thus the base case is true.
Suppose inductively that there exists m,r∈N such that 0≤r<q and n=mq+r
For n++,
We can write,
n++=(mq+r)++=mq+r++Proved earlier Now we have two cases to look at here, We know that 0≤r<q from the inductive hypothesis. But for r++, that is not necessarily the case, The range of (r++) becomes 0++≤r++<q++ or 1≤r++≤q since a<b if and only if a++≤b,
When 1≤r++<q, we have closed the inductive loop but there is one more case to look at.
When r++=q We have,
n++=mq+q=(m++)q Thus we have for this case, r=0, which satisfies the condition 0≤r<q Closing the inductive loop.
(Exponentiation)
Let m be a natural number. To raise m to the power m0, we define m0:=1. Now suppose recursively that mn has been defined for some natural number n then we define mn++=mn×m
Thus we can write, m0=1,m1=m0+m=m,m2=m1+m=2m and so on
(Identity)
Prove,
(a+b)2=a2+b2+2ab Proof. Take the RHS, We have,
(a+b)2=(a+b)(a+b)=(a+b)a+(a+b)b=aa+ba+ab+bb=a2+ba+ab+b2=a2+ab+ab+b2=a2+2ab+b2=a2+b2+2abFrom the definitionDistributive Lawm2=m×mCommutativity of multiplicationDefinition of multiplicationCommutativity Thus we have LHS = RHS