Offline · exact source
Exact Lean source

MatrixChannelTraceNorm

formalization/Cloning/MatrixChannelTraceNorm.lean

Source hash: 6fc705857d8f735c29c406884750d1dfce0c7794bab9fc6a47ba6aef02337925

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.MatrixLiftedChannel
2import Cloning.MatrixTraceNormOrder
3 
4/-!
5# Trace-norm contraction of concrete matrix channels
6 
7The channel structure supplies complete positivity and trace preservation.
8Positivity follows by one-dimensional amplification. The Hermitian Jordan
9decomposition, followed by the positive-decomposition trace-norm bound,
10then proves contraction. No contractivity assumption is made.
11-/
12 
13noncomputable section
14open scoped Matrix MatrixOrder ComplexOrder
15open Cloning.MatrixFidelity
16 
17namespace Cloning.Channels.MatrixChannel
18 
19set_option backward.isDefEq.respectTransparency false
20 
21variable {α β : Type*} [Fintype α] [Fintype β]
22 
23/-- A concrete matrix channel preserves zero. -/
24theorem map_zero (Φ : MatrixChannel α β) : Φ.toFun 0 = 0 := by
25  simpa only [zero_smul] using Φ.map_smul (0 : ℂ) (0 : Matrix α α ℂ)
26 
27/-- A concrete matrix channel preserves additive inverses. -/
28theorem map_neg (Φ : MatrixChannel α β) (X : Matrix α α ℂ) :
29    Φ.toFun (-X) = -Φ.toFun X := by
30  simpa only [neg_one_smul] using Φ.map_smul (-1 : ℂ) X
31 
32/-- A concrete matrix channel preserves differences. -/
33theorem map_sub (Φ : MatrixChannel α β) (X Y : Matrix α α ℂ) :
34    Φ.toFun (X - Y) = Φ.toFun X - Φ.toFun Y := by
35  rw [sub_eq_add_neg, Φ.map_add, map_neg, ← sub_eq_add_neg]
36 
37/-- Complete positivity includes ordinary positivity. -/
38theorem positive (Φ : MatrixChannel α β) {X : Matrix α α ℂ}
39    (hX : X.PosSemidef) : (Φ.toFun X).PosSemidef :=
40  Cloning.MatrixLiftedChannel.map_positive Φ hX
41 
42variable [DecidableEq α] [DecidableEq β]
43 
44/-- The trace of the positive and negative Jordan parts is the Hermitian
45matrix's trace norm. -/
46theorem jordan_trace_mass {D : Matrix α α ℂ} (hD : D.IsHermitian) :
47    (Matrix.trace (D⁺)).re + (Matrix.trace (D⁻)).re = matrixTraceNorm D := by
48  rw [← Complex.add_re, ← Matrix.trace_add, CFC.posPart_add_negPart D hD]
49  rfl
50 
51/-- A trace-preserving positive matrix channel contracts the trace norm
52of every Hermitian matrix, including matrices with positive and negative
53eigenvalues and matrices with a nontrivial kernel. -/
54theorem traceNorm_contract_hermitian (Φ : MatrixChannel α β)
55    {D : Matrix α α ℂ} (hD : D.IsHermitian) :
56    matrixTraceNorm (Φ.toFun D) ≤ matrixTraceNorm D := by
57  have hpos : (D⁺).PosSemidef :=
58    Matrix.nonneg_iff_posSemidef.mp (CFC.posPart_nonneg D)
59  have hneg : (D⁻).PosSemidef :=
60    Matrix.nonneg_iff_posSemidef.mp (CFC.negPart_nonneg D)
61  have h := traceNorm_sub_le_trace_add (Φ.positive hpos) (Φ.positive hneg)
62  rw [← Φ.map_sub, CFC.posPart_sub_negPart D hD,
63    Φ.trace_preserving, Φ.trace_preserving, jordan_trace_mass hD] at h
64  exact h
65 
66/-- Trace distance between positive input matrices cannot increase under
67a concrete matrix channel. No input normalization is required. -/
68theorem traceNorm_contract_sub (Φ : MatrixChannel α β)
69    {X Y : Matrix α α ℂ} (hX : X.PosSemidef) (hY : Y.PosSemidef) :
70    matrixTraceNorm (Φ.toFun X - Φ.toFun Y) ≤ matrixTraceNorm (X - Y) := by
71  rw [← Φ.map_sub]
72  exact Φ.traceNorm_contract_hermitian (hX.isHermitian.sub hY.isHermitian)
73 
74/-- A numerical input trace-distance estimate passes through the channel. -/
75theorem traceNorm_contract_sub_le (Φ : MatrixChannel α β)
76    {X Y : Matrix α α ℂ} (hX : X.PosSemidef) (hY : Y.PosSemidef)
77    {ε : ℝ} (hε : matrixTraceNorm (X - Y) ≤ ε) :
78    matrixTraceNorm (Φ.toFun X - Φ.toFun Y) ≤ ε :=
79  (Φ.traceNorm_contract_sub hX hY).trans hε
80 
81end Cloning.Channels.MatrixChannel