Exact Lean source
PBWSymmetricFrameRatePhysical
formalization/Cloning/PBWSymmetricFrameRatePhysical.lean
Source hash: efdfb6b330b05ed638c6364b23a5158139dfbd64bbb23774d3e34f6a6cf8edd6
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.rootErrorRateConstanttheorem Cloning.TensorLie.rootErrorRateConstant_nonnegtheorem Cloning.TensorLie.rootError_le_div_sqrtdefinition Cloning.TensorLie.wordGramConstanttheorem Cloning.TensorLie.wordGramConstant_nonnegtheorem Cloning.TensorLie.physical_words_gram_error_letheorem Cloning.TensorLie.eventually_physical_words_symmetric_rate1import Cloning.PBWSymmetricFrameRateMatrix
2import Cloning.TensorCartanCutoffFrame
3
4/-! Uniform `N⁻¹/²` symmetric-frame rates for literal physical PBW vectors.
5Only the lower root-gap bound is needed; no Gram or frame estimate is assumed. -/
6noncomputable section
7open scoped ComplexOrder InnerProductSpace Topology BigOperators
8open Filter
9namespace Cloning.TensorLie
10open PBWSymmetricFrame
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1000000
13
14def rootErrorRateConstant (r : ℕ) : ℝ :=
15 2*r+Real.sqrt (((r:ℝ)+1)+2*r*((r:ℝ)+1))
16
17theorem rootErrorRateConstant_nonneg (r : ℕ) : 0≤rootErrorRateConstant r := by
18 unfold rootErrorRateConstant
19 positivity
20
21theorem rootError_le_div_sqrt (r : ℕ) {δ : ℝ} (hδ : 1≤δ) :
22 rootError r δ≤rootErrorRateConstant r/Real.sqrt δ := by
23 have hd : 0<δ := by linarith
24 let t := δ⁻¹
25 have ht0 : 0≤t := inv_nonneg.mpr hd.le
26 have ht1 : t≤1 := inv_le_one_of_one_le₀ hδ
27 have ht2 : t^2≤t := by nlinarith
28 have hts : t≤Real.sqrt t := by
29 have hs := Real.sq_sqrt ht0
30 have hp := Real.sqrt_nonneg t
31 nlinarith
32 have hs : Real.sqrt (((r:ℝ)+1)*t+2*r*((r:ℝ)+1)*t^2)≤
33 Real.sqrt (((r:ℝ)+1)+2*r*((r:ℝ)+1))*Real.sqrt t := by
34 rw [←Real.sqrt_mul (by positivity : 0≤((r:ℝ)+1)+2*r*((r:ℝ)+1))]
35 apply Real.sqrt_le_sqrt
36 have h := mul_le_mul_of_nonneg_left ht2
37 (by positivity : 0≤2*(r:ℝ)*((r:ℝ)+1))
38 nlinarith
39 have hf : 2*(r:ℝ)*t≤2*r*Real.sqrt t :=
40 mul_le_mul_of_nonneg_left hts (by positivity)
41 have hh : max (2*(r:ℝ)*t)
42 (Real.sqrt (((r:ℝ)+1)*t+2*r*((r:ℝ)+1)*t^2))≤
43 rootErrorRateConstant r*Real.sqrt t := by
44 apply max_le
45 · apply hf.trans
46 apply mul_le_mul_of_nonneg_right _ (Real.sqrt_nonneg t)
47 exact le_add_of_nonneg_right (Real.sqrt_nonneg _)
48 · apply hs.trans
49 apply mul_le_mul_of_nonneg_right _ (Real.sqrt_nonneg t)
50 exact le_add_of_nonneg_left (by positivity)
51 simpa only [rootError,div_eq_mul_inv,inv_pow,Real.sqrt_inv,t] using hh
52
53variable {d : ℕ} {ι : Type*} [Fintype ι] [DecidableEq ι]
54
55def wordGramConstant (L : ℕ) (words : ι→List (PositiveRoot d)) : ℝ :=
56 (∑ i, (PBW.gramConstant L (words i).length : ℝ))*
57 (Real.sqrt (((L*d:ℕ):ℝ)+1)*Real.sqrt 2)^(2*L)
58
59theorem wordGramConstant_nonneg (L : ℕ) (words : ι→List (PositiveRoot d)) :
60 0≤wordGramConstant L words := by unfold wordGramConstant; positivity
61
62theorem physical_words_gram_error_le (L : ℕ) (words : ι→List (PositiveRoot d))
63 (hwords : ∀ i j,(words i).Perm (words j)↔i=j)
64 (hlen : ∀ i,(words i).length≤L) (mu : Fin d→ℕ) (hmu : Antitone mu)
65 {δ : ℝ} (hδ : 2*((((L*d:ℕ):ℝ))+1)≤δ)
66 (hgap : ∀ a : PositiveRoot d,δ≤rootGap mu a) (i j : ι) :
67 ‖⟪normalizedLoweringWord (partitionHighestTensor mu hmu) mu (words i),
68 normalizedLoweringWord (partitionHighestTensor mu hmu) mu (words j)⟫_ℂ-
69 (if i=j then 1 else 0 : ℂ)‖≤wordGramConstant L words*rootError (L*d) δ := by
70 have h := partition_normalized_gram_error_le (fun a : PositiveRoot d=>a)
71 Function.injective_id mu hmu L hδ hgap (words i) (words j) (hlen i) (hlen j)
72 simp only [hwords i j] at h
73 apply h.trans
74 unfold wordGramConstant
75 apply mul_le_mul_of_nonneg_right _ (rootError_nonneg _ _)
76 apply mul_le_mul_of_nonneg_right _ (by positivity)
77 exact Finset.single_le_sum (fun j _=>(Nat.cast_nonneg (PBW.gramConstant L (words j).length) : (0:ℝ)≤_)) (Finset.mem_univ i)
78
79theorem eventually_physical_words_symmetric_rate
80 (L : ℕ) (words : ι→List (PositiveRoot d))
81 (hwords : ∀ i j,(words i).Perm (words j)↔i=j)
82 (hlen : ∀ i,(words i).length≤L) (c : ℝ) (hc : 0<c) :
83 ∃ C : ℝ,0≤C ∧ ∀ᶠ (N : ℕ) in atTop,
84 ∀ (mu : Fin d→ℕ) (hmu : Antitone mu),
85 (∀ a : PositiveRoot d,c*(N:ℝ)≤rootGap mu a) →
86 let v := fun i=>normalizedLoweringWord (partitionHighestTensor mu hmu) mu (words i)
87 Orthonormal ℂ (symmetricFrame v) ∧
88 Submodule.span ℂ (Set.range (symmetricFrame v))=Submodule.span ℂ (Set.range v) ∧
89 ∀ i,‖symmetricFrame v i-v i‖≤C/Real.sqrt (N:ℝ) := by
90 let A := wordGramConstant L words*rootErrorRateConstant (L*d)/Real.sqrt c
91 let C := (Fintype.card ι:ℝ)^2*A
92 have hA : 0≤A := by
93 dsimp only [A]
94 exact div_nonneg
95 (mul_nonneg (wordGramConstant_nonneg L words) (rootErrorRateConstant_nonneg _))
96 (Real.sqrt_nonneg c)
97 have hC : 0≤C := mul_nonneg (sq_nonneg _) hA
98 have hN : Tendsto (fun N : ℕ=>c*(N:ℝ)) atTop atTop :=
99 tendsto_natCast_atTop_atTop.const_mul_atTop hc
100 have hz : Tendsto (fun N : ℕ=>C/Real.sqrt (N:ℝ)) atTop (𝓝 0) := by
101 exact tendsto_const_nhds.div_atTop
102 (Real.tendsto_sqrt_atTop.comp tendsto_natCast_atTop_atTop)
103 refine ⟨C,hC,?_⟩
104 filter_upwards [hN.eventually (eventually_ge_atTop (max 1 (2*((((L*d:ℕ):ℝ))+1)))),
105 hz.eventually (eventually_lt_nhds zero_lt_one)] with N hlarge hsmall
106 intro mu hmu hgap
107 let v := fun i=>normalizedLoweringWord (partitionHighestTensor mu hmu) mu (words i)
108 have herr : ∀ i j,‖⟪v i,v j⟫_ℂ-(if i=j then 1 else 0 : ℂ)‖≤A/Real.sqrt (N:ℝ) := by
109 intro i j
110 apply (physical_words_gram_error_le L words hwords hlen mu hmu
111 ((le_max_right _ _).trans hlarge) hgap i j).trans
112 apply (mul_le_mul_of_nonneg_left
113 (rootError_le_div_sqrt (L*d) ((le_max_left _ _).trans hlarge))
114 (wordGramConstant_nonneg L words)).trans_eq
115 rw [Real.sqrt_mul hc.le]
116 dsimp only [A]
117 ring
118 have hsmall' : (Fintype.card ι:ℝ)^2*(A/Real.sqrt (N:ℝ))<1 := by
119 simpa only [C,mul_div_assoc] using hsmall
120 obtain ⟨hon,hspan,herr'⟩ := symmetricFrame_properties v _ herr hsmall'
121 refine ⟨hon,hspan,fun i=>?_⟩
122 simpa only [C,mul_div_assoc] using herr' i
123
124end Cloning.TensorLie