Exact Lean source
HybridChannelAveraging
formalization/Cloning/HybridChannelAveraging.lean
Source hash: 3d0076344672ac401ee1a4c7a0b41a4565fa77104fac5561e05d8ae6cd08c727
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.Hybrid.integratedTracetheorem Cloning.Hybrid.integratedTrace_applytheorem Cloning.Hybrid.channel_family_integrabledefinition Cloning.Hybrid.averageLineartheorem Cloning.Hybrid.averageLinear_norm_ledefinition Cloning.Hybrid.averageCLMtheorem Cloning.Hybrid.averageCLM_applytheorem Cloning.Hybrid.averageCLM_tracePreservingtheorem Cloning.Hybrid.averageCLM_completelyPositivedefinition Cloning.Hybrid.Channel.averagetheorem Cloning.Hybrid.Channel.average_apply1import Cloning.HybridChannel
2import Cloning.HybridL1Cone
3import Mathlib.MeasureTheory.SpecificCodomains.Pi
4import Mathlib.MeasureTheory.Integral.Bochner.ContinuousLinearMap
5
6/-! Bochner averaging of actual bounded hybrid maps. Integrability and a
7competitor-independent bound follow from CP and preservation of integrated
8trace. -/
9noncomputable section
10open scoped ComplexOrder Topology
11open MeasureTheory Filter Cloning.InfiniteTraceClass
12namespace Cloning.Hybrid
13set_option backward.isDefEq.respectTransparency false
14variable {Ω Θ H K : Type*} [MeasurableSpace Ω] [MeasurableSpace Θ]
15 {μ : Measure Ω} (ν : Measure Θ) [IsProbabilityMeasure ν]
16 [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
17 [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
18
19/-- Integrated trace, as a bounded functional on the genuine L¹ space. -/
20def integratedTrace : Lp (TraceClass H) 1 μ →L[ℂ] ℂ :=
21 traceCLM.comp (L1.integralCLM' ℂ)
22
23lemma integratedTrace_apply (A : Lp (TraceClass H) 1 μ) :
24 integratedTrace A = ∫ y, traceCLM (A y) ∂μ := by
25 change traceCLM (L1.integralCLM' ℂ A) = _
26 rw [← L1.integral_eq', L1.integral_eq_integral]
27 exact (traceCLM.integral_comp_comm (L1.integrable_coeFn A)).symm
28
29variable (Λ : Θ → Channel H K μ)
30 (hmeas : ∀ A : Lp (TraceClass H) 1 μ, AEStronglyMeasurable (fun t => (Λ t).map A) ν)
31
32include hmeas
33lemma channel_family_integrable (A : Lp (TraceClass H) 1 μ) :
34 Integrable (fun t => (Λ t).map A) ν :=
35 (integrable_const (2 * ‖A‖)).mono' (hmeas A)
36 (Eventually.of_forall fun t => (Λ t).norm_le_two A)
37
38def averageLinear : Lp (TraceClass H) 1 μ →ₗ[ℂ] Lp (TraceClass K) 1 μ where
39 toFun A := ∫ t, (Λ t).map A ∂ν
40 map_add' A B := by
41 simp only [map_add]
42 exact integral_add (channel_family_integrable ν Λ hmeas A)
43 (channel_family_integrable ν Λ hmeas B)
44 map_smul' c A := by simp only [map_smul, integral_smul, RingHom.id_apply]
45
46lemma averageLinear_norm_le (A : Lp (TraceClass H) 1 μ) :
47 ‖averageLinear ν Λ hmeas A‖ ≤ 2 * ‖A‖ := by
48 change ‖∫ t, (Λ t).map A ∂ν‖ ≤ _
49 apply (norm_integral_le_integral_norm _).trans
50 have h := integral_mono (channel_family_integrable ν Λ hmeas A).norm
51 (integrable_const (2 * ‖A‖)) (fun t => (Λ t).norm_le_two A)
52 simpa using h
53
54/-- The actual operator-valued L¹ average. -/
55def averageCLM : Lp (TraceClass H) 1 μ →L[ℂ] Lp (TraceClass K) 1 μ :=
56 (averageLinear ν Λ hmeas).mkContinuous 2 (averageLinear_norm_le ν Λ hmeas)
57
58@[simp] lemma averageCLM_apply (A : Lp (TraceClass H) 1 μ) :
59 averageCLM ν Λ hmeas A = ∫ t, (Λ t).map A ∂ν := rfl
60
61lemma averageCLM_tracePreserving : L1TracePreserving (averageCLM ν Λ hmeas).toLinearMap := by
62 intro A
63 rw [← integratedTrace_apply, ← integratedTrace_apply]
64 change integratedTrace (∫ t, (Λ t).map A ∂ν) = integratedTrace A
65 rw [← integratedTrace.integral_comp_comm (channel_family_integrable ν Λ hmeas A)]
66 have ht (t : Θ) : integratedTrace ((Λ t).map A) = integratedTrace A := by
67 simp only [integratedTrace_apply]
68 exact (Λ t).tracePreserving A
69 simp only [ht, integral_const, probReal_univ, one_smul]
70
71lemma averageCLM_completelyPositive : L1CompletelyPositive (averageCLM ν Λ hmeas).toLinearMap := by
72 intro n A hA
73 let B : Θ → Fin n → Fin n → Lp (TraceClass K) 1 μ := fun t i j => (Λ t).map (A i j)
74 have hB : Integrable B ν := integrable_pi_iff.mpr fun i => integrable_pi_iff.mpr fun j =>
75 channel_family_integrable ν Λ hmeas (A i j)
76 have hp : L1BlockPositive (∫ t, B t ∂ν) := L1BlockPositive_integral hB
77 (Eventually.of_forall fun t => (Λ t).completelyPositive n A hA)
78 have he (i j : Fin n) : (∫ t, B t ∂ν) i j = ∫ t, (Λ t).map (A i j) ∂ν := by
79 rw [eval_integral (fun i => hB.eval i) i,
80 eval_integral (fun j => (hB.eval i).eval j) j]
81 change L1BlockPositive (fun i j => averageCLM ν Λ hmeas (A i j))
82 have heq : (fun i j => averageCLM ν Λ hmeas (A i j)) = ∫ t, B t ∂ν := by
83 funext i j
84 exact (he i j).symm
85 rwa [heq]
86
87/-- Probability averaging produces an actual completely positive trace-preserving
88hybrid channel. All regularity except strong measurability is derived. -/
89def Channel.average : Channel H K μ where
90 map := averageCLM ν Λ hmeas
91 completelyPositive := averageCLM_completelyPositive ν Λ hmeas
92 tracePreserving := averageCLM_tracePreserving ν Λ hmeas
93
94@[simp] lemma Channel.average_apply (A : Lp (TraceClass H) 1 μ) :
95 (Channel.average ν Λ hmeas).map A = ∫ t, (Λ t).map A ∂ν := rfl
96
97end Cloning.Hybrid