Exercise · Volume 1 · 1.2.1-1
Exercise 1.2.1-1
proved in Lean solution written
| Rating | 05 |
|---|---|
| Kind | K1, prove: show that a stated fact is true from the written solution |
| Section | Section 1.2.1 of Volume 1. Companion chapter: Mathematical induction |
The task
Say how proof by induction changes when the statement is to be shown for and not for .
The exact wording is in your copy of the book.
Hints
Open one hint at a time. Try the exercise again after each.
Hint 1
Compare with the two steps (a) and (b) of the text: a first value, and a step to the next value.
Hint 2
Rename the index so that the first value becomes .
Solution
Show the solution
Two steps prove for all :
(a) Prove .
(b) For each , prove that together imply . (The weaker form, in which alone implies , is also enough.)
Why this is valid: let be the statement for . Step (a) says that is true. Step (b) says that for each the statements imply . These are the two steps of the usual principle, so holds for all . This means that holds for all .
Check
Take to be . Step (a): . Step (b): for . So the claim holds for , for example .
Remarks
The same shift works for any starting value . The C1 chapter of Section 1.2.1 has the principle in the form of Algorithm 1.2.1I. Exercise 1.2.1-15 gives a version for any well-ordered set.
This solution is checked, and a person has not reviewed it yet. The source.
In Lean
proved The statement and its proof are in Lean. The kernel accepts the proof, and it uses the standard axioms only.
- Problem:
TAOCP.S1_2_1.Ex1.statementaxioms: none - Solution:
TAOCP.S1_2_1.Ex1.solvedaxioms: Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.