cfahlgren1/math / lean /OAI /Combinatorics /Progressions /Sampling /AllocatedExternalCandidateShearBufferedScore.lean
cfahlgren1's picture
download
raw
3.52 kB
import OAI.Combinatorics.Progressions.Polynomial.PolynomialPatchTaggedBufferedScore
namespace OAI
section
namespace Erdos3.VectorPolynomial
open Module Submodule BooleanCubeKernel NilpotentLieFiltration NilpotentLieBCHGroup
open scoped BigOperators Classical TensorProduct
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.Conclusion
variable {A} {Y M : Type*} [LieRing M] [LieAlgebra ℚ M] {s d t : ℕ}
(patch : PolynomialPatch Y s d) [Fintype (PolynomialShearIndex patch.weight)]
{Fmark : NilpotentLieFiltration M t}
{φ : PolynomialShearLieAlgebra patch.weight ℚ →ₗ⁅ℚ⁆ M}
{marked : Fmark.realification.PolynomialOrbit (fullTaggedVariableWeight (X := X) J)}
(f : (X → ℤ) → ℝ) (lam : ℝ)
{cost massThreshold scoreThreshold outputCost outputMass outputScore : ℝ}
{P : AllocatedExternalCandidateProblem (E := E) A
(polynomialShearNilmanifold patch.weight s patch.weight_le) Fmark φ marked
(fun _ z => (patch.shearObservable z : ℂ)) (fun x => ((f x - lam : ℝ) : ℂ))
cost massThreshold scoreThreshold}
(out : P.Conclusion outputCost outputMass outputScore)
theorem siteLaw_shear_buffered_score
(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))
{tagCount : ℕ} (e : Fin tagCount ≃ Σ j, J j) (z : out.retained) :
outputScore ≤ (out.siteLaw z).mean (fun site =>
bufferedScalarScore (majorPhasePlateauKernel tagCount)
(fullTaggedBufferedCoordinates e poly (fun j => (P.centerLift j).val))
(fun x lifts => (patch.ofTaggedWeightedShearOrbit e out.ambient).value
(Sum.elim (fun i => (x i : ℝ)) (fun i => (lifts i : ℝ))))
f lam (A.physical z.val site)) := by
rw [patch.ofTaggedWeightedShearOrbit_plateauMean_eq_score e poly
(fun j => (P.centerLift j).val) out.ambient (out.siteLaw z)
(A.physical z.val) f lam
(out.siteLaw_fullTaggedBufferedCoordinates_close hσ1 H hH hchart hsmall hp e z)]
exact out.siteLaw_score hσ1 H hH hchart hsmall hp z
end AllocatedExternalCandidateProblem.Conclusion
end Erdos3.VectorPolynomial
end
end OAI

Xet Storage Details

Size:
3.52 kB
·
Xet hash:
a28e62da9bd07493451ceb5ed3b4e87cdb9399943299ea4e60f58c7a4a00e77e

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