Offline · exact source
Exact Lean source

PBWSymmetricFrameRateCartanBounds

formalization/Cloning/PBWSymmetricFrameRateCartanBounds.lean

Source hash: e541259ba072ea837b21f2fdea1f80ae20b1285946baf116aa1c7e6dadc070c3

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.PBWSymmetricFrameRateBlocks
2import Cloning.TensorCartanOccupationAmplitude
3 
4/-! Uniform coefficient and tensor replacement bounds for quantitative Cartan
5splitting in physical symmetric frames. -/
6noncomputable section
7open scoped ComplexOrder InnerProductSpace Topology BigOperators
8namespace Cloning.TensorLie
9set_option backward.isDefEq.respectTransparency false
10set_option maxHeartbeats 1200000
11variable {d : ℕ}
12 
13theorem wordAmplitude_le_one (t : PositiveRoot d → ℝ)
14    (ht : ∀ a, t a ≤ 1) (w : List (PositiveRoot d)) :
15    wordAmplitude t w ≤ 1 := by
16  induction w with
17  | nil => simp [wordAmplitude]
18  | cons a w ih =>
19    change Real.sqrt (t a) * wordAmplitude t w ≤ 1
20    exact (mul_le_mul (by simpa using Real.sqrt_le_sqrt (ht a)) ih
21      (wordAmplitude_nonneg t w) (by norm_num)).trans_eq (one_mul 1)
22 
23theorem normalizedSplitCoefficient_norm_le_factorial
24    (mu nu : Fin d → ℕ)
25    (hmu : ∀ a : PositiveRoot d, 0 < rootGap mu a)
26    (hnu : ∀ a : PositiveRoot d, 0 < rootGap nu a)
27    (w u v : List (PositiveRoot d)) (h : (u, v) ∈ loweringSplits w) :
28    ‖normalizedSplitCoefficient mu nu w u v‖ ≤ ‖splitFactorialCoefficient w u v‖ := by
29  rw [normalizedSplitCoefficient_eq_amplitudes mu nu hmu hnu w u v h]
30  simp only [norm_mul, Complex.norm_real, Real.norm_eq_abs,
31    abs_of_nonneg (wordAmplitude_nonneg _ _)]
32  have hu := wordAmplitude_le_one (rootFraction mu nu)
33    (fun a => (rootFraction_mem_Icc mu nu a (hmu a) (hnu a)).2) u
34  have hv := wordAmplitude_le_one (rootFraction nu mu)
35    (fun a => (rootFraction_mem_Icc nu mu a (hnu a) (hmu a)).2) v
36  calc
37    _ ≤ ‖splitFactorialCoefficient w u v‖ * 1 * 1 :=
38      mul_le_mul (mul_le_mul_of_nonneg_left hu (norm_nonneg _)) hv
39        (wordAmplitude_nonneg _ _) (mul_nonneg (norm_nonneg _) zero_le_one)
40    _ = _ := by ring
41 
42theorem splitFactorialCoefficient_norm_le_one
43    (w u v : List (PositiveRoot d))
44    (hcount : ∀ a, u.count a + v.count a = w.count a) :
45    ‖splitFactorialCoefficient w u v‖ ≤ 1 := by
46  let C := occupationChoices w (fun a => u.count a)
47  have hC : (1 : ℝ) ≤ C := by
48    exact_mod_cast occupationChoices_pos w u v hcount
49  have h := congrArg norm (occupationChoices_mul_splitFactorialCoefficient w u v hcount)
50  have h' : (C : ℝ) * ‖splitFactorialCoefficient w u v‖ = Real.sqrt C := by
51    simpa only [norm_mul, Complex.norm_natCast, Complex.norm_real,
52      Real.norm_eq_abs, abs_of_nonneg (Real.sqrt_nonneg _)] using h
53  have hs : Real.sqrt (C : ℝ) ≤ C := by
54    have hp := Real.sq_sqrt (le_trans zero_le_one hC)
55    nlinarith [Real.sqrt_nonneg (C : ℝ)]
56  nlinarith
57 
58theorem normalizedSplitCoefficient_norm_le_one
59    (mu nu : Fin d → ℕ)
60    (hmu : ∀ a : PositiveRoot d, 0 < rootGap mu a)
61    (hnu : ∀ a : PositiveRoot d, 0 < rootGap nu a)
62    (w u v : List (PositiveRoot d)) (h : (u, v) ∈ loweringSplits w) :
63    ‖normalizedSplitCoefficient mu nu w u v‖ ≤ 1 :=
64  (normalizedSplitCoefficient_norm_le_factorial mu nu hmu hnu w u v h).trans
65    (splitFactorialCoefficient_norm_le_one w u v (loweringSplits_grading w u v h).2.2)
66 
67theorem tensorJoin_sub_le_of_close {n m : ℕ}
68    (x u : TensorRegister n (Fin d)) (y v : TensorRegister m (Fin d))
69    (e : ℝ) (he : 0 ≤ e) (hu : ‖u‖ = 1) (hv : ‖v‖ = 1)
70    (hx : ‖x-u‖ ≤ e) (hy : ‖y-v‖ ≤ e) :
71    ‖tensorJoin x y - tensorJoin u v‖ ≤ e*(2+e) := by
72  have heq : tensorJoin x y - tensorJoin u v =
73      tensorJoin (x-u) y + tensorJoin u (y-v) := by
74    ext z
75    simp only [tensorJoin_apply, lp.coeFn_sub, Pi.sub_apply, lp.coeFn_add, Pi.add_apply]
76    ring
77  have hyn : ‖y‖ ≤ 1+e := by
78    calc
79      ‖y‖ = ‖(y-v)+v‖ := by rw [sub_add_cancel]
80      _ ≤ ‖y-v‖+‖v‖ := norm_add_le _ _
81      _ ≤ 1+e := by rw [hv]; linarith
82  calc
83    _ ≤ ‖tensorJoin (x-u) y‖ + ‖tensorJoin u (y-v)‖ := by
84      rw [heq]; exact norm_add_le _ _
85    _ = ‖x-u‖*‖y‖ + ‖u‖*‖y-v‖ := by rw [tensorJoin_norm, tensorJoin_norm]
86    _ ≤ e*(1+e)+1*e := add_le_add
87      (mul_le_mul hx hyn (norm_nonneg _) he) (by simpa only [hu, one_mul] using hy)
88    _ = e*(2+e) := by ring
89 
90theorem loweringSplits_length (w : List (PositiveRoot d)) :
91    (loweringSplits w).length = 2^w.length := by
92  induction w with
93  | nil => simp [loweringSplits]
94  | cons a w ih => simp [loweringSplits, ih, pow_succ]; omega
95 
96theorem loweringSplits_length_le {R : ℕ} (w : List (PositiveRoot d))
97    (hw : w.length ≤ R) : (loweringSplits w).length ≤ 2^R := by
98  rw [loweringSplits_length]
99  exact Nat.pow_le_pow_right (by decide) hw
100 
101/-- A list version keeps the multiplicities in the exact lowering coproduct. -/
102theorem list_weighted_replacement_le {ι H : Type*} [NormedAddCommGroup H]
103    [NormedSpace ℂ H] (l : List ι) (c : ι → ℂ) (x y : ι → H) (e : ℝ)
104    (he : 0 ≤ e) (hc : ∀i∈l, ‖c i‖ ≤ 1) (hxy : ∀i∈l, ‖x i-y i‖ ≤ e) :
105    ‖(l.map (fun i => c i • x i)).sum - (l.map (fun i => c i • y i)).sum‖ ≤
106      (l.length : ℝ)*e := by
107  induction l with
108  | nil => simp
109  | cons i l ih =>
110    simp only [List.map_cons, List.sum_cons, List.length_cons, Nat.cast_add, Nat.cast_one]
111    have hi : ‖c i • x i - c i • y i‖ ≤ e := by
112      rw [← smul_sub, norm_smul]
113      simpa only [one_mul] using mul_le_mul (hc i (by simp)) (hxy i (by simp))
114        (norm_nonneg _) zero_le_one
115    have ht := ih (fun j hj => hc j (by simp [hj])) (fun j hj => hxy j (by simp [hj]))
116    calc
117      _ = ‖(c i • x i-c i • y i) +
118          ((l.map (fun i => c i • x i)).sum-(l.map (fun i => c i • y i)).sum)‖ := by
119        congr 1; abel
120      _ ≤ _ := (norm_add_le _ _).trans (add_le_add hi ht)
121      _ = _ := by ring
122 
123/-- Replacing both tensor factors in the exact Cartan coproduct costs at most
124`2^R * e * (2+e)` for a retained word of length at most `R`. -/
125theorem cartan_split_tensor_replacement_le {n m R : ℕ}
126    (mu nu : Fin d → ℕ)
127    (hmu : ∀ a : PositiveRoot d, 0 < rootGap mu a)
128    (hnu : ∀ a : PositiveRoot d, 0 < rootGap nu a)
129    (w : List (PositiveRoot d)) (hw : w.length ≤ R)
130    (x u : List (PositiveRoot d) → TensorRegister n (Fin d))
131    (y v : List (PositiveRoot d) → TensorRegister m (Fin d))
132    (e : ℝ) (he : 0 ≤ e)
133    (hu : ∀ a b, (a,b)∈loweringSplits w → ‖u a‖=1)
134    (hv : ∀ a b, (a,b)∈loweringSplits w → ‖v b‖=1)
135    (hx : ∀ a b, (a,b)∈loweringSplits w → ‖x a-u a‖≤e)
136    (hy : ∀ a b, (a,b)∈loweringSplits w → ‖y b-v b‖≤e) :
137    ‖((loweringSplits w).map (fun ab => normalizedSplitCoefficient mu nu w ab.1 ab.2 •
138        tensorJoin (x ab.1) (y ab.2))).sum -
139      ((loweringSplits w).map (fun ab => normalizedSplitCoefficient mu nu w ab.1 ab.2 •
140        tensorJoin (u ab.1) (v ab.2))).sum‖ ≤
141      (2:ℝ)^R * (e*(2+e)) := by
142  have hpos : 0≤e*(2+e) := mul_nonneg he (by linarith)
143  refine (list_weighted_replacement_le (loweringSplits w)
144    (fun ab => normalizedSplitCoefficient mu nu w ab.1 ab.2)
145    (fun ab => tensorJoin (x ab.1) (y ab.2))
146    (fun ab => tensorJoin (u ab.1) (v ab.2)) _ hpos
147    (fun ab hab => normalizedSplitCoefficient_norm_le_one mu nu hmu hnu w ab.1 ab.2 hab)
148    (fun ab hab => tensorJoin_sub_le_of_close _ _ _ _ e he
149      (hu _ _ hab) (hv _ _ hab) (hx _ _ hab) (hy _ _ hab))).trans ?_
150  apply mul_le_mul_of_nonneg_right _ hpos
151  exact_mod_cast loweringSplits_length_le w hw
152 
153end Cloning.TensorLie