Homepage Solution manuals Terence Tao Analysis I Exercise 2.3.1 (Multiplication is commutative)

Exercise 2.3.1 (Multiplication is commutative)

Prove Lemma 2.3.2. (Hint: modify the proofs of Lemmas 2.2.2, 2.2.3 and Proposition 2.2.4.)

Lemma 2.3.2 (Multiplication is commutative) Let n,m be natural numbers. Then n × m = m × n.

Answers

How to think about the exercise. In the solution below, we prove two facts that help us with the actual proof. You might wonder where these two facts came from. And you might answer "well, you can just peek at Lemmas 2.2.2 and 2.2.3". That’s quite right, but what if you didn’t have access to the textbook? It turns out that you can try to solve the exercise without proving the two facts, and see where you get stuck. Then, you can turn those parts into lemmas. Let’s see how this works in practice.

We want to show n × m = m × n. We fix m and induct on n. For the base case, we need 0 × m = m × 0. By the definition of multiplication, the left side is zero. What about the right side? Well, it would be nice if we could show that m × 0 = 0. So spin this off into a lemma. [Insert proof of the lemma here.]

Now suppose inductively that we have n × m = m × n. We want to show (n++) × m = m × (n++). By definition of multiplication and the inductive hypothesis, the left side is (n++) × m = n × m + m = m × n + m. What about the right side? It would be nice if we could show that m × (n++) = m × n + m. So spin this off into a second lemma. [Insert proof of lemma here.] This closes the induction, and completes the proof.

So as you can see, the source of the lemmas isn’t mysterious: it’s what you naturally get by attempting the proof and getting stuck.

Model solution. We first show two facts analogous to Lemmas 2.2.2 and 2.2.3:

1.
For any natural number n, n × 0 = 0: We induct on n. The base case is 0 × 0 = 0, which follows from the definition of multiplication. Now suppose inductively that n × 0 = 0. We want to show (n++) × 0 = 0. By definition of multiplication and the inductive hypothesis, (n++) × 0 = (n × 0) + 0 = 0. This closes the induction.
2.
For any natural numbers n and m, n × (m++) = (n × m) + n: We induct on n (keeping m fixed). For the case n = 0, we have to show 0 × (m++) = (0 × m) + 0. But 0 × (m++) = 0 by definition of multiplication, and (0 × m) + 0 = 0 + 0 = 0, so they are equal. Now suppose inductively that n × (m++) = (n × m) + n. We want to show that (n++) × (m++) = ((n++) × m) + (n++). By definition of multiplication, (n++) × (m++) is equal to n × (m++) + (m++), which is equal to n × m + n + (m++) by the inductive hypothesis. Similarly, we have ((n++) × m) + (n++) = (n × m + m) + (n++) by the definition of multiplication. Thus both sides are equal to n × m + m + n + 1.

Now we can prove the actual lemma. We fix m and induct on n. For the base case, we need 0 × m = m × 0. By the definition of multiplication, the left side is zero, and by fact (1) above the right side is also zero.

Now suppose inductively that we have n × m = m × n. We want to show (n++) × m = m × (n++). By definition of multiplication, the left side is (n++) × m = n × m + m. By fact (2) above, the right side is m × (n++) = m × n + m. Thus we have to show n × m + m = m × n + m, but this follows from the inductive hypothesis.

Source: Issa Rice’s blog.

User profile picture
2020-04-02 00:00
Comments

The proof of the commutativity of multiplication is rather similar to the proof of the commutativity of addition. Recall that we have used the following schema to prove the latter:

Commutativity of addition
Commutativity of multiplication
n + m = m + n
n × m = m × n
      
Base case:
0 + m = m + 0 (Lemma 2.2.2)
Base case:
0 × m = m × 0 (Lemma 1)
      
Induction hypothesis:
n + m = m + n
Induction hypothesis:
n × m = m × n
      
Induction step: (n + +) + m = m + (n + +) Induction step: (n + +) × m = m × (n + +)
Lemma 2.2.3: = (m + n) + + Lemma 2: = (m × n) + +
IH: = (n + m) + + IH: = (n × m) + +

We now mimic this strategy for the multiplication as pointed out above.

Lemma 1. For any natural number m, m × 0 = 0.

Proof. We prove it using induction:

  • (Base Case) We first take a look at the base case m = 0. We have:

    0 × 0 = 0,

    which is true by Definition 2.3.1.

  • (Induction Hypothesis) Now suppose inductively that m × 0 = 0 is true.
  • (Induction Step) We now prove P(m + +), which is:

    (m + +) × 0 = 0.

    The left-hand side of the above statement by Definition 2.3.1 is equal to:

    (m + +) × 0 = m × 0 + 0.

    By Lemma 2.2.2, this can be further simplified as:

    m × 0 + 0 = m × 0.

    By the induction hypothesis, we have:

    m × 0 = 0,

    and we are done.

We now prove one more statement, which is:

Lemma 2. For any natural numbers n and m, m × (n + +) = m × n + m.

Proof. We induct on m (keeping n fixed).

  • (Base case) We first verify the base case m = 0 :

    0 (n + +) = 0 × n + 0
    (1)

    By Definition 2.3.1, 0 × (n + +) = 0 and 0 × n = 0. Thus, (1) is equivalent to the following:

    0 = 0 + 0
    (2)

    which is true by Lemma 2.2.2.

  • (Induction step) Now we suppose inductively that m × (n + +) = m × n + m is true for some m. We now prove P(m + +), which is:

    (m + +) × (n + +) = (m + +) × n + (m + +).

    By Definition 2.3.1,

    (m + +) × (n + +) = m × (n + +) + (n + +).

    By induction hypothesis,

    m × (n + +) + (n + +) = m × n + m + (n + +).

    Since n + + = n + 1 (see page 26), we have:

    m × n + m + (n + +) = m × n + m + n + 1,

    which is equal to

    m × n + m + n + 1 = m × n + n + m + 1.

    Since m + 1 = m + + (see page 26), we have:

    m × n + n + m + 1 = m × n + n + (m + +).

    By Definition 2.3.1,

    m × n + n = (m + +) × n.

    Thus, we have:

    m × n + n + (m + +) = (m + +) × n + (m + +).

    We now have (m + +) × (n + +) = (m + +) × n + (m + +), as desired. Since our choice of n was arbitrary, the assertion follows for any natural number n, as well.

Having proved these two lemmata, we can start with the proof of the exercise assertion.

Proof. We induct on n.

  • (Base case) We first verify the base case n = 0 :

    m × 0 = 0 × m,

    which is true by Lemma 1 and Definition 2.3.1.

  • (Induction Hypothesis) Now suppose inductively that m × n = n × m is true for some natural number n.
  • (Induction Step) We now prove P(n + +), which is

    m × (n + +) = (n + +) × m
    (3)

    By Lemma 2, the left-hand side of the equation 3 is equal to the following:

    m × (n + +) = m × n + m.
    (4)

    By the definition of multiplication, the right-hand side of 3 is equal to:

    (n + +) × m = n × m + m.
    (5)

    Substituting statements 4 and 5 into the statement 3 , we equivalently rewrite the assertion that we have to prove as:

    m × n + m = n × m + m.

    Since m × n = n × m by induction hypothesis, we have:

    m × n + m = m × n + m.

    Thus, we’ve proven P(n + +).

Since our choice of m was arbitrary, the assertion follows for any natural number m, as well. □

User profile picture
2022-07-08 10:33
Comments