Exact Lean source
TensorLANEmbeddingFockReindex
formalization/Cloning/TensorLANEmbeddingFockReindex.lean
Source hash: 188fde077c287b536ec7d5ee4ccdcfe64a34583d413a0178cf5d78af9694c48d
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.TensorLAN.modeOccupationEquivdefinition Cloning.TensorLAN.reindexedNumberBasisdefinition Cloning.TensorLAN.fockReindextheorem Cloning.TensorLAN.fockReindex_applytheorem Cloning.TensorLAN.fockReindex_numberBasistheorem Cloning.TensorLAN.fockReindex_coherentVectordefinition Cloning.TensorLAN.rootFockReindex1import Cloning.TensorLANEmbeddingPhysical
2import Cloning.WeylMultimodeDisplacement
3import Cloning.TensorGibbsThermalIdentification
4
5/-! Exact changes of the arbitrary finite mode enumeration. -/
6noncomputable section
7open scoped BigOperators Topology Classical InnerProductSpace
8namespace Cloning.TensorLAN
9open Cloning.MultimodeCoherent Cloning.MultimodeCoherentGaussianMixture
10open Cloning.InfiniteTraceClass
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1200000
13variable {a b : ℕ}
14
15def modeOccupationEquiv (e : Fin a ≃ Fin b) : (Fin b → ℕ) ≃ (Fin a → ℕ) where
16 toFun k i := k (e i)
17 invFun k j := k (e.symm j)
18 left_inv k := by funext j; simp
19 right_inv k := by funext i; simp
20
21def reindexedNumberBasis (e : Fin a ≃ Fin b) : HilbertBasis (Fin b → ℕ) ℂ (Fock a) :=
22 HilbertBasis.mk ((numberBasis a).orthonormal.comp (modeOccupationEquiv e)
23 (modeOccupationEquiv e).injective) (by
24 simp only [Function.comp_def]
25 rw [show Set.range (fun k => numberBasis a (modeOccupationEquiv e k)) =
26 Set.range (numberBasis a) by
27 exact (modeOccupationEquiv e).surjective.range_comp (numberBasis a)]
28 rw [(numberBasis a).dense_span])
29
30/-- The actual occupation-space unitary relabeling all modes. -/
31def fockReindex (e : Fin a ≃ Fin b) : Fock a ≃ₗᵢ[ℂ] Fock b :=
32 (reindexedNumberBasis e).repr
33
34@[simp] theorem fockReindex_apply (e : Fin a ≃ Fin b) (x : Fock a) (k : Fin b → ℕ) :
35 fockReindex e x k = x (fun i => k (e i)) := by
36 rw [fockReindex, HilbertBasis.repr_apply_apply]
37 change ⟪reindexedNumberBasis e k, x⟫_ℂ = _
38 rw [reindexedNumberBasis, HilbertBasis.coe_mk]
39 simp only [Function.comp_apply]
40 rw [inner_numberBasis]
41 rfl
42
43@[simp] theorem fockReindex_numberBasis (e : Fin a ≃ Fin b) (k : Fin a → ℕ) :
44 fockReindex e (numberBasis a k) = numberBasis b (fun j => k (e.symm j)) := by
45 apply lp.ext
46 funext j
47 rw [fockReindex_apply, numberBasis_eq_single, numberBasis_eq_single]
48 simp only [lp.single_apply, Pi.single_apply]
49 by_cases h : (fun i => j (e i)) = k
50 · have hj : j = (fun i => k (e.symm i)) := by
51 funext i
52 simpa only [Equiv.apply_symm_apply] using congrFun h (e.symm i)
53 simp [h, hj]
54 · have hj : j ≠ (fun i => k (e.symm i)) := by
55 intro he
56 apply h
57 funext i
58 simpa only [Equiv.symm_apply_apply] using congrFun he (e i)
59 simp [h, hj, Ne.symm h, Ne.symm hj]
60
61
62/-- Coherent amplitudes are relabeled by exactly the same mode permutation. -/
63theorem fockReindex_coherentVector (e : Fin a ≃ Fin b) (z : Fin a → ℂ) :
64 fockReindex e (coherentVector z) = coherentVector (fun j => z (e.symm j)) := by
65 apply lp.ext
66 funext k
67 simp only [fockReindex_apply, coherentVector_apply]
68 have h := e.prod_comp (fun j => ComplexCoherent.coherentVector (z (e.symm j)) (k j))
69 simpa only [Equiv.symm_apply_apply] using h
70
71/-- The canonical root enumeration is connected to any requested physical
72orbital enumeration by this literal unitary. -/
73def rootFockReindex {d s : ℕ} (e : Fin s ≃ TensorLie.PositiveRoot d) :
74 RootFock d ≃ₗᵢ[ℂ] Fock s :=
75 fockReindex ((Fintype.equivFin (TensorLie.PositiveRoot d)).symm.trans e.symm)
76
77end Cloning.TensorLAN