cfahlgren1/math / lean /OAI /NumberTheory /DirichletL /Detector /FinalAssemblyCollected.lean
cfahlgren1's picture
download
raw
12 kB
import OAI.NumberTheory.DirichletL.PrimeRows.NonfloorCollected
import OAI.NumberTheory.DirichletL.Detector.FinalAssemblyNormalized
namespace OAI
noncomputable section
open scoped Classical BigOperators Topology ContDiff
open Filter Set
namespace SevenEighths.ProbeFinalAssembly
open ProbeHighRowFamily
open HeckeFamily HeckeInverseAmplification ProbePhysical ProbeMellinBoundary
open ProbeRaySlots HeckeDetectorPhysicalSelection HeckeDetectorAmplitudeFirst HeckeDetectorFiberPartition
local notation "O" => HeckeFamily.O
variable (M : Ideal O) [NeZero M]
local instance : Finite (O ⧸ M) := Ring.HasFiniteQuotients.finiteQuotient (NeZero.ne M)
variable (H : Subgroup (O ⧸ M)ˣ) (hH : RayOrthogonality.globalUnits M≤H)
theorem actual_nonfloor_rows_saving (N n : ℕ) (e eps c b A R dmin dmax rmin τ ε κ cost mesh margin loss : ℝ)
(he : 0<e) (he1 : e<1/1000) (heps : 0<eps) (hc : 0<c) (hcb : c≤b) (hA : 0≤A)
(hR : 0≤R) (hdmin : 0<dmin) (hdmax : 0≤dmax) (hdRange : dmin≤dmax) (hrmin : 0<rmin)
(hτ : 0<τ) (hε : 0<ε) (hκ : 0<κ) (hcost : 0≤cost) (hmesh : 0<mesh)
(hbudget : 8*e*R+κ≤ε) (hgap : ε<rmin*mesh) (hmargin : 0<margin)
(hheight : 2*τ<dmin*cost) (hloss : τ*(2+4*eps)<loss)
(S : Finset (Ideal O)) (hS : SourceExclusions S) (hfirst : FirstTail (4*e) S)
(hmax : ∀P∈S,P.IsMaximal)
(ell : Fin N→ℝ) (hell : Function.Injective ell)
(hello : ∀j,dmax*rmin≤ell j) (hellhi : ∀j,ell j≤dmin*R)
(W : Fin N→ℝ→ℝ)
(hWs : ∀j,Function.support (W j)⊆Ioo c b) (hW : ∀j,ContDiff ℝ ∞ (W j)) (hWB : ∀j t,0≤W j t ∧ W j t≤A)
(hcompact : ∀j,HasCompactSupport (W j)) (hne : ∀j,W j≠0)
(hellsum : ∑j,ell j=1/6)
(hdtop : dmax≤37/42) (hε1 : ε≤1/1000) (hκ1 : κ≤1)
(hτzero : τ<dmin/2) (hτheight : 4*τ<dmin*cost)
(hwbudget : 12*e*((22:ℝ)+2)+8*κ+2*cost≤ε/2)
(φ : ℝ→ℝ) (hφ : ContDiff ℝ ∞ φ) (hφc : HasCompactSupport φ)
(hφp : tsupport φ⊆Ioi 0) (hφ0 : ∀y,0≤φ y) (hφne : φ≠0)
(a₀ b₀ B₀ : ℝ) (ha₀ : 0<a₀) (hab₀ : a₀≤b₀) (hB₀ : 0<B₀)
(hφs : Function.support φ⊆Ioo a₀ b₀) (hφB : ∀y,φ y≤B₀)
(εm Δ ν logCost heightCost momentCost : ℝ)
(hεm : 0<εm) (hΔ : 0≤Δ) (hΔ1 : Δ≤1/8) (hν : 0<ν)
(hlog : 0<logCost) (hMomentHeight : τ<heightCost)
(ζ μ saving : ℝ) (hζ : 0≤ζ) (hζ1 : ζ≤3/16) (hμ : 0≤μ)
(hcount : 159*ε+εm+R+7*ν≤1/32)
(hfinal : (13/16)*(159*ε+εm+R+7*ν)+2*ζ+(3/2)*μ+
(26*e+(N+8)*eps+loss+mesh/6)+(logCost+heightCost+momentCost)+saving≤49/440640)
(W0 W1 : SchwartzMap ℝ ℂ) (a0 b0 a1 b1 : ℝ) (ha0 : 0<a0) (ha1 : 0<a1)
(hW0 : Function.support W0⊆Icc a0 b0) (hW1 : Function.support W1⊆Icc a1 b1)
(hr0 : ∀y,(W0 y).im=0) (hr1 : ∀y,(W1 y).im=0)
(hp0 : ∀y,0≤(W0 y).re) (hp1 : ∀y,0≤(W1 y).re) (hn0 : W0≠0) (hn1 : W1≠0)
(nu : ℝ) (hnu : 0<nu)
(m : ℕ) (dyadCost : ℝ) (hdyadCost : 0<dyadCost)
(hdmin1 : dmin<1/100) (hconductor : 13/16+ζ+2*margin≤dmax)
(hmuMargin : 2*margin≤μ) (counts : CountParameters M H εm) :
letI : NeZero (∏P∈S,P) := ⟨fixedPrimeProduct_ne_zero S hS.prime⟩
∃C : ℝ,0<C ∧
∀η : Character,∀ᶠZ : ℝ in atTop,∀C0 : ℝ,0≤C0 → ∀rows : Finset FreeRow,
(∀u∈rows,u.val≠1 ∧ Z^(1/100:ℝ)≤rowNorm u ∧
(calibrationForSet S hmax).residueMonoid u.val≠0 ∧ rowNorm u≤Z^(13/16+ζ)) →
∀idx grid : FreeRow→ℕ,
(∀u∈rows,idx u≤n ∧ grid u≤m ∧ grid u≠0 ∧ 51/100+e*grid u≤1) →
(∀u∈rows,detectorMaximum (sourceDetectorFamily S hS.prime η u (rayCubeFamily M H hH u))
(3*(idx u+1:ℕ)*Z^τ)<51/100+e*grid u+2*e) →
(∀u∈rows,51/100+e*grid u≤detectorMaximum (sourceDetectorFamily S hS.prime η u (rayCubeFamily M H hH u))
((3*idx u:ℕ)*Z^τ)) →
(∀k∈smallDyadicIndices (Z^(13/16+ζ)),∀i∈Finset.range (n+1),∀j∈Finset.range (m+1),
let rows' := cubeBinRows (rows∩dyadicRows 1 k) idx grid i j
rows'.Nonempty → ∀t : HeightSpace,
((|t.1.1|≤(3*i+1:ℕ)*Z^τ ∧ |t.2|≤(3*i+1:ℕ)*Z^τ) ∧ |t.1.2|≤(3*i+1:ℕ)*Z^τ) →
SourceMomentsAt M H hH S hS.prime η rows' ell (fun j y=>(W j y:ℂ)) Z
(sourceDyadConductor Z margin k) (51/100+e*j) ε τ dmax b R mesh i
((17/50:ℂ)+t.1.2*Complex.I) Δ
(if 2*(51/100+e*j)-1≤5/6 then counts.cB else counts.cH)
(if 2*(51/100+e*j)-1≤5/6 then counts.kB else counts.kH)
(C0*Z^momentCost) (Z^heightCost) εm) →
let Y : Fin N→ℝ := fun j=>Z^(ell j)
let T : Fin N→Finset ProbePhysical.PrimeIdeal := fun j=>pool (RayQuotient.identityClass M H) S c b (Y j)
let normer := PrincipalMellinResidues.sourceResidueConstant W0 W1 (∏P∈S,P)*
(Probe.principalScalar Finset.univ Z (1/6)
(PrincipalSignalComparison.slotMass T (ProbePrincipalResidueActual.residueWeights W Y)) : ℂ)
normer≠0 ∧ ‖finiteCentralCubeRows S hS hmax η rows T (nonfloorPoolOutside M H S N c b Y)
(fun j y=>(W j y:ℂ)) Y W0 W1 (Z^(17/48:ℝ)) (Z^(23/48:ℝ)) Z e
(fun u=>51/100+e*grid u) (fun u=>(3*idx u+1:ℕ)*Z^τ)/normer‖≤
C*C0*(η.modulus.absNorm:ℝ)^(2*eps)*Z^(3/16+Δ-saving+nu+dyadCost) := by
let : NeZero (∏P∈S,P) := ⟨fixedPrimeProduct_ne_zero S hS.prime⟩
obtain ⟨C,hC,hbound⟩ :=
actual_normalized_nonfloor_cube M H hH N n e eps c b A R dmin dmax rmin τ ε κ cost mesh margin loss
he he1 heps hc hcb hA hR hdmin hdmax hdRange hrmin hτ hε hκ hcost hmesh
hbudget hgap hmargin hheight hloss S hS hfirst hmax ell hell hello hellhi W hWs hW hWB hcompact hne hellsum
hdtop hε1 hκ1 hτzero hτheight hwbudget
φ hφ hφc hφp hφ0 hφne a₀ b₀ B₀ ha₀ hab₀ hB₀ hφs hφB
εm Δ ν logCost heightCost momentCost hεm hΔ hΔ1 hν hlog hMomentHeight
ζ μ saving hζ hζ1 hμ hcount hfinal W0 W1 a0 b0 a1 b1 ha0 ha1 hW0 hW1
hr0 hr1 hp0 hp1 hn0 hn1 nu hnu counts
have hellpos (j : Fin N) : 0<ell j := (mul_pos (hdmin.trans_le hdRange) hrmin).trans_le (hello j)
obtain ⟨Cn,hCn,hnormer⟩ := actual_ray_normalizer_inverse M H hH S hS c b hc hcb ell hellpos hellsum
W hW hcompact hWs (fun j y=>(hWB j y).1) hne W0 W1 a0 b0 a1 b1 ha0 ha1 hW0 hW1
hr0 hr1 hp0 hp1 hn0 hn1 nu hnu
obtain ⟨Cd,hCd,hdyad⟩ := canonical_dyad_cost dyadCost hdyadCost
refine ⟨Cd*(n+1:ℕ)*(m+1:ℕ)*C,by positivity,?_⟩
intro η
filter_upwards [hbound η,hnormer,
sourceDyad_geometry_eventually dmin dmax margin (13/16+ζ) hdmin hdmin1 hmargin hconductor,
eventually_gt_atTop (1:ℝ)] with Z hb hn hg hZ
intro C0 hC0 rows hrows idx grid hlabels hnext hcurrent hmom
dsimp only at hn ⊢
refine ⟨hn.1,?_⟩
have hZp : 0<Z := zero_lt_one.trans hZ
let Y : Fin N→ℝ := fun j=>Z^(ell j)
let T : Fin N→Finset ProbePhysical.PrimeIdeal := fun j=>pool (RayQuotient.identityClass M H) S c b (Y j)
let hT := nonfloorPoolOutside M H S N c b Y
let WC : Fin N→ℝ→ℂ := fun j y=>(W j y:ℂ)
let normer := PrincipalMellinResidues.sourceResidueConstant W0 W1 (∏P∈S,P)*
(Probe.principalScalar Finset.univ Z (1/6)
(PrincipalSignalComparison.slotMass T (ProbePrincipalResidueActual.residueWeights W Y)) : ℂ)
let D : ℝ := C*C0*(η.modulus.absNorm:ℝ)^(2*eps)*Z^(3/16+Δ-saving+nu)
have hD : 0≤D := by dsimp [D];positivity
let F : Finset FreeRow→(FreeRow→ℝ)→(FreeRow→ℝ)→ℂ := fun R a H=>
finiteCentralCubeRows S hS hmax η R T hT WC Y W0 W1
(Z^(17/48:ℝ)) (Z^(23/48:ℝ)) Z e a H
have hcell (k : ℕ) (hk : k∈smallDyadicIndices (Z^(13/16+ζ)))
(i : ℕ) (hi : i∈Finset.range (n+1)) (j : ℕ) (hj : j∈Finset.range (m+1)) :
‖F (cubeBinRows (rows∩dyadicRows 1 k) idx grid i j)
(fun _=>51/100+e*j) (fun _=>(3*i+1:ℕ)*Z^τ)/normer‖≤D := by
let Rk := rows∩dyadicRows 1 k
let Rij := cubeBinRows Rk idx grid i j
have hsubk : Rij⊆Rk := Finset.filter_subset _ _
have hsub : Rij⊆rows := hsubk.trans Finset.inter_subset_left
by_cases hne' : Rij.Nonempty
· have hgeo := hg rows (fun u hu=>⟨(hrows u hu).1,(hrows u hu).2.1,(hrows u hu).2.2.2⟩) k
(hne'.mono hsubk)
obtain ⟨u,hu⟩ := hne'
have huj : grid u=j := ((mem_cubeBinRows Rk idx grid i j u).mp hu).2.2
have hju : j≠0 := huj ▸ (hlabels u (hsub hu)).2.2.1
have ha : 51/100<51/100+e*j := by
have hjp : (0:ℝ)<j := by exact_mod_cast Nat.pos_of_ne_zero hju
nlinarith
have ha' : 51/100+e*j≤1 := by simpa only [huj] using (hlabels u (hsub hu)).2.2.2
have hnext' : ∀u∈Rij,detectorMaximum (sourceDetectorFamily S hS.prime η u (rayCubeFamily M H hH u))
(3*(i+1:ℕ)*Z^τ)<51/100+e*j+2*e := by
intro u hu
have hh := hnext u (hsub hu)
have hm := (mem_cubeBinRows Rk idx grid i j u).mp hu
rwa [hm.2.1,hm.2.2] at hh
have hcurrent' : ∀u∈Rij,51/100+e*j≤detectorMaximum
(sourceDetectorFamily S hS.prime η u (rayCubeFamily M H hH u)) ((3*i:ℕ)*Z^τ) := by
intro u hu
have hh := hcurrent u (hsub hu)
have hm := (mem_cubeBinRows Rk idx grid i j u).mp hu
rwa [hm.2.1,hm.2.2] at hh
have hbounded := hb (sourceDyadConductor Z margin k) hgeo.2.2.1 hgeo.2.2.2.1
(sourceDyadExponent Z k) (51/100+e*j) C0 hgeo.1 hgeo.2.1
(by unfold sourceDyadConductor;linarith) ha ha' hC0 Rij
(fun u hu=>⟨(hrows u (hsub hu)).1,(hrows u (hsub hu)).2.1,
(hrows u (hsub hu)).2.2.1,hgeo.2.2.2.2.2 u (hsubk hu)⟩)
(fun u hu=>hgeo.2.2.2.2.1 u (hsubk hu)) i (by simpa using Nat.le_of_lt_succ (Finset.mem_range.mp hi))
hnext' hcurrent' (fun t ht=>hmom k hk i hi j hj ⟨u,hu⟩ t ht)
exact hbounded.2
· have he : Rij=∅ := Finset.not_nonempty_iff_eq_empty.mp hne'
simpa only [F,show cubeBinRows (rows∩dyadicRows 1 k) idx grid i j=∅ from he,
finiteCentralCubeRows,Finset.sum_empty,zero_div,norm_zero] using hD
have hpartition : F rows (fun u=>51/100+e*grid u) (fun u=>(3*idx u+1:ℕ)*Z^τ)=
∑k∈smallDyadicIndices (Z^(13/16+ζ)),
F (rows∩dyadicRows 1 k) (fun u=>51/100+e*grid u) (fun u=>(3*idx u+1:ℕ)*Z^τ) := by
unfold F finiteCentralCubeRows
exact retained_dyadic_sum rows _ (fun u hu=>⟨(hrows u hu).1,(hrows u hu).2.2.2⟩) _
change ‖F rows (fun u=>51/100+e*grid u) (fun u=>(3*idx u+1:ℕ)*Z^τ)/normer‖≤_
rw [hpartition,Finset.sum_div]
calc
_ ≤ ∑k∈smallDyadicIndices (Z^(13/16+ζ)),(n+1:ℕ)*(m+1:ℕ)*D := by
apply (norm_sum_le _ _).trans
apply Finset.sum_le_sum
intro k hk
have hpart := finiteCentralCubeRows_bin_partition S hS hmax η (rows∩dyadicRows 1 k) T hT WC Y
W0 W1 (Z^(17/48:ℝ)) (Z^(23/48:ℝ)) Z e (Z^τ) idx grid n m
(fun u hu=>⟨(hlabels u (Finset.mem_inter.mp hu).1).1,(hlabels u (Finset.mem_inter.mp hu).1).2.1⟩)
change ‖F (rows∩dyadicRows 1 k) (fun u=>51/100+e*grid u) (fun u=>(3*idx u+1:ℕ)*Z^τ)/normer‖≤_
dsimp only [F]
rw [hpart,Finset.sum_div]
apply (norm_sum_le _ _).trans
calc
_ ≤ ∑i∈Finset.range (n+1),∑j∈Finset.range (m+1),D := by
apply Finset.sum_le_sum
intro i hi
rw [Finset.sum_div]
exact (norm_sum_le _ _).trans (Finset.sum_le_sum (fun j hj=>hcell k hk i hi j hj))
_ = _ := by simp;ring
_ = ((smallDyadicIndices (Z^(13/16+ζ))).card:ℝ)*((n+1:ℕ)*(m+1:ℕ)*D) := by simp
_ ≤ (Cd*Z^dyadCost)*((n+1:ℕ)*(m+1:ℕ)*D) :=
mul_le_mul_of_nonneg_right (hdyad Z (13/16+ζ) hZ.le (by linarith)) (by positivity)
_ = _ := by dsimp [D];rw [Real.rpow_add hZp (3/16+Δ-saving+nu) dyadCost];ring
end SevenEighths.ProbeFinalAssembly
end
end OAI

Xet Storage Details

Size:
12 kB
·
Xet hash:
125dfc421054746d5a49757135e6b3a9de3b30b51436c2d3291e32b6d1b4e637

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