cfahlgren1/math / lean /OAI /NumberTheory /TwoPoint /Halasz /HalaszBoundedSaving.lean
cfahlgren1's picture
download
raw
1.54 kB
8
lemma halasz_bounded_root_saving {k : ℕ} (hk : 2≤k) (hkhi : k≤150)
    {lam : ℝ} (hlam : 49/100≤lam) :
    1/((10^15:ℝ)*lam^2) ≤
      (1/32:ℝ)/((2*halaszSelectedMoment k*halaszSelectedMoment k:ℕ):ℝ) := by
proof · 18 lines
  have hk0 : 0≤(k:ℝ) := Nat.cast_nonneg _
  have hkR : (k:ℝ)≤150 := by exact_mod_cast hkhi
  have hk2 : (k:ℝ)^2≤150^2 := pow_le_pow_left₀ hk0 hkR 2
  have hr : (halaszSelectedMoment k:ℝ)≤225150 := by
    simp only [halaszSelectedMoment,Nat.cast_mul,Nat.cast_add,Nat.cast_one,Nat.cast_ofNat]
    nlinarith
  have hr0 : 0<(halaszSelectedMoment k:ℝ) := by
    exact_mod_cast (show 0<halaszSelectedMoment k from
      lt_of_lt_of_le Nat.zero_lt_one (halasz_selected_moment_pos hk))
  have hr2 := pow_le_pow_left₀ hr0.le hr 2
  have hp : 0<((2*halaszSelectedMoment k*halaszSelectedMoment k:ℕ):ℝ) := by
    push_cast
    positivity
  have hlam0 : 0<lam := by linarith
  have hlam2 : (49/100:ℝ)^2≤lam^2 := pow_le_pow_left₀ (by norm_num) hlam 2
  apply (div_le_div_iff₀ (by positivity : (0:ℝ)<10^15*lam^2) hp).mpr
  push_cast
  nlinarith
31
lemma halasz_low_degree_saving {lam : ℝ} (hlo : 49/100≤lam) (hhi : lam≤9/10) :
    (1:ℝ)/32+(6:ℝ)^2/1024≤min (1/3:ℝ) (min (1-lam) (lam-1/3)) := by
proof · 2 lines
  have hh := halasz_low_height_degree_margin hlo hhi
  linarith

Xet Storage Details

Size:
1.54 kB
·
Xet hash:
b39c7f331e6613f738205bd3b62267dd1fb2a67a45942b8f39134fe76cecc07a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.