Exact Lean source
TensorCyclicSectorDiagonal
formalization/Cloning/TensorCyclicSectorDiagonal.lean
Source hash: c19583b3378607533b10cf1d37afe732d5276ed66e3ecd30eafeef48d9790ebd
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 Cloning.PCTPurificationInvariance
3
4/-!
5# From Cartan commutation to literal diagonal tensor powers
6
7An operator commuting with the actual Cartan generators has zero matrix
8coefficients between different occupation vectors. The actual tensor power
9of any complex diagonal matrix is constant on each such occupation space.
10No invertibility, positivity, or nonzero-coordinate condition is imposed.
11-/
12noncomputable section
13open scoped BigOperators InnerProductSpace Matrix
14namespace Cloning.TensorLie
15open Cloning.PCT Cloning.PCTPurificationChannel
16set_option maxHeartbeats 400000
17set_option backward.isDefEq.respectTransparency false
18variable {n d : ℕ}
19
20/-- A word's diagonal multiplier depends only on its occupation vector. -/
21theorem word_product_eq_occupancy (D : Fin d → ℂ) (w : Fin n → Fin d) :
22 (∏ t, D (w t)) = ∏ a, D a ^ occupancy w a := by
23 simpa only [Finset.prod_const, occupancy] using
24 (Finset.prod_fiberwise' Finset.univ w D).symm
25
26/-- The literal diagonal tensor power is a diagonal operator in the word basis. -/
27theorem tensorOperator_diagonal_apply (D : Fin d → ℂ)
28 (x : TensorRegister n (Fin d)) (w : Fin n → Fin d) :
29 tensorOperator n (Matrix.diagonal D) x w = (∏ t, D (w t)) * x w := by
30 have hdiag : tensorPower n (Matrix.diagonal D) =
31 Matrix.diagonal (fun v : Fin n → Fin d => ∏ t, D (v t)) := by
32 ext v u
33 by_cases h : v = u
34 · subst u
35 simp [tensorPower]
36 · obtain ⟨t, ht⟩ := Function.ne_iff.mp h
37 rw [Matrix.diagonal_apply_ne _ h]
38 exact Finset.prod_eq_zero (Finset.mem_univ t) (Matrix.diagonal_apply_ne _ ht)
39 simp only [tensorOperator, hdiag, registerMatrixCLM_apply,
40 register_ofMatrix_apply, Matrix.diagonal_apply, ite_mul, zero_mul,
41 Finset.sum_ite_eq, Finset.mem_univ, if_true]
42
43theorem tensorOperator_diagonal_basis (D : Fin d → ℂ) (w : Fin n → Fin d) :
44 tensorOperator n (Matrix.diagonal D) (registerBasis (Fin n → Fin d) w) =
45 (∏ t, D (w t)) • registerBasis (Fin n → Fin d) w := by
46 ext v
47 simp only [tensorOperator_diagonal_apply, registerBasis_apply, lp.single_apply,
48 Pi.single_apply, lp.coeFn_smul, Pi.smul_apply, smul_eq_mul]
49 by_cases hv : v = w <;> simp [hv]
50
51/-- A nonzero coefficient of a Cartan-commuting operator connects only words
52having exactly the same occupancy in every letter. -/
53theorem cartan_commuting_coefficient_occupancy
54 (T : TensorRegister n (Fin d) →L[ℂ] TensorRegister n (Fin d))
55 (hT : ∀ a, T * collectiveGenerator n a a = collectiveGenerator n a a * T)
56 (v w : Fin n → Fin d)
57 (hcoeff : T (registerBasis (Fin n → Fin d) v) w ≠ 0) (a : Fin d) :
58 occupancy v a = occupancy w a := by
59 have he := congrArg (fun Q : TensorRegister n (Fin d) →L[ℂ] TensorRegister n (Fin d) =>
60 Q (registerBasis (Fin n → Fin d) v) w) (hT a)
61 simp only [ContinuousLinearMap.mul_apply, collectiveGenerator_diagonal_basis,
62 map_smul, lp.coeFn_smul, Pi.smul_apply, smul_eq_mul, collectiveGenerator_diagonal] at he
63 have heq : (occupancy v a : ℂ) = (occupancy w a : ℂ) := mul_right_cancel₀ hcoeff he
64 exact_mod_cast heq
65
66/-- Commutation with all actual Cartan operators implies commutation with
67every literal complex diagonal tensor power, including singular diagonals. -/
68theorem tensorOperator_diagonal_commutes
69 (T : TensorRegister n (Fin d) →L[ℂ] TensorRegister n (Fin d))
70 (hT : ∀ a, T * collectiveGenerator n a a = collectiveGenerator n a a * T)
71 (D : Fin d → ℂ) :
72 T * tensorOperator n (Matrix.diagonal D) = tensorOperator n (Matrix.diagonal D) * T := by
73 apply register_operator_ext
74 intro w v
75 rw [← registerBasis_apply]
76 change T (tensorOperator n (Matrix.diagonal D) (registerBasis (Fin n → Fin d) v)) w =
77 tensorOperator n (Matrix.diagonal D) (T (registerBasis (Fin n → Fin d) v)) w
78 rw [tensorOperator_diagonal_basis, map_smul, tensorOperator_diagonal_apply]
79 simp only [lp.coeFn_smul, Pi.smul_apply, smul_eq_mul]
80 by_cases hc : T (registerBasis (Fin n → Fin d) v) w = 0
81 · simp only [hc, mul_zero]
82 · have hocc := cartan_commuting_coefficient_occupancy T hT v w hc
83 rw [word_product_eq_occupancy D v, word_product_eq_occupancy D w]
84 simp only [hocc]
85
86end Cloning.TensorLie