Thisset of of exercises is about multiplication.
Before we dive in, let's write out the minimal definitions we're given about multiplication.
Definition 2.3.1 (Multiplication of natural numbers).
Let
We can see this mirrors the definition for addition.
Exercise 2.3.1
Prove Lemma 2.3.2. (Hint: modify the proofs of Lemmas 2.2.2, 2.2.3 and Proposition 2.2.4)
Let's write out Lemma 2.3.2.
Lemma 2.3.2 (Multiplication is commutative). Let
There are many parallels to the provided proof that addition is commutative, hence the suggestion to modify the proofs of Lemmas 2.2.2, 2.2.3 and Proposition 2.2.4. So let's develop our parallel lemmas based on those.
Lemma 1: For any natural number
Despite appearing obvious, we need to show it is true because the definition we have is
We use induction. The induction hypothesis is that
The base case
Now let's consider the induction step. We want to show that
Using induction, we have shown
Lemma 2: For any natural numbers
Despite appearing obvious, we do need to show it, because the definition only gives us
We induct on
The base case
Now let's consider the induction step. We need to show that
Let's start with the LHS, and use Definition 2.3.1, and then the induction hypothesis.
Now consider the RHS, and use Definition 2.3.1.
The LHS and RHS are equivalent. And so the induction step succeeds.
By induction we have shown that
Lemma 2.3.2
We can now finally establish Lemma 2.3.2 that
Again we use induction on
The induction hypothesis is that
The base case
The induction step requires us to show that
Let's consider the LHS.
By Definition 2.3.1 we have
Let's now consider the RHS, and apply Lemma 2, proved above, and then the induction hypothesis.
The LHS and RHS are equivalent, so the induction step succeeds.
By induction we have shown that multiplication of natural numbers is commutative,
No comments:
Post a Comment