Exercise · Volume 1 · 1.2.4-3
Exercise 1.2.4-3
proved in Lean solution written
| Rating | M10 |
|---|---|
| Markers | M (mathematical) |
| 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 six equivalences that connect a floor or a ceiling to a plain inequality, for an integer and 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
Start from the definitions: is the greatest integer , and is the least integer .
Hint 2
Prove part (b) first. The other parts follow from (b), from the mirror statement for ceilings and from the fact that no integer lies strictly between and .
Solution
Show the solution
(b) Suppose . Since , it follows that . Suppose . Then is an integer that is at most , and is the greatest such integer, so .
(a) Negate (b): if and only if .
(c) Apply (a) with in place of : if and only if . For integers, means .
(d) The ceiling is the least integer . Suppose . If , then is an integer that is at least , so , which is false. So . Suppose . Then . So the two statements are equivalent.
(e) Suppose . Then by (b). Also , so by (c). Conversely, gives by (b), and gives by (c). So if and only if . Since is the same as , this is also the statement .
(f) Suppose . Then since is at least . Also , so by (d) with . Conversely gives (as is an integer) and by (d), so . The second form: is , and is , so if and only if .
Check
Take . Then , and , and . Also , and , and . For : and , while and .
Remarks
These equivalences are the base of most proofs about floors and ceilings. The next exercise and Exercises 1.2.4-6, 1.2.4-35 and 1.2.4-38 use them directly.
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.Ex3.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_4.Ex3.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.