Stafford38/Weyl/AssociatedGraded.lean

This project (Stafford38) · 1029fdb382eee06e7b59bcf32801f40931e2079a

1 module
2 public import Stafford38.MathlibCompat.MvPolynomialCoeff
3 public import Stafford38.Weyl.LeadingSymbol
4 public import Mathlib.LinearAlgebra.Isomorphisms
5 
6 @[expose] public section
7 
8 /-!
9 # Associated graded pieces of the PBW filtrations
10 
11 The strict lower piece in degree `N` is the kernel of degree-`N` principal
12 component projection. Restricting that projection to the filtered piece is
13 surjective onto the weighted-homogeneous symbol submodule, so each filtered
14 quotient is canonically linearly equivalent to its symbol component. The
15 external graded multiplication is a downstream construction.
16 -/
17 
18 namespace Stafford38.WeylAssociatedGraded
19 
20 open Stafford38.Characteristic
21 open Stafford38.WeylIteratedEquivalence
22 open Stafford38.WeylPBW
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 part of a filtration piece strictly below degree `N`; degree zero has
33 zero lower piece. -/
34 def presentedStrictLowerPiece {n : ℕ} (w : PhaseVar n → ℕ) :
35     (N : ℕ) → Submodule k (PresentedWeyl k n)
36   | 0 => ⊥
37   | N + 1 => presentedWeightPiece k w N
38 
39 theorem presentedStrictLowerPiece_le {n N : ℕ}
40     (w : PhaseVar n → ℕ) :
41     presentedStrictLowerPiece k w N ≤ presentedWeightPiece k w N := by
42   cases N with
43   | zero => exact bot_le
44   | succ N => exact presentedWeightPiece_mono k w (Nat.le_succ N)
45 
46 theorem presentedPrincipalComponent_eq_zero_iff_mem_strictLower
47     {n N : ℕ} (w : PhaseVar n → ℕ) (z : PresentedWeyl k n)
48     (hz : z ∈ presentedWeightPiece k w N) :
49     presentedPrincipalComponent k w N z = 0 ↔
50       z ∈ presentedStrictLowerPiece k w N := by
51   constructor
52   · intro hp
53     cases N with
54     | zero =>
55         rw [presentedStrictLowerPiece, Submodule.mem_bot]
56         apply (presentedNormalFormLinearEquiv k n).injective
57         ext m
58         change AddMonoidAlgebra.coeff
59           ((presentedNormalFormLinearEquiv k n) z) m =
60             AddMonoidAlgebra.coeff ((presentedNormalFormLinearEquiv k n) 0) m
61         have hle := (mem_presentedWeightPiece k w 0 z).mp hz
62         change ∀ m, AddMonoidAlgebra.coeff
63           ((presentedNormalFormLinearEquiv k n) z) m ≠ 0 → monomialWeight w m ≤ 0 at hle
64         have hpc := congrArg (fun f : SymbolRing k n => AddMonoidAlgebra.coeff f m) hp
65         change AddMonoidAlgebra.coeff (presentedPrincipalComponent k w 0 z) m = 0 at hpc
66         rw [coeff_presentedPrincipalComponent] at hpc
67         by_cases hc :
68             AddMonoidAlgebra.coeff (presentedNormalFormLinearEquiv k n z) m = 0
69         · rw [hc]
70           simp
71         · have hw : monomialWeight w m = 0 := Nat.eq_zero_of_le_zero (hle m hc)
72           simpa [hw] using hpc
73     | succ N =>
74         rw [presentedStrictLowerPiece, mem_presentedWeightPiece]
75         intro m hm
76         change AddMonoidAlgebra.coeff (presentedNormalFormLinearEquiv k n z) m ≠ 0 at hm
77         have hle := (mem_presentedWeightPiece k w (N + 1) z).mp hz m hm
78         have hpc := congrArg (fun f : SymbolRing k n => AddMonoidAlgebra.coeff f m) hp
79         change AddMonoidAlgebra.coeff (presentedPrincipalComponent k w (N + 1) z) m = 0 at hpc
80         rw [coeff_presentedPrincipalComponent] at hpc
81         by_contra hnot
82         have heq : monomialWeight w m = N + 1 := by omega
83         simp [heq, hm] at hpc
84   · intro hlower
85     cases N with
86     | zero =>
87         rw [presentedStrictLowerPiece, Submodule.mem_bot] at hlower
88         subst z
89         exact map_zero _
90     | succ N =>
91         exact presentedPrincipalComponent_eq_zero_of_mem_of_lt k w z
92           hlower (Nat.lt_succ_self N)
93 
94 /-- The principal component restricted to the degree-`N` filtration piece,
95 with codomain narrowed to the degree-`N` homogeneous symbol submodule. -/
96 def principalComponentOnPiece {n : ℕ} (w : PhaseVar n → ℕ) (N : ℕ) :
97     presentedWeightPiece k w N →ₗ[k]
98       MvPolynomial.weightedHomogeneousSubmodule k w N where
99   toFun z := ⟨presentedPrincipalComponent k w N z,
100     MvPolynomial.weightedHomogeneousComponent_mem w
101       (presentedNormalFormLinearEquiv k n z) N⟩
102   map_add' x y := by
103     ext
104     simp [presentedPrincipalComponent]
105   map_smul' c x := by
106     ext
107     simp [presentedPrincipalComponent]
108 
109 theorem mem_ker_principalComponentOnPiece_iff {n N : ℕ}
110     (w : PhaseVar n → ℕ) (z : presentedWeightPiece k w N) :
111     z ∈ LinearMap.ker (principalComponentOnPiece k w N) ↔
112       (z : PresentedWeyl k n) ∈ presentedStrictLowerPiece k w N := by
113   rw [LinearMap.mem_ker]
114   constructor
115   · intro h
116     have hp : presentedPrincipalComponent k w N z = 0 :=
117       congrArg (fun f : MvPolynomial.weightedHomogeneousSubmodule k w N =>
118         (f : SymbolRing k n)) h
119     exact (presentedPrincipalComponent_eq_zero_iff_mem_strictLower
120       k w z z.property).mp hp
121   · intro hlower
122     apply Subtype.ext
123     exact (presentedPrincipalComponent_eq_zero_iff_mem_strictLower
124       k w z z.property).mpr hlower
125 
126 /-- The kernel of principal-component projection is exactly the strict lower
127 filtration piece, viewed inside the degree-`N` piece. -/
128 theorem ker_principalComponentOnPiece_eq {n N : ℕ}
129     (w : PhaseVar n → ℕ) :
130     LinearMap.ker (principalComponentOnPiece k w N) =
131       (presentedStrictLowerPiece k w N).comap
132         (presentedWeightPiece k w N).subtype := by
133   ext z
134   exact mem_ker_principalComponentOnPiece_iff k w z
135 
136 theorem principalComponentOnPiece_surjective {n N : ℕ}
137     (w : PhaseVar n → ℕ) :
138     Function.Surjective (principalComponentOnPiece k w N) := by
139   intro f
140   let z : PresentedWeyl k n :=
141     (presentedNormalFormLinearEquiv k n).symm (f : SymbolRing k n)
142   have hz : z ∈ presentedWeightPiece k w N := by
143     rw [mem_presentedWeightPiece]
144     intro m hm
145     have hnormal : presentedNormalFormLinearEquiv k n z = (f : SymbolRing k n) := by
146       exact (presentedNormalFormLinearEquiv k n).apply_symm_apply f
147     rw [hnormal] at hm
148     have hw := f.property hm
149     rw [finsupp_weight_eq_monomialWeight] at hw
150     exact le_of_eq hw
151   refine ⟨⟨z, hz⟩, ?_⟩
152   apply Subtype.ext
153   change presentedPrincipalComponent k w N z = (f : SymbolRing k n)
154   rw [presentedPrincipalComponent, LinearMap.comp_apply]
155   change MvPolynomial.weightedHomogeneousComponent w N
156       (presentedNormalFormLinearEquiv k n z) = (f : SymbolRing k n)
157   rw [show presentedNormalFormLinearEquiv k n z = (f : SymbolRing k n) from
158     (presentedNormalFormLinearEquiv k n).apply_symm_apply f]
159   exact f.property.weightedHomogeneousComponent_same
160 
161 local instance (priority := 10000) presentedWeightPieceHasQuotient {n : ℕ}
162     (w : PhaseVar n → ℕ) (N : ℕ) :
163     HasQuotient (presentedWeightPiece k w N)
164       (Submodule k (presentedWeightPiece k w N)) :=
165   @Submodule.hasQuotient k (presentedWeightPiece k w N) _
166     (presentedWeightPiece k w N).addCommGroup
167     (presentedWeightPiece k w N).module
168 
169 /-- The degree-`N` associated graded piece, presented canonically as the
170 quotient by the kernel of principal-component projection. The preceding
171 kernel theorem identifies this kernel with the strict lower filtration. -/
172 abbrev presentedAssociatedGradedPiece {n : ℕ}
173     (w : PhaseVar n → ℕ) (N : ℕ) :=
174   (presentedWeightPiece k w N) ⧸
175     LinearMap.ker (principalComponentOnPiece k w N)
176 
177 local instance (priority := 10000) presentedAssociatedGradedPieceAddCommGroup
178     {n : ℕ} (w : PhaseVar n → ℕ) (N : ℕ) :
179     AddCommGroup (presentedAssociatedGradedPiece k w N) :=
180   @Submodule.Quotient.addCommGroup k (presentedWeightPiece k w N) _
181     (presentedWeightPiece k w N).addCommGroup
182     (presentedWeightPiece k w N).module
183     (LinearMap.ker (principalComponentOnPiece k w N))
184 
185 local instance (priority := 10000) presentedAssociatedGradedPieceModule
186     {n : ℕ} (w : PhaseVar n → ℕ) (N : ℕ) :
187     Module k (presentedAssociatedGradedPiece k w N) :=
188   @Submodule.Quotient.module k (presentedWeightPiece k w N) _
189     (presentedWeightPiece k w N).addCommGroup
190     (presentedWeightPiece k w N).module
191     (LinearMap.ker (principalComponentOnPiece k w N))
192 
193 /-- Every associated graded piece is linearly equivalent to the corresponding
194 weighted-homogeneous symbol submodule. -/
195 def presentedAssociatedGradedPieceEquiv {n : ℕ}
196     (w : PhaseVar n → ℕ) (N : ℕ) :
197     presentedAssociatedGradedPiece k w N ≃ₗ[k]
198       MvPolynomial.weightedHomogeneousSubmodule k w N :=
199   @LinearMap.quotKerEquivOfSurjective k
200     (presentedWeightPiece k w N)
201     (MvPolynomial.weightedHomogeneousSubmodule k w N) _
202     (presentedWeightPiece k w N).addCommGroup
203     (MvPolynomial.weightedHomogeneousSubmodule k w N).addCommGroup
204     (presentedWeightPiece k w N).module
205     (MvPolynomial.weightedHomogeneousSubmodule k w N).module
206     (principalComponentOnPiece k w N)
207     (principalComponentOnPiece_surjective k w)
208 
209 theorem presentedAssociatedGradedPieceEquiv_mk {n N : ℕ}
210     (w : PhaseVar n → ℕ) (z : presentedWeightPiece k w N) :
211     presentedAssociatedGradedPieceEquiv k w N (Submodule.Quotient.mk z) =
212       principalComponentOnPiece k w N z := by
213   rfl
214 
215 #print axioms presentedStrictLowerPiece
216 #print axioms presentedStrictLowerPiece_le
217 #print axioms presentedPrincipalComponent_eq_zero_iff_mem_strictLower
218 #print axioms principalComponentOnPiece
219 #print axioms mem_ker_principalComponentOnPiece_iff
220 #print axioms ker_principalComponentOnPiece_eq
221 #print axioms principalComponentOnPiece_surjective
222 #print axioms presentedAssociatedGradedPieceEquiv
223 #print axioms presentedAssociatedGradedPieceEquiv_mk
224 
225 end
226 
227 end Stafford38.WeylAssociatedGraded
228