Offline · exact source
Exact Lean source

CartanChannel

formalization/Cloning/CartanChannel.lean

Source hash: f3d23886d31ad7a27ab3b332339ff83339a143b4ea7c7efe0766911a1eec6fc6

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.Channels
2import Cloning.Compression
3import Mathlib.Data.Real.Sqrt
4import Mathlib.Tactic.FieldSimp
5 
6/-!
7# The Cartan formula is a completely positive trace-preserving map
8 
9We construct actual Kraus matrices from the slices of the Cartan inclusion.
10The partial-trace balance is the explicit representation-theoretic input needed
11for trace preservation; all matrix algebra and complete positivity are proved.
12-/
13 
14noncomputable section
15open scoped BigOperators Matrix Kronecker ComplexOrder
16open Matrix
17namespace Cloning.CartanChannel
18open Cloning.Channels Cloning.Compression
19 
20variable {A B C : Type*} [Fintype A] [Fintype B] [Fintype C]
21variable [DecidableEq A] [DecidableEq B] [DecidableEq C]
22set_option linter.unusedSectionVars false
23set_option backward.isDefEq.respectTransparency false
24 
25/-- A Kraus matrix obtained by contracting the environment leg of the inclusion. -/
26def sliceKraus (V : Matrix (A × B) C ℂ) (k : B) : Matrix C A ℂ :=
27  fun i j => star (V (j, k) i)
28 
29lemma core_eq_kraus (V : Matrix (A × B) C ℂ) (X : Matrix A A ℂ) :
30    V.conjTranspose * (X ⊗ₖ (1 : Matrix B B ℂ)) * V = krausMap (sliceKraus V) X := by
31  ext i j
32  simp only [krausMap, sliceKraus, Matrix.mul_apply, Matrix.conjTranspose_apply,
33    Matrix.kronecker_apply, Matrix.one_apply, Fintype.sum_prod_type,
34    Matrix.sum_apply, star_star, Finset.sum_mul]
35  simp only [mul_ite, mul_one, mul_zero, ite_mul, zero_mul, Finset.sum_ite_eq',
36    Finset.mem_univ, if_true]
37  exact Finset.sum_comm
38 
39/-- The Kraus normalization operator is the environment partial trace. -/
40lemma slice_normalization (V : Matrix (A × B) C ℂ) :
41    (∑ k, (sliceKraus V k).conjTranspose * sliceKraus V k) =
42      partialTrace (V * V.conjTranspose) := by
43  ext i j
44  simp [sliceKraus, partialTrace, Matrix.sum_apply, Matrix.mul_apply, Matrix.conjTranspose_apply]
45 
46/-- Scaling all Kraus operators by √r scales the represented map by r. -/
47lemma krausMap_sqrt_smul {ι : Type*} [Fintype ι]
48    (K : ι → Matrix C A ℂ) (X : Matrix A A ℂ) (r : ℝ) (hr : 0 ≤ r) :
49    krausMap (fun i => Real.sqrt r • K i) X = r • krausMap K X := by
50  simp only [krausMap, Matrix.conjTranspose_smul, star_trivial]
51  simp_rw [(Matrix.smul_mul (R := ℝ)), (Matrix.mul_smul (R := ℝ)), smul_smul, Real.mul_self_sqrt hr]
52  exact (Finset.smul_sum ..).symm
53 
54/-- Explicit Kraus operators for the Cartan-sector formula. -/
55def cartanKraus (V : Matrix (A × B) C ℂ) (din dout : ℝ) (k : B) : Matrix C A ℂ :=
56  Real.sqrt (din / dout) • sliceKraus V k
57 
58lemma sectorMap_eq_kraus (V : Matrix (A × B) C ℂ) (X : Matrix A A ℂ)
59    (din dout : ℝ) (hr : 0 ≤ din / dout) :
60    sectorMap din dout V X = krausMap (cartanKraus V din dout) X := by
61  rw [sectorMap, core_eq_kraus]
62  exact (krausMap_sqrt_smul (sliceKraus V) X (din / dout) hr).symm
63 
64/-- The Cartan-sector formula is positive at every finite amplification. -/
65lemma sectorMap_completely_positive {κ : Type*} [Fintype κ] [DecidableEq κ]
66    (V : Matrix (A × B) C ℂ) (din dout : ℝ) (hr : 0 ≤ din / dout)
67    {X : Matrix (κ × A) (κ × A) ℂ} (hX : X.PosSemidef) :
68    (amplify (sectorMap din dout V) X).PosSemidef := by
69  have heq : sectorMap din dout V = krausMap (cartanKraus V din dout) := by
70    funext Y
71    exact sectorMap_eq_kraus V Y din dout hr
72  rw [heq]
73  exact krausMap_completely_positive _ hX
74 
75lemma cartanKraus_normalization (V : Matrix (A × B) C ℂ) (din dout : ℝ)
76    (hdin : 0 < din) (hdout : 0 < dout)
77    (hbalance : partialTrace (V * V.conjTranspose) = (dout / din) • (1 : Matrix A A ℂ)) :
78    (∑ k, (cartanKraus V din dout k).conjTranspose * cartanKraus V din dout k) = 1 := by
79  have hr : 0 ≤ din / dout := le_of_lt (div_pos hdin hdout)
80  simp only [cartanKraus, Matrix.conjTranspose_smul, star_trivial,
81    (Matrix.smul_mul (R := ℝ)), (Matrix.mul_smul (R := ℝ)), smul_smul, Real.mul_self_sqrt hr]
82  rw [← Finset.smul_sum, slice_normalization, hbalance, smul_smul]
83  have hc : din / dout * (dout / din) = 1 := by
84    field_simp
85  rw [hc, one_smul]
86 
87/-- A concrete channel realizing the Cartan formula. The balance identity is
88exactly the input supplied by irreducibility and Schur's lemma in the paper. -/
89def cartanChannel (V : Matrix (A × B) C ℂ) (din dout : ℝ)
90    (hdin : 0 < din) (hdout : 0 < dout)
91    (hbalance : partialTrace (V * V.conjTranspose) = (dout / din) • (1 : Matrix A A ℂ)) :
92    MatrixChannel A C :=
93  ofKraus (cartanKraus V din dout) (cartanKraus_normalization V din dout hdin hdout hbalance)
94 
95lemma cartanChannel_apply (V : Matrix (A × B) C ℂ) (din dout : ℝ)
96    (hdin : 0 < din) (hdout : 0 < dout)
97    (hbalance : partialTrace (V * V.conjTranspose) = (dout / din) • (1 : Matrix A A ℂ))
98    (X : Matrix A A ℂ) :
99    (cartanChannel V din dout hdin hdout hbalance).toFun X = sectorMap din dout V X := by
100  exact (sectorMap_eq_kraus V X din dout (le_of_lt (div_pos hdin hdout))).symm
101 
102end Cloning.CartanChannel