Exact Lean source
TensorLieGenerators
formalization/Cloning/TensorLieGenerators.lean
Source hash: 362144c091198c66f989bb2c7d436751e0720c1c6d59d891355d029633c3d26d
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.TensorRegisterdefinition Cloning.TensorLie.slotMatrixdefinition Cloning.TensorLie.slotGeneratortheorem Cloning.TensorLie.slotGenerator_applytheorem Cloning.TensorLie.update_relationtheorem Cloning.TensorLie.slotMatrix_adjointtheorem Cloning.TensorLie.slotGenerator_adjointtheorem Cloning.TensorLie.slotGenerator_mul_sametheorem Cloning.TensorLie.slotGenerator_commutetheorem Cloning.TensorLie.slotGenerator_norm_le_onedefinition Cloning.TensorLie.collectiveGeneratortheorem Cloning.TensorLie.collectiveGenerator_applytheorem Cloning.TensorLie.collectiveGenerator_adjointtheorem Cloning.TensorLie.collectiveGenerator_norm_le1import Cloning.PCTTensorFrame
2import Cloning.InfiniteFiniteCorner
3
4/-!
5# Literal matrix-unit generators on finite tensor registers
6
7Each one-slot generator changes the letter in that slot. The construction is
8an actual bounded operator on the computational-word Hilbert space, rather
9than an abstract representation satisfying postulated Lie relations.
10-/
11
12noncomputable section
13open scoped BigOperators InnerProductSpace ComplexOrder Matrix
14namespace Cloning.TensorLie
15open Cloning.PCT Cloning.InfiniteFiniteCorner
16set_option maxHeartbeats 1000000
17set_option backward.isDefEq.respectTransparency false
18
19variable {A : Type*} [Fintype A] [DecidableEq A] {n : ℕ}
20
21abbrev TensorRegister (n : ℕ) (A : Type*) := Register (Fin n → A)
22
23def slotMatrix (t : Fin n) (a b : A) : Matrix (Fin n → A) (Fin n → A) ℂ :=
24 fun w v => if w t = a ∧ v = Function.update w t b then 1 else 0
25
26def slotGenerator (t : Fin n) (a b : A) : TensorRegister n A →L[ℂ] TensorRegister n A :=
27 ofMatrix (registerBasis (Fin n → A)) (slotMatrix t a b)
28
29/-- The operator acts by the literal tensor matrix-unit formula. -/
30@[simp] theorem slotGenerator_apply (t : Fin n) (a b : A)
31 (x : TensorRegister n A) (w : Fin n → A) :
32 slotGenerator t a b x w = if w t = a then x (Function.update w t b) else 0 := by
33 rw [← register_inner_single, ← registerBasis_apply]
34 rw [slotGenerator, inner_ofMatrix_apply (registerBasis _).orthonormal]
35 simp only [registerBasis_apply, register_inner_single]
36 by_cases h : w t = a <;> simp [slotMatrix, h]
37
38omit [Fintype A] [DecidableEq A] in
39theorem update_relation (t : Fin n) (a b : A) (w v : Fin n → A) :
40 (w t = a ∧ v = Function.update w t b) ↔
41 (v t = b ∧ w = Function.update v t a) := by
42 constructor
43 · rintro ⟨h, rfl⟩
44 refine ⟨by simp, ?_⟩
45 rw [Function.update_idem, ← h, Function.update_eq_self]
46 · rintro ⟨h, rfl⟩
47 refine ⟨by simp, ?_⟩
48 rw [Function.update_idem, ← h, Function.update_eq_self]
49
50omit [Fintype A] in
51theorem slotMatrix_adjoint (t : Fin n) (a b : A) :
52 (slotMatrix t a b)ᴴ = slotMatrix t b a := by
53 ext w v
54 have he := update_relation t a b v w
55 by_cases h : v t = a ∧ w = Function.update v t b
56 · simp only [Matrix.conjTranspose_apply, slotMatrix, if_pos h, if_pos (he.mp h), star_one]
57 · have h' : ¬(w t = b ∧ v = Function.update w t a) := fun hh => h (he.mpr hh)
58 simp only [Matrix.conjTranspose_apply, slotMatrix, if_neg h, if_neg h', star_zero]
59
60theorem slotGenerator_adjoint (t : Fin n) (a b : A) :
61 (slotGenerator t a b).adjoint = slotGenerator t b a := by
62 rw [← ContinuousLinearMap.star_eq_adjoint, slotGenerator,
63 ← ofMatrix_conjTranspose, slotMatrix_adjoint]
64 rfl
65
66theorem slotGenerator_mul_same (t : Fin n) (a b c e : A) :
67 slotGenerator t a b * slotGenerator t c e =
68 if b = c then slotGenerator t a e else 0 := by
69 ext x w
70 simp only [ContinuousLinearMap.mul_apply, slotGenerator_apply,
71 Function.update_self, Function.update_idem]
72 by_cases hbc : b = c <;> by_cases hwa : w t = a <;> simp [hbc, hwa]
73
74theorem slotGenerator_commute {t u : Fin n} (htu : t ≠ u) (a b c e : A) :
75 Commute (slotGenerator t a b) (slotGenerator u c e) := by
76 apply ContinuousLinearMap.ext
77 intro x
78 ext w
79 simp only [ContinuousLinearMap.mul_apply, slotGenerator_apply,
80 Function.update_of_ne htu, Function.update_of_ne htu.symm]
81 rw [Function.update_comm htu]
82 by_cases hwa : w t = a <;> by_cases hwc : w u = c <;> simp [hwa, hwc]
83
84theorem slotGenerator_norm_le_one (t : Fin n) (a b : A) :
85 ‖slotGenerator t a b‖ ≤ 1 := by
86 have hp := CStarRing.norm_star_mul_self (x := slotGenerator t b b)
87 simp only [ContinuousLinearMap.star_eq_adjoint, slotGenerator_adjoint,
88 slotGenerator_mul_same, if_true] at hp
89 have hpbound : ‖slotGenerator t b b‖ ≤ 1 := by
90 have := norm_nonneg (slotGenerator t b b)
91 nlinarith
92 have he := CStarRing.norm_star_mul_self (x := slotGenerator t a b)
93 simp only [ContinuousLinearMap.star_eq_adjoint, slotGenerator_adjoint,
94 slotGenerator_mul_same, if_true] at he
95 have := norm_nonneg (slotGenerator t a b)
96 nlinarith
97
98def collectiveGenerator (n : ℕ) (a b : A) :
99 TensorRegister n A →L[ℂ] TensorRegister n A := ∑ t : Fin n, slotGenerator t a b
100
101@[simp] theorem collectiveGenerator_apply (a b : A)
102 (x : TensorRegister n A) (w : Fin n → A) :
103 collectiveGenerator n a b x w =
104 ∑ t : Fin n, if w t = a then x (Function.update w t b) else 0 := by
105 simp only [collectiveGenerator, ContinuousLinearMap.sum_apply, lp.coeFn_sum,
106 Finset.sum_apply, slotGenerator_apply]
107
108theorem collectiveGenerator_adjoint (a b : A) :
109 (collectiveGenerator n a b).adjoint = collectiveGenerator n b a := by
110 simp only [collectiveGenerator, map_sum, slotGenerator_adjoint]
111
112theorem collectiveGenerator_norm_le (a b : A) :
113 ‖collectiveGenerator n a b‖ ≤ n := by
114 apply (norm_sum_le _ _).trans
115 have h := Finset.sum_le_sum (fun t (_ : t ∈ (Finset.univ : Finset (Fin n))) =>
116 slotGenerator_norm_le_one t a b)
117 simpa using h
118
119end Cloning.TensorLie