Offline · exact source
Exact Lean source

YoungFlatSmoothing

formalization/Cloning/YoungFlatSmoothing.lean

Source hash: dbe01a283a6a1093f9b2fb1657f6e75651ed86864aeeb5fb0c4a0874cebd4991

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.YoungFlatLocal
2import Cloning.YoungUniformLocalQuantization
3import Mathlib.Probability.ProbabilityMassFunction.Integrals
4 
5/-! Exact probability measures and label recovery for physical Young smoothing. -/
6noncomputable section
7open scoped BigOperators Topology Classical ENNReal
8open MeasureTheory Filter
9namespace Cloning.YoungHyperplane
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 1000000
12 
13def physicalSmoothedMeasure (d N : ℕ) (p : Fin (d+1) → ℝ)
14    (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) : Measure (rootSpace d) :=
15  volume.withDensity (fun x ↦ ENNReal.ofReal (tensorYoungDensity d N p hp hs x))
16 
17theorem physicalSmoothedMeasure_apply (d N : ℕ) (hN : 0 < N) (p : Fin (d+1) → ℝ)
18    (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) (A : Set (rootSpace d)) (hA : MeasurableSet A) :
19    physicalSmoothedMeasure d N p hp hs A =
20      ENNReal.ofReal (∫ x in A, tensorYoungDensity d N p hp hs x) := by
21  rw [physicalSmoothedMeasure, withDensity_apply _ hA]
22  exact (ofReal_integral_eq_lintegral_ofReal
23    (integrable_tensorYoungDensity d N hN p hp hs).integrableOn
24    (ae_of_all _ fun x ↦ tensorYoungDensity_nonneg d N p hp hs x)).symm
25 
26theorem physicalSmoothedMeasure_isProbability (d N : ℕ) (hN : 0 < N) (p : Fin (d+1) → ℝ)
27    (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) :
28    IsProbabilityMeasure (physicalSmoothedMeasure d N p hp hs) := by
29  constructor
30  rw [physicalSmoothedMeasure_apply d N hN p hp hs _ MeasurableSet.univ,
31    setIntegral_univ, integral_tensorYoungDensity d N hN, ENNReal.ofReal_one]
32 
33/-- Quantization of the smoothed probability measure recovers exactly the actual physical law. -/
34theorem map_sampleLabel_physicalSmoothedMeasure (d N : ℕ) (hN : 0 < N)
35    (p : Fin (d+1) → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) :
36    Measure.map (sampleLabel d N p) (physicalSmoothedMeasure d N p hp hs) =
37      (tensorYoungLatticePMF d N p hp hs).toMeasure := by
38  apply Measure.ext_of_singleton
39  intro μ
40  rw [Measure.map_apply (measurable_sampleLabel d N p) (measurableSet_singleton μ),
41    physicalSmoothedMeasure_apply d N hN p hp hs _
42      ((measurable_sampleLabel d N p) (measurableSet_singleton μ)),
43    PMF.toMeasure_apply_singleton _ _ (measurableSet_singleton μ)]
44  change ENNReal.ofReal (YoungRounding.binMass volume (sampleLabel d N p)
45    (tensorYoungDensity d N p hp hs) μ) = _
46  rw [binMass_tensorYoungDensity d N hN p hp hs,
47    ENNReal.ofReal_toReal (PMF.apply_ne_top _ _)]
48 
49/-- Every lattice observable can be integrated using the exact physical measurement law. -/
50theorem integral_sampleLabel_physicalSmoothedMeasure (d N : ℕ) (hN : 0 < N)
51    (p : Fin (d+1) → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1)
52    (f : Lattice d (N : ℤ) → ℝ) :
53    (∫ x, f (sampleLabel d N p x) ∂physicalSmoothedMeasure d N p hp hs) =
54      ∫ μ, f μ ∂(tensorYoungLatticePMF d N p hp hs).toMeasure := by
55  rw [← map_sampleLabel_physicalSmoothedMeasure d N hN p hp hs]
56  exact (integral_map (measurable_sampleLabel d N p).aemeasurable
57    (measurable_of_countable f).aestronglyMeasurable).symm
58 
59end Cloning.YoungHyperplane