grh-compacta Lean artifact read back into mathematics

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).

2 steps, 2 of them leaves · New/Data/Magnitudes.lean, lines 169–171 · in the notes: Lemma 3.6, p. 7 of Admissible data: scales, ranks and sizes, and their existence

↑ ↓ or j k: step · ← →: fold · Enter: show its lines
  1. 1reductionline 170

    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.pos 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).

    UsesData.roundUp unit 152, Data.HasLogBound.pos unit 152, Nat.ceil_lt_add_one, Nat.le_ceil

  2. 2computationline 171

    N_1(D)\cdot (F/N_1(D) + 1) = F + N_1(D) and N_1(D)\cdot (F/N_1(D)) = F, because N_1(D) \ne 0.

    Usesstep 1, mul_div_cancel₀