Exact Lean source
YoungFlatMoment
formalization/Cloning/YoungFlatMoment.lean
Source hash: 7a4bd6f442252d8d6fe6f03c6c93b2d1c6d6047e7fc59d6bbb25d63152b36113
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
definition
Cloning.YoungFlat.smoothedMeasuredefinition Cloning.YoungFlat.cellCentertheorem Cloning.YoungFlat.integrable_lattice_observabletheorem Cloning.YoungFlat.integral_lattice_observabletheorem Cloning.YoungFlat.sampleCenter_flat_norm_sqtheorem Cloning.YoungFlat.integrable_cellCenter_norm_sqtheorem Cloning.YoungFlat.integral_cellCenter_norm_sq_le1import Cloning.YoungFlatSmoothing
2import Cloning.TensorFlatProjectorCasimirMoment
3
4/-! The sharp physical Casimir moment controls the actual smoothed flat laws. -/
5noncomputable section
6open scoped BigOperators Topology Classical
7open MeasureTheory Filter
8namespace Cloning.YoungFlat
9open Cloning.TensorLie Cloning.YoungHyperplane Cloning.YoungGeneral
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 1400000
12
13def smoothedMeasure (d N : ℕ) : Measure (rootSpace d) :=
14 physicalSmoothedMeasure d N (flatSpectrum (d+1))
15 (fun _ ↦ by unfold flatSpectrum; positivity) (flatSpectrum_sum _ (by omega))
16
17def cellCenter (d N : ℕ) (x : rootSpace d) : rootSpace d :=
18 sampleCenter d N (flatSpectrum (d+1)) (sampleLabel d N (flatSpectrum (d+1)) x)
19
20theorem integrable_lattice_observable (d N : ℕ) (p : Fin (d+1) → ℝ)
21 (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) (f : Lattice d (N : ℤ) → ℝ) :
22 Integrable f (tensorYoungLatticePMF d N p hp hs).toMeasure := by
23 rw [tensorYoungLatticePMF, ← PMF.toMeasure_map (shapeLattice d N) (tensorYoungPMF N (d+1) p hp hs) (measurable_of_countable (shapeLattice d N))]
24 exact (integrable_map_measure (measurable_of_countable f).aestronglyMeasurable
25 (measurable_of_countable _).aemeasurable).mpr Integrable.of_finite
26
27theorem integral_lattice_observable (d N : ℕ) (p : Fin (d+1) → ℝ)
28 (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) (f : Lattice d (N : ℤ) → ℝ) :
29 (∫ μ, f μ ∂(tensorYoungLatticePMF d N p hp hs).toMeasure) =
30 ∑ μ : Shape (d+1) N, (tensorYoungPMF N (d+1) p hp hs μ).toReal * f (shapeLattice d N μ) := by
31 rw [tensorYoungLatticePMF, ← PMF.toMeasure_map (shapeLattice d N) (tensorYoungPMF N (d+1) p hp hs) (measurable_of_countable (shapeLattice d N)),
32 integral_map (measurable_of_countable _).aemeasurable (measurable_of_countable f).aestronglyMeasurable,
33 PMF.integral_eq_sum]
34 rfl
35
36theorem sampleCenter_flat_norm_sq (d N : ℕ) (hN : 0 < N) (μ : Shape (d+1) N)
37 (hs : ∑ i, (μ i).val = N) :
38 ‖sampleCenter d N (flatSpectrum (d+1)) (shapeLattice d N μ)‖^2 =
39 (∑ i, (((μ i).val : ℝ)-(N : ℝ)/((d+1 : ℕ) : ℝ))^2)/(N : ℝ) := by
40 change ‖(sampleCenter d N (flatSpectrum (d+1)) (shapeLattice d N μ)).1‖^2 = _
41 rw [EuclideanSpace.real_norm_sq_eq]
42 simp_rw [sampleCenter_apply d N _ (flatSpectrum_sum _ (by omega)),
43 shapeLattice_apply d N μ hs, Int.cast_natCast, flatSpectrum, div_pow,
44 Real.sq_sqrt (Nat.cast_nonneg N), mul_one_div]
45 rw [Finset.sum_div]
46
47/-- Integrability of the rounded-center moment uses finite physical label support. -/
48theorem integrable_cellCenter_norm_sq (d N : ℕ) (hN : 0 < N) :
49 Integrable (fun x ↦ ‖cellCenter d N x‖^2) (smoothedMeasure d N) := by
50 let p := flatSpectrum (d+1)
51 let hp : ∀ i, 0 ≤ p i := fun _ ↦ by dsimp [p, flatSpectrum]; positivity
52 let hs := flatSpectrum_sum (d+1) (by omega)
53 have hi := integrable_lattice_observable d N p hp hs
54 (fun μ ↦ ‖sampleCenter d N p μ‖^2)
55 rw [← map_sampleLabel_physicalSmoothedMeasure d N hN p hp hs] at hi
56 exact hi.comp_aemeasurable (measurable_sampleLabel d N p).aemeasurable
57
58/-- The exact physical Casimir estimate survives quantization without error. -/
59theorem integral_cellCenter_norm_sq_le (d N : ℕ) (hN : 0 < N) :
60 (∫ x, ‖cellCenter d N x‖^2 ∂smoothedMeasure d N) ≤ ((d+1 : ℕ) : ℝ) := by
61 let p := flatSpectrum (d+1)
62 let hp : ∀ i, 0 ≤ p i := fun _ ↦ by dsimp [p, flatSpectrum]; positivity
63 let hs := flatSpectrum_sum (d+1) (by omega)
64 change (∫ x, ‖sampleCenter d N p (sampleLabel d N p x)‖^2
65 ∂physicalSmoothedMeasure d N p hp hs) ≤ _
66 rw [integral_sampleLabel_physicalSmoothedMeasure d N hN p hp hs
67 (fun μ : Lattice d (N : ℤ) ↦ ‖sampleCenter d N p μ‖^2),
68 integral_lattice_observable d N p hp hs
69 (fun μ : Lattice d (N : ℤ) ↦ ‖sampleCenter d N p μ‖^2)]
70 have he : (∑ μ : Shape (d+1) N, (tensorYoungPMF N (d+1) p hp hs μ).toReal *
71 ‖sampleCenter d N p (shapeLattice d N μ)‖^2) =
72 (∑ μ : Shape (d+1) N, (tensorFlatYoungPMF N (d+1) (by omega) μ).toReal *
73 (∑ i, (((μ i).val : ℝ)-(N : ℝ)/((d+1 : ℕ) : ℝ))^2))/(N : ℝ) := by
74 rw [Finset.sum_div]
75 apply Finset.sum_congr rfl
76 intro μ _
77 by_cases hsum : ∑ i, (μ i).val = N
78 · rw [sampleCenter_flat_norm_sq d N hN μ hsum]
79 exact (mul_div_assoc _ _ _).symm
80 · have hz : tensorYoungPMF N (d+1) p hp hs μ = 0 :=
81 physicalYoungPMF_eq_zero_of_not_partition _ _ _ _ _ _ μ (Or.inr hsum)
82 change (tensorYoungPMF N (d+1) p hp hs μ).toReal * _ =
83 ((tensorYoungPMF N (d+1) p hp hs μ).toReal * _)/(N : ℝ)
84 simp [hz]
85 rw [he]
86 have hm := tensorFlatYoungPMF_centered_second_moment_le (n := N) (by omega : 0<d+1)
87 have hnR : (0 : ℝ) < N := by exact_mod_cast hN
88 apply (div_le_iff₀ hnR).mpr
89 have hr : (0 : ℝ) ≤ 1/((d+1 : ℕ) : ℝ) := by positivity
90 nlinarith
91
92end Cloning.YoungFlat