Exact Lean source
FiniteKrausLift
formalization/Cloning/FiniteKrausLift.lean
Source hash: 95efd5d0c8fe6ef6bd81f8da4db10093acb788165901f624dc0aee9e3c8f5d34
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
definition
Cloning.FiniteKrausLift.matrixRegistertheorem Cloning.FiniteKrausLift.matrixRegister_applytheorem Cloning.FiniteKrausLift.matrixRegister_singletheorem Cloning.FiniteKrausLift.matrixRegister_onetheorem Cloning.FiniteKrausLift.matrixRegister_multheorem Cloning.FiniteKrausLift.matrixRegister_sumtheorem Cloning.FiniteKrausLift.matrixRegister_adjoint_singletheorem Cloning.FiniteKrausLift.matrixRegister_conjTransposetheorem Cloning.FiniteKrausLift.registerLiftCLM_operatortheorem Cloning.FiniteKrausLift.conjugation_matrixRegistertheorem Cloning.FiniteKrausLift.matrixRegister_kraus_completedefinition Cloning.FiniteKrausLift.channeltheorem Cloning.FiniteKrausLift.channel_registerLiftCLM1import Cloning.PCTPurificationChannelPhysical
2import Cloning.InfiniteRectangularKraus
3
4/-! Lifting normalized finite rectangular matrix Kraus families to genuine channels of physical trace-class registers. -/
5noncomputable section
6open scoped BigOperators Matrix InnerProductSpace ComplexOrder
7open Cloning.InfiniteTraceClass Cloning.PCT Cloning.PCTPurificationChannel
8
9namespace Cloning.FiniteKrausLift
10
11set_option maxHeartbeats 400000
12set_option backward.isDefEq.respectTransparency false
13set_option linter.unusedSectionVars false
14
15variable {I J K : Type*} [Fintype I] [Fintype J] [Fintype K]
16 [DecidableEq I] [DecidableEq J] [DecidableEq K]
17
18local instance registerFiniteDimensional (L : Type*) [Fintype L] [DecidableEq L] :
19 FiniteDimensional ℂ (Register L) :=
20 (registerBasis L).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
21
22/-- Actual rectangular matrix action on the finite Hilbert register. -/
23def matrixRegister (M : Matrix J I ℂ) : Register I →L[ℂ] Register J :=
24 LinearMap.toContinuousLinearMap
25 { toFun x := ⟨fun a => ∑ b, M a b * x b, memℓp_gen (by
26 simp only [ENNReal.toReal_ofNat]; exact (hasSum_fintype _).summable)⟩
27 map_add' x y := by
28 ext a
29 change (∑ b, M a b * (x b + y b)) = (∑ b, M a b * x b) + ∑ b, M a b * y b
30 simp only [mul_add, Finset.sum_add_distrib]
31 map_smul' c x := by ext a; simp [Finset.mul_sum, mul_left_comm] }
32
33@[simp] theorem matrixRegister_apply (M : Matrix J I ℂ) (x : Register I) (a : J) :
34 matrixRegister M x a = ∑ b, M a b * x b := rfl
35
36@[simp] theorem matrixRegister_single (M : Matrix J I ℂ) (b : I) (a : J) :
37 matrixRegister M (lp.single 2 b 1) a = M a b := by
38 simp [matrixRegister_apply, lp.single_apply, Pi.single_apply]
39
40@[simp] theorem matrixRegister_one :
41 matrixRegister (1 : Matrix I I ℂ) = ContinuousLinearMap.id ℂ (Register I) := by
42 ext x a
43 simp [Matrix.one_apply]
44
45theorem matrixRegister_mul (M : Matrix K J ℂ) (N : Matrix J I ℂ) :
46 matrixRegister (M * N) = (matrixRegister M).comp (matrixRegister N) := by
47 ext x a
48 simp only [matrixRegister_apply, Matrix.mul_apply, Finset.sum_mul,
49 ContinuousLinearMap.comp_apply, Finset.mul_sum, mul_assoc]
50 exact Finset.sum_comm
51
52theorem matrixRegister_sum {ι : Type*} [Fintype ι] (M : ι → Matrix J I ℂ) :
53 matrixRegister (∑ k, M k) = ∑ k, matrixRegister (M k) := by
54 ext x a
55 simp only [matrixRegister_apply, Matrix.sum_apply, Finset.sum_mul,
56 ContinuousLinearMap.sum_apply, lp.coeFn_sum, Finset.sum_apply]
57 exact Finset.sum_comm
58
59theorem matrixRegister_adjoint_single (M : Matrix J I ℂ) (a : J) (b : I) :
60 (matrixRegister M).adjoint (lp.single 2 a 1) b = star (M a b) := by
61 rw [← register_inner_single, ContinuousLinearMap.adjoint_inner_right]
62 simp only [lp.inner_single_right, RCLike.inner_apply, matrixRegister_single,
63 one_mul, starRingEnd_apply]
64
65theorem matrixRegister_conjTranspose (M : Matrix J I ℂ) :
66 matrixRegister M.conjTranspose = (matrixRegister M).adjoint := by
67 apply (ContinuousLinearMap.eq_adjoint_iff _ _).mpr
68 intro x y
69 simp only [lp.inner_eq_tsum, tsum_fintype, RCLike.inner_apply, matrixRegister_apply,
70 Matrix.conjTranspose_apply, starRingEnd_apply, star_sum, StarMul.star_mul,
71 star_star, Finset.mul_sum, Finset.sum_mul]
72 rw [Finset.sum_comm]
73 apply Finset.sum_congr rfl
74 intro a _
75 apply Finset.sum_congr rfl
76 intro b _
77 ring
78
79theorem registerLiftCLM_operator (M : Matrix I I ℂ) :
80 (registerLiftCLM M).1 = matrixRegister M := by
81 apply register_operator_ext
82 intro a b
83 rw [registerLiftCLM_coefficient, matrixRegister_single]
84
85theorem conjugation_matrixRegister (M : Matrix J I ℂ) (X : Matrix I I ℂ) :
86 conjugationLinearMap (matrixRegister M) (registerLiftCLM X) =
87 registerLiftCLM (M * X * M.conjTranspose) := by
88 apply Subtype.ext
89 rw [conjugationLinearMap_coe, registerLiftCLM_operator, registerLiftCLM_operator,
90 matrixRegister_mul, matrixRegister_mul, matrixRegister_conjTranspose]
91 rfl
92
93/-- Matrix Kraus normalization implies the actual Hilbert-space normalization. -/
94theorem matrixRegister_kraus_complete {ι : Type*} [Fintype ι]
95 (M : ι → Matrix J I ℂ) (hM : ∑ k, (M k).conjTranspose * M k = 1) :
96 RectangularKrausComplete (fun k => matrixRegister (M k)) := by
97 have hop : (∑ k, (matrixRegister (M k)).adjoint.comp (matrixRegister (M k))) =
98 ContinuousLinearMap.id ℂ (Register I) := by
99 simp_rw [← matrixRegister_conjTranspose, ← matrixRegister_mul]
100 rw [← matrixRegister_sum, hM, matrixRegister_one]
101 intro x
102 have hi : ∑ k, ⟪matrixRegister (M k) x, matrixRegister (M k) x⟫_ℂ = ⟪x, x⟫_ℂ := by
103 simp_rw [← ContinuousLinearMap.adjoint_inner_right]
104 rw [← inner_sum]
105 change ⟪x, ∑ k, ((matrixRegister (M k)).adjoint.comp (matrixRegister (M k))) x⟫_ℂ = _
106 rw [← ContinuousLinearMap.sum_apply, hop]
107 rfl
108 have hnJ (y : Register J) : (⟪y, y⟫_ℂ).re = ‖y‖ ^ 2 :=
109 (norm_sq_eq_re_inner (𝕜 := ℂ) y).symm
110 have hnI : (⟪x, x⟫_ℂ).re = ‖x‖ ^ 2 :=
111 (norm_sq_eq_re_inner (𝕜 := ℂ) x).symm
112 have hn : ∑ k, ‖matrixRegister (M k) x‖ ^ 2 = ‖x‖ ^ 2 := by
113 simpa only [Complex.re_sum, hnJ, hnI] using congrArg Complex.re hi
114 exact hn ▸ hasSum_fintype (fun k => ‖matrixRegister (M k) x‖ ^ 2)
115
116/-- A genuine CPTP channel, constructed from finite matrix Kraus normalization. -/
117def channel {ι : Type*} [Fintype ι] (M : ι → Matrix J I ℂ)
118 (hM : ∑ k, (M k).conjTranspose * M k = 1) : QuantumChannel (Register I) (Register J) :=
119 QuantumChannel.ofRectangularKraus (fun k => matrixRegister (M k))
120 (matrixRegister_kraus_complete M hM)
121
122/-- Exact agreement on every complex input matrix, including nonpositive inputs. -/
123theorem channel_registerLiftCLM {ι : Type*} [Fintype ι]
124 (M : ι → Matrix J I ℂ) (hM : ∑ k, (M k).conjTranspose * M k = 1)
125 (X : Matrix I I ℂ) :
126 (channel M hM).toLinearMap (registerLiftCLM X) =
127 registerLiftCLM (Channels.krausMap M X) := by
128 change (∑' k, conjugationLinearMap (matrixRegister (M k)) (registerLiftCLM X)) = _
129 rw [tsum_fintype]
130 simp_rw [conjugation_matrixRegister]
131 rw [← map_sum]
132 rfl
133
134
135end Cloning.FiniteKrausLift