Exact Lean source
TensorWeylMatrixEntries
formalization/Cloning/TensorWeylMatrixEntries.lean
Source hash: ec266ab06a3c6404b35a7304f2986c1d1c4ef6730cfa594c082d2fc9851454b7
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.MultimodeCoherent.numberLadder_inner_skewtheorem Cloning.MultimodeCoherent.number_lowering_entrytheorem Cloning.MultimodeCoherent.inner_numberBasis_numberLadderdefinition Cloning.TensorLocalUnitary.wordFockOccupationdefinition Cloning.TensorLocalUnitary.wordNumberVectordefinition Cloning.TensorLocalUnitary.rootFockAmplitudetheorem Cloning.TensorLocalUnitary.wordFockOccupation_eq_ifftheorem Cloning.TensorLocalUnitary.wordFockOccupation_constheorem Cloning.TensorLocalUnitary.inner_wordNumberVector_laddertheorem Cloning.TensorLocalUnitary.cutoffNumberFrame_eq_wordtheorem Cloning.TensorLocalUnitary.oscillatorCutoffMatrix_eq_numberLadder1import Cloning.WeylNumberTaylorLimit
2import Cloning.TensorLocalUnitaryPolynomial
3import Cloning.TensorLANEmbeddingPhysical
4import Mathlib.Analysis.InnerProductSpace.Calculus
5
6/-! Exact identification of the finite oscillator entries with actual Fock ladders. -/
7noncomputable section
8open scoped BigOperators InnerProductSpace Topology
9namespace Cloning.MultimodeCoherent
10open Cloning.MultimodeCoherentGaussianMixture
11set_option maxHeartbeats 1000000
12set_option backward.isDefEq.respectTransparency false
13variable {d : ℕ}
14
15theorem numberLadder_inner_skew (a : Fin d → ℂ) (k l : Fin d → ℕ) :
16 ⟪numberLadder a k, numberBasis d l⟫_ℂ =
17 -⟪numberBasis d k, numberLadder a l⟫_ℂ := by
18 have h := (displacement_number_hasDerivAt a k 0).inner ℂ
19 (displacement_number_hasDerivAt a l 0)
20 have he (t : ℝ) :
21 ⟪displacement (t • a) (numberBasis d k), displacement (t • a) (numberBasis d l)⟫_ℂ =
22 ⟪numberBasis d k, numberBasis d l⟫_ℂ :=
23 (weylUnitary (t • a)).inner_map_map _ _
24 simp only [he, zero_smul, displacement_zero, ContinuousLinearMap.id_apply] at h
25 have hz := h.unique (hasDerivAt_const 0 ⟪numberBasis d k, numberBasis d l⟫_ℂ)
26 exact eq_neg_of_add_eq_zero_left (by simpa only [add_comm] using hz)
27
28theorem number_lowering_entry (k l : Fin d → ℕ) (i : Fin d) :
29 (Real.sqrt (k i : ℝ) : ℂ) * (if l = Function.update k i (k i-1) then 1 else 0) =
30 (Real.sqrt (l i+1 : ℝ) : ℂ) * (if k = Function.update l i (l i+1) then 1 else 0) := by
31 by_cases h : k = Function.update l i (l i+1)
32 · have hi : k i = l i+1 := by rw [h, Function.update_self]
33 have hl : l = Function.update k i (k i-1) := by
34 funext j
35 by_cases hji : j = i
36 · subst j; simp only [Function.update_self, hi, Nat.add_sub_cancel]
37 · rw [Function.update_of_ne hji, h, Function.update_of_ne hji]
38 rw [if_pos h, if_pos hl, mul_one, mul_one, hi]
39 push_cast
40 rfl
41 · by_cases hk : k i = 0
42 · simp [h, hk]
43 · have hl : l ≠ Function.update k i (k i-1) := by
44 intro hl
45 apply h
46 funext j
47 by_cases hji : j = i
48 · subst j
49 have hli := congrFun hl i
50 simp only [Function.update_self] at hli ⊢
51 omega
52 · rw [Function.update_of_ne hji, hl, Function.update_of_ne hji]
53 simp [h, hl]
54
55theorem inner_numberBasis_numberLadder (a : Fin d → ℂ) (l k : Fin d → ℕ) :
56 ⟪numberBasis d l, numberLadder a k⟫_ℂ =
57 ∑ i, (a i * ((Real.sqrt (k i+1 : ℝ) : ℂ) *
58 (if l = Function.update k i (k i+1) then 1 else 0)) -
59 starRingEnd ℂ (a i) * ((Real.sqrt (l i+1 : ℝ) : ℂ) *
60 (if k = Function.update l i (l i+1) then 1 else 0))) := by
61 simp only [numberLadder, inner_sum, inner_sub_right, inner_smul_right,
62 orthonormal_iff_ite.mp (numberBasis d).orthonormal, mul_assoc]
63 simp_rw [number_lowering_entry]
64
65end Cloning.MultimodeCoherent
66
67namespace Cloning.TensorLocalUnitary
68open Cloning.TensorLie Cloning.TensorLAN Cloning.MultimodeCoherent
69open Cloning.MultimodeCoherentGaussianMixture
70set_option maxHeartbeats 1000000
71set_option backward.isDefEq.respectTransparency false
72variable {d : ℕ}
73
74def wordFockOccupation (w : List (PositiveRoot d)) : Fin (Fintype.card (PositiveRoot d)) → ℕ :=
75 fockOccupation d (fun a => w.count a)
76
77def wordNumberVector (w : List (PositiveRoot d)) : RootFock d :=
78 numberBasis _ (wordFockOccupation w)
79
80def rootFockAmplitude (z : PositiveRoot d → ℂ) : Fin (Fintype.card (PositiveRoot d)) → ℂ :=
81 fun i => z ((Fintype.equivFin (PositiveRoot d)).symm i)
82
83theorem wordFockOccupation_eq_iff (u v : List (PositiveRoot d)) :
84 wordFockOccupation u = wordFockOccupation v ↔ u.Perm v := by
85 rw [wordFockOccupation, wordFockOccupation]
86 constructor
87 · intro h
88 exact List.perm_iff_count.mpr (congrFun (fockOccupation_injective d h))
89 · intro h
90 congr 1
91 funext a
92 exact h.count_eq a
93
94theorem wordFockOccupation_cons (a : PositiveRoot d) (w : List (PositiveRoot d)) :
95 wordFockOccupation (a::w) = Function.update (wordFockOccupation w)
96 ((Fintype.equivFin (PositiveRoot d)) a) (w.count a+1) := by
97 funext i
98 by_cases hi : i = (Fintype.equivFin (PositiveRoot d)) a
99 · subst i
100 simp [wordFockOccupation, fockOccupation, List.count_cons_self]
101 · have ha : (Fintype.equivFin (PositiveRoot d)).symm i ≠ a := by
102 intro h
103 apply hi
104 simpa using congrArg (Fintype.equivFin (PositiveRoot d)) h
105 simp [wordFockOccupation, fockOccupation, Function.update_of_ne hi,
106 List.count_cons, ha, Ne.symm ha]
107
108theorem inner_wordNumberVector_ladder (z : PositiveRoot d → ℂ)
109 (u v : List (PositiveRoot d)) :
110 ⟪wordNumberVector u, numberLadder (rootFockAmplitude z) (wordFockOccupation v)⟫_ℂ =
111 oscillatorEntry z u v := by
112 rw [wordNumberVector, inner_numberBasis_numberLadder]
113 rw [← Equiv.sum_comp (Fintype.equivFin (PositiveRoot d))]
114 unfold oscillatorEntry
115 apply Finset.sum_congr rfl
116 intro a _
117 simp only [rootFockAmplitude, wordFockOccupation, fockOccupation, Equiv.symm_apply_apply]
118 have hu : (wordFockOccupation u = Function.update (wordFockOccupation v)
119 ((Fintype.equivFin (PositiveRoot d)) a) (v.count a+1)) ↔ u.Perm (a::v) := by
120 rw [← wordFockOccupation_cons, wordFockOccupation_eq_iff]
121 have hv : (wordFockOccupation v = Function.update (wordFockOccupation u)
122 ((Fintype.equivFin (PositiveRoot d)) a) (u.count a+1)) ↔ v.Perm (a::u) := by
123 rw [← wordFockOccupation_cons, wordFockOccupation_eq_iff]
124 simp only [wordFockOccupation, fockOccupation] at hu hv
125 by_cases hpu : u.Perm (a::v) <;> by_cases hpv : v.Perm (a::u) <;>
126 simp [creationEntry, annihilationEntry, hu, hv, hpu, hpv, Complex.star_def]
127
128theorem cutoffNumberFrame_eq_word (R : ℕ) (i : CutoffIndex d R) :
129 cutoffNumberFrame d R i = wordNumberVector (cutoffWord d R i) := by
130 unfold cutoffNumberFrame wordNumberVector wordFockOccupation cutoffWord
131 congr 2
132 funext a
133 exact (canonicalWord_count (cutoffOccupation d R i).val a).symm
134
135theorem oscillatorCutoffMatrix_eq_numberLadder (Q : ℕ) (z : PositiveRoot d → ℂ)
136 (i j : CutoffIndex d Q) :
137 oscillatorCutoffMatrix Q z i j =
138 ⟪cutoffNumberFrame d Q i,
139 numberLadder (rootFockAmplitude z) (wordFockOccupation (cutoffWord d Q j))⟫_ℂ := by
140 rw [cutoffNumberFrame_eq_word, inner_wordNumberVector_ladder]
141 rfl
142
143end Cloning.TensorLocalUnitary