Skip to main content
AlexKontorovich/PrimeNumberTheoremAnd
Source indexedlemma · leanprover/lean4:v4.32.0

FKS2.rowcurve_dom_two

PrimeNumberTheoremAnd.IEANTN.FKS2Cor23Row9 · PrimeNumberTheoremAnd/IEANTN/FKS2Cor23Row9.lean:49 to 74

Source documentation

Generic B = 2 floor-curve domination: coeff·s⁴·exp(−rate·s) ≤ rowcurve when coeff ≤ A/R² and rate ≥ C/√R. s⁴ analogue of rowcurve_dom_three_halves.

Exact Lean statement

lemma rowcurve_dom_two (A C coeff rate : ℝ) (x : ℝ)
    (hL : (0:ℝ) ≤ Real.log x)
    (hcoeff : coeff ≤ A / (5.5666305:ℝ) ^ (2:ℝ))
    (hrate : C / Real.sqrt 5.5666305 ≤ rate)
    (hcoeffnn : 0 ≤ coeff) :
    coeff * (Real.sqrt (Real.log x) * Real.sqrt (Real.log x) * Real.sqrt (Real.log x)
        * Real.sqrt (Real.log x))
        * Real.exp (-rate * Real.sqrt (Real.log x))
      ≤ admissible_bound A 2 C 5.5666305 x

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
lemma rowcurve_dom_two (A C coeff rate : ) (x : )    (hL : (0:)  Real.log x)    (hcoeff : coeff  A / (5.5666305:) ^ (2:))    (hrate : C / Real.sqrt 5.5666305  rate)    (hcoeffnn : 0  coeff) :    coeff * (Real.sqrt (Real.log x) * Real.sqrt (Real.log x) * Real.sqrt (Real.log x)        * Real.sqrt (Real.log x))        * Real.exp (-rate * Real.sqrt (Real.log x))       admissible_bound A 2 C 5.5666305 x := by  rw [admissible_two_eq A C 5.5666305 x hL (by norm_num)]  set s := Real.sqrt (Real.log x) with hs_def  have hsnn : (0:)  s := Real.sqrt_nonneg _  have hssss : s * s * s * s = s ^ 4 := by ring  have hAnn : (0:)  A / (5.5666305:) ^ (2:) := le_trans hcoeffnn hcoeff  have hexpRHS : Real.exp (-rate * s)  Real.exp (-(C / Real.sqrt 5.5666305) * s) := by    apply Real.exp_le_exp.mpr    have := mul_le_mul_of_nonneg_right hrate hsnn    simp only [neg_mul]; linarith  have hs4 : (0:)  s ^ 4 := by positivity  rw [hssss]  calc coeff * s ^ 4 * Real.exp (-rate * s)      = (coeff * Real.exp (-rate * s)) * s ^ 4 := by ring    _  ((A / (5.5666305:) ^ (2:)) * Real.exp (-(C / Real.sqrt 5.5666305) * s)) * s ^ 4 :=        mul_le_mul_of_nonneg_right          (mul_le_mul hcoeff hexpRHS (Real.exp_nonneg _) hAnn) hs4    _ = A / (5.5666305:) ^ (2:) * s ^ 4 * Real.exp (-(C / Real.sqrt 5.5666305) * s) := by ring