Exact Lean source
BosonicAmplifierThermal
formalization/Cloning/BosonicAmplifierThermal.lean
Source hash: ce6e8a1974d146818f622b3595f97c9e5866f70041158a98012c222e663b2462
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
theorem
Cloning.BosonicAmplifier.channel_vacuumtheorem Cloning.BosonicAmplifier.channel_numberProjector_apply_basistheorem Cloning.BosonicAmplifier.channel_vectorMixture_apply_basistheorem Cloning.BosonicAmplifier.thermalOutput_parameter_nonnegtheorem Cloning.BosonicAmplifier.thermalOutput_parameter_lt_onetheorem Cloning.BosonicAmplifier.channel_thermalOperatortheorem Cloning.BosonicAmplifier.channel_geometricStatetheorem Cloning.BosonicAmplifier.stateFidelity_channel_geometrictheorem Cloning.BosonicAmplifier.gainNoise_nonnegtheorem Cloning.BosonicAmplifier.gainNoise_lt_onetheorem Cloning.BosonicAmplifier.channel_thermalOperator_gaintheorem Cloning.BosonicAmplifier.stateFidelity_channel_gain1import Cloning.BosonicAmplifierChannel
2import Cloning.BosonicNumberLaw
3import Cloning.InfiniteDiagonalFidelity
4
5/-!
6# Actual thermal output of the bosonic amplifier
7
8Continuity in the trace norm transports the number-projector channel formula
9to summable diagonal operators. The finite binomial convolution then identifies
10the genuine amplifier output with the amplified thermal density operator.
11-/
12
13noncomputable section
14open scoped ComplexOrder InnerProductSpace Topology BigOperators
15
16namespace Cloning.BosonicAmplifier
17
18open Cloning Cloning.InfiniteTraceClass BosonicNumberLaw
19set_option backward.isDefEq.respectTransparency false
20set_option maxHeartbeats 600000
21
22/-- Every geometric thermal operator is the actual amplified vacuum. -/
23theorem channel_vacuum (r : ℝ) (hr0 : 0 ≤ r) (hr1 : r < 1) :
24 (channel r hr0 hr1).toLinearMap (vectorProjector (numberBasis 0)) =
25 vectorMixture numberBasis (Thermal.geometric r) := by
26 rw [channel_numberProjector]
27 simp only [Nat.zero_add]
28 congr 1
29 funext k
30 simp [weight, Thermal.geometric]
31
32/-- The output of a number input has the padded negative-binomial spectrum. -/
33theorem channel_numberProjector_apply_basis (r : ℝ) (hr0 : 0 ≤ r) (hr1 : r < 1)
34 (n t : ℕ) :
35 ((channel r hr0 hr1).toLinearMap (vectorProjector (numberBasis n))).1 (numberBasis t) =
36 (transition r n t : ℂ) • numberBasis t := by
37 classical
38 rw [channel_numberProjector]
39 let L : TraceClass Fock →L[ℂ] Fock :=
40 (ContinuousLinearMap.apply ℂ Fock (numberBasis t)).comp inclusionCLM
41 change L (vectorMixture (fun k => numberBasis (n + k)) (weight r n)) = _
42 rw [vectorMixture, L.map_tsum (summable_weighted_projectors _
43 (fun k => numberBasis.orthonormal.norm_eq_one (n + k)) _ (weight_hasSum hr0 hr1 n).summable)]
44 have hterm (k : ℕ) : L (vectorProjector (numberBasis (n + k))) =
45 if n + k = t then numberBasis t else 0 := by
46 change InnerProductSpace.rankOne ℂ (numberBasis (n + k)) (numberBasis (n + k))
47 (numberBasis t) = _
48 rw [InnerProductSpace.rankOne_apply,
49 orthonormal_iff_ite.mp numberBasis.orthonormal (n + k) t]
50 split_ifs with h
51 · simp [h]
52 · simp
53 simp only [map_smul, hterm]
54 by_cases hnt : n ≤ t
55 · rw [tsum_eq_single (t - n)]
56 · simp only [Nat.add_sub_of_le hnt, transition, if_pos hnt]
57 rfl
58 · intro k hk
59 have hne : n + k ≠ t := by omega
60 simp only [if_neg hne, smul_zero]
61 · have hne (k : ℕ) : n + k ≠ t := by omega
62 simp only [hne, if_false, smul_zero, tsum_zero, transition, if_neg hnt, Complex.ofReal_zero,
63 zero_smul]
64
65/-- Exact action on every summable diagonal input, proved using continuity of
66the actual channel. Each output coefficient is a finite convolution. -/
67theorem channel_vectorMixture_apply_basis (r : ℝ) (hr0 : 0 ≤ r) (hr1 : r < 1)
68 (p : ℕ → ℝ) (hp : Summable p) (t : ℕ) :
69 ((channel r hr0 hr1).toLinearMap (vectorMixture numberBasis p)).1 (numberBasis t) =
70 ((∑ n ∈ Finset.range (t + 1), p n * seededLaw r n (t - n) : ℝ) : ℂ) • numberBasis t := by
71 classical
72 let Φ := (channel r hr0 hr1).toPositiveTracePreservingMap.toContinuousLinearMap
73 let L : TraceClass Fock →L[ℂ] Fock :=
74 ((ContinuousLinearMap.apply ℂ Fock (numberBasis t)).comp inclusionCLM).comp Φ
75 change L (vectorMixture numberBasis p) = _
76 rw [vectorMixture, L.map_tsum
77 (summable_weighted_projectors _ numberBasis.orthonormal.norm_eq_one p hp)]
78 have hterm (n : ℕ) : L (vectorProjector (numberBasis n)) =
79 (transition r n t : ℂ) • numberBasis t :=
80 channel_numberProjector_apply_basis r hr0 hr1 n t
81 simp only [map_smul, hterm, smul_smul, ← Complex.ofReal_mul]
82 rw [tsum_eq_sum (s := Finset.range (t + 1))]
83 · rw [← Finset.sum_smul, ← Complex.ofReal_sum]
84 congr 2
85 apply Finset.sum_congr rfl
86 intro n hn
87 simp only [transition, if_pos (Nat.lt_succ_iff.mp (Finset.mem_range.mp hn))]
88 · intro n hn
89 have hnt : ¬ n ≤ t := by simpa only [Finset.mem_range, Nat.lt_succ_iff] using hn
90 simp only [transition, if_neg hnt, mul_zero, Complex.ofReal_zero, zero_smul]
91
92theorem thermalOutput_parameter_nonneg {r q : ℝ} (hr0 : 0 ≤ r) (hr1 : r < 1)
93 (hq0 : 0 ≤ q) : 0 ≤ r + (1 - r) * q :=
94 add_nonneg hr0 (mul_nonneg (sub_nonneg.mpr hr1.le) hq0)
95
96theorem thermalOutput_parameter_lt_one {r q : ℝ} (hr1 : r < 1) (hq1 : q < 1) :
97 r + (1 - r) * q < 1 := by
98 have h := mul_pos (sub_pos.mpr hr1) (sub_pos.mpr hq1)
99 nlinarith
100
101/-- The genuine infinite-dimensional quantum-limited amplifier sends a
102thermal diagonal operator to the thermal operator with the derived parameter. -/
103theorem channel_thermalOperator (r q : ℝ) (hr0 : 0 ≤ r) (hr1 : r < 1)
104 (hq0 : 0 ≤ q) (hq1 : q < 1) :
105 (channel r hr0 hr1).toLinearMap (vectorMixture numberBasis (Thermal.geometric q)) =
106 vectorMixture numberBasis (Thermal.geometric (r + (1 - r) * q)) := by
107 apply Subtype.ext
108 have hbasis (t : ℕ) :
109 ((channel r hr0 hr1).toLinearMap (vectorMixture numberBasis (Thermal.geometric q))).1
110 (numberBasis t) =
111 (vectorMixture numberBasis (Thermal.geometric (r + (1 - r) * q))).1 (numberBasis t) := by
112 rw [channel_vectorMixture_apply_basis r hr0 hr1 _ (Thermal.geometric_hasSum hq0 hq1).summable,
113 InfiniteOccupationStates.vectorMixture_apply_basis _ _
114 (Thermal.geometric_hasSum (thermalOutput_parameter_nonneg hr0 hr1 hq0)
115 (thermalOutput_parameter_lt_one hr1 hq1)).summable]
116 change (thermalOutput r q t : ℂ) • numberBasis t = _
117 rw [thermalOutput_eq]
118 apply ContinuousLinearMap.ext
119 intro v
120 have h₁ := ((channel r hr0 hr1).toLinearMap
121 (vectorMixture numberBasis (Thermal.geometric q))).1.hasSum (numberBasis.hasSum_repr v)
122 have h₂ := (vectorMixture numberBasis (Thermal.geometric (r + (1 - r) * q))).1.hasSum
123 (numberBasis.hasSum_repr v)
124 simp only [map_smul, hbasis] at h₁ h₂
125 exact h₁.unique h₂
126
127private theorem densityState_eq_of_op_eq {ρ σ : DensityState Fock}
128 (h : ρ.op = σ.op) : ρ = σ := by
129 cases ρ
130 cases σ
131 cases h
132 rfl
133
134/-- Equality of actual normalized density states after amplification. -/
135theorem channel_geometricState (r q : ℝ) (hr0 : 0 ≤ r) (hr1 : r < 1)
136 (hq0 : 0 ≤ q) (hq1 : q < 1) :
137 (channel r hr0 hr1).toPositiveTracePreservingMap.mapState
138 (InfiniteDiagonalFidelity.geometricState numberBasis q hq0 hq1) =
139 InfiniteDiagonalFidelity.geometricState numberBasis (r + (1 - r) * q)
140 (thermalOutput_parameter_nonneg hr0 hr1 hq0) (thermalOutput_parameter_lt_one hr1 hq1) := by
141 apply densityState_eq_of_op_eq
142 exact congrArg Subtype.val (channel_thermalOperator r q hr0 hr1 hq0 hq1)
143
144/-- Exact achieved thermal fidelity for the actual channel. -/
145theorem stateFidelity_channel_geometric (r q : ℝ) (hr0 : 0 ≤ r) (hr1 : r < 1)
146 (hq0 : 0 ≤ q) (hq1 : q < 1) :
147 InfiniteFidelity.stateFidelity (InfiniteDiagonalFidelity.geometricState numberBasis q hq0 hq1)
148 ((channel r hr0 hr1).toPositiveTracePreservingMap.mapState
149 (InfiniteDiagonalFidelity.geometricState numberBasis q hq0 hq1)) =
150 Thermal.fidelity q (r + (1 - r) * q) := by
151 rw [channel_geometricState, InfiniteDiagonalFidelity.stateFidelity_geometric]
152
153theorem gainNoise_nonneg {g : ℝ} (hg : 1 < g) : 0 ≤ 1 - 1 / g :=
154 sub_nonneg.mpr ((div_le_one (by linarith : 0 < g)).mpr hg.le)
155
156theorem gainNoise_lt_one {g : ℝ} (hg : 1 < g) : 1 - 1 / g < 1 := by
157 have h : 0 < 1 / g := one_div_pos.mpr (by linarith)
158 linarith
159
160/-- Gain-parametrized actual channel output, with the manuscript's amplified
161thermal parameter and no asserted input/output identification. -/
162theorem channel_thermalOperator_gain (g q : ℝ) (hg : 1 < g)
163 (hq0 : 0 ≤ q) (hq1 : q < 1) :
164 (channel (1 - 1 / g) (gainNoise_nonneg hg) (gainNoise_lt_one hg)).toLinearMap
165 (vectorMixture numberBasis (Thermal.geometric q)) =
166 vectorMixture numberBasis (Thermal.geometric (Thermal.amplified g q)) := by
167 rw [channel_thermalOperator _ _ _ _ hq0 hq1]
168 congr 2
169 unfold Thermal.amplified
170 ring
171
172/-- The actual physical amplifier realizes the exact one-mode factor. -/
173theorem stateFidelity_channel_gain (g q : ℝ) (hg : 1 < g)
174 (hq0 : 0 ≤ q) (hq1 : q < 1) :
175 InfiniteFidelity.stateFidelity (InfiniteDiagonalFidelity.geometricState numberBasis q hq0 hq1)
176 ((channel (1 - 1 / g) (gainNoise_nonneg hg) (gainNoise_lt_one hg)).toPositiveTracePreservingMap.mapState
177 (InfiniteDiagonalFidelity.geometricState numberBasis q hq0 hq1)) =
178 Thermal.modeFactor g q := by
179 rw [stateFidelity_channel_geometric]
180 have h : (1 - 1 / g) + (1 - (1 - 1 / g)) * q = Thermal.amplified g q := by
181 unfold Thermal.amplified
182 ring
183 rw [h, Thermal.fidelity_amplified_eq_modeFactor hg hq0 hq1]
184
185end Cloning.BosonicAmplifier