Stafford38/Weyl/GradedAlgebra.lean

This project (Stafford38) · 1029fdb382eee06e7b59bcf32801f40931e2079a

1 module
2 public import Stafford38.Weyl.AssociatedGraded
3 public import Mathlib.Algebra.DirectSum.Decomposition
4 public import Mathlib.Algebra.Ring.TransferInstance
5 public import Mathlib.Algebra.Algebra.TransferInstance
6 
7 @[expose] public section
8 
9 /-!
10 # The associated graded algebra of the presented Weyl algebra
11 
12 The degree-wise filtered quotients assemble into an external direct sum. Its
13 canonical symbol map is an algebra equivalence with the commutative symbol
14 polynomial ring. For the Bernstein and differential-order filtrations, the
15 transported multiplication is proved to be the multiplication induced by Weyl
16 products of filtered representatives.
17 -/
18 
19 namespace Stafford38.WeylAssociatedGraded
20 
21 open Stafford38.Characteristic
22 open Stafford38.WeylIteratedEquivalence
23 open Stafford38.WeylFiltration
24 open Stafford38.WeylLeadingSymbol
25 
26 noncomputable section
27 
28 universe u
29 
30 variable (k : Type u) [Field k]
31 
32 -- The quotient instances used to define the graded pieces are local to
33 -- `AssociatedGraded`; restate them here for the external direct sum.
34 local instance (priority := 10000) presentedAssociatedGradedPieceAddCommGroup'
35     {n : ℕ} (w : PhaseVar n → ℕ) (N : ℕ) :
36     AddCommGroup (presentedAssociatedGradedPiece k w N) :=
37   @Submodule.Quotient.addCommGroup k (presentedWeightPiece k w N) _
38     (presentedWeightPiece k w N).addCommGroup
39     (presentedWeightPiece k w N).module
40     (LinearMap.ker (principalComponentOnPiece k w N))
41 
42 local instance (priority := 10000) presentedAssociatedGradedPieceModule'
43     {n : ℕ} (w : PhaseVar n → ℕ) (N : ℕ) :
44     Module k (presentedAssociatedGradedPiece k w N) :=
45   @Submodule.Quotient.module k (presentedWeightPiece k w N) _
46     (presentedWeightPiece k w N).addCommGroup
47     (presentedWeightPiece k w N).module
48     (LinearMap.ker (principalComponentOnPiece k w N))
49 
50 /-- The external direct sum of all filtered quotient pieces. This is a new
51 type so its algebra structure can be transported without changing the
52 canonical module structures on the individual quotient pieces. -/
53 def PresentedAssociatedGraded {n : ℕ} (w : PhaseVar n → ℕ) :=
54   DirectSum ℕ (fun N => presentedAssociatedGradedPiece k w N)
55 
56 /-- The direct sum of the piecewise principal-component equivalences, followed
57 by weighted-homogeneous recomposition. -/
58 def presentedAssociatedGradedRawLinearEquiv {n : ℕ} (w : PhaseVar n → ℕ) :
59     DirectSum ℕ (fun N => presentedAssociatedGradedPiece k w N) ≃ₗ[k]
60       SymbolRing k n := by
61   letI := MvPolynomial.weightedDecomposition k w
62   exact (DFinsupp.mapRange.linearEquiv fun N =>
63       presentedAssociatedGradedPieceEquiv k w N).trans
64     (DirectSum.decomposeLinearEquiv
65       (MvPolynomial.weightedHomogeneousSubmodule k w)).symm
66 
67 def presentedAssociatedGradedRawEquiv {n : ℕ} (w : PhaseVar n → ℕ) :
68     PresentedAssociatedGraded k w ≃ SymbolRing k n :=
69   (presentedAssociatedGradedRawLinearEquiv k w).toEquiv
70 
71 /-- The commutative ring structure transported through the global symbol
72 equivalence. The representative multiplication theorems below identify it
73 with the multiplication induced by the two Weyl filtrations used downstream. -/
74 noncomputable instance presentedAssociatedGradedCommRing {n : ℕ}
75     (w : PhaseVar n → ℕ) : CommRing (PresentedAssociatedGraded k w) :=
76   Equiv.commRing (presentedAssociatedGradedRawEquiv k w)
77 
78 noncomputable instance presentedAssociatedGradedAlgebra {n : ℕ}
79     (w : PhaseVar n → ℕ) : Algebra k (PresentedAssociatedGraded k w) :=
80   Equiv.algebra k (presentedAssociatedGradedRawEquiv k w)
81 
82 /-- The associated graded algebra is the commutative symbol polynomial
83 algebra. -/
84 def presentedAssociatedGradedAlgEquiv {n : ℕ} (w : PhaseVar n → ℕ) :
85     PresentedAssociatedGraded k w ≃ₐ[k] SymbolRing k n :=
86   Equiv.algEquiv k (presentedAssociatedGradedRawEquiv k w)
87 
88 /-- Insert one quotient piece into the external direct sum. -/
89 def presentedAssociatedGradedOf {n : ℕ} (w : PhaseVar n → ℕ) (N : ℕ)
90     (z : presentedAssociatedGradedPiece k w N) :
91     PresentedAssociatedGraded k w :=
92   DirectSum.of (fun N => presentedAssociatedGradedPiece k w N) N z
93 
94 @[simp] theorem presentedAssociatedGradedAlgEquiv_of {n : ℕ}
95     (w : PhaseVar n → ℕ) (N : ℕ)
96     (z : presentedAssociatedGradedPiece k w N) :
97     presentedAssociatedGradedAlgEquiv k w
98         (presentedAssociatedGradedOf k w N z) =
99       (presentedAssociatedGradedPieceEquiv k w N z : SymbolRing k n) := by
100   letI := MvPolynomial.weightedDecomposition k w
101   change presentedAssociatedGradedRawLinearEquiv k w
102       (DirectSum.of (fun N => presentedAssociatedGradedPiece k w N) N z) = _
103   rw [presentedAssociatedGradedRawLinearEquiv, LinearEquiv.trans_apply]
104   have hmap :
105       (DFinsupp.mapRange.linearEquiv fun N =>
106           presentedAssociatedGradedPieceEquiv k w N)
107           (DirectSum.of (fun N => presentedAssociatedGradedPiece k w N) N z) =
108         DirectSum.of (fun N =>
109           MvPolynomial.weightedHomogeneousSubmodule k w N) N
110           (presentedAssociatedGradedPieceEquiv k w N z) := by
111     rw [DFinsupp.mapRange.linearEquiv_apply]
112     exact DFinsupp.mapRange_single
113   calc
114     _ = (DirectSum.decomposeLinearEquiv
115         (MvPolynomial.weightedHomogeneousSubmodule k w)).symm
116           (DirectSum.of (fun N =>
117             MvPolynomial.weightedHomogeneousSubmodule k w N) N
118             (presentedAssociatedGradedPieceEquiv k w N z)) :=
119       congrArg _ hmap
120     _ = _ := by
121       rw [DirectSum.decomposeLinearEquiv_symm_apply,
122         DirectSum.decompose_symm_of]
123 
124 /-- Homogeneous insertion is additive even though the ring structure on the
125 new external-direct-sum type is transported from the symbol ring. -/
126 theorem presentedAssociatedGradedOf_add {n N : ℕ}
127     (w : PhaseVar n → ℕ)
128     (x y : presentedAssociatedGradedPiece k w N) :
129     presentedAssociatedGradedOf k w N (x + y) =
130       presentedAssociatedGradedOf k w N x +
131         presentedAssociatedGradedOf k w N y := by
132   apply (presentedAssociatedGradedAlgEquiv k w).injective
133   rw [map_add, presentedAssociatedGradedAlgEquiv_of,
134     presentedAssociatedGradedAlgEquiv_of,
135     presentedAssociatedGradedAlgEquiv_of]
136   exact congrArg Subtype.val
137     ((presentedAssociatedGradedPieceEquiv k w N).map_add x y)
138 
139 /-- Insert the class of a filtered representative into the external direct
140 sum. -/
141 def presentedAssociatedGradedMk {n N : ℕ} (w : PhaseVar n → ℕ)
142     (z : presentedWeightPiece k w N) : PresentedAssociatedGraded k w :=
143   presentedAssociatedGradedOf k w N (Submodule.Quotient.mk z)
144 
145 @[simp] theorem presentedAssociatedGradedAlgEquiv_mk {n N : ℕ}
146     (w : PhaseVar n → ℕ) (z : presentedWeightPiece k w N) :
147     presentedAssociatedGradedAlgEquiv k w
148         (presentedAssociatedGradedMk k w z) =
149       presentedPrincipalComponent k w N z := by
150   rw [presentedAssociatedGradedMk, presentedAssociatedGradedAlgEquiv_of,
151     presentedAssociatedGradedPieceEquiv_mk]
152   rfl
153 
154 def bernsteinMulRepresentative {n N M : ℕ}
155     (x : bernsteinPiece k n N) (y : bernsteinPiece k n M) :
156     bernsteinPiece k n (N + M) :=
157   ⟨(x : PresentedWeyl k n) * y,
158     mul_mem_bernsteinPiece k x.property y.property⟩
159 
160 def orderMulRepresentative {n N M : ℕ}
161     (x : orderPiece k n N) (y : orderPiece k n M) :
162     orderPiece k n (N + M) :=
163   ⟨(x : PresentedWeyl k n) * y,
164     mul_mem_orderPiece k x.property y.property⟩
165 
166 /-- On Bernstein-homogeneous classes, external graded multiplication is
167 represented by multiplication in the Weyl algebra. -/
168 theorem presentedAssociatedGradedMk_mul_bernstein {n N M : ℕ}
169     (x : bernsteinPiece k n N) (y : bernsteinPiece k n M) :
170     presentedAssociatedGradedMk k bernsteinWeight x *
171         presentedAssociatedGradedMk k bernsteinWeight y =
172       presentedAssociatedGradedMk k bernsteinWeight
173         (bernsteinMulRepresentative k x y) := by
174   apply (presentedAssociatedGradedAlgEquiv k bernsteinWeight).injective
175   rw [map_mul,
176     presentedAssociatedGradedAlgEquiv_mk (n := n) k bernsteinWeight x,
177     presentedAssociatedGradedAlgEquiv_mk (n := n) k bernsteinWeight y,
178     presentedAssociatedGradedAlgEquiv_mk (n := n) k bernsteinWeight
179       (bernsteinMulRepresentative k x y)]
180   simpa [bernsteinMulRepresentative] using
181     (presentedPrincipalComponent_mul_bernstein k x.property y.property).symm
182 
183 /-- On order-homogeneous classes, external graded multiplication is
184 represented by multiplication in the Weyl algebra. -/
185 theorem presentedAssociatedGradedMk_mul_order {n N M : ℕ}
186     (x : orderPiece k n N) (y : orderPiece k n M) :
187     presentedAssociatedGradedMk k orderWeight x *
188         presentedAssociatedGradedMk k orderWeight y =
189       presentedAssociatedGradedMk k orderWeight
190         (orderMulRepresentative k x y) := by
191   apply (presentedAssociatedGradedAlgEquiv k orderWeight).injective
192   rw [map_mul,
193     presentedAssociatedGradedAlgEquiv_mk (n := n) k orderWeight x,
194     presentedAssociatedGradedAlgEquiv_mk (n := n) k orderWeight y,
195     presentedAssociatedGradedAlgEquiv_mk (n := n) k orderWeight
196       (orderMulRepresentative k x y)]
197   simpa [orderMulRepresentative] using
198     (presentedPrincipalComponent_mul_order k x.property y.property).symm
199 
200 /- Exact statement pins for the public API and focused checker. -/
201 example {n : ℕ} (w : PhaseVar n → ℕ) :
202     PresentedAssociatedGraded k w ≃ₐ[k] SymbolRing k n :=
203   presentedAssociatedGradedAlgEquiv k w
204 
205 example {n N : ℕ} (w : PhaseVar n → ℕ)
206     (z : presentedWeightPiece k w N) :
207     presentedAssociatedGradedAlgEquiv k w
208         (presentedAssociatedGradedMk k w z) =
209       presentedPrincipalComponent k w N z :=
210   presentedAssociatedGradedAlgEquiv_mk k w z
211 
212 example {n N M : ℕ} (x : orderPiece k n N) (y : orderPiece k n M) :
213     presentedAssociatedGradedMk k orderWeight x *
214         presentedAssociatedGradedMk k orderWeight y =
215       presentedAssociatedGradedMk k orderWeight
216         ⟨(x : PresentedWeyl k n) * (y : PresentedWeyl k n),
217           mul_mem_orderPiece k x.property y.property⟩ :=
218   presentedAssociatedGradedMk_mul_order k x y
219 
220 #print axioms PresentedAssociatedGraded
221 #print axioms presentedAssociatedGradedRawLinearEquiv
222 #print axioms presentedAssociatedGradedCommRing
223 #print axioms presentedAssociatedGradedAlgebra
224 #print axioms presentedAssociatedGradedAlgEquiv
225 #print axioms presentedAssociatedGradedAlgEquiv_of
226 #print axioms presentedAssociatedGradedOf_add
227 #print axioms presentedAssociatedGradedAlgEquiv_mk
228 #print axioms presentedAssociatedGradedMk_mul_bernstein
229 #print axioms presentedAssociatedGradedMk_mul_order
230 
231 end
232 
233 end Stafford38.WeylAssociatedGraded
234