cfahlgren1/math / lean /OAI /Analysis /LipschitzHilbert /Packets /PacketDataAssignedSelectorCentralGoodSet.lean
cfahlgren1's picture
download
raw
11.7 kB
import OAI.Analysis.LipschitzHilbert.Trees.SourceWideLogMass
import OAI.Analysis.LipschitzHilbert.Packets.PacketDataAssignedSelectorJointGoodSet
import OAI.Analysis.LipschitzHilbert.Trees.SourceWeightPointwiseBudget
namespace OAI
/-! The common set supplies the larger-weight concentration and logarithmic
count required by actual central recovery. The small jet control still
precedes the mask choice. -/
noncomputable section
open Set MeasureTheory Filter
open scoped BigOperators ENNReal NNReal Topology
namespace LipschitzHilbert.PacketLatticeData
attribute [local instance] Classical.propDecidable
theorem source_assigned_selector_central_good_set (hVariation : LepingleInput) (hLL : LaceyLiInput)
(cStar cEta CEta cb Cb F : ℝ) (hcStar : 0 ≤ cStar) (hcEta : 0 < cEta)
(hCEta : 0 ≤ CEta) (hcb : 0 ≤ cb) (hCb : 0 ≤ Cb) (hF : 0 ≤ F)
(hgap : cStar < cEta*cb)
(aWeight aw p s Hloss Lip : ℝ) (D K H J₀ : ℕ)
(haWeight : 0 ≤ aWeight) (haw : 0 ≤ aw) (hp : 0 ≤ p) (hs : 0 ≤ s)
(hHloss : 0 ≤ Hloss) (hLip : 0 ≤ Lip) (hD : 4 ≤ D) :
∃ A Cn Ct L0 : ℝ, aWeight < A ∧ 2 < A ∧ 0 < Cn ∧ 0 < Ct ∧ 2 ≤ L0 ∧
∀ L : ℝ, L0 ≤ L →
∀ (τ κ : Type) [Fintype τ] [Fintype κ]
(N : ℕ) (Label : Fin N → Type) (Item : ∀ j, Label j → Type)
[∀ j l, Fintype (Item j l)] (P : PacketLatticeData N κ Label Item)
(packets : Finset P.PacketIndex) (assigned : P.PacketIndex → τ),
∀ (scale ratioBound : ℝ) (hratioBound : 1 ≤ ratioBound)
(hcontrol : |scale/P.width| ≤ ratioBound),
(P.withJetControl scale ratioBound hratioBound hcontrol).referenceEnvelopeConstant ≤ L^p →
6+2*(8*D+1) ≤ P.order →
∀ (alt : ∀ j (l : P.labels j), Item j l → κ → SchwartzMap (ℝ×ℝ) ℂ)
(hAlt : ∀ j l u k,
planarProfileConstant (alt j l u k) (2*P.order) ≤ P.profileBound)
(T : τ → SlopeBox) (oldSlope : ℝ) (R : τ → ℝ) (cone w : ℝ)
(hw : 0 < w) (hcone : 0 ≤ cone) (hwide : cone*w ≤ P.width)
(hfrequency : ∀ k, |P.frequency k| ≤ F/w),
(∀ top, P.width ≤ L^aWeight*(T top).width) →
(∀ top, scale = 4*(L^aWeight*(T top).width)) →
(∀ q ∈ packets,
|P.actualX q.1 q.2.1 q.2.2-(T (assigned q)).x|+P.length q.1 ≤
L^aWeight*(T (assigned q)).length) →
(∀ q ∈ packets,
|P.actualZ q.1 q.2.1 q.2.2+(oldSlope-(T (assigned q)).slope)*
P.actualX q.1 q.2.1 q.2.2-
((T (assigned q)).y-(T (assigned q)).slope*(T (assigned q)).x)|+P.width ≤
L^aWeight*(T (assigned q)).width) →
∀ (angle : τ → ℝ) (small wide radius : ℝ) (E J : ℕ),
(∀ top, 0 < angle top) → 0 < small → small ≤ 1 →
wide ≤ small*(2:ℝ)^J → 1 ≤ wide*((2:ℝ)^E)^4 → radius ≤ K →
(∀ top j, SourceSlopeLabels.LocalMultiplicity Finset.univ
(fun l => oldSlope+P.rowSlope j l) (angle top*(2:ℝ)^j.val) H) →
∀ (b : ∀ j, P.labels j → κ → ℝ → ℂ),
(∀ j l k, Measurable (b j l k)) →
(∀ j l k s, ‖b j l k s‖ ≤ 1) →
(∀ top j l k s, P.referenceCondition oldSlope (T top).slope (R top) cone w j l →
b j l k s ≠ 0 →
|s-(oldSlope+P.rowSlope j l)| ≤ radius*(angle top*(2:ℝ)^j.val)) →
(∀ top j l k s, P.referenceCondition oldSlope (T top).slope (R top) cone w j l →
|s-(T top).slope| ≤ small*(angle top*(2:ℝ)^j.val) →
‖b j l k s-b j l k (T top).slope‖ ≤
Lip*(|s-(T top).slope|/(angle top*(2:ℝ)^j.val))) →
(∀ top j l k s, P.referenceCondition oldSlope (T top).slope (R top) cone w j l →
(wide*((2:ℝ)^E)^4)*(angle top*(2:ℝ)^j.val) < |s-(T top).slope| →
b j l k s = 0) →
∀ (v : ℝ×ℝ → ℝ), Measurable v →
∀ (f : ℝ×ℝ → EuclideanSpace ℂ κ), Measurable f →
(∀ z, ‖f z‖ ≤ 1) →
(∀ q ∈ packets, ∀ k xi eta,
planarAngularFourier (P.physicalPacket oldSlope q.1 q.2.1 q.2.2 k) (xi,eta) ≠ 0 →
|xi+(oldSlope+P.rowSlope q.1 q.2.1)*eta| ≤ cStar/P.length q.1 ∧
cEta ≤ w*eta ∧ w*eta ≤ CEta) →
(∀ q ∈ packets, ∀ k xi eta,
planarAngularFourier ((P.withProfile alt hAlt).physicalPacket
oldSlope q.1 q.2.1 q.2.2 k) (xi,eta) ≠ 0 →
|xi+(oldSlope+P.rowSlope q.1 q.2.1)*eta| ≤ cStar/P.length q.1 ∧
cEta ≤ w*eta ∧ w*eta ≤ CEta) →
(∀ top j l, P.referenceCondition oldSlope (T top).slope (R top) cone w j l →
(∃ k, b j l k (T top).slope ≠ 0) →
cb*w/P.length j ≤ |oldSlope+P.rowSlope j l-(T top).slope| ∧
|oldSlope+P.rowSlope j l-(T top).slope| ≤ Cb*w/P.length j) →
J ≤ J₀ → E = SourceParameters.stepExponent L*SourceParameters.blockCount L →
(∀ q ∈ packets, P.referenceCondition oldSlope (T (assigned q)).slope
(R (assigned q)) cone w q.1 q.2.1) →
∀ l r : ℝ, (∀ i, |(T i).slope| ≤ 1) →
∀ (u : Plane → ℝ), LipschitzWith 1 u → 600*(r-l) ≤ 1 →
∀ witness : τ → Set (ℝ×ℝ), (∀ i, MeasurableSet (witness i)) →
(Pairwise fun i j => Disjoint (witness i) (witness j)) →
(∀ i z, z ∈ witness i → z.1 ∈ Icc l r ∧ (T i).radius z ≤ L^aw) →
(∀ i z, z ∈ witness i → |u (planeCoordinates z)-(T i).slope| ≤
(T i).width/(12*(T i).length)) →
(∀ i, ENNReal.ofReal (L^(-aw)*(T i).length*(T i).width) ≤
(volume.prod volume) (witness i)) → 0 < ∑ i, (T i).area →
∀ (ratio : ℝ) (Fset : Set (ℝ×ℝ)), 0 < ratio → MeasurableSet Fset →
(volume.prod volume) Fset ≠ ∞ →
(∀ z ∈ Fset, z.1 ∈ Icc l r) → ratio ≤ Real.exp (2*L) → Real.log ratio ≤ 2*L →
(∑ i, (T i).area) ≤ L^s*ratio^2*(volume.prod volume).real Fset →
∀ widthScale timeScale : ℝ,
Real.exp (L^(9/10:ℝ)) ≤ widthScale →
widthScale ≤ 2*Real.exp (L^(9/10:ℝ)) →
0 ≤ timeScale → timeScale ≤ Real.exp (-(L^(97/100:ℝ))) →
(∀ i, (T i).length ≤ timeScale) →
(∀ i, (volume.prod volume) (witness i) ≠ ∞) →
(∀ i z, z ∈ witness i → |u (planeCoordinates z)-(T i).slope| ≤ w/(T i).length) →
(∀ i, (T i).width = widthScale*(T i).length*(w/(T i).length)) →
let Q := fun top => (P.assignedTopFamily packets assigned top).referenceFamily
oldSlope (T top).slope (R top) cone w F hw hcone hF hwide hfrequency
let orig := fun top j (l : (Q top).labels j) =>
((P.assignedTopFamily packets assigned top).referenceOriginalLabel
oldSlope (T top).slope (R top) cone w j l).val.2
let a := fun top j (l : (Q top).labels j) (u : P.AssignedTopItem packets assigned j l) k =>
alt j (orig top j l) u.val k
let ha := fun top j (l : (Q top).labels j) (u : P.AssignedTopItem packets assigned j l) k =>
hAlt j (orig top j l) u.val k
∃ G : Set (ℝ×ℝ), MeasurableSet G ∧ G ⊆ Fset ∧
(volume.prod volume) (Fset\G) ≤ ENNReal.ofReal (L^(-Hloss)*(volume.prod volume).real Fset) ∧
(∀ z ∈ G, ∀ i, (T i).weight (L^(A+2)) (D:ℝ) z ≤ (2:ℝ)^D) ∧
(∀ z ∈ G, Real.log (max 1 (∑ i, (T i).weight (L^(A+2)) (D:ℝ) z)) ≤ 3*L) ∧
(∀ z ∈ G, (∑ i, (T i).weight (L^(A+2)) (D:ℝ) z) ≤ ratio*L^Cn) ∧
(∀ top lower upper, lower ≤ upper → upper ≤ N → ∀ z ∈ G, ∀ yy,
|yy-(z.2-(T top).slope*z.1)| ≤ (T top).width →
let V := ((Q top).withProfile (a top) (ha top)).rawInterval
(fun j l u => P.physicalMultiplierCoefficient oldSlope b v f j (orig top j l) u.val)
0 lower upper
‖V z.1 yy‖+(T top).width*‖covariantSignal P.frequency
(fun k y => V z.1 y k) yy‖ ≤ L^(2*p+8)*((T top).weight (L^(A+2)) (D:ℝ) z)^8) ∧
let original := fun z => ∑ q ∈ packets, P.crossPacketValue alt hAlt oldSlope b v f z q
let masked := fun z => ∑ q ∈ packets, P.physicalMaskedValue alt hAlt oldSlope b v f
(fun j l u => T (assigned ⟨j,⟨l,u⟩⟩)) L A z q
IntegrableOn (fun z => ‖original z-masked z‖) G (volume.prod volume) ∧
(∫ z in G, ‖original z-masked z‖ ∂volume.prod volume) ≤
L^(-Hloss)*ratio*(volume.prod volume).real Fset ∧
∀ z ∈ G, ∀ rho : ℝ, 0 < rho → ∀ I : Finset τ,
(∀ i ∈ I, (T i).radius z ≤ L^(A+2)) →
(∀ i ∈ I, w/(T i).length ≤ rho/(SourceParameters.branching L)^2) →
(∀ i ∈ I, ∀ j ∈ I, |(T i).slope-(T j).slope| ≤ SourceParameters.branching L*rho) →
(∀ i ∈ I, ∀ j ∈ I, i ≠ j → rho ≤ |(T i).slope-(T j).slope|) →
(I.card:ℝ) ≤ L^Ct/100 := by
obtain ⟨A,Cn,Ct,Lbase,haA,hA,hCn,hCt,hLbase,hjoint⟩ := source_assigned_selector_joint_good_set
hVariation hLL cStar cEta CEta cb Cb F hcStar hcEta hCEta hcb hCb hF hgap
aWeight aw p s Hloss Lip D K H J₀ haWeight haw hp hs hHloss hLip hD
obtain ⟨Llog,hLlog⟩ := eventually_atTop.mp (eventually_count_log_bound_wide Cn)
refine ⟨A,Cn,Ct,max Lbase Llog,haA,hA,hCn,hCt,
hLbase.trans (le_max_left _ _),?_⟩
intro L hL τ κ _ _ N Label Item _ P packets assigned scale ratioBound hratioBound hcontrol
hP horder alt hAlt T oldSlope R cone w hw hcone hwide hfrequency hwidth hscaleEq hX hZ
angle small wide radius E J hangle hsmall hsmall1 hwideScale hwide1 hradius hlocal
b hb hb1 hsupport hnear hfar v hv f hf hf1 hspectrum haltSpectrum hsep hJ hE hcondition
l r hslopes u hu hlength witness hW hdisj hinside hclose hsize hSpos ratio Fset hratio
hFset hFfinite hFstrip hNupper hlogRatio hS widthScale timeScale hwidthLow hwidthHigh
htimeLow htimeHigh htopLength hWfinite hprecision hwidthExact Q orig a ha
have hLb : Lbase ≤ L := (le_max_left _ _).trans hL
have hLl : Llog ≤ L := (le_max_right _ _).trans hL
have hL1 : 1 ≤ L := by linarith [hLbase.trans hLb]
have hLpos : 0 < L := zero_lt_one.trans_le hL1
have hKpos : 0 < L^(A+2) := Real.rpow_pos_of_pos hLpos _
have hKsmall : 0 < L^aWeight := Real.rpow_pos_of_pos hLpos _
have hDD : 0 ≤ (D:ℝ) := Nat.cast_nonneg _
obtain ⟨G,hG,hGF,harea,hcount,hconc,hint,herror,hseparated⟩ := hjoint L hLb τ κ N Label Item
P packets assigned scale ratioBound hratioBound hcontrol hP horder alt hAlt T oldSlope R cone w
hw hcone hwide hfrequency hwidth hscaleEq hX hZ angle small wide radius E J hangle hsmall
hsmall1 hwideScale hwide1 hradius hlocal b hb hb1 hsupport hnear hfar v hv f hf hf1
hspectrum haltSpectrum hsep hJ hE hcondition l r hslopes u hu hlength witness hW hdisj
hinside hclose hsize hSpos ratio Fset hratio hFset hFfinite hFstrip hNupper hS
widthScale timeScale hwidthLow hwidthHigh htimeLow htimeHigh htopLength hWfinite
hprecision hwidthExact
refine ⟨G,hG,hGF,harea,?_,?_,hcount,?_,hint,herror,hseparated⟩
· intro z _ i
simpa only [Real.rpow_natCast] using (T i).weight_le_two_rpow hKpos hDD z
· intro z hz
apply hLlog L hLl _ ratio _ hratio hlogRatio
simpa only [mul_comm] using hcount z hz
· intro top lower upper hlu hup z hz yy hyy
have hwgt := (T top).weight_mono_dilation hKsmall
(Real.rpow_le_rpow_of_exponent_le hL1 (by linarith : aWeight ≤ A+2)) hDD z
exact (hconc top lower upper hlu hup z hz yy hyy).trans
(mul_le_mul_of_nonneg_left
(pow_le_pow_left₀ ((T top).weight_pos hKsmall (D:ℝ) z).le hwgt 8)
(Real.rpow_nonneg hLpos.le _))
end LipschitzHilbert.PacketLatticeData
end
end OAI

Xet Storage Details

Size:
11.7 kB
·
Xet hash:
9d11710070d3641cc9c35eed55146c5dfbeadd7f055afcc1cd615fdbdcea96ab

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