Offline · exact source
Exact Lean source

HybridFidelity

formalization/Cloning/HybridFidelity.lean

Source hash: 1bef4d5f3d4c782a1ccc9b5212d3363bab166472f0b3cc74458863a3bb27b763

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.HybridStates
2import Cloning.HybridIntegralBounds
3import Cloning.InfiniteChannelFidelity
4 
5/-!
6# Fidelity and trace-norm continuity for continuous classical–quantum states
7 
8The integral is the actual pointwise quantum root fidelity. Its measurability,
9integrability, trace bound, data processing and dimension-independent continuity
10are proved for positive trace-class-valued `L¹` fields on arbitrary measure spaces.
11-/
12noncomputable section
13open scoped ComplexOrder InnerProductSpace Topology
14open MeasureTheory Filter Cloning.InfiniteTraceClass Cloning.InfiniteFidelity
15namespace Cloning.Hybrid.PositiveField
16set_option backward.isDefEq.respectTransparency false
17variable {Ω H K : Type*} [MeasurableSpace Ω] {μ : Measure Ω}
18  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
19  [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
20 
21lemma integrable_rootFidelity (R S : PositiveField (H := H) μ) :
22    Integrable (fun x => PositiveTraceClass.rootFidelity (R.value x) (S.value x)) μ := by
23  apply (integrable_sqrt_mul_sqrt R.integrable.norm S.integrable.norm
24    (fun _ => norm_nonneg _) (fun _ => norm_nonneg _)).mono'
25    (PositiveTraceClass.continuous_rootFidelity.comp_aestronglyMeasurable
26      (R.measurable.prodMk S.measurable))
27  exact Eventually.of_forall fun x => by
28    rw [Real.norm_of_nonneg (PositiveTraceClass.rootFidelity_nonneg _ _)]
29    exact PositiveTraceClass.rootFidelity_le_sqrt _ _
30 
31/-- Root fidelity for a continuous classical–quantum register. -/
32def rootFidelity (R S : PositiveField (H := H) μ) : ℝ :=
33  ∫ x, PositiveTraceClass.rootFidelity (R.value x) (S.value x) ∂μ
34 
35lemma rootFidelity_nonneg (R S : PositiveField (H := H) μ) : 0 ≤ R.rootFidelity S :=
36  integral_nonneg (fun x => PositiveTraceClass.rootFidelity_nonneg _ _)
37 
38lemma rootFidelity_comm (R S : PositiveField (H := H) μ) : R.rootFidelity S = S.rootFidelity R := by
39  apply integral_congr_ae
40  exact Eventually.of_forall fun x => PositiveTraceClass.rootFidelity_comm _ _
41 
42@[simp] lemma rootFidelity_self (R : PositiveField (H := H) μ) : R.rootFidelity R = R.mass := by
43  simp only [rootFidelity, PositiveTraceClass.rootFidelity_self, mass]
44 
45/-- The fidelity of arbitrary positive integrable fields is bounded by their
46integrated trace masses; pointwise normalization is unnecessary. -/
47theorem rootFidelity_le_sqrt_mass (R S : PositiveField (H := H) μ) :
48    R.rootFidelity S ≤ Real.sqrt R.mass * Real.sqrt S.mass := by
49  calc
50    R.rootFidelity S ≤ ∫ x, Real.sqrt ‖(R.value x).1‖ * Real.sqrt ‖(S.value x).1‖ ∂μ :=
51      integral_mono (R.integrable_rootFidelity S)
52        (integrable_sqrt_mul_sqrt R.integrable.norm S.integrable.norm
53          (fun _ => norm_nonneg _) (fun _ => norm_nonneg _))
54        (fun x => PositiveTraceClass.rootFidelity_le_sqrt _ _)
55    _ ≤ _ := integral_sqrt_mul_sqrt_le R.integrable.norm S.integrable.norm
56      (fun _ => norm_nonneg _) (fun _ => norm_nonneg _)
57 
58lemma rootFidelity_le_one (R S : PositiveField (H := H) μ)
59    (hR : R.mass ≤ 1) (hS : S.mass ≤ 1) : R.rootFidelity S ≤ 1 := by
60  have h := R.rootFidelity_le_sqrt_mass S
61  have hR' : Real.sqrt R.mass ≤ 1 := (Real.sqrt_le_one).mpr hR
62  have hS' : Real.sqrt S.mass ≤ 1 := (Real.sqrt_le_one).mpr hS
63  exact h.trans (by nlinarith [Real.sqrt_nonneg R.mass, Real.sqrt_nonneg S.mass])
64 
65/-- The full continuity bound for unnormalized hybrid states. The norm is the
66integral of the fibre trace norm, as required by the continuous-register LAN model. -/
67theorem rootFidelity_continuity (R S T U : PositiveField (H := H) μ) :
68    |R.rootFidelity S - T.rootFidelity U| ≤
69      Real.sqrt (R.traceDistance T) * Real.sqrt S.mass +
70      Real.sqrt (S.traceDistance U) * Real.sqrt T.mass := by
71  have hi₁ := integrable_sqrt_mul_sqrt (R.integrable.sub T.integrable).norm S.integrable.norm
72    (fun _ => norm_nonneg _) (fun _ => norm_nonneg _)
73  have hi₂ := integrable_sqrt_mul_sqrt (S.integrable.sub U.integrable).norm T.integrable.norm
74    (fun _ => norm_nonneg _) (fun _ => norm_nonneg _)
75  calc
76    |R.rootFidelity S - T.rootFidelity U| =
77        |∫ x, (PositiveTraceClass.rootFidelity (R.value x) (S.value x) -
78          PositiveTraceClass.rootFidelity (T.value x) (U.value x)) ∂μ| := by
79      rw [integral_sub (R.integrable_rootFidelity S) (T.integrable_rootFidelity U)]
80      rfl
81    _ ≤ ∫ x, |PositiveTraceClass.rootFidelity (R.value x) (S.value x) -
82          PositiveTraceClass.rootFidelity (T.value x) (U.value x)| ∂μ :=
83      abs_integral_le_integral_abs
84    _ ≤ ∫ x, (Real.sqrt ‖(R.value x).1 - (T.value x).1‖ * Real.sqrt ‖(S.value x).1‖ +
85        Real.sqrt ‖(S.value x).1 - (U.value x).1‖ * Real.sqrt ‖(T.value x).1‖) ∂μ := by
86      apply integral_mono
87        ((R.integrable_rootFidelity S).sub (T.integrable_rootFidelity U)).abs (hi₁.add hi₂)
88      intro x
89      exact PositiveTraceClass.rootFidelity_continuity _ _ _ _
90    _ = (∫ x, Real.sqrt ‖(R.value x).1 - (T.value x).1‖ * Real.sqrt ‖(S.value x).1‖ ∂μ) +
91        (∫ x, Real.sqrt ‖(S.value x).1 - (U.value x).1‖ * Real.sqrt ‖(T.value x).1‖ ∂μ) :=
92      integral_add hi₁ hi₂
93    _ ≤ _ := add_le_add
94      (integral_sqrt_mul_sqrt_le (R.integrable.sub T.integrable).norm S.integrable.norm
95        (fun _ => norm_nonneg _) (fun _ => norm_nonneg _))
96      (integral_sqrt_mul_sqrt_le (S.integrable.sub U.integrable).norm T.integrable.norm
97        (fun _ => norm_nonneg _) (fun _ => norm_nonneg _))
98 
99/-- The normalized continuity modulus is independent of both the classical
100register and the quantum Hilbert-space dimension. -/
101theorem rootFidelity_continuity_subnormalized (R S T U : PositiveField (H := H) μ)
102    (hS : S.mass ≤ 1) (hT : T.mass ≤ 1) :
103    |R.rootFidelity S - T.rootFidelity U| ≤
104      Real.sqrt (R.traceDistance T) + Real.sqrt (S.traceDistance U) := by
105  apply (rootFidelity_continuity R S T U).trans
106  exact add_le_add
107    (by
108      simpa using mul_le_mul_of_nonneg_left (Real.sqrt_le_one.mpr hS)
109        (Real.sqrt_nonneg (R.traceDistance T)))
110    (by
111      simpa using mul_le_mul_of_nonneg_left (Real.sqrt_le_one.mpr hT)
112        (Real.sqrt_nonneg (S.traceDistance U)))
113 
114/-- Complete positivity in every fibre implies hybrid fidelity data processing. -/
115theorem rootFidelity_map_le (Φ : QuantumChannel H K) (R S : PositiveField (H := H) μ) :
116    R.rootFidelity S ≤ (R.map Φ.toPositiveTracePreservingMap).rootFidelity
117      (S.map Φ.toPositiveTracePreservingMap) := by
118  apply integral_mono (R.integrable_rootFidelity S)
119    ((R.map Φ.toPositiveTracePreservingMap).integrable_rootFidelity
120      (S.map Φ.toPositiveTracePreservingMap))
121  intro x
122  exact fidelity_data_processing Φ (R.value x).1 (S.value x).1 (R.value x).2 (S.value x).2
123 
124/-- Almost-everywhere equality of representatives preserves the hybrid fidelity. -/
125theorem rootFidelity_congr_ae {R S T U : PositiveField (H := H) μ}
126    (hRT : R.value =ᵐ[μ] T.value) (hSU : S.value =ᵐ[μ] U.value) :
127    R.rootFidelity S = T.rootFidelity U := by
128  apply integral_congr_ae
129  filter_upwards [hRT, hSU] with x hR hS
130  rw [hR, hS]
131 
132end Cloning.Hybrid.PositiveField