Stafford38/Geometry/DirectSummandInputOfActualChart.lean

This project (Stafford38) · 1029fdb382eee06e7b59bcf32801f40931e2079a

1 module
2 public import Stafford38.Geometry.NormalizedLatticeProjectiveConeAdapter
3 public import Stafford38.Geometry.GeneralTangentLimitCriterion
4 public import Stafford38.Geometry.FormalDivisorLaurentConormal
5 
6 @[expose] public section
7 
8 set_option autoImplicit false
9 set_option maxHeartbeats 3000000
10 
11 namespace Stafford38.Geometry.DirectSummandInputOfActualChart
12 
13 open Stafford38.Geometry.ProjectiveConormalDehomogenization
14 open Stafford38.Geometry.GeneralTangentLimitCriterion
15 open Stafford38.Geometry.PaperDivisorTangent
16 open Stafford38.Geometry.EtaleCotangentBasis
17 open Stafford38.Geometry.AffineConormalSpan
18 open Stafford38.Geometry.SmoothAffineConormal
19 open Stafford38.Geometry.ScalarExtensionPoints
20 open Stafford38.GeometryFormalDivisorTangent
21 open Stafford38.Geometry.FormalDivisorLaurentConormal
22 open Stafford38.GeometrySplitTangentMatrix
23 open Stafford38.Geometry.NormalizedLatticeProjectiveConeAdapter
24 
25 noncomputable section
26 
27 universe u
28 
29 variable {k E : Type u} [Field k] [CommRing E] {n d : ℕ}
30 variable {I : Ideal (MvPolynomial (Fin n) k)}
31 variable [Algebra k E]
32 variable [Algebra (MvPolynomial (Fin n) k ⧸ I) E]
33 variable [Algebra (MvPolynomial (Fin n) k) E]
34 variable [Algebra (MvPolynomial (Option (Fin d)) k) E]
35 variable [IsScalarTower k (MvPolynomial (Fin n) k ⧸ I) E]
36 variable [IsScalarTower k (MvPolynomial (Fin n) k) E]
37 variable [IsScalarTower k (MvPolynomial (Option (Fin d)) k) E]
38 variable [IsScalarTower (MvPolynomial (Fin n) k)
39   (MvPolynomial (Fin n) k ⧸ I) E]
40 variable [Algebra.FormallyEtale (MvPolynomial (Fin n) k ⧸ I) E]
41 variable [Algebra.FormallyEtale (MvPolynomial (Option (Fin d)) k) E]
42 
43 /-- Package the actual selected chart columns with the normalized lattice
44 certificate. The Laurent generic-fibre equality is derived from the same
45 chart's position, transverse, and raw-velocity identities; no tangent-cone
46 identity is supplied as a hypothesis. -/
47 theorem directSummandInput_of_actual_chart_columns
48     (rho : E →+* LaurentSeries k)
49     (hground : rho.comp (algebraMap k E) = algebraMap k (LaurentSeries k)) :
50     letI : Algebra E (LaurentSeries k) :=
51       RingHom.toAlgebra' rho (by intro x y; exact mul_comm _ _)
52     letI : Algebra k (LaurentSeries k) :=
53       RingHom.toAlgebra' (algebraMap k (LaurentSeries k))
54         (by intro x y; exact mul_comm _ _)
55     letI : Module k (LaurentSeries k) := Algebra.toModule
56     letI : SMul k (LaurentSeries k) :=
57       (Algebra.toModule : Module k (LaurentSeries k)).toSMul
58     letI : IsScalarTower k E (LaurentSeries k) :=
59       IsScalarTower.of_algebraMap_eq' hground.symm
60     ∀ (qC : Fin (n + 1) → E)
61     (q : Fin (n + 1) → PowerSeries k)
62     (Z : Matrix (Fin (n + 1)) (Fin d) (PowerSeries k))
63     (tau : Fin (n + 1) → PowerSeries k)
64     (alpha : Fin d → PowerSeries k) (c : ℕ)
65     (hcorrection : ∀ i, PowerSeries.derivative (R := k) (q i) - Z.mulVec alpha i =
66       (PowerSeries.X : PowerSeries k) ^ c * tau i)
67     (hposition : ∀ i, rho (qC i) =
68       algebraMap (PowerSeries k) (LaurentSeries k) (q i))
69     (htransverse : ∀ j i,
70       coordinateDerivation (k := k) (σ := Option (Fin d)) (B := E)
71         (L := LaurentSeries k) (some j) (qC i) =
72         algebraMap (PowerSeries k) (LaurentSeries k) (Z i j))
73     (hraw : ∀ i, algebraMap (PowerSeries k) (LaurentSeries k)
74         (PowerSeries.derivative (R := k) (q i)) =
75       coordinateDerivation (k := k) (σ := Option (Fin d)) (B := E)
76         (L := LaurentSeries k) none (qC i) +
77         ∑ j : Fin d, algebraMap (PowerSeries k) (LaurentSeries k) (alpha j) *
78           coordinateDerivation (k := k) (σ := Option (Fin d)) (B := E)
79             (L := LaurentSeries k) (some j) (qC i))
80     (hq0chart : algebraMap E (LaurentSeries k) (qC 0) ≠ 0)
81     (hchart : ∀ i, qC i.succ = qC 0 *
82       algebraMap (MvPolynomial (Fin n) k ⧸ I) E
83         (Ideal.Quotient.mk I (MvPolynomial.X i)))
84     (chart : Fin (n + 1)) (hqchart : q chart = 1)
85     (hq0 : q 0 ≠ 0)
86     (axis : Fin n)
87     (C : Matrix (FormalTangentColumn (Fin d)) (Fin (n + 1)) (PowerSeries k))
88     (hCB : C * formalTangentMatrix q Z tau = 1)
89     (haxis : ∀ j, PowerSeries.constantCoeff
90       (formalTangentMatrix q Z tau axis.succ j) = 0)
91     (hprime : I.IsPrime)
92     (hclosure : dehomogenizedPoint (laurentColumn q) ∈
93       MvPolynomial.zeroLocus (LaurentSeries k)
94         (I.map (scalarPolynomialMap (k := k) (K := LaurentSeries k) (Fin n))))
95     (hsmooth : SmoothAffinePoint
96       (I.map (scalarPolynomialMap (k := k) (K := LaurentSeries k) (Fin n)))
97       (dehomogenizedPoint (laurentColumn q))),
98     ∃ D : DirectSummandInput (dimY := d + 1) I q
99       (normalizedTangentLattice q Z tau), D.axis = axis := by
100   intro qC q Z tau alpha c hcorrection hposition htransverse hraw
101     hq0chart hchart chart hqchart hq0 axis C hCB haxis hprime hclosure hsmooth
102   have hcone := genericFibre_normalizedTangentLattice_eq_actualProjectiveTangentCone
103     (rho := rho) hground q Z tau alpha c hcorrection qC
104     hposition htransverse hraw hq0chart hchart
105   have hq0Laurent : laurentColumn q 0 ≠ 0 :=
106     laurentColumn_ne_zero_of_ne_zero q hq0
107   have harc : FormalProjectiveArcInClosure I q := by
108     refine ⟨⟨chart, ?_⟩, ?_⟩
109     · rw [hqchart]
110       exact isUnit_one
111     · exact (projectiveClosureAtZero_iff
112         (I.map (scalarPolynomialMap (k := k) (K := LaurentSeries k) (Fin n)))
113         (laurentColumn q) hq0Laurent).mpr hclosure
114   have hcomplemented : IsComplemented (normalizedTangentLattice q Z tau) :=
115     normalizedTangentLattice_isComplemented q Z tau C hCB
116   have hrank := normalizedTangentLattice_finrank q Z tau C hCB
117   have hpoint : (fun i => rho (qC i)) = laurentColumn q := by
118     funext i
119     exact hposition i
120   have hgenericTangentCone : genericFibre (K := LaurentSeries k)
121       (normalizedTangentLattice q Z tau) =
122       projectiveTangentCone (laurentColumn q)
123         (zariskiTangentSpace (dehomogenizedPoint (laurentColumn q))
124           (I.map (scalarPolynomialMap (k := k) (K := LaurentSeries k) (Fin n)))) := by
125     simpa [hpoint, scalarPolynomialMap] using hcone
126   refine ⟨⟨axis, hcomplemented, ?_, hprime, hq0, harc, hsmooth,
127     hgenericTangentCone, normalizedTangentLattice_residue_axis q Z tau axis haxis⟩, rfl⟩
128   rw [hrank]
129   simp [FormalTangentColumn]
130   omega
131 
132 end
133 end Stafford38.Geometry.DirectSummandInputOfActualChart
134