cfahlgren1/math / lean /OAI /Combinatorics /Progressions /Estimates /AllocatedCenteredNarrowPrescribedMarginal.lean
cfahlgren1's picture
download
raw
40.8 kB
import OAI.Combinatorics.Progressions.Dynamics.AllocatedNarrowPathMarginal
namespace OAI
section
namespace Erdos3.VectorPolynomial
open Module Submodule MeasureTheory BooleanCubeKernel
open scoped BigOperators Classical NNReal
theorem exists_allocated_narrow_prescribed_marginal (m : ℕ) :
∃ A : ℕ, 2 ≤ A ∧ ∀ {X G : Type*} [Fintype X] [DecidableEq X] [Fintype G]
{I : Fin m → Type*} [∀ j, Fintype (I j)] {n : Fin m → ℕ}
(B : LayerSamplerAxis I n → Type*) [∀ a, Fintype (B a)]
{J : Fin m → Type*} [∀ j, Fintype (J j)] (U : ∀ j, Submodule ℝ (J j → ℝ))
(basis : ∀ j, Basis (Fin (n j)) ℝ (euclideanSubspace (U j))ᗮ)
{R σ : Fin m → ℝ} (S : LayerSamplerScale (G := G) B U basis R σ)
(hb : ∀ j, span ℤ (Set.range (basis j)) = projectedIntegerLattice (euclideanSubspace (U j)))
(o : ∀ j, OrthonormalBasis (I j) ℝ (euclideanSubspace (U j)))
[∀ j, IsZLattice ℝ (latticeSection (standardEuclideanLattice (J j)) (euclideanSubspace (U j)))]
[CompactSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
[MeasurableSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
[BorelSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
(μ : Measure (CoefficientTorus (K := LayerSamplerVariables G I n B) U))
[μ.IsAddLeftInvariant] [IsProbabilityMeasure μ]
(ν : ∀ j, Measure (euclideanSubspace (U j) ⧸
(latticeSection (standardEuclideanLattice (J j)) (euclideanSubspace (U j))).toAddSubgroup))
[∀ j, (ν j).IsAddLeftInvariant] [∀ j, IsProbabilityMeasure (ν j)]
(hR : ∀ j, 0 < R j) (hσ : ∀ j, 0 < σ j) (_hσ1 : ∀ j, σ j ≤ 1)
(C V : Fin m → ℝ≥0)
(_hC : ∀ j z, ‖normalizedOrthogonalChart (euclideanSubspace (U j)) (basis j) z‖ ≤ C j * ‖z‖)
(_hV : ∀ j, 0 ≤ mixedDensityCovolumeRatio (euclideanSubspace (U j)) (basis j) ∧
mixedDensityCovolumeRatio (euclideanSubspace (U j)) (basis j) ≤ V j)
(Cinv : Fin m → ℝ) (_hCinv : ∀ j, 0 ≤ Cinv j)
(_hchart : ∀ j z, ‖(normalizedOrthogonalChart (euclideanSubspace (U j)) (basis j)).symm z‖ ≤ Cinv j * ‖z‖)
(_hsmall : ∀ j, Cinv j * ((Fintype.card (I j) : ℝ) + 1) * R j ≤ 1 / 4)
{P E : ℝ} (_hP : 0 ≤ P) (_hmSize : (m : ℝ) ≤ P)
(_hK : (Fintype.card (LayerSamplerVariables G I n B) : ℝ) ≤ P)
(_hX : (Fintype.card X : ℝ) ≤ P)
(_hdim : (Fintype.card (Option (LayerSamplerVariables G I n B) × X) : ℝ) ≤ P)
(_hRP : ∀ j, (R j)⁻¹ ≤ Real.exp P) (_hσP : ∀ j, (σ j)⁻¹ ≤ Real.exp P)
(_hcount : ∀ j : Fin m,
(Fintype.card (BoundedCoefficientExponent (LayerSamplerVariables G I n B) (j.val + 1)) : ℝ) ≤ P)
(_hI : ∀ j, (Fintype.card (I j) : ℝ) ≤ P) (_hn : ∀ j, (n j : ℝ) ≤ P)
(_hJ : ∀ j, (Fintype.card (J j) : ℝ) ≤ P)
(_hAP : (probabilityProfileLipschitz : ℝ) ≤ Real.exp P) (_hLP : (S.value : ℝ) ≤ Real.exp P)
(_hCP : ∀ j, (C j : ℝ) ≤ Real.exp P) (_hVP : ∀ j, (V j : ℝ) ≤ Real.exp P)
(p : ∀ j, VectorPolynomial X ℝ (J j → ℝ))
(_hp : ∀ j, DegreeLE (1 : X → ℕ) (j.val + 1) (p j))
(hm : ∀ j d, coefficients (p j) d ∈ U j)
(stride : X → ℕ) (_hs : ∀ d, 0 < stride d) (_hsP : ∀ d, (stride d : ℝ) ≤ Real.exp P)
{W τ ξ : ℝ} (_hW : 0 ≤ W) (_hWP : W ≤ Real.exp P)
(_hτ : 0 < τ) (_hτP : τ⁻¹ ≤ Real.exp P)
(_hτhalf : τ ≤ 1 / 2) (_hτdim : (Fintype.card X : ℝ) * τ ≤ 1 / 2)
(_hξ : 0 < ξ) (_hξ1 : ξ ≤ 1) (_hξP : ξ⁻¹ ≤ Real.exp P)
(N : X → ℕ) (_hsize : ∀ d, Real.exp ((max P E + A) ^ A) ≤ (N d : ℝ))
{rank : ℝ} (_hrank : ∀ j, HasLayerSamplingRank (j.val + 1) (fun d => (N d : ℝ)) rank (U j) (p j))
(_hRank : Real.exp ((max P E + A) ^ A) ≤ rank)
(T : Finset (ColumnResiduePattern (Option (LayerSamplerVariables G I n B)) X stride)) (_hT : T.Nonempty),
let widths := narrowTrimmedSpatialWidths (G := G)
(J := PrincipalTupleIndex B (layerSamplerDegree I n)) W τ ξ N
let bases := trimmedIntegerBox N (spatialTrimMargin τ N)
let density := allocatedJointBaseDensity B U basis hb o hR hσ S X p hm
let Z := selectedJointDensityMass bases stride T widths density
∃ (hN : ∀ x, 0 < N x) (hbases : bases.Nonempty) (hbox : (integerBox N).Nonempty)
(hmass : 0 < ∑' z, selectedResidueSmoothWeight stride T widths z),
∃ hnormalizer : |Z - 1| ≤ Real.exp (-E) ∧
Z ∈ Set.Icc (1 / 2 : ℝ) (3 / 2) ∧ 0 < Z ∧ Z⁻¹ ≤ 2,
∃ hmargin : ∀ x, 2 * spatialTrimMargin τ N x ≤ N x,
∀ {Sites : Type*} [Fintype Sites] [Nonempty Sites]
(root : Sites → LayerSamplerVariables G I n B → ℤ)
(_hroot : ∀ t k, |(root t k : ℝ)| ≤ Real.exp P)
(hrootSum : ∀ t, (∑ k, |(root t k : ℝ)|) ≤ W),
(FiniteProbabilityWeights.uniformFinset (integerBox N) hbox).excessMass
((allocatedOriginalPathLaw B U basis hb o hR hσ S X p hm N hN _hW _hτ _hξ
stride T hmass bases hbases hnormalizer.2.2.1).siteLaw
(narrowPhysicalSiteMap (G := G) (J := PrincipalTupleIndex B (layerSamplerDegree I n)) _hW _hτ _hξ1 N hN hmargin root hrootSum))
(4 * ∏ j, earlyConstantDensityCap (Fintype.card (I j)) (n j) (R j) (V j)) ≤
6 * positiveProjectionAccuracy E := by
obtain ⟨A, hA, hmarginal⟩ := exists_allocated_narrow_path_marginal m
refine ⟨A, hA, ?_⟩
intro X G _ _ _ I _ n B _ J _ U basis R σ S hb o _ _ _ _ μ _ _ ν _ _
hR hσ hσ1 C V hC hV Cinv hCinv hchart hsmall P E hP hmSize hK hX hdim
hRP hσP hcount hI hn hJ hAP hLP hCP hVP p hp hm stride hs hsP W τ ξ
hW hWP hτ hτP hτhalf hτdim hξ hξ1 hξP N hsize rank hrank hRank T hT widths bases density Z
have hPP : P ≤ max P E := le_max_left _ _
have hEP : E ≤ max P E := le_max_right _ _
have hexp := Real.exp_le_exp.mpr hPP
obtain ⟨hN, hbases, hbox, hmass, hnormalizer, hmargin, hsite⟩ :=
hmarginal B U basis S hb o μ ν hR hσ hσ1 C V hC hV Cinv hCinv hchart hsmall
(hP.trans hPP) (hmSize.trans hPP) (hK.trans hPP) (hX.trans hPP) (hdim.trans hPP)
(fun j => (hRP j).trans hexp) (fun j => (hσP j).trans hexp)
(fun j => (hcount j).trans hPP) (fun j => (hI j).trans hPP)
(fun j => (hn j).trans hPP) (fun j => (hJ j).trans hPP)
(hAP.trans hexp) (hLP.trans hexp) (fun j => (hCP j).trans hexp)
(fun j => (hVP j).trans hexp) p hp hm stride hs (fun j => (hsP j).trans hexp)
hW (hWP.trans hexp) hτ (hτP.trans hexp) hτhalf hτdim hξ hξ1 (hξP.trans hexp)
N hsize hrank hRank T hT
have hnormalizer' : |Z - 1| ≤ Real.exp (-E) ∧
Z ∈ Set.Icc (1 / 2 : ℝ) (3 / 2) ∧ 0 < Z ∧ Z⁻¹ ≤ 2 :=
⟨hnormalizer.1.trans (Real.exp_le_exp.mpr (neg_le_neg hEP)), hnormalizer.2⟩
refine ⟨hN, hbases, hbox, hmass, hnormalizer', hmargin, ?_⟩
intro Sites _ _ root hroot hrootSum
have h := hsite root (fun t k => (hroot t k).trans hexp) hrootSum
apply h.trans
apply mul_le_mul_of_nonneg_left _ (by norm_num : (0 : ℝ) ≤ 6)
unfold positiveProjectionAccuracy
exact Real.exp_le_exp.mpr (by linarith)
end Erdos3.VectorPolynomial
end
section
namespace Erdos3
open MeasureTheory
open scoped BigOperators Classical
theorem centeredFiniteMarginal_siteLaw_excessMass_le_of_uniform
{C Ω T X : Type*} [MeasurableSpace C] [Fintype Ω]
[Fintype T] [Nonempty T] [Fintype X]
(μ : Measure C) [IsProbabilityMeasure μ]
(law : C → FiniteProbabilityWeights Ω)
(hweight : ∀ z, Measurable (fun c => (law c).weight z))
(physical : Ω → T → X)
(reference : FiniteProbabilityWeights X) (cap ε : ℝ)
(h : ∀ c, reference.excessMass ((law c).siteLaw physical) cap ≤ ε) :
reference.excessMass ((centeredFiniteMarginal μ law hweight).siteLaw physical) cap ≤ ε := by
rw [centeredFiniteMarginal_siteLaw]
exact centeredFiniteMarginal_excessMass_le_of_uniform μ _ _ reference cap ε h
namespace VectorPolynomial
open Module Submodule
variable {m : ℕ} {G X : Type*} [Fintype G] [Fintype X]
variable {I : Fin m → Type*} [∀ j, Fintype (I j)] {n : Fin m → ℕ}
variable (B : LayerSamplerAxis I n → Type*) [∀ a, Fintype (B a)]
variable {J : Fin m → Type*} [∀ j, Fintype (J j)]
variable (U : ∀ j, Submodule ℝ (J j → ℝ))
variable (b : ∀ j, Basis (Fin (n j)) ℝ (euclideanSubspace (U j))ᗮ)
variable (hb : ∀ j, span ℤ (Set.range (b j)) = projectedIntegerLattice (euclideanSubspace (U j)))
variable (o : ∀ j, OrthonormalBasis (I j) ℝ (euclideanSubspace (U j)))
variable {R σ : Fin m → ℝ} (hR : ∀ j, 0 < R j) (hσ : ∀ j, 0 < σ j)
variable (S : LayerSamplerScale (G := G) B U b R σ)
variable (poly : ∀ j, VectorPolynomial X ℝ (J j → ℝ))
variable (hmem : ∀ j e, coefficients (poly j) e ∈ U j)
variable [∀ j, IsZLattice ℝ (latticeSection (standardEuclideanLattice (J j)) (euclideanSubspace (U j)))]
variable [MeasurableSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
variable [BorelSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
theorem allocatedCenteredJointFiniteLaw_weight_measurable
(bases : Finset (X → ℤ)) (hbases : bases.Nonempty)
(stride : X → ℕ)
(cells : Finset (ColumnResiduePattern (Option (LayerSamplerVariables G I n B)) X stride))
(W : Option (LayerSamplerVariables G I n B) × X → ℝ) (hW : ∀ z, 0 < W z)
(hmass : 0 < ∑' z, selectedResidueSmoothWeight stride cells W z)
(hDcenter : ∀ center, 0 < selectedJointDensityMass bases stride cells W
(allocatedCenteredJointDensity B U b hb o hR hσ S poly hmem center))
(z : bases × rectangularWeightIndices 0 W 1) :
Measurable (fun center =>
(selectedJointFiniteLaw bases hbases stride cells W hW hmass
(allocatedCenteredJointDensity B U b hb o hR hσ S poly hmem center)
(allocatedCenteredJointDensity_nonneg B U b hb o hR hσ S poly hmem center)
(hDcenter center)).weight z) :=
selectedJointFiniteLaw_weight_measurable bases hbases stride cells W hW hmass
(allocatedCenteredJointDensity B U b hb o hR hσ S poly hmem)
(allocatedCenteredJointDensity_measurable_center B U b hb o hR hσ S poly hmem)
(allocatedCenteredJointDensity_nonneg B U b hb o hR hσ S poly hmem) hDcenter z
end VectorPolynomial
end Erdos3
end
section
namespace Erdos3.VectorPolynomial
open Module Submodule MeasureTheory BooleanCubeKernel
open scoped BigOperators Classical NNReal
theorem exists_allocated_narrow_normalized_approximation (m : ℕ) :
∃ A : ℕ, 2 ≤ A ∧ ∀ {X G : Type*} [Fintype X] [DecidableEq X] [Fintype G]
{I : Fin m → Type*} [∀ j, Fintype (I j)] {n : Fin m → ℕ}
(B : LayerSamplerAxis I n → Type*) [∀ a, Fintype (B a)]
{J : Fin m → Type*} [∀ j, Fintype (J j)] (U : ∀ j, Submodule ℝ (J j → ℝ))
(basis : ∀ j, Basis (Fin (n j)) ℝ (euclideanSubspace (U j))ᗮ)
{R σ : Fin m → ℝ} (S : LayerSamplerScale (G := G) B U basis R σ)
(hb : ∀ j, span ℤ (Set.range (basis j)) = projectedIntegerLattice (euclideanSubspace (U j)))
(o : ∀ j, OrthonormalBasis (I j) ℝ (euclideanSubspace (U j)))
[∀ j, IsZLattice ℝ (latticeSection (standardEuclideanLattice (J j)) (euclideanSubspace (U j)))]
[CompactSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
[MeasurableSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
[BorelSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
(μ : Measure (CoefficientTorus (K := LayerSamplerVariables G I n B) U))
[μ.IsAddLeftInvariant] [IsProbabilityMeasure μ]
(ν : ∀ j, Measure (euclideanSubspace (U j) ⧸
(latticeSection (standardEuclideanLattice (J j)) (euclideanSubspace (U j))).toAddSubgroup))
[∀ j, (ν j).IsAddLeftInvariant] [∀ j, IsProbabilityMeasure (ν j)]
(hR : ∀ j, 0 < R j) (hσ : ∀ j, 0 < σ j) (_hσ1 : ∀ j, σ j ≤ 1)
(C V : Fin m → ℝ≥0)
(_hC : ∀ j z, ‖normalizedOrthogonalChart (euclideanSubspace (U j)) (basis j) z‖ ≤ C j * ‖z‖)
(_hV : ∀ j, 0 ≤ mixedDensityCovolumeRatio (euclideanSubspace (U j)) (basis j) ∧
mixedDensityCovolumeRatio (euclideanSubspace (U j)) (basis j) ≤ V j)
(Cinv : Fin m → ℝ) (_hCinv : ∀ j, 0 ≤ Cinv j)
(_hchart : ∀ j z, ‖(normalizedOrthogonalChart (euclideanSubspace (U j)) (basis j)).symm z‖ ≤ Cinv j * ‖z‖)
(_hsmall : ∀ j, Cinv j * ((Fintype.card (I j) : ℝ) + 1) * R j ≤ 1 / 4)
{P E : ℝ} (_hP : 0 ≤ P) (_hmSize : (m : ℝ) ≤ P)
(_hK : (Fintype.card (LayerSamplerVariables G I n B) : ℝ) ≤ P)
(_hX : (Fintype.card X : ℝ) ≤ P)
(_hdim : (Fintype.card (Option (LayerSamplerVariables G I n B) × X) : ℝ) ≤ P)
(_hRP : ∀ j, (R j)⁻¹ ≤ Real.exp P) (_hσP : ∀ j, (σ j)⁻¹ ≤ Real.exp P)
(_hcount : ∀ j : Fin m,
(Fintype.card (BoundedCoefficientExponent (LayerSamplerVariables G I n B) (j.val + 1)) : ℝ) ≤ P)
(_hI : ∀ j, (Fintype.card (I j) : ℝ) ≤ P) (_hn : ∀ j, (n j : ℝ) ≤ P)
(_hJ : ∀ j, (Fintype.card (J j) : ℝ) ≤ P)
(_hAP : (probabilityProfileLipschitz : ℝ) ≤ Real.exp P) (_hLP : (S.value : ℝ) ≤ Real.exp P)
(_hCP : ∀ j, (C j : ℝ) ≤ Real.exp P) (_hVP : ∀ j, (V j : ℝ) ≤ Real.exp P)
(p : ∀ j, VectorPolynomial X ℝ (J j → ℝ))
(_hp : ∀ j, DegreeLE (1 : X → ℕ) (j.val + 1) (p j))
(hm : ∀ j d, coefficients (p j) d ∈ U j)
(stride : X → ℕ) (_hs : ∀ d, 0 < stride d) (_hsP : ∀ d, (stride d : ℝ) ≤ Real.exp P)
{W τ ξ : ℝ} (_hW : 0 ≤ W) (_hWP : W ≤ Real.exp P)
(_hτ : 0 < τ) (_hτP : τ⁻¹ ≤ Real.exp P)
(_hτhalf : τ ≤ 1 / 2) (_hτdim : (Fintype.card X : ℝ) * τ ≤ 1 / 2)
(_hξ : 0 < ξ) (_hξ1 : ξ ≤ 1) (_hξP : ξ⁻¹ ≤ Real.exp P)
(N : X → ℕ) (_hsize : ∀ d, Real.exp ((max P E + A) ^ A) ≤ (N d : ℝ))
{rank : ℝ} (_hrank : ∀ j, HasLayerSamplingRank (j.val + 1) (fun d => (N d : ℝ)) rank (U j) (p j))
(_hRank : Real.exp ((max P E + A) ^ A) ≤ rank)
(T : Finset (ColumnResiduePattern (Option (LayerSamplerVariables G I n B)) X stride)) (_hT : T.Nonempty),
let widths := narrowTrimmedSpatialWidths (G := G)
(J := PrincipalTupleIndex B (layerSamplerDegree I n)) W τ ξ N
let bases := trimmedIntegerBox N (spatialTrimMargin τ N)
let density := allocatedJointBaseDensity B U basis hb o hR hσ S X p hm
let Z := selectedJointDensityMass bases stride T widths density
∃ (hN : ∀ x, 0 < N x) (hbases : bases.Nonempty) (hbox : (integerBox N).Nonempty)
(hmass : 0 < ∑' z, selectedResidueSmoothWeight stride T widths z),
∃ hnormalizer : |Z - 1| ≤ Real.exp (-E) ∧
Z ∈ Set.Icc (1 / 2 : ℝ) (3 / 2) ∧ 0 < Z ∧ Z⁻¹ ≤ 2,
∃ hmargin : ∀ x, 2 * spatialTrimMargin τ N x ≤ N x,
∀ {Sites : Type*} [Fintype Sites] [Nonempty Sites]
(root : Sites → LayerSamplerVariables G I n B → ℤ)
(_hroot : ∀ t k, |(root t k : ℝ)| ≤ Real.exp P)
(hrootSum : ∀ t, (∑ k, |(root t k : ℝ)|) ≤ W),
let pathLaw := allocatedOriginalPathLaw B U basis hb o hR hσ S X p hm N hN _hW _hτ _hξ
stride T hmass bases hbases hnormalizer.2.2.1
let physical := narrowPhysicalSiteMap (G := G) (J := PrincipalTupleIndex B (layerSamplerDegree I n))
_hW _hτ _hξ1 N hN hmargin root hrootSum
let Ctail := 4 * ∏ j, earlyConstantDensityCap (Fintype.card (I j)) (n j) (R j) (V j)
∀ {Tests : (bases × rectangularWeightIndices 0 widths 1) → Type*}
[∀ z, Nonempty (Tests z)]
(slices : ∀ z, Tests z → Finset Sites) (tests : ∀ z, Tests z → Sites → ℂ)
(w : X → ℕ) (degree : ℕ) {u pModel budget K : ℝ}
(_hu : 0 ≤ u) (_hpModel : 0 ≤ pModel) (_hbudget : 0 ≤ budget)
(_hKmodel : 0 ≤ K) (_hKp : K ≤ Real.exp pModel) (_hCtail : Ctail ≤ Real.exp pModel)
(_hsizeModel : ∀ z j, (Fintype.card Sites : ℝ) / (slices z j).card ≤ K)
(_htests : ∀ z j t, ‖tests z j t‖ ≤ 1)
{periodCap coverCap : ℝ} {lip : ℝ≥0},
u + 2 * pModel + budget + 30 ≤ E →
(∀ signal : (X → ℤ) → ℂ, (∀ t, ‖signal t‖ ≤ 1) →
(∀ t, t ∉ integerBox N → signal t = 0) →
allocatedModelUnitThreshold u pModel K Ctail ≤ sampledSliceSeminorm pathLaw
(fun z t => jointIntegerPhysicalSite (root t) (z.1.val, z.2.val)) slices tests signal →
∃ (twist : NormalizedPolynomialTwist X (Σ j, J j) periodCap coverCap lip)
(F : integerBox N → ℂ),
Nonempty (NativeSampleModel w degree budget (fun t : integerBox N => t.val) F) ∧
Real.exp (-budget) ≤ ‖(FiniteProbabilityWeights.uniformFinset (integerBox N) hbox).correlation
(fun t => signal t.val) (fun t => star (twist.eval N p t.val) * F t)‖) →
∀ (input : integerBox N → ℂ), (∀ t, ‖input t‖ ≤ Real.exp pModel) →
∃ (nterms : ℕ) (_ : 0 < nterms)
(Q : Fin nterms → (integerBox N → ℂ))
(coeff : Fin nterms → ℝ) (err : integerBox N → ℂ),
(∀ i, Q i ∈ twistedNativeSampleFunctions w degree budget
(fun t : integerBox N => t.val)
(fun (twist : NormalizedPolynomialTwist X (Σ j, J j) periodCap coverCap lip)
(t : integerBox N) => twist.eval N p t.val)) ∧
input = (∑ i, coeff i • Q i) + err ∧
(∑ i, |coeff i|) ≤ Real.exp (budget + 2) ∧
sampledSliceSeminorm pathLaw physical slices tests err ≤ Real.exp (-u) ∧
(nterms : ℝ) ≤ Real.exp (2 * budget + 2 * u + 4 * pModel + 30) := by
obtain ⟨A, hA, hmarginal⟩ := exists_allocated_narrow_prescribed_marginal m
refine ⟨A, hA, ?_⟩
intro X G _ _ _ I _ n B _ J _ U basis R σ S hb o _ _ _ _ μ _ _ ν _ _
hR hσ hσ1 C V hC hV Cinv hCinv hchart hsmall P E hP hmSize hK hX hdim
hRP hσP hcount hI hn hJ hAP hLP hCP hVP p hp hm stride hs hsP W τ ξ
hW hWP hτ hτP hτhalf hτdim hξ hξ1 hξP N hsize rank hrank hRank T hT widths bases density Z
obtain ⟨hN, hbases, hbox, hmass, hnormalizer, hmargin, hsite⟩ :=
hmarginal B U basis S hb o μ ν hR hσ hσ1 C V hC hV Cinv hCinv hchart hsmall
hP hmSize hK hX hdim hRP hσP hcount hI hn hJ hAP hLP hCP hVP p hp hm stride hs hsP
hW hWP hτ hτP hτhalf hτdim hξ hξ1 hξP N hsize hrank hRank T hT
refine ⟨hN, hbases, hbox, hmass, hnormalizer, hmargin, ?_⟩
intro Sites _ _ root hroot hrootSum pathLaw physical Ctail Tests _ slices tests
w degree u pModel budget K hu hpModel hbudget hKmodel hKp hCtail hsizeModel htests
periodCap coverCap lip htail hdetect input hinput
let : ∀ i, NeZero (N i) := fun i => ⟨(hN i).ne'⟩
have hCtail0 : 0 ≤ Ctail := by
apply mul_nonneg (by norm_num : (0 : ℝ) ≤ 4)
exact Finset.prod_nonneg (fun j _ =>
earlyConstantDensityCap_nonneg _ _ (hR j) (V j).coe_nonneg)
exact exists_normalizedTwist_native_approximation_with_budget N p pathLaw physical
(fun z t => jointIntegerPhysicalSite (root t) (z.1.val, z.2.val)) (fun _ _ => rfl)
slices tests w degree hu hpModel hbudget hKmodel hCtail0 hKp hCtail hsizeModel htests
hdetect htail (hsite root hroot hrootSum) input hinput
end Erdos3.VectorPolynomial
end
section
namespace Erdos3.VectorPolynomial
open Module Submodule MeasureTheory BooleanCubeKernel
open scoped BigOperators Classical NNReal
def AllocatedCenteredNarrowPrescribedMarginalStatement (m A : ℕ) : Prop :=
∀ {X G : Type*} [Fintype X] [DecidableEq X] [Fintype G]
{I : Fin m → Type*} [∀ j, Fintype (I j)] {n : Fin m → ℕ}
(B : LayerSamplerAxis I n → Type*) [∀ a, Fintype (B a)]
{J : Fin m → Type*} [∀ j, Fintype (J j)] (U : ∀ j, Submodule ℝ (J j → ℝ))
(basis : ∀ j, Basis (Fin (n j)) ℝ (euclideanSubspace (U j))ᗮ)
{R σ : Fin m → ℝ} (S : LayerSamplerScale (G := G) B U basis R σ)
(hb : ∀ j, span ℤ (Set.range (basis j)) = projectedIntegerLattice (euclideanSubspace (U j)))
(o : ∀ j, OrthonormalBasis (I j) ℝ (euclideanSubspace (U j)))
[∀ j, IsZLattice ℝ (latticeSection (standardEuclideanLattice (J j)) (euclideanSubspace (U j)))]
[CompactSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
[MeasurableSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
[BorelSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
(μ : Measure (CoefficientTorus (K := LayerSamplerVariables G I n B) U))
[μ.IsAddLeftInvariant] [IsProbabilityMeasure μ]
(ν : ∀ j, Measure (euclideanSubspace (U j) ⧸
(latticeSection (standardEuclideanLattice (J j)) (euclideanSubspace (U j))).toAddSubgroup))
[∀ j, (ν j).IsAddLeftInvariant] [∀ j, IsProbabilityMeasure (ν j)]
(hR : ∀ j, 0 < R j) (hσ : ∀ j, 0 < σ j) (_hσ1 : ∀ j, σ j ≤ 1)
(C V : Fin m → ℝ≥0)
(_hC : ∀ j z, ‖normalizedOrthogonalChart (euclideanSubspace (U j)) (basis j) z‖ ≤ C j * ‖z‖)
(_hV : ∀ j, 0 ≤ mixedDensityCovolumeRatio (euclideanSubspace (U j)) (basis j) ∧
mixedDensityCovolumeRatio (euclideanSubspace (U j)) (basis j) ≤ V j)
(Cinv : Fin m → ℝ) (_hCinv : ∀ j, 0 ≤ Cinv j)
(_hchart : ∀ j z, ‖(normalizedOrthogonalChart (euclideanSubspace (U j)) (basis j)).symm z‖ ≤ Cinv j * ‖z‖)
(_hsmall : ∀ j, Cinv j * ((Fintype.card (I j) : ℝ) + 1) * R j ≤ 1 / 4)
{P E : ℝ} (_hP : 0 ≤ P) (_hmSize : (m : ℝ) ≤ P)
(_hK : (Fintype.card (LayerSamplerVariables G I n B) : ℝ) ≤ P)
(_hX : (Fintype.card X : ℝ) ≤ P)
(_hdim : (Fintype.card (Option (LayerSamplerVariables G I n B) × X) : ℝ) ≤ P)
(_hRP : ∀ j, (R j)⁻¹ ≤ Real.exp P) (_hσP : ∀ j, (σ j)⁻¹ ≤ Real.exp P)
(_hcount : ∀ j : Fin m,
(Fintype.card (BoundedCoefficientExponent (LayerSamplerVariables G I n B) (j.val + 1)) : ℝ) ≤ P)
(_hI : ∀ j, (Fintype.card (I j) : ℝ) ≤ P) (_hn : ∀ j, (n j : ℝ) ≤ P)
(_hJ : ∀ j, (Fintype.card (J j) : ℝ) ≤ P)
(_hAP : (probabilityProfileLipschitz : ℝ) ≤ Real.exp P) (_hLP : (S.value : ℝ) ≤ Real.exp P)
(_hCP : ∀ j, (C j : ℝ) ≤ Real.exp P) (_hVP : ∀ j, (V j : ℝ) ≤ Real.exp P)
(p : ∀ j, VectorPolynomial X ℝ (J j → ℝ))
(_hp : ∀ j, DegreeLE (1 : X → ℕ) (j.val + 1) (p j))
(hm : ∀ j d, coefficients (p j) d ∈ U j)
(stride : X → ℕ) (_hs : ∀ d, 0 < stride d) (_hsP : ∀ d, (stride d : ℝ) ≤ Real.exp P)
{W τ ξ : ℝ} (_hW : 0 ≤ W) (_hWP : W ≤ Real.exp P)
(_hτ : 0 < τ) (_hτP : τ⁻¹ ≤ Real.exp P)
(_hτhalf : τ ≤ 1 / 2) (_hτdim : (Fintype.card X : ℝ) * τ ≤ 1 / 2)
(_hξ : 0 < ξ) (_hξ1 : ξ ≤ 1) (_hξP : ξ⁻¹ ≤ Real.exp P)
(N : X → ℕ) (_hsize : ∀ d, Real.exp ((max P E + A) ^ A) ≤ (N d : ℝ))
{rank : ℝ} (_hrank : ∀ j, HasLayerSamplingRank (j.val + 1) (fun d => (N d : ℝ)) rank (U j) (p j))
(_hRank : Real.exp ((max P E + A) ^ A) ≤ rank)
(T : Finset (ColumnResiduePattern (Option (LayerSamplerVariables G I n B)) X stride)) (_hT : T.Nonempty),
let widths := narrowTrimmedSpatialWidths (G := G)
(J := PrincipalTupleIndex B (layerSamplerDegree I n)) W τ ξ N
let bases := trimmedIntegerBox N (spatialTrimMargin τ N)
let density := allocatedCenteredJointDensity B U basis hb o hR hσ S p hm
let Z := fun center => selectedJointDensityMass bases stride T widths (density center)
∃ (hN : ∀ x, 0 < N x) (hbases : bases.Nonempty) (hbox : (integerBox N).Nonempty)
(hmass : 0 < ∑' z, selectedResidueSmoothWeight stride T widths z)
(hmargin : ∀ x, 2 * spatialTrimMargin τ N x ≤ N x),
∃ hnormalizer : ∀ center, |Z center - 1| ≤ Real.exp (-E) ∧
Z center ∈ Set.Icc (1 / 2 : ℝ) (3 / 2) ∧ 0 < Z center ∧ (Z center)⁻¹ ≤ 2,
let law := fun center => selectedJointFiniteLaw bases hbases stride T widths
(narrowTrimmedSpatialWidths_pos _hW _hτ _hξ N hN) hmass (density center)
(allocatedCenteredJointDensity_nonneg B U basis hb o hR hσ S p hm center)
(hnormalizer center).2.2.1
∃ hweight : ∀ z, Measurable (fun center => (law center).weight z),
∀ {Sites : Type*} [Fintype Sites] [Nonempty Sites]
(root : Sites → LayerSamplerVariables G I n B → ℤ)
(_hroot : ∀ t k, |(root t k : ℝ)| ≤ Real.exp P)
(hrootSum : ∀ t, (∑ k, |(root t k : ℝ)|) ≤ W),
(FiniteProbabilityWeights.uniformFinset (integerBox N) hbox).excessMass
((centeredFiniteMarginal μ law hweight).siteLaw
(narrowPhysicalSiteMap (G := G) (J := PrincipalTupleIndex B (layerSamplerDegree I n))
_hW _hτ _hξ1 N hN hmargin root hrootSum))
(4 * ∏ j, earlyConstantDensityCap (Fintype.card (I j)) (n j) (R j) (V j)) ≤
6 * positiveProjectionAccuracy E
def AllocatedCenteredNarrowPrescribedMarginalPointwiseStatement (m A : ℕ) : Prop :=
∀ {X G : Type*} [Fintype X] [DecidableEq X] [Fintype G]
{I : Fin m → Type*} [∀ j, Fintype (I j)] {n : Fin m → ℕ}
(B : LayerSamplerAxis I n → Type*) [∀ a, Fintype (B a)]
{J : Fin m → Type*} [∀ j, Fintype (J j)] (U : ∀ j, Submodule ℝ (J j → ℝ))
(basis : ∀ j, Basis (Fin (n j)) ℝ (euclideanSubspace (U j))ᗮ)
{R σ : Fin m → ℝ} (S : LayerSamplerScale (G := G) B U basis R σ)
(hb : ∀ j, span ℤ (Set.range (basis j)) = projectedIntegerLattice (euclideanSubspace (U j)))
(o : ∀ j, OrthonormalBasis (I j) ℝ (euclideanSubspace (U j)))
[∀ j, IsZLattice ℝ (latticeSection (standardEuclideanLattice (J j)) (euclideanSubspace (U j)))]
[CompactSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
[MeasurableSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
[BorelSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
(μ : Measure (CoefficientTorus (K := LayerSamplerVariables G I n B) U))
[μ.IsAddLeftInvariant] [IsProbabilityMeasure μ]
(ν : ∀ j, Measure (euclideanSubspace (U j) ⧸
(latticeSection (standardEuclideanLattice (J j)) (euclideanSubspace (U j))).toAddSubgroup))
[∀ j, (ν j).IsAddLeftInvariant] [∀ j, IsProbabilityMeasure (ν j)]
(hR : ∀ j, 0 < R j) (hσ : ∀ j, 0 < σ j) (_hσ1 : ∀ j, σ j ≤ 1)
(C V : Fin m → ℝ≥0)
(_hC : ∀ j z, ‖normalizedOrthogonalChart (euclideanSubspace (U j)) (basis j) z‖ ≤ C j * ‖z‖)
(_hV : ∀ j, 0 ≤ mixedDensityCovolumeRatio (euclideanSubspace (U j)) (basis j) ∧
mixedDensityCovolumeRatio (euclideanSubspace (U j)) (basis j) ≤ V j)
(Cinv : Fin m → ℝ) (_hCinv : ∀ j, 0 ≤ Cinv j)
(_hchart : ∀ j z, ‖(normalizedOrthogonalChart (euclideanSubspace (U j)) (basis j)).symm z‖ ≤ Cinv j * ‖z‖)
(_hsmall : ∀ j, Cinv j * ((Fintype.card (I j) : ℝ) + 1) * R j ≤ 1 / 4)
{P E : ℝ} (_hP : 0 ≤ P) (_hmSize : (m : ℝ) ≤ P)
(_hK : (Fintype.card (LayerSamplerVariables G I n B) : ℝ) ≤ P)
(_hX : (Fintype.card X : ℝ) ≤ P)
(_hdim : (Fintype.card (Option (LayerSamplerVariables G I n B) × X) : ℝ) ≤ P)
(_hRP : ∀ j, (R j)⁻¹ ≤ Real.exp P) (_hσP : ∀ j, (σ j)⁻¹ ≤ Real.exp P)
(_hcount : ∀ j : Fin m,
(Fintype.card (BoundedCoefficientExponent (LayerSamplerVariables G I n B) (j.val + 1)) : ℝ) ≤ P)
(_hI : ∀ j, (Fintype.card (I j) : ℝ) ≤ P) (_hn : ∀ j, (n j : ℝ) ≤ P)
(_hJ : ∀ j, (Fintype.card (J j) : ℝ) ≤ P)
(_hAP : (probabilityProfileLipschitz : ℝ) ≤ Real.exp P) (_hLP : (S.value : ℝ) ≤ Real.exp P)
(_hCP : ∀ j, (C j : ℝ) ≤ Real.exp P) (_hVP : ∀ j, (V j : ℝ) ≤ Real.exp P)
(p : ∀ j, VectorPolynomial X ℝ (J j → ℝ))
(_hp : ∀ j, DegreeLE (1 : X → ℕ) (j.val + 1) (p j))
(hm : ∀ j d, coefficients (p j) d ∈ U j)
(stride : X → ℕ) (_hs : ∀ d, 0 < stride d) (_hsP : ∀ d, (stride d : ℝ) ≤ Real.exp P)
{W τ ξ : ℝ} (_hW : 0 ≤ W) (_hWP : W ≤ Real.exp P)
(_hτ : 0 < τ) (_hτP : τ⁻¹ ≤ Real.exp P)
(_hτhalf : τ ≤ 1 / 2) (_hτdim : (Fintype.card X : ℝ) * τ ≤ 1 / 2)
(_hξ : 0 < ξ) (_hξ1 : ξ ≤ 1) (_hξP : ξ⁻¹ ≤ Real.exp P)
(N : X → ℕ) (_hsize : ∀ d, Real.exp ((max P E + A) ^ A) ≤ (N d : ℝ))
{rank : ℝ} (_hrank : ∀ j, HasLayerSamplingRank (j.val + 1) (fun d => (N d : ℝ)) rank (U j) (p j))
(_hRank : Real.exp ((max P E + A) ^ A) ≤ rank)
(T : Finset (ColumnResiduePattern (Option (LayerSamplerVariables G I n B)) X stride)) (_hT : T.Nonempty),
let widths := narrowTrimmedSpatialWidths (G := G)
(J := PrincipalTupleIndex B (layerSamplerDegree I n)) W τ ξ N
let bases := trimmedIntegerBox N (spatialTrimMargin τ N)
let density := allocatedCenteredJointDensity B U basis hb o hR hσ S p hm
let Z := fun center => selectedJointDensityMass bases stride T widths (density center)
∃ (hN : ∀ x, 0 < N x) (hbases : bases.Nonempty) (hbox : (integerBox N).Nonempty)
(hmass : 0 < ∑' z, selectedResidueSmoothWeight stride T widths z)
(hmargin : ∀ x, 2 * spatialTrimMargin τ N x ≤ N x),
∃ hnormalizer : ∀ center, |Z center - 1| ≤ Real.exp (-E) ∧
Z center ∈ Set.Icc (1 / 2 : ℝ) (3 / 2) ∧ 0 < Z center ∧ (Z center)⁻¹ ≤ 2,
let law := fun center => selectedJointFiniteLaw bases hbases stride T widths
(narrowTrimmedSpatialWidths_pos _hW _hτ _hξ N hN) hmass (density center)
(allocatedCenteredJointDensity_nonneg B U basis hb o hR hσ S p hm center)
(hnormalizer center).2.2.1
∀ {Sites : Type*} [Fintype Sites] [Nonempty Sites]
(root : Sites → LayerSamplerVariables G I n B → ℤ)
(_hroot : ∀ t k, |(root t k : ℝ)| ≤ Real.exp P)
(hrootSum : ∀ t, (∑ k, |(root t k : ℝ)|) ≤ W),
∀ center,
(FiniteProbabilityWeights.uniformFinset (integerBox N) hbox).excessMass
((law center).siteLaw
(narrowPhysicalSiteMap (G := G) (J := PrincipalTupleIndex B (layerSamplerDegree I n))
_hW _hτ _hξ1 N hN hmargin root hrootSum))
(4 * ∏ j, earlyConstantDensityCap (Fintype.card (I j)) (n j) (R j) (V j)) ≤
6 * positiveProjectionAccuracy E
def AllocatedCenteredNarrowPrescribedMarginalOneCenterStatement (m A : ℕ) : Prop :=
∀ {X G : Type*} [Fintype X] [DecidableEq X] [Fintype G]
{I : Fin m → Type*} [∀ j, Fintype (I j)] {n : Fin m → ℕ}
(B : LayerSamplerAxis I n → Type*) [∀ a, Fintype (B a)]
{J : Fin m → Type*} [∀ j, Fintype (J j)] (U : ∀ j, Submodule ℝ (J j → ℝ))
(basis : ∀ j, Basis (Fin (n j)) ℝ (euclideanSubspace (U j))ᗮ)
{R σ : Fin m → ℝ} (S : LayerSamplerScale (G := G) B U basis R σ)
(hb : ∀ j, span ℤ (Set.range (basis j)) = projectedIntegerLattice (euclideanSubspace (U j)))
(o : ∀ j, OrthonormalBasis (I j) ℝ (euclideanSubspace (U j)))
[∀ j, IsZLattice ℝ (latticeSection (standardEuclideanLattice (J j)) (euclideanSubspace (U j)))]
[CompactSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
[MeasurableSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
[BorelSpace (CoefficientTorus (K := LayerSamplerVariables G I n B) U)]
(μ : Measure (CoefficientTorus (K := LayerSamplerVariables G I n B) U))
[μ.IsAddLeftInvariant] [IsProbabilityMeasure μ]
(ν : ∀ j, Measure (euclideanSubspace (U j) ⧸
(latticeSection (standardEuclideanLattice (J j)) (euclideanSubspace (U j))).toAddSubgroup))
[∀ j, (ν j).IsAddLeftInvariant] [∀ j, IsProbabilityMeasure (ν j)]
(hR : ∀ j, 0 < R j) (hσ : ∀ j, 0 < σ j) (_hσ1 : ∀ j, σ j ≤ 1)
(C V : Fin m → ℝ≥0)
(_hC : ∀ j z, ‖normalizedOrthogonalChart (euclideanSubspace (U j)) (basis j) z‖ ≤ C j * ‖z‖)
(_hV : ∀ j, 0 ≤ mixedDensityCovolumeRatio (euclideanSubspace (U j)) (basis j) ∧
mixedDensityCovolumeRatio (euclideanSubspace (U j)) (basis j) ≤ V j)
(Cinv : Fin m → ℝ) (_hCinv : ∀ j, 0 ≤ Cinv j)
(_hchart : ∀ j z, ‖(normalizedOrthogonalChart (euclideanSubspace (U j)) (basis j)).symm z‖ ≤ Cinv j * ‖z‖)
(_hsmall : ∀ j, Cinv j * ((Fintype.card (I j) : ℝ) + 1) * R j ≤ 1 / 4)
{P E : ℝ} (_hP : 0 ≤ P) (_hmSize : (m : ℝ) ≤ P)
(_hK : (Fintype.card (LayerSamplerVariables G I n B) : ℝ) ≤ P)
(_hX : (Fintype.card X : ℝ) ≤ P)
(_hdim : (Fintype.card (Option (LayerSamplerVariables G I n B) × X) : ℝ) ≤ P)
(_hRP : ∀ j, (R j)⁻¹ ≤ Real.exp P) (_hσP : ∀ j, (σ j)⁻¹ ≤ Real.exp P)
(_hcount : ∀ j : Fin m,
(Fintype.card (BoundedCoefficientExponent (LayerSamplerVariables G I n B) (j.val + 1)) : ℝ) ≤ P)
(_hI : ∀ j, (Fintype.card (I j) : ℝ) ≤ P) (_hn : ∀ j, (n j : ℝ) ≤ P)
(_hJ : ∀ j, (Fintype.card (J j) : ℝ) ≤ P)
(_hAP : (probabilityProfileLipschitz : ℝ) ≤ Real.exp P) (_hLP : (S.value : ℝ) ≤ Real.exp P)
(_hCP : ∀ j, (C j : ℝ) ≤ Real.exp P) (_hVP : ∀ j, (V j : ℝ) ≤ Real.exp P)
(p : ∀ j, VectorPolynomial X ℝ (J j → ℝ))
(_hp : ∀ j, DegreeLE (1 : X → ℕ) (j.val + 1) (p j))
(hm : ∀ j d, coefficients (p j) d ∈ U j)
(stride : X → ℕ) (_hs : ∀ d, 0 < stride d) (_hsP : ∀ d, (stride d : ℝ) ≤ Real.exp P)
{W τ ξ : ℝ} (_hW : 0 ≤ W) (_hWP : W ≤ Real.exp P)
(_hτ : 0 < τ) (_hτP : τ⁻¹ ≤ Real.exp P)
(_hτhalf : τ ≤ 1 / 2) (_hτdim : (Fintype.card X : ℝ) * τ ≤ 1 / 2)
(_hξ : 0 < ξ) (_hξ1 : ξ ≤ 1) (_hξP : ξ⁻¹ ≤ Real.exp P)
(N : X → ℕ) (_hsize : ∀ d, Real.exp ((max P E + A) ^ A) ≤ (N d : ℝ))
{rank : ℝ} (_hrank : ∀ j, HasLayerSamplingRank (j.val + 1) (fun d => (N d : ℝ)) rank (U j) (p j))
(_hRank : Real.exp ((max P E + A) ^ A) ≤ rank)
(T : Finset (ColumnResiduePattern (Option (LayerSamplerVariables G I n B)) X stride)) (_hT : T.Nonempty)
(center : CoefficientTorus (K := LayerSamplerVariables G I n B) U),
let widths := narrowTrimmedSpatialWidths (G := G)
(J := PrincipalTupleIndex B (layerSamplerDegree I n)) W τ ξ N
let bases := trimmedIntegerBox N (spatialTrimMargin τ N)
let density := allocatedCenteredJointDensity B U basis hb o hR hσ S p hm center
let Z := selectedJointDensityMass bases stride T widths density
∃ (hN : ∀ x, 0 < N x) (hbases : bases.Nonempty) (hbox : (integerBox N).Nonempty)
(hmass : 0 < ∑' z, selectedResidueSmoothWeight stride T widths z)
(hmargin : ∀ x, 2 * spatialTrimMargin τ N x ≤ N x),
∃ hnormalizer : |Z - 1| ≤ Real.exp (-E) ∧
Z ∈ Set.Icc (1 / 2 : ℝ) (3 / 2) ∧ 0 < Z ∧ (Z)⁻¹ ≤ 2,
let law := selectedJointFiniteLaw bases hbases stride T widths
(narrowTrimmedSpatialWidths_pos _hW _hτ _hξ N hN) hmass density
(allocatedCenteredJointDensity_nonneg B U basis hb o hR hσ S p hm center)
hnormalizer.2.2.1
∀ {Sites : Type*} [Fintype Sites] [Nonempty Sites]
(root : Sites → LayerSamplerVariables G I n B → ℤ)
(_hroot : ∀ t k, |(root t k : ℝ)| ≤ Real.exp P)
(hrootSum : ∀ t, (∑ k, |(root t k : ℝ)|) ≤ W),
(FiniteProbabilityWeights.uniformFinset (integerBox N) hbox).excessMass
(law.siteLaw
(narrowPhysicalSiteMap (G := G) (J := PrincipalTupleIndex B (layerSamplerDegree I n))
_hW _hτ _hξ1 N hN hmargin root hrootSum))
(4 * ∏ j, earlyConstantDensityCap (Fintype.card (I j)) (n j) (R j) (V j)) ≤
6 * positiveProjectionAccuracy E
theorem exists_allocated_centered_narrow_prescribed_marginal_oneCenter (m : ℕ) :
∃ A : ℕ, 2 ≤ A ∧ AllocatedCenteredNarrowPrescribedMarginalOneCenterStatement m A := by
obtain ⟨A, hA, hmarginal⟩ := exists_allocated_narrow_prescribed_marginal m
refine ⟨A, hA, ?_⟩
intro X G _ _ _ I _ n B _ J _ U basis R σ S hb o _ _ _ _ μ _ _ ν _ _
hR hσ hσ1 C V hC hV Cinv hCinv hchart hsmall P E hP hmSize hK hX hdim
hRP hσP hcount hI hn hJ hAP hLP hCP hVP p hp hm stride hs hsP W τ ξ
hW hWP hτ hτP hτhalf hτdim hξ hξ1 hξP N hsize rank hrank hRank T hT
center widths bases density Z
obtain ⟨c, hc⟩ := exists_subtractive_constant_center U center
obtain ⟨hN, hbases, hbox, hmass, hnorm, hmargin, hsite⟩ :=
hmarginal B U basis S hb o μ ν hR hσ hσ1 C V hC hV
Cinv hCinv hchart hsmall hP hmSize hK hX hdim hRP hσP hcount hI hn hJ
hAP hLP hCP hVP (fun j => subtractConstant (c j).val (p j))
(fun j => (hp j).subtractConstant (c j).val)
(fun j => coefficients_subtractConstant_mem (U j) (c j) (p j) (hm j))
stride hs hsP hW hWP hτ hτP hτhalf hτdim hξ hξ1 hξP N hsize
(fun j => (hasLayerSamplingRank_subtractConstant_iff (Nat.succ_pos j.val)
(fun d => (N d : ℝ)) rank (U j) (c j).val (p j)).mpr (hrank j)) hRank T hT
have heq := allocatedJointBaseDensity_subtractConstant_centered B U basis hb o hR hσ
S p hm center c hc
have hnormalizer : |Z - 1| ≤ Real.exp (-E) ∧
Z ∈ Set.Icc (1 / 2 : ℝ) (3 / 2) ∧ 0 < Z ∧ Z⁻¹ ≤ 2 := by
simpa only [heq] using hnorm
refine ⟨hN, hbases, hbox, hmass, hmargin, hnormalizer, ?_⟩
intro law Sites _ _ root hroot hrootSum
have h := hsite root hroot hrootSum
have hlaw := allocatedOriginalPathLaw_subtractConstant_eq_centered B U basis hb o hR hσ S
p hm N hN hW hτ hξ stride T hmass bases hbases center c hc hnorm.2.2.1
hnormalizer.2.2.1
rw [hlaw] at h
exact h
theorem exists_allocated_centered_narrow_prescribed_marginal_pointwise (m : ℕ) :
∃ A : ℕ, 2 ≤ A ∧ AllocatedCenteredNarrowPrescribedMarginalPointwiseStatement m A := by
obtain ⟨A, hA, hmarginal⟩ := exists_allocated_centered_narrow_prescribed_marginal_oneCenter m
refine ⟨A, hA, ?_⟩
intro X G _ _ _ I _ n B _ J _ U basis R σ S hb o _ _ _ _ μ _ _ ν _ _
hR hσ hσ1 C V hC hV Cinv hCinv hchart hsmall P E hP hmSize hK hX hdim
hRP hσP hcount hI hn hJ hAP hLP hCP hVP p hp hm stride hs hsP W τ ξ
hW hWP hτ hτP hτhalf hτdim hξ hξ1 hξP N hsize rank hrank hRank T hT widths bases density Z
have hcenter := hmarginal B U basis S hb o μ ν hR hσ hσ1 C V hC hV
Cinv hCinv hchart hsmall hP hmSize hK hX hdim hRP hσP hcount hI hn hJ
hAP hLP hCP hVP p hp hm stride hs hsP hW hWP hτ hτP hτhalf hτdim hξ hξ1 hξP
N hsize hrank hRank T hT
obtain ⟨hN, hbases, hbox, hmass, hmargin, _, _⟩ := hcenter 0
have hnormalizer (center) : |Z center - 1| ≤ Real.exp (-E) ∧
Z center ∈ Set.Icc (1 / 2 : ℝ) (3 / 2) ∧ 0 < Z center ∧ (Z center)⁻¹ ≤ 2 := by
obtain ⟨_, _, _, _, _, hn, _⟩ := hcenter center
exact hn
refine ⟨hN, hbases, hbox, hmass, hmargin, hnormalizer, ?_⟩
intro law Sites _ _ root hroot hrootSum center
obtain ⟨_, _, _, _, _, _, hsite⟩ := hcenter center
exact hsite root hroot hrootSum
theorem exists_allocated_centered_narrow_prescribed_marginal (m : ℕ) :
∃ A : ℕ, 2 ≤ A ∧ AllocatedCenteredNarrowPrescribedMarginalStatement m A := by
obtain ⟨A, hA, hmarginal⟩ := exists_allocated_centered_narrow_prescribed_marginal_pointwise m
refine ⟨A, hA, ?_⟩
intro X G _ _ _ I _ n B _ J _ U basis R σ S hb o _ _ _ _ μ _ _ ν _ _
hR hσ hσ1 C V hC hV Cinv hCinv hchart hsmall P E hP hmSize hK hX hdim
hRP hσP hcount hI hn hJ hAP hLP hCP hVP p hp hm stride hs hsP W τ ξ
hW hWP hτ hτP hτhalf hτdim hξ hξ1 hξP N hsize rank hrank hRank T hT widths bases density Z
obtain ⟨hN, hbases, hbox, hmass, hmargin, hnormalizer, hsite⟩ :=
hmarginal B U basis S hb o μ ν hR hσ hσ1 C V hC hV
Cinv hCinv hchart hsmall hP hmSize hK hX hdim hRP hσP hcount hI hn hJ
hAP hLP hCP hVP p hp hm stride hs hsP hW hWP hτ hτP hτhalf hτdim hξ hξ1 hξP
N hsize hrank hRank T hT
refine ⟨hN, hbases, hbox, hmass, hmargin, hnormalizer, ?_⟩
intro law
have hweight : ∀ z, Measurable (fun center => (law center).weight z) :=
allocatedCenteredJointFiniteLaw_weight_measurable B U basis hb o hR hσ S p hm
bases hbases stride T widths (narrowTrimmedSpatialWidths_pos hW hτ hξ N hN)
hmass (fun center => (hnormalizer center).2.2.1)
refine ⟨hweight, ?_⟩
intro Sites _ _ root hroot hrootSum
exact centeredFiniteMarginal_siteLaw_excessMass_le_of_uniform μ law hweight _ _ _ _
(hsite root hroot hrootSum)
end Erdos3.VectorPolynomial
end
end OAI

Xet Storage Details

Size:
40.8 kB
·
Xet hash:
60eb4358b28f3e677cf633aeda67722820675b59390a68ea32b9b60286660fdc

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