Offline · exact source
Exact Lean source

YoungPhysicalRounding

formalization/Cloning/YoungPhysicalRounding.lean

Source hash: 106b49a83ee488c053f37f5c52cffaf9f1b9112c8b4bac4dc2bbbee3c4280b92

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.YoungPhysicalRoundingAffinity
2 
3/-! Compact-uniform classical cloning cost of the actual physical Young kernel,
4including the specified compatibility fallback. -/
5noncomputable section
6open scoped BigOperators Topology Classical
7open Filter MeasureTheory
8namespace Cloning.YoungHyperplane
9open Cloning.TensorLie Cloning.YoungGeneral Cloning.YoungCompatibility
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 1200000
12 
13/-- Compact-uniform invisibility of the actual fallback, against any normalized target. -/
14theorem uniform_tensorYoungFallback_affinity_error {d : ℕ} (hd : 1 ≤ d)
15    (K : Set (Fin (d+1) → ℝ)) (hK : IsCompact K)
16    (hp : ∀ p ∈ K, ∑ i, p i = 1) (hp0 : ∀ p ∈ K, ∀ i, 0 < p i)
17    (hord : ∀ p ∈ K, StrictAnti p)
18    (m : ℕ → ℕ) (γ : ℝ) (hγ : 1 < γ)
19    (hratio : Tendsto (fun n ↦ (m n : ℝ)/n) atTop (𝓝 γ))
20    (ε : ℝ) (hε : 0 < ε) :
21    ∃ N₀ : ℕ, ∀ N ≥ N₀, ∀ (p : Fin (d+1) → ℝ) (hpK : p ∈ K),
22      ∀ Q : PMF (Fin (d+1) → ℤ),
23      |CountableScheffe.affinity
24        (probability (tensorYoungFallbackOutput d N (m N) ((m N : ℝ)/N) p
25          (fun i ↦ (hp0 p hpK i).le) (hp p hpK))) (probability Q) -
26       CountableScheffe.affinity
27        (probability (tensorYoungRawOutput d N (m N) ((m N : ℝ)/N) p
28          (fun i ↦ (hp0 p hpK i).le) (hp p hpK))) (probability Q)| < ε := by
29  let mz : ℕ → ℤ := fun n ↦ if n = 0 then 0 else m n
30  have hmz n : (mz n : ℝ) = ((m n : ℝ)/n)*(n : ℝ) := by
31    by_cases hn : n = 0
32    · simp [mz, hn]
33    · simp [mz, hn, div_mul_cancel₀ _ (by exact_mod_cast hn : (n : ℝ) ≠ 0)]
34  obtain ⟨a, ha, hpK, hgap⟩ := compact_spectra_positive_gap K hK hp0 hord
35  have he := eventually_rounding_support_compatible hd mz (fun n ↦ (m n : ℝ)/n)
36    shrinkingRadius γ a ha hγ hratio shrinkingRadius_tendsto_zero hmz
37  let s := Fintype.card (PositiveRoot (d+1))
38  let B := fun n : ℕ ↦ (((d+1 : ℕ) : ℝ)+1)^s *
39    (((n : ℝ)+1)^s * concentrationEnvelope (d+1) n)
40  have hB : Tendsto B atTop (𝓝 0) := by
41    simpa only [B, mul_zero] using
42      (polynomial_concentrationEnvelope_tendsto_zero (d+1) s).const_mul
43        ((((d+1 : ℕ) : ℝ)+1)^s)
44  have hcost : Tendsto (fun n ↦ Real.sqrt (2*B n)) atTop (𝓝 0) := by
45    simpa only [mul_zero, Real.sqrt_zero] using (hB.const_mul 2).sqrt
46  have hev : ∀ᶠ N : ℕ in atTop, ∀ (p : Fin (d+1) → ℝ) (hpIn : p ∈ K),
47      ∀ Q : PMF (Fin (d+1) → ℤ),
48      |CountableScheffe.affinity
49        (probability (tensorYoungFallbackOutput d N (m N) ((m N : ℝ)/N) p
50          (fun i ↦ (hp0 p hpIn i).le) (hp p hpIn))) (probability Q) -
51       CountableScheffe.affinity
52        (probability (tensorYoungRawOutput d N (m N) ((m N : ℝ)/N) p
53          (fun i ↦ (hp0 p hpIn i).le) (hp p hpIn))) (probability Q)| < ε := by
54    filter_upwards [he, hcost.eventually (gt_mem_nhds hε), eventually_ge_atTop 1] with N hN hc hN0
55    intro p hpIn Q
56    let P := tensorYoungPMF N (d+1) p (fun i ↦ (hp0 p hpIn i).le) (hp p hpIn)
57    have hsame (μ : Shape (d+1) N)
58        (hμ : Typical N p (shrinkingRadius N) (integerShape μ)) :
59        fallbackKernel ((m N : ℝ)/N) N (m N) (integerShape μ) =
60          rawKernel ((m N : ℝ)/N) (m N) (integerShape μ) := by
61      apply fallbackKernel_eq_raw_of_support
62      have hh := hN p (hpK p hpIn) (hgap p hpIn) (integerShape μ) hμ.1.2.2 hμ.2
63      simpa only [mz, if_neg (by omega : N ≠ 0)] using hh
64    have hb := bind_fallback_affinity_bound P _ _
65      (fun μ ↦ Typical N p (shrinkingRadius N) (integerShape μ)) hsame Q
66    have hbad := tensorYoung_badMass_le_tail (N := N) p (fun i ↦ (hp0 p hpIn i).le)
67      (hp p hpIn) (shrinkingRadius N)
68    have htail := tensorYoungPMF_tail_shrinking_le N hN0 p (fun i ↦ (hp0 p hpIn i).le)
69      (hp p hpIn) (hord p hpIn).antitone
70    exact (hb.trans (Real.sqrt_le_sqrt (mul_le_mul_of_nonneg_left (hbad.trans htail) (by norm_num)))).trans_lt hc
71  exact eventually_atTop.mp hev
72 
73/-- The manuscript's actual normalized fallback kernel has exactly the Gaussian
74classical cloning cost, uniformly on compact strictly ordered positive spectra.
75All physical Young-law, concentration, cell, Jacobian, and rounding estimates are proved. -/
76theorem uniform_tensorYoungFallbackOutput_affinity {d : ℕ} (hd : 1 ≤ d)
77    (K : Set (Fin (d+1) → ℝ)) (hK : IsCompact K)
78    (hp : ∀ p ∈ K, ∑ i, p i = 1) (hp0 : ∀ p ∈ K, ∀ i, 0 < p i)
79    (hord : ∀ p ∈ K, StrictAnti p)
80    (m : ℕ → ℕ) (hm : Tendsto m atTop atTop)
81    (γ : ℝ) (hγ : 1 < γ) (hratio : Tendsto (fun n ↦ (m n : ℝ)/n) atTop (𝓝 γ))
82    (ε : ℝ) (hε : 0 < ε) :
83    ∃ N₀ : ℕ, ∀ N ≥ N₀, ∀ (p : Fin (d+1) → ℝ) (hpK : p ∈ K),
84      |CountableScheffe.affinity
85        (probability (tensorYoungFallbackOutput d N (m N) ((m N : ℝ)/N) p
86          (fun i ↦ (hp0 p hpK i).le) (hp p hpK)))
87        (probability (tensorYoungIntegerPMF d (m N) p
88          (fun i ↦ (hp0 p hpK i).le) (hp p hpK))) - Cloning.classicalValue γ (d+1)| < ε := by
89  obtain ⟨N₁, hN₁⟩ := uniform_tensorYoungRawOutput_affinity d K hK hp hp0 hord
90    m hm γ (by linarith) hratio (ε/2) (by positivity)
91  obtain ⟨N₂, hN₂⟩ := uniform_tensorYoungFallback_affinity_error hd K hK hp hp0 hord
92    m γ hγ hratio (ε/2) (by positivity)
93  refine ⟨max N₁ N₂, fun N hN p hpK ↦ ?_⟩
94  have h1 := hN₁ N ((le_max_left _ _).trans hN) p hpK
95  have h2 := hN₂ N ((le_max_right _ _).trans hN) p hpK
96    (tensorYoungIntegerPMF d (m N) p (fun i ↦ (hp0 p hpK i).le) (hp p hpK))
97  have ht := abs_sub_le
98    (CountableScheffe.affinity
99      (probability (tensorYoungFallbackOutput d N (m N) ((m N : ℝ)/N) p
100        (fun i ↦ (hp0 p hpK i).le) (hp p hpK)))
101      (probability (tensorYoungIntegerPMF d (m N) p (fun i ↦ (hp0 p hpK i).le) (hp p hpK))))
102    (CountableScheffe.affinity
103      (probability (tensorYoungRawOutput d N (m N) ((m N : ℝ)/N) p
104        (fun i ↦ (hp0 p hpK i).le) (hp p hpK)))
105      (probability (tensorYoungIntegerPMF d (m N) p (fun i ↦ (hp0 p hpK i).le) (hp p hpK))))
106    (Cloning.classicalValue γ (d+1))
107  linarith
108 
109end Cloning.YoungHyperplane