cfahlgren1/math / lean /OAI /Combinatorics /Progressions /Estimates /AllocatedExternalCandidateGeneratedCoveredFamilySuccessor.lean
cfahlgren1's picture
download
raw
14.9 kB
import OAI.Combinatorics.Progressions.Estimates.AllocatedExternalCandidateGeneratedFreezingSuccessor
namespace OAI
section
namespace Erdos3.VectorPolynomial
open Module Submodule BooleanCubeKernel NilpotentLieFiltration NilpotentLieBCHGroup
open scoped BigOperators Classical TensorProduct NNReal
attribute [local irreducible] weightedAdaptedRealChartHom realPolynomialSymbolHom
realChartSubstitute realPolynomialGroupMap associatedGradedMap gradedRefiltrationMap
PolynomialRationalGrid PolynomialSlowBound
variable {m : ℕ} {G X : Type} [Fintype G] [Fintype X]
{I E J : Fin m → Type} [∀ j, Fintype (I j)] [∀ j, Fintype (J j)]
{n : Fin m → ℕ} {B : LayerSamplerAxis I n → Type} [∀ a, Fintype (B a)]
{U : ∀ j, Submodule ℝ (J j → ℝ)}
{b : ∀ j, Basis (Fin (n j)) ℝ (euclideanSubspace (U j))ᗮ}
{R σ : Fin m → ℝ} {S : LayerSamplerScale (G := G) B U b R σ}
{hb : ∀ j, span ℤ (Set.range (b j)) = projectedIntegerLattice (euclideanSubspace (U j))}
{o : ∀ j, OrthonormalBasis (I j) ℝ (euclideanSubspace (U j))}
{hR : ∀ j, 0 < R j} {hσ : ∀ j, 0 < σ j}
{N : X → ℕ} {poly : ∀ j, VectorPolynomial X ℝ (J j → ℝ)}
{hm : ∀ j e, coefficients (poly j) e ∈ U j}
{τ ξ : ℝ} {stride : X → ℕ}
{cells : Finset (ColumnResiduePattern (Option (LayerSamplerVariables G I n B)) X stride)}
{center : CoefficientTorus (K := LayerSamplerVariables G I n B) U}
[∀ j, IsZLattice ℝ (latticeSection (standardEuclideanLattice (J j)) (euclideanSubspace (U j)))]
{A : AllocatedExternalCandidateSampler B U b S hb o hR hσ N poly hm τ ξ stride cells center}
namespace AllocatedExternalCandidateProblem
variable {L M : Type} {nMarkedBasis : ℕ} [LieRing L] [LieAlgebra ℚ L]
[LieRing M] [LieAlgebra ℚ M] {s d f nD nF : ℕ}
[TopologicalSpace (ℝ ⊗[ℚ] L)] [IsTopologicalAddGroup (ℝ ⊗[ℚ] L)]
[ContinuousSMul ℝ (ℝ ⊗[ℚ] L)] [T2Space (ℝ ⊗[ℚ] L)]
{D : RationalFilteredNilmanifold L (s + 1) d}
(Fmark : RationalFilteredNilmanifold M (s + 1) f)
(φ : L →ₗ⁅ℚ⁆ M)
(hφ : ∀ j, ∀ x ∈ D.filtration.layer j, φ x ∈ Fmark.filtration.layer j)
{marked : Fmark.filtration.realification.PolynomialOrbit (fullTaggedVariableWeight (X := X) J)}
{observable : (X → ℤ) → D.Space → ℂ} {weight : (X → ℤ) → ℂ}
{cost massThreshold scoreThreshold : ℝ}
(P₀ : AllocatedExternalCandidateProblem (E := E) A D Fmark.filtration φ marked
observable weight cost massThreshold scoreThreshold)
(keep : LayerSamplerVariables G I n B → Prop)
(hkeep : ∀ z : P₀.productive, (P₀.chart z).keep = keep)
variable (W : LieSubalgebra ℚ D.filtration.AssociatedGraded)
{inputDenominator k e : ℕ} {pGeo : ℝ}
(sectionMap : M →ₗ[ℚ] L)
(hSectionFilt : ∀ j, ∀ y ∈ Fmark.filtration.layer j, sectionMap y ∈ D.filtration.layer j)
(c : Basis (Fin nMarkedBasis) ℚ M)
(ν : Fin nMarkedBasis → ℕ)
(hF : ∀ j, Fmark.filtration.layer j = span ℚ (c '' {i | j ≤ ν i}))
{g : (Fmark.filtration.realification.adaptedPolynomialFiltration
(fullTaggedVariableWeight (X := X) J)).Group}
{EF RF : Fmark.filtration.RealPolynomialSymbolGroup (fullTaggedVariableWeight (X := X) J)}
(factors : GlobalMarkedNativeFactors Fmark.filtration c ν hF (fullTaggedVariableWeight J)
(W.map (D.filtration.associatedGradedMap Fmark.filtration φ hφ)) g EF RF)
{slow : ℝ} {denominator : ℕ}
(reset : AllocatedExternalGlobalNativeResetFamily
Fmark φ hφ P₀ keep hkeep W factors slow denominator)
(tests : (X → ℤ) → D.Niltest (fun _ : { i : LayerSamplerVariables G I n B // keep i } => 1))
(htests : ∀ x, (tests x).observable = observable x)
(hσ1 : ∀ j, σ j ≤ 1) (H : Fin m → ℝ) (hH : ∀ j, 0 ≤ H j)
(hchart : ∀ j v, ‖(normalizedOrthogonalChart (euclideanSubspace (U j)) (b j)).symm v‖ ≤ H j * ‖v‖)
(hsmall : ∀ j, H j * (((Fintype.card (I j) : ℝ) + 1) * R j) ≤ 1 / 8)
(hp : ∀ j, DegreeLE (1 : X → ℕ) (j.val + 1) (poly j))
include htests hσ1 H hH hchart hsmall hp
theorem conclusion_of_generatedCovered_nativeReset_familyRule
{Bweight Bobs Lip densityCost p budgetLog massLog : ℝ}
(C : ℕ) (hp0 : 0 ≤ p) (hC : 2 ≤ C)
(dictionary : RationalFilteredNilmanifold.ExternalMarkedAffineSliceFreezing.Dictionary
(X := X → ℤ) D Fmark.filtration c φ hφ
(fun _ : { i : LayerSamplerVariables G I n B // keep i } => 1) sectionMap hSectionFilt denominator
(fun i : { i : LayerSamplerVariables G I n B // keep i } => (A.sides i.val : ℝ)) slow (finiteFreezingInitialPrecision p) (Real.exp budgetLog))
(hslowMark : ∀ z, Fmark.filtration.PolynomialSlowBound c (fun _ : { i : LayerSamplerVariables G I n B // keep i } => 1)
(fun i : { i : LayerSamplerVariables G I n B // keep i } => (A.sides i.val : ℝ)) slow (Fmark.filtration.weightedAdaptedRealChartHom (fullTaggedVariableWeight J) (fun _ : {i : LayerSamplerVariables G I n B // keep i} => 1) (integerSampledRealChart ((P₀.withKeep keep hkeep).chart z).integerChart) ((P₀.withKeep keep hkeep).chart z).integerChart_support factors.left))
(hgrid : Fmark.filtration.PolynomialRationalGrid c
(fullTaggedVariableWeight (X := X) J) denominator factors.right)
(hdensity : ∀ z : (P₀.withKeep keep hkeep).productive,
IsDenseCommonStrideBox
(fun i : ((P₀.withKeep keep hkeep).chart z).Variables => A.sides i.val)
densityCost ((P₀.withKeep keep hkeep).chart z).slice.integerPoints)
(hfloor : ∀ i : { i : LayerSamplerVariables G I n B // keep i },
Real.exp densityCost * max 2 (2 * (Real.exp budgetLog) * max 1 (Real.exp budgetLog)) ≤ (A.sides i.val : ℝ))
(hBweight : 0 ≤ Bweight) (hBobs : 0 ≤ Bobs) (hLip : 0 ≤ Lip)
(hweight : ∀ x, ‖weight x‖ ≤ Bweight)
(hnorm : ∀ x, ((tests x).normBound : ℝ) ≤ Bobs)
(hlip : ∀ x, ((tests x).lipBound : ℝ) ≤ Lip)
(hweightCap : Bweight ≤ Real.exp p) (hobsCap : Bobs ≤ Real.exp p)
(hlipCap : Lip ≤ Real.exp p) (hscoreInput : Real.exp (-p) ≤ scoreThreshold)
(hcostInput : cost ≤ (p + C) ^ C) (hdensityInput : densityCost ≤ (p + C) ^ C)
(hbudgetLog0 : 0 ≤ budgetLog) (hbudgetLog : budgetLog ≤ (p + C) ^ C)
(hcount : (Fintype.card { i : LayerSamplerVariables G I n B // keep i } : ℝ) ≤ (p + C) ^ C)
(hmassLog : massLog ≤ (p + C) ^ C) (hmassInput : Real.exp (-massLog) ≤ massThreshold)
(hsection : Function.RightInverse sectionMap φ)
(dw : Fin d → ℕ)
(hdb : ∀ j, D.filtration.layer j = Submodule.span ℚ (D.basis '' {i | j ≤ dw i}))
(hW : BasisGradedSubmodule (D.filtration.associatedGradedBasis D.basis dw hdb) dw W.toSubmodule)
(hsurj : ∀ j, ∀ y ∈ Fmark.filtration.layer j, ∃ x ∈ D.filtration.layer j, φ x = y)
(hξ1 : ξ ≤ 1)
(ℓ : ℝ≥0) (hpGeo : 1 ≤ pGeo) (hDGeo : D.GeometryComplexityLE pGeo)
(hpGeoInput : p ≤ pGeo)
(hpGeoRec : pGeo ≤ finiteFreezingRecursiveParameter C p)
(hcoveredRec : ((pGeo + RationalFilteredNilmanifold.allocatedCoveredLowerExponent s k) ^ RationalFilteredNilmanifold.allocatedCoveredLowerExponent s k) ≤ finiteFreezingRecursiveParameter C p)
(hℓ : (ℓ : ℝ) ≤ Real.exp pGeo)
(pRight : ℝ) (hpRight : 0 ≤ pRight) (hDRight : D.GeometryComplexityLE pRight)
(hinputDenominator : 0 < inputDenominator)
(hinputDenominatorBound : (inputDenominator : ℝ) ≤ Real.exp pRight)
(hRightBudget : (pRight + RationalFilteredNilmanifold.allocatedRightDictionaryExponent (s + 1)) ^
RationalFilteredNilmanifold.allocatedRightDictionaryExponent (s + 1) ≤ pGeo)
(hOriginalLip : ∀ x, letI := D.metricSpace; LipschitzWith ℓ (observable x))
(hpositive : ∀ x y, (observable x y).im = 0 ∧
0 ≤ (observable x y).re ∧ (observable x y).re ≤ 1)
(hFGeo : Fmark.GeometryComplexityLE pGeo)
{Generator : Type} [Fintype Generator]
(generators : Generator → D.filtration.AssociatedGraded)
(hspan : span ℚ (Set.range generators) = W.toSubmodule)
(hgeneratorCount : (Fintype.card Generator : ℝ) ≤ pGeo)
(hmarkedBasis : ∀ i j, rationalLogHeight (Fmark.basis.repr (c i) j) ≤ pGeo)
(hmarkHeight : ∀ i j, rationalLogHeight (Fmark.basis.repr (φ (D.basis i)) j) ≤ pGeo)
(hgeneratorHeight : ∀ i j,
rationalLogHeight ((D.filtration.associatedGradedBasis D.basis dw hdb).repr (generators i) j) ≤ pGeo)
(htopKernel : ∀ x : L, x ∈ D.filtration.gradedRefiltrationLayer W (s + 1) → φ x = 0 → x = 0)
(hOriginalNet : ∀ η : ℝ, 0 < η → η ≤ 1 → ∃ n : ℕ,
(n : ℝ) ≤ Real.exp ((pGeo + Real.log (1 / η) + e) ^ e) ∧
∃ oc : Fin n → {x : X → ℤ // x ∈ integerBox N},
∀ x ∈ integerBox N, ∃ i, ∀ y, ‖observable x y - observable (oc i).val y‖ ≤ η)
(hfullLeft : ∀ ij : (Fin d → Fin (dictionary.grid + 1)) × Fin dictionary.rightCount,
∀ x ∈ integerBox N, ∀ i,
|(D.basis.baseChange ℝ).repr
(D.filtration.realification.polynomialOrbitEval (fullTaggedVariableWeight (X := X) J)
((P₀.withKeep keep hkeep).physicalIntegerPoint x)
(D.filtration.frozenMarkedLeftOrbit Fmark.filtration (fullTaggedVariableWeight J)
sectionMap hSectionFilt reset.leftMark (dictionary.left ij.1))).coord i| ≤
Real.exp ((pGeo + 2) ^ k))
(hfullRight : ∀ ij : (Fin d → Fin (dictionary.grid + 1)) × Fin dictionary.rightCount,
∀ x ∈ integerBox N,
(D.basis.baseChange ℝ).equivFun
(D.filtration.realification.polynomialOrbitEval (fullTaggedVariableWeight (X := X) J)
((P₀.withKeep keep hkeep).physicalIntegerPoint x)
(D.filtration.frozenMarkedRightOrbit Fmark.filtration (fullTaggedVariableWeight J)
sectionMap hSectionFilt reset.rightMark (dictionary.right ij.2))).coord ∈
realDenominatorGrid inputDenominator)
(outputCost : ℝ) :
let rightDictionary := RationalFilteredNilmanifold.allocatedGeneratedRightDictionary
D pRight hpRight hDRight inputDenominator hinputDenominator hinputDenominatorBound
let covered := RationalFilteredNilmanifold.allocatedGeneratedCoveredLowerDiagram
D Fmark φ hφ W k c ν hF dw hdb hW hsurj hpGeo hDGeo hFGeo
generators hspan hgeneratorCount hmarkedBasis hmarkHeight hgeneratorHeight htopKernel
rightDictionary.denominator rightDictionary.denominator_pos
(rightDictionary.denominator_bound.trans (Real.exp_le_exp.mpr hRightBudget))
letI := moduleTopology ℝ (ℝ ⊗[ℚ] (Fmark.filtration.gradedRefiltrationSubalgebra
(W.map (D.filtration.associatedGradedMap Fmark.filtration φ hφ))))
letI : IsTopologicalAddGroup (ℝ ⊗[ℚ] (Fmark.filtration.gradedRefiltrationSubalgebra
(W.map (D.filtration.associatedGradedMap Fmark.filtration φ hφ)))) :=
IsModuleTopology.isTopologicalAddGroup ℝ _
letI := realification_moduleTopology_t2 covered.Fref.basis
letI := moduleTopology ℝ (ℝ ⊗[ℚ]
((D.filtration.gradedRefiltrationSubalgebra W) ⧸ covered.Dref.filtration.layerIdeal (s + 1)))
letI : IsTopologicalAddGroup (ℝ ⊗[ℚ]
((D.filtration.gradedRefiltrationSubalgebra W) ⧸ covered.Dref.filtration.layerIdeal (s + 1))) :=
IsModuleTopology.isTopologicalAddGroup ℝ _
letI := realification_moduleTopology_t2 covered.Q.basis
letI := covered.Q.metricSpace
letI := covered.Fref.metricSpace
let K : ℝ≥0 := ⟨Real.exp covered.pCover, (Real.exp_pos _).le⟩
(∀ ij : (Fin d → Fin (dictionary.grid + 1)) × Fin dictionary.rightCount,
A.FamilyGlobalizationAt (E := E) covered.Q covered.Fquot
(covered.Dref.topQuotientMarkedMap covered.Fref
(D.filtration.gradedRefiltrationMap Fmark.filtration φ hφ W)
(D.refilteredMarkedMap_mem_layer Fmark φ hφ W covered.Dref covered.Dref_filtration
covered.Fref covered.Fref_filtration))
(covered.Fref.topQuotientOrbit covered.Fquot covered.Fquot_filtration
(factors.markedMiddleOn covered.Fref covered.Fref_filtration))
((P₀.withKeep keep hkeep).refilteredQuotientObservable
A Fmark φ hφ W covered.Dref covered.Fref covered.Q
(D.filtration.frozenMarkedLeftOrbit Fmark.filtration (fullTaggedVariableWeight J)
sectionMap hSectionFilt reset.leftMark (dictionary.left ij.1))
(D.filtration.frozenMarkedRightOrbit Fmark.filtration (fullTaggedVariableWeight J)
sectionMap hSectionFilt reset.rightMark (dictionary.right ij.2))
(factors.markedMiddleOn covered.Fref covered.Fref_filtration) K)
weight K
(RationalFilteredNilmanifold.refilteredQuotientNetExponent.{0, 0, 0} s k e + 2)
(finiteFreezingRecursiveParameter C p) outputCost) →
Nonempty (P₀.Conclusion outputCost (Real.exp (-outputCost)) (Real.exp (-outputCost))) := by
intro rightDictionary covered
let := moduleTopology ℝ (ℝ ⊗[ℚ] (Fmark.filtration.gradedRefiltrationSubalgebra
(W.map (D.filtration.associatedGradedMap Fmark.filtration φ hφ))))
let : IsTopologicalAddGroup (ℝ ⊗[ℚ] (Fmark.filtration.gradedRefiltrationSubalgebra
(W.map (D.filtration.associatedGradedMap Fmark.filtration φ hφ)))) :=
IsModuleTopology.isTopologicalAddGroup ℝ _
let := realification_moduleTopology_t2 covered.Fref.basis
let := moduleTopology ℝ (ℝ ⊗[ℚ]
((D.filtration.gradedRefiltrationSubalgebra W) ⧸ covered.Dref.filtration.layerIdeal (s + 1)))
let : IsTopologicalAddGroup (ℝ ⊗[ℚ]
((D.filtration.gradedRefiltrationSubalgebra W) ⧸ covered.Dref.filtration.layerIdeal (s + 1))) :=
IsModuleTopology.isTopologicalAddGroup ℝ _
let := realification_moduleTopology_t2 covered.Q.basis
let := covered.Q.metricSpace
let := covered.Fref.metricSpace
dsimp only
intro lowerIH
have hRightCount : (rightDictionary.count : ℝ) ≤
Real.exp (finiteFreezingRecursiveParameter C p) :=
rightDictionary.count_bound.trans (Real.exp_le_exp.mpr (hRightBudget.trans hpGeoRec))
exact P₀.conclusion_of_covered_nativeReset_familyRule Fmark φ hφ keep hkeep W
rightDictionary covered sectionMap hSectionFilt c ν hF factors reset
tests htests hσ1 H hH hchart hsmall hp C hp0 hC dictionary hslowMark hgrid hdensity hfloor
hBweight hBobs hLip hweight hnorm hlip hweightCap hobsCap hlipCap hscoreInput
hcostInput hdensityInput hbudgetLog0 hbudgetLog hcount hmassLog hmassInput
hsection dw hdb hW hsurj hξ1 ℓ (zero_le_one.trans hpGeo) hDGeo
hpGeoInput hpGeoRec hcoveredRec hℓ hRightCount hOriginalLip hpositive hOriginalNet
hfullLeft hfullRight outputCost lowerIH
end AllocatedExternalCandidateProblem
end Erdos3.VectorPolynomial
end
end OAI

Xet Storage Details

Size:
14.9 kB
·
Xet hash:
17216ec1a0241d41fc577a5f78327d2469fe51f73c7b08cd24419a0d153da1fd

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