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

Ramanujan.Calculations.C3_le_one_of

PrimeNumberTheoremAnd.IEANTN.Ramanujan.RamanujanCalculations · PrimeNumberTheoremAnd/IEANTN/Ramanujan/RamanujanCalculations.lean:739 to 765

Mathematical statement

Exact Lean statement

theorem C3_le_one_of
    {xₐ : ℝ}
    (hxₐ : xₐ = exp (3914 : ℝ))
    (hlogxₐ : log xₐ = (3914 : ℝ)) :
    2 * log xₐ ^ 6 / xₐ * ∑ k ∈ Finset.Icc 1 5, (k.factorial : ℝ) / log 2 ^ (k + 1)
      ≤ (1 : ℝ)

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
theorem C3_le_one_of    {xₐ : }    (hxₐ : xₐ = exp (3914 : ))    (hlogxₐ : log xₐ = (3914 : )) :    2 * log xₐ ^ 6 / xₐ * ∑ k  Finset.Icc 1 5, (k.factorial : ) / log 2 ^ (k + 1)       (1 : ) := by  rw [hlogxₐ, hxₐ]  simp only [Nat.reduceAdd, Nat.one_le_ofNat, Finset.sum_Icc_succ_top, Finset.Icc_self,    Finset.sum_singleton, Nat.factorial, Nat.succ_eq_add_one, zero_add, mul_one, Nat.cast_one,    one_div, Nat.cast_ofNat, Nat.reduceMul]  have hA : 2 * (3914 : ) ^ 6 * exp (-(3914 : ))  (1 : ) / 1000000 := exp_3914_poly_small  let u :  := (log 2)⁻¹  have hu_le : u  (2 : ) := by    dsimp [u]    have hhalf : (1 / 2 : )  log 2 := by linarith [log_two_gt_d9]    have h := one_div_le_one_div_of_le (by norm_num : (0 : ) < 1 / 2) hhalf    simpa [one_div] using h  have hB :      ((log 2 ^ 2)⁻¹ + 2 / log 2 ^ 3 + 6 / log 2 ^ 4 + 24 / log 2 ^ 5 + 120 / log 2 ^ 6)  (9000 : ) := by    rw [show ((log 2 ^ 2)⁻¹ + 2 / log 2 ^ 3 + 6 / log 2 ^ 4 + 24 / log 2 ^ 5 + 120 / log 2 ^ 6)        = u ^ 2 + 2 * u ^ 3 + 6 * u ^ 4 + 24 * u ^ 5 + 120 * u ^ 6 by dsimp [u]; ring_nf]    exact le_trans (show u ^ 2 + 2 * u ^ 3 + 6 * u ^ 4 + 24 * u ^ 5 + 120 * u ^ 6         2 ^ 2 + 2 * 2 ^ 3 + 6 * 2 ^ 4 + 24 * 2 ^ 5 + 120 * 2 ^ 6 by gcongr) (by norm_num)  rw [show 2 * (3914 : ) ^ 6 / exp (3914 : )      = 2 * (3914 : ) ^ 6 * exp (-(3914 : )) by    field_simp; rw [show (1 : ) = exp (3914 : ) * exp (-(3914 : )) by rw [ exp_add]; norm_num]]  exact le_trans (mul_le_mul hA hB (by positivity) (by positivity)) (by norm_num)