Home › Arithmetic › Lesson 2

The Laws of Arithmetic by Induction

Lesson 2 of 12

Key idea of this section

(ℕ, +, ·, ≤) is a commutative semiring with cancellation,
totally ordered, with no zero divisors, and well ordered.
Every law is proved by induction on one variable, using the recursive definitions.

Addition

The recursive definition of addition treats its two arguments asymmetrically: recursion is on the right-hand argument. Commutativity, which is obvious to a child counting pebbles, therefore requires proof. The standard route goes through two lemmas.

Lemma 2.1. For all a ∈ ℕ, 0 + a = a.

Proof. Induction on a. The case a = 0 is the definition 0 + 0 = 0. If 0 + a = a then 0 + S(a) = S(0 + a) = S(a). ∎

Lemma 2.2. For all a, b ∈ ℕ, S(a) + b = S(a + b).

Proof. Induction on b. For b = 0 both sides equal S(a). If S(a) + b = S(a + b), then S(a) + S(b) = S(S(a) + b) = S(S(a + b)) = S(a + S(b)). ∎

Theorem 2.3. Addition is associative and commutative, and it satisfies cancellation: a + c = b + c implies a = b.

Proof. Associativity, (a + b) + c = a + (b + c), by induction on c. For c = 0 both sides are a + b. If it holds for c, then (a + b) + S(c) = S((a + b) + c) = S(a + (b + c)) = a + S(b + c) = a + (b + S(c)).

Commutativity, a + b = b + a, by induction on b. For b = 0 this is a = 0 + a, Lemma 2.1. If a + b = b + a then a + S(b) = S(a + b) = S(b + a) = S(b) + a, the last step being Lemma 2.2.

Cancellation by induction on c. For c = 0 there is nothing to prove. If a + S(c) = b + S(c) then S(a + c) = S(b + c), so a + c = b + c by P1, and a = b by the induction hypothesis. ∎

Multiplication

Theorem 2.4. Multiplication is commutative and associative, distributes over addition, has identity 1, and has no zero divisors: ab = 0 implies a = 0 or b = 0.

Proof. We give the steps in a workable order.

Left distributivity a(b + c) = ab + ac, by induction on c: for c = 0 both sides are ab. If it holds for c then a(b + S(c)) = a · S(b + c) = a(b + c) + a = (ab + ac) + a = ab + (ac + a) = ab + a · S(c).

The identities 0 · a = 0 and S(a) · b = ab + b follow by induction on the second variable, exactly as in Lemmas 2.1 and 2.2; for instance S(a) · S(b) = S(a) · b + S(a) = (ab + b) + S(a) = ab + S(b + a) = (ab + a) + S(b) = a · S(b) + S(b), using associativity and commutativity of addition and Lemma 2.2. With these, commutativity ab = ba follows by induction on b. Right distributivity then follows from left distributivity and commutativity. Associativity (ab)c = a(bc) is induction on c: (ab) · S(c) = (ab)c + ab = a(bc) + ab = a(bc + b) = a(b · S(c)). Finally a · 1 = a · S(0) = a · 0 + a = 0 + a = a.

For zero divisors, suppose a ≠ 0 and b ≠ 0. By Lemma 1.2 write b = S(c); then ab = ac + a, and a = S(d) gives ab = S(ac + d) ≠ 0 by P2. ∎

Order

Definition 2.5. For a, b ∈ ℕ write a ≤ b if there is c ∈ ℕ with a + c = b; such c is unique by cancellation and is denoted b − a. Write a < b if a ≤ b and a ≠ b.

Theorem 2.6. The relation ≤ is a total order on ℕ, compatible with the operations: a ≤ b implies a + c ≤ b + c and ac ≤ bc. Moreover a < b if and only if S(a) ≤ b.

Proof. Reflexivity: a + 0 = a. Transitivity: a + c = b and b + d = e give a + (c + d) = e. Antisymmetry: if a + c = b and b + d = a then a + (c + d) = a = a + 0, so c + d = 0 by cancellation; if d ≠ 0 then d = S(m) and c + d = S(c + m) ≠ 0, so d = 0 and c = 0, whence a = b. Totality: fix a and let A = {b : a ≤ b or b ≤ a}. Clearly 0 ≤ a, so 0 ∈ A. If b ≤ a, write a = b + c; either c = 0 and then a ≤ S(b), or c = S(m) and then a = S(b) + m, so S(b) ≤ a. If a ≤ b then a ≤ S(b). By P3, A = ℕ. Compatibility is immediate from the definitions. For the final statement, a < b means b = a + c with c ≠ 0, so c = S(m) and b = S(a) + m. ∎

Theorem 2.7 (Well-ordering principle). Every nonempty subset of ℕ has a least element.

Proof. Suppose E ⊆ ℕ has no least element. Let A = {n : no element of E is ≤ n}. Then 0 ∈ A, for otherwise 0 ∈ E would be least. If n ∈ A and S(n) ∉ A, some e ∈ E satisfies e ≤ S(n); since e ≤ n is excluded, e = S(n) (by totality and Theorem 2.6, n < e ≤ S(n) forces e = S(n)), and then e would be the least element of E. So S(n) ∈ A, A = ℕ and E = ∅. ∎

Well-ordering is equivalent (given the other axioms) to the principle of strong induction: if a property holds for n whenever it holds for all m < n, then it holds for every n. Both are used freely below.

Exponents

The exponent laws am + n = am · an, (am)n = amn and (ab)n = an bn are proved by induction on n from the recursion aS(n) = an · a; for the first, am + S(n) = aS(m + n) = am + n · a = am · an · a = am · aS(n). Note that the definition forces 0⁰ = 1, the convention that makes the binomial theorem and power series hold without exception.

Exercise

  • (a)
    Prove by induction on n that amn = (am)n, using the first exponent law.
  • (b)
    Show that a ≤ b and c ≤ d imply a + c ≤ b + d.
  • (c)
    Show that if ab = ac and a ≠ 0, then b = c.
Show solution

Answers: (a) For n = 0 both sides are 1. If amn = (am)n then am · S(n) = amn + m = amn · am = (am)n · am = (am)S(n). (b) Write b = a + x and d = c + y; then b + d = (a + c) + (x + y) by associativity and commutativity. (c) By totality we may assume b ≤ c, so c = b + x. Then ab = ab + ax, so ax = 0 by cancellation, and since a ≠ 0 we get x = 0 by the absence of zero divisors.

V.3.1