I now prove the expected algebraic properties of + and ⋅. By the end of all the proofs, one will have characterized the natural numbers as a special algebraic object called a semiring.
Theorem AssocAdd
Associativity of Addition: For all x,y,z∈N, (x+y)+z=x+(y+z).
Proof: As usual, let Σ={z∈N: ∀x,y∈N [(x+y)+z=x+(y+z)]}.
- 0∈Σ because (x+y)+0=x+y=x+(y+0) by the definition of addition applied to x+y for the first equality and to y for the second equality.
- Suppose, now, that z∈Σ. Then, for any x,y∈N:
x+(y+S(z))=x+S(y+z) by the definition of addition=S(x+(y+z)) by the definition of addition=S((x+y)+z) since z∈Σ=(x+y)+S(z) by the definition of addition
This completes the induction and shows that N⊆Σ, so that any natural number must satisfy the set condition of Σ, which is the lemma itself.
Reminder on a Property of Addition
Before one shows the next lemma, I would like to remind the reader of an easy property that I showed when I defined addition: x+S(0)=S(x).
Theorem CommutAdd
Commutativity of Addition: For all x,y∈N, x+y=y+x.
Proof: As always, let Σ={y∈N: ∀x∈N [x+y=y+x]}.
- One needs to show that 0∈Σ i.e. for all x∈N, x+0=0+x This, itself, requires a mini-induction on x!
- Well, if x=0, then x+0=0+0=0+x.
- Now, assume that the claim holds for x. Then, 0+S(x)=S(0+x) by the definition of addition. But, as x satisfies the claim, S(0+x)=S(x+0). Next, S(x+0)=S(x) by a property of addition shown earlier. Finally, the definition of addition also gives S(x)=S(x)+0.
- Now, suppose y∈Σ. Then, for any x∈N:
x+S(y)=S(x+y) by the definition of addition=S(y+x) since y∈Σ=(y+x)+S(0) by a property of addition shown earlier=y+(x+S(0)) by 1
At this point, one is stuck. One needs the fact that x+S(0)=S(0)+x to push the argument through. Because if that were true,
y+(x+S(0))=y+(S(0)+x) by the property yet to be proven=(y+S(0))+x by associativity=S(y)+x by a property of addition shown earlier So then, how does one show that x+S(0)=S(0)+x? By induction on x of course!
- If x=0, x+S(0)=S(x)=S(0)=S(0)+0=S(0)+x. The reader can fill in the relevant details.
- Now, assume that the claim is true for x. Then
S(x)+S(0)=S(S(x)) by a property of addition shown earlier=S(x+S(0)) by the same property used on x=S(S(0)+x) as x satisfies the claim=S(0)+S(x) by the definition of addition
Theorem IdAdd
Identity of Addition: For all x∈N, x+0=0+x=x.
Proof: Obviously x+0=x by the definition of addition itself. At the same time, by commutativity, 0+x=x+0=x.
Theorem CancAdd
Addition is Cancellative: For all x,y,z∈N, if x+z=y+z, then x=y.
Proof: Note that by the definition of addition, the lemma is certainly true for z=0. In fact, the lemma is also true for z=S(0): if x+S(0)=y+S(0), then S(x)=x+S(0)=y+S(0)=S(y) (I am using a property of addition shown earlier). Then, by Peano axiom 2, x=y. Thus, to prove the lemma with induction, one simply needs to assume that it holds for some z∈N and then show that it holds for S(z). So suppose it holds for z and suppose x+S(z)=y+S(z). Then,
(x+z)+S(0)=x+(z+S(0)) by associativity=x+S(z) by a property of addition shown earlier=y+S(z) by hypothesis=y+(z+S(0)) by a property of addition shown earlier=(y+z)+S(0) by associativity
Now, since the lemma is true for S(0), x+y=y+z. But the lemma is also true for z; so, x=y.
Note that because of commutativity, one can also cancel from the left i.e. if z+x=z+y, then x=y.
So far, I have shown that the addition function on N is associative, commutative and cancellative. It also has an identity. What this means is that N is a cancellative, commutative monoid under +. I now turn to multiplication:
Theorem AssocMultiply
Associativity of Multiplication: For all x,y,z∈N, (x⋅y)⋅z=x⋅(y⋅z).
Proof: As usual, let Σ={z∈N: ∀x,y∈N [(x⋅y)⋅z=x⋅(y⋅z)]}.
- 0∈Σ because (x⋅y)⋅0=0=x⋅0=x⋅(y⋅0) by the definition of multiplication.
- Suppose, now, that z∈Σ. Then, for any x,y∈N:
x⋅(y⋅S(z))=x⋅(y⋅z+y) by the definition of multiplication=x⋅(y⋅z)+x⋅y by the same definition=(x⋅y)⋅z+x⋅y since z∈Σ=(x⋅y)⋅S(z) by the definition of multiplication
Theorem RDistMultiplyAdd
Right Distributivity of Multiplication over Addition: For all x,y,z∈N, (x+y)⋅z=x⋅z+y⋅z.
Proof: Let Σ={z∈N: ∀x,y∈N [(x+y)⋅z=x⋅z+y⋅z]}.
- 0∈Σ as (x+y)⋅0=0=0+0=x⋅0+y⋅0=x⋅z+y⋅z.
- Consider some z∈Σ. Then (x+y)⋅S(z)=(x+y)⋅z+(x+y)
(x+y)⋅S(z)=(x+y)⋅z+(x+y) by the definition of multiplication=(x⋅z+y⋅z)+(x+y) since z∈Σ=(x⋅z+x)+(y⋅z+y) by associativity and commutativity of addition=x⋅S(z)+y⋅S(z) by the definition of multiplication
Theorem CommutMultiply
Commutativity of Multiplication: For all x,y∈N, x⋅y=y⋅x.
Proof: As always, let Σ={y∈N: ∀x∈N [x⋅y=y⋅x]}.
- One needs to show that 0∈Σ i.e. for all x∈N, x⋅0=0⋅x. So do induction on x
- Well, if x=0, x⋅0=0⋅0=0=0⋅0=0⋅x.
- Now, say the claim holds for x. Then, 0⋅S(x)=0⋅x+0=0⋅x=x⋅0=0=S(x)⋅0. The reader can fill in the details as needed.
- Now, suppose y∈Σ. Then, for any x∈N:
x⋅S(y)=x⋅y+x by the definition of multiplication=y⋅x+x since y∈Σ=y⋅x+(0+x) zero is the additive identity=y⋅x+(x⋅0+x) by the definition of multiplication=y⋅x+x⋅S(0) by the definition of multiplication
Just as with addition, one is now stuck. One needs the fact that x⋅S(0)=S(0)⋅x to push the argument through. Because if that were true,
y⋅x+x⋅S(0)=y⋅x+S(0)⋅x by the property yet to be proven=(y+S(0))⋅x by right distributivity=S(y)⋅x by a property of addition shown earlier So, just like before, one does induction on x:
- If x=0, x⋅S(0)=x⋅0+x=0+0=0=S(0)⋅0=S(0)⋅x. The reader can fill in the relevant details.
- Now, assume that the claim is true for x. Then
S(x)⋅S(0)=(x+S(0))⋅S(0) by a property of addition shown earlier=x⋅S(0)+S(0)⋅S(0) by right distributivity=S(0)⋅x+S(0)⋅S(0) as x satisfies the claim=S(0)⋅x+(S(0)⋅0+S(0)) by the definition of multiplication=S(0)⋅x+(0+S(0)) by the definition of multiplication=S(0)⋅x+S(0) zero is the additive identity=S(0)⋅S(x) by the definition of multiplication
Theorem IdMultiply
Identity of Multiplication: For all x∈N, x⋅1=1⋅x=x where 1=S(0).
Proof: Note that x⋅1=x⋅S(0)=x⋅0+x=0+x=x. The reader can fill in the relevant details for manipulations involving +. For the manipulations involving ⋅, note the definition of multiplication and some associated properties shown earlier. At the same time, by commutativity, 1⋅x=x⋅1=x.
Theorem LDistMultiplyAdd
Left Distributivity of Multiplication over Addition: For all x,y,z∈N, z⋅(x+y)=z⋅x+z⋅y.
Proof Sketch: Simply apply commutativity of ⋅ to right distributivity.
Theorem ZAnnMultiply
Zero Annihilates by Multiplication: For all x∈N, x⋅0=0⋅x=0.
Proof Sketch: x⋅0=0 by definition; applying commutativity to this yields the other equality.
Theorem NoZDivs
N has No Zero Divisors: For all x,y∈N, if x⋅y=0, then x=0 or y=0.
Proof: Suppose, for the sake of proving the contrapositive, that neither x∈N nor y∈N is 0. Then, by Lemma ExPre, there are x′,y′∈N such that S(x′)=x and S(y′)=y. Then,
x⋅y=S(x′)⋅S(y′)=S(x′)⋅y′+S(x′)=S(S(x′)⋅y′+x′)
by the definitions of addition and multiplication alone. But then, by Peano axiom 3, S(S(x′)⋅y′+x′) cannot be 0.
Theorem CancMultiply
Multiplication is Cancellative: For all x,y,z∈N, if z≠0 and z⋅x=z⋅x, then x=y.
Proof: Let Σ={x∈N: ∀y,z∈N [if z≠0 and z⋅x=z⋅y, then x=y]}.
- To show 0∈Σ, suppose that z≠0 and z⋅0=0=z⋅y. But then by the previous lemma, y must be 0.
- Now, assume that x∈Σ. To show S(x)∈Σ also, assume the hypothesis of the lemma i.e. suppose that z≠0 and that
z⋅S(x)=z⋅x+z=z⋅y
Now, by Peano axiom 3, S(x)≠0. Since also, z≠0 by hypothesis, one has that y≠0; for otherwise, z⋅S(x)=z⋅y=z⋅0=0, contradicting the previous lemma. Hence, by Lemma ExPre, there is a y′∈N such that S(y′)=y. So,
z⋅x+z=z⋅y=z⋅S(y′)=z⋅y′+z
Now, by additive cancellation, z⋅x=z⋅y′. But as x∈Σ and z≠0, this means that x=y′, so that S(x)=S(y′)=y by Peano axiom 2. This concludes the induction.
Note that because of commutativity, one can also cancel from the right i.e. if x⋅z=y⋅z, then x=y.
This concludes the basic exploration of the algebraic structure of N. All of these properties imply that N is a commutative, cancellative semiring that is also multiplicatively cancellative for non-zero values.