Exercise · Volume 1 · 1.2.1-6
Exercise 1.2.1-6
proved in Lean solution written
| Rating | 20 |
|---|---|
| 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
Show that the equations and stay true after step E4 of the extended Algorithm E, if they are true just before it.
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
Write the new values of after E4 in terms of the old ones.
Hint 2
Use from step E2.
Solution
Show the solution
Before E4 assume , and (the last equation comes from E2, and E3 does not change it). Mark the new values by a star. Step E4 gives Then which is the first equation after E4. For the second, So both equations hold after E4.
Check
Take , . After E1: , , , , , . E2 gives , . E4 gives , , , , , . Then and . The python3 run of the whole algorithm for keeps both equations.
Remarks
This is the heart of the proof of Algorithm E. The equation for is kept by the argument of Section 1.1, and the condition of assertion A6 holds because . The C1 chapter of Section 1.2.1 writes the same proof with its own names for the variables.
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.Ex6.statementaxioms: none - Solution:
TAOCP.S1_2_1.Ex6.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.