Exact Lean source
TensorWeylMatrixPowers
formalization/Cloning/TensorWeylMatrixPowers.lean
Source hash: 5d0f8fb35f59f112f1a8180235c004b2925aab21ffa9205bcb52a2b204146d39
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.TensorLocalUnitary.inner_numberBasis_numberVectordefinition Cloning.TensorLocalUnitary.cutoffNumberOccupationtheorem Cloning.TensorLocalUnitary.cutoffNumberOccupation_injectivetheorem Cloning.TensorLocalUnitary.wordFockOccupation_cutoffWorddefinition Cloning.TensorLocalUnitary.numberCoordinatestheorem Cloning.TensorLocalUnitary.numberCoefficients_eq_cutoff_sumtheorem Cloning.TensorLocalUnitary.numberVector_eq_cutoff_sumtheorem Cloning.TensorLocalUnitary.numberGenerator_cutoff_singletheorem Cloning.TensorLocalUnitary.numberCoordinates_generatortheorem Cloning.TensorLocalUnitary.numberCoordinates_iteratetheorem Cloning.TensorLocalUnitary.numberCoordinates_wordtheorem Cloning.TensorLocalUnitary.oscillatorCutoffMatrix_power_eq_numberPower1import Cloning.TensorWeylMatrixSupport
2
3/-! Finite cutoff oscillator matrix powers are the literal Fock ladder powers. -/
4noncomputable section
5open scoped BigOperators InnerProductSpace
6namespace Cloning.TensorLocalUnitary
7open Cloning.TensorLie Cloning.TensorLAN Cloning.MultimodeCoherent
8open Cloning.MultimodeCoherentGaussianMixture
9set_option maxHeartbeats 1000000
10set_option backward.isDefEq.respectTransparency false
11variable {d : ℕ}
12
13theorem inner_numberBasis_numberVector {D : ℕ} (k : Fin D → ℕ) (c : NumberCoefficients D) :
14 ⟪numberBasis D k, numberVector c⟫_ℂ = c k := by
15 simp only [numberVector, Finsupp.linearCombination_apply, Finsupp.sum,
16 inner_sum, inner_smul_right, orthonormal_iff_ite.mp (numberBasis D).orthonormal]
17 by_cases hk : k ∈ c.support
18 · simp [hk]
19 · have hz := Finsupp.notMem_support_iff.mp hk
20 simp [hk, hz]
21
22def cutoffNumberOccupation (d Q : ℕ) (i : CutoffIndex d Q) :=
23 fockOccupation d (cutoffOccupation d Q i).val
24
25theorem cutoffNumberOccupation_injective (d Q : ℕ) :
26 Function.Injective (cutoffNumberOccupation d Q) := by
27 intro i j h
28 apply (cutoffOccupation d Q).injective
29 exact Subtype.ext (fockOccupation_injective d h)
30
31theorem wordFockOccupation_cutoffWord (Q : ℕ) (i : CutoffIndex d Q) :
32 wordFockOccupation (cutoffWord d Q i) = cutoffNumberOccupation d Q i := by
33 unfold wordFockOccupation cutoffWord cutoffNumberOccupation
34 congr 1
35 funext a
36 exact canonicalWord_count (cutoffOccupation d Q i).val a
37
38def numberCoordinates (Q : ℕ) (c : NumberCoefficients (Fintype.card (PositiveRoot d))) :
39 CutoffIndex d Q → ℂ := fun i => c (cutoffNumberOccupation d Q i)
40
41theorem numberCoefficients_eq_cutoff_sum (Q : ℕ)
42 (c : NumberCoefficients (Fintype.card (PositiveRoot d))) (hc : c ∈ numberHeightCutoff d Q) :
43 c = ∑ i : CutoffIndex d Q,
44 numberCoordinates Q c i • Finsupp.single (cutoffNumberOccupation d Q i) 1 := by
45 classical
46 ext k
47 simp only [Finsupp.finset_sum_apply, Finsupp.smul_apply, Finsupp.single_apply, smul_eq_mul,
48 numberCoordinates]
49 by_cases hk : rootNumberHeight d k ≤ Q
50 · obtain ⟨i, hi⟩ := exists_cutoffNumberOccupation k hk
51 change cutoffNumberOccupation d Q i = k at hi
52 subst k
53 simp only [mul_ite, mul_one, mul_zero]
54 have he (j : CutoffIndex d Q) :
55 cutoffNumberOccupation d Q j = cutoffNumberOccupation d Q i ↔ j = i :=
56 (cutoffNumberOccupation_injective d Q).eq_iff
57 simp only [he, Finset.sum_ite_eq', Finset.mem_univ, ↓reduceIte]
58 · have hz : c k = 0 := (Finsupp.mem_supported' ℂ c).mp hc k hk
59 rw [hz]
60 symm
61 apply Finset.sum_eq_zero
62 intro i _
63 have hi : cutoffNumberOccupation d Q i ≠ k := by
64 intro hi
65 apply hk
66 rw [← hi]
67 exact cutoffNumberOccupation_height Q i
68 simp [hi]
69
70theorem numberVector_eq_cutoff_sum (Q : ℕ)
71 (c : NumberCoefficients (Fintype.card (PositiveRoot d))) (hc : c ∈ numberHeightCutoff d Q) :
72 numberVector c = ∑ i : CutoffIndex d Q, numberCoordinates Q c i • cutoffNumberFrame d Q i := by
73 have h := congrArg numberVector (numberCoefficients_eq_cutoff_sum Q c hc)
74 simpa only [map_sum, map_smul, numberVector_single, one_smul,
75 cutoffNumberFrame, cutoffNumberOccupation] using h
76
77theorem numberGenerator_cutoff_single (Q : ℕ) (z : PositiveRoot d → ℂ)
78 (i j : CutoffIndex d Q) :
79 numberGenerator (rootFockAmplitude z) (Finsupp.single (cutoffNumberOccupation d Q j) 1)
80 (cutoffNumberOccupation d Q i) = oscillatorCutoffMatrix Q z i j := by
81 rw [← inner_numberBasis_numberVector, numberGenerator_single, one_smul,
82 numberVector_ladderCoefficients, oscillatorCutoffMatrix_eq_numberLadder,
83 wordFockOccupation_cutoffWord]
84 rfl
85
86theorem numberCoordinates_generator (Q : ℕ) (z : PositiveRoot d → ℂ)
87 (c : NumberCoefficients (Fintype.card (PositiveRoot d))) (hc : c ∈ numberHeightCutoff d Q) :
88 numberCoordinates Q (numberGenerator (rootFockAmplitude z) c) =
89 (oscillatorCutoffMatrix Q z).mulVec (numberCoordinates Q c) := by
90 have h := congrArg (numberGenerator (rootFockAmplitude z))
91 (numberCoefficients_eq_cutoff_sum Q c hc)
92 funext i
93 change numberGenerator (rootFockAmplitude z) c (cutoffNumberOccupation d Q i) = _
94 rw [h]
95 simp only [map_sum, map_smul, Finsupp.finset_sum_apply, Finsupp.smul_apply, smul_eq_mul,
96 numberGenerator_cutoff_single, Matrix.mulVec, dotProduct]
97 apply Finset.sum_congr rfl
98 intro j _
99 exact mul_comm _ _
100
101theorem numberCoordinates_iterate (Q R : ℕ) (z : PositiveRoot d → ℂ)
102 (c : NumberCoefficients (Fintype.card (PositiveRoot d))) (hc : c ∈ numberHeightCutoff d R) :
103 ∀ m : ℕ, R+m*d ≤ Q →
104 numberCoordinates Q (numberIterate (rootFockAmplitude z) c m) =
105 ((oscillatorCutoffMatrix Q z)^m).mulVec (numberCoordinates Q c) := by
106 intro m
107 induction m with
108 | zero => intro _; simp [numberIterate_zero]
109 | succ m ih =>
110 intro hQ
111 have hm : R+m*d ≤ Q := (Nat.add_le_add_left
112 (Nat.mul_le_mul_right d (Nat.le_succ m)) R).trans hQ
113 rw [numberIterate_succ, numberCoordinates_generator Q z _
114 (numberHeightCutoff_mono hm (numberIterate_mem z c hc m)), ih hm,
115 pow_succ', Matrix.mulVec_mulVec]
116
117theorem numberCoordinates_word (Q : ℕ) (w : List (PositiveRoot d)) :
118 numberCoordinates Q (Finsupp.single (wordFockOccupation w) 1) = limitingWordCoordinates Q w := by
119 funext i
120 simp only [numberCoordinates, Finsupp.single_apply, limitingWordCoordinates,
121 ← wordFockOccupation_cutoffWord, wordFockOccupation_eq_iff]
122 by_cases h : w.Perm (cutoffWord d Q i)
123 · simp [h, h.symm]
124 · have hh : ¬ (cutoffWord d Q i).Perm w := fun h' => h h'.symm
125 simp [h, hh]
126
127/-- All intermediate ladder states fit into the chosen height cutoff. Hence
128the finite oscillator matrix power equals the actual infinite-Fock vector. -/
129theorem oscillatorCutoffMatrix_power_eq_numberPower
130 (Q m : ℕ) (z : PositiveRoot d → ℂ) (w : List (PositiveRoot d))
131 (hQ : loweringHeight w+m*d ≤ Q) :
132 (∑ i : CutoffIndex d Q,
133 (((oscillatorCutoffMatrix Q z)^m).mulVec (limitingWordCoordinates Q w) i) •
134 cutoffNumberFrame d Q i) =
135 numberPower (rootFockAmplitude z) (wordFockOccupation w) m := by
136 rw [← numberCoordinates_word, ← numberCoordinates_iterate Q (loweringHeight w) z _
137 (wordCoefficients_mem w) m hQ]
138 exact (numberVector_eq_cutoff_sum Q _
139 (numberHeightCutoff_mono hQ (numberIterate_mem z _ (wordCoefficients_mem w) m))).symm
140
141end Cloning.TensorLocalUnitary