Exact Lean source
SymmetricOccupation
formalization/Cloning/SymmetricOccupation.lean
Source hash: a26ae4c71a41820a8f0f5fd8c6e26eb0aea93c08147268fe07da5b2d925c0168
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
definition
Cloning.SymmetricOccupation.TensorSpacedefinition Cloning.SymmetricOccupation.OccupationSpacedefinition Cloning.SymmetricOccupation.weighttheorem Cloning.SymmetricOccupation.weight_nonnegtheorem Cloning.SymmetricOccupation.weight_hasSumdefinition Cloning.SymmetricOccupation.columntheorem Cloning.SymmetricOccupation.column_applytheorem Cloning.SymmetricOccupation.column_normtheorem Cloning.SymmetricOccupation.column_orthonormaldefinition Cloning.SymmetricOccupation.isometrytheorem Cloning.SymmetricOccupation.isometry_singletheorem Cloning.SymmetricOccupation.isometry_applydefinition Cloning.SymmetricOccupation.finiteProductVectordefinition Cloning.SymmetricOccupation.productTensortheorem Cloning.SymmetricOccupation.productTensor_normtheorem Cloning.SymmetricOccupation.productTensor_applydefinition Cloning.SymmetricOccupation.restricttheorem Cloning.SymmetricOccupation.restrict_applytheorem Cloning.SymmetricOccupation.restrict_norm_letheorem Cloning.SymmetricOccupation.restrict_subtheorem Cloning.SymmetricOccupation.restrict_productVectordefinition Cloning.SymmetricOccupation.embeddedCoherenttheorem Cloning.SymmetricOccupation.embeddedCoherent_norm_letheorem Cloning.SymmetricOccupation.embeddedCoherent_sub_productTensor_letheorem Cloning.SymmetricOccupation.embeddedCoherent_sub_productTensor_tendstotheorem Cloning.SymmetricOccupation.coherent_product_traceNorm_tendstodefinition Cloning.SymmetricOccupation.tailMasstheorem Cloning.SymmetricOccupation.tailMass_nonnegtheorem Cloning.SymmetricOccupation.tailMass_ledefinition Cloning.SymmetricOccupation.occupationCoherentOutputtheorem Cloning.SymmetricOccupation.occupationCoherentOutput_tracetheorem Cloning.SymmetricOccupation.occupationCoherentOutput_nonnegtheorem Cloning.SymmetricOccupation.occupation_coherent_product_traceNorm_tendstotheorem Cloning.SymmetricOccupation.productTensor_apply_eq_tensorPowerdefinition Cloning.SymmetricOccupation.occupationCoherentState1import Cloning.InfinitePureStateContinuity
2import Mathlib.Data.Finset.Powerset
3
4/-!
5# Symmetric occupation vectors in the computational tensor basis
6
7A subset of `Fin L` labels the tensor-basis vector whose excited slots are
8exactly that subset. The `j`-excitation symmetric vector is the normalized
9uniform sum of those basis vectors. Its normalization and orthogonality are
10proved from the cardinality of `powersetCard`, rather than supplied as data.
11-/
12noncomputable section
13set_option synthInstance.maxHeartbeats 200000
14set_option maxHeartbeats 1000000
15open scoped BigOperators InnerProductSpace Topology
16open Filter
17
18namespace Cloning.SymmetricOccupation
19
20abbrev TensorSpace (L : ℕ) := lp (fun _ : Finset (Fin L) => ℂ) 2
21abbrev OccupationSpace (L : ℕ) := lp (fun _ : Fin (L + 1) => ℂ) 2
22
23private theorem count_card (L j : ℕ) :
24 (Finset.univ.filter (fun S : Finset (Fin L) => S.card = j)).card = L.choose j := by
25 have h : Finset.univ.filter (fun S : Finset (Fin L) => S.card = j) =
26 Finset.powersetCard j (Finset.univ : Finset (Fin L)) := by
27 ext S
28 simp
29 rw [h, Finset.card_powersetCard]
30 simp
31
32/-- Squared coefficients of the symmetric occupation vector. -/
33def weight (L : ℕ) (j : Fin (L + 1)) (S : Finset (Fin L)) : ℝ :=
34 if S.card = j.val then (L.choose j.val : ℝ)⁻¹ else 0
35
36theorem weight_nonneg (L : ℕ) (j : Fin (L + 1)) (S : Finset (Fin L)) :
37 0 ≤ weight L j S := by
38 unfold weight
39 split_ifs <;> positivity
40
41theorem weight_hasSum (L : ℕ) (j : Fin (L + 1)) : HasSum (weight L j) 1 := by
42 classical
43 have hj : j.val ≤ L := by omega
44 have hc : (L.choose j.val : ℝ) ≠ 0 := by
45 exact_mod_cast (Nat.choose_pos hj).ne'
46 have hs : ∑ S : Finset (Fin L), weight L j S = 1 := by
47 simp only [weight, ← Finset.sum_filter]
48 rw [Finset.sum_const, nsmul_eq_mul, count_card, mul_inv_cancel₀ hc]
49 exact hs ▸ hasSum_fintype (weight L j)
50
51/-- Normalized symmetric sum of the computational tensors with `j` excitations. -/
52def column (L : ℕ) (j : Fin (L + 1)) : TensorSpace L :=
53 Cloning.CoherentCoefficients.amplitudeVector (weight L j)
54 (weight_nonneg L j) (weight_hasSum L j)
55
56theorem column_apply (L : ℕ) (j : Fin (L + 1)) (S : Finset (Fin L)) :
57 column L j S = if S.card = j.val then
58 ((Real.sqrt (L.choose j.val : ℝ))⁻¹ : ℂ) else 0 := by
59 simp only [column, Cloning.CoherentCoefficients.amplitudeVector_apply, weight]
60 split_ifs <;> simp [Real.sqrt_inv]
61
62theorem column_norm (L : ℕ) (j : Fin (L + 1)) : ‖column L j‖ = 1 :=
63 Cloning.CoherentCoefficients.amplitudeVector_norm _ _ _
64
65theorem column_orthonormal (L : ℕ) : Orthonormal ℂ (column L) := by
66 refine ⟨column_norm L, ?_⟩
67 intro i j hij
68 rw [lp.inner_eq_tsum]
69 have hzero : ∀ S : Finset (Fin L), ⟪column L i S, column L j S⟫_ℂ = 0 := by
70 intro S
71 rw [column_apply, column_apply]
72 split_ifs with hi hj
73 · exact False.elim (hij (Fin.ext (hi.symm.trans hj)))
74 all_goals simp
75 simp only [hzero, tsum_zero]
76
77/-- The occupation isometry into the actual finite computational tensor space. -/
78def isometry (L : ℕ) : OccupationSpace L →ₗᵢ[ℂ] TensorSpace L :=
79 (column_orthonormal L).orthogonalFamily.linearIsometry
80
81theorem isometry_single (L : ℕ) (j : Fin (L + 1)) :
82 isometry L (lp.single 2 j 1) = column L j := by
83 rw [isometry, OrthogonalFamily.linearIsometry_apply_single]
84 exact one_smul ℂ _
85
86/-- Each computational tensor has exactly the occupation coefficient divided
87by the square root of its multiplicity. -/
88theorem isometry_apply (L : ℕ) (v : OccupationSpace L) (S : Finset (Fin L)) :
89 isometry L v S = v ⟨S.card, by have := Finset.card_le_univ S; simp at this; omega⟩ /
90 (Real.sqrt (L.choose S.card : ℝ) : ℂ) := by
91 classical
92 let j : Fin (L + 1) := ⟨S.card, by have := Finset.card_le_univ S; simp at this; omega⟩
93 have hsum : isometry L v = ∑ i : Fin (L + 1), v i • column L i := by
94 rw [isometry, OrthogonalFamily.linearIsometry_apply, tsum_fintype]
95 rfl
96 rw [hsum]
97 simp only [lp.coeFn_sum, Finset.sum_apply, lp.coeFn_smul, Pi.smul_apply, smul_eq_mul]
98 rw [Finset.sum_eq_single j]
99 · simp [column_apply, j, div_eq_mul_inv]
100 · intro i hi hij
101 have hne : S.card ≠ i.val := by
102 intro h
103 apply hij
104 apply Fin.ext
105 exact h.symm
106 simp [column_apply, hne]
107 · simp
108
109
110open Cloning.PoissonApproximation Cloning.CoherentCoefficients
111
112private theorem finite_binomial_hasSum (t : ℝ) (ht : 0 ≤ t) (L : ℕ) :
113 HasSum (fun j : Fin (L + 1) => binomialWeight t L j) 1 := by
114 have hs : ∑ j : Fin (L + 1), binomialWeight t L j = 1 := by
115 rw [Fin.sum_univ_eq_sum_range]
116 exact binomialWeight_sum ht L
117 exact hs ▸ hasSum_fintype _
118
119/-- The product-state coefficients in the finite occupation basis. -/
120def finiteProductVector (t : ℝ) (ht : 0 ≤ t) (L : ℕ) : OccupationSpace L :=
121 amplitudeVector (fun j => binomialWeight t L j)
122 (fun j => binomialWeight_nonneg ht L j) (finite_binomial_hasSum t ht L)
123
124/-- The symmetric product vector in the finite computational tensor space. -/
125def productTensor (t : ℝ) (ht : 0 ≤ t) (L : ℕ) : TensorSpace L :=
126 isometry L (finiteProductVector t ht L)
127
128theorem productTensor_norm (t : ℝ) (ht : 0 ≤ t) (L : ℕ) :
129 ‖productTensor t ht L‖ = 1 := by
130 rw [productTensor, LinearIsometry.norm_map]
131 exact amplitudeVector_norm _ _ _
132
133/-- The occupation construction has exactly the coefficients of the normalized
134product `( |0⟩ + sqrt(t/L) |1⟩ )^⊗L`. -/
135theorem productTensor_apply (t : ℝ) (ht : 0 ≤ t) (L : ℕ) (S : Finset (Fin L)) :
136 productTensor t ht L S =
137 ((Real.sqrt (t / L) ^ S.card / Real.sqrt (1 + t / L) ^ L : ℝ) : ℂ) := by
138 have hj : S.card ≤ L := by simpa using Finset.card_le_univ S
139 have hc : Real.sqrt (L.choose S.card : ℝ) ≠ 0 :=
140 (Real.sqrt_pos.mpr (by exact_mod_cast Nat.choose_pos hj)).ne'
141 have hx : 0 ≤ t / L := by positivity
142 have hy : 0 ≤ 1 + t / L := by positivity
143 rw [productTensor, isometry_apply]
144 change (Real.sqrt (binomialWeight t L S.card) : ℂ) /
145 (Real.sqrt (L.choose S.card : ℝ) : ℂ) = _
146 rw [← Complex.ofReal_div]
147 congr 1
148 rw [binomialWeight, Real.sqrt_div (by positivity), Real.sqrt_mul (by positivity),
149 Cloning.Thermal.sqrt_nat_pow hx, Cloning.Thermal.sqrt_nat_pow hy]
150 field_simp
151
152
153/-- Restriction to the occupations retained by the finite tensor space. -/
154def restrict (L : ℕ) (v : lp (fun _ : ℕ => ℂ) 2) : OccupationSpace L :=
155 ⟨fun j => v j, memℓp_gen (by simp only [ENNReal.toReal_ofNat]; exact (hasSum_fintype _).summable)⟩
156
157@[simp] theorem restrict_apply (L : ℕ) (v : lp (fun _ : ℕ => ℂ) 2)
158 (j : Fin (L + 1)) : restrict L v j = v j := rfl
159
160theorem restrict_norm_le (L : ℕ) (v : lp (fun _ : ℕ => ℂ) 2) :
161 ‖restrict L v‖ ≤ ‖v‖ := by
162 have hs : HasSum (fun j : ℕ => ‖v j‖ ^ 2) (‖v‖ ^ 2) := by
163 simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using
164 lp.hasSum_norm (show 0 < (2 : ENNReal).toReal by norm_num) v
165 have heq : ‖restrict L v‖ ^ 2 = ∑ j : Fin (L + 1), ‖v j‖ ^ 2 := by
166 simpa only [ENNReal.toReal_ofNat, Real.rpow_two, tsum_fintype, restrict_apply] using
167 lp.norm_rpow_eq_tsum (p := 2) (by norm_num) (restrict L v)
168 have hle := hs.summable.sum_le_tsum (Finset.range (L + 1)) (fun j hj => sq_nonneg ‖v j‖)
169 rw [hs.tsum_eq, ← Fin.sum_univ_eq_sum_range, ← heq] at hle
170 nlinarith [norm_nonneg (restrict L v), norm_nonneg v]
171
172theorem restrict_sub (L : ℕ) (v w : lp (fun _ : ℕ => ℂ) 2) :
173 restrict L (v - w) = restrict L v - restrict L w := by ext j; rfl
174
175theorem restrict_productVector (t : ℝ) (ht : 0 ≤ t) (L : ℕ) :
176 restrict L (productVector t ht L) = finiteProductVector t ht L := by
177 ext j
178 rfl
179
180/-- The truncated coherent vector embedded into the finite symmetric space. -/
181def embeddedCoherent (t : ℝ) (ht : 0 ≤ t) (L : ℕ) : TensorSpace L :=
182 isometry L (restrict L (coherentVector t ht))
183
184theorem embeddedCoherent_norm_le (t : ℝ) (ht : 0 ≤ t) (L : ℕ) :
185 ‖embeddedCoherent t ht L‖ ≤ 1 := by
186 rw [embeddedCoherent, LinearIsometry.norm_map]
187 simpa only [coherentVector_norm] using restrict_norm_le L (coherentVector t ht)
188
189/-- A dimension-independent estimate transfers the coefficient limit to the
190actual finite tensor vectors. Both vectors now live in the physical output space. -/
191theorem embeddedCoherent_sub_productTensor_le (t : ℝ) (ht : 0 ≤ t) (L : ℕ) :
192 ‖embeddedCoherent t ht L - productTensor t ht L‖ ≤
193 ‖coherentVector t ht - productVector t ht L‖ := by
194 rw [embeddedCoherent, productTensor, ← restrict_productVector, ← map_sub,
195 LinearIsometry.norm_map, ← restrict_sub]
196 exact restrict_norm_le _ _
197
198theorem embeddedCoherent_sub_productTensor_tendsto (t : ℝ) (ht : 0 ≤ t) :
199 Tendsto (fun L => ‖embeddedCoherent t ht L - productTensor t ht L‖) atTop (𝓝 0) := by
200 apply squeeze_zero (fun L => norm_nonneg _) (embeddedCoherent_sub_productTensor_le t ht)
201 simpa using ((productVector_tendsto_coherentVector t ht).const_sub (coherentVector t ht)).norm
202
203/-- The physical finite tensor projector and truncated coherent projector
204converge in genuine trace norm. -/
205theorem coherent_product_traceNorm_tendsto (t : ℝ) (ht : 0 ≤ t) :
206 Tendsto (fun L => ‖Cloning.InfiniteTraceClass.vectorProjector (embeddedCoherent t ht L) -
207 Cloning.InfiniteTraceClass.vectorProjector (productTensor t ht L)‖) atTop (𝓝 0) := by
208 apply squeeze_zero (fun L => norm_nonneg _)
209 (fun L => (Cloning.InfiniteTraceClass.norm_vectorProjector_sub_le _ _).trans
210 (mul_le_mul_of_nonneg_right
211 (show ‖embeddedCoherent t ht L‖ + ‖productTensor t ht L‖ ≤ (2 : ℝ) by
212 linarith [embeddedCoherent_norm_le t ht L, productTensor_norm t ht L])
213 (norm_nonneg _)))
214 simpa using (embeddedCoherent_sub_productTensor_tendsto t ht).const_mul 2
215
216
217open Cloning.InfiniteTraceClass
218open scoped ComplexOrder
219
220/-- Lost Fock-tail mass of the truncated coherent vector. -/
221def tailMass (t : ℝ) (ht : 0 ≤ t) (L : ℕ) : ℝ :=
222 1 - ‖embeddedCoherent t ht L‖ ^ 2
223
224theorem tailMass_nonneg (t : ℝ) (ht : 0 ≤ t) (L : ℕ) : 0 ≤ tailMass t ht L := by
225 have h := embeddedCoherent_norm_le t ht L
226 have h0 := norm_nonneg (embeddedCoherent t ht L)
227 unfold tailMass
228 nlinarith
229
230theorem tailMass_le (t : ℝ) (ht : 0 ≤ t) (L : ℕ) :
231 tailMass t ht L ≤ 2 * ‖embeddedCoherent t ht L - productTensor t ht L‖ := by
232 have h := norm_sub_norm_le (productTensor t ht L) (embeddedCoherent t ht L)
233 rw [productTensor_norm, norm_sub_rev] at h
234 unfold tailMass
235 nlinarith [sq_nonneg (1 - ‖embeddedCoherent t ht L‖)]
236
237/-- The output of occupation compression with the discarded mass put in vacuum.
238This is the trace-preserving output, including the tail term in the manuscript. -/
239def occupationCoherentOutput (t : ℝ) (ht : 0 ≤ t) (L : ℕ) : TraceClass (TensorSpace L) :=
240 vectorProjector (embeddedCoherent t ht L) +
241 (tailMass t ht L : ℂ) • vectorProjector (column L 0)
242
243theorem occupationCoherentOutput_trace (t : ℝ) (ht : 0 ≤ t) (L : ℕ) :
244 traceCLM (occupationCoherentOutput t ht L) = 1 := by
245 simp only [occupationCoherentOutput, map_add, map_smul, traceCLM_vectorProjector,
246 column_norm, one_pow, Complex.ofReal_one, smul_eq_mul, mul_one]
247 simp [tailMass]
248
249theorem occupationCoherentOutput_nonneg (t : ℝ) (ht : 0 ≤ t) (L : ℕ) :
250 0 ≤ (occupationCoherentOutput t ht L).1 := by
251 change 0 ≤ InnerProductSpace.rankOne ℂ (embeddedCoherent t ht L) (embeddedCoherent t ht L) +
252 (tailMass t ht L : ℂ) • InnerProductSpace.rankOne ℂ (column L 0) (column L 0)
253 apply add_nonneg
254 · exact (InnerProductSpace.rankOne ℂ _ _).nonneg_iff_isPositive.mpr
255 (InnerProductSpace.isPositive_rankOne_self _)
256 · have hcast : (tailMass t ht L : ℂ) • InnerProductSpace.rankOne ℂ (column L 0) (column L 0) =
257 tailMass t ht L • InnerProductSpace.rankOne ℂ (column L 0) (column L 0) := by
258 ext y
259 simp only [ContinuousLinearMap.smul_apply]
260 rfl
261 rw [hcast]
262 exact smul_nonneg (tailMass_nonneg t ht L)
263 ((InnerProductSpace.rankOne ℂ _ _).nonneg_iff_isPositive.mpr
264 (InnerProductSpace.isPositive_rankOne_self _))
265
266/-- The full occupation output, with its vacuum tail replacement, converges to
267the normalized physical product projector in trace norm. -/
268theorem occupation_coherent_product_traceNorm_tendsto (t : ℝ) (ht : 0 ≤ t) :
269 Tendsto (fun L => ‖occupationCoherentOutput t ht L -
270 vectorProjector (productTensor t ht L)‖) atTop (𝓝 0) := by
271 have hbound : ∀ L, ‖occupationCoherentOutput t ht L -
272 vectorProjector (productTensor t ht L)‖ ≤
273 4 * ‖embeddedCoherent t ht L - productTensor t ht L‖ := by
274 intro L
275 rw [occupationCoherentOutput, add_sub_right_comm]
276 have h1 := norm_vectorProjector_sub_le (embeddedCoherent t ht L) (productTensor t ht L)
277 have h2 := norm_add_le
278 (vectorProjector (embeddedCoherent t ht L) - vectorProjector (productTensor t ht L))
279 ((tailMass t ht L : ℂ) • vectorProjector (column L 0))
280 rw [norm_weighted_projector _ (column_norm L 0), abs_of_nonneg (tailMass_nonneg t ht L)] at h2
281 have h3 : ‖embeddedCoherent t ht L‖ + ‖productTensor t ht L‖ ≤ 2 := by
282 linarith [embeddedCoherent_norm_le t ht L, productTensor_norm t ht L]
283 have h4 := mul_le_mul_of_nonneg_right h3
284 (norm_nonneg (embeddedCoherent t ht L - productTensor t ht L))
285 linarith [tailMass_le t ht L]
286 apply squeeze_zero (fun L => norm_nonneg _) hbound
287 simpa using (embeddedCoherent_sub_productTensor_tendsto t ht).const_mul 4
288
289
290/-- Literal tensor-product factorization in the computational basis: every
291slot has the same normalized one-particle amplitudes. -/
292theorem productTensor_apply_eq_tensorPower (t : ℝ) (ht : 0 ≤ t) (L : ℕ)
293 (S : Finset (Fin L)) :
294 productTensor t ht L S = ∏ i : Fin L,
295 (((if i ∈ S then Real.sqrt (t / L) else 1) / Real.sqrt (1 + t / L) : ℝ) : ℂ) := by
296 rw [productTensor_apply, ← Complex.ofReal_prod]
297 congr 1
298 rw [Finset.prod_div_distrib]
299 have hprod : (∏ i : Fin L, if i ∈ S then Real.sqrt (t / L) else 1) =
300 Real.sqrt (t / L) ^ S.card := by
301 rw [Finset.prod_ite]
302 simp [div_pow]
303 rw [hprod]
304 simp
305
306/-- The explicit occupation output is an analytic density operator. -/
307def occupationCoherentState (t : ℝ) (ht : 0 ≤ t) (L : ℕ) : DensityState (TensorSpace L) where
308 op := (occupationCoherentOutput t ht L).1
309 traceClass := (occupationCoherentOutput t ht L).2
310 positive := occupationCoherentOutput_nonneg t ht L
311 trace_one := occupationCoherentOutput_trace t ht L
312
313end Cloning.SymmetricOccupation