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

FKS2.floor_row3

PrimeNumberTheoremAnd.IEANTN.FKS2Cor24Row3 · PrimeNumberTheoremAnd/IEANTN/FKS2Cor24Row3.lean:54 to 87

Source documentation

Row-3 Buthe floor [e^9, e^43] via floor_xhalf_of_check.

Exact Lean statement

theorem floor_row3 : ∀ x ∈ Set.Icc (Real.exp (9:ℝ)) (Real.exp (43:ℝ)),
    Eπ x ≤ (1 / (8 * π)) * (Real.log x) ^ 2 * x ^ (-(1:ℝ) / 2)

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
theorem floor_row3 :  x  Set.Icc (Real.exp (9:)) (Real.exp (43:)),    Eπ x  (1 / (8 * π)) * (Real.log x) ^ 2 * x ^ (-(1:) / 2) := by  have hcurve :  y, Real.exp (9:)  y       Expr.eval (fun _ => Real.sqrt (Real.log y)) (xhalfCurveE (79/2000) 4)         (1 / (8 * π)) * (Real.log y) ^ 2 * y ^ (-(1:) / 2) := by    intro y hy    have hypos : (0:) < y := lt_of_lt_of_le (Real.exp_pos _) hy    have hyL : (0:)  Real.log y := by      have h9 : (9:)  Real.log y := by        rw [ Real.log_exp (9:)]; exact Real.log_le_log (Real.exp_pos _) hy      linarith    have hsq : (Real.sqrt (Real.log y)) ^ 4 = (Real.log y) ^ 2 := by      rw [show (4:) = 2 * 2 from rfl, pow_mul, Real.sq_sqrt hyL]    rw [eval_xhalfCurveE (79/2000) 4 y hypos hyL, hsq]    push_cast    have hc_le : (79/2000:)  1 / (8 * π) := by      rw [le_div_iff₀ (by positivity : (0:) < 8 * π)]      nlinarith [Real.pi_lt_d2]    have hnn : (0:)  (Real.log y) ^ 2 * y ^ (-(1:) / 2) := by positivity    calc (79/2000:) * (Real.log y) ^ 2 * y ^ (-(1:) / 2)        = (79/2000:) * ((Real.log y) ^ 2 * y ^ (-(1:) / 2)) := by ring      _  (1 / (8 * π)) * ((Real.log y) ^ 2 * y ^ (-(1:) / 2)) :=          mul_le_mul_of_nonneg_right hc_le hnn      _ = (1 / (8 * π)) * (Real.log y) ^ 2 * y ^ (-(1:) / 2) := by ring  exact floor_xhalf_of_check (xhalfCurveE (79/2000) 4)    (fun x => (1 / (8 * π)) * (Real.log x) ^ 2 * x ^ (-(1:) / 2)) 9 3 74 (by norm_num)    (by rw [show ((3:):) = 3 by norm_num,          show (3:) = Real.sqrt (3 ^ 2) from (Real.sqrt_sq (by norm_num)).symm]        exact Real.sqrt_le_sqrt (by norm_num))    (by have h656 : Real.sqrt 43  6.56 := by          rw [show (6.56:) = Real.sqrt (6.56 ^ 2) from (Real.sqrt_sq (by norm_num)).symm]          exact Real.sqrt_le_sqrt (by norm_num)        push_cast; linarith [h656])    (xhalfCurve_sub_supported (79/2000) 4) floor_slab_check_row3 hcurve