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

cor_5_1_rem'

PrimeNumberTheoremAnd.IEANTN.BKLNW.BKLNW_a2_bounds · PrimeNumberTheoremAnd/IEANTN/BKLNW/BKLNW_a2_bounds.lean:599 to 629

Mathematical statement

Exact Lean statement

theorem cor_5_1_rem' (b a₂b : ℝ) (m : ℕ)
    (hb : (b, a₂b, m) ∈ table_cor_5_1) :
    a₂ b ∈ Set.Icc a₂b (a₂b + 10 ^ (-m : ℝ))

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
theorem cor_5_1_rem' (b a₂b : ) (m : )    (hb : (b, a₂b, m)  table_cor_5_1) :    a₂ b  Set.Icc a₂b (a₂b + 10 ^ (-m : )) := by  -- Unfold a₂ to (1+α) * max(f(exp b), f(2^(⌊b/log2⌋₊+1)))  unfold a₂ Inputs.a  rw [alpha_eq]  -- Case split on table membership  simp only [table_cor_5_1, List.mem_cons, Prod.mk.injEq, List.mem_nil_iff, or_false] at hb  rcases hb with    rfl, rfl, rfl | rfl, rfl, rfl |    rfl, rfl, rfl | rfl, rfl, rfl |    rfl, rfl, rfl | rfl, rfl, rfl |    rfl, rfl, rfl | rfl, rfl, rfl |    rfl, rfl, rfl | rfl, rfl, rfl |    rfl, rfl, rfl  · rw [rpow_neg_nat]; exact a2_20_mem_Icc  · rw [rpow_neg_nat]; exact a2_25_mem_Icc  · rw [rpow_neg_nat]; exact a2_30_mem_Icc  · rw [rpow_neg_nat]; exact a2_35_mem_Icc  · rw [rpow_neg_nat]; exact a2_40_mem_Icc  · rw [rpow_neg_nat]; exact a2_43_mem_Icc  · rw [show (1 + 2.420e-4 : ) = (1.0002420 : ) from by norm_num, rpow_neg_nat]    exact a2_100_mem_Icc  · rw [show (1 + 3.748e-6 : ) = (1.000003748 : ) from by norm_num, rpow_neg_nat]    exact a2_150_mem_Icc  · rw [show (1 + 7.713e-8 : ) = (1.00000007713 : ) from by norm_num, rpow_neg_nat]    exact a2_200_mem_Icc  · rw [show (1 + 2.025e-8 : ) = (1.00000002025 : ) from by norm_num, rpow_neg_nat]    exact a2_250_mem_Icc  · rw [show (1 + 1.937e-8 : ) = (1.00000001937 : ) from by norm_num, rpow_neg_nat]    exact a2_300_mem_Icc