cfahlgren1/math / lean /OAI /Combinatorics /Progressions /Linear /AllocatedGoodKernelSpatialDensity.lean
cfahlgren1's picture
download
raw
10.1 kB
import OAI.Combinatorics.Progressions.Geometry.AllocatedPrescribedSpatialData
import OAI.Combinatorics.Progressions.Probability.AllocatedSpatialLawDensity
namespace OAI
section
namespace Erdos3.VectorPolynomial
open MeasureTheory
open scoped BigOperators Matrix NNReal
variable {m : ℕ} {G : Type*} [Fintype G] [DecidableEq G]
variable {I : Fin m → Type*} [∀ j, Fintype (I j)] [∀ j, DecidableEq (I j)]
variable {n : Fin m → ℕ} (B : LayerSamplerAxis I n → Type*)
variable [∀ a, Fintype (B a)] [∀ a, DecidableEq (B a)]
variable {J : Fin m → Type*} [∀ j, Fintype (J j)] (U : ∀ j, Submodule ℝ (J j → ℝ))
variable (b : ∀ j, Module.Basis (Fin (n 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 {α : Type*} [Fintype α] [DecidableEq α] (x : G → IntegerScalarCubeBox α S.value)
variable {O : Fin m → Type*} [∀ j, Fintype (O j)] [∀ j, DecidableEq (O j)]
variable [∀ j : Fin m, DecidableEq (BoundedIntegerExponent G (j.val+1))]
variable [∀ j : Fin m, DecidableEq (AllocatedNonkernelCoefficient (G := G) B j)]
variable (rows : ∀ j, O j → Finset α)
local notation "grid" => allocatedGridAxis (I := I) U b (LayerSamplerScale.value S)
local notation "sides" => allocatedPrincipalSides B U b S
local notation "lengths" => principalAxisLength (fun a => ¬grid a) sides
theorem allocatedGoodKernel_prescribed_spatial_density {M : ℕ} (hM : 0 < M)
(selection : α ↪ G) (hx : GoodScalarKernelTuple selection (1/(M : ℝ)) M x)
(hq : Fintype.card α ≤ m+1) (hinj : ∀ j, Function.Injective (rows j))
(hrows : ∀ j o, (rows j o).card ≤ j.val+1) (hσ1 : ∀ j, σ j ≤ 1)
{P E η : ℝ} (hP : 0 ≤ P) (hE : 0 ≤ E) (hη : 0 < η) (hη1 : η ≤ 1)
(hMP : (M : ℝ) ≤ Real.exp P) (hRP : ∀ j, R j ≤ Real.exp P)
(hRi : ∀ j, (R j)⁻¹ ≤ Real.exp P) (hσi : ∀ j, (σ j)⁻¹ ≤ Real.exp P)
(hcount : ∀ j : Fin m,
(Fintype.card (BoundedCoefficientExponent (LayerSamplerVariables G I n B) (j.val+1)) : ℝ)+1 ≤ Real.exp P)
(hηE : η⁻¹ ≤ Real.exp E)
(hlarge : Real.exp (allocatedJointLengthLog (G := G) B α O P E) ≤ S.value) :
∃ (modulus : ℕ) (hm : 0 < modulus),
let : NeZero modulus := ⟨hm.ne'⟩
modulus ≤ M^(m+1) ∧
(∀ root : G → ℤ, integerScalarLattice (Unit ⊕ α) (modulus : ℤ) ≤
pivotFullImage (selectedSpatialPivot root (scalarCubeDifferenceMatrix x) selection)
(selectedSpatialFreeColumns root (scalarCubeDifferenceMatrix x) selection)) ∧
(∀ j, integerScalarLattice (O j) (modulus : ℤ) ≤
(scalarKernelIntegerJet x (j.val+1) (rows j)).mulVecLin.range) ∧
∃ (s : ∀ j, O j ↪ BoundedIntegerExponent G (j.val+1))
(hA : ∀ j, ((scalarKernelIntegerJet x (j.val+1) (rows j)).submatrix id (s j)).det ≠ 0),
(∀ j : Fin m, fixedKernelInverseBound S.positive x (j.val+1) (rows j) (s j) (hA j) (1/(M : ℝ))) ∧
∃ hsize : ∀ d, (Fintype.card α+1)*modulus ≤ lengths d,
∀ (u : PrincipalAxisTuples (α := α) grid sides)
(r : PrincipalTupleIndex (fun a : {a // ¬grid a} => B a.val)
(fun a => layerSamplerDegree I n a.val) → Option α → ZMod modulus),
∃ (reference : PrincipalAxisTuples (α := α) (fun a => ¬grid a) sides)
(residue : ∀ j, Matrix (O j) (AllocatedNonkernelCoefficient (G := G) B j) (ZMod modulus)),
principalResidueLabel modulus reference = r ∧
(∀ v, (allocatedLongResidueWeights B U b S modulus hm r hsize).weight v ≠ 0 → ∀ j,
integerResidueMatrix (allocatedNonkernelJetMatrix B U b S x u rows j v) modulus = residue 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)]
(hb : ∀ j, Submodule.span ℤ (Set.range (b j)) = projectedIntegerLattice (euclideanSubspace (U j)))
(o : ∀ j, OrthonormalBasis (I j) ℝ (euclideanSubspace (U j)))
(C : Fin m → ℝ) (_hC : ∀ j, 0 ≤ C j)
(_hchart : ∀ j v, ‖(normalizedOrthogonalChart (euclideanSubspace (U j)) (b j)).symm v‖ ≤ C j * ‖v‖)
(_hsmall : ∀ j, R j ≤ allocatedPhysicalChartRadius (G := G) B α C 1 j)
{K : Fin m → Type*} [∀ j, Fintype (K j)]
(bW : ∀ j, Module.Basis (K j) ℤ
(latticeSection (standardEuclideanLattice (J j)) (euclideanSubspace (U j))))
(d : ℕ) [NeZero d]
(μ : 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)]
(g : PrincipalAxisTuples (α := α) (fun a => ¬grid a) sides → EuclideanJetLayers U O → ℝ)
(_hg : ∀ w, Continuous (g w)) (_hg0 : ∀ w z, 0 ≤ g w z)
(_hlaw : ∀ w, (realDensityMeasure μ (fun z => allocatedCoefficientDensity B U b hb o hR hσ S
(quotientIntegerCover (coefficientIntegerLattice (K := LayerSamplerVariables G I n B) U) d z))).map
(euclideanCoefficientJetMap U
(allocatedPhysicalCubeRoot B U b S (fun _ => 0) x (principalAxisJoin grid u w))
(allocatedPhysicalCubeDirections B U b S x (principalAxisJoin grid u w)) rows) =
realDensityMeasure (Measure.pi (fun j => Measure.pi (fun _ : O j => ν j))) (g w))
{D N : Type*} [Fintype D] [Fintype N] [DecidableEq N]
(c : D → N → ℤ) (index : D → N → PrincipalTupleIndex B (layerSamplerDegree I n))
(spatialRoot : G → ℤ) (_hroot : ∀ j, |spatialRoot j| ≤ (S.value : ℤ))
(H : D → ℝ) (Q : D → N → ℝ) (hH : ∀ t, 0 < H t) (hQ : ∀ t j, 0 < Q t j)
{ρ ξ mesh : ℝ} (_hξ0 : 0 ≤ ξ) (_hξ1 : ξ ≤ 1)
(_hwidth : ∀ t j, ((|c t j| : ℤ)+(sides (index t j) : ℤ) : ℝ)*Q t j ≤ ξ*H t)
(_hρ : 0 < ρ) (_hscale : ∀ t, ρ ≤ H t/S.value) (_hscaleQ : ∀ t j, ρ ≤ Q t j)
(_hmeshSize : smoothSpatialMeshThreshold α G N S.value ≤ ρ) (_hmesh : 0 < mesh)
(tv : Finset (D → (Unit ⊕ α) → ℤ))
(_htv : ∀ v ∈ tv, ∀ t i, |((spatialStar (v t) i : ℤ) : ℝ)/H t| ≤ 1)
(point : (D → (Unit ⊕ α) → ℤ) → EuclideanJetLayers U O)
(test : (D → (Unit ⊕ α) → ℤ) → ℂ) (_htest : ∀ v ∈ tv, ‖test v‖ ≤ 1)
(cap : (D → (Unit ⊕ α) → ℤ) → ℝ)
(_hcap : ∀ w, (allocatedLongResidueWeights B U b S modulus hm r hsize).weight w ≠ 0 →
∀ v ∈ tv, g w (point v) ≤ cap v)
{Z : ℝ} (_hZ : 0 < Z),
let hSpatialPivot := goodScalarKernelTuple_spatial_det_ne_zero selection x spatialRoot
(one_div_pos.mpr (Nat.cast_pos.mpr hM)) hx
let spatialScale := (∏ t, ∏ _i : Unit ⊕ α, H t : ℝ)
let coefficientScale := ∏ a, allocatedLongJetOutputScale B U b S (O := O) a
let chart := mixedCoveredJetChart U o b hb bW d
let region := mixedCoveredJetRegion (O := O) (E := K) U o b d
(fun j _ => standardLatticeClosedQuarterBox (J j))
let spatialProxy := fun v => allocatedSpatialProxy B U b S u c index x spatialRoot selection
hSpatialPivot H hH modulus r mesh v / (spatialScale : ℂ)
let δ := smoothVectorSpatialError D N selection M S.value modulus ρ ξ mesh / spatialScale
let proxy := restrictedChartDensity chart region 1 (fun z : MixedCoveredJetSource I O K n d =>
allocatedCoveredFixedFactor B U b hR hσ S x u reference rows K d z.1 z.2 *
(allocatedLongJetProxy B U b S x u rows s hA modulus residue
(fun a => coefficientJetAxisEquiv O I n z.1 a.val) / coefficientScale))
let error := restrictedChartDensity chart region 1 (fun z : MixedCoveredJetSource I O K n d =>
allocatedCoveredFixedFactor B U b hR hσ S x u reference rows K d z.1 z.2 * (η / coefficientScale))
‖(allocatedLongResidueWeights B U b S modulus hm r hsize).complexMean
(fun w => ∑ v : tv, test v.val *
(((allocatedSpatialOutputLaw B U b S u c index x spatialRoot H Q hH hQ w v.val).toReal : ℂ) *
(g w (point v.val) : ℂ))) / (Z : ℂ) -
(∑ v : tv, test v.val * (spatialProxy v.val * (proxy (point v.val) : ℂ))) / (Z : ℂ)‖ ≤
(∑ v : tv, (δ * cap v.val + ‖spatialProxy v.val‖ * error (point v.val))) / Z := by
obtain ⟨modulus, hm, hmod, hspatial, hperiod, s, hA, hi, hsize, hdata⟩ :=
allocatedGoodKernel_prescribed_spatial_data B U b hR hσ S x rows hM selection hx
hq hinj hrows hσ1 hP hE hη hη1 hMP hRP hRi hσi hcount hηE hlarge
let : NeZero modulus := ⟨hm.ne'⟩
refine ⟨modulus, hm, hmod, hspatial, hperiod, s, hA, hi, hsize, ?_⟩
intro u r
obtain ⟨reference, residue, href, hr, hpoint⟩ := hdata u r
refine ⟨reference, residue, href, hr, ?_⟩
intro _ _ _ _ hb o C hC hchart hsmall K _ bW d _ μ _ _ ν _ _ g hg hg0 hlaw
D N _ _ _ c index spatialRoot hroot H Q hH hQ ρ ξ mesh hξ0 hξ1 hwidth hρ hscale hscaleQ hmeshSize hmesh
tv htv point test htest cap hcap Z hZ hSpatialPivot
exact allocatedSpatialLaw_density_comparison B U b hR hσ S x u rows s hA
hb o hσ1 C hC hchart hsmall bW d μ ν g hg hg0 hlaw c index spatialRoot selection hSpatialPivot H Q hH hQ
hM hx hroot modulus hm (hspatial spatialRoot) r hsize reference href hperiod residue hpoint
hξ0 hξ1 hwidth hρ hscale hscaleQ hmeshSize hmesh tv htv point test htest cap hcap hZ
end Erdos3.VectorPolynomial
end
end OAI

Xet Storage Details

Size:
10.1 kB
·
Xet hash:
5046cd402270a3fb110d3f35995902f0506b88fc93fe9cde59665a73036d408d

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