Offline · exact source
Exact Lean source

HybridCoordinateTransport

formalization/Cloning/HybridCoordinateTransport.lean

Source hash: ed89bcf47681d678d328f4e5ed3488e678a964c571dc7cea116bf6dd724aefdf

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.MixedChannels
2import Cloning.HybridGaussianAttainmentFidelity
3 
4/-! Genuine transport of hybrid channels along a measure-preserving coordinate
5equivalence. Both the full complex L1 space and every finite positive block are
6transported; fidelity and all competitors are preserved. -/
7noncomputable section
8open scoped ComplexOrder InnerProductSpace Topology
9open MeasureTheory Filter Cloning.InfiniteTraceClass
10namespace Cloning.Hybrid
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1000000
13variable {Ω Ξ H K : Type*} [MeasurableSpace Ω] [MeasurableSpace Ξ]
14  {μ : Measure Ω} {ν : Measure Ξ}
15  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
16  [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
17 
18/-- Pull back the classical coordinate with its actual reference measure. -/
19def coordinatePull (e : Ω ≃ᵐ Ξ) (he : MeasurePreserving e μ ν) :
20    Lp (TraceClass H) 1 ν →ₗᵢ[ℂ] Lp (TraceClass H) 1 μ :=
21  Lp.compMeasurePreservingₗᵢ ℂ e he
22 
23theorem coordinatePull_ae (e : Ω ≃ᵐ Ξ) (he : MeasurePreserving e μ ν)
24    (A : Lp (TraceClass H) 1 ν) : coordinatePull e he A =ᵐ[μ] fun y => A (e y) :=
25  Lp.coeFn_compMeasurePreserving A he
26 
27theorem coordinatePull_blockPositive (e : Ω ≃ᵐ Ξ) (he : MeasurePreserving e μ ν)
28    (n : ℕ) (A : Fin n → Fin n → Lp (TraceClass H) 1 ν) (hA : L1BlockPositive A) :
29    L1BlockPositive (fun i j => coordinatePull e he (A i j)) := by
30  have hp := he.quasiMeasurePreserving.ae hA
31  have heq : ∀ᵐ y ∂μ, ∀ i j : Fin n, coordinatePull e he (A i j) y = A i j (e y) :=
32    ae_all_iff.mpr fun i => ae_all_iff.mpr fun j => coordinatePull_ae e he (A i j)
33  filter_upwards [hp, heq] with y hy heq
34  simpa only [heq] using hy
35 
36theorem coordinatePull_nonneg (e : Ω ≃ᵐ Ξ) (he : MeasurePreserving e μ ν)
37    (A : PositiveL1 H ν) : ∀ᵐ y ∂μ, 0 ≤ (coordinatePull e he A.1 y).1 := by
38  filter_upwards [he.quasiMeasurePreserving.ae A.2, coordinatePull_ae e he A.1] with y hy heq
39  simpa only [heq] using hy
40 
41def coordinatePullPositive (e : Ω ≃ᵐ Ξ) (he : MeasurePreserving e μ ν)
42    (A : PositiveL1 H ν) : PositiveL1 H μ :=
43  ⟨coordinatePull e he A.1, coordinatePull_nonneg e he A⟩
44 
45theorem coordinatePull_trace (e : Ω ≃ᵐ Ξ) (he : MeasurePreserving e μ ν)
46    (A : Lp (TraceClass H) 1 ν) :
47    (∫ y, traceCLM (coordinatePull e he A y) ∂μ) = ∫ y, traceCLM (A y) ∂ν := by
48  calc
49    _ = ∫ y, traceCLM (A (e y)) ∂μ :=
50      integral_congr_ae ((coordinatePull_ae e he A).fun_comp traceCLM)
51    _ = _ := he.integral_comp e.measurableEmbedding (fun y => traceCLM (A y))
52 
53@[simp] theorem coordinatePull_symm_apply (e : Ω ≃ᵐ Ξ) (he : MeasurePreserving e μ ν)
54    (A : Lp (TraceClass H) 1 ν) :
55    coordinatePull e.symm (he.symm e) (coordinatePull e he A) = A := by
56  apply Lp.ext
57  have hh := (he.symm e).quasiMeasurePreserving.ae (coordinatePull_ae e he A)
58  filter_upwards [hh, coordinatePull_ae e.symm (he.symm e) (coordinatePull e he A)] with y hy heq
59  simp only [heq, hy, e.apply_symm_apply]
60 
61@[simp] theorem coordinatePull_apply_symm (e : Ω ≃ᵐ Ξ) (he : MeasurePreserving e μ ν)
62    (A : Lp (TraceClass H) 1 μ) :
63    coordinatePull e he (coordinatePull e.symm (he.symm e) A) = A := by
64  exact coordinatePull_symm_apply e.symm (he.symm e) A
65 
66/-- Actual root fidelity is invariant under the coordinate equivalence. -/
67theorem coordinatePullPositive_rootFidelity (e : Ω ≃ᵐ Ξ) (he : MeasurePreserving e μ ν)
68    (A B : PositiveL1 H ν) :
69    (coordinatePullPositive e he A).rootFidelity (coordinatePullPositive e he B) =
70      A.rootFidelity B := by
71  rw [PositiveL1.rootFidelity_eq_integral, PositiveL1.rootFidelity_eq_integral]
72  calc
73    _ = ∫ y, extendedRootFidelity (A.1 (e y), B.1 (e y)) ∂μ := by
74      apply integral_congr_ae
75      filter_upwards [coordinatePull_ae e he A.1, coordinatePull_ae e he B.1] with y hA hB
76      change extendedRootFidelity (coordinatePull e he A.1 y, coordinatePull e he B.1 y) = _
77      rw [hA, hB]
78    _ = _ := he.integral_comp e.measurableEmbedding
79      (fun y => extendedRootFidelity (A.1 y, B.1 y))
80 
81/-- Conjugate an arbitrary actual hybrid competitor into new classical
82coordinates, retaining global CP and TP on all inputs. -/
83def Channel.transportCoordinates (e : Ω ≃ᵐ Ξ) (he : MeasurePreserving e μ ν)
84    (Λ : Channel H K μ) : Channel H K ν where
85  map := (coordinatePull (H := K) e.symm (he.symm e)).toContinuousLinearMap.comp
86    (Λ.map.comp (coordinatePull (H := H) e he).toContinuousLinearMap)
87  completelyPositive := by
88    intro n A hA
89    exact coordinatePull_blockPositive e.symm (he.symm e) n _
90      (Λ.completelyPositive n _ (coordinatePull_blockPositive e he n A hA))
91  tracePreserving := by
92    intro A
93    change (∫ y, traceCLM
94      (coordinatePull e.symm (he.symm e) (Λ.map (coordinatePull e he A)) y) ∂ν) = _
95    rw [coordinatePull_trace]
96    exact (Λ.tracePreserving (coordinatePull e he A)).trans (coordinatePull_trace e he A)
97 
98@[simp] theorem Channel.transportCoordinates_apply
99    (e : Ω ≃ᵐ Ξ) (he : MeasurePreserving e μ ν) (Λ : Channel H K μ)
100    (A : Lp (TraceClass H) 1 ν) :
101    (Λ.transportCoordinates e he).map A =
102      coordinatePull e.symm (he.symm e) (Λ.map (coordinatePull e he A)) := rfl
103 
104/-- Coordinate transport preserves the payoff for every competitor, not just
105for product or covariant channels. -/
106theorem Channel.transportCoordinates_rootFidelity
107    (e : Ω ≃ᵐ Ξ) (he : MeasurePreserving e μ ν) (Λ : Channel H K μ)
108    (A : PositiveL1 H ν) (B : PositiveL1 K ν) :
109    (A.map (Λ.transportCoordinates e he)).rootFidelity B =
110      ((coordinatePullPositive e he A).map Λ).rootFidelity (coordinatePullPositive e he B) := by
111  rw [← coordinatePullPositive_rootFidelity e he]
112  congr 1
113  apply Subtype.ext
114  exact coordinatePull_apply_symm e he _
115 
116theorem Channel.eq_of_map_eq {Λ Γ : Channel H K μ} (h : Λ.map = Γ.map) : Λ = Γ := by
117  cases Λ
118  cases Γ
119  cases h
120  rfl
121 
122/-- Pullback of the new measure returns every original competitor exactly. -/
123theorem Channel.transportCoordinates_symm
124    (e : Ω ≃ᵐ Ξ) (he : MeasurePreserving e μ ν) (Λ : Channel H K μ) :
125    (Λ.transportCoordinates e he).transportCoordinates e.symm (he.symm e) = Λ := by
126  apply Channel.eq_of_map_eq
127  apply ContinuousLinearMap.ext
128  intro A
129  simp only [Channel.transportCoordinates_apply, coordinatePull_symm_apply,
130    coordinatePull_apply_symm]
131 
132/-- A bijection of all actual competitors under the coordinate change. -/
133def Channel.coordinateEquiv (e : Ω ≃ᵐ Ξ) (he : MeasurePreserving e μ ν) :
134    Channel H K μ ≃ Channel H K ν where
135  toFun := Channel.transportCoordinates e he
136  invFun := Channel.transportCoordinates e.symm (he.symm e)
137  left_inv := Channel.transportCoordinates_symm e he
138  right_inv := Channel.transportCoordinates_symm e.symm (he.symm e)
139 
140end Cloning.Hybrid