Offline · exact source
Exact Lean source

HybridChannel

formalization/Cloning/HybridChannel.lean

Source hash: a34ecd6ffa7b5b7b781b514f3cc33149b5dbab14df87e25abf63dbc4c03dde51

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.HybridWeightedTrace
2import Mathlib.MeasureTheory.Function.SimpleFuncDenseLp
3 
4/-! Actual hybrid channels on operator-valued L¹. The uniform whole-space bound
5is derived from complete positivity and integrated trace preservation, using
6finite simple functions and density; no measurable Jordan-decomposition choice
7is assumed. -/
8 
9noncomputable section
10open scoped ComplexOrder Topology ENNReal
11open MeasureTheory Filter Cloning.InfiniteTraceClass
12namespace Cloning.Hybrid
13set_option backward.isDefEq.respectTransparency false
14variable {Ω H K : Type*} [MeasurableSpace Ω] {μ : Measure Ω}
15  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
16  [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
17 
18lemma norm_L1_eq_trace_re (A : Lp (TraceClass H) 1 μ)
19    (hA : ∀ᵐ y ∂μ, 0 ≤ (A y).1) :
20    ‖A‖ = (∫ y, traceCLM (A y) ∂μ).re := by
21  rw [L1.norm_eq_integral_norm]
22  change _ = Complex.reCLM (∫ y, traceCLM (A y) ∂μ)
23  rw [← Complex.reCLM.integral_comp_comm (traceCLM.integrable_comp (L1.integrable_coeFn A))]
24  apply integral_congr_ae
25  filter_upwards [hA] with y hy
26  exact TraceClass.norm_eq_trace_re_of_nonneg _ hy
27 
28lemma norm_L1_map_nonneg
29    (Λ : Lp (TraceClass H) 1 μ →ₗ[ℂ] Lp (TraceClass K) 1 μ)
30    (hCP : L1CompletelyPositive Λ) (hTP : L1TracePreserving Λ)
31    (A : Lp (TraceClass H) 1 μ) (hA : ∀ᵐ y ∂μ, 0 ≤ (A y).1) :
32    ‖Λ A‖ = ‖A‖ := by
33  rw [norm_L1_eq_trace_re _ (hCP.map_nonneg A hA),
34    norm_L1_eq_trace_re _ hA, hTP]
35 
36private lemma norm_map_selfAdjoint_of_positive_bound
37    {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E]
38    (Φ : TraceClass H →ₗ[ℂ] E) {c : ℝ}
39    (hp : ∀ A, 0 ≤ A.1 → ‖Φ A‖ ≤ c * ‖A‖)
40    (A : TraceClass H) (hA : IsSelfAdjoint A.1) : ‖Φ A‖ ≤ c * ‖A‖ := by
41  calc
42    ‖Φ A‖ = ‖Φ (TraceClass.positivePart A hA) -
43        Φ (TraceClass.negativePart A hA)‖ := by
44      rw [← map_sub, TraceClass.positivePart_sub_negativePart A hA]
45    _ ≤ ‖Φ (TraceClass.positivePart A hA)‖ +
46        ‖Φ (TraceClass.negativePart A hA)‖ := norm_sub_le _ _
47    _ ≤ c * ‖TraceClass.positivePart A hA‖ + c * ‖TraceClass.negativePart A hA‖ :=
48      add_le_add (hp _ (TraceClass.positivePart_nonneg A hA))
49        (hp _ (TraceClass.negativePart_nonneg A hA))
50    _ = c * ‖A‖ := by
51      rw [← mul_add, TraceClass.norm_positivePart_add_norm_negativePart A hA]
52 
53lemma norm_map_two_mul_of_positive_bound
54    {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E]
55    (Φ : TraceClass H →ₗ[ℂ] E) {c : ℝ} (hc : 0 ≤ c)
56    (hp : ∀ A, 0 ≤ A.1 → ‖Φ A‖ ≤ c * ‖A‖) (A : TraceClass H) :
57    ‖Φ A‖ ≤ (2 * c) * ‖A‖ := by
58  calc
59    ‖Φ A‖ = ‖Φ (TraceClass.realComponent A) +
60        Complex.I • Φ (TraceClass.imaginaryComponent A)‖ := by
61      conv_lhs => rw [← TraceClass.realComponent_add_I_smul_imaginaryComponent A]
62      rw [map_add, map_smul]
63    _ ≤ ‖Φ (TraceClass.realComponent A)‖ + ‖Φ (TraceClass.imaginaryComponent A)‖ := by
64      simpa [norm_smul] using norm_add_le (Φ (TraceClass.realComponent A))
65        (Complex.I • Φ (TraceClass.imaginaryComponent A))
66    _ ≤ c * ‖TraceClass.realComponent A‖ + c * ‖TraceClass.imaginaryComponent A‖ :=
67      add_le_add (norm_map_selfAdjoint_of_positive_bound Φ hp _
68        (TraceClass.realComponent_isSelfAdjoint A))
69        (norm_map_selfAdjoint_of_positive_bound Φ hp _
70          (TraceClass.imaginaryComponent_isSelfAdjoint A))
71    _ ≤ c * ‖A‖ + c * ‖A‖ :=
72      add_le_add (mul_le_mul_of_nonneg_left (TraceClass.norm_realComponent_le A) hc)
73        (mul_le_mul_of_nonneg_left (TraceClass.norm_imaginaryComponent_le A) hc)
74    _ = (2 * c) * ‖A‖ := by ring
75 
76private def indicatorLinear {s : Set Ω} (hs : MeasurableSet s) (hμs : μ s ≠ ∞) :
77    TraceClass H →ₗ[ℂ] Lp (TraceClass H) 1 μ where
78  toFun A := indicatorConstLp 1 hs hμs A
79  map_add' A B := indicatorConstLp_add.symm
80  map_smul' c A := by
81    apply Lp.ext
82    filter_upwards [indicatorConstLp_coeFn (c := c • A),
83      indicatorConstLp_coeFn (p := 1) (hs := hs) (hμs := hμs) (c := A),
84      Lp.coeFn_smul c (indicatorConstLp 1 hs hμs A)] with y hy hz hw
85    change _ = (c • indicatorConstLp 1 hs hμs A) y
86    rw [hy, hw, Pi.smul_apply, hz]
87    by_cases h : y ∈ s <;> simp [h]
88 
89private lemma indicatorLinear_nonneg {s : Set Ω} (hs : MeasurableSet s)
90    (hμs : μ s ≠ ∞) (A : TraceClass H) (hA : 0 ≤ A.1) :
91    ∀ᵐ y ∂μ, 0 ≤ (indicatorLinear hs hμs A y).1 := by
92  filter_upwards [indicatorConstLp_coeFn (p := 1) (hs := hs) (hμs := hμs) (c := A)] with y hy
93  change 0 ≤ (indicatorConstLp 1 hs hμs A y).1
94  rw [hy]
95  by_cases h : y ∈ s <;> simp [h, hA]
96 
97/-- Complete positivity and trace preservation give one bound for every
98continuous hybrid competitor, independent of that competitor. -/
99theorem L1CompletelyPositive.norm_le_two
100    (Λ : Lp (TraceClass H) 1 μ →L[ℂ] Lp (TraceClass K) 1 μ)
101    (hCP : L1CompletelyPositive Λ.toLinearMap) (hTP : L1TracePreserving Λ.toLinearMap)
102    (A : Lp (TraceClass H) 1 μ) : ‖Λ A‖ ≤ 2 * ‖A‖ := by
103  refine Lp.induction (p := 1) (by simp) (fun A => ‖Λ A‖ ≤ 2 * ‖A‖) ?_ ?_ ?_ A
104  · intro c s hs hμs
105    have hp : ∀ B : TraceClass H, 0 ≤ B.1 →
106        ‖(Λ.toLinearMap.comp (indicatorLinear hs hμs.ne)) B‖ ≤ μ.real s * ‖B‖ := by
107      intro B hB
108      rw [LinearMap.comp_apply, norm_L1_map_nonneg Λ.toLinearMap hCP hTP _
109        (indicatorLinear_nonneg hs hμs.ne B hB)]
110      change ‖indicatorConstLp 1 hs hμs.ne B‖ ≤ _
111      simp [norm_indicatorConstLp (by simp : (1 : ℝ≥0∞) ≠ 0) (by simp), mul_comm]
112    have h := norm_map_two_mul_of_positive_bound
113      (Λ.toLinearMap.comp (indicatorLinear hs hμs.ne)) ENNReal.toReal_nonneg hp c
114    simpa [indicatorLinear, norm_indicatorConstLp (by simp : (1 : ℝ≥0∞) ≠ 0) (by simp),
115      mul_comm, mul_left_comm, mul_assoc] using h
116  · intro f g hf hg hfg hF hG
117    have hn : ‖hf.toLp f + hg.toLp g‖ = ‖hf.toLp f‖ + ‖hg.toLp g‖ := by
118      rw [L1.norm_eq_integral_norm, L1.norm_eq_integral_norm, L1.norm_eq_integral_norm,
119        ← integral_add (L1.integrable_coeFn (hf.toLp f)).norm
120          (L1.integrable_coeFn (hg.toLp g)).norm]
121      apply integral_congr_ae
122      filter_upwards [Lp.coeFn_add (hf.toLp f) (hg.toLp g), hf.coeFn_toLp, hg.coeFn_toLp]
123        with y hy hfy hgy
124      rw [hy, Pi.add_apply, hfy, hgy]
125      have hd : f y = 0 ∨ g y = 0 := by
126        by_cases h : f y = 0
127        · exact Or.inl h
128        · exact Or.inr (by
129            by_contra hh
130            exact Set.disjoint_left.mp hfg h hh)
131      rcases hd with h | h <;> simp [h]
132    rw [map_add, hn, mul_add]
133    exact (norm_add_le _ _).trans (add_le_add hF hG)
134  · exact isClosed_le Λ.continuous.norm (continuous_const.mul continuous_norm)
135 
136/-- A channel acting on the genuine classical–quantum L¹ space. -/
137structure Channel (H K : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H]
138    [CompleteSpace H] [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
139    (μ : Measure Ω) where
140  map : Lp (TraceClass H) 1 μ →L[ℂ] Lp (TraceClass K) 1 μ
141  completelyPositive : L1CompletelyPositive map.toLinearMap
142  tracePreserving : L1TracePreserving map.toLinearMap
143 
144lemma Channel.norm_le_two (Λ : Channel H K μ) (A : Lp (TraceClass H) 1 μ) :
145    ‖Λ.map A‖ ≤ 2 * ‖A‖ := Λ.completelyPositive.norm_le_two Λ.map Λ.tracePreserving A
146 
147lemma Channel.opNorm_le_two (Λ : Channel H K μ) : ‖Λ.map‖ ≤ 2 :=
148  ContinuousLinearMap.opNorm_le_bound _ (by norm_num) Λ.norm_le_two
149 
150variable {J : Type*} [NormedAddCommGroup J] [InnerProductSpace ℂ J] [CompleteSpace J]
151 
152/-- Composition acts on actual L¹ equivalence classes. -/
153def Channel.comp (Λ : Channel K J μ) (Γ : Channel H K μ) : Channel H J μ where
154  map := Λ.map.comp Γ.map
155  completelyPositive := fun n A hA => Λ.completelyPositive n _ (Γ.completelyPositive n A hA)
156  tracePreserving := fun A => (Λ.tracePreserving (Γ.map A)).trans (Γ.tracePreserving A)
157 
158@[simp] lemma Channel.comp_apply (Λ : Channel K J μ) (Γ : Channel H K μ)
159    (A : Lp (TraceClass H) 1 μ) : (Λ.comp Γ).map A = Λ.map (Γ.map A) := rfl
160 
161end Cloning.Hybrid