Exact Lean source
YoungDimensionMomentRate
formalization/Cloning/YoungDimensionMomentRate.lean
Source hash: 67a8d9b1f86308b7dae4e863b5e6420dd28aab950ca9eb13a40cc93af85f3c6f
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
definition
Cloning.TensorLie.dimensionMomentRateConstanttheorem Cloning.TensorLie.dimensionMomentRateConstant_nonnegtheorem Cloning.TensorLie.tensorFlatYoungPMF_mean_dimension_error_letheorem Cloning.TensorLie.inverseDimension_error_le_forwardtheorem Cloning.TensorLie.tensorFlatYoungPMF_mean_inverse_error_splittheorem Cloning.TensorLie.tensorFlatYoungPMF_reciprocal_tail_ratetheorem Cloning.TensorLie.tensorFlatYoungPMF_mean_inverse_dimension_error_le1import Cloning.YoungDimensionMomentRateAlgebra
2import Cloning.TensorFlatProjectorCasimirMoment
3import Cloning.TensorFlatProjectorMoments
4
5/-! Quantitative forward and reciprocal dimension moments under the actual
6physical flat Young law. -/
7noncomputable section
8open scoped BigOperators Classical Topology
9open Filter
10namespace Cloning.TensorLie
11open Cloning.YoungGeneral Cloning.YoungDimensionRatio
12set_option maxHeartbeats 1400000
13set_option backward.isDefEq.respectTransparency false
14
15def dimensionMomentRateConstant (r k : ℕ) : ℝ :=
16 globalSecondOrderConstant r k*(1+(r:ℝ))
17
18theorem dimensionMomentRateConstant_nonneg (r k : ℕ) :
19 0≤dimensionMomentRateConstant r k :=
20 mul_nonneg (globalSecondOrderConstant_nonneg r k) (by positivity)
21
22/-- A fully finite O(1/N) bound; labels outside the physical box-count
23support have zero actual probability. -/
24theorem tensorFlatYoungPMF_mean_dimension_error_le (r k N : ℕ) (hr : 0<r) (hN : 1≤N) :
25 (∑ mu,(tensorFlatYoungPMF N r hr mu).toReal*
26 |normalizedDimension r k N mu-1|) ≤ dimensionMomentRateConstant r k/(N:ℝ) := by
27 let P := tensorFlatYoungPMF N r hr
28 let G := globalSecondOrderConstant r k
29 let V : Shape r N→ℝ := fun mu=>∑i,((mu i).val-(N:ℝ)/r)^2
30 have hG : 0≤G := globalSecondOrderConstant_nonneg r k
31 have hn : (0:ℝ)<N := by exact_mod_cast (show 0<N by omega)
32 have hpoint (mu : Shape r N) :
33 (P mu).toReal*|normalizedDimension r k N mu-1| ≤
34 (P mu).toReal*(G*(1/(N:ℝ)+V mu/(N:ℝ)^2)) := by
35 by_cases hs : ∑i,(mu i).val=N
36 · exact mul_le_mul_of_nonneg_left (normalizedDimension_global_second_order r k N hr hN mu hs)
37 ENNReal.toReal_nonneg
38 · have hz : P mu=0 := physicalYoungPMF_eq_zero_of_not_partition
39 (recursivePhysicalDecomposition N r) (recursivePhysicalDecomposition_is_decomposition N r).1
40 (recursivePhysicalDecomposition_is_decomposition N r).2 (flatSpectrum r)
41 (fun _=>by unfold flatSpectrum; positivity) (flatSpectrum_sum r hr) mu (Or.inr hs)
42 simp only [hz,ENNReal.toReal_zero,zero_mul,le_refl]
43 have hmass : ∑mu,(P mu).toReal=1 := by
44 simpa only [tsum_fintype,Cloning.YoungCompatibility.probability] using
45 Cloning.YoungCompatibility.tsum_probability P
46 have hmoment : (∑mu,(P mu).toReal*V mu)≤(N:ℝ)*r :=
47 (tensorFlatYoungPMF_centered_second_moment_le (n := N) hr).trans
48 (mul_le_mul_of_nonneg_left (sub_le_self _ (one_div_nonneg.mpr (Nat.cast_nonneg r)))
49 (Nat.cast_nonneg N))
50 calc
51 _ ≤ ∑mu,(P mu).toReal*(G*(1/(N:ℝ)+V mu/(N:ℝ)^2)) :=
52 Finset.sum_le_sum (fun mu _=>hpoint mu)
53 _ = G*(1/(N:ℝ)+(∑mu,(P mu).toReal*V mu)/(N:ℝ)^2) := by
54 have he (mu : Shape r N) : (P mu).toReal*(G*(1/(N:ℝ)+V mu/(N:ℝ)^2))=
55 (G/(N:ℝ))*(P mu).toReal+(G/(N:ℝ)^2)*((P mu).toReal*V mu) := by ring
56 simp_rw [he]
57 rw [Finset.sum_add_distrib,← Finset.mul_sum,← Finset.mul_sum,hmass]
58 ring
59 _ ≤ G*(1/(N:ℝ)+((N:ℝ)*r)/(N:ℝ)^2) :=
60 mul_le_mul_of_nonneg_left (add_le_add le_rfl
61 (div_le_div_of_nonneg_right hmoment (sq_nonneg (N:ℝ)))) hG
62 _ = dimensionMomentRateConstant r k/(N:ℝ) := by
63 unfold dimensionMomentRateConstant
64 dsimp only [G]
65 field_simp [hn.ne'] <;> ring
66
67/-- On the central window, reciprocal relative error is at most twice the
68forward relative error itself. -/
69theorem inverseDimension_error_le_forward (r k N : ℕ) (hr : 0<r) (hN : 1≤N)
70 (hsmall : dimensionErrorEnvelope r k N≤1/2) (mu : Shape r N)
71 (ht : ¬∃i,(N:ℝ)*shrinkingRadius N≤|shapeRows mu i-N*flatSpectrum r i|) :
72 |inverseNormalizedDimension r k N mu-1|≤2*|normalizedDimension r k N mu-1| := by
73 let R := dimensionRatio r k (shapeRows mu)
74 let D := leadingConstant r k*(N:ℝ)^(r*k)
75 have hR : 0<R := dimensionRatio_pos r k (shapeRows mu) (shapeRows_nonneg mu)
76 have hn : (0:ℝ)<N := by exact_mod_cast (show 0<N by omega)
77 have hD : 0<D := mul_pos (leadingConstant_pos r k hr) (pow_pos hn _)
78 have he : |R/D-1|≤1/2 := (normalizedDimension_typical_error r k N hr hN mu ht).trans hsmall
79 have hl : (1/2:ℝ)≤R/D := by have hh := (abs_le.mp he).1; linarith
80 have hl' : D≤2*R := by have hh := (le_div_iff₀ hD).mp hl; linarith
81 have hi : D/R≤2 := (div_le_iff₀ hR).mpr hl'
82 change |D/R-1|≤2*|R/D-1|
83 have ha : D/R-1=-(D/R)*(R/D-1) := by field_simp; ring
84 rw [ha,abs_mul,abs_neg,abs_of_pos (div_pos hD hR)]
85 exact mul_le_mul_of_nonneg_right hi (abs_nonneg _)
86
87theorem tensorFlatYoungPMF_mean_inverse_error_split (r k N : ℕ) (hr : 0<r) (hN : 1≤N)
88 (hsmall : dimensionErrorEnvelope r k N≤1/2) :
89 (∑mu,(tensorFlatYoungPMF N r hr mu).toReal*|inverseNormalizedDimension r k N mu-1|)≤
90 2*(∑mu,(tensorFlatYoungPMF N r hr mu).toReal*|normalizedDimension r k N mu-1|)+
91 (leadingConstant r k*(N:ℝ)^(r*k)+1)*
92 tailProbability (tensorFlatYoungPMF N r hr) (flatSpectrum r) (shrinkingRadius N) := by
93 let P := tensorFlatYoungPMF N r hr
94 let B := leadingConstant r k*(N:ℝ)^(r*k)+1
95 have hp (mu : Shape r N) :
96 (P mu).toReal*|inverseNormalizedDimension r k N mu-1|≤
97 2*((P mu).toReal*|normalizedDimension r k N mu-1|)+
98 B*(if ∃i,(N:ℝ)*shrinkingRadius N≤|shapeRows mu i-N*flatSpectrum r i|
99 then (P mu).toReal else 0) := by
100 split_ifs with ht
101 · have he := mul_le_mul_of_nonneg_left
102 (inverseNormalizedDimension_global_error r k N hr mu)
103 (show 0≤(P mu).toReal from ENNReal.toReal_nonneg)
104 have hz := mul_nonneg (show 0≤(P mu).toReal from ENNReal.toReal_nonneg)
105 (abs_nonneg (normalizedDimension r k N mu-1))
106 dsimp only [B]
107 nlinarith
108 · have he := mul_le_mul_of_nonneg_left
109 (inverseDimension_error_le_forward r k N hr hN hsmall mu ht)
110 (show 0≤(P mu).toReal from ENNReal.toReal_nonneg)
111 simpa only [mul_zero,add_zero,mul_left_comm] using he
112 have hs := Finset.sum_le_sum (fun mu (_ : mu∈Finset.univ)=>hp mu)
113 simpa only [Finset.sum_add_distrib,← Finset.mul_sum,tailProbability,shapeRows,P,B] using hs
114
115/-- Even after multiplying by the worst reciprocal dimension, the physical
116atypical mass is eventually bounded by 1/N. -/
117theorem tensorFlatYoungPMF_reciprocal_tail_rate (r k : ℕ) (hr : 0<r) :
118 ∀ᶠ (N : ℕ) in atTop,
119 (leadingConstant r k*(N:ℝ)^(r*k)+1)*
120 tailProbability (tensorFlatYoungPMF N r hr) (flatSpectrum r) (shrinkingRadius N)≤1/(N:ℝ) := by
121 let c := leadingConstant r k
122 let a := r*k
123 let s := Fintype.card (PositiveRoot r)
124 let C := ((r:ℝ)+1)^s
125 have hc : 0≤c := (leadingConstant_pos r k hr).le
126 have hC : 0≤C := by dsimp [C]; positivity
127 have ht := (polynomial_concentrationEnvelope_tendsto_zero r (a+s+1)).const_mul ((c+1)*C)
128 simp only [mul_zero] at ht
129 have hsmall : ∀ᶠ (N : ℕ) in atTop, ((c+1)*C)*(((N:ℝ)+1)^(a+s+1)*concentrationEnvelope r N)≤1 :=
130 ht.eventually (eventually_le_nhds (by norm_num))
131 filter_upwards [Filter.eventually_ge_atTop 1,hsmall] with N hN hsmall
132 have hn : (0:ℝ)<N := by exact_mod_cast (show 0<N by omega)
133 have htail := tensorYoungPMF_tail_shrinking_le N hN (flatSpectrum r)
134 (fun _=>by unfold flatSpectrum; positivity) (flatSpectrum_sum r hr) antitone_const
135 have hpw : (N:ℝ)^a≤((N:ℝ)+1)^a := pow_le_pow_left₀ (by positivity) (by linarith) _
136 have hpw1 : (1:ℝ)≤((N:ℝ)+1)^a := one_le_pow₀ (by linarith [(Nat.cast_nonneg N : (0:ℝ)≤N)])
137 have hcoeff : c*(N:ℝ)^a+1≤(c+1)*((N:ℝ)+1)^a := by
138 nlinarith [mul_le_mul_of_nonneg_left hpw hc]
139 have ht0 : 0≤tailProbability (tensorFlatYoungPMF N r hr) (flatSpectrum r) (shrinkingRadius N) :=
140 tensorYoungPMF_tail_nonneg _ _ _ _
141 have hprod := mul_le_mul hcoeff htail ht0 (by positivity : 0≤(c+1)*((N:ℝ)+1)^a)
142 have hb : (c*(N:ℝ)^a+1)*tailProbability (tensorFlatYoungPMF N r hr)
143 (flatSpectrum r) (shrinkingRadius N)≤
144 ((c+1)*C)*(((N:ℝ)+1)^(a+s)*concentrationEnvelope r N) := by
145 convert hprod using 1 <;> dsimp only [C,s] <;> rw [pow_add] <;> ring
146 have henv : 0≤((c+1)*C)*(((N:ℝ)+1)^(a+s)*concentrationEnvelope r N) := by
147 unfold concentrationEnvelope
148 positivity
149 have hmul := mul_le_mul_of_nonneg_left hb hn.le
150 have hnext := mul_le_mul_of_nonneg_right (show (N:ℝ)≤N+1 by linarith) henv
151 have hs : (N:ℝ)*((c*(N:ℝ)^a+1)*tailProbability (tensorFlatYoungPMF N r hr)
152 (flatSpectrum r) (shrinkingRadius N))≤1 := by
153 apply hmul.trans (hnext.trans ?_)
154 convert hsmall using 1
155 rw [pow_succ]
156 ring
157 exact (le_div_iff₀ hn).mpr (by simpa only [mul_comm] using hs)
158
159/-- Quantitative reciprocal moment control with every premise discharged for
160the actual physical flat-spectrum law. -/
161theorem tensorFlatYoungPMF_mean_inverse_dimension_error_le (r k : ℕ) (hr : 0<r) :
162 ∀ᶠ (N : ℕ) in atTop,
163 (∑mu,(tensorFlatYoungPMF N r hr mu).toReal*|inverseNormalizedDimension r k N mu-1|)≤
164 (2*dimensionMomentRateConstant r k+1)/(N:ℝ) := by
165 have hs : ∀ᶠ (N : ℕ) in atTop,dimensionErrorEnvelope r k N≤1/2 :=
166 (dimensionErrorEnvelope_tendsto_zero r k).eventually (eventually_le_nhds (by norm_num))
167 filter_upwards [Filter.eventually_ge_atTop 1,hs,
168 tensorFlatYoungPMF_reciprocal_tail_rate r k hr] with N hN hs ht
169 have hm := tensorFlatYoungPMF_mean_inverse_error_split r k N hr hN hs
170 have hf := tensorFlatYoungPMF_mean_dimension_error_le r k N hr hN
171 calc
172 _ ≤ 2*(dimensionMomentRateConstant r k/(N:ℝ))+1/(N:ℝ) := by linarith
173 _ = _ := by ring
174
175end Cloning.TensorLie