Exact Lean source
HybridJensen
formalization/Cloning/HybridJensen.lean
Source hash: 563d49e1a16c6064bc476c8929cf5780d45ba1ae205450274bd83a6252810e1e
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.positivePairsdefinition Cloning.Hybrid.extendedRootFidelitytheorem Cloning.Hybrid.extendedRootFidelity_eqtheorem Cloning.Hybrid.convex_positivePairstheorem Cloning.Hybrid.isClosed_positivePairstheorem Cloning.Hybrid.continuousOn_extendedRootFidelitytheorem Cloning.Hybrid.concaveOn_extendedRootFidelitytheorem Cloning.Hybrid.positivePairs_smultheorem Cloning.Hybrid.extendedRootFidelity_smul_getheorem Cloning.Hybrid.extendedRootFidelity_smultheorem Cloning.Hybrid.PositiveField.rootFidelity_le_marginaltheorem Cloning.Hybrid.PositiveField.rootFidelity_le_marginal_finite1import Cloning.HybridL1
2import Cloning.InfiniteFidelityConcavity
3import Mathlib.Analysis.Convex.Integral
4import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Order
5
6/-!
7# Jensen's inequality for infinite-dimensional quantum fidelity
8
9Root fidelity of Bochner mixtures dominates the average root fidelity.
10No measurable choice of Uhlmann optimizers is assumed: finite joint concavity
11and trace-norm continuity feed the Banach-space Jensen theorem.
12-/
13noncomputable section
14open scoped ComplexOrder InnerProductSpace Topology
15open MeasureTheory Filter Cloning.InfiniteTraceClass Cloning.InfiniteFidelity
16namespace Cloning.Hybrid
17set_option backward.isDefEq.respectTransparency false
18variable {Ω H : Type*} [MeasurableSpace Ω] {μ : Measure Ω}
19 [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
20
21/-- The positive-pair domain of quantum fidelity in a real Banach space. -/
22def positivePairs : Set (TraceClass H × TraceClass H) :=
23 {p | 0 ≤ p.1.1 ∧ 0 ≤ p.2.1}
24
25/-- A total extension used only to state ordinary Banach-space Jensen. Its
26value outside the positive cone plays no role in any theorem. -/
27def extendedRootFidelity (p : TraceClass H × TraceClass H) : ℝ := by
28 classical
29 exact if h : p ∈ positivePairs then
30 PositiveTraceClass.rootFidelity ⟨p.1, h.1⟩ ⟨p.2, h.2⟩ else 0
31
32lemma extendedRootFidelity_eq (A B : TraceClass H) (hA : 0 ≤ A.1) (hB : 0 ≤ B.1) :
33 extendedRootFidelity (A, B) = fidelity A.1 B.1 hA hB A.2 B.2 := by
34 unfold extendedRootFidelity
35 rw [dif_pos (show (A, B) ∈ positivePairs from ⟨hA, hB⟩)]
36 rfl
37
38lemma convex_positivePairs : Convex ℝ (positivePairs (H := H)) := by
39 intro p hp q hq a b ha hb hab
40 constructor
41 · change 0 ≤ a • p.1.1 + b • q.1.1
42 exact add_nonneg (smul_nonneg ha hp.1) (smul_nonneg hb hq.1)
43 · change 0 ≤ a • p.2.1 + b • q.2.1
44 exact add_nonneg (smul_nonneg ha hp.2) (smul_nonneg hb hq.2)
45
46lemma isClosed_positivePairs : IsClosed (positivePairs (H := H)) := by
47 have h1 : IsClosed {p : TraceClass H × TraceClass H | 0 ≤ p.1.1} :=
48 isClosed_le continuous_const (inclusionCLM.continuous.comp continuous_fst)
49 have h2 : IsClosed {p : TraceClass H × TraceClass H | 0 ≤ p.2.1} :=
50 isClosed_le continuous_const (inclusionCLM.continuous.comp continuous_snd)
51 exact h1.inter h2
52
53lemma continuousOn_extendedRootFidelity :
54 ContinuousOn (extendedRootFidelity (H := H)) positivePairs := by
55 rw [continuousOn_iff_continuous_restrict]
56 let j : positivePairs (H := H) → PositiveTraceClass H × PositiveTraceClass H :=
57 fun p => (⟨p.1.1, p.2.1⟩, ⟨p.1.2, p.2.2⟩)
58 have hj : Continuous j := by
59 apply Continuous.prodMk
60 · exact (continuous_fst.comp continuous_subtype_val).subtype_mk _
61 · exact (continuous_snd.comp continuous_subtype_val).subtype_mk _
62 have h := PositiveTraceClass.continuous_rootFidelity.comp hj
63 convert h using 1
64 funext p
65 exact extendedRootFidelity_eq _ _ p.2.1 p.2.2
66
67/-- The actual positive trace-class fidelity is jointly concave on its full
68Banach-space domain. -/
69theorem concaveOn_extendedRootFidelity :
70 ConcaveOn ℝ (positivePairs (H := H)) extendedRootFidelity := by
71 refine ⟨convex_positivePairs, ?_⟩
72 intro p hp q hq a b ha hb hab
73 have hc := convex_positivePairs hp hq ha hb hab
74 rw [extendedRootFidelity_eq p.1 p.2 hp.1 hp.2,
75 extendedRootFidelity_eq q.1 q.2 hq.1 hq.2]
76 have he := extendedRootFidelity_eq (a • p.1 + b • q.1)
77 (a • p.2 + b • q.2) hc.1 hc.2
78 change a * _ + b * _ ≤ extendedRootFidelity (a • p.1 + b • q.1, a • p.2 + b • q.2)
79 rw [he]
80 simpa only [Complex.coe_smul] using
81 fidelity_weighted_joint_concavity p.1 p.2 q.1 q.2 hp.1 hp.2 hq.1 hq.2 a b ha hb
82
83lemma positivePairs_smul {p : TraceClass H × TraceClass H} (hp : p ∈ positivePairs)
84 {a : ℝ} (ha : 0 ≤ a) : a • p ∈ positivePairs := by
85 constructor
86 · change 0 ≤ a • p.1.1
87 exact smul_nonneg ha hp.1
88 · change 0 ≤ a • p.2.1
89 exact smul_nonneg ha hp.2
90
91lemma extendedRootFidelity_smul_ge {p : TraceClass H × TraceClass H}
92 (hp : p ∈ positivePairs) {a : ℝ} (ha : 0 ≤ a) :
93 a * extendedRootFidelity p ≤ extendedRootFidelity (a • p) := by
94 rw [extendedRootFidelity_eq p.1 p.2 hp.1 hp.2]
95 have h := fidelity_weighted_joint_concavity p.1 p.2 p.1 p.2
96 hp.1 hp.2 hp.1 hp.2 a 0 ha le_rfl
97 have he := extendedRootFidelity_eq (a • p.1) (a • p.2)
98 (positivePairs_smul hp ha).1 (positivePairs_smul hp ha).2
99 change _ ≤ extendedRootFidelity (a • p.1, a • p.2)
100 rw [he]
101 simpa only [zero_smul, add_zero, zero_mul, Complex.coe_smul] using h
102
103/-- Common nonnegative scaling is exactly homogeneous, even for singular
104infinite-dimensional trace-class states. -/
105lemma extendedRootFidelity_smul {p : TraceClass H × TraceClass H}
106 (hp : p ∈ positivePairs) {a : ℝ} (ha : 0 ≤ a) :
107 extendedRootFidelity (a • p) = a * extendedRootFidelity p := by
108 by_cases hzero : a = 0
109 · subst a
110 simp only [zero_smul, zero_mul]
111 rw [show (0 : TraceClass H × TraceClass H) = (0, 0) from rfl,
112 extendedRootFidelity_eq _ _ le_rfl le_rfl]
113 exact (fidelity_self le_rfl isTraceClass_zero).trans ((trace_re_eq_traceNorm le_rfl isTraceClass_zero).trans traceNorm_zero)
114 · apply le_antisymm _ (extendedRootFidelity_smul_ge hp ha)
115 have h := extendedRootFidelity_smul_ge (positivePairs_smul hp ha)
116 (inv_nonneg.mpr ha)
117 rw [inv_smul_smul₀ hzero] at h
118 have hm := mul_le_mul_of_nonneg_left h ha
119 simpa only [← mul_assoc, mul_inv_cancel₀ hzero, one_mul] using hm
120
121namespace PositiveField
122
123/-- Quantum fidelity increases when a probability-valued classical register is
124forgotten. This holds for arbitrary, noncommuting, infinite-dimensional fibres. -/
125theorem rootFidelity_le_marginal [IsProbabilityMeasure μ]
126 (R S : PositiveField (H := H) μ) :
127 R.rootFidelity S ≤ fidelity R.quantumMarginal.1 S.quantumMarginal.1
128 R.quantumMarginal_nonneg S.quantumMarginal_nonneg R.quantumMarginal.2 S.quantumMarginal.2 := by
129 let f : Ω → TraceClass H × TraceClass H := fun x => ((R.value x).1, (S.value x).1)
130 have he (x : Ω) : extendedRootFidelity (f x) =
131 PositiveTraceClass.rootFidelity (R.value x) (S.value x) :=
132 extendedRootFidelity_eq _ _ (R.value x).2 (S.value x).2
133 have hfi : Integrable f μ := R.integrable.prodMk S.integrable
134 have hgi : Integrable (extendedRootFidelity ∘ f) μ := by
135 change Integrable (fun x => extendedRootFidelity (f x)) μ
136 simpa only [he] using R.integrable_rootFidelity S
137 have h := concaveOn_extendedRootFidelity.le_map_integral
138 continuousOn_extendedRootFidelity isClosed_positivePairs
139 (Eventually.of_forall fun x => And.intro (R.value x).2 (S.value x).2) hfi hgi
140 simp only [he] at h
141 change R.rootFidelity S ≤ extendedRootFidelity (∫ x, ((R.value x).1, (S.value x).1) ∂μ) at h
142 rw [integral_pair R.integrable S.integrable] at h
143 change R.rootFidelity S ≤ extendedRootFidelity (R.quantumMarginal, S.quantumMarginal) at h
144 rwa [extendedRootFidelity_eq _ _ R.quantumMarginal_nonneg S.quantumMarginal_nonneg] at h
145
146/-- Homogeneity removes the normalization of the classical base measure. -/
147theorem rootFidelity_le_marginal_finite [IsFiniteMeasure μ]
148 (R S : PositiveField (H := H) μ) :
149 R.rootFidelity S ≤ fidelity R.quantumMarginal.1 S.quantumMarginal.1
150 R.quantumMarginal_nonneg S.quantumMarginal_nonneg R.quantumMarginal.2 S.quantumMarginal.2 := by
151 rw [← extendedRootFidelity_eq R.quantumMarginal S.quantumMarginal
152 R.quantumMarginal_nonneg S.quantumMarginal_nonneg]
153 by_cases hzero : μ = 0
154 · simp only [rootFidelity, quantumMarginal, hzero, integral_zero_measure]
155 rw [extendedRootFidelity_eq 0 0 le_rfl le_rfl]
156 exact le_of_eq ((fidelity_self le_rfl isTraceClass_zero).trans
157 ((trace_re_eq_traceNorm le_rfl isTraceClass_zero).trans traceNorm_zero)).symm
158 letI : NeZero μ := ⟨hzero⟩
159 let f : Ω → TraceClass H × TraceClass H := fun x => ((R.value x).1, (S.value x).1)
160 have he (x : Ω) : extendedRootFidelity (f x) =
161 PositiveTraceClass.rootFidelity (R.value x) (S.value x) :=
162 extendedRootFidelity_eq _ _ (R.value x).2 (S.value x).2
163 have hfi : Integrable f μ := R.integrable.prodMk S.integrable
164 have hgi : Integrable (extendedRootFidelity ∘ f) μ := by
165 change Integrable (fun x => extendedRootFidelity (f x)) μ
166 simpa only [he] using R.integrable_rootFidelity S
167 have h := concaveOn_extendedRootFidelity.le_map_average
168 continuousOn_extendedRootFidelity isClosed_positivePairs
169 (Eventually.of_forall fun x => And.intro (R.value x).2 (S.value x).2) hfi hgi
170 simp only [average_eq, he] at h
171 dsimp only [f] at h
172 rw [integral_pair R.integrable S.integrable] at h
173 change (μ.real Set.univ)⁻¹ * R.rootFidelity S ≤
174 extendedRootFidelity ((μ.real Set.univ)⁻¹ • (R.quantumMarginal, S.quantumMarginal)) at h
175 rw [extendedRootFidelity_smul (p := (R.quantumMarginal, S.quantumMarginal))
176 (a := (μ.real Set.univ)⁻¹)
177 ⟨R.quantumMarginal_nonneg, S.quantumMarginal_nonneg⟩ (by positivity)] at h
178 exact (mul_le_mul_iff_right₀ (inv_pos.mpr (measureReal_univ_pos (μ := μ)))).mp h
179
180end PositiveField
181end Cloning.Hybrid