Stafford38/Geometry/GeneralDivisorialVisibleFrameCoreData.lean

This project (Stafford38) · 1029fdb382eee06e7b59bcf32801f40931e2079a

1 module
2 public import Stafford38.Geometry.GeneralDivisorialVisibleFrameColumn
3 
4 @[expose] public section
5 
6 set_option autoImplicit false
7 
8 namespace Stafford38.Geometry.GeneralDivisorialVisibleFrame
9 
10 open IsLocalRing Polynomial
11 open Stafford38
12 open Stafford38.Geometry.AsymptoticDivisorExistence
13 open Stafford38.Geometry.AffineComponentCoordinateSplit
14 open Stafford38.Geometry.ComponentFunctionFieldBoundary
15 open Stafford38.Geometry.ComponentProjectiveClosure
16 open Stafford38.Geometry.ComponentProjectiveClosureNormalization
17 open Stafford38.Geometry.CompletedDVRPowerSeries
18 open Stafford38.Geometry.DivisorTangentLattice
19 open Stafford38.Geometry.RelativeCoefficientDVR
20 open Stafford38.Geometry.RelativeRetainedBoundaryPlace
21 open Stafford38.Geometry.RetainedGroundMapIdentification
22 
23 noncomputable section
24 
25 set_option maxHeartbeats 4000000
26 set_option synthInstance.maxHeartbeats 400000
27 
28 universe u
29 
30 /-! These reducible aliases share the repeated local-algebra context for
31 the frame and the three coordinate equalities.  The maximal-ideal and
32 unit fields below stay inline because their dependent `D` binders otherwise
33 fail to elaborate at the producer boundary. -/
34 namespace GeneralDivisorialVisibleFrameCoreFieldType
35 
36 abbrev frame
37     {k : Type u} [Field k] [CharZero k]
38     {m : ℕ} (hm : 0 < m)
39     (P : PrimeSpectrum (MvPolynomial (Fin m) k))
40     (C : GeneralDivisorialVisibleFrameColumn hm P) :=
41   letI : Algebra (CoordinateZeroLocalRing C.W.coefficientField)
42       (ComponentFractionField P) := C.W.ambientAlgebra
43   let V := C.W.place.valuation.toSubring
44   letI : IsLocalRing V := C.W.place.isDiscrete.toIsLocalRing
45   letI : Algebra C.W.coefficientField V :=
46       (relativeCoefficientMap C.W.coefficientField C.W.place).toAlgebra
47   letI : Algebra k V := C.groundCoeff.toAlgebra
48   letI : Algebra V (ComponentFractionField P) := V.subtype.toAlgebra
49   letI : IsScalarTower k V (ComponentFractionField P) := C.groundTower
50   VisibleDivisorFrame (V := V)
51     (KaehlerDifferential.D k (ComponentFractionField P)) (Fin m)
52 
53 abbrev q0
54     {k : Type u} [Field k] [CharZero k]
55     {m : ℕ} (hm : 0 < m)
56     (P : PrimeSpectrum (MvPolynomial (Fin m) k))
57     (C : GeneralDivisorialVisibleFrameColumn hm P)
58     (D : frame hm P C) :=
59   letI : Algebra (CoordinateZeroLocalRing C.W.coefficientField)
60       (ComponentFractionField P) := C.W.ambientAlgebra
61   let V := C.W.place.valuation.toSubring
62   letI : IsLocalRing V := C.W.place.isDiscrete.toIsLocalRing
63   letI : Algebra C.W.coefficientField V :=
64       (relativeCoefficientMap C.W.coefficientField C.W.place).toAlgebra
65   letI : Algebra k V := C.groundCoeff.toAlgebra
66   letI : Algebra V (ComponentFractionField P) := V.subtype.toAlgebra
67   letI : IsScalarTower k V (ComponentFractionField P) := C.groundTower
68   D.Q₀ = C.q 0
69 
70 abbrev q1
71     {k : Type u} [Field k] [CharZero k]
72     {m : ℕ} (hm : 0 < m)
73     (P : PrimeSpectrum (MvPolynomial (Fin m) k))
74     (C : GeneralDivisorialVisibleFrameColumn hm P)
75     (D : frame hm P C) :=
76   letI : Algebra (CoordinateZeroLocalRing C.W.coefficientField)
77       (ComponentFractionField P) := C.W.ambientAlgebra
78   let V := C.W.place.valuation.toSubring
79   letI : IsLocalRing V := C.W.place.isDiscrete.toIsLocalRing
80   letI : Algebra C.W.coefficientField V :=
81       (relativeCoefficientMap C.W.coefficientField C.W.place).toAlgebra
82   letI : Algebra k V := C.groundCoeff.toAlgebra
83   letI : Algebra V (ComponentFractionField P) := V.subtype.toAlgebra
84   letI : IsScalarTower k V (ComponentFractionField P) := C.groundTower
85   D.Q₁ = C.q (Fin.succ ⟨0, hm⟩)
86 
87 abbrev q
88     {k : Type u} [Field k] [CharZero k]
89     {m : ℕ} (hm : 0 < m)
90     (P : PrimeSpectrum (MvPolynomial (Fin m) k))
91     (C : GeneralDivisorialVisibleFrameColumn hm P)
92     (D : frame hm P C) :=
93   letI : Algebra (CoordinateZeroLocalRing C.W.coefficientField)
94       (ComponentFractionField P) := C.W.ambientAlgebra
95   let V := C.W.place.valuation.toSubring
96   letI : IsLocalRing V := C.W.place.isDiscrete.toIsLocalRing
97   letI : Algebra C.W.coefficientField V :=
98       (relativeCoefficientMap C.W.coefficientField C.W.place).toAlgebra
99   letI : Algebra k V := C.groundCoeff.toAlgebra
100   letI : Algebra V (ComponentFractionField P) := V.subtype.toAlgebra
101   letI : IsScalarTower k V (ComponentFractionField P) := C.groundTower
102   ∀ j, D.Q j = C.q (Fin.succ j)
103 
104 abbrev uniformizer
105     {k : Type u} [Field k] [CharZero k]
106     {m : ℕ} (hm : 0 < m)
107     (P : PrimeSpectrum (MvPolynomial (Fin m) k))
108     (C : GeneralDivisorialVisibleFrameColumn hm P)
109     (D : frame hm P C) :=
110   letI : Algebra (CoordinateZeroLocalRing C.W.coefficientField)
111       (ComponentFractionField P) := C.W.ambientAlgebra
112   let V := C.W.place.valuation.toSubring
113   letI : IsDiscreteValuationRing V := C.W.place.isDiscrete
114   letI : Algebra C.W.coefficientField V :=
115       (relativeCoefficientMap C.W.coefficientField C.W.place).toAlgebra
116   D.t = Stafford38.Geometry.CompletedDVRPowerSeries.chosenUniformizer V
117 
118 end GeneralDivisorialVisibleFrameCoreFieldType
119 
120 /-- The actual visible differential frame on the normalized column. -/
121 structure GeneralDivisorialVisibleFrameCore
122     {k : Type u} [Field k] [CharZero k]
123     {m : ℕ} (hm : 0 < m)
124     (P : PrimeSpectrum (MvPolynomial (Fin m) k))
125     (C : GeneralDivisorialVisibleFrameColumn hm P) where
126   D : GeneralDivisorialVisibleFrameCoreFieldType.frame hm P C
127   D_Q0 : GeneralDivisorialVisibleFrameCoreFieldType.q0 hm P C D
128   D_Q1 : GeneralDivisorialVisibleFrameCoreFieldType.q1 hm P C D
129   D_Q : GeneralDivisorialVisibleFrameCoreFieldType.q hm P C D
130   D_maximalIdeal :
131     letI : Algebra (CoordinateZeroLocalRing C.W.coefficientField)
132       (ComponentFractionField P) := C.W.ambientAlgebra
133     let V := C.W.place.valuation.toSubring
134     letI : IsDiscreteValuationRing V := C.W.place.isDiscrete
135     maximalIdeal V = Ideal.span {D.t}
136   D_uniformizer : GeneralDivisorialVisibleFrameCoreFieldType.uniformizer hm P C D
137   D_w_unit :
138     letI : Algebra (CoordinateZeroLocalRing C.W.coefficientField)
139       (ComponentFractionField P) := C.W.ambientAlgebra
140     let V := C.W.place.valuation.toSubring
141     letI : IsLocalRing V := C.W.place.isDiscrete.toIsLocalRing
142     IsUnit D.w
143 
144 set_option maxHeartbeats 4000000
145 
146 /-- The source Kähler image is exactly the coefficient module used by the
147 visible frame. -/
148 structure GeneralDivisorialVisibleFrameSourceImage
149     {k : Type u} [Field k] [CharZero k]
150     {m : ℕ} (hm : 0 < m)
151     (P : PrimeSpectrum (MvPolynomial (Fin m) k))
152     (C : GeneralDivisorialVisibleFrameColumn hm P)
153     (F : GeneralDivisorialVisibleFrameCore hm P C) where
154   D_sourceImage :
155     letI : Algebra (CoordinateZeroLocalRing C.W.coefficientField)
156       (ComponentFractionField P) := C.W.ambientAlgebra
157     let V := C.W.place.valuation.toSubring
158     letI : IsLocalRing V := C.W.place.isDiscrete.toIsLocalRing
159     letI : Algebra C.W.coefficientField V :=
160       (relativeCoefficientMap C.W.coefficientField C.W.place).toAlgebra
161     letI : Algebra k V := C.groundCoeff.toAlgebra
162     letI : Algebra V (ComponentFractionField P) := V.subtype.toAlgebra
163     letI : IsScalarTower k V (ComponentFractionField P) := C.groundTower
164     F.D.W = LinearMap.range (KaehlerDifferential.map k k V
165       (ComponentFractionField P))
166 
167 set_option maxHeartbeats 4000000
168 
169 /-- The differential output groups the canonical frame and the actual source
170 Kähler-image equality. -/
171 structure GeneralDivisorialVisibleFrameDifferential
172     {k : Type u} [Field k] [CharZero k]
173     {m : ℕ} (hm : 0 < m)
174   (P : PrimeSpectrum (MvPolynomial (Fin m) k))
175   (C : GeneralDivisorialVisibleFrameColumn hm P) where
176   core : GeneralDivisorialVisibleFrameCore hm P C
177   sourceImage : GeneralDivisorialVisibleFrameSourceImage hm P C core
178 
179 set_option maxHeartbeats 4000000
180 
181 
182 end
183 
184 end Stafford38.Geometry.GeneralDivisorialVisibleFrame
185