Offline · exact source
Exact Lean source

WeylFlatPriorLimit

formalization/Cloning/WeylFlatPriorLimit.lean

Source hash: 73cbbc5037c0ed5fe228837225f00b0b1e4a572a5baab2d6052e60df58504d59

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.WeylFoelnerPayoff
2import Cloning.WeylFlatPrior
3 
4/-! Compact-witness control of diffuse-prior fidelity performance for arbitrary
5sequences of quantum competitors. The competitors may change at every scale. -/
6noncomputable section
7open scoped ComplexOrder InnerProductSpace Topology BigOperators
8open Filter MeasureTheory Cloning.InfiniteTraceClass Cloning.InfiniteFidelity
9open Cloning.Hybrid
10namespace Cloning.MultimodeCoherent
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1000000
13variable {d : ℕ}
14namespace PhaseSpaceDensity
15variable (p : PhaseSpaceDensity d)
16 
17/-- The covariance estimate is uniform over the competitor. Consequently even
18an adversarially changing competitor sequence has vanishing covariance defect. -/
19theorem foelnerChannel_sequence_covariance_tendsto (gain : ℝ)
20    (Φ : ℕ → QuantumChannel (Fock d) (Fock d))
21    (scale : ℕ → ℕ) (hscale : Tendsto scale atTop atTop) (b : Fin d → ℂ)
22    (A : TraceClass (Fock d)) :
23    Tendsto (fun n => ‖(p.foelnerChannel gain (Φ n) (scale n)).toLinearMap
24      (displacementTraceMap b A) - displacementTraceMap (gain • b)
25        ((p.foelnerChannel gain (Φ n) (scale n)).toLinearMap A)‖) atTop (𝓝 0) := by
26  let D (n : ℕ) := (((p.foelnerChannel gain (Φ n) (scale n)).toPositiveTracePreservingMap.toContinuousLinearMap).comp
27    (displacementTraceMap b) - (displacementTraceMap (gain • b)).comp
28      (p.foelnerChannel gain (Φ n) (scale n)).toPositiveTracePreservingMap.toContinuousLinearMap)
29  have hpos (B : TraceClass (Fock d)) (hB : 0 ≤ B.1) :
30      Tendsto (fun n => D n B) atTop (𝓝 0) := by
31    apply tendsto_zero_iff_norm_tendsto_zero.mpr
32    apply squeeze_zero (fun n => norm_nonneg _) _
33      (by simpa only [mul_zero] using ((p.translation_error_tendsto b).comp hscale).const_mul ‖B‖)
34    intro n
35    exact p.foelnerChannel_covariance_bound gain (Φ n) b B hB (scale n)
36  have hself (B : TraceClass (Fock d)) (hB : IsSelfAdjoint B.1) :
37      Tendsto (fun n => D n B) atTop (𝓝 0) := by
38    have h := (hpos _ (TraceClass.positivePart_nonneg B hB)).sub
39      (hpos _ (TraceClass.negativePart_nonneg B hB))
40    simpa only [← map_sub, TraceClass.positivePart_sub_negativePart B hB, sub_zero] using h
41  have h := (hself _ (TraceClass.realComponent_isSelfAdjoint A)).add
42    ((hself _ (TraceClass.imaginaryComponent_isSelfAdjoint A)).const_smul Complex.I)
43  have h' : Tendsto (fun n => D n A) atTop (𝓝 0) := by
44    simpa only [← map_smul, ← map_add, TraceClass.realComponent_add_I_smul_imaginaryComponent A,
45      smul_zero, add_zero] using h
46  exact tendsto_zero_iff_norm_tendsto_zero.mp h'
47 
48/-- One common covariant CP, trace-nonincreasing limit exists even when the
49competitor changes with the scale of the arbitrary expanding prior. This is the uniform
50compactness needed when taking a supremum over channels before the prior limit. -/
51theorem exists_foelner_sequence_covariant_limit (gain : ℝ)
52    (Φ : ℕ → QuantumChannel (Fock d) (Fock d))
53    (scale : ℕ → ℕ) (hscale : Tendsto scale atTop atTop) :
54    ∃ Ψ : TraceClass (Fock d) →ₗ[ℂ] TraceClass (Fock d),
55      IsCompletelyPositive Ψ ∧
56      (∀ A, 0 ≤ A.1 → (traceCLM (Ψ A)).re ≤ (traceCLM A).re) ∧
57      (∀ (b : Fin d → ℂ) A,
58        Ψ (displacementTraceMap b A) = displacementTraceMap (gain • b) (Ψ A)) ∧
59      ∃ φ : ℕ → ℕ, StrictMono φ ∧
60        (∀ A x y, Tendsto (fun n =>
61          ⟪x, ((p.foelnerChannel gain (Φ (φ n)) (scale (φ n))).toLinearMap A).1 y⟫_ℂ) atTop
62            (𝓝 ⟪x, (Ψ A).1 y⟫_ℂ)) ∧
63        (∀ A (O : (Fock d) →L[ℂ] (Fock d)), IsCompactOperator O →
64          Tendsto (fun n => tracePairing
65            ((p.foelnerChannel gain (Φ (φ n)) (scale (φ n))).toLinearMap A) O) atTop
66              (𝓝 (tracePairing (Ψ A) O))) := by
67  let L := fun n => (p.foelnerChannel gain (Φ n) (scale n)).toLinearMap
68  have ht (n : ℕ) (A : TraceClass (Fock d)) (_hA : 0 ≤ A.1) :
69      (traceCLM (L n A)).re ≤ 1 * (traceCLM A).re := by
70    simpa only [one_mul] using
71      le_of_eq (congrArg Complex.re ((p.foelnerChannel gain (Φ n) (scale n)).trace_preserving A))
72  have hd (b : Fin d → ℂ) (A : TraceClass (Fock d)) :
73      Tendsto (fun n =>
74        ‖L n (sandwichCLM (displacement b) (star (displacement b)) A) -
75          sandwichCLM (displacement (gain • b)) (star (displacement (gain • b)))
76            (L n A)‖) atTop (𝓝 0) := by
77    simpa only [ContinuousLinearMap.star_eq_adjoint, displacement_adjoint,
78      displacementTraceMap] using foelnerChannel_sequence_covariance_tendsto p gain Φ scale hscale b A
79  simpa only [one_mul, ContinuousLinearMap.star_eq_adjoint, displacement_adjoint,
80    displacementTraceMap] using exists_subsequence_covariant_completelyPositive_limit L 1
81      zero_le_one (fun n => (p.foelnerChannel gain (Φ n) (scale n)).completelyPositive) ht
82      displacement (fun b => displacement (gain • b)) hd
83 
84/-- The prior-averaged payoff is asymptotically bounded by the compact witness
85moment of the actual limit. This transfers performance through loss of trace
86without assuming weak continuity of fidelity. -/
87theorem orbitPayoff_eventually_sq_le_compact_limit
88    (gain : ℝ) (Φ : ℕ → QuantumChannel (Fock d) (Fock d))
89    (scale : ℕ → ℕ) (A B : PositiveTraceClass (Fock d)) (W : (Fock d) →L[ℂ] (Fock d))
90    (hW : 0 ≤ W) {M : ℝ} (hM : 0 ≤ M)
91    (hInv : ∀ ε : ℝ, 0 < ε →
92      (tracePairing B.1 (CFC.rpow (regularizedWeight W ε) (-1))).re ≤ M)
93    (Ψ : TraceClass (Fock d) →ₗ[ℂ] TraceClass (Fock d)) (φ : ℕ → ℕ)
94    (hlim : Tendsto (fun n => tracePairing
95      ((p.foelnerChannel gain (Φ (φ n)) (scale (φ n))).toLinearMap A.1) W)
96        atTop (𝓝 (tracePairing (Ψ A.1) W))) :
97    ∀ ε > 0, ∀ᶠ n in atTop,
98      (∫ a, orbitPayoff gain (Φ (φ n)) A B a ∂p.expandingPrior (scale (φ n))) ^ 2 ≤
99        (tracePairing (Ψ A.1) W).re * M + ε := by
100  intro ε hε
101  have h := ((Complex.continuous_re.tendsto _).comp hlim).mul_const M
102  filter_upwards [h.eventually (gt_mem_nhds (lt_add_of_pos_right _ hε))] with n hn
103  exact (integral_orbitPayoff_sq_le_weight (p.expandingPrior (scale (φ n))) gain
104    (Φ (φ n)) A B W hW hM hInv).trans hn.le
105 
106/-- The flat-prior performance reduction, with the supremum over competitors
107inside the prior limit. A bound only on covariant CP trace-nonincreasing limit
108maps implies an eventual bound simultaneously for every original CPTP
109competitor. The covariance and compact-limit passages are proved here. -/
110theorem eventually_forall_orbitPayoff_sq_le_of_covariant_moment
111    (gain : ℝ) (A B : PositiveTraceClass (Fock d))
112    (W : (Fock d) →L[ℂ] (Fock d)) (hW : 0 ≤ W) (hcompact : IsCompactOperator W)
113    {M C : ℝ} (hM : 0 ≤ M)
114    (hInv : ∀ ε : ℝ, 0 < ε →
115      (tracePairing B.1 (CFC.rpow (regularizedWeight W ε) (-1))).re ≤ M)
116    (hmoment : ∀ Ψ : TraceClass (Fock d) →ₗ[ℂ] TraceClass (Fock d),
117      IsCompletelyPositive Ψ →
118      (∀ X, 0 ≤ X.1 → (traceCLM (Ψ X)).re ≤ (traceCLM X).re) →
119      (∀ (b : Fin d → ℂ) X,
120        Ψ (displacementTraceMap b X) = displacementTraceMap (gain • b) (Ψ X)) →
121      (tracePairing (Ψ A.1) W).re ≤ C) :
122    ∀ ε > 0, ∀ᶠ n in atTop, ∀ Φ : QuantumChannel (Fock d) (Fock d),
123      (∫ a, orbitPayoff gain Φ A B a ∂p.expandingPrior n) ^ 2 ≤ C * M + ε := by
124  classical
125  intro ε hε
126  by_contra h
127  have hf : ∃ᶠ n in atTop, ∃ Φ : QuantumChannel (Fock d) (Fock d),
128      C * M + ε < (∫ a, orbitPayoff gain Φ A B a ∂p.expandingPrior n) ^ 2 := by
129    simpa only [Filter.Frequently, not_exists, not_lt, not_forall, not_le] using h
130  obtain ⟨scale, hscale, hbad⟩ := exists_seq_forall_of_frequently hf
131  choose Φ hΦ using hbad
132  obtain ⟨Ψ, hp, ht, hc, φ, hφ, _, hlim⟩ :=
133    p.exists_foelner_sequence_covariant_limit gain Φ scale hscale
134  have hm := mul_le_mul_of_nonneg_right (hmoment Ψ hp ht hc) hM
135  have he := p.orbitPayoff_eventually_sq_le_compact_limit gain Φ scale A B W hW hM hInv
136    Ψ φ (hlim A.1 W hcompact) (ε / 2) (by positivity)
137  obtain ⟨n, hn⟩ := he.exists
138  have hb := hΦ (φ n)
139  linarith
140 
141end PhaseSpaceDensity
142end Cloning.MultimodeCoherent