Exact Lean source
YoungUniformLocalQuantization
formalization/Cloning/YoungUniformLocalQuantization.lean
Source hash: 3c8cb6d60b1907b7cfa0f597d4beb90c9ac583c1a8b8cd933c06a4234428495c
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.YoungUniformLocalPhysicalL1
2
3/-! Exact recovery of the physical lattice law by quantization, and the
4Gaussian reverse approximation obtained from actual density convergence. -/
5
6noncomputable section
7open scoped BigOperators Topology Classical ENNReal
8open Filter MeasureTheory
9namespace Cloning.YoungHyperplane
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 1000000
12
13instance latticeMeasurableSpace (d : ℕ) (N : ℤ) : MeasurableSpace (Lattice d N) := by
14 unfold Lattice
15 infer_instance
16
17instance latticeMeasurableSingletonClass (d : ℕ) (N : ℤ) :
18 MeasurableSingletonClass (Lattice d N) := by
19 change MeasurableSingletonClass {μ : Fin (d + 1) → ℤ // ∑ i, μ i = N}
20 infer_instance
21
22instance latticeCountable (d : ℕ) (N : ℤ) : Countable (Lattice d N) := by
23 unfold Lattice
24 infer_instance
25
26theorem measurable_sampleLabel (d N : ℕ) (p : Fin (d + 1) → ℝ) :
27 Measurable (sampleLabel d N p) := by
28 unfold sampleLabel
29 apply (measurable_of_countable (latticeCoordinates d (N : ℤ))).comp
30 apply YoungRounding.measurable_round.comp
31 apply measurable_pi_lambda
32 intro i
33 exact measurable_const.mul
34 ((measurable_pi_apply i).comp (coordinatesContinuous d).symm.continuous.measurable) |>.add_const _
35
36theorem sampleLabel_fiber (d N : ℕ) (p : Fin (d + 1) → ℝ) (μ : Lattice d (N : ℤ)) :
37 (sampleLabel d N p) ⁻¹' {μ} = sampleCell d N p μ := by
38 ext x
39 simp only [Set.mem_preimage, Set.mem_singleton_iff, sampleLabel, sampleCell, Set.mem_setOf_eq,
40 Int.cast_natCast, ← YoungRounding.round_eq_iff]
41 constructor
42 · intro h
43 simpa only [Equiv.symm_apply_apply] using congrArg (latticeCoordinates d (N : ℤ)).symm h
44 · intro h
45 rw [h, Equiv.apply_symm_apply]
46
47/-- Integrating one genuine interpolated physical cell recovers its exact
48original label probability. -/
49theorem binMass_tensorYoungDensity (d N : ℕ) (hN : 0 < N)
50 (p : Fin (d + 1) → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1)
51 (μ : Lattice d (N : ℤ)) :
52 YoungRounding.binMass volume (sampleLabel d N p) (tensorYoungDensity d N p hp hs) μ =
53 (tensorYoungLatticePMF d N p hp hs μ).toReal := by
54 have hn : (0 : ℝ) < N := by exact_mod_cast hN
55 have hnz : Real.sqrt (N : ℝ) ≠ 0 := (Real.sqrt_pos.mpr hn).ne'
56 have hdz : Real.sqrt ((d : ℝ) + 1) ≠ 0 := by positivity
57 rw [YoungRounding.binMass, sampleLabel_fiber, tensorYoungDensity]
58 rw [setIntegral_congr_fun (measurableSet_sampleCell d N p μ)
59 (fun x hx ↦ sampleInterpolate_eq_on_cell d N (by exact_mod_cast hN) p
60 (fun μ ↦ (tensorYoungLatticePMF d N p hp hs μ).toReal) μ x hx), setIntegral_const]
61 simp only [Measure.real, volume_sampleCell d N (by exact_mod_cast hN),
62 ENNReal.toReal_mul, ENNReal.toReal_ofReal (by positivity : 0 ≤ Real.sqrt ((d : ℝ) + 1)),
63 ENNReal.toReal_ofReal (by positivity : 0 ≤ ((Real.sqrt (N : ℝ)) ^ d)⁻¹),
64 smul_eq_mul, Int.cast_natCast]
65 field_simp
66
67/-- Quantizing the actual covariance Gaussian approximates the actual Young
68label law, with no independently assumed discrete approximation. -/
69theorem quantized_covarianceGaussian_l1_le (d N : ℕ) (hN : 0 < N)
70 (p : Fin (d + 1) → ℝ) (hp : ∀ i, 0 < p i) (hs : ∑ i, p i = 1) :
71 (∑' μ : Lattice d (N : ℤ),
72 |(tensorYoungLatticePMF d N p (fun i ↦ (hp i).le) hs μ).toReal -
73 YoungRounding.binMass volume (sampleLabel d N p) (covarianceGaussian d p hs) μ|) ≤
74 ∫ x, |tensorYoungDensity d N p (fun i ↦ (hp i).le) hs x - covarianceGaussian d p hs x| ∂volume := by
75 have h := YoungRounding.binMass_l1_contraction volume (measurable_sampleLabel d N p)
76 (integrable_tensorYoungDensity d N hN p (fun i ↦ (hp i).le) hs)
77 (integrable_covarianceGaussian d p hs hp)
78 simpa only [binMass_tensorYoungDensity d N hN p (fun i ↦ (hp i).le) hs] using h
79
80/-- Compact-uniform reverse quantization for the physical Young measurement. -/
81theorem uniform_quantized_covarianceGaussian_l1 (d : ℕ) (K : Set (Fin (d + 1) → ℝ))
82 (hK : IsCompact K) (hp : ∀ p ∈ K, ∑ i, p i = 1)
83 (hp0 : ∀ p ∈ K, ∀ i, 0 < p i) (hord : ∀ p ∈ K, StrictAnti p)
84 (ε : ℝ) (hε : 0 < ε) :
85 ∃ N₀ : ℕ, ∀ N ≥ N₀, ∀ (p : Fin (d + 1) → ℝ) (hpK : p ∈ K),
86 (∑' μ : Lattice d (N : ℤ),
87 |(tensorYoungLatticePMF d N p (fun i ↦ (hp0 p hpK i).le) (hp p hpK) μ).toReal -
88 YoungRounding.binMass volume (sampleLabel d N p) (covarianceGaussian d p (hp p hpK)) μ|) < ε := by
89 obtain ⟨N₀, hN₀⟩ := uniform_tensorYoungDensity_l1 d K hK hp hp0 hord ε hε
90 refine ⟨max N₀ 1, ?_⟩
91 intro N hN p hpK
92 exact (quantized_covarianceGaussian_l1_le d N (by omega) p (hp0 p hpK) (hp p hpK)).trans_lt
93 (hN₀ N (by omega) p hpK)
94
95end Cloning.YoungHyperplane