Offline · exact source
Exact Lean source

WeylThermalFourierChannel

formalization/Cloning/WeylThermalFourierChannel.lean

Source hash: 80c26d418ddef79ae1d8aaf096a9fc75b751969fd14701090592fedde0ee7adf

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.WeylThermalFourierWitness
2import Cloning.WeylThermalCharacteristic
3import Cloning.WeylGaussianTwistedConvolution
4 
5/-! The thermal moment of a covariant channel is exactly the Gaussian
6functional of its constructed Weyl multiplier. Both the input and the thermal
7test operator are literal product-geometric operators on Fock space. -/
8 
9noncomputable section
10open MeasureTheory
11open scoped ComplexOrder InnerProductSpace Topology BigOperators
12 
13namespace Cloning.MultimodeCoherent
14open Cloning.InfiniteTraceClass Cloning.MultimodeCoherentGaussianMixture
15set_option backward.isDefEq.respectTransparency false
16set_option maxHeartbeats 1200000
17 
18variable {d : ℕ}
19 
20/-- Fourier width of a geometric thermal state. -/
21def geometricFourierWidth (q : ℝ) : ℝ := (1 + q) / (2 * (1 - q))
22 
23lemma geometricFourierWidth_pos {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) :
24    0 < geometricFourierWidth q := by
25  unfold geometricFourierWidth
26  exact div_pos (by linarith) (mul_pos (by norm_num) (sub_pos.mpr hq1))
27 
28lemma geometricFourierWidth_gt_half {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) :
29    1 / 2 < geometricFourierWidth q := by
30  unfold geometricFourierWidth
31  apply (lt_div_iff₀ (mul_pos (by norm_num) (sub_pos.mpr hq1))).mpr
32  linarith
33 
34lemma norm_real_smul_sq (r : ℝ) (a : ℂ) : ‖r • a‖ ^ 2 = r ^ 2 * ‖a‖ ^ 2 := by
35  rw [norm_smul, mul_pow, Real.norm_eq_abs, sq_abs]
36 
37/-- Every thermal input and thermal test give Gaussian widths in the
38physical domain of the sharp quantum-positive recurrence. -/
39lemma thermal_moment_width_ge_noise (r : ℝ) {q y : ℝ}
40    (hq0 : 0 < q) (hq1 : q < 1) (hy0 : 0 < y) (hy1 : y < 1) :
41    (r ^ 2 - 1) / 2 ≤ geometricFourierWidth y + r ^ 2 * geometricFourierWidth q := by
42  have hq := geometricFourierWidth_gt_half hq0 hq1
43  have hy := geometricFourierWidth_gt_half hy0 hy1
44  have hm := mul_le_mul_of_nonneg_left hq.le (sq_nonneg r)
45  nlinarith
46 
47/-- The output characteristic of an actual covariant trace-class map on a
48literal thermal input, with the multiplier derived from the normal dual. -/
49theorem covariant_thermal_output_characteristic
50    (Φ : TraceClass (Fock d) →L[ℂ] TraceClass (Fock d)) (r : ℝ)
51    (hΦ : ∀ a T, Φ (displacementTraceMap a T) = displacementTraceMap (r • a) (Φ T))
52    {q : Fin d → ℝ} (hq0 : ∀ i, 0 < q i) (hq1 : ∀ i, q i < 1) (a : Fin d → ℂ) :
53    tracePairing (Φ (vectorMixture (numberBasis d) (Cloning.ThermalWitness.productGeometric q)))
54      (displacement a) =
55      weylMultiplier (heisenbergDual Φ) r a *
56        ∏ i, Complex.exp (-((geometricFourierWidth (q i) * r ^ 2 * ‖a i‖ ^ 2 : ℝ) : ℂ)) := by
57  rw [← heisenbergDual_pairing, traceClass_covariant_weyl_multiplier Φ r hΦ,
58    map_smul, smul_eq_mul, productThermal_characteristic hq0 hq1]
59  congr 1
60  apply Finset.prod_congr rfl
61  intro i _
62  simp only [Pi.smul_apply, norm_real_smul_sq, geometricFourierWidth, mul_assoc]
63 
64lemma thermal_gaussian_weights_combine (q y : Fin d → ℝ) (r : ℝ) (a : Fin d → ℂ) :
65    (∏ i, (Real.exp (-geometricFourierWidth (y i) * ‖a i‖ ^ 2) / Real.pi : ℂ)) *
66      (∏ i, Complex.exp (-((geometricFourierWidth (q i) * r ^ 2 * ‖a i‖ ^ 2 : ℝ) : ℂ))) =
67      ((Real.pi ^ d : ℝ) : ℂ)⁻¹ *
68        (gaussianWeight (fun i => geometricFourierWidth (y i) +
69          r ^ 2 * geometricFourierWidth (q i)) a : ℂ) := by
70  rw [← Finset.prod_mul_distrib]
71  have heq (i : Fin d) :
72      (Real.exp (-geometricFourierWidth (y i) * ‖a i‖ ^ 2) / Real.pi : ℂ) *
73        Complex.exp (-((geometricFourierWidth (q i) * r ^ 2 * ‖a i‖ ^ 2 : ℝ) : ℂ)) =
74      ((Real.pi : ℂ)⁻¹) *
75        (Real.exp (-(geometricFourierWidth (y i) + r ^ 2 * geometricFourierWidth (q i)) *
76          ‖a i‖ ^ 2) : ℂ) := by
77    rw [← Complex.ofReal_neg, ← Complex.ofReal_exp, div_mul_eq_mul_div,
78      ← Complex.ofReal_mul, ← Real.exp_add]
79    have harg : -geometricFourierWidth (y i) * ‖a i‖ ^ 2 +
80        -(geometricFourierWidth (q i) * r ^ 2 * ‖a i‖ ^ 2) =
81        -(geometricFourierWidth (y i) + r ^ 2 * geometricFourierWidth (q i)) * ‖a i‖ ^ 2 := by ring
82    rw [harg, div_eq_mul_inv, mul_comm]
83  simp only [heq, Finset.prod_mul_distrib, Finset.prod_const,
84    Finset.card_univ, Fintype.card_fin, gaussianWeight, Complex.ofReal_prod,
85    Complex.ofReal_pow, inv_pow]
86 
87/-- Exact Gaussian multiplier expression for an output thermal moment.
88No Gaussianity or independence of the channel's noise is assumed. -/
89theorem covariant_productThermal_moment_fourier
90    (Φ : TraceClass (Fock d) →L[ℂ] TraceClass (Fock d)) (r : ℝ)
91    (hΦ : ∀ a T, Φ (displacementTraceMap a T) = displacementTraceMap (r • a) (Φ T))
92    {q y : Fin d → ℝ} (hq0 : ∀ i, 0 < q i) (hq1 : ∀ i, q i < 1)
93    (hy0 : ∀ i, 0 < y i) (hy1 : ∀ i, y i < 1) :
94    tracePairing (Φ (vectorMixture (numberBasis d) (Cloning.ThermalWitness.productGeometric q)))
95      (vectorMixture (numberBasis d) (Cloning.ThermalWitness.productGeometric y)).1 =
96      ((Real.pi ^ d : ℝ) : ℂ)⁻¹ * ∫ a : Fin d → ℂ,
97        (gaussianWeight (fun i => geometricFourierWidth (y i) +
98          r ^ 2 * geometricFourierWidth (q i)) a : ℂ) * weylMultiplier (heisenbergDual Φ) r a := by
99  rw [show Cloning.ThermalWitness.productGeometric y =
100    (fun k => ∏ i, Cloning.Thermal.geometric (y i) (k i)) from rfl,
101    tracePairing_geometricThermal_fourier hy0 hy1]
102  simp_rw [covariant_thermal_output_characteristic Φ r hΦ hq0 hq1]
103  rw [← integral_const_mul]
104  congr 1
105  funext a
106  change (∏ i, (Real.exp (-geometricFourierWidth (y i) * ‖a i‖ ^ 2) / Real.pi : ℂ)) *
107      (weylMultiplier (heisenbergDual Φ) r a * _) = _
108  rw [mul_left_comm _ (weylMultiplier (heisenbergDual Φ) r a),
109    thermal_gaussian_weights_combine]
110  ring
111 
112/-- Exact overlap of two literal product-geometric thermal states. -/
113theorem productThermal_overlap_fourier {x y : Fin d → ℝ}
114    (hx0 : ∀ i, 0 < x i) (hx1 : ∀ i, x i < 1)
115    (hy0 : ∀ i, 0 < y i) (hy1 : ∀ i, y i < 1) :
116    tracePairing (vectorMixture (numberBasis d) (Cloning.ThermalWitness.productGeometric x))
117      (vectorMixture (numberBasis d) (Cloning.ThermalWitness.productGeometric y)).1 =
118      ((Real.pi ^ d : ℝ) : ℂ)⁻¹ *
119        ((∏ i, Real.pi / (geometricFourierWidth (y i) +
120          geometricFourierWidth (x i)) : ℝ) : ℂ) := by
121  rw [show Cloning.ThermalWitness.productGeometric y =
122    (fun k => ∏ i, Cloning.Thermal.geometric (y i) (k i)) from rfl,
123    tracePairing_geometricThermal_fourier hy0 hy1]
124  simp_rw [productThermal_characteristic hx0 hx1]
125  have heq (a : Fin d → ℂ) :
126      (∏ i, (Real.exp (-geometricFourierWidth (y i) * ‖a i‖ ^ 2) / Real.pi : ℂ)) *
127        (∏ i, Complex.exp (-((geometricFourierWidth (x i) * ‖a i‖ ^ 2 : ℝ) : ℂ))) =
128      ((Real.pi ^ d : ℝ) : ℂ)⁻¹ *
129        (gaussianWeight (fun i => geometricFourierWidth (y i) +
130          geometricFourierWidth (x i)) a : ℂ) := by
131    simpa only [one_pow, mul_one, one_mul] using thermal_gaussian_weights_combine x y 1 a
132  change (∫ a : Fin d → ℂ,
133    (∏ i, (Real.exp (-geometricFourierWidth (y i) * ‖a i‖ ^ 2) / Real.pi : ℂ)) *
134      (∏ i, Complex.exp (-((geometricFourierWidth (x i) * ‖a i‖ ^ 2 : ℝ) : ℂ)))) = _
135  simp_rw [heq]
136  rw [integral_const_mul, integral_complex_ofReal,
137    integral_gaussianWeight (fun i => add_pos (geometricFourierWidth_pos (hy0 i) (hy1 i))
138      (geometricFourierWidth_pos (hx0 i) (hx1 i)))]
139 
140end Cloning.MultimodeCoherent