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

Ramanujan.Calculations.B_le_small_of

PrimeNumberTheoremAnd.IEANTN.Ramanujan.RamanujanCalculations · PrimeNumberTheoremAnd/IEANTN/Ramanujan/RamanujanCalculations.lean:721 to 737

Mathematical statement

Exact Lean statement

theorem B_le_small_of
    {xₐ : ℝ}
    (hxₐ : xₐ = exp (3914 : ℝ))
    (hlogxₐ : log xₐ = (3914 : ℝ)) :
    1 / log xₐ + 7 * 2 ^ 8 / log xₐ ^ 2
      + 7 * log xₐ ^ 6 / (sqrt xₐ * (log 2) ^ 8)
      ≤ (3 : ℝ) / 8000

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
theorem B_le_small_of    {xₐ : }    (hxₐ : xₐ = exp (3914 : ))    (hlogxₐ : log xₐ = (3914 : )) :    1 / log xₐ + 7 * 2 ^ 8 / log xₐ ^ 2      + 7 * log xₐ ^ 6 / (sqrt xₐ * (log 2) ^ 8)       (3 : ) / 8000 := by  rw [hlogxₐ]  rw [hxₐ, sqrt_exp_3914]  have htail : 7 * (3914 : ) ^ 6 / (exp (1957 : ) * (log 2) ^ 8)  (1 : ) / 1000000 := by    rw [show 7 * (3914 : ) ^ 6 / (exp (1957 : ) * (log 2) ^ 8) =      7 * (3914 : ) ^ 6 * exp (-(1957 : )) / (log 2) ^ 8 by      field_simp [(show (0 : ) < exp (1957 : ) by positivity).ne']      rw [show (1 : ) = exp (1957 : ) * exp (-(1957 : )) by rw [ exp_add]; norm_num]]    exact tail_small  linarith [htail, show (1 / (3914 : ) + 7 * 2 ^ 8 / (3914 : ) ^ 2 +    (1 : ) / 1000000)  (3 : ) / 8000 by norm_num]