Offline · exact source
Exact Lean source

TensorSchurDecompositionConcentration

formalization/Cloning/TensorSchurDecompositionConcentration.lean

Source hash: 3768779eff6956f1f4b78638a4890587a41f89a305633deed2dce979248b8195

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.TensorSchurDecompositionBounds
2import Cloning.YoungGeneralPMF
3 
4/-! Concentration of the actual physical Young-label PMF, uniformly over the
5ordered probability simplex. No tableau-character identification is required. -/
6noncomputable section
7open scoped BigOperators Topology
8open Filter
9namespace Cloning.TensorLie
10open Cloning.YoungGeneral
11set_option maxHeartbeats 1200000
12attribute [local instance] Classical.propDecidable
13variable {d n : ℕ}
14 
15def physicalStandardWordWeight (p : Fin d → ℝ) (w : Fin n → Fin d) : ℝ :=
16  if IsStandardWord w then physicalSectorCharacter (rowCount w) p else 0
17 
18theorem physicalStandardWordWeight_nonneg (p : Fin d → ℝ) (w : Fin n → Fin d) :
19    0 ≤ physicalStandardWordWeight p w := by
20  unfold physicalStandardWordWeight
21  split_ifs
22  · exact physicalSectorCharacter_nonneg _ _
23  · exact le_rfl
24 
25theorem physicalStandardWordWeight_le (p : Fin d → ℝ) (hp : ∀ a, 0 ≤ p a)
26    (horder : Antitone p) (w : Fin n → Fin d) :
27    physicalStandardWordWeight p w ≤
28      ((n * d + 1 : ℕ) : ℝ) ^ Fintype.card (PositiveRoot d) * wordWeight p w := by
29  unfold physicalStandardWordWeight
30  split_ifs
31  · rw [wordWeight_eq_row_product]
32    simpa only [sum_rowCount] using
33      physicalSectorCharacter_le_polynomial_highest (rowCount w) p hp horder
34  · exact mul_nonneg (by positivity) (wordWeight_nonneg p hp w)
35 
36theorem sum_physicalStandardWordWeight_shape (p : Fin d → ℝ) (mu : Fin d → ℕ) :
37    (∑ w : Fin n → Fin d, if rowCount w = mu then physicalStandardWordWeight p w else 0) =
38      (standardCount n mu : ℝ) * physicalSectorCharacter mu p := by
39  have hpoint (w : Fin n → Fin d) :
40      (if rowCount w = mu then physicalStandardWordWeight p w else 0) =
41        if IsStandardWord w ∧ rowCount w = mu then physicalSectorCharacter mu p else 0 := by
42    unfold physicalStandardWordWeight
43    split_ifs <;> simp_all
44  simp_rw [hpoint]
45  rw [← Finset.sum_filter]
46  simp [standardCount]
47 
48theorem tensorYoungPMF_sum_mul (p : Fin d → ℝ) (hp : ∀ a, 0 ≤ p a)
49    (hs : ∑ a, p a = 1) (f : Shape d n → ℝ) :
50    (∑ mu : Shape d n, (tensorYoungPMF n d p hp hs mu).toReal * f mu) =
51      ∑ w : Fin n → Fin d, physicalStandardWordWeight p w * f (wordShape w) := by
52  simp_rw [tensorYoungPMF_formula, ← sum_physicalStandardWordWeight_shape]
53  simp_rw [Finset.sum_mul]
54  rw [Finset.sum_comm]
55  apply Finset.sum_congr rfl
56  intro w _
57  simp_rw [← wordShape_eq_iff, ite_mul, zero_mul]
58  simp
59 
60theorem tensorYoungPMF_tail_nonneg (p : Fin d → ℝ) (hp : ∀ a, 0 ≤ p a)
61    (hs : ∑ a, p a = 1) (ε : ℝ) :
62    0 ≤ tailProbability (tensorYoungPMF n d p hp hs) p ε := by
63  apply Finset.sum_nonneg
64  intro mu _
65  split_ifs
66  · exact ENNReal.toReal_nonneg
67  · exact le_rfl
68 
69/-- The actual Schur measurement law has an explicit polynomial times
70exponential deviation bound, including repeated and zero eigenvalues. -/
71theorem tensorYoungPMF_tail_le (p : Fin d → ℝ) (hp : ∀ a, 0 ≤ p a)
72    (hs : ∑ a, p a = 1) (horder : Antitone p)
73    (ε : ℝ) (hε : 0 ≤ ε) (hε2 : ε ≤ 2) :
74    tailProbability (tensorYoungPMF n d p hp hs) p ε ≤
75      ((n * d + 1 : ℕ) : ℝ) ^ Fintype.card (PositiveRoot d) *
76        (2 * d * Real.exp (-(n : ℝ) * ε ^ 2 / 4)) := by
77  have he := tensorYoungPMF_sum_mul (n := n) p hp hs (fun mu =>
78    if ∃ i, (n : ℝ) * ε ≤ |((mu i).val : ℝ) - n * p i| then 1 else 0)
79  simp only [mul_ite, mul_one, mul_zero, wordShape_val] at he
80  change (∑ mu : Shape d n,
81    if ∃ i, (n : ℝ) * ε ≤ |((mu i).val : ℝ) - n * p i| then
82      (tensorYoungPMF n d p hp hs mu).toReal else 0) ≤ _
83  rw [he]
84  calc
85    _ ≤ ∑ w : Fin n → Fin d,
86        ((n*d+1 : ℕ) : ℝ)^Fintype.card (PositiveRoot d) *
87          (if ∃ i, (n : ℝ)*ε ≤ |(rowCount w i : ℝ)-n*p i| then wordWeight p w else 0) := by
88      apply Finset.sum_le_sum
89      intro w _
90      split_ifs
91      · exact physicalStandardWordWeight_le p hp horder w
92      · simp
93    _ = _ := (Finset.mul_sum ..).symm
94    _ ≤ _ := mul_le_mul_of_nonneg_left (max_rowCount_tail_le p hp hs ε hε hε2) (by positivity)
95 
96/-- Comparison with an already proved vanishing stretched-exponential envelope. -/
97theorem tensorYoungPMF_tail_shrinking_le (n : ℕ) (hn : 1 ≤ n)
98    (p : Fin d → ℝ) (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1) (horder : Antitone p) :
99    tailProbability (tensorYoungPMF n d p hp hs) p (shrinkingRadius n) ≤
100      ((d : ℝ)+1)^Fintype.card (PositiveRoot d) *
101        (((n : ℝ)+1)^Fintype.card (PositiveRoot d) * concentrationEnvelope d n) := by
102  have ht := tensorYoungPMF_tail_le (n := n) p hp hs horder (shrinkingRadius n)
103    (shrinkingRadius_nonneg n) ((shrinkingRadius_le_one n hn).trans (by norm_num))
104  have he : -(n : ℝ) * shrinkingRadius n ^ 2 / 4 = -((n : ℝ)^(1/3 : ℝ))/4 := by
105    rw [neg_mul, sample_mul_radius_sq n (by omega)]
106  rw [he] at ht
107  apply ht.trans
108  let s := Fintype.card (PositiveRoot d)
109  have hpoly : ((n*d+1 : ℕ) : ℝ)^s ≤ ((d:ℝ)+1)^s * ((n:ℝ)+1)^s := by
110    rw [← mul_pow]
111    apply pow_le_pow_left₀ (by positivity)
112    push_cast
113    nlinarith [(Nat.cast_nonneg n : (0:ℝ) ≤ n), (Nat.cast_nonneg d : (0:ℝ) ≤ d)]
114  have hone : (1:ℝ) ≤ ((n:ℝ)+1)^(d*d) := one_le_pow₀ (by linarith [(Nat.cast_nonneg n : (0:ℝ) ≤ n)])
115  have hmul := mul_le_mul_of_nonneg_right hpoly
116    (show 0 ≤ 2*d*Real.exp (-((n:ℝ)^(1/3:ℝ))/4) by positivity)
117  have hfinal := mul_le_mul_of_nonneg_left hone
118    (show 0 ≤ (((d:ℝ)+1)^s * ((n:ℝ)+1)^s) *
119      (2*d*Real.exp (-((n:ℝ)^(1/3:ℝ))/4)) by positivity)
120  dsimp only [concentrationEnvelope]
121  dsimp only [s] at hmul hfinal
122  nlinarith
123 
124/-- Physical Young labels concentrate uniformly for every moving ordered
125spectrum in the closed probability simplex. -/
126theorem tensorYoungPMF_tail_tendsto_zero (p : ℕ → Fin d → ℝ)
127    (hp : ∀ n a, 0 ≤ p n a) (hs : ∀ n, ∑ a, p n a = 1)
128    (horder : ∀ n, Antitone (p n)) :
129    Tendsto (fun n => tailProbability (tensorYoungPMF n d (p n) (hp n) (hs n))
130      (p n) (shrinkingRadius n)) atTop (𝓝 0) := by
131  have ht := (polynomial_concentrationEnvelope_tendsto_zero d
132    (Fintype.card (PositiveRoot d))).const_mul (((d:ℝ)+1)^Fintype.card (PositiveRoot d))
133  simp only [mul_zero] at ht
134  apply squeeze_zero' (Filter.Eventually.of_forall (fun n => tensorYoungPMF_tail_nonneg _ _ _ _)) ?_ ht
135  filter_upwards [Filter.eventually_ge_atTop 1] with n hn
136  exact tensorYoungPMF_tail_shrinking_le n hn (p n) (hp n) (hs n) (horder n)
137 
138end Cloning.TensorLie