Offline · exact source
Exact Lean source

InfiniteIsometricChannel

formalization/Cloning/InfiniteIsometricChannel.lean

Source hash: ca2273aa0eb40967f24dbd5451f3c8800a5f03bffe0058aafb5a8d26d76f2ac6

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.InfiniteChannelTraceRepair
2import Cloning.InfiniteTraceClassDecomposition
3 
4/-! Actual trace-class conjugation between different Hilbert spaces.
5Trace-class membership is proved from rank-one series, rather than assuming a
6rectangular operator-ideal API. Isometric conjugation is an actual CPTP map. -/
7 
8namespace Cloning.InfiniteTraceClass
9noncomputable section
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 800000
12open scoped ComplexOrder InnerProductSpace Topology BigOperators
13 
14variable {H K : Type*}
15  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
16  [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
17 
18/-- Rectangular conjugation as a continuous map on bounded operators. -/
19def operatorConjugation (V : H →L[ℂ] K) : (H →L[ℂ] H) →L[ℂ] (K →L[ℂ] K) :=
20  ((ContinuousLinearMap.compL ℂ K H K).flip V.adjoint).comp
21    (ContinuousLinearMap.compL ℂ H H K V)
22 
23@[simp] lemma operatorConjugation_apply (V : H →L[ℂ] K) (A : H →L[ℂ] H) (x : K) :
24    operatorConjugation V A x = V (A (V.adjoint x)) := rfl
25 
26lemma operatorConjugation_rankOne (V : H →L[ℂ] K) (x : H) :
27    operatorConjugation V (InnerProductSpace.rankOne ℂ x x) =
28      InnerProductSpace.rankOne ℂ (V x) (V x) := by
29  ext y
30  change V (⟪x, V.adjoint y⟫_ℂ • x) = ⟪V x, y⟫_ℂ • V x
31  rw [map_smul, ContinuousLinearMap.adjoint_inner_right]
32 
33lemma operatorConjugation_nonneg (V : H →L[ℂ] K) (A : H →L[ℂ] H) (hA : 0 ≤ A) :
34    0 ≤ operatorConjugation V A := by
35  apply nonneg_of_inner_nonneg
36  intro x
37  change 0 ≤ ⟪x, V (A (V.adjoint x))⟫_ℂ
38  rw [← V.adjoint_inner_left]
39  exact (A.nonneg_iff_isPositive.mp hA).inner_nonneg_right (V.adjoint x)
40 
41lemma summable_conjugated_positive_vectors (V : H →L[ℂ] K)
42    (A : TraceClass H) (hA : 0 ≤ A.1) {w : Set H} (b : HilbertBasis w ℂ H) :
43    Summable (fun i : w => vectorProjector (V (CFC.sqrt A.1 (b i)))) := by
44  have hm := (positive_rankOne_mass hA A.2 b).summable
45  apply (hm.mul_left (‖V‖ ^ 2)).of_norm_bounded
46  intro i
47  simp only [norm_vectorProjector]
48  calc
49    ‖V (CFC.sqrt A.1 (b i))‖ ^ 2 ≤ (‖V‖ * ‖CFC.sqrt A.1 (b i)‖) ^ 2 :=
50      (sq_le_sq₀ (norm_nonneg _) (mul_nonneg (norm_nonneg _) (norm_nonneg _))).mpr
51        (V.le_opNorm _)
52    _ = _ := mul_pow _ _ 2
53 
54lemma conjugated_positive_vectors_tsum_coe (V : H →L[ℂ] K)
55    (A : TraceClass H) (hA : 0 ≤ A.1) {w : Set H} (b : HilbertBasis w ℂ H) :
56    (∑' i : w, vectorProjector (V (CFC.sqrt A.1 (b i)))).1 =
57      operatorConjugation V A.1 := by
58  have hleft := (summable_conjugated_positive_vectors V A hA b).hasSum.mapL inclusionCLM
59  have hright := ((positive_rankOne_series hA A.2 b).mapL inclusionCLM).mapL
60    (operatorConjugation V)
61  have hright' : HasSum (fun i : w => inclusionCLM
62      (vectorProjector (V (CFC.sqrt A.1 (b i))))) (operatorConjugation V A.1) := by
63    simpa only [inclusionCLM_apply, vectorProjector, TraceClass.ofOperator_coe,
64      operatorConjugation_rankOne] using hright
65  exact hleft.unique hright'
66 
67lemma isTraceClass_operatorConjugation_of_nonneg (V : H →L[ℂ] K)
68    (A : TraceClass H) (hA : 0 ≤ A.1) : IsTraceClass (operatorConjugation V A.1) := by
69  obtain ⟨w, b, _⟩ := exists_hilbertBasis ℂ H
70  rw [← conjugated_positive_vectors_tsum_coe V A hA b]
71  exact (∑' i : w, vectorProjector (V (CFC.sqrt A.1 (b i)))).2
72 
73/-- A bounded rectangular conjugation preserves trace class. This ideal
74property is proved for the actual bounded operator `V A V†`. -/
75theorem isTraceClass_operatorConjugation (V : H →L[ℂ] K) (A : TraceClass H) :
76    IsTraceClass (operatorConjugation V A.1) := by
77  let F := (operatorConjugation V).comp inclusionCLM
78  have hpositive (B : TraceClass H) (hB : 0 ≤ B.1) : IsTraceClass (F B) :=
79    isTraceClass_operatorConjugation_of_nonneg V B hB
80  have hself (B : TraceClass H) (hB : IsSelfAdjoint B.1) : IsTraceClass (F B) := by
81    rw [← TraceClass.positivePart_sub_negativePart B hB, map_sub]
82    simpa only [sub_eq_add_neg] using isTraceClass_add
83      (hpositive _ (TraceClass.positivePart_nonneg B hB))
84      (isTraceClass_neg (hpositive _ (TraceClass.negativePart_nonneg B hB)))
85  change IsTraceClass (F A)
86  rw [← TraceClass.realComponent_add_I_smul_imaginaryComponent A, map_add, map_smul]
87  exact isTraceClass_add (hself _ (TraceClass.realComponent_isSelfAdjoint A))
88    (isTraceClass_smul Complex.I (hself _ (TraceClass.imaginaryComponent_isSelfAdjoint A)))
89 
90/-- Actual rectangular conjugation as a complex-linear trace-class map. -/
91def conjugationLinearMap (V : H →L[ℂ] K) : TraceClass H →ₗ[ℂ] TraceClass K where
92  toFun A := TraceClass.ofOperator (operatorConjugation V A.1)
93    (isTraceClass_operatorConjugation V A)
94  map_add' A B := Subtype.ext (((operatorConjugation V).comp inclusionCLM).map_add A B)
95  map_smul' c A := Subtype.ext (((operatorConjugation V).comp inclusionCLM).map_smul c A)
96 
97@[simp] lemma conjugationLinearMap_coe (V : H →L[ℂ] K) (A : TraceClass H) :
98    (conjugationLinearMap V A).1 = operatorConjugation V A.1 := rfl
99 
100lemma conjugationLinearMap_vectorProjector (V : H →L[ℂ] K) (x : H) :
101    conjugationLinearMap V (vectorProjector x) = vectorProjector (V x) :=
102  Subtype.ext (operatorConjugation_rankOne V x)
103 
104lemma conjugationLinearMap_positive_hasSum (V : H →L[ℂ] K)
105    (A : TraceClass H) (hA : 0 ≤ A.1) {w : Set H} (b : HilbertBasis w ℂ H) :
106    HasSum (fun i : w => vectorProjector (V (CFC.sqrt A.1 (b i))))
107      (conjugationLinearMap V A) := by
108  have heq : (∑' i : w, vectorProjector (V (CFC.sqrt A.1 (b i)))) =
109      conjugationLinearMap V A :=
110    Subtype.ext (conjugated_positive_vectors_tsum_coe V A hA b)
111  exact heq ▸ (summable_conjugated_positive_vectors V A hA b).hasSum
112 
113lemma conjugationLinearMap_nonneg (V : H →L[ℂ] K) (A : TraceClass H) (hA : 0 ≤ A.1) :
114    0 ≤ (conjugationLinearMap V A).1 := operatorConjugation_nonneg V A.1 hA
115 
116lemma conjugationLinearMap_completelyPositive (V : H →L[ℂ] K) :
117    IsCompletelyPositive (conjugationLinearMap V) := by
118  intro n A hA x
119  convert hA (fun i => V.adjoint (x i)) using 1
120  apply Finset.sum_congr rfl
121  intro i hi
122  apply Finset.sum_congr rfl
123  intro j hj
124  change ⟪x i, V ((A i j).1 (V.adjoint (x j)))⟫_ℂ = _
125  exact (V.adjoint_inner_left ((A i j).1 (V.adjoint (x j))) (x i)).symm
126 
127lemma conjugationLinearMap_isometry_trace_of_nonneg (V : H →ₗᵢ[ℂ] K)
128    (A : TraceClass H) (hA : 0 ≤ A.1) :
129    traceCLM (conjugationLinearMap V.toContinuousLinearMap A) = traceCLM A := by
130  obtain ⟨w, b, _⟩ := exists_hilbertBasis ℂ H
131  have hleft := (conjugationLinearMap_positive_hasSum V.toContinuousLinearMap A hA b).mapL traceCLM
132  have hright := (positive_rankOne_series hA A.2 b).mapL traceCLM
133  have hleft' : HasSum (fun i : w => traceCLM (vectorProjector (CFC.sqrt A.1 (b i))))
134      (traceCLM (conjugationLinearMap V.toContinuousLinearMap A)) := by
135    simpa only [traceCLM_vectorProjector, LinearIsometry.coe_toContinuousLinearMap, V.norm_map]
136      using hleft
137  exact hleft'.unique hright
138 
139/-- Isometric rectangular conjugation preserves the actual complex trace on
140all trace-class inputs. -/
141theorem conjugationLinearMap_isometry_trace (V : H →ₗᵢ[ℂ] K) (A : TraceClass H) :
142    traceCLM (conjugationLinearMap V.toContinuousLinearMap A) = traceCLM A := by
143  let D : TraceClass H →ₗ[ℂ] ℂ :=
144    traceCLM.toLinearMap.comp (conjugationLinearMap V.toContinuousLinearMap) - traceCLM.toLinearMap
145  have hpos (B : TraceClass H) (hB : 0 ≤ B.1) : D B = 0 :=
146    sub_eq_zero.mpr (conjugationLinearMap_isometry_trace_of_nonneg V B hB)
147  have hself (B : TraceClass H) (hB : IsSelfAdjoint B.1) : D B = 0 := by
148    rw [← TraceClass.positivePart_sub_negativePart B hB, map_sub,
149      hpos _ (TraceClass.positivePart_nonneg B hB),
150      hpos _ (TraceClass.negativePart_nonneg B hB), sub_self]
151  have hz : D A = 0 := by
152    rw [← TraceClass.realComponent_add_I_smul_imaginaryComponent A, map_add, map_smul,
153      hself _ (TraceClass.realComponent_isSelfAdjoint A),
154      hself _ (TraceClass.imaginaryComponent_isSelfAdjoint A)]
155    simp
156  exact sub_eq_zero.mp hz
157 
158/-- The genuine CPTP pushforward by an isometry between different Hilbert spaces. -/
159def QuantumChannel.ofIsometry (V : H →ₗᵢ[ℂ] K) : QuantumChannel H K where
160  toLinearMap := conjugationLinearMap V.toContinuousLinearMap
161  map_nonneg := conjugationLinearMap_nonneg V.toContinuousLinearMap
162  trace_preserving := conjugationLinearMap_isometry_trace V
163  completelyPositive := conjugationLinearMap_completelyPositive V.toContinuousLinearMap
164 
165@[simp] lemma QuantumChannel.ofIsometry_apply_coe (V : H →ₗᵢ[ℂ] K) (A : TraceClass H) (x : K) :
166    ((QuantumChannel.ofIsometry V).toLinearMap A).1 x =
167      V (A.1 (V.toContinuousLinearMap.adjoint x)) := rfl
168 
169lemma QuantumChannel.ofIsometry_vectorProjector (V : H →ₗᵢ[ℂ] K) (x : H) :
170    (QuantumChannel.ofIsometry V).toLinearMap (vectorProjector x) = vectorProjector (V x) :=
171  conjugationLinearMap_vectorProjector V.toContinuousLinearMap x
172 
173end
174end Cloning.InfiniteTraceClass