Exact Lean source
HybridWeightedTrace
formalization/Cloning/HybridWeightedTrace.lean
Source hash: f2fd7e97e08c2fdf7436a20bec5b2d24979d1fd958843b0d83de8d5e69ebaf92
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.HybridWeightedMaps
2import Cloning.InfiniteTraceBoundedMaps
3
4/-! Trace and boundedness of the actual weighted quantum extraction map.
5No continuity or operator-norm bound is assumed for the hybrid channel:
6complete positivity and preservation of integrated trace suffice. -/
7
8noncomputable section
9open scoped ComplexOrder InnerProductSpace Topology BigOperators
10open MeasureTheory Filter Cloning.InfiniteTraceClass
11namespace Cloning.Hybrid
12set_option backward.isDefEq.respectTransparency false
13
14variable {Ω H K : Type*} [MeasurableSpace Ω] {μ : Measure Ω}
15 [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
16 [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
17
18def L1TracePreserving
19 (Λ : Lp (TraceClass H) 1 μ →ₗ[ℂ] Lp (TraceClass K) 1 μ) : Prop :=
20 ∀ A, (∫ y, traceCLM (Λ A y) ∂μ) = ∫ y, traceCLM (A y) ∂μ
21
22theorem L1CompletelyPositive.map_nonneg
23 {Λ : Lp (TraceClass H) 1 μ →ₗ[ℂ] Lp (TraceClass K) 1 μ}
24 (hΛ : L1CompletelyPositive Λ) (A : Lp (TraceClass H) 1 μ)
25 (hA : ∀ᵐ y ∂μ, 0 ≤ (A y).1) : ∀ᵐ y ∂μ, 0 ≤ (Λ A y).1 := by
26 have hi : ∀ᵐ y ∂μ, BlockPositive (fun _ _ : Fin 1 => A y) := by
27 filter_upwards [hA] with y hy
28 intro v
29 simpa only [Fin.sum_univ_one] using
30 ((A y).1.nonneg_iff_isPositive.mp hy).inner_nonneg_right (v 0)
31 have ho := hΛ 1 (fun _ _ => A) hi
32 filter_upwards [ho] with y hy
33 apply nonneg_of_inner_nonneg
34 intro v
35 simpa only [Fin.sum_univ_one] using hy (fun _ => v)
36
37theorem prepareL1_nonneg (g : Ω → ℝ) (hg : Integrable g μ)
38 (hg0 : ∀ y, 0 ≤ g y) (A : TraceClass H) (hA : 0 ≤ A.1) :
39 ∀ᵐ y ∂μ, 0 ≤ (prepareL1 g hg A y).1 := by
40 filter_upwards [prepareL1_ae g hg A] with y hy
41 rw [hy]
42 change 0 ≤ (g y : ℂ) • A.1
43 rw [Complex.coe_smul]
44 exact smul_nonneg (hg0 y) hA
45
46theorem integral_trace_prepareL1 (g : Ω → ℝ) (hg : Integrable g μ)
47 (hprob : ∫ y, g y ∂μ = 1) (A : TraceClass H) :
48 (∫ y, traceCLM (prepareL1 g hg A y) ∂μ) = traceCLM A := by
49 calc
50 _ = ∫ y, (g y : ℂ) * traceCLM A ∂μ := by
51 apply integral_congr_ae
52 filter_upwards [prepareL1_ae g hg A] with y hy
53 simp only [hy, map_smul, smul_eq_mul]
54 _ = (∫ y, (g y : ℂ) ∂μ) * traceCLM A := integral_mul_const _ _
55 _ = _ := by
56 have he := Complex.ofRealCLM.integral_comp_comm hg
57 change (∫ y, (g y : ℂ) ∂μ) = ((∫ y, g y ∂μ : ℝ) : ℂ) at he
58 rw [he, hprob]
59 simp
60
61/-- Positivity and trace preservation give the finite uniform trace bound
62needed for compact CP extraction. The sharper asymptotic Gaussian factor is
63a separate translation estimate. -/
64theorem weightedQuantumMap_trace_le
65 (Λ : Lp (TraceClass H) 1 μ →ₗ[ℂ] Lp (TraceClass K) 1 μ)
66 (hΛ : L1CompletelyPositive Λ) (hTP : L1TracePreserving Λ)
67 (g : Ω → ℝ) (hg : Integrable g μ) (hg0 : ∀ y, 0 ≤ g y)
68 (hprob : ∫ y, g y ∂μ = 1)
69 (χ : Ω → ℝ) (hχ : AEStronglyMeasurable χ μ)
70 {C : ℝ} (hbound : ∀ y, ‖χ y‖ ≤ C)
71 (A : TraceClass H) (hA : 0 ≤ A.1) :
72 (traceCLM (weightedQuantumMap Λ g hg χ hχ hbound A)).re ≤
73 C * (traceCLM A).re := by
74 let B := Λ (prepareL1 g hg A)
75 let T : TraceClass K →L[ℝ] ℝ := Complex.reCLM.comp (traceCLM.restrictScalars ℝ)
76 have hBi := L1.integrable_coeFn B
77 have hBp : ∀ᵐ y ∂μ, 0 ≤ (B y).1 :=
78 hΛ.map_nonneg _ (prepareL1_nonneg g hg hg0 A hA)
79 have he : (traceCLM (weightedQuantumMap Λ g hg χ hχ hbound A)).re =
80 ∫ y, χ y * (traceCLM (B y)).re ∂μ := by
81 change T (∫ y, (χ y : ℂ) • B y ∂μ) = _
82 rw [← T.integral_comp_comm (weightedL1_integrable χ hχ hbound B)]
83 apply integral_congr_ae
84 exact Eventually.of_forall fun y => by
85 change (traceCLM ((χ y : ℂ) • B y)).re = _
86 simp only [map_smul, smul_eq_mul, Complex.mul_re,
87 Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero]
88 rw [he]
89 calc
90 _ ≤ ∫ y, C * (traceCLM (B y)).re ∂μ := by
91 apply integral_mono_ae ((T.integrable_comp hBi).bdd_mul hχ (Eventually.of_forall hbound))
92 ((T.integrable_comp hBi).const_mul C)
93 filter_upwards [hBp] with y hy
94 exact mul_le_mul_of_nonneg_right ((le_abs_self (χ y)).trans (hbound y))
95 (trace_re_nonneg hy (B y).2)
96 _ = C * (traceCLM A).re := by
97 rw [integral_const_mul]
98 congr 1
99 have he := Complex.reCLM.integral_comp_comm (traceCLM.integrable_comp hBi)
100 change (∫ y, (traceCLM (B y)).re ∂μ) = (∫ y, traceCLM (B y) ∂μ).re at he
101 rw [he]
102 change (∫ y, traceCLM (Λ (prepareL1 g hg A) y) ∂μ).re = _
103 rw [hTP, integral_trace_prepareL1 g hg hprob]
104
105/-- The weighted extraction is automatically a bounded map on the whole
106complex trace class, including non-self-adjoint inputs. -/
107theorem weightedQuantumMap_norm_le
108 (Λ : Lp (TraceClass H) 1 μ →ₗ[ℂ] Lp (TraceClass K) 1 μ)
109 (hΛ : L1CompletelyPositive Λ) (hTP : L1TracePreserving Λ)
110 (g : Ω → ℝ) (hg : Integrable g μ) (hg0 : ∀ y, 0 ≤ g y)
111 (hprob : ∫ y, g y ∂μ = 1)
112 (χ : Ω → ℝ) (hχ : AEStronglyMeasurable χ μ) (hχ0 : ∀ y, 0 ≤ χ y)
113 {C : ℝ} (hC : 0 ≤ C) (hbound : ∀ y, ‖χ y‖ ≤ C) (A : TraceClass H) :
114 ‖weightedQuantumMap Λ g hg χ hχ hbound A‖ ≤ (2 * C) * ‖A‖ :=
115 norm_map_le_two_mul_of_trace_bound _
116 (weightedQuantumMap_completelyPositive Λ hΛ g hg hg0 χ hχ hχ0 hbound).map_nonneg hC
117 (weightedQuantumMap_trace_le Λ hΛ hTP g hg hg0 hprob χ hχ hbound) A
118
119end Cloning.Hybrid