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

FKS2.admissible_bound_le_0826

PrimeNumberTheoremAnd.IEANTN.FKS2 · PrimeNumberTheoremAnd/IEANTN/FKS2.lean:4690 to 4704

Mathematical statement

Exact Lean statement

lemma admissible_bound_le_0826 (x : ℝ) (hx : x ≥ 1) : admissible_bound 0.826 0.25 1.00 5.5666305 x ≤ 0.4298

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
lemma admissible_bound_le_0826 (x : ) (hx : x  1) : admissible_bound 0.826 0.25 1.00 5.5666305 x  0.4298 := by  unfold admissible_bound;  -- Let $y = \sqrt{\log x / 5.5666305}$. Then the expression becomes $0.826 * y^{1/2} * \exp(-y)$.  set y :  := Real.sqrt (Real.log x / 5.5666305)  have h_y : 0.826 * y^(1/2 : ) * Real.exp (-y)  0.4298 := by    -- Apply the lemma sqrt_exp_le_half with v = y.    have h_sqrt_exp : y^(1/2 : ) * Real.exp (-y)  1 / 2 := by      convert sqrt_exp_le_half y ( Real.sqrt_nonneg _ ) using 1 ; norm_num [  Real.sqrt_eq_rpow ];    linarith;  convert h_y using 1 ; norm_num [ Real.sqrt_eq_rpow,  Real.rpow_mul ( div_nonneg ( Real.log_nonneg hx ) ( by norm_num : ( 0 : )  5.5666305 ) ) ] ; ring_nf;  rw [ show ( log x * ( 2000000 / 11133261 ) ) = ( Real.sqrt ( log x / 5.5666305 ) ) ^ 2 by rw [ Real.sq_sqrt <| by exact div_nonneg ( Real.log_nonneg hx ) <| by norm_num ] ; ring ] ; rw [  Real.rpow_natCast,  Real.rpow_mul ( by positivity ) ] ; norm_num;  norm_num +zetaDelta at *  left  have hnonneg: 0  (Real.sqrt (Real.log x)) / (Real.sqrt 11133261 / Real.sqrt 2000000) := by positivity  simpa [one_div] using (Real.pow_rpow_inv_natCast (x := √(Real.log x) / (√11133261 /2000000)) (n := 2) hnonneg (by decide))