Offline · exact source
Exact Lean source

YoungPhysicalRoundingAffinity

formalization/Cloning/YoungPhysicalRoundingAffinity.lean

Source hash: 060f20cfee7704a51fa1b1e672c3640b4f23493936e4a37552f6c607c3626b4c

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.

Paper ↔ Lean correspondence in this module
Declarations in this module
1import Cloning.YoungPhysicalRoundingGaussian
2import Cloning.YoungPhysicalRoundingLabels
3 
4/-! Exact asymptotic label affinity for the actual physical randomized Young output. -/
5noncomputable section
6open scoped BigOperators Topology Classical
7open Filter MeasureTheory
8namespace Cloning.YoungHyperplane
9open Cloning.TensorLie Cloning.YoungGeneral Cloning.YoungCompatibility Cloning.YoungRounding
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 1200000
12 
13/-- Physical lattice affinity is exactly the continuous affinity of the actual output cells. -/
14theorem tensorYoungRawOutput_affinity_eq_integral (d n m : ℕ) (hm : 0 < m) (γ : ℝ)
15    (p : Fin (d+1) → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) :
16    CountableScheffe.affinity (probability (tensorYoungRawOutput d n m γ p hp hs))
17      (probability (tensorYoungIntegerPMF d m p hp hs)) =
18    ∫ x, Real.sqrt (roundedDensity (Real.sqrt (m : ℝ))⁻¹ (headAnchor d m p) γ
19      (tensorYoungHeadPMF d n p hp hs) x)*Real.sqrt (headDensity d m p hp hs x) := by
20  rw [tensorYoungRawOutput_affinity, roundedDensity, headDensity,
21    affineDensity_affinity d _ (by positivity)]
22  exact (YoungRounding.interpolate_affinity
23    (probability_nonneg (transport γ (tensorYoungHeadPMF d n p hp hs)))
24    (probability_nonneg (tensorYoungHeadPMF d m p hp hs))
25    (hasSum_probability (transport γ (tensorYoungHeadPMF d n p hp hs))).summable
26    (hasSum_probability (tensorYoungHeadPMF d m p hp hs)).summable).symm
27 
28/-- For moving spectra and arbitrary divergent sizes the literal raw kernel attains the
29classical Gaussian fidelity factor. -/
30theorem tensorYoungRawOutput_affinity_tendsto (d : ℕ) (n m : ℕ → ℕ)
31    (hn : Tendsto n atTop atTop) (hm : Tendsto m atTop atTop)
32    (hn0 : ∀ k, 0 < n k) (hm0 : ∀ k, 0 < m k)
33    (γ : ℝ) (hγ : 0 < γ) (hratio : Tendsto (fun k ↦ (m k : ℝ)/n k) atTop (𝓝 γ))
34    (p : ℕ → Fin (d + 1) → ℝ) (hp : ∀ k, ∑ i, p k i = 1)
35    (hp0 : ∀ k i, 0 < p k i) (p₀ : Fin (d + 1) → ℝ) (hs₀ : ∑ i, p₀ i = 1)
36    (hp₀ : ∀ i, 0 < p₀ i) (hord : StrictAnti p₀)
37    (hlim : ∀ i, Tendsto (fun k ↦ p k i) atTop (𝓝 (p₀ i))) :
38    Tendsto (fun k ↦ CountableScheffe.affinity
39      (probability (tensorYoungRawOutput d (n k) (m k) ((m k : ℝ)/n k) (p k)
40        (fun i ↦ (hp0 k i).le) (hp k)))
41      (probability (tensorYoungIntegerPMF d (m k) (p k) (fun i ↦ (hp0 k i).le) (hp k))))
42      atTop (𝓝 (Cloning.classicalValue γ (d+1))) := by
43  have hfr := rounded_tensorYoungDensity_l1_tendsto d n m hn hm hn0 hm0 γ hγ hratio
44    p hp hp0 p₀ hs₀ hp₀ hord hlim
45  have hgr := headDensity_l1_tendsto d m hm hm0 p hp hp0 p₀ hs₀ hp₀ hord hlim
46  let F := fun k ↦ roundedDensity (Real.sqrt (m k : ℝ))⁻¹ (headAnchor d (m k) (p k))
47    ((m k : ℝ)/n k) (tensorYoungHeadPMF d (n k) (p k) (fun i ↦ (hp0 k i).le) (hp k))
48  let G := fun k ↦ headDensity d (m k) (p k) (fun i ↦ (hp0 k i).le) (hp k)
49  let F₀ := affineDensity (Real.sqrt γ) 0 (headGaussian d p₀ hs₀)
50  let G₀ := headGaussian d p₀ hs₀
51  have hFi k : Integrable (F k) :=
52    integrable_affineDensity _ (by positivity [hm0 k]) _
53      (integrable_interpolate (hasSum_probability _).summable)
54  have hGi k : Integrable (G k) := integrable_headDensity d _ (hm0 k) _ _ _
55  have hF₀i : Integrable F₀ := integrable_affineDensity _ (by positivity) _
56    (integrable_headGaussian d p₀ hs₀ hp₀)
57  have hG₀i : Integrable G₀ := integrable_headGaussian d p₀ hs₀ hp₀
58  have hF0 k x : 0 ≤ F k x := by
59    dsimp [F, roundedDensity, affineDensity, YoungRounding.interpolate]
60    positivity
61  have hF₀0 x : 0 ≤ F₀ x :=
62    mul_nonneg (by positivity) (headGaussian_nonneg d p₀ hs₀ _)
63  have hFmass : (∫ x, F₀ x) = 1 := by
64    rw [integral_affineDensity _ (by positivity), integral_headGaussian d p₀ hs₀ hp₀]
65  have h := density_affinity_tendsto volume F G F₀ G₀ hFi hGi hF₀i hG₀i hF0
66    (fun k ↦ headDensity_nonneg d _ _ _ _) hF₀0 (headGaussian_nonneg d p₀ hs₀)
67    hFmass (fun k ↦ integral_headDensity d _ (hm0 k) _ _ _) hfr hgr
68  have hc : (∫ x, Real.sqrt (F₀ x)*Real.sqrt (G₀ x)) = Cloning.classicalValue γ (d+1) := by
69    simpa only [F₀, G₀, mul_comm] using headGaussian_dilation_affinity d p₀ hs₀ hp₀ γ hγ
70  rw [hc] at h
71  simpa only [tensorYoungRawOutput_affinity_eq_integral d _ _ (hm0 _), F, G] using h
72 
73/-- Uniformity over every compact subset of the positive ordered simplex. -/
74theorem uniform_tensorYoungRawOutput_affinity (d : ℕ)
75    (K : Set (Fin (d+1) → ℝ)) (hK : IsCompact K)
76    (hp : ∀ p ∈ K, ∑ i, p i = 1) (hp0 : ∀ p ∈ K, ∀ i, 0 < p i)
77    (hord : ∀ p ∈ K, StrictAnti p)
78    (m : ℕ → ℕ) (hm : Tendsto m atTop atTop)
79    (γ : ℝ) (hγ : 0 < γ) (hratio : Tendsto (fun n ↦ (m n : ℝ)/n) atTop (𝓝 γ))
80    (ε : ℝ) (hε : 0 < ε) :
81    ∃ N₀ : ℕ, ∀ N ≥ N₀, ∀ (p : Fin (d+1) → ℝ) (hpK : p ∈ K),
82      |CountableScheffe.affinity
83        (probability (tensorYoungRawOutput d N (m N) ((m N : ℝ)/N) p
84          (fun i ↦ (hp0 p hpK i).le) (hp p hpK)))
85        (probability (tensorYoungIntegerPMF d (m N) p
86          (fun i ↦ (hp0 p hpK i).le) (hp p hpK))) - Cloning.classicalValue γ (d+1)| < ε := by
87  obtain ⟨M, hM⟩ := eventually_atTop.mp (hm.eventually (eventually_ge_atTop 1))
88  by_contra h
89  push_neg at h
90  have hbad k := h (max k (max M 1))
91  choose n hn p hpK hb using hbad
92  obtain ⟨p₀, hp₀K, φ, hφ, hconv⟩ := hK.tendsto_subseq hpK
93  have hnlim : Tendsto n atTop atTop :=
94    tendsto_atTop_mono (fun k ↦ (le_max_left k _).trans (hn k)) tendsto_id
95  have hn0 k : 0 < n (φ k) := by have h := hn (φ k); omega
96  have hm0 k : 0 < m (n (φ k)) := by
97    have hh : M ≤ n (φ k) := by have h := hn (φ k); omega
98    exact Nat.lt_of_lt_of_le (by omega) (hM _ hh)
99  have hlim i : Tendsto (fun k ↦ p (φ k) i) atTop (𝓝 (p₀ i)) :=
100    (continuous_apply i).continuousAt.tendsto.comp hconv
101  have ht := tensorYoungRawOutput_affinity_tendsto d (fun k ↦ n (φ k))
102    (fun k ↦ m (n (φ k))) (hnlim.comp hφ.tendsto_atTop)
103    (hm.comp (hnlim.comp hφ.tendsto_atTop)) hn0 hm0 γ hγ
104    (hratio.comp (hnlim.comp hφ.tendsto_atTop)) (fun k ↦ p (φ k))
105    (fun k ↦ hp _ (hpK (φ k))) (fun k ↦ hp0 _ (hpK (φ k)))
106    p₀ (hp p₀ hp₀K) (hp0 p₀ hp₀K) (hord p₀ hp₀K) hlim
107  have he := (Metric.tendsto_nhds.mp ht ε hε)
108  obtain ⟨k, hk⟩ := he.exists
109  rw [Real.dist_eq] at hk
110  exact (not_lt_of_ge (hb (φ k))) hk
111 
112end Cloning.YoungHyperplane