Stafford38/Geometry/ScalarExtensionPoints.lean

This project (Stafford38) · 1029fdb382eee06e7b59bcf32801f40931e2079a

1 module
2 public import Mathlib.RingTheory.Nullstellensatz
3 public import Stafford38.Geometry.AffineConormalClosure
4 
5 @[expose] public section
6 
7 /-!
8 # Scalar extension and geometric points
9 
10 This file gives the coefficient-extension bridge for the field-valued affine
11 geometry used by the characteristic-support and conormal arguments.  All
12 polynomial maps, ideal maps/comaps, and evaluation maps are displayed
13 explicitly.
14 
15 For an ideal `J` over `k`, its geometric reduced extension is defined as the
16 radical of the extended ideal, not as the extension of `J.radical`.  The two
17 zero loci agree over every extension field.  No assertion that radicals,
18 closures, or ideal contractions commute with base change is made here.
19 -/
20 
21 namespace Stafford38.Geometry.ScalarExtensionPoints
22 
23 open Stafford38.Characteristic
24 open Stafford38.Characteristic.BaseRelativePoisson
25 open Stafford38.Characteristic.BaseZeroSection
26 open Stafford38.CharacteristicFilteredQuotient
27 open Stafford38.CharacteristicInitialIdeal
28 open Stafford38.CharacteristicInitialIdealHomogeneous
29 open Stafford38.Characteristic.ReducedSupportIdeal
30 open Stafford38.Geometry.AffineConormalClosure
31 open Stafford38.Geometry.AffineConormalSpan
32 open Stafford38.Geometry.CoisotropicTranslation
33 open Stafford38.EulerSurjectivity
34 open Stafford38.WeylIteratedEquivalence
35 open Stafford38.WeylFiltration
36 
37 noncomputable section
38 
39 variable {k K : Type*} [Field k] [Field K] [Algebra k K]
40 variable {σ : Type*} {n : ℕ}
41 
42 /-- Coefficient extension on a multivariable polynomial ring. -/
43 def scalarPolynomialMap (σ : Type*) :
44     MvPolynomial σ k →+* MvPolynomial σ K :=
45   MvPolynomial.map (algebraMap k K)
46 
47 /-- Coefficient extension is injective for a field extension. -/
48 theorem scalarPolynomialMap_injective (σ : Type*) :
49     Function.Injective (scalarPolynomialMap (k := k) (K := K) σ) :=
50   MvPolynomial.map_injective (algebraMap k K)
51     (FaithfulSMul.algebraMap_injective k K)
52 
53 /-- Evaluation of a coefficient-extended polynomial at a `K`-point is
54 exactly `eval₂` with the structure map on coefficients. -/
55 theorem eval_scalarPolynomialMap (q : σ → K) (f : MvPolynomial σ k) :
56     MvPolynomial.eval q (scalarPolynomialMap (k := k) (K := K) σ f) =
57       MvPolynomial.eval₂ (algebraMap k K) q f := by
58   exact MvPolynomial.eval_map (algebraMap k K) q f
59 
60 /-- Exact point semantics of ideal extension: a `K`-point kills the extended
61 ideal iff it kills the image of every member of the original ideal. -/
62 theorem mem_zeroLocus_map_iff
63     (J : Ideal (MvPolynomial σ k)) (q : σ → K) :
64     q ∈ MvPolynomial.zeroLocus K
65         (J.map (scalarPolynomialMap (k := k) (K := K) σ)) ↔
66       ∀ f ∈ J, MvPolynomial.eval₂ (algebraMap k K) q f = 0 := by
67   constructor
68   · intro hq f hf
69     have h := hq
70       (scalarPolynomialMap (k := k) (K := K) σ f)
71       (Ideal.mem_map_of_mem
72         (scalarPolynomialMap (k := k) (K := K) σ) hf)
73     simpa [eval_scalarPolynomialMap] using h
74   · intro hq
75     rw [Ideal.map, MvPolynomial.zeroLocus_span]
76     rintro _ ⟨f, hf, rfl⟩
77     simpa [eval_scalarPolynomialMap] using hq f hf
78 
79 /-- Polynomials over `k` vanishing on a set of `K`-points.  This is the
80 contraction of the ordinary `K`-valued vanishing ideal. -/
81 def extensionValuedVanishingIdeal (S : Set (σ → K)) :
82     Ideal (MvPolynomial σ k) :=
83   (MvPolynomial.vanishingIdeal K S).comap
84     (scalarPolynomialMap (k := k) (K := K) σ)
85 
86 theorem mem_extensionValuedVanishingIdeal_iff
87     (S : Set (σ → K)) (f : MvPolynomial σ k) :
88     f ∈ extensionValuedVanishingIdeal (k := k) (K := K) S ↔
89       ∀ q ∈ S, MvPolynomial.eval₂ (algebraMap k K) q f = 0 := by
90   simp [extensionValuedVanishingIdeal, eval_scalarPolynomialMap]
91 
92 /-- Exact Galois bridge between ideal extension and vanishing on
93 extension-valued points. -/
94 theorem subset_zeroLocus_map_iff_le_extensionValuedVanishingIdeal
95     (J : Ideal (MvPolynomial σ k)) (S : Set (σ → K)) :
96     S ⊆ MvPolynomial.zeroLocus K
97         (J.map (scalarPolynomialMap (k := k) (K := K) σ)) ↔
98       J ≤ extensionValuedVanishingIdeal (k := k) (K := K) S := by
99   constructor
100   · intro h f hf
101     rw [mem_extensionValuedVanishingIdeal_iff]
102     intro q hq
103     exact (mem_zeroLocus_map_iff J q).mp (h hq) f hf
104   · intro h q hq
105     rw [mem_zeroLocus_map_iff]
106     intro f hf
107     exact (mem_extensionValuedVanishingIdeal_iff S f).mp (h hf) q hq
108 
109 /-- Taking a radical after scalar extension does not change the set of
110 `K`-valued zeros.  This does not identify that radical with the extension of
111 the ground-field radical. -/
112 theorem zeroLocus_radical (L : Ideal (MvPolynomial σ K)) :
113     MvPolynomial.zeroLocus K L.radical = MvPolynomial.zeroLocus K L := by
114   apply Set.Subset.antisymm
115   · exact MvPolynomial.zeroLocus_anti_mono Ideal.le_radical
116   · intro q hq f hf
117     exact MvPolynomial.radical_le_vanishingIdeal_zeroLocus L hf q hq
118 
119 /-- The reduced geometric extension of an ideal.  Reduction is deliberately
120 performed after coefficient extension. -/
121 def geometricRadicalExtension (J : Ideal (MvPolynomial σ k)) :
122     Ideal (MvPolynomial σ K) :=
123   (J.map (scalarPolynomialMap (k := k) (K := K) σ)).radical
124 
125 /-- Exact geometric-point semantics of the reduced extension. -/
126 theorem mem_zeroLocus_geometricRadicalExtension_iff
127     (J : Ideal (MvPolynomial σ k)) (q : σ → K) :
128     q ∈ MvPolynomial.zeroLocus K
129         (geometricRadicalExtension (k := k) (K := K) J) ↔
130       ∀ f ∈ J, MvPolynomial.eval₂ (algebraMap k K) q f = 0 := by
131   rw [geometricRadicalExtension, zeroLocus_radical,
132     mem_zeroLocus_map_iff]
133 
134 /-- Coefficient extension commutes with the explicit embedding of base
135 coordinates into phase space. -/
136 theorem scalarPolynomialMap_baseLift (f : MvPolynomial (Fin n) k) :
137     scalarPolynomialMap (k := k) (K := K) (PhaseVar n) (baseLift f) =
138       baseLift (scalarPolynomialMap (k := k) (K := K) (Fin n) f) := by
139   exact MvPolynomial.map_rename (algebraMap k K) Sum.inl f
140 
141 /-- The always-valid map/comap comparison for the base-coordinate square.
142 The orientation is important: extension of the old contraction is contained
143 in the contraction of the extended ideal.  The reverse inclusion would need
144 the flat Cartesian base-change/intersection theorem for this polynomial
145 square; no such equality is assumed. -/
146 theorem map_baseContraction_le_extendedBaseContraction
147     (J : Ideal (SymbolRing k n)) :
148     (J.comap
149         (baseLift : MvPolynomial (Fin n) k →ₐ[k] SymbolRing k n).toRingHom).map
150         (scalarPolynomialMap (k := k) (K := K) (Fin n)) ≤
151       (J.map (scalarPolynomialMap (k := k) (K := K) (PhaseVar n))).comap
152         (baseLift : MvPolynomial (Fin n) K →ₐ[K] SymbolRing K n).toRingHom := by
153   rw [Ideal.map_le_iff_le_comap]
154   intro f hf
155   change baseLift (scalarPolynomialMap (k := k) (K := K) (Fin n) f) ∈
156     J.map (scalarPolynomialMap (k := k) (K := K) (PhaseVar n))
157   rw [← scalarPolynomialMap_baseLift]
158   exact Ideal.mem_map_of_mem
159     (scalarPolynomialMap (k := k) (K := K) (PhaseVar n)) hf
160 
161 /-- The corresponding comparison remains valid when the extended phase
162 ideal is reduced after base change. -/
163 theorem map_baseContraction_le_geometricBaseContraction
164     (J : Ideal (SymbolRing k n)) :
165     (J.comap
166         (baseLift : MvPolynomial (Fin n) k →ₐ[k] SymbolRing k n).toRingHom).map
167         (scalarPolynomialMap (k := k) (K := K) (Fin n)) ≤
168       (geometricRadicalExtension (k := k) (K := K) J).comap
169         (baseLift : MvPolynomial (Fin n) K →ₐ[K] SymbolRing K n).toRingHom := by
170   exact (map_baseContraction_le_extendedBaseContraction J).trans
171     (Ideal.comap_mono Ideal.le_radical)
172 
173 /-- A phase point of an extended ideal projects to a point of the contraction
174 of that extended ideal. -/
175 theorem baseProjection_mem_zeroLocus_comap
176     (L : Ideal (SymbolRing K n)) (q : PhaseVar n → K)
177     (hq : q ∈ MvPolynomial.zeroLocus K L) :
178     (fun i ↦ q (Sum.inl i)) ∈ MvPolynomial.zeroLocus K
179       (L.comap
180         (baseLift : MvPolynomial (Fin n) K →ₐ[K] SymbolRing K n).toRingHom) := by
181   intro f hf
182   have h := hq (baseLift f) hf
183   change MvPolynomial.eval q (MvPolynomial.rename Sum.inl f) = 0 at h
184   rw [MvPolynomial.eval_rename] at h
185   exact h
186 
187 /-- Consequently, a geometric point of the reduced extension projects to a
188 zero of the scalar extension of the original base contraction.  This is the
189 strong unconditional one-way base-contraction theorem. -/
190 theorem geometricSupport_baseProjection_mem_groundContractionZeroLocus
191     (J : Ideal (SymbolRing k n)) (q : PhaseVar n → K)
192     (hq : q ∈ MvPolynomial.zeroLocus K
193       (geometricRadicalExtension (k := k) (K := K) J)) :
194     (fun i ↦ q (Sum.inl i)) ∈ MvPolynomial.zeroLocus K
195       ((J.comap
196           (baseLift : MvPolynomial (Fin n) k →ₐ[k] SymbolRing k n).toRingHom).map
197         (scalarPolynomialMap (k := k) (K := K) (Fin n))) := by
198   apply MvPolynomial.zeroLocus_anti_mono
199     (map_baseContraction_le_geometricBaseContraction J)
200   exact baseProjection_mem_zeroLocus_comap
201     (geometricRadicalExtension (k := k) (K := K) J) q hq
202 
203 /-- Exact membership in the equation-defined conormal locus after extending
204 the equation ideal.  In particular, the base equations are evaluated by the
205 displayed `eval₂` map; no identification of closures across fields occurs. -/
206 theorem mem_equationConormalLocus_map_iff
207     (I : Ideal (MvPolynomial (Fin n) k)) (q : PhaseVar n → K) :
208     q ∈ equationConormalLocus
209         (I.map (scalarPolynomialMap (k := k) (K := K) (Fin n))) ↔
210       (∀ f ∈ I,
211           MvPolynomial.eval₂ (algebraMap k K)
212             (fun i ↦ q (Sum.inl i)) f = 0) ∧
213         coordinateCovector (fun i ↦ q (Sum.inr i)) ∈
214           affineConormalSpace (fun i ↦ q (Sum.inl i))
215             (I.map (scalarPolynomialMap (k := k) (K := K) (Fin n))) := by
216   rw [equationConormalLocus]
217   constructor
218   · intro h
219     refine ⟨?_, h.2⟩
220     exact (mem_zeroLocus_map_iff I (fun i ↦ q (Sum.inl i))).mp h.1
221   · intro h
222     refine ⟨?_, h.2⟩
223     exact (mem_zeroLocus_map_iff I (fun i ↦ q (Sum.inl i))).mpr h.1
224 
225 /-- Partial derivatives commute with coefficient extension, with the
226 evaluation map at a geometric point shown explicitly. -/
227 theorem differentialAt_scalarPolynomialMap
228     (y : Fin n → K) (f : MvPolynomial (Fin n) k) (i : Fin n) :
229     differentialAt y
230         (scalarPolynomialMap (k := k) (K := K) (Fin n) f) i =
231       MvPolynomial.eval₂ (algebraMap k K) y
232         (MvPolynomial.pderiv i f) := by
233   change MvPolynomial.eval y
234       (MvPolynomial.pderiv i
235         (MvPolynomial.map (algebraMap k K) f)) = _
236   rw [MvPolynomial.pderiv_map, MvPolynomial.eval_map]
237 
238 /-- Once a pointwise conormal containment has been proved over `K`, its
239 `K`-valued algebraic closure hull remains in the reduced geometric support.
240 Both closure and reduction are taken after base change. -/
241 theorem equationConormalClosure_map_subset_geometricRadicalExtension
242     (I : Ideal (MvPolynomial (Fin n) k))
243     (J : Ideal (SymbolRing k n))
244     (h : equationConormalLocus
245           (I.map (scalarPolynomialMap (k := k) (K := K) (Fin n))) ⊆
246         MvPolynomial.zeroLocus K
247           (geometricRadicalExtension (k := k) (K := K) J)) :
248     equationConormalClosure
249         (I.map (scalarPolynomialMap (k := k) (K := K) (Fin n))) ⊆
250       MvPolynomial.zeroLocus K
251         (geometricRadicalExtension (k := k) (K := K) J) := by
252   exact zeroLocus_vanishingIdeal_mono_of_subset_zeroLocus
253     (equationConormalLocus
254       (I.map (scalarPolynomialMap (k := k) (K := K) (Fin n))) )
255     (geometricRadicalExtension (k := k) (K := K) J) h
256 
257 /-- The project-facing specialization: geometric reduction of the reduced
258 order-support ideal.  This is intentionally `radical (map ...)`. -/
259 def geometricReducedOrderSupportIdeal
260     (W : RightIdeal (PresentedWeyl k n)) : Ideal (SymbolRing K n) :=
261   geometricRadicalExtension (k := k) (K := K)
262     (reducedOrderSupportIdeal k W)
263 
264 /-- The actual base contraction of the post-base-change reduced support. -/
265 def geometricReducedOrderBaseIdeal
266     (W : RightIdeal (PresentedWeyl k n)) :
267     Ideal (MvPolynomial (Fin n) K) :=
268   (geometricReducedOrderSupportIdeal (k := k) (K := K) W).comap
269     (baseLift : MvPolynomial (Fin n) K →ₐ[K] SymbolRing K n).toRingHom
270 
271 /-- Geometric points of the reduced order support are exactly the `K`-points
272 annihilating every ground-field reduced-support equation. -/
273 theorem mem_zeroLocus_geometricReducedOrderSupportIdeal_iff
274     (W : RightIdeal (PresentedWeyl k n)) (q : PhaseVar n → K) :
275     q ∈ MvPolynomial.zeroLocus K
276         (geometricReducedOrderSupportIdeal (k := k) (K := K) W) ↔
277       ∀ f ∈ reducedOrderSupportIdeal k W,
278         MvPolynomial.eval₂ (algebraMap k K) q f = 0 := by
279   exact mem_zeroLocus_geometricRadicalExtension_iff
280     (reducedOrderSupportIdeal k W) q
281 
282 /-- Fibre-zero specialization commutes with coefficient extension. -/
283 theorem scalarPolynomialMap_fibreZeroSpecialization
284     (P : SymbolRing k n) :
285     scalarPolynomialMap (k := k) (K := K) (Fin n)
286         (fibreZeroSpecialization k P) =
287       fibreZeroSpecialization K
288         (scalarPolynomialMap (k := k) (K := K) (PhaseVar n) P) := by
289   simp only [fibreZeroSpecialization, scalarPolynomialMap,
290     MvPolynomial.map_bind₁]
291   congr 1
292   ext i
293   rcases i with i | i <;> simp
294 
295 local instance orderGradedAlgebraExtensionInstance :
296     GradedAlgebra (orderDecomposition (k := k) (n := n)) :=
297   MvPolynomial.weightedGradedAlgebra k (@orderWeight n)
298 
299 /-- A geometric zero of the actual contracted reduced support lifts to the
300 zero section of the actual geometric reduced support.  The proof transports
301 the ground-field degree-zero component through coefficient extension; it
302 does not identify the two base contractions. -/
303 theorem zeroSection_mem_of_mem_geometricReducedOrderBaseZeroSet
304     (W : RightIdeal (PresentedWeyl k n)) (y : Fin n → K)
305     (hy : ∀ f ∈ geometricReducedOrderBaseIdeal (k := k) (K := K) W,
306       MvPolynomial.eval y f = 0) :
307     zeroSectionPoint y ∈ MvPolynomial.zeroLocus K
308       (geometricReducedOrderSupportIdeal (k := k) (K := K) W) := by
309   rw [mem_zeroLocus_geometricReducedOrderSupportIdeal_iff]
310   intro P hP
311   obtain ⟨m, hm⟩ := (mem_reducedOrderSupportIdeal_iff k W P).mp hP
312   let f := fibreZeroSpecialization k (P ^ m)
313   have hcomponent :
314       (DirectSum.decompose
315           (orderDecomposition (k := k) (n := n)) (P ^ m) 0 :
316         SymbolRing k n) ∈ orderInitialIdeal k W :=
317     coe_mem_orderInitialIdeal_of_mem_orderSymbolRelation k W 0
318       (DirectSum.decompose
319         (orderDecomposition (k := k) (n := n)) (P ^ m) 0)
320       (decompose_mem_orderSymbolRelation_of_mem_orderInitialIdeal
321         k W (P ^ m) hm 0)
322   have hbaseLift : baseLift f ∈ reducedOrderSupportIdeal k W := by
323     rw [← zeroComponent_eq_baseLift_fibreZeroSpecialization]
324     exact orderInitialIdeal_le_reducedOrderSupportIdeal k W hcomponent
325   have hmapBase :
326       scalarPolynomialMap (k := k) (K := K) (Fin n) f ∈
327         geometricReducedOrderBaseIdeal (k := k) (K := K) W := by
328     change baseLift
329         (scalarPolynomialMap (k := k) (K := K) (Fin n) f) ∈
330       geometricReducedOrderSupportIdeal (k := k) (K := K) W
331     rw [← scalarPolynomialMap_baseLift]
332     exact Ideal.le_radical
333       (Ideal.mem_map_of_mem
334         (scalarPolynomialMap (k := k) (K := K) (PhaseVar n)) hbaseLift)
335   have hfy :
336       MvPolynomial.eval y
337         (scalarPolynomialMap (k := k) (K := K) (Fin n) f) = 0 :=
338     hy _ hmapBase
339   have heval :
340       MvPolynomial.eval (zeroSectionPoint y)
341         ((scalarPolynomialMap (k := k) (K := K) (PhaseVar n) P) ^ m) = 0 := by
342     rw [← map_pow,
343       ← eval_fibreZeroSpecialization K y
344         (scalarPolynomialMap (k := k) (K := K) (PhaseVar n) (P ^ m)),
345       ← scalarPolynomialMap_fibreZeroSpecialization]
346     exact hfy
347   have hp0 :
348       MvPolynomial.eval (zeroSectionPoint y)
349         (scalarPolynomialMap (k := k) (K := K) (PhaseVar n) P) = 0 := by
350     exact (pow_eq_zero_iff'.mp (by simpa only [map_pow] using heval)).1
351   simpa [eval_scalarPolynomialMap] using hp0
352 
353 /-- Exact geometric conormal consumer for the scalar-extended reduced order
354 support.  The sole substantive hypothesis left to the caller is the
355 base-relative Poisson condition on the post-base-change radical ideal. -/
356 theorem equationConormalClosure_geometricReducedOrderBase_subset_support
357     [CharZero K]
358     (W : RightIdeal (PresentedWeyl k n))
359     (hJ : IsBaseRelativePoisson
360       (geometricReducedOrderSupportIdeal (k := k) (K := K) W)) :
361     equationConormalClosure
362         (geometricReducedOrderBaseIdeal (k := k) (K := K) W) ⊆
363       MvPolynomial.zeroLocus K
364         (geometricReducedOrderSupportIdeal (k := k) (K := K) W) := by
365   apply zeroLocus_vanishingIdeal_mono_of_subset_zeroLocus
366   intro q hq
367   let y : Fin n → K := fun i ↦ q (Sum.inl i)
368   let ξ : Fin n → K := fun i ↦ q (Sum.inr i)
369   have hzero := zeroSection_mem_of_mem_geometricReducedOrderBaseZeroSet
370     W y hq.1
371   have hpoint := affineConormal_coordinatePoint_isCommonZero
372     (geometricReducedOrderSupportIdeal (k := k) (K := K) W) hJ y
373     hzero
374     (geometricReducedOrderBaseIdeal (k := k) (K := K) W)
375     (fun f ↦ f.2) ξ hq.2
376   have hsplit : Sum.elim y ξ = q := by
377     funext i
378     rcases i with i | i <;> rfl
379   rw [← hsplit]
380   exact hpoint
381 
382 #print axioms scalarPolynomialMap_injective
383 #print axioms eval_scalarPolynomialMap
384 #print axioms mem_zeroLocus_map_iff
385 #print axioms mem_extensionValuedVanishingIdeal_iff
386 #print axioms subset_zeroLocus_map_iff_le_extensionValuedVanishingIdeal
387 #print axioms zeroLocus_radical
388 #print axioms mem_zeroLocus_geometricRadicalExtension_iff
389 #print axioms scalarPolynomialMap_baseLift
390 #print axioms map_baseContraction_le_extendedBaseContraction
391 #print axioms map_baseContraction_le_geometricBaseContraction
392 #print axioms baseProjection_mem_zeroLocus_comap
393 #print axioms geometricSupport_baseProjection_mem_groundContractionZeroLocus
394 #print axioms mem_equationConormalLocus_map_iff
395 #print axioms differentialAt_scalarPolynomialMap
396 #print axioms equationConormalClosure_map_subset_geometricRadicalExtension
397 #print axioms mem_zeroLocus_geometricReducedOrderSupportIdeal_iff
398 #print axioms scalarPolynomialMap_fibreZeroSpecialization
399 #print axioms zeroSection_mem_of_mem_geometricReducedOrderBaseZeroSet
400 #print axioms equationConormalClosure_geometricReducedOrderBase_subset_support
401 
402 end
403 
404 end Stafford38.Geometry.ScalarExtensionPoints
405