Offline · exact source
Exact Lean source

HeisenbergDualResidual

formalization/Cloning/HeisenbergDualResidual.lean

Source hash: e200fffccc1b826ae66754b27ea0199019efb8e513a7f6baf947a8e088d4888b

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.HeisenbergDualWeyl
2import Cloning.InfiniteTraceBoundedMaps
3 
4/-! A covariant positive trace-nonincreasing map has one constant success
5probability. Every nonzero completely positive such map normalizes to an
6actual CPTP channel; no residual-instrument normalization is assumed. -/
7 
8noncomputable section
9open scoped ComplexOrder InnerProductSpace Topology BigOperators
10 
11namespace Cloning.InfiniteTraceClass
12set_option backward.isDefEq.respectTransparency false
13set_option maxHeartbeats 800000
14variable {H K : Type*}
15  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
16  [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
17 
18/-- A positive map with identically zero trace is zero on every complex input. -/
19theorem positiveMap_eq_zero_of_trace_zero (Φ : TraceClass H →ₗ[ℂ] TraceClass K)
20    (hpos : ∀ T, 0 ≤ T.1 → 0 ≤ (Φ T).1)
21    (htrace : ∀ T, traceCLM (Φ T) = 0) : Φ = 0 := by
22  ext T
23  apply norm_eq_zero.mp
24  apply le_antisymm _ (norm_nonneg _)
25  have hb := norm_map_le_two_mul_of_trace_bound Φ hpos (c := 0) le_rfl
26    (fun T _ => by rw [htrace T]; simp) T
27  simpa using hb
28 
29/-- Positive rescaling preserves complete positivity. -/
30theorem IsCompletelyPositive.real_smul
31    {Φ : TraceClass H →ₗ[ℂ] TraceClass K} (hΦ : IsCompletelyPositive Φ)
32    {c : ℝ} (hc : 0 ≤ c) : IsCompletelyPositive ((c : ℂ) • Φ) := by
33  intro n A hA x
34  have h := hΦ n A hA x
35  have hc' : (0 : ℂ) ≤ (c : ℂ) := by exact_mod_cast hc
36  change 0 ≤ ∑ i, ∑ j, ⟪x i, (c : ℂ) • (Φ (A i j)).1 (x j)⟫_ℂ
37  simpa only [inner_smul_right, Finset.mul_sum] using mul_nonneg hc' h
38 
39/-- The normalization is the genuine original map divided by its success
40probability; its positivity, complete positivity and exact trace law are proved. -/
41def normalizedQuantumChannel
42    (Φ : TraceClass H →ₗ[ℂ] TraceClass K)
43    (hpos : ∀ T, 0 ≤ T.1 → 0 ≤ (Φ T).1)
44    (hCP : IsCompletelyPositive Φ) (c : ℝ) (hc : 0 < c)
45    (htrace : ∀ T, traceCLM (Φ T) = (c : ℂ) * traceCLM T) :
46    QuantumChannel H K where
47  toLinearMap := ((c⁻¹ : ℝ) : ℂ) • Φ
48  map_nonneg := by
49    intro T hT
50    change 0 ≤ (((c⁻¹ : ℝ) : ℂ) • (Φ T).1)
51    have heq : (((c⁻¹ : ℝ) : ℂ) • (Φ T).1) = c⁻¹ • (Φ T).1 := by
52      ext x
53      simp only [ContinuousLinearMap.smul_apply, RCLike.real_smul_eq_coe_smul (K := ℂ)]
54      rfl
55    rw [heq]
56    exact smul_nonneg (inv_nonneg.mpr hc.le) (hpos T hT)
57  trace_preserving := by
58    intro T
59    change traceCLM (((c⁻¹ : ℝ) : ℂ) • Φ T) = traceCLM T
60    rw [map_smul, htrace, smul_eq_mul, ← mul_assoc,
61      ← Complex.ofReal_mul, inv_mul_cancel₀ hc.ne', Complex.ofReal_one, one_mul]
62  completelyPositive := hCP.real_smul (inv_nonneg.mpr hc.le)
63 
64@[simp] theorem normalizedQuantumChannel_scale
65    (Φ : TraceClass H →ₗ[ℂ] TraceClass K)
66    (hpos : ∀ T, 0 ≤ T.1 → 0 ≤ (Φ T).1)
67    (hCP : IsCompletelyPositive Φ) (c : ℝ) (hc : 0 < c)
68    (htrace : ∀ T, traceCLM (Φ T) = (c : ℂ) * traceCLM T) :
69    (c : ℂ) • (normalizedQuantumChannel Φ hpos hCP c hc htrace).toLinearMap = Φ := by
70  change (c : ℂ) • (((c⁻¹ : ℝ) : ℂ) • Φ) = Φ
71  rw [smul_smul, ← Complex.ofReal_mul, mul_inv_cancel₀ hc.ne', Complex.ofReal_one, one_smul]
72 
73end Cloning.InfiniteTraceClass
74 
75namespace Cloning.MultimodeCoherent
76open Cloning.InfiniteTraceClass
77set_option backward.isDefEq.respectTransparency false
78set_option maxHeartbeats 800000
79variable {d : ℕ}
80 
81/-- The scalar success mass of an actual map, evaluated on the vacuum state. -/
82def covariantTraceMass (Φ : TraceClass (Fock d) →L[ℂ] TraceClass (Fock d)) : ℝ :=
83  (traceCLM (Φ (coherentProjector 0))).re
84 
85/-- Covariance forces the dual identity observable to be a scalar identity. -/
86theorem covariant_heisenbergDual_one
87    (Φ : TraceClass (Fock d) →L[ℂ] TraceClass (Fock d)) (r : ℝ)
88    (hΦ : ∀ a T, Φ (displacementTraceMap a T) =
89      displacementTraceMap (r • a) (Φ T)) :
90    heisenbergDual Φ (1 : Fock d →L[ℂ] Fock d) =
91      traceCLM (Φ (coherentProjector 0)) • (1 : Fock d →L[ℂ] Fock d) := by
92  have h := traceClass_covariant_weyl_multiplier Φ r hΦ 0
93  simpa only [smul_zero, neg_zero, displacement_zero, weylMultiplier,
94    ContinuousLinearMap.id_apply, heisenbergDual_inner, tracePairing_one] using h
95 
96/-- The exact scalar trace law holds on all trace-class operators. -/
97theorem covariant_trace_scaling
98    (Φ : TraceClass (Fock d) →L[ℂ] TraceClass (Fock d)) (r : ℝ)
99    (hΦ : ∀ a T, Φ (displacementTraceMap a T) =
100      displacementTraceMap (r • a) (Φ T))
101    (hpos : ∀ T, 0 ≤ T.1 → 0 ≤ (Φ T).1) (T : TraceClass (Fock d)) :
102    traceCLM (Φ T) = (covariantTraceMass Φ : ℂ) * traceCLM T := by
103  have hreal : traceCLM (Φ (coherentProjector 0)) = (covariantTraceMass Φ : ℂ) := by
104    apply Complex.ext
105    · rfl
106    · exact trace_im_eq_zero (hpos _ (coherentProjector_nonneg 0)) _
107  calc
108    _ = tracePairing T (heisenbergDual Φ 1) := by
109      rw [heisenbergDual_pairing, tracePairing_one]
110    _ = _ := by rw [covariant_heisenbergDual_one Φ r hΦ, map_smul,
111      tracePairing_one, smul_eq_mul, hreal]
112 
113/-- A positive trace-nonincreasing covariant map has success probability in
114`[0,1]`, fixed by its actual vacuum output. -/
115theorem covariantTraceMass_mem_unitInterval
116    (Φ : TraceClass (Fock d) →L[ℂ] TraceClass (Fock d))
117    (hpos : ∀ T, 0 ≤ T.1 → 0 ≤ (Φ T).1)
118    (htrace : ∀ T, 0 ≤ T.1 → (traceCLM (Φ T)).re ≤ (traceCLM T).re) :
119    0 ≤ covariantTraceMass Φ ∧ covariantTraceMass Φ ≤ 1 := by
120  constructor
121  · exact trace_re_nonneg (hpos _ (coherentProjector_nonneg 0)) _
122  · have h := htrace (coherentProjector 0) (coherentProjector_nonneg 0)
123    simpa only [coherentProjector_trace, Complex.one_re] using h
124 
125/-- Every covariant completely positive trace-nonincreasing map is either
126zero or a scalar multiple of an actual CPTP map. The scalar and normalized
127channel are derived from the given physical map. -/
128theorem covariant_cpTNI_zero_or_scaled_channel
129    (Γ : TraceClass (Fock d) →ₗ[ℂ] TraceClass (Fock d))
130    (hpos : ∀ T, 0 ≤ T.1 → 0 ≤ (Γ T).1)
131    (hCP : IsCompletelyPositive Γ)
132    (htrace : ∀ T, 0 ≤ T.1 → (traceCLM (Γ T)).re ≤ (traceCLM T).re)
133    (r : ℝ)
134    (hcov : ∀ a T, Γ (displacementTraceMap a T) =
135      displacementTraceMap (r • a) (Γ T)) :
136    Γ = 0 ∨ ∃ (c : ℝ) (Φ : QuantumChannel (Fock d) (Fock d)),
137      0 < c ∧ c ≤ 1 ∧ Γ = (c : ℂ) • Φ.toLinearMap ∧
138      ∀ a T, Φ.toLinearMap (displacementTraceMap a T) =
139        displacementTraceMap (r • a) (Φ.toLinearMap T) := by
140  let Γc := toContinuousLinearMapOfTraceBound Γ hpos (c := 1) zero_le_one
141    (fun T hT => by simpa only [one_mul] using htrace T hT)
142  have hb := covariantTraceMass_mem_unitInterval Γc hpos htrace
143  have hscale := covariant_trace_scaling Γc r hcov hpos
144  by_cases hc : covariantTraceMass Γc = 0
145  · left
146    apply positiveMap_eq_zero_of_trace_zero Γ hpos
147    intro T
148    simpa only [hc, Complex.ofReal_zero, zero_mul] using hscale T
149  · right
150    have hcpos : 0 < covariantTraceMass Γc := lt_of_le_of_ne hb.1 (Ne.symm hc)
151    let Φ := normalizedQuantumChannel Γ hpos hCP (covariantTraceMass Γc) hcpos hscale
152    refine ⟨covariantTraceMass Γc, Φ, hcpos, hb.2, ?_, ?_⟩
153    · exact (normalizedQuantumChannel_scale Γ hpos hCP _ hcpos hscale).symm
154    · intro a T
155      change (((covariantTraceMass Γc)⁻¹ : ℝ) : ℂ) • Γ (displacementTraceMap a T) =
156        displacementTraceMap (r • a) ((((covariantTraceMass Γc)⁻¹ : ℝ) : ℂ) • Γ T)
157      rw [hcov, map_smul]
158 
159end Cloning.MultimodeCoherent