Exercise · Volume 1 · 1.2.4-4
Exercise 1.2.4-4
proved in Lean solution written
| Rating | M10 |
|---|---|
| Markers | M (mathematical), recommended |
| 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 for every real , with the equivalences of Exercise 1.2.4-3.
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
Compare the two integers by the set of integers that are at most each of them.
Hint 2
Use 1.2.4-3(b) for . For use the negation of 1.2.4-3(d).
Solution
Show the solution
Let be any integer. Then
The first step is 1.2.4-3(b) for . The second step multiplies by . The third step is the negation of 1.2.4-3(d): if and only if , here with . The last step multiplies by .
So exactly the same integers lie at or below and at or below . Put to get . Put to get . Hence they are equal.
Check
For : and . For : and . For : both sides are .
Remarks
The identity also gives (replace by and negate). It turns each statement about ceilings into one about floors, as in Exercise 1.2.4-7.
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.Ex4.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_4.Ex4.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.