Exact Lean source
TensorCyclicSectorTransvection
formalization/Cloning/TensorCyclicSectorTransvection.lean
Source hash: 888560300127d7ec708f763bb440f033c34790a78025a6dc853082da7fbb9bc0
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.TensorCyclicSectorTensorPower
2import Mathlib.Analysis.Calculus.Deriv.Prod
3import Mathlib.Analysis.Calculus.Deriv.Shift
4import Mathlib.Analysis.Matrix.Normed
5
6/-! Literal transvection actions commute with every collective-generator commutant. -/
7noncomputable section
8open scoped BigOperators InnerProductSpace Matrix Matrix.Norms.Elementwise
9namespace Cloning.TensorLie
10open Cloning.PCT Cloning.PCTPurificationChannel
11set_option maxHeartbeats 1000000
12set_option backward.isDefEq.respectTransparency false
13variable {n d : ℕ}
14
15private theorem slotMatrix_product (t : Fin n) (a b : Fin d)
16 (w v : Fin n → Fin d) :
17 (∏ j ∈ Finset.univ.erase t, (1 : Matrix (Fin d) (Fin d) ℂ) (w j) (v j)) *
18 Matrix.single a b (1 : ℂ) (w t) (v t) = slotMatrix t a b w v := by
19 by_cases h : w t = a ∧ v = Function.update w t b
20 · rcases h with ⟨ha, rfl⟩
21 rw [slotMatrix, if_pos ⟨ha, rfl⟩]
22 have hp : (∏ j ∈ Finset.univ.erase t,
23 (1 : Matrix (Fin d) (Fin d) ℂ) (w j) (Function.update w t b j)) = 1 := by
24 apply Finset.prod_eq_one
25 intro j hj
26 rw [Function.update_of_ne (Finset.mem_erase.mp hj).1]
27 simp
28 simp [hp, ha]
29 · rw [slotMatrix, if_neg h]
30 by_cases ha : w t = a
31 · by_cases hb : v t = b
32 · have hv : ∃ j, j ≠ t ∧ w j ≠ v j := by
33 by_contra hn
34 push_neg at hn
35 apply h
36 refine ⟨ha, funext (fun j => ?_)⟩
37 by_cases hj : j = t
38 · subst j
39 simpa using hb
40 · simpa [Function.update_of_ne hj] using (hn j hj).symm
41 obtain ⟨j, hj, hwv⟩ := hv
42 have hp : (∏ k ∈ Finset.univ.erase t,
43 (1 : Matrix (Fin d) (Fin d) ℂ) (w k) (v k)) = 0 :=
44 Finset.prod_eq_zero (i := j) (by simp [hj]) (by simp [Matrix.one_apply, hwv])
45 rw [hp, zero_mul]
46 · simp [Matrix.single, ha, hb, Ne.symm hb]
47 · simp [Matrix.single, ha, Ne.symm ha]
48
49/-- At the identity, the derivative of a physical tensor transvection is the
50literal collective matrix unit. -/
51theorem tensorOperator_transvection_hasDerivAt_zero (a b : Fin d) :
52 HasDerivAt (fun z : ℂ => tensorOperator n (Matrix.transvection a b z))
53 (collectiveGenerator n a b) 0 := by
54 have hm : HasDerivAt (fun z : ℂ => tensorPower n (Matrix.transvection a b z))
55 (∑ t : Fin n, slotMatrix t a b) 0 := by
56 apply hasDerivAt_pi.mpr
57 intro w
58 apply hasDerivAt_pi.mpr
59 intro v
60 have hd (j : Fin n) : HasDerivAt
61 (fun z : ℂ => Matrix.transvection a b z (w j) (v j))
62 (Matrix.single a b (1 : ℂ) (w j) (v j)) 0 := by
63 by_cases ha : a = w j <;> by_cases hb : b = v j <;>
64 simp only [Matrix.transvection, Matrix.add_apply, Matrix.single, Matrix.of_apply, ha, hb,
65 and_self, true_and, false_and, and_false, ite_true, ite_false, add_zero]
66 · exact (hasDerivAt_id (0 : ℂ)).const_add _
67 all_goals exact hasDerivAt_const _ _
68 have hh := HasDerivAt.fun_finset_prod (fun j (_ : j ∈ (Finset.univ : Finset (Fin n))) => hd j)
69 convert hh using 1
70 simp only [Matrix.transvection_zero, smul_eq_mul, Matrix.sum_apply]
71 exact Finset.sum_congr rfl (fun t _ => (slotMatrix_product t a b w v).symm)
72 have hh := (registerMatrixCLM (I := Fin n → Fin d)).hasFDerivAt.comp_hasDerivAt (0 : ℂ) hm
73 simpa only [tensorOperator, map_sum, registerMatrixCLM_apply, collectiveGenerator,
74 slotGenerator] using hh
75
76/-- The transvection path differentiates by left multiplication by the actual
77collective generator. -/
78theorem tensorOperator_transvection_hasDerivAt (a b : Fin d) (hab : a ≠ b) (z : ℂ) :
79 HasDerivAt (fun s : ℂ => tensorOperator n (Matrix.transvection a b s))
80 (collectiveGenerator n a b * tensorOperator n (Matrix.transvection a b z)) z := by
81 have h0 := (tensorOperator_transvection_hasDerivAt_zero (n := n) a b).mul_const
82 (tensorOperator n (Matrix.transvection a b z))
83 have hz := (show HasDerivAt _ _ (z - z) by simpa using h0).comp_sub_const z z
84 simpa only [← tensorOperator_mul, Matrix.transvection_mul_transvection_same a b hab,
85 sub_add_cancel] using hz
86
87/-- The same derivative can be written with the generator on the right. -/
88theorem tensorOperator_transvection_hasDerivAt_right (a b : Fin d) (hab : a ≠ b) (z : ℂ) :
89 HasDerivAt (fun s : ℂ => tensorOperator n (Matrix.transvection a b s))
90 (tensorOperator n (Matrix.transvection a b z) * collectiveGenerator n a b) z := by
91 have h0 := (tensorOperator_transvection_hasDerivAt_zero (n := n) a b).const_mul
92 (tensorOperator n (Matrix.transvection a b z))
93 have hz := (show HasDerivAt _ _ (z - z) by simpa using h0).comp_sub_const z z
94 have hs (x : ℂ) : z + (x - z) = x := by ring
95 simpa only [← tensorOperator_mul, Matrix.transvection_mul_transvection_same a b hab, hs] using hz
96
97/-- A matrix-unit commutant commutes with the corresponding literal tensor
98transvection, with no representation-integration premise. -/
99theorem tensorOperator_transvection_commutes
100 (T : TensorRegister n (Fin d) →L[ℂ] TensorRegister n (Fin d))
101 (a b : Fin d) (hab : a ≠ b)
102 (hT : T * collectiveGenerator n a b = collectiveGenerator n a b * T) (z : ℂ) :
103 T * tensorOperator n (Matrix.transvection a b z) =
104 tensorOperator n (Matrix.transvection a b z) * T := by
105 let F (s : ℂ) := tensorOperator n (Matrix.transvection a b (-s)) * T *
106 tensorOperator n (Matrix.transvection a b s)
107 have hd (s : ℂ) : HasDerivAt F 0 s := by
108 have hbase := tensorOperator_transvection_hasDerivAt_right (n := n) a b hab (-s)
109 have hminus := (show HasDerivAt _ _ (0 - s) by simpa using hbase).comp_const_sub 0 s
110 simp only [zero_sub] at hminus
111 have hplus := tensorOperator_transvection_hasDerivAt (n := n) a b hab s
112 have hh := (hminus.mul_const T).mul hplus
113 convert hh using 1
114 simp only [neg_mul]
115 rw [mul_assoc (tensorOperator n (Matrix.transvection a b (-s)))
116 (collectiveGenerator n a b) T, ← hT]
117 noncomm_ring
118 have hc : F z = F 0 := is_const_of_deriv_eq_zero
119 (fun s => (hd s).differentiableAt) (fun s => (hd s).deriv) z 0
120 have hcancel : tensorOperator n (Matrix.transvection a b z) *
121 tensorOperator n (Matrix.transvection a b (-z)) = 1 := by
122 rw [← tensorOperator_mul, Matrix.transvection_mul_transvection_same a b hab,
123 add_neg_cancel, Matrix.transvection_zero, tensorOperator_one]
124 have hh := congrArg (fun S => tensorOperator n (Matrix.transvection a b z) * S) hc
125 simpa only [F, neg_zero, Matrix.transvection_zero, tensorOperator_one, one_mul,
126 mul_one, ← mul_assoc, hcancel] using hh
127
128end Cloning.TensorLie