Exercise · Volume 1 · 1.2.3-32
Exercise 1.2.3-32
proved in Lean solution written
| Rating | M20 |
|---|---|
| Markers | M (mathematical) |
| Kind | K1, prove: show that a stated fact is true from the written solution |
| Section | Section 1.2.3 of Volume 1. Companion chapter: Sums and products |
The task
Show that a product of sums, each over from to , equals the sum over all -tuples of the products .
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
Use induction on . Check (the empty product) and first.
Hint 2
In the step, multiply the identity for by one more sum and use rule (a) once.
Solution
Show the solution
Write for the claim: .
For the left side is the empty product . The right side has one term, the empty tuple, and its product is . For both sides are .
Assume . Multiply both sides by . By rule (a), a product of two sums is a sum over the pairs of terms: A pair made of an -tuple and an index is an -tuple, and every -tuple arises once. So the right side is the sum over of . This is .
Check
Take , and the matrix with rows and . The column sums are and , so the left side is . The four terms of the right side are , , and . Their sum is .
Remarks
The identity is the general form of the distributive law. When all columns are equal it gives the expansion of as a sum over tuples. Exercise 1.2.3-46 uses the same expansion for a determinant.
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.Ex32.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_3.Ex32.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.