Offline · exact source
Exact Lean source

HybridL1Fidelity

formalization/Cloning/HybridL1Fidelity.lean

Source hash: 9e8fee27880804260f088e4e8228fcb552c859226c03fcceb88d43f6f02a4bb8

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.HybridL1Cone
2import Cloning.HybridJensen
3import Cloning.HybridChannel
4 
5/-! Root fidelity on the positive cone of the genuine operator-valued L1
6Banach space. A positive representative is repaired on a null set, so all
7definitions and continuity statements concern actual L1 equivalence classes. -/
8 
9noncomputable section
10open scoped ComplexOrder InnerProductSpace Topology BigOperators
11open MeasureTheory Filter Cloning.InfiniteTraceClass Cloning.InfiniteFidelity
12namespace Cloning.Hybrid
13set_option backward.isDefEq.respectTransparency false
14set_option maxHeartbeats 1000000
15 
16variable {Ω H K : Type*} [MeasurableSpace Ω] {μ : Measure Ω}
17  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
18  [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
19 
20namespace PositiveField
21 
22/-- Repair an almost-everywhere positive L1 representative only on its null
23exceptional set. -/
24def ofL1 (A : Lp (TraceClass H) 1 μ) (hA : ∀ᵐ y ∂μ, 0 ≤ (A y).1) :
25    PositiveField (H := H) μ := by
26  classical
27  let f : Ω → TraceClass H := fun y => if 0 ≤ (A y).1 then A y else 0
28  have he : f =ᵐ[μ] A := hA.mono fun y hy => if_pos hy
29  exact ofIntegrable f ((L1.integrable_coeFn A).congr he.symm) (fun y => by
30    dsimp only [f]
31    split_ifs with hy
32    · exact hy
33    · exact le_rfl)
34 
35theorem ofL1_ae (A : Lp (TraceClass H) 1 μ) (hA : ∀ᵐ y ∂μ, 0 ≤ (A y).1) :
36    (fun y => ((ofL1 A hA).value y).1) =ᵐ[μ] A := by
37  classical
38  filter_upwards [hA] with y hy
39  change (if 0 ≤ (A y).1 then A y else 0) = A y
40  exact if_pos hy
41 
42@[simp] theorem toL1_ofL1 (A : Lp (TraceClass H) 1 μ) (hA : ∀ᵐ y ∂μ, 0 ≤ (A y).1) :
43    (ofL1 A hA).toL1 = A :=
44  Lp.ext (((ofL1 A hA).coe_toL1).trans (ofL1_ae A hA))
45 
46theorem rootFidelity_ofL1_eq_integral (A B : Lp (TraceClass H) 1 μ)
47    (hA : ∀ᵐ y ∂μ, 0 ≤ (A y).1) (hB : ∀ᵐ y ∂μ, 0 ≤ (B y).1) :
48    (ofL1 A hA).rootFidelity (ofL1 B hB) =
49      ∫ y, extendedRootFidelity (A y, B y) ∂μ := by
50  apply integral_congr_ae
51  filter_upwards [ofL1_ae A hA, ofL1_ae B hB, hA, hB] with y hAy hBy hpA hpB
52  rw [extendedRootFidelity_eq _ _ hpA hpB]
53  unfold PositiveTraceClass.rootFidelity
54  congr 1 <;> simp only [hAy, hBy]
55 
56end PositiveField
57 
58/-- The closed positive cone in operator-valued L1. -/
59def PositiveL1 (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H]
60    [CompleteSpace H] (μ : Measure Ω) :=
61  {A : Lp (TraceClass H) 1 μ // ∀ᵐ y ∂μ, 0 ≤ (A y).1}
62 
63namespace PositiveL1
64 
65instance : TopologicalSpace (PositiveL1 H μ) := inferInstanceAs
66  (TopologicalSpace {A : Lp (TraceClass H) 1 μ // ∀ᵐ y ∂μ, 0 ≤ (A y).1})
67instance : MetricSpace (PositiveL1 H μ) := inferInstanceAs
68  (MetricSpace {A : Lp (TraceClass H) 1 μ // ∀ᵐ y ∂μ, 0 ≤ (A y).1})
69 
70def field (A : PositiveL1 H μ) : PositiveField (H := H) μ := PositiveField.ofL1 A.1 A.2
71 
72@[simp] theorem field_toL1 (A : PositiveL1 H μ) : A.field.toL1 = A.1 :=
73  PositiveField.toL1_ofL1 A.1 A.2
74 
75@[simp] theorem field_mass (A : PositiveL1 H μ) : A.field.mass = ‖A.1‖ := by
76  rw [← PositiveField.norm_toL1, field_toL1]
77 
78theorem field_traceDistance (A B : PositiveL1 H μ) :
79    A.field.traceDistance B.field = ‖A.1 - B.1‖ := by
80  rw [PositiveField.traceDistance_eq_norm, field_toL1, field_toL1]
81 
82/-- The actual integrated root fidelity of two positive L1 classes. -/
83def rootFidelity (A B : PositiveL1 H μ) : ℝ := A.field.rootFidelity B.field
84 
85theorem rootFidelity_eq_integral (A B : PositiveL1 H μ) :
86    A.rootFidelity B = ∫ y, extendedRootFidelity (A.1 y, B.1 y) ∂μ :=
87  PositiveField.rootFidelity_ofL1_eq_integral A.1 B.1 A.2 B.2
88 
89theorem integrable_rootFidelity (A B : PositiveL1 H μ) :
90    Integrable (fun y => extendedRootFidelity (A.1 y, B.1 y)) μ := by
91  apply (A.field.integrable_rootFidelity B.field).congr
92  filter_upwards [PositiveField.ofL1_ae A.1 A.2, PositiveField.ofL1_ae B.1 B.2,
93    A.2, B.2] with y hAy hBy hpA hpB
94  rw [extendedRootFidelity_eq _ _ hpA hpB]
95  unfold PositiveTraceClass.rootFidelity field
96  congr 1 <;> simp only [hAy, hBy]
97 
98theorem rootFidelity_nonneg (A B : PositiveL1 H μ) : 0 ≤ A.rootFidelity B :=
99  A.field.rootFidelity_nonneg B.field
100 
101theorem rootFidelity_comm (A B : PositiveL1 H μ) : A.rootFidelity B = B.rootFidelity A :=
102  A.field.rootFidelity_comm B.field
103 
104@[simp] theorem rootFidelity_self (A : PositiveL1 H μ) : A.rootFidelity A = ‖A.1‖ := by
105  rw [rootFidelity, PositiveField.rootFidelity_self, field_mass]
106 
107theorem rootFidelity_le_sqrt (A B : PositiveL1 H μ) :
108    A.rootFidelity B ≤ Real.sqrt ‖A.1‖ * Real.sqrt ‖B.1‖ := by
109  simpa only [field_mass] using A.field.rootFidelity_le_sqrt_mass B.field
110 
111theorem rootFidelity_continuity (A B C D : PositiveL1 H μ) :
112    |A.rootFidelity B - C.rootFidelity D| ≤
113      Real.sqrt ‖A.1 - C.1‖ * Real.sqrt ‖B.1‖ +
114      Real.sqrt ‖B.1 - D.1‖ * Real.sqrt ‖C.1‖ := by
115  simpa only [field_traceDistance, field_mass] using
116    A.field.rootFidelity_continuity B.field C.field D.field
117 
118theorem continuous_rootFidelity :
119    Continuous (fun p : PositiveL1 H μ × PositiveL1 H μ => p.1.rootFidelity p.2) := by
120  apply continuous_iff_continuousAt.mpr
121  intro p
122  rw [ContinuousAt, ← tendsto_sub_nhds_zero_iff, tendsto_zero_iff_norm_tendsto_zero]
123  have hA : Tendsto (fun q : PositiveL1 H μ × PositiveL1 H μ => q.1.1)
124      (𝓝 p) (𝓝 p.1.1) := continuous_subtype_val.continuousAt.comp continuous_fst.continuousAt
125  have hB : Tendsto (fun q : PositiveL1 H μ × PositiveL1 H μ => q.2.1)
126      (𝓝 p) (𝓝 p.2.1) := continuous_subtype_val.continuousAt.comp continuous_snd.continuousAt
127  have hlim : Tendsto
128      (fun q : PositiveL1 H μ × PositiveL1 H μ =>
129        Real.sqrt ‖q.1.1 - p.1.1‖ * Real.sqrt ‖q.2.1‖ +
130        Real.sqrt ‖q.2.1 - p.2.1‖ * Real.sqrt ‖p.1.1‖) (𝓝 p) (𝓝 0) := by
131    convert (((hA.sub tendsto_const_nhds).norm.sqrt).mul hB.norm.sqrt).add
132      (((hB.sub tendsto_const_nhds).norm.sqrt).mul tendsto_const_nhds) using 1 <;> simp
133  exact squeeze_zero (fun _ => norm_nonneg _) (fun q => by
134    simpa only [Real.norm_eq_abs] using rootFidelity_continuity q.1 q.2 p.1 p.2) hlim
135 
136/-- Actual hybrid channels act continuously on the positive L1 cone. -/
137def map (Λ : Channel H K μ) (A : PositiveL1 H μ) : PositiveL1 K μ :=
138  ⟨Λ.map A.1, Λ.completelyPositive.map_nonneg A.1 A.2⟩
139 
140theorem continuous_map (Λ : Channel H K μ) : Continuous (map Λ) :=
141  (Λ.map.continuous.comp continuous_subtype_val).subtype_mk _
142 
143@[simp] theorem norm_map (Λ : Channel H K μ) (A : PositiveL1 H μ) :
144    ‖(map Λ A).1‖ = ‖A.1‖ :=
145  norm_L1_map_nonneg Λ.map.toLinearMap Λ.completelyPositive Λ.tracePreserving A.1 A.2
146 
147end PositiveL1
148 
149namespace PositiveField
150 
151def toPositiveL1 (R : PositiveField (H := H) μ) : PositiveL1 H μ :=
152  ⟨R.toL1, by
153    filter_upwards [R.coe_toL1] with y hy
154    rw [hy]
155    exact (R.value y).2⟩
156 
157theorem toPositiveL1_rootFidelity (R S : PositiveField (H := H) μ) :
158    R.toPositiveL1.rootFidelity S.toPositiveL1 = R.rootFidelity S :=
159  rootFidelity_eq_of_toL1_eq (PositiveL1.field_toL1 _) (PositiveL1.field_toL1 _)
160 
161end PositiveField
162end Cloning.Hybrid