Exercise · Volume 1 · 1.2.4-15
Exercise 1.2.4-15
proved in Lean solution written
| Rating | 10 |
|---|---|
| Kind | K1, prove: show that a stated fact is true from the written solution |
| Section | Section 1.2.4 of Volume 1. Companion chapter: Integer functions and elementary number theory |
The task
Prove the distributive law for real , , .
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 both sides with the definition of the remainder.
Hint 2
Treat and on their own. For the rest, the quotient is .
Solution
Show the solution
Case . Then , and the left side is and the right side is .
Case . Then both sides are , since .
Case and . The quotient equals , so its floor is the same. Then
Check
, , : , and . With a negative : , and (the quotient has floor ).
Remarks
Law C follows at once. For integers, means . Multiply by and use this law: . For the converse, divide by .
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_4.Ex15.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_4.Ex15.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.