Exercise · Volume 1 · 1.2.3-25
Exercise 1.2.3-25
proved in Lean solution written
| Rating | 15 |
|---|---|
| Markers | recommended |
| Kind | K2, decide: say whether a claim holds from the written solution |
| Section | Section 1.2.3 of Volume 1. Companion chapter: Sums and products |
The task
Decide whether the derivation that is correct.
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
Test the claim with and two numbers of your choice.
Hint 2
The error is in the second equality. Look at the index variables.
Solution
Show the solution
Something is wrong, and the claim is false. For and , : .
The first equality, the distributive law, is correct: . The second equality replaces by in the inner sum. This is illegal: the index is already in use in the outer sum, and the inner cannot take the name . The inner sum must run over all for each fixed , not only over . After the illegal step the double sum has become a single sum of the diagonal terms , and the other terms are lost. The third equality is wrong as well, even if the second line is read literally: there the inner sum adds for each of values, so it is , and the line should become , not . The last equality, , is correct.
The correct value is The diagonal gives the terms equal to , and each pair gives two terms. For positive each bracket is at least , so the product is at least .
Check
For : . For the product is , and the claimed value is wrong.
Remarks
The error is the clash of the names of the index variables. The remedy is to give the two indices different names until the sum is finished. The bound is the Cauchy inequality, which follows from Exercise 1.2.3-30.
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_3.Ex25.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_3.Ex25.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.