Exercise · Volume 1 · 1.2.4-2
Exercise 1.2.4-2
proved in Lean solution written
| Rating | 01 |
|---|---|
| Markers | recommended |
| Kind | K3, find a value: compute a number, a set or a closed form from the written solution |
| Section | Section 1.2.4 of Volume 1. Companion chapter: Integer functions and elementary number theory |
The task
Simplify for a 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
The number is already an integer. What is the ceiling of an integer?
Solution
Show the solution
Let . This is an integer. The least integer that is at least is itself, since and every smaller integer is below . So .
The same argument shows and .
Check
Take : and . Take : and .
Remarks
The result says that the floor and the ceiling are idempotent: applying either of them twice changes nothing.
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.Ex2.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_4.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.