Offline · exact source
Exact Lean source

TensorWeylMatrixSupport

formalization/Cloning/TensorWeylMatrixSupport.lean

Source hash: 465e630869ef39fd428321634002bc07667e9bb489f656d5baae3a63e5aa55c5

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
1import Cloning.TensorWeylMatrixEntries
2import Mathlib.LinearAlgebra.Finsupp.Supported
3 
4/-! Exact finite root-height support of literal oscillator powers. -/
5noncomputable section
6open scoped BigOperators InnerProductSpace
7namespace Cloning.TensorLocalUnitary
8open Cloning.TensorLie Cloning.TensorLAN Cloning.MultimodeCoherent
9open Cloning.MultimodeCoherentGaussianMixture
10set_option maxHeartbeats 1000000
11set_option backward.isDefEq.respectTransparency false
12variable {d : ℕ}
13 
14def rootNumberOccupation (d : ℕ) (k : Fin (Fintype.card (PositiveRoot d)) → ℕ) :
15    PositiveRoot d → ℕ := fun a => k ((Fintype.equivFin (PositiveRoot d)) a)
16 
17@[simp] theorem fockOccupation_rootNumberOccupation
18    (k : Fin (Fintype.card (PositiveRoot d)) → ℕ) :
19    fockOccupation d (rootNumberOccupation d k) = k := by
20  funext i
21  simp [fockOccupation, rootNumberOccupation]
22 
23@[simp] theorem rootNumberOccupation_fockOccupation (k : PositiveRoot d → ℕ) :
24    rootNumberOccupation d (fockOccupation d k) = k := by
25  funext a
26  simp [fockOccupation, rootNumberOccupation]
27 
28def rootNumberHeight (d : ℕ) (k : Fin (Fintype.card (PositiveRoot d)) → ℕ) : ℕ :=
29  occupationHeight (rootNumberOccupation d k)
30 
31theorem rootNumberHeight_word (w : List (PositiveRoot d)) :
32    rootNumberHeight d (wordFockOccupation w) = loweringHeight w := by
33  rw [rootNumberHeight, wordFockOccupation, rootNumberOccupation_fockOccupation]
34  exact (loweringHeight_eq_sum_count w).symm
35 
36theorem rootNumberHeight_update_le (k : Fin (Fintype.card (PositiveRoot d)) → ℕ)
37    (i : Fin (Fintype.card (PositiveRoot d))) (l : ℕ) (hl : l ≤ k i+1) :
38    rootNumberHeight d (Function.update k i l) ≤ rootNumberHeight d k + d := by
39  let a := (Fintype.equivFin (PositiveRoot d)).symm i
40  have hroot : a.height ≤ d := by
41    have hd := a.val.2.isLt
42    dsimp [PositiveRoot.height]
43    omega
44  unfold rootNumberHeight occupationHeight rootNumberOccupation
45  calc
46    _ ≤ ∑ b : PositiveRoot d,
47        (b.height * k ((Fintype.equivFin (PositiveRoot d)) b) +
48          if b = a then a.height else 0) := by
49      apply Finset.sum_le_sum
50      intro b _
51      by_cases hba : b = a
52      · subst b
53        simpa [a, Function.update, Nat.mul_add] using Nat.mul_le_mul_left a.height hl
54      · have hi : (Fintype.equivFin (PositiveRoot d)) b ≠ i := by
55          intro h
56          apply hba
57          exact (Equiv.apply_eq_iff_eq_symm_apply _).mp h
58        simp [Function.update_of_ne hi, hba]
59    _ = (∑ b : PositiveRoot d, b.height * k ((Fintype.equivFin (PositiveRoot d)) b)) + a.height := by
60      simp [Finset.sum_add_distrib]
61    _ ≤ _ := Nat.add_le_add_left hroot _
62 
63def numberHeightCutoff (d R : ℕ) : Submodule ℂ (NumberCoefficients (Fintype.card (PositiveRoot d))) :=
64  Finsupp.supported ℂ ℂ {k | rootNumberHeight d k ≤ R}
65 
66theorem numberHeightCutoff_mono {R Q : ℕ} (h : R ≤ Q) :
67    numberHeightCutoff d R ≤ numberHeightCutoff d Q := by
68  intro c hc k hk
69  exact (hc hk).trans h
70 
71theorem numberLadderCoefficients_mem (z : PositiveRoot d → ℂ)
72    (k : Fin (Fintype.card (PositiveRoot d)) → ℕ) {R : ℕ}
73    (hk : rootNumberHeight d k ≤ R) :
74    numberLadderCoefficients (rootFockAmplitude z) k ∈ numberHeightCutoff d (R+d) := by
75  apply Submodule.sum_mem
76  intro i _
77  apply Submodule.sub_mem
78  · exact Finsupp.single_mem_supported ℂ _
79      ((rootNumberHeight_update_le k i (k i+1) le_rfl).trans (Nat.add_le_add_right hk d))
80  · exact Finsupp.single_mem_supported ℂ _
81      ((rootNumberHeight_update_le k i (k i-1) (by omega)).trans (Nat.add_le_add_right hk d))
82 
83theorem numberGenerator_mem (z : PositiveRoot d → ℂ) {R : ℕ}
84    (c : NumberCoefficients (Fintype.card (PositiveRoot d)))
85    (hc : c ∈ numberHeightCutoff d R) :
86    numberGenerator (rootFockAmplitude z) c ∈ numberHeightCutoff d (R+d) := by
87  rw [numberGenerator, Finsupp.linearCombination_apply, Finsupp.sum]
88  apply Submodule.sum_mem
89  intro k hk
90  exact Submodule.smul_mem _ _ (numberLadderCoefficients_mem z k (hc hk))
91 
92theorem numberIterate_mem (z : PositiveRoot d → ℂ) {R : ℕ}
93    (c : NumberCoefficients (Fintype.card (PositiveRoot d)))
94    (hc : c ∈ numberHeightCutoff d R) (m : ℕ) :
95    numberIterate (rootFockAmplitude z) c m ∈ numberHeightCutoff d (R+m*d) := by
96  induction m with
97  | zero => simpa using hc
98  | succ m ih =>
99    simpa only [numberIterate_succ, Nat.add_mul, Nat.one_mul, Nat.add_assoc] using
100      numberGenerator_mem z _ ih
101 
102theorem wordCoefficients_mem (w : List (PositiveRoot d)) :
103    Finsupp.single (wordFockOccupation w) (1 : ℂ) ∈
104      numberHeightCutoff d (loweringHeight w) := by
105  exact Finsupp.single_mem_supported ℂ _ (rootNumberHeight_word w).le
106 
107theorem cutoffNumberOccupation_height (Q : ℕ) (i : CutoffIndex d Q) :
108    rootNumberHeight d (fockOccupation d (cutoffOccupation d Q i).val) ≤ Q := by
109  rw [rootNumberHeight, rootNumberOccupation_fockOccupation]
110  exact (cutoffOccupation d Q i).property
111 
112theorem exists_cutoffNumberOccupation {Q : ℕ}
113    (k : Fin (Fintype.card (PositiveRoot d)) → ℕ) (hk : rootNumberHeight d k ≤ Q) :
114    ∃ i : CutoffIndex d Q, fockOccupation d (cutoffOccupation d Q i).val = k := by
115  refine ⟨(cutoffOccupation d Q).symm ⟨rootNumberOccupation d k, hk⟩, ?_⟩
116  simp only [Equiv.apply_symm_apply, fockOccupation_rootNumberOccupation]
117 
118end Cloning.TensorLocalUnitary