SigmaField
Mathematical Foundations for Quant Finance
0 of 256 lessons
    1. PG3.1 Why induction worksProof · 30 min
    2. PG3.2 The geometric series, provedProof · 35 min
    3. PG3.3 The annuity formula, provedProof · 35 min
    4. PG3.4 Strong inductionProof · 40 min
    5. PG3.5 Stage review: two proofs of your ownProof · 40 min
Proof Gym overview →

Proof Gym PG3 Induction Lesson 1 of 5

ProofLesson PG3.1 in the Proof Gym, stage PG3: Induction. About 30 minutes.

Why induction works

Simulate

Check the claim with numbers

Lesson 1.5.1 built a sequence from a rule: start at a1=1a_1 = 1, and make each term from the one before by an+1=2an+1a_{n+1} = 2a_n + 1. Its terms 1, 3, 7, 15 suggested a formula, an=2n−1a_n = 2^n - 1. Test it on many more terms.

⌘/Ctrl + Enter runs the cell

The first eight terms match, and the last line prints True: all thirty agree. Python's whole numbers are exact, so no rounding can hide a gap.

The formula also depends on where the sequence starts. Keep the rule, but start at a1=2a_1 = 2:

⌘/Ctrl + Enter runs the cell

Now every term misses: 2, 5, 11, 23 against 1, 3, 7, 15. The misses are 1, 2, 4, 8, …, because the rule doubles the first error at every step. So a proof must use both the rule and the first term.

Conjecture

The sequence with a1=1a_1 = 1 and an+1=2an+1a_{n+1} = 2a_n + 1 has, for every whole number n≥1n \ge 1,

an=2n−1a_n = 2^n - 1

Thirty terms agree. That is evidence, not a proof: the claim is about every nn, and no computer can check them all. The next section shows a pattern that holds for a long time and then fails.

Checking is not proving

A claim about every whole number nn is really infinitely many claims, one for each nn. A computer can check a million of them and still miss the one that fails. Here is a claim that survives more than a hundred checks.

Grow $1 in two ways. With 2% simple interest a period (case study 0.3.5), after nn periods it is worth 1+0.02n1 + 0.02n. With 1% compounded each period (case study 1.4.6), it is worth 1.01n1.01^n.

Try it

The claim: 2% simple interest stays ahead of 1% compounding, 1.01n<1+0.02n1.01^n < 1 + 0.02n. The cell checks it with exact fractions, period by period, and stops at the first period where it fails.

It holds for n=1n = 1 to 127127 and fails at n=128n = 128, when compounding catches up: 3.5385 against 3.54, then 3.5738 against 3.56.

⌘/Ctrl + Enter runs the cell

Someone who checked the first 100 periods would believe a false claim. A claim about every nn needs an argument that covers every nn at once, and induction is one.

How induction proves every case

Write P(n)P(n) for the claim about nn. Here P(n)P(n) says that an=2n−1a_n = 2^n - 1, so P(1)P(1) says a1=1a_1 = 1 and P(2)P(2) says a2=3a_2 = 3. Induction proves P(n)P(n) for every n≥1n \ge 1 with two arguments instead of infinitely many checks.

Rule: Proof by induction

P(1) is trueP(k)⇒P(k+1) for every k≥1so P(n) is true for every n≥1\begin{gathered} P(1) \text{ is true} \\ P(k) \Rightarrow P(k+1) \text{ for every } k \ge 1 \\ \text{so } P(n) \text{ is true for every } n \ge 1 \end{gathered}

The base case proves P(1)P(1). The inductive step proves that whenever P(k)P(k) is true, so is P(k+1)P(k + 1). Its assumption, P(k)P(k), is the induction hypothesis.

The arrow ⇒\Rightarrow reads "implies". The inductive step does not claim that P(k)P(k) is true. It claims only that if P(k)P(k) is true, then P(k+1)P(k + 1) is true too.

Together the two steps reach every case. The base case gives P(1)P(1), the step with k=1k = 1 turns it into P(2)P(2), and the step with k=2k = 2 turns that into P(3)P(3). Any nn is reached after n−1n - 1 uses of the step.

Think of a row of dominoes: the first one falls, and each one knocks over the next, so they all fall.

Try it

For our claim, the inductive step is one line of algebra. Assume ak=2k−1a_k = 2^k - 1. The rule then gives ak+1=2ak+1=2(2k−1)+1a_{k+1} = 2a_k + 1 = 2(2^k - 1) + 1.

SymPy expands that to 2⋅2k−12 \cdot 2^k - 1, which is 2k+1−12^{k+1} - 1. Its difference from the formula for k+1k + 1 is 0, with the letter kk still in it. So the step holds for every kk at once.

⌘/Ctrl + Enter runs the cell

A recursive rule and induction fit together. The rule builds ak+1a_{k+1} from aka_k, and the inductive step proves P(k+1)P(k + 1) from P(k)P(k).

Format 1

Reorder the steps

