Structured proof · Unit 152
lemma Data.roundUp_mem_Icc
What it saysFor parameters P, admissible data D over P (explicit), reals F and l, and an instance
HasLogLower(D)(F, l) (\exp (l) \le F, so F > 0): F \le roundUp(D, F) \le F + N_1(D).The argument in briefroundUp(D, F) = N_1(D)\cdot \lceil F/N_1(D)\rceil _+ lies between F and F + N_1(D) because F/N_1(D) \le \lceil F/N_1(D)\rceil _+ < F/N_1(D) + 1 for F \ge 0 (F > 0 by the lower bound).
Unfolding roundUp(D, F) = N_1(D)\cdot \lceil F/N_1(D)\rceil _+, the claim is F \le N_1(D)\cdot \lceil F/N_1(D)\rceil _+ \le F + N_1(D). Since F > 0 (
HasLogBound.from \exp (l) \le F), \lceil F/N_1(D)\rceil _+ < F/N_1(D) + 1 bounds the upper side and F/N_1(D) \le \lceil F/N_1(D)\rceil _+ the lower side; it remains to show F \le N_1(D)\cdot (F/N_1(D)) and N_1(D)\cdot (F/N_1(D) + 1) \le F + N_1(D).pos Uses
Data.unit 152,roundUp Data.unit 152,HasLogBound. pos Nat.,ceil_lt_add_one Nat.le_ceil