Offline · exact source
Exact Lean source

YoungPhysicalRoundingUniformDensity

formalization/Cloning/YoungPhysicalRoundingUniformDensity.lean

Source hash: fbf92f21fc0abd682408d5e6ff59cfcd12fc74e21acac670f74cc25c931eb0f5

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.

In the dependency map: Lifted channels

Paper ↔ Lean correspondence in this module
Declarations in this module
1import Cloning.YoungPhysicalRoundingLimit
2 
3/-! Compact-uniform L1 convergence of the raw rounded physical Young law,
4with the Gaussian covariance evaluated at the current spectrum. -/
5noncomputable section
6open scoped BigOperators Topology Classical
7open MeasureTheory Filter
8namespace Cloning.YoungHyperplane
9open Cloning.YoungRounding Cloning.YoungGeneral Cloning.YoungCompatibility
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 1600000
12 
13/-- Gaussian continuity survives the coordinate Jacobian and fixed dilation. -/
14theorem dilated_headGaussian_l1_tendsto (d : ℕ)
15    (p : ℕ → Fin (d+1) → ℝ) (p₀ : Fin (d+1) → ℝ)
16    (hp : ∀ k,∑ i,p k i=1) (hs₀ : ∑ i,p₀ i=1)
17    (hp0 : ∀ k i,0<p k i) (hp₀ : ∀ i,0<p₀ i)
18    (hlim : ∀ i,Tendsto (fun k => p k i) atTop (𝓝 (p₀ i)))
19    (γ : ℝ) (hγ : 0<γ) :
20    Tendsto (fun k => ∫ x,|affineDensity (Real.sqrt γ) 0 (headGaussian d (p k) (hp k)) x-
21      affineDensity (Real.sqrt γ) 0 (headGaussian d p₀ hs₀) x|) atTop (𝓝 0) := by
22  simpa only [affineDensity_l1_isometry (Real.sqrt γ) (Real.sqrt_pos.mpr hγ),
23    headGaussian,coordinateDensity_l1_isometry] using
24    covarianceGaussian_l1_tendsto d p p₀ hp hs₀ hp0 hp₀ hlim
25 
26/-- The sequential raw rounded-density limit with a moving covariance. -/
27theorem rounded_tensorYoungDensity_l1_moving_gaussian (d : ℕ) (n m : ℕ → ℕ)
28    (hn : Tendsto n atTop atTop) (hm : Tendsto m atTop atTop)
29    (hn0 : ∀ k,0<n k) (hm0 : ∀ k,0<m k)
30    (γ : ℝ) (hγ : 0<γ) (hratio : Tendsto (fun k => (m k : ℝ)/n k) atTop (𝓝 γ))
31    (p : ℕ → Fin (d+1) → ℝ) (hp : ∀ k,∑ i,p k i=1)
32    (hp0 : ∀ k i,0<p k i) (p₀ : Fin (d+1) → ℝ) (hs₀ : ∑ i,p₀ i=1)
33    (hp₀ : ∀ i,0<p₀ i) (hord : StrictAnti p₀)
34    (hlim : ∀ i,Tendsto (fun k => p k i) atTop (𝓝 (p₀ i))) :
35    Tendsto (fun k => ∫ x,|roundedDensity (Real.sqrt (m k : ℝ))⁻¹ (headAnchor d (m k) (p k))
36      ((m k : ℝ)/n k) (tensorYoungHeadPMF d (n k) (p k) (fun i => (hp0 k i).le) (hp k)) x-
37      affineDensity (Real.sqrt γ) 0 (headGaussian d (p k) (hp k)) x|) atTop (𝓝 0) := by
38  have hf := rounded_tensorYoungDensity_l1_tendsto d n m hn hm hn0 hm0 γ hγ hratio
39    p hp hp0 p₀ hs₀ hp₀ hord hlim
40  have hg := dilated_headGaussian_l1_tendsto d p p₀ hp hs₀ hp0 hp₀ hlim γ hγ
41  have ht := hf.add hg
42  simp only [zero_add] at ht
43  apply squeeze_zero (fun k => integral_nonneg (fun _ => abs_nonneg _)) ?_ ht
44  intro k
45  let F := roundedDensity (Real.sqrt (m k : ℝ))⁻¹ (headAnchor d (m k) (p k))
46    ((m k : ℝ)/n k) (tensorYoungHeadPMF d (n k) (p k) (fun i => (hp0 k i).le) (hp k))
47  let G := affineDensity (Real.sqrt γ) 0 (headGaussian d (p k) (hp k))
48  let Z := affineDensity (Real.sqrt γ) 0 (headGaussian d p₀ hs₀)
49  have hfi : Integrable F := integrable_affineDensity _ (by positivity [hm0 k]) _
50    (integrable_interpolate (hasSum_probability _).summable)
51  have hgi : Integrable G := integrable_affineDensity _ (by positivity) _
52    (integrable_headGaussian d (p k) (hp k) (hp0 k))
53  have hzi : Integrable Z := integrable_affineDensity _ (by positivity) _
54    (integrable_headGaussian d p₀ hs₀ hp₀)
55  change (∫ x,|F x-G x|)≤(∫ x,|F x-Z x|)+(∫ x,|G x-Z x|)
56  erw [← integral_add (hfi.sub hzi).abs (hgi.sub hzi).abs]
57  apply integral_mono (hfi.sub hgi).abs ((hfi.sub hzi).abs.add (hgi.sub hzi).abs)
58  intro x
59  simpa only [abs_sub_comm (Z x)] using abs_sub_le (F x) (Z x) (G x)
60 
61/-- The first conclusion of `lem:randomized-dilation`: one sample threshold
62works for every spectrum in the compact simple chamber. The law is the raw
63physical rounding before fallback, and the comparison covariance is γΣ_p. -/
64theorem uniform_rounded_tensorYoungDensity_l1 (d : ℕ)
65    (K : Set (Fin (d+1) → ℝ)) (hK : IsCompact K)
66    (hp : ∀ p∈K,∑ i,p i=1) (hp0 : ∀ p∈K,∀ i,0<p i)
67    (hord : ∀ p∈K,StrictAnti p)
68    (m : ℕ → ℕ) (hm : Tendsto m atTop atTop)
69    (γ : ℝ) (hγ : 0<γ) (hratio : Tendsto (fun n => (m n : ℝ)/n) atTop (𝓝 γ))
70    (ε : ℝ) (hε : 0<ε) :
71    ∃ N₀ : ℕ,∀ N≥N₀,∀ (p : Fin (d+1) → ℝ) (hpK : p∈K),
72      (∫ x,|roundedDensity (Real.sqrt (m N : ℝ))⁻¹ (headAnchor d (m N) p)
73        ((m N : ℝ)/N) (tensorYoungHeadPMF d N p (fun i => (hp0 p hpK i).le) (hp p hpK)) x-
74        affineDensity (Real.sqrt γ) 0 (headGaussian d p (hp p hpK)) x|)<ε := by
75  obtain ⟨M,hM⟩ := eventually_atTop.mp (hm.eventually (eventually_ge_atTop 1))
76  by_contra h
77  push_neg at h
78  have hbad k := h (max k (max M 1))
79  choose n hn p hpK hb using hbad
80  obtain ⟨p₀,hp₀K,φ,hφ,hconv⟩ := hK.tendsto_subseq hpK
81  have hnlim : Tendsto n atTop atTop :=
82    tendsto_atTop_mono (fun k => (le_max_left k _).trans (hn k)) tendsto_id
83  have hn0 k : 0<n (φ k) := by have h := hn (φ k); omega
84  have hm0 k : 0<m (n (φ k)) := by
85    have hh : M≤n (φ k) := by have h := hn (φ k); omega
86    exact Nat.lt_of_lt_of_le (by omega) (hM _ hh)
87  have hlim i : Tendsto (fun k => p (φ k) i) atTop (𝓝 (p₀ i)) :=
88    (continuous_apply i).continuousAt.tendsto.comp hconv
89  have ht := rounded_tensorYoungDensity_l1_moving_gaussian d (fun k => n (φ k))
90    (fun k => m (n (φ k))) (hnlim.comp hφ.tendsto_atTop)
91    (hm.comp (hnlim.comp hφ.tendsto_atTop)) hn0 hm0 γ hγ
92    (hratio.comp (hnlim.comp hφ.tendsto_atTop)) (fun k => p (φ k))
93    (fun k => hp _ (hpK (φ k))) (fun k => hp0 _ (hpK (φ k)))
94    p₀ (hp p₀ hp₀K) (hp0 p₀ hp₀K) (hord p₀ hp₀K) hlim
95  obtain ⟨k,hk⟩ := (ht.eventually (gt_mem_nhds hε)).exists
96  exact (not_lt_of_ge (hb (φ k))) hk
97 
98end Cloning.YoungHyperplane