Exact Lean source
GeneralCoherentModel
formalization/Cloning/GeneralCoherentModel.lean
Source hash: deab82afa6fe614b637079ddaf1345ec791785322fda4f1c4472297b1840ec75
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.GeneralCoherent.energytheorem Cloning.GeneralCoherent.energy_nonnegdefinition Cloning.GeneralCoherent.oneParticletheorem Cloning.GeneralCoherent.oneParticle_zerotheorem Cloning.GeneralCoherent.oneParticle_succtheorem Cloning.GeneralCoherent.oneParticle_norm_sq_sumdefinition Cloning.GeneralCoherent.productTensortheorem Cloning.GeneralCoherent.productTensor_applytheorem Cloning.GeneralCoherent.productTensor_normtheorem Cloning.GeneralCoherent.productTensor_symmetricdefinition Cloning.GeneralCoherent.finiteProductVectortheorem Cloning.GeneralCoherent.isometry_finiteProductVectortheorem Cloning.GeneralCoherent.finiteProductVector_norm1import Cloning.GeneralSymmetricDimension
2import Cloning.MultimodeCoherent
3import Cloning.IsometricRecovery
4import Mathlib.Algebra.BigOperators.Ring.Finset
5
6/-! Literal normalized local pure states in any finite one-particle dimension,
7their tensor powers, and occupation coordinates in the physical symmetric
8subspace. -/
9noncomputable section
10open scoped BigOperators InnerProductSpace Topology
11namespace Cloning.GeneralCoherent
12open GeneralSymmetricOccupation
13set_option maxHeartbeats 1000000
14set_option synthInstance.maxHeartbeats 200000
15set_option backward.isDefEq.respectTransparency false
16
17def energy {s : ℕ} (z : Fin s → ℂ) : ℝ := ∑ i, ‖z i‖ ^ 2
18
19theorem energy_nonneg {s : ℕ} (z : Fin s → ℂ) : 0 ≤ energy z :=
20 Finset.sum_nonneg (fun _ _ => sq_nonneg _)
21
22def oneParticle {s : ℕ} (z : Fin s → ℂ) (L : ℕ) : Fin (s + 1) → ℂ :=
23 fun a => (Fin.cons (1 : ℂ) (fun i : Fin s => z i / (Real.sqrt (L : ℝ) : ℂ)) : Fin (s + 1) → ℂ) a /
24 (Real.sqrt (1 + energy z / L) : ℂ)
25
26@[simp] theorem oneParticle_zero {s : ℕ} (z : Fin s → ℂ) (L : ℕ) :
27 oneParticle z L 0 = 1 / (Real.sqrt (1 + energy z / L) : ℂ) := rfl
28@[simp] theorem oneParticle_succ {s : ℕ} (z : Fin s → ℂ) (L : ℕ) (i : Fin s) :
29 oneParticle z L i.succ = (z i / (Real.sqrt (L : ℝ) : ℂ)) /
30 (Real.sqrt (1 + energy z / L) : ℂ) := rfl
31
32theorem oneParticle_norm_sq_sum {s : ℕ} (z : Fin s → ℂ) (L : ℕ) :
33 ∑ a, ‖oneParticle z L a‖ ^ 2 = 1 := by
34 have he := energy_nonneg z
35 have hden : 0 < 1 + energy z / L := by positivity
36 simp only [oneParticle, norm_div, div_pow, Complex.norm_real, Real.norm_eq_abs,
37 abs_of_nonneg (Real.sqrt_nonneg _), Real.sq_sqrt hden.le]
38 rw [← Finset.sum_div, Fin.sum_univ_succ]
39 simp only [Fin.cons_zero, Fin.cons_succ, norm_one, one_pow, norm_div, div_pow,
40 Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg (Real.sqrt_nonneg _),
41 Real.sq_sqrt (Nat.cast_nonneg L), ← Finset.sum_div]
42 change (1 + energy z / L) / (1 + energy z / L) = 1
43 exact div_self hden.ne'
44
45/-- The actual normalized tensor power in the computational word basis. -/
46def productTensor {s : ℕ} (z : Fin s → ℂ) (L : ℕ) : TensorSpace L (s + 1) :=
47 ⟨fun w => ∏ i, oneParticle z L (w i),
48 memℓp_gen (by simp only [ENNReal.toReal_ofNat]; exact (hasSum_fintype _).summable)⟩
49
50@[simp] theorem productTensor_apply {s : ℕ} (z : Fin s → ℂ) (L : ℕ)
51 (w : Word L (s + 1)) : productTensor z L w = ∏ i, oneParticle z L (w i) := rfl
52
53theorem productTensor_norm {s : ℕ} (z : Fin s → ℂ) (L : ℕ) :
54 ‖productTensor z L‖ = 1 := by
55 have hs : ‖productTensor z L‖ ^ (2 : ℕ) = 1 := by
56 calc
57 _ = ∑ w : Word L (s + 1), ‖∏ i, oneParticle z L (w i)‖ ^ (2 : ℕ) := by
58 simpa only [ENNReal.toReal_ofNat, Real.rpow_two, tsum_fintype, productTensor_apply] using
59 lp.norm_rpow_eq_tsum (by norm_num : 0 < (2 : ENNReal).toReal) (productTensor z L)
60 _ = ∑ w : Word L (s + 1), ∏ i, ‖oneParticle z L (w i)‖ ^ (2 : ℕ) := by
61 simp only [norm_prod, Finset.prod_pow]
62 _ = ∏ i : Fin L, ∑ a : Fin (s + 1), ‖oneParticle z L a‖ ^ (2 : ℕ) := by
63 exact (Fintype.prod_sum (fun (_ : Fin L) (a : Fin (s + 1)) => ‖oneParticle z L a‖ ^ (2 : ℕ))).symm
64 _ = 1 := by simp only [oneParticle_norm_sq_sum, Finset.prod_const_one]
65 nlinarith [norm_nonneg (productTensor z L)]
66
67theorem productTensor_symmetric {s : ℕ} (z : Fin s → ℂ) (L : ℕ) :
68 productTensor z L ∈ symmetricSubspace L (s + 1) := by
69 intro w σ
70 simp only [productTensor_apply, Function.comp_apply]
71 exact Equiv.prod_comp σ (fun i => oneParticle z L (w i))
72
73/-- Exact finite occupation coordinates of the normalized tensor power. -/
74def finiteProductVector {s : ℕ} (z : Fin s → ℂ) (L : ℕ) :
75 OccupationSpace L (s + 1) :=
76 (isometry L (s + 1)).toContinuousLinearMap.adjoint (productTensor z L)
77
78theorem isometry_finiteProductVector {s : ℕ} (z : Fin s → ℂ) (L : ℕ) :
79 isometry L (s + 1) (finiteProductVector z L) = productTensor z L := by
80 have hr : productTensor z L ∈ (isometry L (s + 1)).toLinearMap.range := by
81 rw [isometry_range]
82 exact productTensor_symmetric z L
83 obtain ⟨v, hv⟩ := hr
84 change isometry L (s + 1)
85 ((isometry L (s + 1)).toContinuousLinearMap.adjoint (productTensor z L)) = _
86 rw [← hv]
87 change isometry L (s + 1) ((isometry L (s + 1)).toContinuousLinearMap.adjoint
88 (isometry L (s + 1) v)) = isometry L (s + 1) v
89 rw [InfiniteTraceClass.isometry_adjoint_apply_self]
90
91theorem finiteProductVector_norm {s : ℕ} (z : Fin s → ℂ) (L : ℕ) :
92 ‖finiteProductVector z L‖ = 1 := by
93 rw [← (isometry L (s + 1)).norm_map, isometry_finiteProductVector, productTensor_norm]
94
95end Cloning.GeneralCoherent