Offline · exact source
Exact Lean source

TensorCCRBounds

formalization/Cloning/TensorCCRBounds.lean

Source hash: 19d59f21409c1c841d592e0a8b085b1177c0f3b79d4b53b18a1e4fcc841b98c4

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.TensorCCR
2import Cloning.TensorCCRScalar
3import Cloning.TensorCyclicError
4 
5/-! Uniform cross-root CCR bounds on literal cyclic tensor cutoffs. -/
6noncomputable section
7open scoped BigOperators InnerProductSpace
8namespace Cloning.TensorLie
9set_option maxHeartbeats 1000000
10set_option backward.isDefEq.respectTransparency false
11variable {n d : ℕ}
12 
13private theorem scaled_root_norm_le
14    (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ)
15    (hweight : ∀ a, collectiveGenerator n a a Ω = (mu a : ℂ) • Ω)
16    (hraise : ∀ a b, a < b → collectiveGenerator n a b Ω = 0)
17    (r : ℕ) {x : TensorRegister n (Fin d)} (hx : x ∈ cyclicCutoff Ω r)
18    (u v : Fin d) (huv : u ≠ v) {g h δ : ℝ} (hδ : 0 < δ)
19    (hg : δ ≤ g) (hh : δ ≤ h)
20    (hres : |(mu u : ℝ) - mu v| = |g - h|) :
21    ‖((Real.sqrt g)⁻¹ * (Real.sqrt h)⁻¹) • collectiveGenerator n u v x‖ ≤
22      Real.sqrt (((r : ℝ) + 1) / δ + 2 * r * ((r : ℝ) + 1) / δ ^ 2) * ‖x‖ := by
23  have hs : 0 ≤ (Real.sqrt g)⁻¹ * (Real.sqrt h)⁻¹ := by positivity
24  rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg hs]
25  calc
26    _ ≤ ((Real.sqrt g)⁻¹ * (Real.sqrt h)⁻¹) *
27        (Real.sqrt (((r : ℝ) + 1) * (|g - h| + 2 * r)) * ‖x‖) := by
28      apply mul_le_mul_of_nonneg_left _ hs
29      simpa only [hres] using root_norm_le_cyclicCutoff Ω mu hweight hraise u v huv r hx
30    _ ≤ _ := by
31      rw [← mul_assoc]
32      exact mul_le_mul_of_nonneg_right (normalized_root_scalar_bound hδ hg hh r) (norm_nonneg x)
33 
34/-- Distinct normalized roots have a uniform vanishing off-diagonal CCR error
35when all retained highest-weight gaps exceed `δ`. -/
36theorem normalized_offdiagonal_commutator_norm_le
37    (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ)
38    (hweight : ∀ a, collectiveGenerator n a a Ω = (mu a : ℂ) • Ω)
39    (hraise : ∀ a b, a < b → collectiveGenerator n a b Ω = 0)
40    (r : ℕ) {x : TensorRegister n (Fin d)} (hx : x ∈ cyclicCutoff Ω r)
41    (a b c e : Fin d) (hne : (a, b) ≠ (c, e)) {δ : ℝ} (hδ : 0 < δ)
42    (hab : δ ≤ (mu a : ℝ) - mu b) (hce : δ ≤ (mu c : ℝ) - mu e) :
43    ‖normalizedAnnihilator n mu a b (normalizedCreator n mu c e x) -
44      normalizedCreator n mu c e (normalizedAnnihilator n mu a b x)‖ ≤
45      Real.sqrt (((r : ℝ) + 1) / δ + 2 * r * ((r : ℝ) + 1) / δ ^ 2) * ‖x‖ := by
46  have he := congrArg (fun T : TensorRegister n (Fin d) →L[ℂ] TensorRegister n (Fin d) => T x)
47    (normalized_root_commutator (n := n) mu a b c e)
48  simp only [ContinuousLinearMap.sub_apply, ContinuousLinearMap.mul_apply,
49    ContinuousLinearMap.smul_apply] at he
50  rw [he]
51  by_cases hbe : b = e
52  · have hca : c ≠ a := by
53      intro hca
54      exact hne (Prod.ext hca.symm hbe)
55    simp only [hbe, if_true, hca, if_false, ContinuousLinearMap.sub_apply,
56      ContinuousLinearMap.zero_apply, sub_zero]
57    apply scaled_root_norm_le Ω mu hweight hraise r hx a c hca.symm hδ
58      (by simpa only [hbe] using hab) hce
59    congr 1
60    ring
61  · by_cases hca : c = a
62    · simp only [hbe, if_false, hca, if_true, ContinuousLinearMap.sub_apply,
63        ContinuousLinearMap.zero_apply, zero_sub, smul_neg, norm_neg]
64      apply scaled_root_norm_le Ω mu hweight hraise r hx e b (Ne.symm hbe) hδ hab
65        (by simpa only [hca] using hce)
66      congr 1
67      ring
68    · simp only [hbe, hca, if_false, sub_self, ContinuousLinearMap.zero_apply,
69        smul_zero, norm_zero]
70      positivity
71 
72theorem normalized_CCR_norm_le
73    (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ)
74    (hweight : ∀ a, collectiveGenerator n a a Ω = (mu a : ℂ) • Ω)
75    (hraise : ∀ a b, a < b → collectiveGenerator n a b Ω = 0)
76    (r : ℕ) {x : TensorRegister n (Fin d)} (hx : x ∈ cyclicCutoff Ω r)
77    (a b c e : Fin d) {δ : ℝ} (hδ : 0 < δ)
78    (hab : δ ≤ (mu a : ℝ) - mu b) (hce : δ ≤ (mu c : ℝ) - mu e) :
79    ‖normalizedAnnihilator n mu a b (normalizedCreator n mu c e x) -
80      normalizedCreator n mu c e (normalizedAnnihilator n mu a b x) -
81      (if (a, b) = (c, e) then (1 : ℂ) else 0) • x‖ ≤ rootError r δ * ‖x‖ := by
82  by_cases he : (a, b) = (c, e)
83  · obtain ⟨rfl, rfl⟩ := Prod.mk.inj he
84    simp only [if_true, one_smul]
85    apply (normalized_diagonal_defect_norm_le Ω mu hweight r hx a b (hδ.trans_le hab)).trans
86    apply mul_le_mul_of_nonneg_right _ (norm_nonneg x)
87    exact (div_le_div_of_nonneg_left (by positivity) hδ hab).trans (le_max_left _ _)
88  · simp only [he, if_false, zero_smul, sub_zero]
89    exact (normalized_offdiagonal_commutator_norm_le Ω mu hweight hraise r hx a b c e he hδ hab hce).trans
90      (mul_le_mul_of_nonneg_right (le_max_right _ _) (norm_nonneg x))
91 
92end Cloning.TensorLie