Exercise · Volume 1 · 1.2.7-2
Exercise 1.2.7-2
proved in Lean solution written
| Rating | 13 |
|---|---|
| Kind | K1, prove: show that a stated fact is true from the written solution |
| Section | Section 1.2.7 of Volume 1. Companion chapter: Harmonic numbers |
The task
Change the argument for so that it proves .
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
Study the sum . It has terms.
Hint 2
Bound each of these terms from above, and not from below as in the text.
Solution
Show the solution
For ,
This sum has terms. Each term is at most , which is less than . So the sum is less than . Therefore .
Induction on . For , . If , then .
Check
Python gives for as . Each value lies between and . For : .
Remarks
The two bounds together show that grows like , up to a constant factor. Eq. (3) gives the sharper value .
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_7.Ex2.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_7.Ex2.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.