Exact Lean source
MatrixTraceNormOrder
formalization/Cloning/MatrixTraceNormOrder.lean
Source hash: 0e6db0c2230ee297d8623019d014ca54890d1d2600f0645efe371ff0d4622555
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.MatrixFidelity.traceNorm_eq_sum_abs_eigenvaluestheorem Cloning.MatrixFidelity.traceNorm_sub_le_trace_addtheorem Cloning.MatrixFidelity.positivePart_posSemideftheorem Cloning.MatrixFidelity.negativePart_posSemideftheorem Cloning.MatrixFidelity.positivePart_sub_negativeParttheorem Cloning.MatrixFidelity.trace_positivePart_add_negativePart1import Cloning.MatrixFidelityContinuity
2import Mathlib.Analysis.Matrix.HermitianFunctionalCalculus
3
4/-!
5# Trace norm and positive decompositions
6
7For a Hermitian matrix, the concrete spectral trace norm is the sum of the
8absolute values of its eigenvalues. In a spectral basis, any positive
9decomposition gives a termwise bound on those absolute values. This proves
10the minimal-positive-decomposition estimate used for channel contraction.
11-/
12
13noncomputable section
14open scoped BigOperators MatrixOrder ComplexOrder
15open Matrix Unitary
16
17namespace Cloning.MatrixFidelity
18
19set_option backward.isDefEq.respectTransparency false
20set_option maxHeartbeats 1000000
21
22variable {n : Type*} [Fintype n] [DecidableEq n]
23
24/-- Concrete trace norm of a Hermitian matrix in its eigenbasis. -/
25theorem traceNorm_eq_sum_abs_eigenvalues {D : Matrix n n ℂ} (hD : D.IsHermitian) :
26 matrixTraceNorm D = ∑ i, |hD.eigenvalues i| := by
27 rw [← trace_abs_eq_matrixTraceNorm, CFC.abs_eq_cfc_norm D hD,
28 hD.cfc_eq (fun x : ℝ ↦ ‖x‖), Matrix.IsHermitian.cfc, conjStarAlgAut_apply,
29 Matrix.trace_mul_cycle, Unitary.coe_star_mul_self, one_mul, Matrix.trace_diagonal]
30 simp only [Function.comp_apply, Complex.re_sum, Real.norm_eq_abs]
31 apply Finset.sum_congr rfl
32 intro i _
33 exact RCLike.ofReal_re (K := ℂ) |hD.eigenvalues i|
34
35/-- A positive decomposition bounds the trace norm of its Hermitian difference.
36The estimate is independent of the ambient matrix dimension. -/
37theorem traceNorm_sub_le_trace_add {A B : Matrix n n ℂ}
38 (hA : A.PosSemidef) (hB : B.PosSemidef) :
39 matrixTraceNorm (A - B) ≤ (Matrix.trace A).re + (Matrix.trace B).re := by
40 let hD : (A - B).IsHermitian := hA.isHermitian.sub hB.isHermitian
41 let U := hD.eigenvectorUnitary
42 let C : Matrix n n ℂ := (star U : Matrix n n ℂ) * A * (U : Matrix n n ℂ)
43 let E : Matrix n n ℂ := (star U : Matrix n n ℂ) * B * (U : Matrix n n ℂ)
44 have hC : C.PosSemidef := hA.conjTranspose_mul_mul_same (U : Matrix n n ℂ)
45 have hE : E.PosSemidef := hB.conjTranspose_mul_mul_same (U : Matrix n n ℂ)
46 have hdiag : C - E = Matrix.diagonal (fun i ↦ (hD.eigenvalues i : ℂ)) := by
47 dsimp only [C, E]
48 rw [← Matrix.sub_mul, ← Matrix.mul_sub]
49 simpa only [conjStarAlgAut_star_apply, Function.comp_apply, Unitary.coe_star] using
50 hD.conjStarAlgAut_star_eigenvectorUnitary
51 have heig i : hD.eigenvalues i = (C i i).re - (E i i).re := by
52 have h := congrArg (fun M : Matrix n n ℂ ↦ (M i i).re) hdiag
53 simpa only [Matrix.sub_apply, Complex.sub_re, Matrix.diagonal_apply_eq,
54 Complex.ofReal_re] using h.symm
55 have htrC : Matrix.trace C = Matrix.trace A := by
56 dsimp only [C]
57 rw [Matrix.trace_mul_cycle,
58 show (U : Matrix n n ℂ) * star (U : Matrix n n ℂ) = 1 from
59 Unitary.mul_star_self_of_mem U.property, one_mul]
60 have htrE : Matrix.trace E = Matrix.trace B := by
61 dsimp only [E]
62 rw [Matrix.trace_mul_cycle,
63 show (U : Matrix n n ℂ) * star (U : Matrix n n ℂ) = 1 from
64 Unitary.mul_star_self_of_mem U.property, one_mul]
65 calc
66 matrixTraceNorm (A - B) = ∑ i, |hD.eigenvalues i| :=
67 traceNorm_eq_sum_abs_eigenvalues hD
68 _ ≤ ∑ i, ((C i i).re + (E i i).re) := by
69 apply Finset.sum_le_sum
70 intro i _
71 rw [heig i]
72 calc
73 |(C i i).re - (E i i).re| ≤ |(C i i).re| + |(E i i).re| := abs_sub _ _
74 _ = (C i i).re + (E i i).re := by
75 rw [abs_of_nonneg (Complex.nonneg_iff.mp (hC.diag_nonneg (i := i))).1,
76 abs_of_nonneg (Complex.nonneg_iff.mp (hE.diag_nonneg (i := i))).1]
77 _ = (Matrix.trace C).re + (Matrix.trace E).re := by
78 simp only [Matrix.trace, Matrix.diag, Complex.re_sum, Finset.sum_add_distrib]
79 _ = (Matrix.trace A).re + (Matrix.trace B).re := by rw [htrC, htrE]
80
81/-- The positive spectral part is an actual positive matrix. -/
82theorem positivePart_posSemidef (D : Matrix n n ℂ) :
83 D⁺.PosSemidef := (CFC.posPart_nonneg D).posSemidef
84
85/-- The negative spectral part is an actual positive matrix. -/
86theorem negativePart_posSemidef (D : Matrix n n ℂ) :
87 D⁻.PosSemidef := (CFC.negPart_nonneg D).posSemidef
88
89/-- Exact positive-minus-negative reconstruction of a Hermitian matrix. -/
90theorem positivePart_sub_negativePart {D : Matrix n n ℂ} (hD : D.IsHermitian) :
91 D⁺ - D⁻ = D := CFC.posPart_sub_negPart D hD
92
93/-- The canonical positive decomposition attains the trace-norm cost. -/
94theorem trace_positivePart_add_negativePart {D : Matrix n n ℂ} (hD : D.IsHermitian) :
95 (Matrix.trace D⁺).re + (Matrix.trace D⁻).re =
96 matrixTraceNorm D := by
97 rw [← Complex.add_re, ← Matrix.trace_add, CFC.posPart_add_negPart D hD,
98 trace_abs_eq_matrixTraceNorm]
99
100end Cloning.MatrixFidelity