Offline · exact source
Exact Lean source

HybridFoelnerThermal

formalization/Cloning/HybridFoelnerThermal.lean

Source hash: f1b0e569ecf0e49cb99d9370c9d9d156116a50b4bf5ae83cab0a8cf95e5556d2

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.HybridFoelnerResidual
2 
3/-! The sharp thermal witness bound for the quantum residual of a hybrid
4Følner limit. The classical trace factor survives normalization exactly. -/
5noncomputable section
6open scoped ComplexOrder InnerProductSpace Topology BigOperators
7open MeasureTheory Filter Cloning.InfiniteTraceClass
8open Cloning.MultimodeCoherent Cloning.MultimodeCoherentGaussianMixture Cloning.ThermalWitness
9namespace Cloning.Hybrid
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 1200000
12variable {k s : ℕ}
13 
14/-- A covariant CP residual of success mass at most `c` has witness moment
15at most `c` times the actual universal thermal least-noise value. -/
16theorem covariant_scaled_thermal_witness_moment_le
17    (Γ : TraceClass (Fock s) →ₗ[ℂ] TraceClass (Fock s))
18    (hΓ : IsCompletelyPositive Γ) {c : ℝ} (hc0 : 0 ≤ c) (hc1 : c ≤ 1)
19    (htrace : ∀ X, 0 ≤ X.1 → (traceCLM (Γ X)).re ≤ c * (traceCLM X).re)
20    (r : ℝ) (hr : 1 < r ^ 2)
21    (hcov : ∀ z X, Γ (displacementTraceMap z X) = displacementTraceMap (r • z) (Γ X))
22    {q : Fin s → ℝ} (hq0 : ∀ i, 0 < q i) (hq1 : ∀ i, q i < 1) :
23    (tracePairing (Γ (vectorMixture (numberBasis s) (productGeometric q)))
24      (productWitnessOperator (numberBasis s) q (fun i => Thermal.amplified (r ^ 2) (q i)))).re ≤
25      c * ∏ i, Thermal.fidelity (q i) (Thermal.amplified (r ^ 2) (q i)) := by
26  have hF : 0 ≤ ∏ i, Thermal.fidelity (q i) (Thermal.amplified (r ^ 2) (q i)) := by
27    apply Finset.prod_nonneg
28    intro i _
29    exact (Thermal.fidelity_pos (hq0 i).le (hq1 i)
30      ((hq0 i).trans (Thermal.lt_amplified hr (hq1 i))).le
31      (Thermal.amplified_lt_one (by linarith) (hq1 i))).le
32  have hTNI (X : TraceClass (Fock s)) (hX : 0 ≤ X.1) :
33      (traceCLM (Γ X)).re ≤ (traceCLM X).re :=
34    (htrace X hX).trans (mul_le_of_le_one_left (trace_re_nonneg hX X.2) hc1)
35  rcases covariant_cpTNI_zero_or_scaled_channel Γ hΓ.map_nonneg hΓ hTNI r hcov with
36    hzero | ⟨v, Φ, hv, _, heq, hΦ⟩
37  · subst Γ
38    simpa only [LinearMap.zero_apply, ← tracePairingCLM_apply, map_zero,
39      ContinuousLinearMap.zero_apply, Complex.zero_re] using mul_nonneg hc0 hF
40  · have hvc : v ≤ c := by
41      have ht := htrace (coherentProjector 0) (coherentProjector_nonneg 0)
42      rw [heq] at ht
43      change (traceCLM ((v : ℂ) • Φ.toLinearMap (coherentProjector 0))).re ≤ _ at ht
44      have htp : traceCLM (Φ.toLinearMap (coherentProjector 0)) =
45          traceCLM (coherentProjector 0) := Φ.trace_preserving _
46      rw [map_smul, htp, coherentProjector_trace] at ht
47      simpa only [smul_eq_mul, mul_one, Complex.ofReal_re, Complex.one_re] using ht
48    have hs : (tracePairing (Γ (vectorMixture (numberBasis s) (productGeometric q)))
49        (productWitnessOperator (numberBasis s) q
50          (fun i => Thermal.amplified (r ^ 2) (q i)))).re =
51        v * (tracePairing (Φ.toLinearMap (vectorMixture (numberBasis s) (productGeometric q)))
52          (productWitnessOperator (numberBasis s) q
53            (fun i => Thermal.amplified (r ^ 2) (q i)))).re := by
54      rw [heq]
55      change (tracePairingCLM ((v : ℂ) • _) _).re = _
56      simp only [map_smul, ContinuousLinearMap.smul_apply, smul_eq_mul,
57        Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero,
58        tracePairingCLM_apply]
59    rw [hs]
60    exact (mul_le_mul_of_nonneg_left
61      (covariant_thermal_witness_moment_le Φ r hΦ hr hq0 hq1) hv.le).trans
62      (mul_le_mul_of_nonneg_right hvc hF)
63 
64/-- The residual extracted from a hybrid Gaussian model has moment at most
65the product of the classical and orbital factors, including dimension zero. -/
66theorem hybrid_residual_thermal_witness_moment_le
67    (Γ : TraceClass (Fock s) →ₗ[ℂ] TraceClass (Fock s))
68    (hΓ : IsCompletelyPositive Γ) (g : ℝ) (hg : 1 < g)
69    (htrace : ∀ X, 0 ≤ X.1 → (traceCLM (Γ X)).re ≤
70      Thermal.classicalBase g ^ ((k : ℝ) / 2) * (traceCLM X).re)
71    (hcov : ∀ z X, Γ (displacementTraceMap z X) =
72      displacementTraceMap (Real.sqrt g • z) (Γ X))
73    {q : Fin s → ℝ} (hq0 : ∀ i, 0 < q i) (hq1 : ∀ i, q i < 1) :
74    (tracePairing (Γ (vectorMixture (numberBasis s) (productGeometric q)))
75      (productWitnessOperator (numberBasis s) q (fun i => Thermal.amplified g (q i)))).re ≤
76      Thermal.classicalBase g ^ ((k : ℝ) / 2) *
77        ∏ i, Thermal.fidelity (q i) (Thermal.amplified g (q i)) := by
78  have hg0 : 0 < g := by linarith
79  have hc0 : 0 ≤ Thermal.classicalBase g ^ ((k : ℝ) / 2) :=
80    Real.rpow_nonneg (Thermal.classicalBase_pos hg0).le _
81  have hc1 : Thermal.classicalBase g ^ ((k : ℝ) / 2) ≤ 1 :=
82    Real.rpow_le_one (Thermal.classicalBase_pos hg0).le
83      (Thermal.classicalBase_le_one hg0.le) (by positivity)
84  have hs : Real.sqrt g ^ 2 = g := Real.sq_sqrt hg0.le
85  have h := covariant_scaled_thermal_witness_moment_le Γ hΓ hc0 hc1 htrace
86    (Real.sqrt g) (by rwa [hs]) hcov hq0 hq1
87  simpa only [hs] using h
88 
89end Cloning.Hybrid