Simulate
Check the claim with numbers
Lesson 1.5.1 built a sequence from a rule: start at , and make each term from the one before by . Its terms 1, 3, 7, 15 suggested a formula, . Test it on many more terms.
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 :
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 and has, for every whole number ,
Thirty terms agree. That is evidence, not a proof: the claim is about every , 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 is really infinitely many claims, one for each . 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 periods it is worth . With 1% compounded each period (case study 1.4.6), it is worth .
Try it
The claim: 2% simple interest stays ahead of 1% compounding, . The cell checks it with exact fractions, period by period, and stops at the first period where it fails.
It holds for to and fails at , when compounding catches up: 3.5385 against 3.54, then 3.5738 against 3.56.
Someone who checked the first 100 periods would believe a false claim. A claim about every needs an argument that covers every at once, and induction is one.
How induction proves every case
Write for the claim about . Here says that , so says and says . Induction proves for every with two arguments instead of infinitely many checks.
Rule: Proof by induction
The base case proves . The inductive step proves that whenever is true, so is . Its assumption, , is the induction hypothesis.
The arrow reads "implies". The inductive step does not claim that is true. It claims only that if is true, then is true too.
Together the two steps reach every case. The base case gives , the step with turns it into , and the step with turns that into . Any is reached after 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 . The rule then gives .
SymPy expands that to , which is . Its difference from the formula for is 0, with the letter still in it. So the step holds for every at once.
A recursive rule and induction fit together. The rule builds from , and the inductive step proves from .
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.
- By induction, is true for every : the formula holds.
- Inductive step: fix and assume , that is, .
- That is , so is true.
- The rule and this assumption give .
- Base case: and , so is true.
- Write for the claim .
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
Any set of whole numbers 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 is false. Among the failures, take the smallest, . It is not 1, because the base case holds; so , and is true, because is below the smallest failure.
The inductive step with now makes true. That contradicts the choice of , so there is no failure at all.
Read the other way, the argument says where a false claim breaks. At its smallest failure , either and the base case fails, or is true and the step from to 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 " is a multiple of 3" the smallest failure is : the base case fails. For it is , where both sides are 27, and for the compounding claim it is 128. In those two, the claim holds just before.
The first claim shows why the base case is not a formality. Its inductive step holds: if is a multiple of 3, so is . Yet the claim fails for every 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.
- This contradicts the choice of . So no is false, and holds for every .
- Suppose is true and for every , but some is false.
- The inductive step with turns into , so is true.
- is true, so . Hence , and is a whole number with .
- is smaller than , the smallest failure, so is true.
- Then the set of with false is not empty, so by well-ordering it has a smallest member, .
Starting somewhere else
Induction need not start at 1. To prove for every , prove , and the step for every . The same argument works, with the smallest failure now at least .
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 is infinitely many claims, so checks are only evidence: holds for to 127 and fails at 128.
- Induction proves the base case and the inductive step for every . Then holds for every .
- 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 " is a multiple of 3" passes the step.
- The sequence , has .