cfahlgren1/math / lean /OAI /NumberTheory /DirichletL /ParametersHighData.lean
cfahlgren1's picture
download
raw
4.96 kB
import OAI.NumberTheory.DirichletL.ParametersCentralBudget
namespace OAI
noncomputable section
open scoped BigOperators
namespace SevenEighths.Parameters
structure HighData (Δ : ℝ) where
t : ℝ
N : ℕ
ell : Fin N→ℝ
rmin : ℝ
ε : ℝ
e : ℝ
κ : ℝ
cost : ℝ
eps : ℝ
sigma : ℝ
t_pos : 0<t
t_delta : t<Δ/4
t_small : t≤1/100000000
slots_pos : 0<N
slots_injective : Function.Injective ell
slots_sum : (∑j,ell j)=1/6
slots_bounds : ∀j,0<ell j ∧ (7/8)*rmin≤ell j ∧ ell j≤(1/200)*t
rmin_pos : 0<rmin
epsilon_pos : 0<ε
epsilon_small : ε≤1/1000
epsilon_gap : ε<rmin*t
e_pos : 0<e
e_small : e<1/1000
kappa_pos : 0<κ
kappa_small : κ≤1
cost_pos : 0<cost
eps_pos : 0<eps
eps_small : eps≤1
sigma_pos : 0<sigma
detector_budget : 288*e+8*κ+2*cost≤ε/2
phase_budget : 8*e*t+κ≤ε
count_budget : 159*ε+t+t+7*t≤1/32
central_budget : (13/16)*(159*ε+t+t+7*t)+2*t+(3/2)*(2*t)+
(26*e+(N+8)*eps+t+t/6)+(t+t+t)+t≤49/440640
geometric_budget : sigma+8*e+t/8≤63/800
principal_budget : sigma+t/8≤17/48000
window_budget : sigma+e≤(7/8)*((7/8)*rmin)
floor_budget : 2*t+26*e+(N+8)*eps+t+t/6+t/8+sigma≤7/1200
high_saving : sigma+t/8+t/8≤t
height_choice : ∀J : ℝ,0≤J → ∃τ : ℝ,0<τ ∧ τ<(1/200)/2 ∧
4*τ<(1/200)*cost ∧ τ<t ∧ 2*τ*(1+J)≤t ∧ τ*(2+4*eps)<t
theorem exists_high_data (Δ : ℝ) (hΔ : 0<Δ) : Nonempty (HighData Δ) := 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) t t (by norm_num) (by norm_num) 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.1⟩
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]⟩
end SevenEighths.Parameters
end
end OAI

Xet Storage Details

Size:
4.96 kB
·
Xet hash:
fc7154d3138b83ccf6e7fc3e35130cf92cbc8eeaf44ca3b5ec66938b5655a46e

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