Stafford38/Geometry/PaperSameWitnessComponentFieldRank.lean

This project (Stafford38) · 1029fdb382eee06e7b59bcf32801f40931e2079a

1 module
2 public import Stafford38.Geometry.GeneralDivisorialVisibleFrame
3 public import Stafford38.Geometry.PaperVisibleFrameFieldRank
4 public import Stafford38.Geometry.PaperResidueGroundAlgebraTransport
5 public import Stafford38.Geometry.PaperGenericTangentRank
6 public import Stafford38.Geometry.RetainedPlaceConormalTransport
7 public import Stafford38.Geometry.ScalarExtensionPoints
8 public import Stafford38.Geometry.FormalDivisorLaurentConormal
9 
10 @[expose] public section
11 
12 set_option autoImplicit false
13 set_option maxHeartbeats 12000000
14 set_option synthInstance.maxHeartbeats 500000
15 
16 namespace Stafford38.Geometry.PaperSameWitnessComponentFieldRank
17 
18 open IsLocalRing
19 open Stafford38.Geometry.AffineComponentCoordinateSplit
20 open Stafford38.Geometry.AsymptoticDivisorExistence
21 open Stafford38.Geometry.ComponentProjectiveClosure
22 open Stafford38.Geometry.ComponentProjectiveClosureNormalization
23 open Stafford38.Geometry.ExactDivisorialVisibleFrameExistence
24 open Stafford38.Geometry.ComponentFunctionFieldBoundary
25 open Stafford38.Geometry.ExactVisibleDivisorFrameInterface
26 open Stafford38.Geometry.KaehlerDVRVisibility
27 open Stafford38.Geometry.LaurentConormalResidueExtension
28 open Stafford38.Geometry.RelativeCoefficientDVR
29 open Stafford38.Geometry.RetainedGroundMapIdentification
30 open Stafford38.Geometry.RetainedDVR
31 open Stafford38.Geometry.RetainedPlaceConormalTransport
32 open Stafford38.Geometry.RetainedProjectiveCompletion
33 open Stafford38.Geometry.ScalarExtensionPoints
34 open Stafford38.Geometry.DivisorTangentLattice
35 open Stafford38.Geometry.PaperGenericTangentRank
36 open Stafford38.Geometry.GeneralDivisorialVisibleFrame
37 
38 noncomputable section
39 universe u
40 
41 /-- The same-witness component-field Kähler rank bound, isolated from the
42 larger completed-chart tangent transport. -/
43 theorem component_field_rank_of_witness
44     {k : Type u} [Field k] [CharZero k]
45     {m : ℕ} (hm : 0 < m)
46     (P : PrimeSpectrum (MvPolynomial (Fin m) k))
47     (w : GeneralDivisorialVisibleFrameWitness hm P) :
48     let C := w.column
49     let W := C.W
50     let F := ComponentFractionField P
51     letI : Algebra (CoordinateZeroLocalRing W.coefficientField) F := W.ambientAlgebra
52     let V := W.place.valuation.toSubring
53     letI : IsDiscreteValuationRing V := W.place.isDiscrete
54     letI : IsLocalRing V := W.place.isDiscrete.toIsLocalRing
55     letI : Algebra W.coefficientField V :=
56       (relativeCoefficientMap W.coefficientField W.place).toAlgebra
57     let κ := ResidueField V
58     letI : Algebra k κ := retainedResidueGroundAlgebra P ⟨0, hm⟩ W
59     let E := LaurentSeries κ
60     letI : Algebra k E := (groundLaurentMap (k := k) (K := κ)).toAlgebra
61     letI : SMul k E := (inferInstance : Algebra k E).toSMul
62     letI : Module k E := (inferInstance : Algebra k E).toModule
63     let lift := retainedLaurentLift P ⟨0, hm⟩ W
64     letI : Algebra F E := lift.toAlgebra
65     letI : Algebra k F := inferInstance
66     letI : SMul k F := (inferInstance : Algebra k F).toSMul
67     letI : Module k F := (inferInstance : Algebra k F).toModule
68     Module.finrank F (Ω[F⁄k]) ≤ Module.finrank κ (Ω[κ⁄k]) + 1 := by
69   dsimp only
70   let C := w.column
71   let W := C.W
72   let F := ComponentFractionField P
73   letI : Algebra (CoordinateZeroLocalRing W.coefficientField) F := W.ambientAlgebra
74   let V := W.place.valuation.toSubring
75   let i₀ : Fin m := ⟨0, hm⟩
76   letI : IsDiscreteValuationRing V := W.place.isDiscrete
77   letI : IsLocalRing V := W.place.isDiscrete.toIsLocalRing
78   letI : Algebra W.coefficientField V :=
79     (relativeCoefficientMap W.coefficientField W.place).toAlgebra
80   letI : Algebra k V := C.groundCoeff.toAlgebra
81   letI : Algebra V F := V.subtype.toAlgebra
82   letI : IsScalarTower k V F := C.groundTower
83   let κ := ResidueField V
84   let retainedResidueAlgebra : Algebra k κ :=
85     retainedResidueGroundAlgebra P i₀ W
86   let canonicalResidueAlgebra : Algebra k κ :=
87     ((residue V).comp C.groundCoeff).toAlgebra
88   letI : Algebra k κ := retainedResidueAlgebra
89   have hretainedMap :
90       @algebraMap k κ _ _ retainedResidueAlgebra =
91         (residue V).comp C.groundCoeff := by
92     simpa [C, W, V, κ, C.groundCoeff_eq_retained] using w.retainedGroundMap
93   have hMap :
94       @algebraMap k κ _ _ retainedResidueAlgebra =
95         @algebraMap k κ _ _ canonicalResidueAlgebra := by
96     calc
97       _ = (residue V).comp C.groundCoeff := hretainedMap
98       _ = _ := rfl
99   have hresidueAlgebra :
100       retainedResidueAlgebra = canonicalResidueAlgebra := by
101     exact Algebra.algebra_ext _ _ (RingHom.congr_fun hMap)
102   let E := LaurentSeries κ
103   letI : Algebra k E := (groundLaurentMap (k := k) (K := κ)).toAlgebra
104   letI : SMul k E := (inferInstance : Algebra k E).toSMul
105   letI : Module k E := (inferInstance : Algebra k E).toModule
106   let lift := retainedLaurentLift P i₀ W
107   letI : Algebra F E := lift.toAlgebra
108   letI : Algebra k F := inferInstance
109   letI : SMul k F := (inferInstance : Algebra k F).toSMul
110   letI : Module k F := (inferInstance : Algebra k F).toModule
111   have hground := retainedLaurentLift_comp_algebraMap P i₀ W
112   letI : IsScalarTower k F E := IsScalarTower.of_algebraMap_eq fun c ↦ by
113     have h := congrArg (fun f : k →+* E ↦ f c) hground
114     change (groundLaurentMap (k := k) (K := κ)) c =
115       lift (algebraMap k F c)
116     exact h.symm
117   let D := w.differential.core.D
118   have himage : ∀ ω : Ω[V⁄k],
119       KaehlerDifferential.map k k V F ω ∈ D.W := by
120     intro ω
121     rw [w.differential.sourceImage.D_sourceImage]
122     exact ⟨ω, rfl⟩
123   have hcoordinate : ∀ j : Fin m,
124       componentCoordinate P j =
125         algebraMap V F (D.Q j) / algebraMap V F D.Q₀ := by
126     have hq0F : (C.q 0 : F) ≠ 0 := by
127       intro h
128       apply C.q0_ne
129       exact Subtype.ext h
130     have hdiv : ∀ j : Fin m,
131         componentCoordinate P j =
132           algebraMap V F (C.q j.succ) / algebraMap V F (C.q 0) := by
133       intro j
134       exact (componentCoordinate_eq_div P (fun a ↦ (C.q a : F))
135         C.scale C.q_commonScale hq0F j).symm
136     intro j
137     rw [w.differential.core.D_Q j, w.differential.core.D_Q0]
138     exact hdiv j
139   have hD_Q_values :
140       (fun j : Fin m ↦ residue V (D.Q j)) =
141         (fun j : Fin m ↦ residue V (C.q (Fin.succ j))) := by
142     funext j
143     exact congrArg (residue V) (w.differential.core.D_Q j)
144   have hD_Q_range :
145       Set.range (fun j : Fin m ↦ residue V (D.Q j)) =
146         Set.range (fun j : Fin m ↦ residue V (C.q (Fin.succ j))) :=
147     congrArg Set.range hD_Q_values
148   have halgRetained : letI : Algebra k κ := retainedResidueAlgebra;
149       Algebra.IsAlgebraic
150       (IntermediateField.adjoin k
151         (Set.range fun j : Fin m ↦ residue V (D.Q j)) :
152         IntermediateField k κ) κ := by
153     rw [hD_Q_range]
154     exact w.halg
155   have halgCanonical : letI : Algebra k κ := canonicalResidueAlgebra;
156       Algebra.IsAlgebraic
157       (IntermediateField.adjoin k
158         (Set.range fun j : Fin m ↦ residue V (D.Q j)) :
159         IntermediateField k κ) κ :=
160     PaperResidueGroundAlgebraTransport.algebraic_adjoin_transfer_of_algebra_eq
161       retainedResidueAlgebra canonicalResidueAlgebra hresidueAlgebra
162       (Set.range fun j : Fin m ↦ residue V (D.Q j)) halgRetained
163   have hRankCanonical : letI : Algebra k κ := canonicalResidueAlgebra;
164       Module.finrank F (Ω[F⁄k]) ≤ Module.finrank κ (Ω[κ⁄k]) + 1 := by
165     letI : Algebra k κ := canonicalResidueAlgebra
166     exact @Stafford38.Geometry.PaperVisibleFrameFieldRank.component_fraction_field_rank_bound
167       k V F inferInstance inferInstance inferInstance inferInstance inferInstance
168       (C.groundCoeff.toAlgebra) inferInstance (V.subtype.toAlgebra)
169       C.groundTower (Fin m) inferInstance D w.differential.core.D_maximalIdeal
170       himage halgCanonical (componentCoordinate P) hcoordinate
171       (componentCoordinate_adjoin_eq_top P)
172   have hResidueRankEq :=
173     PaperResidueGroundAlgebraTransport.kaehler_finrank_eq_of_algebra_eq
174       retainedResidueAlgebra canonicalResidueAlgebra hresidueAlgebra
175   change Module.finrank F (Ω[F⁄k]) ≤
176     (letI : Algebra k κ := retainedResidueAlgebra;
177       Module.finrank κ (Ω[κ⁄k])) + 1
178   rw [hResidueRankEq]
179   exact hRankCanonical
180 
181 #print axioms component_field_rank_of_witness
182 
183 end
184 end Stafford38.Geometry.PaperSameWitnessComponentFieldRank
185