Thursday, 21 September 2023

Tao Analysis I - 2.2.5

Review: Weak & Strong Induction

Before we dive in, it is worth reviewing what standard "weak" and strong induction is. The following table summarises the difference (inspired by this).

Here P(n) is a statement, or proposal, about a natural number n. For brevity, we've abused notation P(mn) to mean that P(m) is true for all mn


Weak Induction
Strong Induction

If P(n0) is true,

And P(n)P(n+1)

Then P(n) is true for all nn0


If P(n0) is true,

And P(mn)P(n+1)

Then P(n) is true for all nn0

 

The only difference is that strong induction broadens the assumption that P(n) is true to P(mn) is true. 

There is some confusion caused by the name "strong" because here it means broader assumptions, which to some ears (including mine), sounds like a weaker statement overall. To me, a theorem that makes fewer assumptions is stronger than an a theorem that requires lots of pre-requisites to be true.

The following visualises the difference between weak and strong induction.


 

Strong induction is used when P(n) being true is insufficient to show P(n+1) is also true. Let's look at an example of each.


Example: Weak Induction

This is the classic example used to illustrate standard, or weak, induction.

Aim: Prove that 1+2++n=n(n+1)2

Inductive Hypothesis: P(n):1+2++n=n(n+1)2 is true.

Base Case:  LHS of P(1) is 1. RHS of P(1)=1(1+1)2=1.

Inductive Step: Consider P(n+1). LHS is 1+2++n+(n+1). Using the inductive hypothesis, this is n(n+1)2+(n+1). Simple algebra leads to n(n+1)+2(n+1)2=(n+1)(n+2)2. This is the RHS of P(n+1). So P(n)P(n+1).

P(1) being true, and P(n)P(n+1) means, by the principle of induction, P(n) is true for all positive natural numbers n.

Note that we used the inductive hypothesis P(n) to show P(n+1) was true.

 

Example: Strong Induction

This is a classic example used to illustrate strong induction.

Aim: Prove that any natural number n2 is a product of primes. Note that a prime is considered to be a product of one prime.

Inductive Hypothesis: P(n) : Every natural number less than or equal to n is a product of primes.

Base Case: Consider P(2). This states that 2 is a product of primes. We know 2 is a prime, and as such is a product of one prime. So P(2) is true.

Inductive Step: Consider m such that 2mn. We assume P(m) is true. That is, we assume every natural number from 2 to n is a product a primes. Now consider P(n+1). Is (n+1) a prime itself? There are two cases, yes and no. If yes, then P(n+1) is true. If no, (n+1) is not a prime, then it is a composite of 2 factors, (n+1)=xy where 2xn and y are 2yn. The strong assumptions tell us that x and y are both products of one or more primes. Therefore (n+1) is a product of primes too, and P(n+1) is true in this second case.

With the base case P(2) being true, and P(2mn)P(n+1) being true, we have by strong induction shown that P(n) is true for all positive natural numbers n2

Notice how we couldn't just use P(n) to show P(n+1). We needed P(m) for 2mn.


Reference

This is a really clear summary of weak and strong induction with the classical examples.

 

Exercise 2.2.5

Prove Proposition 2.2.14. (Hint: define Q(n) to be the property that P(m) is true for all m0m<n; note that Q(n) is vacuously true when nm0.)

Let's write out Proposition 2.2.14.

Proposition 2.2.14 (Strong principle of induction). Let m0 be a natural number, and let P(m) be a property pertaining to an arbitrary natural number m. Suppose that for each mm0, we have the following implication: if P(m) is true for all natural numbers m0m<m, then P(m) is also true. (In particular, this means that P(m0) is true, since in this case the hypothesis is vacuous.) Then we can conclude that P(m) is true for all natural numbers mm0.

This is probably the first exercise we encounter in Tao's analysis I which looks difficult (as opposed looking easy but turning out to be difficult). So it is worth taking a step back and thinking about what approach we'll be taking before diving in.

Approach. The question hint suggests we use weak induction to prove strong induction. We want to reformulate strong induction in terms of weak induction. That is, we're solving a more challenging problem by reformulating into a more familiar problem.

Let's rewrite our previous table in terms of the variables given by the question. Note the different endpoints for the range of m.


Weak Induction
Strong Induction

If Q(n0) is true,

And Q(n)Q(n+1)

Then Q(n) is true for all nn0


If P(m0) is true,

And P(m0m<m)P(m)

Then P(m) is true for all mm0


Before we dive in, let's be clear about what we need to prove, and what we can assume to be true:

  • We need to find a base case for Q(n0) which is true.
  • We need to show that if Q(n) is true, then so is Q(n+1).
  • We can assume P(m0) is true for the purposes of proving strong induction.
  • We can assume  P(m0m<m)P(m) is true for the purposes of proving strong induction.

Let's follow the standard template for weak induction over n, here using Q(n)

Inductive Hypothesis: Q(n) is true.  

Let's write what this means in terms of P(m).

Q(n):P(m0m<n)

Inductive Step: Q(n)Q(n+1).

Since P(m0m<n)P(n), we have P(m0mn).

This means Q(n+1) is true, because

Q(n+1):P(m0m<n+1)=P(m0mn)

So Q(n)Q(n+1).

Base Case: Consider Q(m0).

Q(m0):P(m0m<m0)

This is vacuously true since no m satisfies m0m<m0

By weak induction (Axiom 2.5), having shown the base case Q(m0) to be (vacuously) true, and that Q(n)Q(n+1), we can conclude Q(n) is true for all nm0

What does this mean? Referring back to the definition of Q(n),

Q(n):P(m0m<n)

Q(n) is true for all nm0 means

Q(nm0):P(m0m)

So we have shown P(m) is true for all natural numbers mm0.

No comments:

Post a Comment