Offline · exact source
Exact Lean source

TensorLANEmbeddingCellWeights

formalization/Cloning/TensorLANEmbeddingCellWeights.lean

Source hash: 7a20324ea549be7cbda1af16ebc812fb57208f1de19fe4dcb634a718d8c57af8

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.TensorLANEmbeddingSchurWeights
2import Cloning.TensorLANEmbeddingClassicalLimit
3 
4/-! Exact classical density of the physical copy instrument. -/
5noncomputable section
6open scoped BigOperators Topology Classical InnerProductSpace NNReal ENNReal
7open MeasureTheory Filter
8namespace Cloning.TensorLAN
9open Cloning.YoungHyperplane Cloning.PCTJointGaussianWhitening Cloning.TensorLie
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 1200000
12 
13/-- The actual mixture of uniform cells is the physical Young density,
14including repeated sector labels and all dependent affine coordinates. -/
15theorem sum_copy_rootCellDensity (N d : ℕ) (hN : 0 < N)
16    (p₀ p : Fin (d+1) → ℝ) (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1)
17    (x : rootSpace d) :
18    (∑ i : SchurCopy N (d+1), ((recursivePhysicalDecomposition N (d+1)).get i).character p *
19      rootCellDensity d N p₀ (schurCopyLattice N d i) x) =
20      fixedBaseYoungDensity d N p₀ p hp hs x := by
21  let mu := sampleLabel d N p₀ x
22  have hx := mem_sampleCell_sampleLabel d N p₀ x
23  have hi (i : SchurCopy N (d+1)) : rootCellDensity d N p₀ (schurCopyLattice N d i) x =
24      (Real.sqrt (N : ℝ)^d / Real.sqrt ((d : ℝ)+1)) *
25        (if schurCopyLattice N d i = mu then (1 : ℝ) else 0) := by
26    rw [rootCellDensity, sampleInterpolate_eq_on_cell d N (by exact_mod_cast hN) p₀ _ mu x hx]
27    simp only [PMF.pure_apply]
28    split_ifs <;> simp_all [mu, eq_comm]
29  rw [fixedBaseYoungDensity, sampleInterpolate_eq_on_cell d N (by exact_mod_cast hN) p₀ _ mu x hx,
30    tensorYoungLatticePMF_toReal_eq_sum_copies, Finset.mul_sum]
31  apply Finset.sum_congr rfl
32  intro i _
33  rw [hi]
34  split_ifs <;> simp only [Int.cast_natCast] <;> ring
35 
36/-- In the final Lebesgue coordinates the literal instrument emits exactly the
37Jacobian-correct fixed-base physical Young density. -/
38theorem sum_copy_physicalCellDensity (N d : ℕ) (hN : 0 < N)
39    (p₀ : Fin (d+1) → ℝ) (hp₀ : ∀ a, 0 < p₀ a)
40    (b : OrthonormalBasis (Fin (d+1)) ℝ (EuclideanSpace ℝ (Fin (d+1))))
41    (hb : b 0 = sqrtSpectrum p₀)
42    (p : Fin (d+1) → ℝ) (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1)
43    (y : Fin d → ℝ) :
44    (∑ i : SchurCopy N (d+1), ((recursivePhysicalDecomposition N (d+1)).get i).character p *
45      physicalCellDensity p₀ hp₀ b hb N i y) =
46      whiteningDensity (rootWhitening p₀ hp₀ b hb)
47        (fixedBaseYoungDensity d N p₀ p hp hs) y := by
48  simp only [physicalCellDensity, if_pos hN, whiteningDensity]
49  rw [← sum_copy_rootCellDensity N d hN p₀ p hp hs, Finset.mul_sum]
50  apply Finset.sum_congr rfl
51  intro i _
52  ring
53 
54/-- Integrating any bounded or unbounded measurable label fibre commutes
55exactly with the actual whitening change of variables. -/
56theorem binMass_whiteningDensity {d : ℕ} {Λ : Type*} [MeasurableSpace Λ]
57    [MeasurableSingletonClass Λ]
58    (W : rootSpace d ≃L[ℝ] (Fin d → ℝ)) (q : rootSpace d → Λ) (hq : Measurable q)
59    (f : rootSpace d → ℝ) (a : Λ) :
60    YoungRounding.binMass volume (fun y => q (W.symm y)) (whiteningDensity W f) a =
61      YoungRounding.binMass volume q f a := by
62  have hm : Measurable (fun y => q (W.symm y)) := hq.comp W.symm.continuous.measurable
63  rw [YoungRounding.binMass, YoungRounding.binMass,
64    ← integral_indicator (hm (measurableSet_singleton a)),
65    ← integral_indicator (hq (measurableSet_singleton a))]
66  have he (y : Fin d → ℝ) :
67      ((fun y => q (W.symm y)) ⁻¹' {a}).indicator (whiteningDensity W f) y =
68        whiteningDensity W ((q ⁻¹' {a}).indicator f) y := by
69    unfold whiteningDensity
70    by_cases h : q (W.symm y) = a <;> simp [Set.indicator, h]
71  simp_rw [he]
72  exact whiteningDensity_integral W _
73 
74/-- Exact quantization recovery remains true after the physical whitening
75chart, with the quantizer fixed at the base spectrum. -/
76theorem binMass_physicalCellQuantizer (N d : ℕ) (hN : 0 < N)
77    (p₀ : Fin (d+1) → ℝ) (hp₀ : ∀ a, 0 < p₀ a)
78    (b : OrthonormalBasis (Fin (d+1)) ℝ (EuclideanSpace ℝ (Fin (d+1))))
79    (hb : b 0 = sqrtSpectrum p₀)
80    (p : Fin (d+1) → ℝ) (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1)
81    (mu : Lattice d (N : ℤ)) :
82    YoungRounding.binMass volume (physicalCellQuantizer p₀ hp₀ b hb N)
83      (whiteningDensity (rootWhitening p₀ hp₀ b hb) (fixedBaseYoungDensity d N p₀ p hp hs)) mu =
84        (tensorYoungLatticePMF d N p hp hs mu).toReal := by
85  change YoungRounding.binMass volume
86    (fun y => sampleLabel d N p₀ ((rootWhitening p₀ hp₀ b hb).symm y)) _ mu = _
87  rw [binMass_whiteningDensity _ _ (measurable_sampleLabel d N p₀),
88    binMass_fixedBaseYoungDensity d N hN]
89 
90end Cloning.TensorLAN