Stafford38/Weyl/PresentedScalarExtension.lean

This project (Stafford38) · 1029fdb382eee06e7b59bcf32801f40931e2079a

1 module
2 public import Stafford38.MathlibCompat.MvPolynomialCoeff
3 public import AlgebraicAnalysis.Ore.Associativity
4 public import Stafford38.Weyl.IteratedEquivalence
5 public import Stafford38.Weyl.Universal
6 public import Stafford38.Weyl.PBW
7 public import Stafford38.Weyl.Filtration
8 public import Stafford38.Weyl.LeadingSymbol
9 public import Stafford38.Weyl.PBWMonicBridge
10 public import Stafford38.Weyl.EulerResidue
11 public import Stafford38.Characteristic.InitialIdeal
12 public import Stafford38.Characteristic.GeometricSupportDescent
13 public import Stafford38.UniversalAssembly
14 public import Stafford38.CanonicalSupportVanishingReduction
15 
16 @[expose] public section
17 
18 /-!
19 # Coefficient extension for the presented Weyl algebra
20 
21 This file records the concrete map needed before any characteristic-support
22 descent can be attempted.  The source is the quotient presentation over `k`
23 and the target is the same presentation over an extension field `K`.  The map
24 is defined by the quotient universal property; in particular, no PBW
25 identification or base-change theorem is used in its definition.
26 
27 The file also proves injectivity, PBW normal-form and filtration transport,
28 PBW monicity, canonical-right-ideal transport in the usable direction, and the
29 resulting source-to-target order-initial-ideal inclusion.  The reverse filtered
30 comparison is recorded as an explicit contract below and proved in
31 `FilteredScalarLifting.lean`; no base-change equality is treated as
32 definitional.
33 -/
34 
35 namespace Stafford38.Weyl.PresentedScalarExtension
36 
37 open Stafford
38 open AlgebraicAnalysis
39 open Stafford38.Characteristic
40 open Stafford38.WeylIteratedEquivalence
41 open Stafford38.WeylFiltration
42 open Stafford38.WeylLeadingSymbol
43 open Stafford38.WeylPBW
44 open Stafford38.WeylPBWMonicBridge
45 open Stafford38.WeylUniversal
46 open Stafford38.WeylEulerResidue
47 open Stafford38.CharacteristicInitialIdeal
48 open Stafford38.Characteristic.GeometricSupportDescent
49 open Stafford38.Geometry.ScalarExtensionPoints
50 open Stafford38.EulerSurjectivity
51 
52 noncomputable section
53 
54 universe u v
55 
56 variable {k : Type u} {K : Type v}
57 variable [Field k] [Field K] [Algebra k K]
58 
59 private theorem algebraMap_matrixJ (n : Nat) (i j : Fin n ⊕ Fin n) :
60     algebraMap k K (Matrix.J (Fin n) k i j) = Matrix.J (Fin n) K i j := by
61   cases i with
62   | inl i =>
63       cases j with
64       | inl j => by_cases h : i = j <;> simp [Matrix.J, h]
65       | inr j => simp [Matrix.J, Matrix.one_apply]
66   | inr i =>
67       cases j with
68       | inl j => simp [Matrix.J, Matrix.one_apply]
69       | inr j => by_cases h : i = j <;> simp [Matrix.J, h]
70 
71 theorem presentedWeylScalarExtension_commutator (n : Nat)
72     (i j : Fin n ⊕ Fin n) :
73     commutator
74         (freeWeylGenerator (Matrix.J (Fin n) K) i)
75         (freeWeylGenerator (Matrix.J (Fin n) K) j) =
76       algebraMap k (PresentedWeyl K n) (Matrix.J (Fin n) k i j) := by
77   rw [freeWeylGenerator_commutator]
78   rw [IsScalarTower.algebraMap_apply k K (PresentedWeyl K n)]
79   rw [algebraMap_matrixJ]
80 
81 /-- The coefficient-extension homomorphism on the quotient presentation. -/
82 def presentedWeylScalarExtension (n : Nat) :
83     PresentedWeyl k n →ₐ[k] PresentedWeyl K n :=
84   freeWeylLift (Matrix.J (Fin n) k)
85     (fun i => freeWeylGenerator (Matrix.J (Fin n) K) i)
86     (presentedWeylScalarExtension_commutator n)
87 
88 @[simp] theorem presentedWeylScalarExtension_generator (n : Nat)
89     (i : Fin n ⊕ Fin n) :
90     presentedWeylScalarExtension (k := k) (K := K) n
91         (freeWeylGenerator (Matrix.J (Fin n) k) i) =
92       freeWeylGenerator (Matrix.J (Fin n) K) i := by
93   exact freeWeylLift_generator (Matrix.J (Fin n) k)
94     (fun i => freeWeylGenerator (Matrix.J (Fin n) K) i)
95     (presentedWeylScalarExtension_commutator n) i
96 
97 @[simp] theorem presentedWeylScalarExtension_scalar (n : Nat) (a : k) :
98     presentedWeylScalarExtension (k := k) (K := K) n
99         (algebraMap k (PresentedWeyl k n) a) =
100       algebraMap k (PresentedWeyl K n) a := by
101   exact (presentedWeylScalarExtension (k := k) (K := K) n).commutes a
102 
103 theorem presentedWeylScalarExtension_map_mul (n : Nat)
104     (a b : PresentedWeyl k n) :
105     presentedWeylScalarExtension (k := k) (K := K) n (a * b) =
106       presentedWeylScalarExtension (k := k) (K := K) n a *
107         presentedWeylScalarExtension (k := k) (K := K) n b := by
108   exact map_mul _ _ _
109 
110 theorem presentedWeylScalarExtension_map_add (n : Nat)
111     (a b : PresentedWeyl k n) :
112     presentedWeylScalarExtension (k := k) (K := K) n (a + b) =
113       presentedWeylScalarExtension (k := k) (K := K) n a +
114         presentedWeylScalarExtension (k := k) (K := K) n b := by
115   exact map_add _ _ _
116 
117 theorem presentedWeylScalarExtension_commutes (n : Nat) (a : k) :
118     presentedWeylScalarExtension (k := k) (K := K) n
119         (algebraMap k (PresentedWeyl k n) a) =
120       algebraMap k (PresentedWeyl K n) a := by
121   exact (presentedWeylScalarExtension (k := k) (K := K) n).commutes a
122 
123 /-! ## Compatibility with the recursive presentation -/
124 
125 theorem presentedWeylScalarExtension_previous (n : Nat)
126     (z : PresentedWeyl k n) :
127     presentedWeylScalarExtension (k := k) (K := K) (n + 1)
128         (previousWeylEmbedding k n z) =
129       previousWeylEmbedding K n
130         (presentedWeylScalarExtension (k := k) (K := K) n z) := by
131   let f : PresentedWeyl k n →ₐ[k] PresentedWeyl K (n + 1) :=
132     (presentedWeylScalarExtension (k := k) (K := K) (n + 1)).comp
133       (previousWeylEmbedding k n)
134   let g : PresentedWeyl k n →ₐ[k] PresentedWeyl K (n + 1) :=
135     (previousWeylEmbedding K n).restrictScalars k |>.comp
136       (presentedWeylScalarExtension (k := k) (K := K) n)
137   have hfg : f = g := by
138     apply freeWeyl_algHom_ext (k := k) (Matrix.J (Fin n) k) f g
139     intro i
140     simp [f, g, oldGenerator]
141   exact DFunLike.congr_fun hfg z
142 
143 theorem presentedWeylScalarExtension_orderedMonomial :
144     ∀ (n : Nat) (a p : Fin n → ℕ),
145       presentedWeylScalarExtension (k := k) (K := K) n
146           (presentedOrderedMonomial k n a p) =
147         presentedOrderedMonomial K n a p := by
148   intro n
149   induction n with
150   | zero =>
151       intro a p
152       simp [presentedOrderedMonomial, presentedWeylScalarExtension]
153   | succ n ih =>
154       intro a p
155       rw [presentedOrderedMonomial, map_mul, map_mul, map_pow, map_pow,
156         presentedWeylScalarExtension_previous]
157       rw [ih (fun i => a i.succ) (fun i => p i.succ)]
158       simp [presentedOrderedMonomial, presentedCoordinate, presentedMomentum]
159 
160 /-! ## The PBW-linear extension of coefficients -/
161 
162 /-- Coefficient extension on the commutative symbol polynomial ring. -/
163 def symbolScalarExtension (n : Nat) :
164     SymbolRing k n →ₐ[k] SymbolRing K n where
165   toRingHom := MvPolynomial.map (algebraMap k K)
166   commutes' := by
167     intro a
168     simp
169 
170 @[simp] theorem symbolScalarExtension_apply (n : Nat) (p : SymbolRing k n) :
171     symbolScalarExtension (k := k) (K := K) n p =
172       MvPolynomial.map (algebraMap k K) p :=
173   rfl
174 
175 @[simp] theorem symbolScalarExtension_monomial (n : Nat)
176     (m : PhaseVar n →₀ ℕ) (a : k) :
177     symbolScalarExtension (k := k) (K := K) n
178         (MvPolynomial.monomial m a) =
179       MvPolynomial.monomial m (algebraMap k K a) := by
180   simp [MvPolynomial.map_monomial]
181 
182 /-- The `k`-linear map obtained by extending PBW coordinates and rebuilding in
183 the target presentation. -/
184 def pbwScalarLinearMap (n : Nat) :
185     PresentedWeyl k n →ₗ[k] PresentedWeyl K n :=
186   (presentedNormalFormLinearEquiv K n).symm.toLinearMap.restrictScalars k |>.comp
187     ((symbolScalarExtension (k := k) (K := K) n).toLinearMap.comp
188       (presentedNormalFormLinearEquiv k n).toLinearMap)
189 
190 @[simp] theorem pbwScalarLinearMap_basis (n : Nat)
191     (m : PhaseVar n →₀ ℕ) :
192     pbwScalarLinearMap (k := k) (K := K) n
193         (presentedPBWBasis k n m) =
194       presentedPBWBasis K n m := by
195   simp only [pbwScalarLinearMap, LinearMap.comp_apply]
196   change (presentedNormalFormLinearEquiv K n).symm
197       (symbolScalarExtension (k := k) (K := K) n
198         (presentedNormalFormLinearEquiv k n (presentedPBWBasis k n m))) =
199     presentedPBWBasis K n m
200   rw [presentedNormalFormLinearEquiv_basis,
201     symbolScalarExtension_monomial]
202   simp only [map_one]
203   rw [← presentedNormalFormBasis_apply]
204   rfl
205 
206 theorem presentedWeylScalarExtension_basis (n : Nat)
207     (m : PhaseVar n →₀ ℕ) :
208     presentedWeylScalarExtension (k := k) (K := K) n
209         (presentedPBWBasis k n m) =
210       presentedPBWBasis K n m := by
211   rw [presentedPBWBasis_apply, presentedPBWBasis_apply]
212   exact presentedWeylScalarExtension_orderedMonomial n
213     (fun i => m (.inl i)) (fun i => m (.inr i))
214 
215 theorem presentedWeylScalarExtension_toLinearMap_eq_pbwScalarLinearMap
216     (n : Nat) :
217     (presentedWeylScalarExtension (k := k) (K := K) n).toLinearMap =
218       pbwScalarLinearMap (k := k) (K := K) n := by
219   apply Module.Basis.ext (presentedPBWBasis k n)
220   intro m
221   change presentedWeylScalarExtension (k := k) (K := K) n
222       (presentedPBWBasis k n m) =
223     pbwScalarLinearMap (k := k) (K := K) n
224       (presentedPBWBasis k n m)
225   rw [presentedWeylScalarExtension_basis, pbwScalarLinearMap_basis]
226 
227 theorem presentedNormalFormLinearEquiv_scalarExtension (n : Nat)
228     (z : PresentedWeyl k n) :
229     presentedNormalFormLinearEquiv K n
230         (presentedWeylScalarExtension (k := k) (K := K) n z) =
231       symbolScalarExtension (k := k) (K := K) n
232         (presentedNormalFormLinearEquiv k n z) := by
233   have hmap := DFunLike.congr_fun
234     (presentedWeylScalarExtension_toLinearMap_eq_pbwScalarLinearMap
235       (k := k) (K := K) n) z
236   change presentedWeylScalarExtension (k := k) (K := K) n z =
237     pbwScalarLinearMap (k := k) (K := K) n z at hmap
238   change presentedNormalFormLinearEquiv K n
239       (presentedWeylScalarExtension (k := k) (K := K) n z) = _
240   rw [hmap]
241   simp [pbwScalarLinearMap, LinearMap.comp_apply]
242 
243 /-! ## Injectivity and filtered transport -/
244 
245 theorem symbolScalarExtension_injective (n : Nat) :
246     Function.Injective (symbolScalarExtension (k := k) (K := K) n) := by
247   exact MvPolynomial.map_injective (algebraMap k K)
248     (FaithfulSMul.algebraMap_injective k K)
249 
250 theorem presentedWeylScalarExtension_injective (n : Nat) :
251     Function.Injective
252       (presentedWeylScalarExtension (k := k) (K := K) n) := by
253   intro a b hab
254   have hnorm := congrArg (presentedNormalFormLinearEquiv K n) hab
255   rw [presentedNormalFormLinearEquiv_scalarExtension,
256     presentedNormalFormLinearEquiv_scalarExtension] at hnorm
257   apply (presentedNormalFormLinearEquiv k n).injective
258   exact (symbolScalarExtension_injective (k := k) (K := K) n) hnorm
259 
260 theorem symbolScalarExtension_weightedHomogeneousComponent (n : Nat)
261     (w : PhaseVar n → ℕ) (N : ℕ) (f : SymbolRing k n) :
262     symbolScalarExtension (k := k) (K := K) n
263         (MvPolynomial.weightedHomogeneousComponent w N f) =
264       MvPolynomial.weightedHomogeneousComponent w N
265         (symbolScalarExtension (k := k) (K := K) n f) := by
266   classical
267   ext m
268   change MvPolynomial.coeff m
269       (MvPolynomial.map (algebraMap k K)
270         (MvPolynomial.weightedHomogeneousComponent w N f)) =
271     MvPolynomial.coeff m
272       (MvPolynomial.weightedHomogeneousComponent w N
273         (MvPolynomial.map (algebraMap k K) f))
274   simp only [MvPolynomial.coeff_map,
275     MvPolynomial.coeff_weightedHomogeneousComponent,
276     MvPolynomial.coeff_weightedHomogeneousComponent]
277   simp only [finsupp_weight_eq_monomialWeight]
278   by_cases hm : monomialWeight w m = N
279   · simp [hm]
280   · simp [hm]
281 
282 theorem presentedWeylScalarExtension_mem_weightPiece (n : Nat)
283     (w : PhaseVar n → ℕ) (N : ℕ) {z : PresentedWeyl k n}
284     (hz : z ∈ presentedWeightPiece k w N) :
285     presentedWeylScalarExtension (k := k) (K := K) n z ∈
286       presentedWeightPiece K w N := by
287   rw [mem_presentedWeightPiece] at hz ⊢
288   rw [presentedNormalFormLinearEquiv_scalarExtension
289     (k := k) (K := K) n z]
290   intro m hm
291   apply hz m
292   intro hzero
293   apply hm
294   simp [MvPolynomial.coeff_map, hzero]
295 
296 theorem presentedWeylScalarExtension_mem_orderPiece (n : Nat)
297     (N : ℕ) {z : PresentedWeyl k n}
298     (hz : z ∈ orderPiece k n N) :
299     presentedWeylScalarExtension (k := k) (K := K) n z ∈
300       orderPiece K n N := by
301   exact presentedWeylScalarExtension_mem_weightPiece
302     (k := k) (K := K) n (@orderWeight n) N hz
303 
304 theorem presentedWeylScalarExtension_mem_bernsteinPiece (n : Nat)
305     (N : ℕ) {z : PresentedWeyl k n}
306     (hz : z ∈ bernsteinPiece k n N) :
307     presentedWeylScalarExtension (k := k) (K := K) n z ∈
308       bernsteinPiece K n N := by
309   exact presentedWeylScalarExtension_mem_weightPiece
310     (k := k) (K := K) n (@bernsteinWeight n) N hz
311 
312 theorem presentedWeylScalarExtension_principalComponent (n : Nat)
313     (w : PhaseVar n → ℕ) (N : ℕ) (z : PresentedWeyl k n) :
314     symbolScalarExtension (k := k) (K := K) n
315         (presentedPrincipalComponent k w N z) =
316     presentedPrincipalComponent K w N
317         (presentedWeylScalarExtension (k := k) (K := K) n z) := by
318   change symbolScalarExtension (k := k) (K := K) n
319       (MvPolynomial.weightedHomogeneousComponent w N
320         (presentedNormalFormLinearEquiv k n z)) =
321     MvPolynomial.weightedHomogeneousComponent w N
322       (presentedNormalFormLinearEquiv K n
323         (presentedWeylScalarExtension (k := k) (K := K) n z))
324   rw [presentedNormalFormLinearEquiv_scalarExtension]
325   exact symbolScalarExtension_weightedHomogeneousComponent
326     (k := k) (K := K) n w N
327       (presentedNormalFormLinearEquiv k n z)
328 
329 theorem presentedWeylScalarExtension_isPBWMonicAt (n : Nat)
330     (N : ℕ) {z : PresentedWeyl k (n + 1)}
331     (hz : IsPBWMonicAt k (.inr (0 : Fin (n + 1))) N z) :
332     IsPBWMonicAt K (.inr (0 : Fin (n + 1))) N
333       (presentedWeylScalarExtension (k := k) (K := K) (n + 1) z) := by
334   refine ⟨presentedWeylScalarExtension_mem_bernsteinPiece
335     (k := k) (K := K) (n + 1) N hz.1, ?_⟩
336   change MvPolynomial.coeff (Finsupp.single (.inr (0 : Fin (n + 1))) N)
337       (presentedNormalFormLinearEquiv K (n + 1)
338         (presentedWeylScalarExtension (k := k) (K := K) (n + 1) z)) = 1
339   have hnorm := presentedNormalFormLinearEquiv_scalarExtension
340     (k := k) (K := K) (n + 1) z
341   rw [hnorm]
342   change MvPolynomial.coeff (Finsupp.single (.inr (0 : Fin (n + 1))) N)
343       (MvPolynomial.map (algebraMap k K)
344         (presentedNormalFormLinearEquiv k (n + 1) z)) = 1
345   simpa only [MvPolynomial.coeff_map, map_one] using congrArg (algebraMap k K) hz.2
346 
347 @[simp] theorem presentedWeylScalarExtension_coordinate (n : Nat) :
348     presentedWeylScalarExtension (k := k) (K := K) (n + 1)
349         (presentedCoordinate k n) = presentedCoordinate K n := by
350   simp [presentedCoordinate]
351 
352 @[simp] theorem presentedWeylScalarExtension_momentum (n : Nat) :
353     presentedWeylScalarExtension (k := k) (K := K) (n + 1)
354         (presentedMomentum k n) = presentedMomentum K n := by
355   simp [presentedMomentum]
356 
357 theorem presentedWeylScalarExtension_mem_canonicalRightIdeal
358     (n N : Nat) {d : PresentedWeyl k (n + 1)} {z : PresentedWeyl k (n + 1)}
359     (hz : z ∈ canonicalRightIdeal (presentedCoordinate k n) d N) :
360     presentedWeylScalarExtension (k := k) (K := K) (n + 1) z ∈
361       canonicalRightIdeal (presentedCoordinate K n)
362         (presentedWeylScalarExtension (k := k) (K := K) (n + 1) d) N := by
363   let e := presentedWeylScalarExtension (k := k) (K := K) (n + 1)
364   let J := canonicalRightIdeal (presentedCoordinate K n) (e d) N
365   change e z ∈ J
366   refine Submodule.span_induction ?_ ?_ ?_ ?_ hz
367   · intro a ha
368     simp only [Set.mem_insert_iff, Set.mem_singleton_iff] at ha
369     rcases ha with ha | ha
370     · subst a
371       exact firstGenerator_mem (presentedCoordinate K n) (e d) N
372     · subst a
373       simpa [e, J, map_mul, map_pow] using
374         (secondGenerator_mem (presentedCoordinate K n) (e d) N)
375   · simp [e, J]
376   · intro a b _ _ ha hb
377     simpa only [map_add] using J.add_mem ha hb
378   · intro c a _ ha
379     change e (a * c.unop) ∈ J
380     rw [map_mul]
381     change MulOpposite.op (e c.unop) • e a ∈ J
382     exact J.smul_mem _ ha
383 
384 /-! ## The safe initial-ideal comparison -/
385 
386 /-- Every source order-initial generator maps to a target order-initial
387 generator.  This is the comparison needed for descent; it is intentionally a
388 one-way inclusion and makes no claim that the target initial ideal is the
389 extension of the source initial ideal. -/
390 theorem presentedWeylScalarExtension_map_orderInitialIdeal_le
391     (n N : Nat) (d : PresentedWeyl k (n + 1)) :
392     (orderInitialIdeal k
393         (canonicalRightIdeal (presentedCoordinate k n) d N)).map
394         (symbolScalarExtension (k := k) (K := K) (n + 1)).toRingHom ≤
395       orderInitialIdeal K
396         (canonicalRightIdeal (presentedCoordinate K n)
397           (presentedWeylScalarExtension (k := k) (K := K) (n + 1) d) N) := by
398   rw [Ideal.map_le_iff_le_comap]
399   apply Ideal.span_le.mpr
400   intro P hP
401   rcases hP with ⟨L, z, hz, hI, rfl⟩
402   apply Ideal.subset_span
403   refine ⟨L,
404     presentedWeylScalarExtension (k := k) (K := K) (n + 1) z, ?_, ?_, ?_⟩
405   · exact presentedWeylScalarExtension_mem_orderPiece
406       (k := k) (K := K) (n + 1) L hz
407   · exact presentedWeylScalarExtension_mem_canonicalRightIdeal
408       (k := k) (K := K) n N hI
409   · exact presentedWeylScalarExtension_principalComponent
410       (k := k) (K := K) (n + 1) orderWeight L z
411 
412 theorem target_orderCharacteristicSupport_subset_scalarExtended_zeroLocus
413     (n N : Nat) (d : PresentedWeyl k (n + 1)) :
414     orderCharacteristicSupport K
415         (canonicalRightIdeal (presentedCoordinate K n)
416           (presentedWeylScalarExtension (k := k) (K := K) (n + 1) d) N) ⊆
417       PrimeSpectrum.zeroLocus
418         ((orderInitialIdeal k
419             (canonicalRightIdeal (presentedCoordinate k n) d N)).map
420           (symbolScalarExtension (k := k) (K := K) (n + 1)).toRingHom) := by
421   rw [orderCharacteristicSupport_eq_zeroLocus]
422   exact PrimeSpectrum.zeroLocus_anti_mono_ideal
423     (presentedWeylScalarExtension_map_orderInitialIdeal_le
424       (k := k) (K := K) n N d)
425 
426 /-! ## PBW spanning after scalar extension -/
427 
428 /-- The `K`-linear span of the image of the quotient-presented scalar map. -/
429 def scalarImageSpan (n : Nat) :
430     Submodule K (PresentedWeyl K n) :=
431   Submodule.span K (Set.range
432     (presentedWeylScalarExtension (k := k) (K := K) n))
433 
434 theorem target_mem_scalarImageSpan (n : Nat) (z : PresentedWeyl K n) :
435     z ∈ scalarImageSpan (k := k) (K := K) n := by
436   let f := presentedNormalFormLinearEquiv K n z
437   have hreconstruct :
438       z = ∑ m ∈ f.support,
439         MvPolynomial.coeff m f • presentedPBWBasis K n m := by
440     apply (presentedNormalFormLinearEquiv K n).injective
441     simp only [map_sum, map_smul, presentedNormalFormLinearEquiv_basis]
442     change f = _
443     calc
444       f = ∑ m ∈ f.support,
445           MvPolynomial.monomial m (MvPolynomial.coeff m f) :=
446         MvPolynomial.as_sum f
447       _ = _ := by
448         apply Finset.sum_congr rfl
449         intro m hm
450         rw [MvPolynomial.smul_monomial]
451         simp
452   rw [hreconstruct]
453   apply Submodule.sum_mem
454   intro m hm
455   apply Submodule.smul_mem
456   apply Submodule.subset_span
457   exact ⟨presentedPBWBasis k n m,
458     presentedWeylScalarExtension_basis (k := k) (K := K) n m⟩
459 
460 /-- The `K`-linear span of the scalar extensions of a source right ideal. -/
461 def scalarImageRightIdealSpan (n : Nat)
462     (I : RightIdeal (PresentedWeyl k n)) :
463     Submodule K (PresentedWeyl K n) :=
464   Submodule.span K
465     (presentedWeylScalarExtension (k := k) (K := K) n ''
466       (I : Set (PresentedWeyl k n)))
467 
468 theorem scalarImageRightIdealSpan_mul_right (n : Nat)
469     (I : RightIdeal (PresentedWeyl k n))
470     {a : PresentedWeyl K n}
471     (ha : a ∈ scalarImageRightIdealSpan (k := k) (K := K) n I)
472     (b : PresentedWeyl K n) :
473     a * b ∈ scalarImageRightIdealSpan (k := k) (K := K) n I := by
474   let e := presentedWeylScalarExtension (k := k) (K := K) n
475   let S := scalarImageRightIdealSpan (k := k) (K := K) n I
476   have hbase : ∀ (z : PresentedWeyl k n), z ∈ I →
477       ∀ b : PresentedWeyl K n, e z * b ∈ S := by
478     intro z hz b
479     have hb : b ∈ scalarImageSpan (k := k) (K := K) n :=
480       target_mem_scalarImageSpan (k := k) (K := K) n b
481     refine Submodule.span_induction ?_ ?_ ?_ ?_ hb
482     · intro c hc
483       rcases hc with ⟨c, hc, rfl⟩
484       have hzc : z * c ∈ I := by
485         change MulOpposite.op c • z ∈ I
486         exact I.smul_mem _ hz
487       change e z * e c ∈ S
488       rw [← map_mul]
489       exact Submodule.subset_span ⟨z * c, hzc, rfl⟩
490     · simp [S, scalarImageRightIdealSpan]
491     · intro b₁ b₂ _ _ hb₁ hb₂
492       simpa [mul_add] using S.add_mem hb₁ hb₂
493     · intro c b _ hb
494       rw [Algebra.smul_def, ← mul_assoc,
495         (Algebra.commutes c (e z)).symm, mul_assoc]
496       simpa [Algebra.smul_def] using S.smul_mem c hb
497   refine Submodule.span_induction ?_ ?_ ?_ ?_ ha
498   · intro z hz
499     rcases hz with ⟨z, hz, rfl⟩
500     exact hbase z hz b
501   · simp [S, scalarImageRightIdealSpan]
502   · intro a₁ a₂ _ _ ha₁ ha₂
503     simpa [add_mul] using S.add_mem ha₁ ha₂
504   · intro c a _ ha
505     rw [Algebra.smul_def, mul_assoc]
506     simpa [Algebra.smul_def] using S.smul_mem c ha
507 
508 theorem target_canonicalRightIdeal_le_scalarImageRightIdealSpan
509     (n N : Nat) (d : PresentedWeyl k (n + 1)) :
510       ∀ z, z ∈ canonicalRightIdeal (presentedCoordinate K n)
511         (presentedWeylScalarExtension (k := k) (K := K) (n + 1) d) N →
512       z ∈ scalarImageRightIdealSpan (k := k) (K := K) (n + 1)
513         (canonicalRightIdeal (presentedCoordinate k n) d N) := by
514   let e := presentedWeylScalarExtension (k := k) (K := K) (n + 1)
515   let I := canonicalRightIdeal (presentedCoordinate k n) d N
516   let S := scalarImageRightIdealSpan (k := k) (K := K) (n + 1) I
517   intro z hz
518   change z ∈ S
519   refine Submodule.span_induction ?_ ?_ ?_ ?_ hz
520   · intro a ha
521     simp only [Set.mem_insert_iff, Set.mem_singleton_iff] at ha
522     rcases ha with ha | ha
523     · subst a
524       change e d ∈ S
525       exact Submodule.subset_span ⟨d, firstGenerator_mem
526         (presentedCoordinate k n) d N, rfl⟩
527     · subst a
528       change presentedCoordinate K n ^ N * e d ∈ S
529       rw [← presentedWeylScalarExtension_coordinate
530         (k := k) (K := K) n, ← map_pow, ← map_mul]
531       exact Submodule.subset_span ⟨presentedCoordinate k n ^ N * d,
532         secondGenerator_mem (presentedCoordinate k n) d N, rfl⟩
533   · exact S.zero_mem
534   · intro a b _ _ ha hb
535     exact S.add_mem ha hb
536   · intro c a _ ha
537     change a * c.unop ∈ S
538     exact scalarImageRightIdealSpan_mul_right (k := k) (K := K)
539       (n + 1) I ha c.unop
540 
541 theorem scalarImageRightIdealSpan_eq_top (n : Nat) :
542     scalarImageRightIdealSpan (k := k) (K := K) n
543         (⊤ : RightIdeal (PresentedWeyl k n)) = ⊤ := by
544   apply top_unique
545   intro z _
546   simpa [scalarImageRightIdealSpan, scalarImageSpan] using
547     (target_mem_scalarImageSpan (k := k) (K := K) n z)
548 
549 /-! ## The filtered lifting contract -/
550 
551 theorem symbolScalarExtension_toRingHom (n : Nat) :
552     (symbolScalarExtension (k := k) (K := K) n).toRingHom =
553       scalarPolynomialMap (k := k) (K := K) (PhaseVar n) := rfl
554 
555 /-- The exact filtered statement for support descent.  It asks that
556 every target order-initial generator be represented by the scalar extension
557 of source initial generators.  It is stronger than the unfiltered PBW span
558 proved above and is deliberately not identified with a definitional
559 base-change equality.  `FilteredScalarLifting.lean` proves this contract by
560 flat base change of the ideal/order-piece intersection. -/
561 def FilteredInitialLifting : Prop :=
562   ∀ (k : Type u) [Field k] [CharZero k] (n N : ℕ)
563     (d : PresentedWeyl k (n + 1)),
564     orderInitialIdeal (AlgebraicClosure k)
565         (canonicalRightIdeal (presentedCoordinate (AlgebraicClosure k) n)
566           (presentedWeylScalarExtension (k := k)
567             (K := AlgebraicClosure k) (n + 1) d) N) ≤
568       (orderInitialIdeal k
569         (canonicalRightIdeal (presentedCoordinate k n) d N)).map
570         (scalarPolynomialMap (k := k) (K := AlgebraicClosure k)
571           (PhaseVar (n + 1)))
572 
573 theorem canonicalSupportDescent_of_filteredInitialLifting
574     (hfiltered : FilteredInitialLifting.{u}) :
575     Stafford38.CanonicalSupportVanishingReduction.CanonicalSupportDescent.{u} := by
576   intro hclosed
577   intro k _ _ n N d hN hd
578   let e := presentedWeylScalarExtension (k := k)
579     (K := AlgebraicClosure k) (n + 1)
580   let I := canonicalRightIdeal (presentedCoordinate k n) d N
581   let IK := canonicalRightIdeal (presentedCoordinate (AlgebraicClosure k) n)
582     (e d) N
583   have hdK : IsPBWMonicAt (AlgebraicClosure k)
584       (.inr (0 : Fin (n + 1))) N (e d) := by
585     exact presentedWeylScalarExtension_isPBWMonicAt
586       (k := k) (K := AlgebraicClosure k) n N hd
587   have hsupportK : orderCharacteristicSupport (AlgebraicClosure k) IK = ∅ := by
588     exact hclosed (AlgebraicClosure k) n N (e d) hN hdK
589   have htopK : orderInitialIdeal (AlgebraicClosure k) IK = ⊤ :=
590     (orderCharacteristicSupport_eq_empty_iff (AlgebraicClosure k) IK).mp
591       hsupportK
592   have htopMap :
593       (orderInitialIdeal k I).map
594           (scalarPolynomialMap (k := k) (K := AlgebraicClosure k)
595             (PhaseVar (n + 1))) = ⊤ := by
596     apply top_unique
597     rw [← htopK]
598     exact hfiltered k n N d
599   have htop : orderInitialIdeal k I = ⊤ := by
600     exact (map_scalarPolynomialMap_eq_top_iff
601       (J := orderInitialIdeal k I)).mp htopMap
602   exact (orderCharacteristicSupport_eq_empty_iff k I).mpr htop
603 
604 #print axioms presentedWeylScalarExtension
605 #print axioms presentedWeylScalarExtension_generator
606 #print axioms presentedWeylScalarExtension_scalar
607 #print axioms symbolScalarExtension
608 #print axioms symbolScalarExtension_monomial
609 #print axioms pbwScalarLinearMap_basis
610 #print axioms presentedWeylScalarExtension_basis
611 #print axioms presentedWeylScalarExtension_toLinearMap_eq_pbwScalarLinearMap
612 #print axioms presentedNormalFormLinearEquiv_scalarExtension
613 #print axioms presentedWeylScalarExtension_injective
614 #print axioms symbolScalarExtension_weightedHomogeneousComponent
615 #print axioms presentedWeylScalarExtension_mem_weightPiece
616 #print axioms presentedWeylScalarExtension_mem_orderPiece
617 #print axioms presentedWeylScalarExtension_mem_bernsteinPiece
618 #print axioms presentedWeylScalarExtension_principalComponent
619 #print axioms presentedWeylScalarExtension_isPBWMonicAt
620 #print axioms presentedWeylScalarExtension_coordinate
621 #print axioms presentedWeylScalarExtension_momentum
622 #print axioms presentedWeylScalarExtension_mem_canonicalRightIdeal
623 #print axioms presentedWeylScalarExtension_map_orderInitialIdeal_le
624 #print axioms target_orderCharacteristicSupport_subset_scalarExtended_zeroLocus
625 #print axioms target_mem_scalarImageSpan
626 #print axioms scalarImageRightIdealSpan_mul_right
627 #print axioms target_canonicalRightIdeal_le_scalarImageRightIdealSpan
628 #print axioms scalarImageRightIdealSpan_eq_top
629 #print axioms symbolScalarExtension_toRingHom
630 #print axioms canonicalSupportDescent_of_filteredInitialLifting
631 
632 end
633 
634 end Stafford38.Weyl.PresentedScalarExtension
635