Offline · exact source
Exact Lean source

TensorLANEmbeddingClassicalUniform

formalization/Cloning/TensorLANEmbeddingClassicalUniform.lean

Source hash: 2e5b2c7fcff379ae0cc4cd84494f9282ba86890ce5e89c0a4f47b3fd42f079dd

Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.

The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.

Declarations in this module
1import Cloning.TensorLANEmbeddingClassicalLimit
2import Cloning.TensorLANEmbeddingLocalSpectrum
3 
4/-! Compact-uniform physical Young convergence in the exact fixed classical
5coordinates of the LAN model. -/
6noncomputable section
7open scoped BigOperators Topology Classical InnerProductSpace
8open Filter MeasureTheory
9namespace Cloning.TensorLAN
10open Cloning.YoungHyperplane Cloning.PCTJointGaussianWhitening Cloning.PCTLocalChart
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1200000
13variable {d : ℕ}
14 
15theorem whiten_spectralCenterShift_local (N : ℕ) (hN : 0 < N)
16    (p : Fin (d+1) → ℝ) (hp : ∀ a, 0 < p a)
17    (b : OrthonormalBasis (Fin (d+1)) ℝ (EuclideanSpace ℝ (Fin (d+1))))
18    (hb : b 0 = sqrtSpectrum p) (h : Fin (d+1) → ℝ) (hh : ∑ a, h a = 0) :
19    rootWhitening p hp b hb (spectralCenterShift d N p (localSpectrum p h N)) =
20      whiten p b h := by
21  let v : rootSpace d := ⟨WithLp.toLp 2 h, hh⟩
22  have he : localSpectrum p h N = fun a => p a + (Real.sqrt (N : ℝ))⁻¹ * v.1 a := by
23    funext a
24    simp [localSpectrum, sampleScale, v, one_div]
25  rw [he, spectralCenterShift_local N hN]
26  rfl
27 
28/-- Positivity is an explicit finite-sample side condition, which the uniform
29admissibility theorem discharges on every bounded trace-zero window. -/
30theorem uniform_whitened_local_Young_l1
31    (p : Fin (d+1) → ℝ) (hp : ∀ a, 0 < p a)
32    (hs : ∑ a, p a = 1) (hord : StrictAnti p)
33    (b : OrthonormalBasis (Fin (d+1)) ℝ (EuclideanSpace ℝ (Fin (d+1))))
34    (hb : b 0 = sqrtSpectrum p) (B : ℝ) (ε : ℝ) (hε : 0 < ε) :
35    ∃ N₀ : ℕ, ∀ N ≥ N₀, ∀ h : Fin (d+1) → ℝ, ‖h‖ ≤ B →
36      ∀ hh : ∑ a, h a = 0, ∀ hpos : ∀ a, 0 < localSpectrum p h N a,
37      (∫ y, |whiteningDensity (rootWhitening p hp b hb)
38        (fixedBaseYoungDensity d N p (localSpectrum p h N)
39          (fun a => (hpos a).le) (localSpectrum_sum p h hs hh N)) y -
40        GaussianAffinity.productDensity (fun _ : Fin d => (1/2 : ℝ))
41          (y-whiten p b h)|) < ε := by
42  by_contra hbad
43  push_neg at hbad
44  have hbad' (k : ℕ) := hbad (max k 1)
45  choose n hn h hh hzero hpos hfail using hbad'
46  have hnlim : Tendsto n atTop atTop := tendsto_atTop_mono
47    (fun k => (le_max_left k 1).trans (hn k)) tendsto_id
48  have hn0 : ∀ k, 0 < n k := fun k => by have h := hn k; omega
49  have hr (a : Fin (d+1)) : Tendsto (fun k => localSpectrum p (h k) (n k) a)
50      atTop (𝓝 (p a)) :=
51    localSpectrum_tendsto_of_bounded p n hnlim h B (Eventually.of_forall hh) a
52  have ht := whitenedFixedBaseYoungDensity_l1_tendsto n hnlim hn0
53    (fun k => localSpectrum p (h k) (n k))
54    (fun k => localSpectrum_sum p (h k) hs (hzero k) (n k)) hpos p hs hp hord hr b hb
55  simp_rw [whiten_spectralCenterShift_local _ (hn0 _) p hp b hb _ (hzero _)] at ht
56  obtain ⟨k,hk⟩ := (ht.eventually (eventually_lt_nhds hε)).exists
57  exact (not_lt_of_ge (hfail k)) hk
58 
59end Cloning.TensorLAN