cfahlgren1/math / lean /OAI /Combinatorics /Progressions /Dynamics /AllocatedBudgetedCutoffReference.lean
cfahlgren1's picture
download
raw
5.83 kB
import OAI.Combinatorics.Progressions.Estimates.AllocatedCutoffReferenceEnvelope
import OAI.Combinatorics.Progressions.Fourier.AllocatedCutoffFourierBudget
namespace OAI
section
namespace Erdos3.BooleanCubeKernel
open MeasureTheory Module Submodule VectorPolynomial
open scoped BigOperators Classical NNReal
universe uX uJ
variable {m dim : ℕ} {G : Type*} [Fintype G]
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 uJ} [∀ j, Fintype (J j)]
variable (U : ∀ j, Submodule ℝ (J j → ℝ))
variable (b : ∀ j, Basis (Fin (n j)) ℝ (euclideanSubspace (U j))ᗮ)
variable (o : ∀ j, OrthonormalBasis (I j) ℝ (euclideanSubspace (U j)))
variable {R₀ σ : Fin m → ℝ} (S : LayerSamplerScale (G := G) B U b R₀ σ)
variable (r : ℝ≥0) (hr : 0 < r) (hR₀ : ∀ j, 0 < R₀ j) (hσ1 : ∀ j, σ j ≤ 1)
variable (C : Fin m → ℝ) (hC : ∀ j, 0 ≤ C j)
variable (hchart : ∀ j v, ‖(normalizedOrthogonalChart (euclideanSubspace (U j)) (b j)).symm v‖ ≤ C j * ‖v‖)
variable (rowSets : Fin m → Finset (Finset (Fin dim)))
local notation "rowTypes" => (fun j : Fin m => (rowSets j : Type))
local notation "rows" => (fun j => (Subtype.val : rowSets j → Finset (Fin dim)))
local notation "amp" => ‖((allocatedProductIdealNormalizer B U b S rowSets : ℝ) : ℂ)⁻¹‖
local notation "ampN" => ‖((allocatedProductIdealNormalizer B U b S rowSets : ℝ) : ℂ)⁻¹‖₊
variable (hbudgetRows : ∀ j, ((rowSets j).card + 1 : ℝ) *
(Fintype.card (Finset (Fin dim)) * (C j * (((Fintype.card (I j) : ℝ) + 1) *
(2 * (r : ℝ) * R₀ j)))) ≤ 1 / 4)
variable (hb : ∀ j, span ℤ (Set.range (b j)) = projectedIntegerLattice (euclideanSubspace (U j)))
variable {E : Fin m → Type*} [∀ j, Fintype (E j)]
variable (bW : ∀ j, Basis (E j) ℤ (latticeSection (standardEuclideanLattice (J j)) (euclideanSubspace (U j))))
variable [∀ j, IsZLattice ℝ (latticeSection (standardEuclideanLattice (J j)) (euclideanSubspace (U j)))]
variable (D : Fin m → ℝ≥0)
variable (hD : ∀ j v, ‖normalizedOrthogonalChart (euclideanSubspace (U j)) (b j) v‖ ≤ D j * ‖v‖)
local notation "massCap" => (allocatedUniformGridVolumeCap B rowSets r *
(2 * ((2 : ℝ) ^ dim * (2 * (r : ℝ))) + 1) ^
Fintype.card (Σ a : LayerSamplerAxis I n, rowTypes (Sigma.fst a)))
variable (Vcov : Fin m → ℝ≥0) {Psrc : ℝ}
variable (hnum : AllocatedSourceNumerics B U b S D Vcov Psrc)
variable (hVcov : ∀ j, mixedDensityCovolumeRatio (euclideanSubspace (U j)) (b j) ≤ Vcov j)
variable (hr1 : 1 ≤ r) {Elog P : ℝ}
local notation "Lbudget" => allocatedCutoffFourierLog m dim Psrc (normalizedSiteCutoffBound : ℝ) Elog
local notation "Qbudget" => allocatedCutoffSamplingLog m dim Psrc (normalizedSiteCutoffBound : ℝ) Elog P
include hR₀ hσ1 hC hchart hbudgetRows hb bW hD hnum hVcov hr1 in
theorem allocatedNormalizedCutoff_budgeted_reference_envelope {K : ℕ}
(hSampling : PhysicalAmbientRowsKernelSampling.{uX, uJ, 0} m dim K rowTypes rows)
{X : Type uX} [Fintype X] [DecidableEq X]
(hP : 0 ≤ P) (hn : (Fintype.card X : ℝ) ≤ P)
(hdim : (Fintype.card (Option (Fin dim) × X) : ℝ) ≤ P)
[CompactSpace (CoefficientTorus (K := Fin dim) U)]
[MeasurableSpace (CoefficientTorus (K := Fin dim) U)] [BorelSpace (CoefficientTorus (K := Fin dim) U)]
(μ : Measure (CoefficientTorus (K := Fin dim) U)) [μ.IsAddLeftInvariant] [IsProbabilityMeasure μ]
(ν : ∀ j, Measure (euclideanSubspace (U j) ⧸
(latticeSection (standardEuclideanLattice (J j)) (euclideanSubspace (U j))).toAddSubgroup))
[∀ j, (ν j).IsAddLeftInvariant] [∀ j, IsProbabilityMeasure (ν j)]
(p : ∀ j, VectorPolynomial X ℝ (J j → ℝ))
(hp : ∀ j, DegreeLE (1 : X → ℕ) (j.val + 1) (p j))
(hm : ∀ j e, coefficients (p j) e ∈ U j)
(d : ℕ) [NeZero d] (stride : X → ℕ) (hs : ∀ x, 0 < stride x)
{R S₀ ρ ε : ℝ} (hS : 0 ≤ S₀) (hSP : S₀ ≤ Real.exp P) (hρ : 0 < ρ) (hε : 0 < ε)
(hρP : 1 / ρ ≤ Real.exp P) (hεP : 1 / ε ≤ Real.exp P)
(hstride : ∀ x, (stride x : ℝ) ≤ S₀)
(N : X → ℕ) (hsize : ∀ x, Real.exp ((Qbudget + K) ^ K) ≤ (N x : ℝ))
(hrank : ∀ j, HasLayerSamplingRank (j.val + 1) (fun x => (N x : ℝ)) R (U j) (p j))
(hR : Real.exp ((Qbudget + K) ^ K) ≤ R)
{η : ℝ} (hη : 0 < η) (hElog : 0 ≤ Elog) (hηE : η⁻¹ ≤ Real.exp Elog)
(base : X → ℤ) (cell : ColumnResiduePattern (Option (Fin dim)) X stride) :
let V := referenceJetEnvelopeWidths (q := dim) stride (trimmedSpatialRootScale ρ N stride)
∃ _hZ : 0 < ∑' z, selectedResidueSmoothWeight stride {cell} V z,
selectedResidueDensityMass stride {cell} V
(fun z => amp * ‖allocatedProductSiteCutoff B U b S rowSets o hb bW d r hr
(physicalCubeRowSample U d rows p hm (translatePhysicalCube base (standardPhysicalCubeOutput z)))‖) ≤
massCap + 2 * η + ε := by
have hbud := allocatedNormalizedCutoff_fourier_budget B U b S rowSets D Vcov hnum
hR₀ hVcov r hr1 hElog hP hηE
simp only [Fintype.card_fin] at hbud
obtain ⟨hL, hQ, hPQ, _, hamb, hηL, hLip, hfreq, hcoeff⟩ := hbud
have hexp := Real.exp_le_exp.mpr hPQ
exact allocatedNormalizedCutoff_reference_envelope (X := X) (J := J) B U b o S r hr
hR₀ hσ1 C hC hchart rowSets hbudgetRows hb bW D hD
⟨Real.exp Psrc, (Real.exp_pos Psrc).le⟩ (fun j => hnum.radius_inv j)
hSampling hQ (hn.trans hPQ) (hdim.trans hPQ) μ ν p hp hm d stride hs
hS (hSP.trans hexp) hρ hε (hρP.trans hexp) (hεP.trans hexp) hstride
N hsize hrank hR hη hL hamb hηL hLip hfreq hcoeff base cell
end Erdos3.BooleanCubeKernel
end
end OAI

Xet Storage Details

Size:
5.83 kB
·
Xet hash:
411e106b0e701d1df9b717a7567ec536a0002bab0aae53df500a5834a0648e4d

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