Offline · exact source
Exact Lean source

HybridL1

formalization/Cloning/HybridL1.lean

Source hash: d1a6e8d3b9d5f72c875f7a30e1487319e4ed1fe5926cd431a743dfcc593e60a1

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.HybridFidelity
2import Cloning.ChannelAveraging
3import Mathlib.MeasureTheory.Function.L1Space.AEEqFun
4 
5/-!
6# The actual operator-valued L¹ space behind hybrid states
7 
8Positive fields map to Mathlib's Banach space of integrable functions modulo
9almost-everywhere equality. Their mass and trace distance agree exactly with
10the `L¹` norm. Forgetting the continuous classical register produces a positive
11trace-class operator, and its trace is the integrated trace.
12-/
13noncomputable section
14open scoped ComplexOrder InnerProductSpace Topology
15open MeasureTheory Filter Cloning.InfiniteTraceClass Cloning.InfiniteFidelity
16namespace Cloning.Hybrid.PositiveField
17set_option backward.isDefEq.respectTransparency false
18variable {Ω H : Type*} [MeasurableSpace Ω] {μ : Measure Ω}
19  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
20 
21/-- The genuine `L¹` equivalence class of an operator-valued density. -/
22def toL1 (R : PositiveField (H := H) μ) : Lp (TraceClass H) 1 μ :=
23  R.integrable.toL1 (fun x => (R.value x).1)
24 
25lemma coe_toL1 (R : PositiveField (H := H) μ) :
26    R.toL1 =ᵐ[μ] (fun x => (R.value x).1) := R.integrable.coeFn_toL1
27 
28lemma norm_toL1 (R : PositiveField (H := H) μ) : ‖R.toL1‖ = R.mass := by
29  rw [L1.norm_eq_integral_norm]
30  exact integral_congr_ae (R.coe_toL1.fun_comp norm)
31 
32/-- Hybrid trace distance is exactly the norm difference in operator-valued L¹. -/
33theorem traceDistance_eq_norm (R S : PositiveField (H := H) μ) :
34    R.traceDistance S = ‖R.toL1 - S.toL1‖ := by
35  rw [L1.norm_eq_integral_norm]
36  apply integral_congr_ae
37  filter_upwards [Lp.coeFn_sub R.toL1 S.toL1, R.coe_toL1, S.coe_toL1] with x hsub hR hS
38  dsimp only [Pi.sub_apply] at hsub
39  rw [hsub, hR, hS]
40 
41lemma toL1_eq_iff (R S : PositiveField (H := H) μ) :
42    R.toL1 = S.toL1 ↔ R.value =ᵐ[μ] S.value := by
43  rw [toL1, toL1, Integrable.toL1_eq_toL1_iff]
44  constructor
45  · intro h
46    filter_upwards [h] with x hx
47    exact Subtype.ext hx
48  · intro h
49    filter_upwards [h] with x hx
50    rw [hx]
51 
52lemma traceDistance_eq_zero_iff (R S : PositiveField (H := H) μ) :
53    R.traceDistance S = 0 ↔ R.value =ᵐ[μ] S.value := by
54  rw [traceDistance_eq_norm, norm_eq_zero, sub_eq_zero, toL1_eq_iff]
55 
56/-- Fidelity depends only on the two actual L¹ equivalence classes. -/
57lemma rootFidelity_eq_of_toL1_eq {R S T U : PositiveField (H := H) μ}
58    (hRT : R.toL1 = T.toL1) (hSU : S.toL1 = U.toL1) :
59    R.rootFidelity S = T.rootFidelity U :=
60  rootFidelity_congr_ae ((toL1_eq_iff R T).mp hRT) ((toL1_eq_iff S U).mp hSU)
61 
62/-- The operator-valued Bochner integral is a positive trace-class operator. -/
63theorem quantumMarginal_nonneg (R : PositiveField (H := H) μ) :
64    0 ≤ R.quantumMarginal.1 := by
65  apply R.quantumMarginal.1.nonneg_iff_isPositive.mpr
66  apply (ContinuousLinearMap.isPositive_iff_complex R.quantumMarginal.1).mpr
67  intro v
68  have hnonneg : 0 ≤ ⟪v, R.quantumMarginal.1 v⟫_ℂ := by
69    have hi := (traceClassMatrixCoefficient v v).integrable_comp R.integrable
70    have h := integral_complex_nonneg hi (fun x =>
71      (((R.value x).1.1).nonneg_iff_isPositive.mp (R.value x).2).inner_nonneg_right v)
72    have he := (traceClassMatrixCoefficient v v).integral_comp_comm R.integrable
73    change (∫ x, ⟪v, (R.value x).1.1 v⟫_ℂ ∂μ) = ⟪v, R.quantumMarginal.1 v⟫_ℂ at he
74    simp only [traceClassMatrixCoefficient_apply] at h
75    rwa [he] at h
76  have hleft : 0 ≤ ⟪R.quantumMarginal.1 v, v⟫_ℂ := by
77    rw [← inner_conj_symm (R.quantumMarginal.1 v) v]
78    apply Complex.nonneg_iff.mpr
79    obtain ⟨hre, him⟩ := Complex.nonneg_iff.mp hnonneg
80    simpa only [Complex.conj_re, Complex.conj_im, ← him, neg_zero] using And.intro hre (rfl : (0 : ℝ) = 0)
81  obtain ⟨hre, him⟩ := Complex.nonneg_iff.mp hleft
82  refine ⟨?_, hre⟩
83  apply Complex.ext
84  · simp
85  · simpa using him
86 
87/-- A hybrid state of total trace one yields an actual quantum density state
88by forgetting the classical register. -/
89def marginalState (R : PositiveField (H := H) μ) (hR : R.mass = 1) : DensityState H where
90  op := R.quantumMarginal.1
91  positive := R.quantumMarginal_nonneg
92  traceClass := R.quantumMarginal.2
93  trace_one := by
94    apply Complex.ext
95    · exact R.trace_quantumMarginal.trans hR
96    · exact trace_im_eq_zero R.quantumMarginal_nonneg R.quantumMarginal.2
97 
98/-- Forgetting the classical register contracts the actual trace distance. -/
99theorem quantumMarginal_norm_sub_le (R S : PositiveField (H := H) μ) :
100    ‖R.quantumMarginal - S.quantumMarginal‖ ≤ R.traceDistance S := by
101  rw [quantumMarginal, quantumMarginal, ← integral_sub R.integrable S.integrable]
102  exact norm_integral_le_integral_norm _
103 
104end Cloning.Hybrid.PositiveField