Structured proof · Unit 151
lemma Data.heightPerRow_le
Data P): h_{0}(D) \le h_{\mathrm{main}}(D) - m_D\cdot\operatorname{rem}(D) + \mathcal{B}(D), where h_{0}(D) = D.heightPerRow = m_D\cdot(\sum_{\tau\in\mathrm{tops}(D)} (\mathrm{jetSize}_D(a_D) - \operatorname{Ask}(D, a_D, \tau)) + k_D\cdot\mathsf{U}(D)) - \#\operatorname{tops}(D)\cdot a_D\cdot\log N_D (N_D the level prime of D) and \mathcal{B}(D) = f_D\cdot a_D\cdot(\log b_D)^{3}.Put \overline{w} := (1/f_D)\cdot\sum_{\tau} \log w_D(\tau), the mean of the \log-weights over all infinite places.
Put G := \log(g\cdot\mathrm{rd}_E/(2\pi)) (g = g_{0}g_{1}) (
hG).Stirling: \log a_D! \le a_D\cdot\log a_D - a_D + (1 + \log a_D/2), from the monotonicity of \log of Stirling's sequence n!/(\sqrt{2n}(n/e)^{n}) (its value at a_D is at most its value at 1), with a_D \ge 1.
Lean states
log D.a.factorial ≤ D.a * log D.a - D.a + (1 + log D.a / 2)Uses
Data.unit 152,nat_le_of_hasLogBound Data.unit 152,HasLogBound. pos Stirling.,log_stirlingSeq'_antitone Stirling.log_stirlingSeq_formula The excess: \mathrm{jetSize}_D(a_D) -
Ask_main(D) \le a_D\cdot(\overline{w} + G) + (1 + \log a_D/2). Indeed \mathrm{jetSize}_D(a_D) = \log a_D! - a_D\cdot\log(\Omega/g) with \Omega = e^{\ell(d)}\cdot2\pi/\mathrm{rd}_E, andAsk_main(D) = a_D(\log a_D - 1 - \ell(d) - \overline{w}), so the difference is \log a_D! - a_D \log a_D + a_D + a_D(G + \overline{w}), and step 3 applies.Lean states
D.jetSize D.a - D.mainAsk ≤ D.a * (w + G) + (1 + log D.a / 2)Usesstep 1, step 2, step 3,
Data.unit 152,jetSize Data.unit 151,mainAsk Parameters.unit 152bigOmega The level: m_D\cdot(\overline{w} + G) - (G + (15/2)\cdot\log b_D) \le \log N_D, because the left side is \lambda_D =
Data.and \lambda_D \le \log N_D (logLevelTarget Data.).log_N_mem_window Lean states
D.m * (w + G) - (G + 15 / 2 * D.logB) ≤ log D.NUsesstep 1, step 2,
Data.unit 141,log_N_mem_window Data.unit 141logLevelTarget h_{0}(D) \le h_{\mathrm{main}}(D) - m_D\cdot\operatorname{rem}(D) + \mathcal{B}(D), by the following chain.
h_{0}(D) = h_{\mathrm{main}}(D) - m_D\cdot\operatorname{rem}(D) + \#\operatorname{tops}(D)\cdot(m_D\cdot(\mathrm{jetSize}_D(a_D) -
Ask_main(D)) - a_D\cdot\log N_D): unfold h_{0}, h_{\mathrm{main}} = m\cdot k\cdot\mathsf{U} and \operatorname{rem} = \sum_{\tau} (\operatorname{Ask}(D, a_D, \tau) -Ask_main(D)), and rearrange.Uses
Data.unit 145,heightPerRow Data.unit 151,mainHeight Data.unit 151remainder \ldots = h_{\mathrm{main}}(D) - m_D\cdot\operatorname{rem}(D) + \#\operatorname{tops}(D)\cdot(m_D\cdot(1 + \log a_D/2) + a_D\cdot(G + (15/2)\cdot\log b_D)): the terms m_D\cdot a_D\cdot(\overline{w} + G) cancel.
\ldots \le h_{\mathrm{main}}(D) - m_D\cdot\operatorname{rem}(D) + \mathcal{B}(D), by the size comparison (
Data.): \#\operatorname{tops}(D)\cdot(m_D(1 + \log a_D/2) + a_D(G + 7.5\cdot\log b_D)) \le f_D\cdot a_D\cdot(\log b_D)^{3}.le_of_hasLogBound