Stafford38/Geometry/PaperLaurentChartDerivation.lean

This project (Stafford38) · 1029fdb382eee06e7b59bcf32801f40931e2079a

1 module
2 public import Mathlib.RingTheory.Derivation.Basic
3 public import Mathlib.RingTheory.LaurentSeries
4 public import Stafford38.LocalizedPolynomialDerivations
5 public import Stafford38.Geometry.FormalDivisorLaurentConormal
6 public import Stafford38.Geometry.PowerSeriesArcTangency
7 public import Stafford38.Geometry.ContinuousPowerSeriesTangentFrame
8 
9 @[expose] public section
10 
11 /-!
12 # Derivation tangencies in the affine chart of a retained Laurent arc
13 
14 The retained divisor construction supplies projective coordinates in a
15 one-variable completion.  Their affine ratios need only exist in its Laurent
16 fraction field.  This file extends actual power-series derivations through
17 the localization and computes their affine chart vectors by the quotient
18 rule.  In particular, it does not identify the projective column with its
19 dehomogenization.
20 -/
21 
22 namespace Stafford38.Geometry.PaperLaurentChartDerivation
23 
24 open Stafford38.Geometry.AffineConormalSpan
25 open Stafford38.Geometry.ContinuousPowerSeriesTangentFrame
26 open Stafford38.Geometry.FormalDivisorLaurentConormal
27 open Stafford38.Geometry.ProjectiveConormalDehomogenization
28 open Stafford38.Geometry.PowerSeriesArcTangency
29 open Stafford38.LocalizedPolynomialDerivations
30 
31 noncomputable section
32 
33 universe u
34 
35 variable {k κ : Type u} [Field k] [Field κ] [Algebra k κ]
36 
37 private theorem algebraMap_ground_to_laurent (c : k) :
38     algebraMap k (LaurentSeries κ) c =
39       algebraMap (PowerSeries κ) (LaurentSeries κ)
40         (algebraMap k (PowerSeries κ) c) := by
41   rw [HahnSeries.algebraMap_apply' (Γ := ℤ) (R := κ) (S := k) c]
42   rfl
43 
44 theorem algebraModule_powerSeriesLaurentTower :
45     letI : Module k (LaurentSeries κ) := Algebra.toModule
46     letI : SMul k (LaurentSeries κ) :=
47       (Algebra.toModule : Module k (LaurentSeries κ)).toSMul
48     IsScalarTower k (PowerSeries κ) (LaurentSeries κ) := by
49   letI : Module k (LaurentSeries κ) := Algebra.toModule
50   letI : SMul k (LaurentSeries κ) :=
51     (Algebra.toModule : Module k (LaurentSeries κ)).toSMul
52   exact IsScalarTower.of_algebraMap_eq (R := k) (S := PowerSeries κ)
53     (A := LaurentSeries κ) algebraMap_ground_to_laurent
54 
55 /-- Extend a derivation of the retained power-series ring to its Laurent
56 localization. -/
57 def extendPowerSeriesDerivation
58     (D : Derivation k (PowerSeries κ) (PowerSeries κ)) :
59     letI : Module k (LaurentSeries κ) := Algebra.toModule
60     letI : SMul k (LaurentSeries κ) :=
61       (Algebra.toModule : Module k (LaurentSeries κ)).toSMul
62     letI : IsScalarTower k (PowerSeries κ) (LaurentSeries κ) :=
63       algebraModule_powerSeriesLaurentTower
64     Derivation k (LaurentSeries κ) (LaurentSeries κ) := by
65   letI : Module k (LaurentSeries κ) := Algebra.toModule
66   letI : SMul k (LaurentSeries κ) :=
67     (Algebra.toModule : Module k (LaurentSeries κ)).toSMul
68   letI : IsScalarTower k (PowerSeries κ) (LaurentSeries κ) :=
69     algebraModule_powerSeriesLaurentTower
70   exact extendDerivation k (PowerSeries κ) (LaurentSeries κ)
71     (Submonoid.powers (PowerSeries.X : PowerSeries κ))
72     ((Algebra.linearMap (PowerSeries κ) (LaurentSeries κ)).compDer D)
73 
74 @[simp]
75 theorem extendPowerSeriesDerivation_comp
76     (D : Derivation k (PowerSeries κ) (PowerSeries κ)) :
77     letI : Module k (LaurentSeries κ) := Algebra.toModule
78     letI : SMul k (LaurentSeries κ) :=
79       (Algebra.toModule : Module k (LaurentSeries κ)).toSMul
80     letI : IsScalarTower k (PowerSeries κ) (LaurentSeries κ) :=
81       algebraModule_powerSeriesLaurentTower
82     (extendPowerSeriesDerivation D).compAlgebraMap (PowerSeries κ) =
83       (Algebra.linearMap (PowerSeries κ) (LaurentSeries κ)).compDer D := by
84   letI : Module k (LaurentSeries κ) := Algebra.toModule
85   letI : SMul k (LaurentSeries κ) :=
86     (Algebra.toModule : Module k (LaurentSeries κ)).toSMul
87   letI : IsScalarTower k (PowerSeries κ) (LaurentSeries κ) :=
88     algebraModule_powerSeriesLaurentTower
89   exact extendDerivation_compAlgebraMap k (PowerSeries κ) (LaurentSeries κ)
90     (Submonoid.powers (PowerSeries.X : PowerSeries κ)) _
91 
92 theorem extendPowerSeriesDerivation_on_powerSeries
93     (D : Derivation k (PowerSeries κ) (PowerSeries κ))
94     (f : PowerSeries κ) :
95     letI : Module k (LaurentSeries κ) := Algebra.toModule
96     letI : SMul k (LaurentSeries κ) :=
97       (Algebra.toModule : Module k (LaurentSeries κ)).toSMul
98     letI : IsScalarTower k (PowerSeries κ) (LaurentSeries κ) :=
99       algebraModule_powerSeriesLaurentTower
100     extendPowerSeriesDerivation D
101         (algebraMap (PowerSeries κ) (LaurentSeries κ) f) =
102       algebraMap (PowerSeries κ) (LaurentSeries κ) (D f) := by
103   letI : Module k (LaurentSeries κ) := Algebra.toModule
104   letI : SMul k (LaurentSeries κ) :=
105     (Algebra.toModule : Module k (LaurentSeries κ)).toSMul
106   letI : IsScalarTower k (PowerSeries κ) (LaurentSeries κ) :=
107     algebraModule_powerSeriesLaurentTower
108   have h := DFunLike.congr_fun (extendPowerSeriesDerivation_comp D) f
109   change extendPowerSeriesDerivation D
110       (algebraMap (PowerSeries κ) (LaurentSeries κ) f) = _ at h
111   simpa [LinearMap.compDer] using h
112 
113 /-- The derivative of the dehomogenized ratio `q_(i+1) / q_0` is the
114 dehomogenization of the projective derivative column. -/
115 theorem extendPowerSeriesDerivation_dehomogenizedPoint
116     (D : Derivation k (PowerSeries κ) (PowerSeries κ))
117     (q : Fin (n + 1) → PowerSeries κ) (hq0 : q 0 ≠ 0) (i : Fin n) :
118     letI : Module k (LaurentSeries κ) := Algebra.toModule
119     letI : SMul k (LaurentSeries κ) :=
120       (Algebra.toModule : Module k (LaurentSeries κ)).toSMul
121     letI : IsScalarTower k (PowerSeries κ) (LaurentSeries κ) :=
122       algebraModule_powerSeriesLaurentTower
123     extendPowerSeriesDerivation D
124         (dehomogenizedPoint (laurentColumn q) i) =
125       dehomogenizedTangentColumn (laurentColumn q)
126         (laurentColumn (fun a ↦ D (q a))) i := by
127   letI : Module k (LaurentSeries κ) := Algebra.toModule
128   letI : SMul k (LaurentSeries κ) :=
129     (Algebra.toModule : Module k (LaurentSeries κ)).toSMul
130   letI : IsScalarTower k (PowerSeries κ) (LaurentSeries κ) :=
131     algebraModule_powerSeriesLaurentTower
132   let E := extendPowerSeriesDerivation D
133   have hq (a : Fin (n + 1)) :
134       E (laurentColumn q a) = laurentColumn (fun b ↦ D (q b)) a := by
135     exact extendPowerSeriesDerivation_on_powerSeries D (q a)
136   have hden : laurentColumn q 0 ≠ 0 :=
137     laurentColumn_ne_zero_of_ne_zero q hq0
138   change E (laurentColumn q i.succ / laurentColumn q 0) = _
139   rw [Derivation.leibniz_div E]
140   rw [hq i.succ, hq 0]
141   simp only [dehomogenizedTangentColumn_apply, laurentColumn, smul_eq_mul]
142   field_simp [hden]
143 
144 /-- Any derivation direction of the completed chart is tangent to the actual
145 affine equation ideal at the Laurent point, provided those equations vanish
146 there. -/
147 theorem derivation_chartVector_mem_zariskiTangentSpace
148     {n : ℕ} (I : Ideal (MvPolynomial (Fin n) k))
149     (q : Fin (n + 1) → PowerSeries κ) (hq0 : q 0 ≠ 0)
150     (D : Derivation k (PowerSeries κ) (PowerSeries κ))
151     (hbase : ∀ f ∈ I,
152       MvPolynomial.eval₂ (algebraMap k (LaurentSeries κ))
153         (dehomogenizedPoint (laurentColumn q)) f = 0) :
154     dehomogenizedTangentColumn (laurentColumn q)
155         (laurentColumn (fun a ↦ D (q a))) ∈
156         zariskiTangentSpace (dehomogenizedPoint (laurentColumn q))
157         (I.map (MvPolynomial.map (algebraMap k (LaurentSeries κ)))) := by
158   letI : Module k (LaurentSeries κ) := Algebra.toModule
159   letI : SMul k (LaurentSeries κ) :=
160     (Algebra.toModule : Module k (LaurentSeries κ)).toSMul
161   letI : IsScalarTower k (PowerSeries κ) (LaurentSeries κ) :=
162     algebraModule_powerSeriesLaurentTower
163   have htan := derivationVector_mem_zariskiTangentSpace_of_eval₂_eq_zero
164     (k := k) (S := LaurentSeries κ) (extendPowerSeriesDerivation D)
165     I (dehomogenizedPoint (laurentColumn q)) hbase
166   have hEq :
167       (fun i ↦ extendPowerSeriesDerivation D
168         (dehomogenizedPoint (laurentColumn q) i)) =
169       dehomogenizedTangentColumn (laurentColumn q)
170         (laurentColumn (fun a ↦ D (q a))) := by
171     funext i
172     exact extendPowerSeriesDerivation_dehomogenizedPoint D q hq0 i
173   rw [← hEq]
174   exact htan
175 
176 /-- The coefficientwise residue derivations give actual affine tangent
177 vectors at the dehomogenized Laurent point. -/
178 theorem coefficientwise_chartVector_mem_zariskiTangentSpace
179     {n : ℕ} (I : Ideal (MvPolynomial (Fin n) k))
180     (q : Fin (n + 1) → PowerSeries κ) (hq0 : q 0 ≠ 0)
181     (D : Derivation k κ κ)
182     (hbase : ∀ f ∈ I,
183       MvPolynomial.eval₂ (algebraMap k (LaurentSeries κ))
184         (dehomogenizedPoint (laurentColumn q)) f = 0) :
185     dehomogenizedTangentColumn (laurentColumn q)
186         (laurentColumn (fun a ↦ coefficientwiseDerivation D (q a))) ∈
187       zariskiTangentSpace (dehomogenizedPoint (laurentColumn q))
188         (I.map (MvPolynomial.map (algebraMap k (LaurentSeries κ)))) :=
189   derivation_chartVector_mem_zariskiTangentSpace I q hq0
190     (coefficientwiseDerivation D) hbase
191 
192 /-- The uniformizer derivative also gives an actual affine tangent vector. -/
193 theorem uniformizer_chartVector_mem_zariskiTangentSpace
194     {n : ℕ} (I : Ideal (MvPolynomial (Fin n) k))
195     (q : Fin (n + 1) → PowerSeries κ) (hq0 : q 0 ≠ 0)
196     (hbase : ∀ f ∈ I,
197       MvPolynomial.eval₂ (algebraMap k (LaurentSeries κ))
198         (dehomogenizedPoint (laurentColumn q)) f = 0) :
199     dehomogenizedTangentColumn (laurentColumn q)
200         (laurentColumn (fun a ↦ uniformizerDerivation (k := k) (K := κ) (q a))) ∈
201       zariskiTangentSpace (dehomogenizedPoint (laurentColumn q))
202         (I.map (MvPolynomial.map (algebraMap k (LaurentSeries κ)))) :=
203   derivation_chartVector_mem_zariskiTangentSpace I q hq0
204     (uniformizerDerivation (k := k) (K := κ)) hbase
205 
206 #print axioms extendPowerSeriesDerivation
207 #print axioms derivation_chartVector_mem_zariskiTangentSpace
208 #print axioms coefficientwise_chartVector_mem_zariskiTangentSpace
209 #print axioms uniformizer_chartVector_mem_zariskiTangentSpace
210 
211 end
212 
213 end Stafford38.Geometry.PaperLaurentChartDerivation
214