Download lean/OAI/NumberTheory/DirichletL/Inversion/InitialDyadicAssemblyRetained.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
theoremwindow_sum_split (a b:Fin4→ℝ)(ZD m L:ℝ)(f:Windows a b→ℂ) :
(∑k,f k)=(∑k∈retainedWindows a b ZD m L,f k)+
∑k∈tailWindows a b ZD m L,f k :=by
proof · 4
lines
simpa only [retainedWindows,tailWindows,not_le] using
(Finset.sum_filter_add_sum_filter_not (Finset.univ:Finset (Windows a b))
(fun k=>radialCenter m (exponent Z (k 3).val) (exponent Z (k 1).val) D
(exponent Z (k 0).val)≤L) f).symm
theoremretained_exponents_eventually (b R Λ:ℝ)(hb:0<b)(hR:0≤R)(hΛ:0≤Λ) :
∀ᶠZ:ℝin atTop,1<Z∧∀D m LT:ℝ,D≤R→0≤m→L≤Λ→0<T→∀k∈retainedWindows (fun _=>1) (physicalCaps b ZDT) ZD m L,
∀i,exponent Z (k i).val∈Set.Icc0 (3*R+Λ+1) :=by
proof · 21
lines
filter_upwards [window_exponent_eventual_upper b 1 hb (by norm_num)] withZ hZ
refine ⟨hZ.1,?_⟩
intro D m LT hD hm hL hT k hk
havehs:radialCenter m (exponent Z (k 3).val) (exponent Z (k 1).val) D
(exponent Z (k 0).val)≤L:= (Finset.mem_filter.mp hk).2havehp:0<b*Z^D:= mul_pos hb (Real.rpow_pos_of_pos (by linarith [hZ.1]) D)
have h0:=hZ.2 (b*Z^D) D hp le_rfl (k 0).val (k 0).property
have h1:=hZ.2 (b*Z^D) D hp le_rfl (k 1).val (k 1).property
have h2:=hZ.2 (b*Z^D) D hp le_rfl (k 2).val (k 2).property
have h3:=window_exponent_nonneg ZT hZ.1 hT (k 3).val (k 3).property
unfold radialCenter at hs
intro i
fin_cases i
· change exponent Z (k 0).val∈Set.Icc0 (3*R+Λ+1)
exact ⟨h0.1,by linarith [h0.2]⟩
· change exponent Z (k 1).val∈Set.Icc0 (3*R+Λ+1)
exact ⟨h1.1,by linarith [h1.2]⟩
· change exponent Z (k 2).val∈Set.Icc0 (3*R+Λ+1)
exact ⟨h2.1,by linarith [h2.2]⟩
· change exponent Z (k 3).val∈Set.Icc0 (3*R+Λ+1)
exact ⟨h3,by linarith [h0.1,h1.2]⟩
theoremwindow_quotient_eventually (b R:ℝ)(hb:0<b) :
∀ᶠZ:ℝin atTop,1<Z∧∀DTη:ℝ,D≤R→0<T→η≤1→∀k:Windows (fun _=>1) (physicalCaps b ZDT),
exponent Z (k 0).val-exponent Z (k 1).val+2*η≤R+3:=by
proof · 7
lines
filter_upwards [window_exponent_eventual_upper b 1 hb (by norm_num)] withZ hz
refine ⟨hz.1,?_⟩
intro DT η hD hT hη k
havehp:0<b*Z^D:= mul_pos hb (Real.rpow_pos_of_pos (by linarith [hz.1]) D)
have h0:=hz.2 (b*Z^D) D hp le_rfl (k 0).val (k 0).property
have h1:=hz.2 (b*Z^D) D hp le_rfl (k 1).val (k 1).property
linarith [h0.2,h1.1]
theoremretained_card_of_exponents (a b:Fin4→ℝ)(ZD m LA:ℝ)(hZ:1<Z)
(he:∀k∈retainedWindows a b ZD m L,∀i,exponent Z (k i).val∈Set.Icc0A) :
(retainedWindows a b ZD m L).card≤Fintype.card (Windows (fun _=>1) (fun _=>Z^A)) :=by
proof · 18
lines
havehZp:0<Z:=by linarith
letf:↥(retainedWindows a b ZD m L)→Windows (fun _=>1) (fun _=>Z^A) :=fun k i=>⟨(k.val i).val,(mem_indices_iff_scale 1 (Z^A) (by norm_num)
(Real.rpow_pos_of_pos hZp A) (k.val i).val).mpr ⟨by
rw [←exponent_scale Z hZ]
simpa only [Real.rpow_zero] using
(Real.rpow_le_rpow_left_iff hZ).mpr (he k.val k.property i).1,byhavehh:(dyadicScale (k.val i).val)≤Z^A:=by
rw [←exponent_scale Z hZ]
exact (Real.rpow_le_rpow_left_iff hZ).mpr (he k.val k.property i).2
exact hh.trans (by nlinarith [Real.rpow_pos_of_pos hZp A])⟩⟩
havehf:Function.Injective f :=by
intro k l h
apply Subtype.ext
funext i
apply Subtype.ext
simpa only [f] using congrArg Subtype.val (congrFun h i)
simpa only [Fintype.card_coe] usingFintype.card_le_of_injective f hf