Exact Lean source
TensorCartanLieBalance
formalization/Cloning/TensorCartanLieBalance.lean
Source hash: 3fa1b99e0c9f6038d691958310b7bd5549b49036bee144ae505c365f5ded0efc
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
theorem
Cloning.TensorCartanLieBalance.partialTrace_addtheorem Cloning.TensorCartanLieBalance.partialTrace_left_tensortheorem Cloning.TensorCartanLieBalance.partialTrace_right_tensortheorem Cloning.TensorCartanLieBalance.partialTrace_environment_cycletheorem Cloning.TensorCartanLieBalance.partialTrace_tensorSum_commutestheorem Cloning.TensorCartanLieBalance.intertwiner_range_commutestheorem Cloning.TensorCartanLieBalance.partialTrace_lie_intertwiner_commutestheorem Cloning.TensorCartanLieBalance.balanced_partialTrace_of_scalartheorem Cloning.TensorCartanLieBalance.balanced_partialTrace_of_lie_intertwining1import Cloning.MatrixCovariantBalance
2
3/-!
4# Partial-trace balance from exact Lie intertwining
5
6The spectator commutator vanishes under the actual finite partial trace.
7An adjoint-compatible tensor-sum intertwiner therefore gives a commuting
8reduced range operator; scalarity and its trace fix the dimension ratio.
9-/
10noncomputable section
11open scoped BigOperators Matrix Kronecker
12open Matrix Cloning.Compression
13namespace Cloning.TensorCartanLieBalance
14set_option backward.isDefEq.respectTransparency false
15set_option maxHeartbeats 500000
16set_option linter.unusedSectionVars false
17
18variable {A B C : Type*} [Fintype A] [Fintype B] [Fintype C]
19variable [DecidableEq A] [DecidableEq B] [DecidableEq C]
20
21theorem partialTrace_add (X Y : Matrix (A × B) (A × B) ℂ) :
22 partialTrace (X + Y) = partialTrace X + partialTrace Y := by
23 ext a c
24 simp [partialTrace, Finset.sum_add_distrib]
25
26theorem partialTrace_left_tensor (G : Matrix A A ℂ)
27 (X : Matrix (A × B) (A × B) ℂ) :
28 partialTrace ((G ⊗ₖ (1 : Matrix B B ℂ)) * X) = G * partialTrace X := by
29 ext a c
30 simp only [partialTrace, Matrix.mul_apply, Matrix.kronecker_apply,
31 Matrix.one_apply, Fintype.sum_prod_type, Finset.mul_sum]
32 simp only [mul_ite, mul_one, mul_zero, ite_mul, zero_mul,
33 Finset.sum_ite_eq, Finset.mem_univ, if_true]
34 exact Finset.sum_comm
35
36theorem partialTrace_right_tensor (G : Matrix A A ℂ)
37 (X : Matrix (A × B) (A × B) ℂ) :
38 partialTrace (X * (G ⊗ₖ (1 : Matrix B B ℂ))) = partialTrace X * G := by
39 ext a c
40 simp only [partialTrace, Matrix.mul_apply, Matrix.kronecker_apply,
41 Matrix.one_apply, Fintype.sum_prod_type, Finset.sum_mul]
42 simp only [mul_ite, mul_one, mul_zero,
43 Finset.sum_ite_eq', Finset.mem_univ, if_true]
44 exact Finset.sum_comm
45
46/-- Cyclicity in the discarded factor, with no Hermitian or positivity premise. -/
47theorem partialTrace_environment_cycle (G : Matrix B B ℂ)
48 (X : Matrix (A × B) (A × B) ℂ) :
49 partialTrace (((1 : Matrix A A ℂ) ⊗ₖ G) * X) =
50 partialTrace (X * ((1 : Matrix A A ℂ) ⊗ₖ G)) := by
51 ext a c
52 simp only [partialTrace, Matrix.mul_apply, Matrix.kronecker_apply,
53 Matrix.one_apply, Fintype.sum_prod_type]
54 simp only [ite_mul, one_mul, zero_mul, mul_ite, mul_zero, Finset.sum_ite_irrel,
55 Finset.sum_const_zero, Finset.sum_ite_eq, Finset.sum_ite_eq', Finset.mem_univ, if_true]
56 rw [Finset.sum_comm]
57 apply Finset.sum_congr rfl
58 intro b _
59 apply Finset.sum_congr rfl
60 intro e _
61 exact mul_comm _ _
62
63/-- Commutation with a tensor-sum generator descends through partial trace. -/
64theorem partialTrace_tensorSum_commutes (GA : Matrix A A ℂ) (GB : Matrix B B ℂ)
65 (X : Matrix (A × B) (A × B) ℂ)
66 (hcomm : X * (GA ⊗ₖ (1 : Matrix B B ℂ) + (1 : Matrix A A ℂ) ⊗ₖ GB) =
67 (GA ⊗ₖ (1 : Matrix B B ℂ) + (1 : Matrix A A ℂ) ⊗ₖ GB) * X) :
68 partialTrace X * GA = GA * partialTrace X := by
69 have h := congrArg partialTrace hcomm
70 simp only [Matrix.mul_add, Matrix.add_mul, partialTrace_add,
71 partialTrace_left_tensor, partialTrace_right_tensor] at h
72 rw [partialTrace_environment_cycle] at h
73 exact add_right_cancel h
74
75/-- An operator and its adjoint intertwining through `V` force the range
76operator `VV*` to commute; isometry is not needed for this algebraic step. -/
77theorem intertwiner_range_commutes (F : Matrix (A × B) (A × B) ℂ)
78 (G : Matrix C C ℂ) (V : Matrix (A × B) C ℂ)
79 (h : F * V = V * G) (hstar : F.conjTranspose * V = V * G.conjTranspose) :
80 (V * V.conjTranspose) * F = F * (V * V.conjTranspose) := by
81 have hs := congrArg Matrix.conjTranspose hstar
82 simp only [Matrix.conjTranspose_mul, Matrix.conjTranspose_conjTranspose] at hs
83 calc
84 _ = V * (V.conjTranspose * F) := Matrix.mul_assoc _ _ _
85 _ = V * (G * V.conjTranspose) := by rw [hs]
86 _ = (V * G) * V.conjTranspose := (Matrix.mul_assoc _ _ _).symm
87 _ = (F * V) * V.conjTranspose := by rw [h]
88 _ = _ := Matrix.mul_assoc _ _ _
89
90/-- A Lie intertwiner of adjoint-compatible generator families makes its
91actual reduced range operator commute with the first family's generators. -/
92theorem partialTrace_lie_intertwiner_commutes {d : ℕ}
93 (GA : Fin d → Fin d → Matrix A A ℂ) (GB : Fin d → Fin d → Matrix B B ℂ)
94 (GC : Fin d → Fin d → Matrix C C ℂ) (V : Matrix (A × B) C ℂ)
95 (hGA : ∀ a b, GA b a = (GA a b).conjTranspose)
96 (hGB : ∀ a b, GB b a = (GB a b).conjTranspose)
97 (hGC : ∀ a b, GC b a = (GC a b).conjTranspose)
98 (hintertwine : ∀ a b,
99 (GA a b ⊗ₖ (1 : Matrix B B ℂ) + (1 : Matrix A A ℂ) ⊗ₖ GB a b) * V = V * GC a b)
100 (a b : Fin d) :
101 partialTrace (V * V.conjTranspose) * GA a b =
102 GA a b * partialTrace (V * V.conjTranspose) := by
103 apply partialTrace_tensorSum_commutes
104 apply intertwiner_range_commutes _ (GC a b) V (hintertwine a b)
105 simpa only [Matrix.conjTranspose_add, Matrix.conjTranspose_kronecker,
106 Matrix.conjTranspose_one, ← hGA, ← hGB, ← hGC] using hintertwine b a
107
108/-- Scalarity fixes the balance constant by tracing the genuine isometric
109range operator. The matrix dimensions are used directly. -/
110theorem balanced_partialTrace_of_scalar (V : Matrix (A × B) C ℂ)
111 (hA : 0 < Fintype.card A) (hV : V.conjTranspose * V = 1)
112 (hscalar : ∃ c : ℂ, partialTrace (V * V.conjTranspose) = c • (1 : Matrix A A ℂ)) :
113 partialTrace (V * V.conjTranspose) =
114 ((Fintype.card C : ℝ) / (Fintype.card A : ℝ)) • (1 : Matrix A A ℂ) := by
115 obtain ⟨c, hc⟩ := hscalar
116 have htr := Cloning.MatrixCovariantBalance.trace_partialTrace_isometry V hV
117 rw [hc, Matrix.trace_smul, Matrix.trace_one] at htr
118 change c * (Fintype.card A : ℂ) = (Fintype.card C : ℂ) at htr
119 have hcard : (Fintype.card A : ℂ) ≠ 0 := Nat.cast_ne_zero.mpr (Nat.ne_of_gt hA)
120 have hcval : c = (Fintype.card C : ℂ) / (Fintype.card A : ℂ) := (eq_div_iff hcard).mpr htr
121 rw [hc, hcval]
122 ext a b
123 simp only [Matrix.smul_apply, Complex.real_smul, smul_eq_mul,
124 Complex.ofReal_div, Complex.ofReal_natCast]
125
126/-- Exact Lie intertwining, adjoints, and first-factor commutant scalarity
127imply Cartan balance. No balance or channel normalization is assumed. -/
128theorem balanced_partialTrace_of_lie_intertwining {d : ℕ}
129 (GA : Fin d → Fin d → Matrix A A ℂ) (GB : Fin d → Fin d → Matrix B B ℂ)
130 (GC : Fin d → Fin d → Matrix C C ℂ) (V : Matrix (A × B) C ℂ)
131 (hGA : ∀ a b, GA b a = (GA a b).conjTranspose)
132 (hGB : ∀ a b, GB b a = (GB a b).conjTranspose)
133 (hGC : ∀ a b, GC b a = (GC a b).conjTranspose)
134 (hA : 0 < Fintype.card A) (hV : V.conjTranspose * V = 1)
135 (hintertwine : ∀ a b,
136 (GA a b ⊗ₖ (1 : Matrix B B ℂ) + (1 : Matrix A A ℂ) ⊗ₖ GB a b) * V = V * GC a b)
137 (hscalar : ∀ M : Matrix A A ℂ, (∀ a b, M * GA a b = GA a b * M) →
138 ∃ c : ℂ, M = c • (1 : Matrix A A ℂ)) :
139 partialTrace (V * V.conjTranspose) =
140 ((Fintype.card C : ℝ) / (Fintype.card A : ℝ)) • (1 : Matrix A A ℂ) := by
141 apply balanced_partialTrace_of_scalar V hA hV
142 apply hscalar
143 exact partialTrace_lie_intertwiner_commutes GA GB GC V hGA hGB hGC hintertwine
144
145end Cloning.TensorCartanLieBalance