Here is the induction proof of the conjecture, with its lines shuffled. Put them in this order: the claim, the base case, the inductive step, the conclusion.

  1. By induction, P(n)P(n) is true for every n≥1n \ge 1: the formula an=2n−1a_n = 2^n - 1 holds.
  2. Inductive step: fix k≥1k \ge 1 and assume P(k)P(k), that is, ak=2k−1a_k = 2^k - 1.
  3. That is 2k+1−2+1=2k+1−12^{k+1} - 2 + 1 = 2^{k+1} - 1, so P(k+1)P(k + 1) is true.
  4. The rule and this assumption give ak+1=2ak+1=2(2k−1)+1a_{k+1} = 2a_k + 1 = 2(2^k - 1) + 1.
  5. Base case: a1=1a_1 = 1 and 21−1=12^1 - 1 = 1, so P(1)P(1) is true.
  6. Write P(n)P(n) for the claim an=2n−1a_n = 2^n - 1.

Why the chain cannot break

The dominoes are a picture, not a proof. The proof is an argument by contradiction (stage PG2). It rests on one basic property of the whole numbers, which we take as given.

Rule: Well-ordering

every non-empty setof whole numbershas a smallest member\begin{gathered} \text{every non-empty set} \\ \text{of whole numbers} \\ \text{has a smallest member} \end{gathered}

Any set of whole numbers n≥1n \ge 1 with at least one member has a smallest member. The real numbers do not behave like this: the positive numbers have no smallest member, since half of any one is smaller.

Suppose both steps hold, but some P(n)P(n) is false. Among the failures, take the smallest, mm. It is not 1, because the base case holds; so m−1≥1m - 1 \ge 1, and P(m−1)P(m - 1) is true, because m−1m - 1 is below the smallest failure.

The inductive step with k=m−1k = m - 1 now makes P(m)P(m) true. That contradicts the choice of mm, so there is no failure at all.

Read the other way, the argument says where a false claim breaks. At its smallest failure mm, either m=1m = 1 and the base case fails, or P(m−1)P(m - 1) is true and the step from m−1m - 1 to mm fails.

Try it

The cell finds the smallest failure of three false claims. It also checks the case just before it, when there is one.

For "4n+14^n + 1 is a multiple of 3" the smallest failure is n=1n = 1: the base case fails. For 3n>n33^n > n^3 it is n=3n = 3, where both sides are 27, and for the compounding claim it is 128. In those two, the claim holds just before.

⌘/Ctrl + Enter runs the cell

The first claim shows why the base case is not a formality. Its inductive step holds: if 4k+14^k + 1 is a multiple of 3, so is 4k+1+1=4(4k+1)−34^{k+1} + 1 = 4(4^k + 1) - 3. Yet the claim fails for every nn the cell tries, since the remainder is always 2.

Format 1

Reorder the argument

This is the argument above, written as a proof that induction is valid. Put its lines in order.

  1. This contradicts the choice of mm. So no P(n)P(n) is false, and P(n)P(n) holds for every n≥1n \ge 1.
  2. Suppose P(1)P(1) is true and P(k)⇒P(k+1)P(k) \Rightarrow P(k + 1) for every k≥1k \ge 1, but some P(n)P(n) is false.
  3. The inductive step with k=m−1k = m - 1 turns P(m−1)P(m - 1) into P(m)P(m), so P(m)P(m) is true.
  4. P(1)P(1) is true, so m≠1m \ne 1. Hence m≥2m \ge 2, and m−1m - 1 is a whole number with m−1≥1m - 1 \ge 1.
  5. m−1m - 1 is smaller than mm, the smallest failure, so P(m−1)P(m - 1) is true.
  6. Then the set of nn with P(n)P(n) false is not empty, so by well-ordering it has a smallest member, mm.

Starting somewhere else

Induction need not start at 1. To prove P(n)P(n) for every n≥n0n \ge n_0, prove P(n0)P(n_0), and the step P(k)⇒P(k+1)P(k) \Rightarrow P(k + 1) for every k≥n0k \ge n_0. The same argument works, with the smallest failure now at least n0n_0.

Lesson PG3.2 uses the two steps to prove the geometric series formula of lesson 1.5.2. Lesson PG3.4 lets the step use every earlier case, not only the one before.

Summary card

  • A claim about every nn is infinitely many claims, so checks are only evidence: 1.01n<1+0.02n1.01^n < 1 + 0.02n holds for n=1n = 1 to 127 and fails at 128.
  • Induction proves the base case P(1)P(1) and the inductive step P(k)⇒P(k+1)P(k) \Rightarrow P(k + 1) for every k≥1k \ge 1. Then P(n)P(n) holds for every n≥1n \ge 1.
  • It is valid because every non-empty set of whole numbers has a smallest member. A smallest failure would break the base case or the step.
  • Both steps are needed. With no base case, a false claim such as "4n+14^n + 1 is a multiple of 3" passes the step.
  • The sequence a1=1a_1 = 1, an+1=2an+1a_{n+1} = 2a_n + 1 has an=2n−1a_n = 2^n - 1.

Free further reading

Optional. This lesson covers what you need; these add more examples and practice. All are free to read.