Buckets:
cfahlgren1/math / lean /OAI /Combinatorics /Progressions /Geometry /AllocatedExternalCandidateSpatialNativeAdaptedConclusion.lean
| import OAI.Combinatorics.Progressions.Geometry.AllocatedExternalCandidateSpatialNativeAutomaticLongGeometry | |
| namespace OAI | |
| section | |
| namespace Erdos3.VectorPolynomial | |
| open Module Submodule BooleanCubeKernel NilpotentLieFiltration NilpotentLieBCHGroup | |
| open RationalFilteredNilmanifold | |
| open scoped BigOperators Classical TensorProduct NNReal | |
| attribute [local instance] NativeSampleModel.lie NativeSampleModel.algebra | |
| NativeSampleModel.topology NativeSampleModel.topologicalAdd | |
| NativeSampleModel.continuousSMul NativeSampleModel.hausdorff | |
| attribute [local irreducible] polynomialOrbitRealChart piRealOrbit | |
| noncomputable section | |
| variable {m : ℕ} {G X : Type*} [Fintype G] [Fintype X] | |
| {I 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 AllocatedExternalCandidateSpatialNativeFamily | |
| variable {Deck : Fin m → Type*} {Pivot : Type*} [Fintype Pivot] | |
| {LG LM : Type} | |
| [LieRing LG] [LieAlgebra ℚ LG] [LieRing LM] [LieAlgebra ℚ LM] | |
| [TopologicalSpace (ℝ ⊗[ℚ] LG)] [IsTopologicalAddGroup (ℝ ⊗[ℚ] LG)] | |
| [ContinuousSMul ℝ (ℝ ⊗[ℚ] LG)] [T2Space (ℝ ⊗[ℚ] LG)] | |
| {s d₀ : ℕ} {D : RationalFilteredNilmanifold LG s d₀} | |
| {Fmark : NilpotentLieFiltration LM s} {φ : LG →ₗ⁅ℚ⁆ LM} | |
| {marked : Fmark.realification.PolynomialOrbit (fullTaggedVariableWeight (X := X) J)} | |
| {keep : LayerSamplerVariables G I n B → Prop} | |
| {cost p pLocal pNative r periodCap coverCap : ℝ} {Lip : ℝ≥0} | |
| (F : AllocatedExternalCandidateSpatialNativeFamily A Deck A.Path Pivot D Fmark φ marked | |
| keep cost p pLocal pNative r periodCap coverCap Lip) | |
| (H : Finset A.Path) | |
| (sourceCenter : ∀ j, U j) | |
| (hpath : ∀ a ∈ H, (F.sourceChart a).path = a) | |
| (hcenter : ∀ a ∈ H, (F.sourceChart a).centerLift = sourceCenter) | |
| (hfrozen : ∀ a ∈ H, ∀ i : {i // ¬keep i}, (A.sides i.val : ℝ) ≤ Real.exp cost) | |
| (observable : (X → ℤ) → D → ℂ) (weight : (X → ℤ) → ℂ) | |
| (scoreThreshold : ℝ) | |
| (hscore : ∀ a ∈ H, scoreThreshold ≤ (F.sourceCandidate a).score observable weight) | |
| variable {originalMass originalScore : ℝ} | |
| (P : AllocatedExternalCandidateProblem (E := Deck) A D Fmark φ marked observable weight | |
| cost originalMass originalScore) | |
| (hH : H ⊆ P.productive) | |
| (hsourceChart : ∀ a (ha : a ∈ H), F.sourceChart a = P.chart ⟨a, hH ha⟩) | |
| (retained : Finset A.Path) (hsub : retained ⊆ H) | |
| {massThreshold : ℝ} (hmass : massThreshold ≤ A.law.mass retained) | |
| def conclusion_of_actualSourceProblemOn {outputCost outputMass outputScore : ℝ} | |
| (result : (F.actualSourceProblemOn H sourceCenter hpath hcenter hfrozen observable weight | |
| scoreThreshold hscore retained hsub hmass).Conclusion outputCost outputMass outputScore) : | |
| P.Conclusion outputCost outputMass outputScore := by | |
| let source := F.actualSourceProblemOn H sourceCenter hpath hcenter hfrozen observable weight | |
| scoreThreshold hscore retained hsub hmass | |
| have hsourceSub : source.productive ⊆ P.productive := fun _ ha => hH (hsub ha) | |
| have hsourceKeep (z : source.productive) : | |
| (P.chart ⟨z.val, hsourceSub z.property⟩).keep = keep := by | |
| rw [← hsourceChart z.val (hsub z.property)] | |
| exact F.keep_eq z.val | |
| have hchart (z : source.productive) : | |
| source.chart z = | |
| (P.chart ⟨z.val, hsourceSub z.property⟩).withKeep keep (hsourceKeep z) := by | |
| change (F.sourceChart z.val).withKeep keep (F.keep_eq z.val) = _ | |
| congr 1 | |
| exact hsourceChart z.val (hsub z.property) | |
| exact P.conclusion_of_chartwise_withKeep source hsourceSub keep hsourceKeep hchart result | |
| include hH hsourceChart in | |
| theorem conclusion_of_actualSourceOptionQuotient | |
| (ideal : LieIdeal ℚ LG) | |
| (hI : D.filtration.layer (s + 1) ≤ ideal.toSubmodule) | |
| {dQ : ℕ} (Q : RationalFilteredNilmanifold (LG ⧸ ideal) s dQ) | |
| (hQ : Q.filtration = D.filtration.quotientLie ideal hI) | |
| (hker : ∀ x ∈ ideal, φ x = 0) | |
| (descended : (X → ℤ) → Q → ℂ) | |
| (hrecovery : ∀ x (g : D.RealGroup), | |
| descended x (QuotientGroup.mk | |
| (realificationMap (hnil := D.filtration.lowerCentralSeries_eq_bot) | |
| (hM := Q.filtration.lowerCentralSeries_eq_bot) (lieQuotientMap ideal) g)) = | |
| observable x (QuotientGroup.mk g)) | |
| {outputCost outputMass outputScore : ℝ} | |
| (result : ((F.actualSourceProblemOn H sourceCenter hpath hcenter hfrozen observable weight | |
| scoreThreshold hscore retained hsub hmass).optionQuotient | |
| (fun j => (F.native j).model) (fun j => ((F.native j).test.fullTaggedSpatial J).orbit) | |
| ideal hI Q hQ hker descended hrecovery).Conclusion outputCost outputMass outputScore) : | |
| Nonempty (P.Conclusion outputCost outputMass outputScore) := by | |
| obtain ⟨original⟩ := | |
| (F.actualSourceProblemOn H sourceCenter hpath hcenter hfrozen observable weight | |
| scoreThreshold hscore retained hsub hmass).conclusion_of_optionQuotient | |
| (fun j => (F.native j).model) (fun j => ((F.native j).test.fullTaggedSpatial J).orbit) | |
| ideal hI Q hQ hker descended hrecovery result | |
| exact ⟨F.conclusion_of_actualSourceProblemOn H sourceCenter hpath hcenter hfrozen | |
| observable weight scoreThreshold hscore P hH hsourceChart retained hsub hmass original⟩ | |
| end AllocatedExternalCandidateSpatialNativeFamily | |
| end | |
| end Erdos3.VectorPolynomial | |
| end | |
| section | |
| namespace Erdos3.VectorPolynomial | |
| open Module Submodule BooleanCubeKernel NilpotentLieFiltration NilpotentLieBCHGroup | |
| open RationalFilteredNilmanifold | |
| open scoped BigOperators Classical TensorProduct NNReal | |
| attribute [local instance] NativeSampleModel.lie NativeSampleModel.algebra | |
| NativeSampleModel.topology NativeSampleModel.topologicalAdd | |
| NativeSampleModel.continuousSMul NativeSampleModel.hausdorff | |
| attribute [local irreducible] polynomialOrbitRealChart piRealOrbit | |
| noncomputable section | |
| variable {m : ℕ} {G X : Type*} [Fintype G] [Fintype X] | |
| {I 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 AllocatedExternalCandidateSpatialNativeFamily | |
| variable {Deck : Fin m → Type*} {Pivot : Type*} [Fintype Pivot] | |
| {LG LM : Type} | |
| [LieRing LG] [LieAlgebra ℚ LG] [LieRing LM] [LieAlgebra ℚ LM] | |
| [TopologicalSpace (ℝ ⊗[ℚ] LG)] [IsTopologicalAddGroup (ℝ ⊗[ℚ] LG)] | |
| [ContinuousSMul ℝ (ℝ ⊗[ℚ] LG)] [T2Space (ℝ ⊗[ℚ] LG)] | |
| {s d₀ : ℕ} {D : RationalFilteredNilmanifold LG s d₀} | |
| {Fmark : NilpotentLieFiltration LM s} {φ : LG →ₗ⁅ℚ⁆ LM} | |
| {marked : Fmark.realification.PolynomialOrbit (fullTaggedVariableWeight (X := X) J)} | |
| {keep : LayerSamplerVariables G I n B → Prop} | |
| {cost p pLocal pNative r periodCap coverCap : ℝ} {Lip : ℝ≥0} | |
| (F : AllocatedExternalCandidateSpatialNativeFamily A Deck A.Path Pivot D Fmark φ marked | |
| keep cost p pLocal pNative r periodCap coverCap Lip) | |
| (H : Finset A.Path) | |
| (sourceCenter : ∀ j, U j) | |
| (hpath : ∀ a ∈ H, (F.sourceChart a).path = a) | |
| (hcenter : ∀ a ∈ H, (F.sourceChart a).centerLift = sourceCenter) | |
| (hfrozen : ∀ a ∈ H, ∀ i : {i // ¬keep i}, (A.sides i.val : ℝ) ≤ Real.exp cost) | |
| (observable : (X → ℤ) → D → ℂ) (weight : (X → ℤ) → ℂ) | |
| (scoreThreshold : ℝ) | |
| (hscore : ∀ a ∈ H, scoreThreshold ≤ (F.sourceCandidate a).score observable weight) | |
| @[simp] theorem actualSourceProblemOn_withKeep | |
| (retained : Finset A.Path) (hsub : retained ⊆ H) | |
| {massThreshold : ℝ} (hmass : massThreshold ≤ A.law.mass retained) : | |
| (F.actualSourceProblemOn H sourceCenter hpath hcenter hfrozen observable weight | |
| scoreThreshold hscore retained hsub hmass).withKeep keep (fun _ => rfl) = | |
| F.actualSourceProblemOn H sourceCenter hpath hcenter hfrozen observable weight | |
| scoreThreshold hscore retained hsub hmass := rfl | |
| @[simp] theorem actualSourceProblemOn_withKeep_optionJoint | |
| (retained : Finset A.Path) (hsub : retained ⊆ H) | |
| {massThreshold : ℝ} (hmass : massThreshold ≤ A.law.mass retained) : | |
| ((F.actualSourceProblemOn H sourceCenter hpath hcenter hfrozen observable weight | |
| scoreThreshold hscore retained hsub hmass).withKeep keep (fun _ => rfl)).optionJoint | |
| (fun j => (F.native j).model) | |
| (fun j => ((F.native j).test.fullTaggedSpatial J).orbit) = | |
| F.actualJointProblemOn H sourceCenter hpath hcenter hfrozen observable weight | |
| scoreThreshold hscore retained hsub hmass := rfl | |
| end AllocatedExternalCandidateSpatialNativeFamily | |
| end | |
| end Erdos3.VectorPolynomial | |
| end | |
| section | |
| namespace Erdos3.VectorPolynomial | |
| open Module Submodule BooleanCubeKernel NilpotentLieFiltration NilpotentLieBCHGroup | |
| open RationalFilteredNilmanifold | |
| open scoped BigOperators Classical TensorProduct NNReal | |
| attribute [local instance] NativeSampleModel.lie NativeSampleModel.algebra | |
| NativeSampleModel.topology NativeSampleModel.topologicalAdd | |
| NativeSampleModel.continuousSMul NativeSampleModel.hausdorff | |
| attribute [local irreducible] polynomialOrbitRealChart piRealOrbit | |
| noncomputable section | |
| variable {m : ℕ} {G X : Type*} [Fintype G] [Fintype X] | |
| {I 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 AllocatedExternalCandidateSpatialNativeFamily | |
| variable {Deck : Fin m → Type*} {Pivot : Type*} [Fintype Pivot] | |
| {LG LM : Type} | |
| [LieRing LG] [LieAlgebra ℚ LG] [LieRing LM] [LieAlgebra ℚ LM] | |
| [TopologicalSpace (ℝ ⊗[ℚ] LG)] [IsTopologicalAddGroup (ℝ ⊗[ℚ] LG)] | |
| [ContinuousSMul ℝ (ℝ ⊗[ℚ] LG)] [T2Space (ℝ ⊗[ℚ] LG)] | |
| {s d₀ : ℕ} {D : RationalFilteredNilmanifold LG s d₀} | |
| {Fmark : NilpotentLieFiltration LM s} {φ : LG →ₗ⁅ℚ⁆ LM} | |
| {marked : Fmark.realification.PolynomialOrbit (fullTaggedVariableWeight (X := X) J)} | |
| {keep : LayerSamplerVariables G I n B → Prop} | |
| {cost p pLocal pNative r periodCap coverCap : ℝ} {Lip : ℝ≥0} | |
| (F : AllocatedExternalCandidateSpatialNativeFamily A Deck A.Path Pivot D Fmark φ marked | |
| keep cost p pLocal pNative r periodCap coverCap Lip) | |
| (H : Finset A.Path) | |
| (sourceCenter : ∀ j, U j) | |
| (hpath : ∀ a ∈ H, (F.sourceChart a).path = a) | |
| (hcenter : ∀ a ∈ H, (F.sourceChart a).centerLift = sourceCenter) | |
| (hfrozen : ∀ a ∈ H, ∀ i : {i // ¬keep i}, (A.sides i.val : ℝ) ≤ Real.exp cost) | |
| (observable : (X → ℤ) → D → ℂ) (weight : (X → ℤ) → ℂ) | |
| (scoreThreshold : ℝ) | |
| (hscore : ∀ a ∈ H, scoreThreshold ≤ (F.sourceCandidate a).score observable weight) | |
| variable {originalMass originalScore : ℝ} | |
| (P : AllocatedExternalCandidateProblem (E := Deck) A D Fmark φ marked observable weight | |
| cost originalMass originalScore) | |
| (hH : H ⊆ P.productive) | |
| (hsourceChart : ∀ a (ha : a ∈ H), F.sourceChart a = P.chart ⟨a, hH ha⟩) | |
| (retained : Finset A.Path) (hsub : retained ⊆ H) | |
| {massThreshold : ℝ} (hmass : massThreshold ≤ A.law.mass retained) | |
| include hH hsourceChart in | |
| theorem conclusion_of_actualSourceAdaptedOptionQuotient | |
| (ideal : LieIdeal ℚ LG) | |
| (hI : D.filtration.layer (s + 1) ≤ ideal.toSubmodule) | |
| {dQ : ℕ} (Q : RationalFilteredNilmanifold (LG ⧸ ideal) s dQ) | |
| (hQ : Q.filtration = D.filtration.quotientLie ideal hI) | |
| (hker : ∀ x ∈ ideal, φ x = 0) | |
| (descended : (X → ℤ) → Q → ℂ) | |
| (hrecovery : ∀ x (g : D.RealGroup), | |
| descended x (QuotientGroup.mk | |
| (realificationMap (hnil := D.filtration.lowerCentralSeries_eq_bot) | |
| (hM := Q.filtration.lowerCentralSeries_eq_bot) (lieQuotientMap ideal) g)) = | |
| observable x (QuotientGroup.mk g)) | |
| (adapted : (optionProduct Q (fun j => (F.native j).model)).AdaptedModelData) | |
| {outputCost outputMass outputScore : ℝ} | |
| (result : (((F.actualSourceProblemOn H sourceCenter hpath hcenter hfrozen observable weight | |
| scoreThreshold hscore retained hsub hmass).withKeep keep (fun _ => rfl)).adaptedOptionQuotient | |
| (fun j => (F.native j).model) (fun j => ((F.native j).test.fullTaggedSpatial J).orbit) | |
| ideal hI Q hQ hker descended hrecovery adapted).Conclusion | |
| outputCost outputMass outputScore) : | |
| Nonempty (P.Conclusion outputCost outputMass outputScore) := by | |
| obtain ⟨original⟩ := | |
| ((F.actualSourceProblemOn H sourceCenter hpath hcenter hfrozen observable weight | |
| scoreThreshold hscore retained hsub hmass).withKeep keep (fun _ => rfl)).conclusion_of_adaptedOptionQuotient | |
| (fun j => (F.native j).model) (fun j => ((F.native j).test.fullTaggedSpatial J).orbit) | |
| ideal hI Q hQ hker descended hrecovery adapted result | |
| exact ⟨F.conclusion_of_actualSourceProblemOn H sourceCenter hpath hcenter hfrozen | |
| observable weight scoreThreshold hscore P hH hsourceChart retained hsub hmass original⟩ | |
| end AllocatedExternalCandidateSpatialNativeFamily | |
| end | |
| end Erdos3.VectorPolynomial | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 16 kB
- Xet hash:
- dd4b17482b1c35bac8fb35dfb54dd4404919cb7b94e00c13aa85318371fb44e5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.