Stafford38/Geometry/SameWitness/CommonOpenColumns.lean

This project (Stafford38) · 1029fdb382eee06e7b59bcf32801f40931e2079a

1 module
2 public import Stafford38.Geometry.SameWitness.CommonOpenArcDerivatives
3 public import Stafford38.Geometry.CommonOpenEvaluation
4 
5 @[expose] public section
6 
7 set_option autoImplicit false
8 set_option maxHeartbeats 1600000
9 set_option linter.style.haveILetI false
10 
11 noncomputable section
12 
13 namespace Stafford38.Geometry.SameWitness
14 
15 open Stafford38.Geometry.EtaleCotangentBasis
16 open Stafford38.Geometry.ActualCommonOpenCompletionDerivation
17 open Stafford38.Geometry.SelectedResidueCoefficientLocalization
18 open Stafford38.Geometry.ActualOptionColumnBinding
19 open Stafford38.Geometry.ActualSelectedNormalizationChartTransport
20 open Stafford38.Geometry.ComponentProjectiveClosure
21 open Stafford38.Geometry.ActualOptionCommonOpenColumns
22 open Stafford38.Geometry.ActualSelectedNormalizationDivisorEtale
23 open Stafford38.Geometry.CommonOpenEvaluation
24 open Stafford38.Geometry.EtaleGenericOpenTransport
25 open Stafford38.Geometry.GeneralDivisorialVisibleFrame
26 open Stafford38.Geometry.HomogenizedAffineEvaluation
27 open Stafford38.Geometry.PrescribedGroundPointUnitPowerChart
28 open Stafford38.Geometry.SmoothLocalTiltedArcAxisLift
29 open Stafford38.Geometry.LocalizedProjectiveChartTransition
30 
31 universe u
32 
33 /-- The retained witness columns satisfy the common-open derivative and
34 selected-numerator identities required by the endpoint. -/
35 structure CommonOpenColumnsData
36     {k : Type u} [Field k] [CharZero k] [IsAlgClosed k]
37     {m : ℕ} (hm : 0 < m)
38     (P : PrimeSpectrum (MvPolynomial (Fin m) k))
39     (w : GeneralDivisorialVisibleFrameWitness hm P)
40     (setup : ChartSetup hm P w)
41     (coords : CoordinatePresentation hm P w setup)
42     (arc : CommonOpenArcData hm P w setup coords)
43     (etale : CommonOpenEtaleData hm P w setup coords arc)
44     (positions : CommonOpenPositionData hm P w setup coords arc) : Prop where
45   derivatives : CommonOpenDerivativeData etale.ψU etale.hψEtale arc.rhoU
46     arc.hgroundU arc.common.alpha positions.qPre arc.common.qU
47   hnumerator : MvPolynomial.eval positions.qL
48       (MvPolynomial.map (algebraMap k (LaurentSeries k))
49         (homogenizeAtZero setup.p)) ≠ 0
50 
51 variable {k : Type u} [Field k] [CharZero k] [IsAlgClosed k]
52   {m : ℕ} {hm : 0 < m} {P : PrimeSpectrum (MvPolynomial (Fin m) k)}
53   {w : GeneralDivisorialVisibleFrameWitness hm P} {setup : ChartSetup hm P w}
54   {coords : CoordinatePresentation hm P w setup}
55   {arc : CommonOpenArcData hm P w setup coords}
56   {etale : CommonOpenEtaleData hm P w setup coords arc}
57   {positions : CommonOpenPositionData hm P w setup coords arc}
58 
59 /-- The transverse derivative identity retained by the abstract certificate. -/
60 abbrev CommonOpenColumnsData.htransverse
61     (data : CommonOpenColumnsData hm P w setup coords arc etale positions) :=
62   data.derivatives.htransverse
63 
64 /-- The raw derivative identity retained by the abstract certificate. -/
65 abbrev CommonOpenColumnsData.hraw
66     (data : CommonOpenColumnsData hm P w setup coords arc etale positions) :=
67   data.derivatives.hraw
68 
69 /-- Homogenized evaluation of the retained projective column is the selected
70 chart numerator, which stays nonzero on the common-open Laurent arc. -/
71 theorem commonOpen_selectedNumerator_ne_zero
72     {k : Type u} [Field k] [CharZero k] [IsAlgClosed k]
73     {m : ℕ} (hm : 0 < m)
74     (P : PrimeSpectrum (MvPolynomial (Fin m) k))
75     (w : GeneralDivisorialVisibleFrameWitness hm P)
76     (setup : ChartSetup hm P w)
77     (coords : CoordinatePresentation hm P w setup)
78     (arc : CommonOpenArcData hm P w setup coords)
79     (etale : CommonOpenEtaleData hm P w setup coords arc)
80     (positions : CommonOpenPositionData hm P w setup coords arc) :
81     MvPolynomial.eval positions.qL
82       (MvPolynomial.map (algebraMap k (LaurentSeries k))
83         (homogenizeAtZero setup.p)) ≠ 0 := by
84   classical
85   letI : arc.common.M.IsMaximal := arc.common.hM
86   let B := actualSelectedNormalization P w
87   let F := ComponentFractionField P
88   let qB : Fin (m + 1) → B := actualNormalizedProjectiveColumnInIntegralClosure hm P w
89   have hqBspec := actualNormalizedProjectiveColumnInIntegralClosure_spec hm P w
90   have hqBf : ∀ a, (qB a : F) = (w.column.q a : F) := hqBspec.2.1
91   have hgroundCoeff : (algebraMap B F).comp coords.coeff = algebraMap k F := by
92     ext c
93     change ((coords.coeff c : B) : F) = algebraMap k F c
94     rw [coords.hcoeff]
95     rfl
96   have hEvalB : MvPolynomial.eval₂ coords.coeff qB
97       (homogenizeAtZero setup.p) = algebraMap
98         (actualSelectedChartAlgebra P w) B setup.r := by
99     apply Subtype.ext
100     change algebraMap B F (MvPolynomial.eval₂ coords.coeff qB
101       (homogenizeAtZero setup.p)) = (setup.r : F)
102     calc
103       _ = MvPolynomial.eval₂ ((algebraMap B F).comp coords.coeff)
104           (fun a => algebraMap B F (qB a)) (homogenizeAtZero setup.p) := by
105             exact (MvPolynomial.eval₂_comp_left (algebraMap B F)
106               coords.coeff qB (homogenizeAtZero setup.p))
107       _ = MvPolynomial.eval₂ (algebraMap k F)
108           (fun a => (w.column.q a : F)) (homogenizeAtZero setup.p) := by
109             rw [hgroundCoeff]
110             congr 1
111             funext a
112             exact hqBf a
113       _ = MvPolynomial.eval (fun a => (w.column.q a : F))
114           (MvPolynomial.map (algebraMap k F) (homogenizeAtZero setup.p)) := by
115             exact (MvPolynomial.eval_map (algebraMap k F)
116               (fun a => (w.column.q a : F)) (homogenizeAtZero setup.p)).symm
117       _ = (setup.r : F) := setup.hrF.symm
118   have hEval := @eval_map_eq_arc_eval₂ k B arc.common.U (LaurentSeries k)
119     (Fin (m + 1)) _ _ _ _ coords.coeff.toAlgebra inferInstance
120     (genericOpenExtraAwayBMap arc.common.M setup.f setup.e arc.common.g) arc.rhoU
121     arc.hgroundB' qB arc.common.qU positions.qL
122     positions.hcoords positions.hpositionL (homogenizeAtZero setup.p)
123   have hEval' : MvPolynomial.eval positions.qL
124       (MvPolynomial.map (algebraMap k (LaurentSeries k))
125         (homogenizeAtZero setup.p)) =
126       arc.rhoU (genericOpenExtraAwayBMap arc.common.M setup.f setup.e
127         arc.common.g (MvPolynomial.eval₂ coords.coeff qB (homogenizeAtZero setup.p))) := hEval
128   rw [hEval', hEvalB]
129   exact arc.hrU
130 
131 /-- Derive the endpoint derivative and numerator facts from the retained
132 point-local columns without installing scalar actions on selected rings. -/
133 theorem commonOpenColumnsData_of_arc
134     {k : Type u} [Field k] [CharZero k] [IsAlgClosed k]
135     {m : ℕ} (hm : 0 < m)
136     (P : PrimeSpectrum (MvPolynomial (Fin m) k))
137     (w : GeneralDivisorialVisibleFrameWitness hm P)
138     (setup : ChartSetup hm P w)
139     (coords : CoordinatePresentation hm P w setup)
140     (arc : CommonOpenArcData hm P w setup coords)
141     (etale : CommonOpenEtaleData hm P w setup coords arc)
142     (positions : CommonOpenPositionData hm P w setup coords arc) :
143     CommonOpenColumnsData hm P w setup coords arc etale positions := by
144   exact ⟨commonOpen_arcDerivativeData hm P w setup coords arc etale positions,
145     commonOpen_selectedNumerator_ne_zero hm P w setup coords arc etale positions⟩
146 
147 end Stafford38.Geometry.SameWitness
148 
149 end
150