Offline · exact source
Exact Lean source

YoungGeneralLimit

formalization/Cloning/YoungGeneralLimit.lean

Source hash: d546c232f0015219b8a1eb8fa19089f3e64dc06fb2f18ebaea7db1d7519ffa91

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.YoungGeneralTableaux
2 
3/-!
4# Shrinking-window concentration for the general tableau formula
5 
6The window is the manuscript's `N^(-1/3)`.  Its atypical mass tends to zero
7uniformly over the complete ordered probability simplex, including repeated
8eigenvalues.  The only assumptions concern the spectrum itself.
9-/
10 
11noncomputable section
12open scoped BigOperators Topology
13open Filter
14 
15namespace Cloning.YoungGeneral
16 
17def shrinkingRadius (N : ℕ) : ℝ := (N : ℝ) ^ (-(1 / 3 : ℝ))
18 
19def concentrationEnvelope (d N : ℕ) : ℝ :=
20  ((N : ℝ) + 1) ^ (d * d) * (2 * d * Real.exp (-((N : ℝ) ^ (1 / 3 : ℝ)) / 4))
21 
22theorem shrinkingRadius_nonneg (N : ℕ) : 0 ≤ shrinkingRadius N :=
23  Real.rpow_nonneg (Nat.cast_nonneg _) _
24 
25theorem shrinkingRadius_le_one (N : ℕ) (hN : 1 ≤ N) : shrinkingRadius N ≤ 1 := by
26  exact Real.rpow_le_one_of_one_le_of_nonpos (by exact_mod_cast hN) (by norm_num)
27 
28theorem shrinkingRadius_tendsto_zero : Tendsto shrinkingRadius atTop (𝓝 0) :=
29  (tendsto_rpow_neg_atTop (show (0 : ℝ) < 1 / 3 by norm_num)).comp tendsto_natCast_atTop_atTop
30 
31theorem sample_mul_radius_sq (N : ℕ) (hN : 0 < N) :
32    (N : ℝ) * shrinkingRadius N ^ 2 = (N : ℝ) ^ (1 / 3 : ℝ) := by
33  have hn : (0 : ℝ) < N := by exact_mod_cast hN
34  unfold shrinkingRadius
35  rw [← Real.rpow_natCast, ← Real.rpow_mul hn.le]
36  calc
37    _ = (N : ℝ) ^ (1 : ℝ) * (N : ℝ) ^ (-(1 / 3 : ℝ) * 2) := by rw [Real.rpow_one]; norm_num
38    _ = (N : ℝ) ^ (1 + -(1 / 3 : ℝ) * 2) := (Real.rpow_add hn _ _).symm
39    _ = _ := by norm_num
40 
41/-- A fully explicit bound with no concentration or spectral-gap premise. -/
42theorem atypicalMass_shrinking_le {d : ℕ} (N : ℕ) (hN : 1 ≤ N)
43    (p : Fin d → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) (horder : Antitone p) :
44    atypicalMass N p (shrinkingRadius N) ≤ concentrationEnvelope d N := by
45  have h := atypicalMass_le N p hp hs horder (shrinkingRadius N)
46    (shrinkingRadius_nonneg N) ((shrinkingRadius_le_one N hN).trans (by norm_num))
47  have heq : -(N : ℝ) * shrinkingRadius N ^ 2 / 4 = -((N : ℝ) ^ (1 / 3 : ℝ)) / 4 := by
48    rw [neg_mul, sample_mul_radius_sq N (by omega)]
49  simpa only [concentrationEnvelope, heq] using h
50 
51theorem concentrationEnvelope_nonneg (d N : ℕ) : 0 ≤ concentrationEnvelope d N := by
52  unfold concentrationEnvelope
53  positivity
54 
55/-- Polynomial factors are absorbed by the stretched exponential. -/
56theorem concentrationEnvelope_tendsto_zero (d : ℕ) :
57    Tendsto (concentrationEnvelope d) atTop (𝓝 0) := by
58  let k := d * d
59  have ht : Tendsto (fun N : ℕ ↦ (N : ℝ) ^ (1 / 3 : ℝ)) atTop atTop :=
60    (tendsto_rpow_atTop (by norm_num : (0 : ℝ) < 1 / 3)).comp tendsto_natCast_atTop_atTop
61  have hc := (tendsto_rpow_mul_exp_neg_mul_atTop_nhds_zero (3 * (k : ℝ))
62    (1 / 4 : ℝ) (by norm_num)).comp ht
63  have hcore : Tendsto (fun N : ℕ ↦ (N : ℝ) ^ k * Real.exp (-((N : ℝ) ^ (1 / 3 : ℝ)) / 4))
64      atTop (𝓝 0) := by
65    convert hc using 1
66    ext N
67    dsimp only [Function.comp_def]
68    rw [← Real.rpow_mul (Nat.cast_nonneg N)]
69    have he : (1 / 3 : ℝ) * (3 * (k : ℝ)) = k := by ring
70    rw [he, Real.rpow_natCast]
71    congr 1
72    congr 1
73    ring
74  have hbound : Tendsto (fun N : ℕ ↦ (2 : ℝ) ^ k * (2 * d) *
75      ((N : ℝ) ^ k * Real.exp (-((N : ℝ) ^ (1 / 3 : ℝ)) / 4))) atTop (𝓝 0) := by
76    simpa using hcore.const_mul ((2 : ℝ) ^ k * (2 * d))
77  apply squeeze_zero' (Filter.Eventually.of_forall (concentrationEnvelope_nonneg d)) ?_ hbound
78  filter_upwards [Filter.eventually_ge_atTop 1] with N hN
79  have hn : (1 : ℝ) ≤ N := by exact_mod_cast hN
80  have hb : ((N : ℝ) + 1) ^ k ≤ (2 * (N : ℝ)) ^ k :=
81    pow_le_pow_left₀ (by positivity) (by linarith) _
82  have hh := mul_le_mul_of_nonneg_right hb
83    (show 0 ≤ 2 * d * Real.exp (-((N : ℝ) ^ (1 / 3 : ℝ)) / 4) by positivity)
84  rw [mul_pow] at hh
85  convert hh using 1 <;> dsimp [concentrationEnvelope, k] <;> ring
86 
87/-- Every fixed polynomial multiple of the tail envelope still vanishes.
88This permits unbounded polynomial observables, such as reciprocal dimension
89ratios, in later expectation estimates. -/
90theorem polynomial_concentrationEnvelope_tendsto_zero (d q : ℕ) :
91    Tendsto (fun N : ℕ ↦ ((N : ℝ) + 1) ^ q * concentrationEnvelope d N) atTop (𝓝 0) := by
92  let k := q + d * d
93  have ht : Tendsto (fun N : ℕ ↦ (N : ℝ) ^ (1 / 3 : ℝ)) atTop atTop :=
94    (tendsto_rpow_atTop (by norm_num : (0 : ℝ) < 1 / 3)).comp tendsto_natCast_atTop_atTop
95  have hc := (tendsto_rpow_mul_exp_neg_mul_atTop_nhds_zero (3 * (k : ℝ))
96    (1 / 4 : ℝ) (by norm_num)).comp ht
97  have hcore : Tendsto (fun N : ℕ ↦ (N : ℝ) ^ k * Real.exp (-((N : ℝ) ^ (1 / 3 : ℝ)) / 4))
98      atTop (𝓝 0) := by
99    convert hc using 1
100    ext N
101    dsimp only [Function.comp_def]
102    rw [← Real.rpow_mul (Nat.cast_nonneg N)]
103    have he : (1 / 3 : ℝ) * (3 * (k : ℝ)) = k := by ring
104    rw [he, Real.rpow_natCast]
105    congr 1
106    congr 1
107    ring
108  have hbound : Tendsto (fun N : ℕ ↦ (2 : ℝ) ^ k * (2 * d) *
109      ((N : ℝ) ^ k * Real.exp (-((N : ℝ) ^ (1 / 3 : ℝ)) / 4))) atTop (𝓝 0) := by
110    simpa using hcore.const_mul ((2 : ℝ) ^ k * (2 * d))
111  apply squeeze_zero' (Filter.Eventually.of_forall (fun N ↦
112    mul_nonneg (by positivity) (concentrationEnvelope_nonneg d N))) ?_ hbound
113  filter_upwards [Filter.eventually_ge_atTop 1] with N hN
114  have hn : (1 : ℝ) ≤ N := by exact_mod_cast hN
115  have hb : ((N : ℝ) + 1) ^ k ≤ (2 * (N : ℝ)) ^ k :=
116    pow_le_pow_left₀ (by positivity) (by linarith) _
117  have hh := mul_le_mul_of_nonneg_right hb
118    (show 0 ≤ 2 * d * Real.exp (-((N : ℝ) ^ (1 / 3 : ℝ)) / 4) by positivity)
119  rw [mul_pow] at hh
120  convert hh using 1
121  · simp only [concentrationEnvelope, k, pow_add]
122    ring
123  · ring
124 
125/-- Uniformity allows an arbitrary spectrum at each sample size. -/
126theorem atypicalMass_tendsto_zero {d : ℕ} (p : ℕ → Fin d → ℝ)
127    (hp : ∀ N i, 0 ≤ p N i) (hs : ∀ N, ∑ i, p N i = 1)
128    (horder : ∀ N, Antitone (p N)) :
129    Tendsto (fun N ↦ atypicalMass N (p N) (shrinkingRadius N)) atTop (𝓝 0) := by
130  apply squeeze_zero' (Filter.Eventually.of_forall (fun N ↦ atypicalMass_nonneg N (p N) (hp N) _))
131    ?_ (concentrationEnvelope_tendsto_zero d)
132  filter_upwards [Filter.eventually_ge_atTop 1] with N hN
133  exact atypicalMass_shrinking_le N hN (p N) (hp N) (hs N) (horder N)
134 
135end Cloning.YoungGeneral