cfahlgren1/math / lean /OAI /NumberTheory /DirichletL /ParametersHighDataFine.lean
cfahlgren1's picture
download
raw
4.43 kB
import OAI.NumberTheory.DirichletL.ParametersHighData
namespace OAI
noncomputable section
open scoped BigOperators
namespace SevenEighths.Parameters
theorem exists_high_data_fine (Δ:ℝ)(hΔ:0<Δ)(mesh:ℝ→ℝ)
(hmesh:∀t:ℝ,0<t→0<mesh t):
∃D:HighData Δ,∀j,D.ell j≤mesh D.t/200:=by
obtain ⟨t,ht,htΔ,ht1,_,_,hgeo,hdtop,ht3,hω,hωΔ,hhigh,hallow⟩ := exists_central_budget Δ hΔ
obtain ⟨N,hN,ell,rmin,hr,hell,hsum,hbounds,_⟩ :=
exists_physical_slot_lengths (1/200) (7/8) (min t (mesh t)) t (by norm_num) (by norm_num)
(lt_min ht (hmesh t ht)) ht
obtain ⟨allowance,ha,hbud⟩ := hallow N
let small := min allowance (t/((N:ℝ)+2000))
have hsmall : 0<small := lt_min ha (div_pos ht (by positivity))
have hsa : small≤allowance := min_le_left _ _
have hst : small≤t/((N:ℝ)+2000) := min_le_right _ _
have hst0 : small≤t/2000 := hst.trans
(div_le_div_of_nonneg_left ht.le (by norm_num) (by linarith [Nat.cast_nonneg (α:=ℝ) N]))
let ellMin := (7/8:ℝ)*rmin
have hmin : 0<ellMin := mul_pos (by norm_num) hr
obtain ⟨ε,e,κ,cost,τ₀,hε,hε1,hεgap,hεa,he,he1,heell,hea,hκ,hκ1,hcost,
hdet,hphase,_,_,_,_,_⟩ :=
exists_detector_scales t rmin t (1/200) t ellMin small 0
ht.le hr ht (by norm_num) ht hmin hsmall (by norm_num)
let eps := small/2
have heps : 0<eps := by dsimp [eps];positivity
have hepss : eps≤small := by dsimp [eps];linarith only [hsmall]
have heps1 : eps≤1 := by linarith only [hepss, hst0, ht1]
have hbud' := hbud ε e eps hε.le (hεa.trans hsa) he.le (hea.trans hsa)
heps.le (hepss.trans hsa)
have heN : ((N:ℝ)+2000)*eps≤t := by
have h := (le_div_iff₀ (show 0<(N:ℝ)+2000 by positivity)).mp (hepss.trans hst)
simpa only [mul_comm] using h
have he8 : ((N:ℝ)+8)*eps≤t := by nlinarith only [heN, heps.le]
have het : 2000*e≤t := by linarith only [hea, hst0]
let sigma := min (t/2) (ellMin/4)
have hs : 0<sigma := lt_min (by positivity) (by positivity)
have hst2 : sigma≤t/2 := min_le_left _ _
have hsell : sigma≤ellMin/4 := min_le_right _ _
refine ⟨{
t:=t,N:=N,ell:=ell,rmin:=rmin,ε:=ε,e:=e,κ:=κ,cost:=cost,eps:=eps,sigma:=sigma
t_pos:=ht,t_delta:=htΔ,t_small:=ht1,slots_pos:=hN,slots_injective:=hell,slots_sum:=hsum
slots_bounds:=fun j=>⟨(hbounds j).1,(hbounds j).2.1,(hbounds j).2.2.2⟩
rmin_pos:=hr,epsilon_pos:=hε,epsilon_small:=hε1,epsilon_gap:=hεgap
e_pos:=he,e_small:=he1,kappa_pos:=hκ,kappa_small:=hκ1,cost_pos:=hcost
eps_pos:=heps,eps_small:=heps1,sigma_pos:=hs,detector_budget:=by linarith only [hdet]
phase_budget:=hphase,count_budget:=hbud'.1,central_budget:=hbud'.2
geometric_budget:=by linarith only [hst2, het, ht1]
principal_budget:=by linarith only [hst2, ht1]
window_budget:=by change sigma+e≤(7/8)*ellMin;linarith only [hsell, heell, hmin]
floor_budget:=by linarith only [hst2, het, he8, ht1]
high_saving:=by linarith only [hst2, ht]
height_choice:=?_ },?_⟩
· intro J hJ
let τ := min ((1/200:ℝ)*cost/16) (min (1/800) (t/(4*(J+7))))
have htau : 0<τ := lt_min (by positivity) (lt_min (by norm_num) (by positivity))
have hτc : τ≤(1/200:ℝ)*cost/16 := min_le_left _ _
have hτd : τ≤1/800 := (min_le_right _ _).trans (min_le_left _ _)
have hτt : τ≤t/(4*(J+7)) := (min_le_right _ _).trans (min_le_right _ _)
have hτJ : τ*(4*(J+7))≤t := (le_div_iff₀ (by positivity)).mp hτt
have hprod : 0≤τ*J := mul_nonneg htau.le hJ
have hprodeps := mul_le_mul_of_nonneg_left heps1 htau.le
refine ⟨τ,htau,by linarith only [hτd],by linarith only [hτc, hcost],
by nlinarith only [hτJ, hprod, htau],by nlinarith only [hτJ, hprod, htau],
by nlinarith only [hτJ, hprod, hprodeps, htau]⟩
· intro j
change ell j≤mesh t/200
calc
ell j≤(1/200:ℝ)*min t (mesh t):=(hbounds j).2.2.1
_≤(1/200:ℝ)*mesh t:=mul_le_mul_of_nonneg_left (min_le_right _ _) (by norm_num)
_=mesh t/200:=by ring
theorem fine_slot_widths {Δ:ℝ}(D:HighData Δ)(mesh:ℝ→ℝ)
(hmesh:0<mesh D.t)(hfine:∀j,D.ell j≤mesh D.t/200)
(d:ℝ)(hd:(1/200:ℝ)≤d)(j:Fin D.N):
0<D.ell j/d ∧ D.ell j/d≤mesh D.t:=by
have hd0:0<d:=by linarith
refine ⟨div_pos (D.slots_bounds j).1 hd0,(div_le_iff₀ hd0).mpr ?_⟩
have hh:=hfine j
nlinarith
end SevenEighths.Parameters
end
end OAI

Xet Storage Details

Size:
4.43 kB
·
Xet hash:
66cddd87298f40b75446c1d55e376560bc23c54ba80db236233ea49878ab166e

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