Offline · exact source
Exact Lean source

TensorLANEmbeddingClassicalLimit

formalization/Cloning/TensorLANEmbeddingClassicalLimit.lean

Source hash: 9a776555e755639fa649dd06c3d2d2d8d08e49e097fc61a1640b6caf6b1e9096

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.TensorLANEmbeddingWhiteningGaussian
2import Cloning.PCTLocalChartCoordinates
3 
4/-! The actual physical classical L1 limit in the fixed whitening coordinates
5of the compact-window LAN target. -/
6noncomputable section
7open scoped BigOperators Topology Classical InnerProductSpace NNReal ENNReal
8open MeasureTheory Filter
9namespace Cloning.TensorLAN
10open Cloning.YoungHyperplane Cloning.PCTJointGaussianWhitening
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1200000
13variable {d : ℕ}
14 
15/-- Physical local spectral perturbations give exactly their tangent shift,
16without an asymptotic or sample-size normalization error. -/
17theorem spectralCenterShift_local (N : ℕ) (hN : 0 < N)
18    (p : Fin (d+1) → ℝ) (h : rootSpace d) :
19    spectralCenterShift d N p
20      (fun a => p a + (Real.sqrt (N : ℝ))⁻¹ * h.1 a) = h := by
21  apply (coordinates d).symm.injective
22  funext i
23  simp only [spectralCenterShift, LinearEquiv.symm_apply_apply, coordinates_symm_apply, coordinates_head]
24  have hn : Real.sqrt (N : ℝ) ≠ 0 := (Real.sqrt_pos.mpr (by exact_mod_cast hN)).ne'
25  field_simp
26  ring
27 
28/-- The physical label law converges in total L1 error to the exact translated
29precision-1/2 Gaussian in any allowed whitening frame. -/
30theorem whitenedFixedBaseYoungDensity_l1_tendsto
31    (n : ℕ → ℕ) (hn : Tendsto n atTop atTop) (hn0 : ∀ k, 0 < n k)
32    (pN : ℕ → Fin (d+1) → ℝ) (hsN : ∀ k, ∑ a, pN k a = 1)
33    (hpN : ∀ k a, 0 < pN k a) (p : Fin (d+1) → ℝ)
34    (hs : ∑ a, p a = 1) (hp : ∀ a, 0 < p a) (hord : StrictAnti p)
35    (hlim : ∀ a, Tendsto (fun k => pN k a) atTop (𝓝 (p a)))
36    (b : OrthonormalBasis (Fin (d+1)) ℝ (EuclideanSpace ℝ (Fin (d+1))))
37    (hb : b 0 = sqrtSpectrum p) :
38    Tendsto (fun k => ∫ y,
39      |whiteningDensity (rootWhitening p hp b hb)
40          (fixedBaseYoungDensity d (n k) p (pN k) (fun a => (hpN k a).le) (hsN k)) y -
41        GaussianAffinity.productDensity (fun _ : Fin d => (1/2 : ℝ))
42          (y - rootWhitening p hp b hb (spectralCenterShift d (n k) p (pN k)))|)
43      atTop (𝓝 0) := by
44  have h := fixedBaseYoungDensity_l1_tendsto d n hn hn0 pN hsN hpN p hs hp hord hlim
45  have he (k : ℕ) :
46      (∫ y, |whiteningDensity (rootWhitening p hp b hb)
47          (fixedBaseYoungDensity d (n k) p (pN k) (fun a => (hpN k a).le) (hsN k)) y -
48        GaussianAffinity.productDensity (fun _ : Fin d => (1/2 : ℝ))
49          (y - rootWhitening p hp b hb (spectralCenterShift d (n k) p (pN k)))|) =
50      ∫ x, |fixedBaseYoungDensity d (n k) p (pN k) (fun a => (hpN k a).le) (hsN k) x -
51        covarianceGaussian d p hs (x - spectralCenterShift d (n k) p (pN k))| := by
52    simp_rw [← whiteningDensity_translated_covarianceGaussian p hp hs b hb]
53    exact whiteningDensity_l1 _ _ _
54  simpa only [he] using h
55 
56end Cloning.TensorLAN