Stafford38/Geometry/CanonicalVisibleDivisorFrameProduction.lean

This project (Stafford38) · 1029fdb382eee06e7b59bcf32801f40931e2079a

1 module
2 public import Mathlib.RingTheory.Ideal.MinimalPrime.Noetherian
3 public import Stafford38.Geometry.CanonicalNonconstantFiniteGradientProduction
4 public import Stafford38.Geometry.GenericPointKaehlerConormal
5 public import Stafford38.Geometry.RetainedPlaceConormalTransport
6 
7 @[expose] public section
8 
9 /-!
10 # Transfer from a visible divisor frame to a finite-gradient certificate
11 
12 This file proves the implications from a visible divisor frame to a
13 finite-gradient certificate and the residue-extension conormal-axis
14 interface. It does not construct the frame. The canonical Weyl producer is
15 `ExactDivisorialVisibleFrameExistence`; the generic same-witness producer is
16 `GeneralDivisorialVisibleFrame`.
17 -/
18 
19 namespace Stafford38.Geometry.CanonicalVisibleDivisorFrameProduction
20 
21 open Stafford38
22 open Stafford38.Characteristic
23 open Stafford38.Characteristic.CanonicalBaseVariety
24 open Stafford38.Characteristic.ReducedSupportIdeal
25 open Stafford38.CharacteristicInitialIdeal
26 open Stafford38.Geometry.AffineComponentCoordinateSplit
27 open Stafford38.Geometry.AsymptoticDivisorExistence
28 open Stafford38.Geometry.CanonicalNonconstantFiniteGradientProduction
29 open Stafford38.Geometry.CanonicalNonconstantFiniteGradientProductionProof
30 open Stafford38.Geometry.ComponentFunctionFieldBoundary
31 open Stafford38.Geometry.ComponentProjectiveClosure
32 open Stafford38.Geometry.DivisorTangentLattice
33 open Stafford38.Geometry.FiniteGradientResidueExtension
34 open Stafford38.Geometry.GenericPointKaehlerConormal
35 open Stafford38.Geometry.RelativeCoefficientDVR
36 open Stafford38.Geometry.RelativeRetainedBoundaryPlace
37 open Stafford38.Geometry.RetainedGroundMapIdentification
38 open Stafford38.Geometry.RetainedPlaceConormalTransport
39 open Stafford38.Geometry.RetainedProjectiveCompletion
40 open Stafford38.WeylEulerResidue
41 open Stafford38.WeylIteratedEquivalence
42 open IsLocalRing
43 
44 noncomputable section
45 
46 universe u
47 
48 set_option maxHeartbeats 4000000
49 set_option synthInstance.maxHeartbeats 400000
50 
51 variable {k : Type u} [Field k] {m : ℕ}
52 
53 /-! ## Conormal transfer from a minimal prime to the radical ideal -/
54 
55 section Transfer
56 
57 open Stafford38.Geometry.AffineConormalSpan
58 open Stafford38.Geometry.CoisotropicTranslation
59 
60 variable {F : Type*} [Field F]
61 
62 theorem differentialCovector_mul (y : Fin m → F) (p q : MvPolynomial (Fin m) F) :
63     differentialCovector y (p * q) =
64       MvPolynomial.eval y q • differentialCovector y p +
65         MvPolynomial.eval y p • differentialCovector y q :=
66   Stafford38.Geometry.AffineConormalSpan.differentialCovector_mul y p q
67 
68 theorem differentialCovector_add (y : Fin m → F) (p q : MvPolynomial (Fin m) F) :
69     differentialCovector y (p + q) = differentialCovector y p + differentialCovector y q := by
70   apply LinearMap.ext
71   intro v
72   change (∑ i, differentialAt y (p + q) i * v i) =
73     (∑ i, differentialAt y p i * v i) + ∑ i, differentialAt y q i * v i
74   simp only [differentialAt, map_add, add_mul, Finset.sum_add_distrib]
75 
76 theorem differentialCovector_zero (y : Fin m → F) :
77     differentialCovector y (0 : MvPolynomial (Fin m) F) = 0 := by
78   apply LinearMap.ext
79   intro v
80   change (∑ i, differentialAt y 0 i * v i) = 0
81   simp [differentialAt]
82 
83 /-- For a radical ideal `I` and a minimal prime `P` of `I`, every element of
84 `P` becomes an element of `I` after multiplication by an element outside `P`.
85 The multiplier is a product of elements of the other minimal primes. -/
86 theorem exists_mul_mem_of_mem_minimalPrimes_of_isRadical
87     {R : Type*} [CommRing R] [IsNoetherianRing R]
88     {I P : Ideal R} (hI : I.IsRadical) (hP : P ∈ I.minimalPrimes)
89     {f : R} (hf : f ∈ P) : ∃ s ∉ P, s * f ∈ I := by
90   classical
91   have hfin := Ideal.finite_minimalPrimes_of_isNoetherianRing R I
92   set T := hfin.toFinset.erase P with hT
93   have hchoice : ∀ Q ∈ T, ∃ s ∈ Q, s ∉ P := by
94     intro Q hQ
95     rw [hT, Finset.mem_erase, hfin.mem_toFinset] at hQ
96     by_contra hcon
97     push_neg at hcon
98     exact hQ.1 (le_antisymm hcon (hP.2 hQ.2.1 hcon))
99   choose s hsQ hsP using hchoice
100   refine ⟨∏ Q ∈ T.attach, s Q.1 Q.2, ?_, ?_⟩
101   · intro h
102     obtain ⟨Q, -, hQ⟩ := (hP.1.1.prod_mem_iff).1 h
103     exact hsP Q.1 Q.2 hQ
104   · rw [← hI.radical, ← Ideal.sInf_minimalPrimes, Ideal.mem_sInf]
105     intro Q hQ
106     by_cases hQP : Q = P
107     · subst hQP
108       exact Ideal.mul_mem_left _ _ hf
109     · have hQT : Q ∈ T := by
110         rw [hT, Finset.mem_erase, hfin.mem_toFinset]
111         exact ⟨hQP, hQ⟩
112       refine Ideal.mul_mem_right _ _ ?_
113       exact Ideal.mem_of_dvd _
114         (Finset.dvd_prod_of_mem (fun Q : T ↦ s Q.1 Q.2) (Finset.mem_attach _ ⟨Q, hQT⟩))
115         (hsQ Q hQT)
116 
117 /-- At a point whose vanishing ideal is exactly the minimal prime `P` of `I`,
118 the equation-defined conormal space of `P` is contained in that of `I`. -/
119 theorem affineConormalSpace_map_minimalPrime_le [Algebra k F]
120     (I P : Ideal (MvPolynomial (Fin m) k)) (hI : I.IsRadical) (hP : P ∈ I.minimalPrimes)
121     (y : Fin m → F)
122     (hy : ∀ f, MvPolynomial.eval y (MvPolynomial.map (algebraMap k F) f) = 0 ↔ f ∈ P) :
123     affineConormalSpace y (P.map (MvPolynomial.map (algebraMap k F))) ≤
124       affineConormalSpace y (I.map (MvPolynomial.map (algebraMap k F))) := by
125   classical
126   rw [affineConormalSpace_eq_equationCovectorSpan, affineConormalSpace_eq_equationCovectorSpan]
127   set S := equationCovectorSpan y (I.map (MvPolynomial.map (algebraMap k F)))
128   refine Submodule.span_le.2 ?_
129   rintro _ ⟨⟨f', hf'⟩, rfl⟩
130   show differentialCovector y f' ∈ S
131   have key : MvPolynomial.eval y f' = 0 ∧ differentialCovector y f' ∈ S := by
132     refine Submodule.span_induction (p := fun x _ ↦
133       MvPolynomial.eval y x = 0 ∧ differentialCovector y x ∈ S) ?_ ?_ ?_ ?_ hf'
134     · rintro _ ⟨f, hf, rfl⟩
135       refine ⟨(hy f).2 hf, ?_⟩
136       obtain ⟨g, hgP, hfg⟩ := exists_mul_mem_of_mem_minimalPrimes_of_isRadical hI hP hf
137       have hg : MvPolynomial.eval y (MvPolynomial.map (algebraMap k F) g) ≠ 0 :=
138         fun h ↦ hgP ((hy g).1 h)
139       have hprod : differentialCovector y
140           (MvPolynomial.map (algebraMap k F) (g * f)) ∈ S :=
141         Submodule.subset_span ⟨⟨_, Ideal.mem_map_of_mem _ hfg⟩, rfl⟩
142       rw [map_mul, differentialCovector_mul, (hy f).2 hf, zero_smul, zero_add] at hprod
143       have := S.smul_mem (MvPolynomial.eval y (MvPolynomial.map (algebraMap k F) g))⁻¹ hprod
144       rwa [smul_smul, inv_mul_cancel₀ hg, one_smul] at this
145     · exact ⟨by simp, by rw [differentialCovector_zero]; exact S.zero_mem⟩
146     · rintro x y' _ _ ⟨hx0, hx⟩ ⟨hy0, hy'⟩
147       exact ⟨by rw [map_add, hx0, hy0, add_zero],
148         by rw [differentialCovector_add]; exact S.add_mem hx hy'⟩
149     · rintro p x _ ⟨hx0, hx⟩
150       refine ⟨by rw [smul_eq_mul, map_mul, hx0, mul_zero], ?_⟩
151       rw [smul_eq_mul, differentialCovector_mul, hx0, zero_smul, zero_add]
152       exact S.smul_mem _ hx
153   exact key.2
154 
155 end Transfer
156 
157 /-- A retained boundary place on a component together with a normalized
158 projective column and a visible divisor frame attached to it. -/
159 def HasVisibleDivisorFrame
160     (P : PrimeSpectrum (MvPolynomial (Fin m) k)) (hm : 0 < m)
161     [CharZero k] : Prop :=
162   ∃ W : Data k (ComponentFractionField P) (componentCoordinate P ⟨0, hm⟩),
163     letI : Algebra (CoordinateZeroLocalRing W.coefficientField)
164         (ComponentFractionField P) := W.ambientAlgebra
165     let V := W.place.valuation.toSubring
166     letI : IsDiscreteValuationRing V := W.place.isDiscrete
167     ∃ (q : Fin (m + 1) → V) (scale : ComponentFractionField P),
168       q 0 ≠ 0 ∧
169       (∀ a, (q a : ComponentFractionField P) =
170         scale * componentProjectivePoint P a) ∧
171       q (Fin.succ ⟨0, hm⟩) = q 0 * W.place.parameter ∧
172       ∃ D : VisibleDivisorFrame (V := V)
173         (KaehlerDifferential.D k (ComponentFractionField P)) (Fin m),
174         D.Q₀ = q 0 ∧ D.Q₁ = q (Fin.succ ⟨0, hm⟩) ∧ ∀ j, D.Q j = q (Fin.succ j)
175 
176 /-- The generic-point bridge instantiated on a component: its statement is
177 the `hbridge` hypothesis of the retained-place transport. -/
178 theorem component_kaehler_bridge (P : PrimeSpectrum (MvPolynomial (Fin m) k))
179     (xi : Fin m → ComponentFractionField P)
180     (h : ∑ j, xi j • KaehlerDifferential.D k (ComponentFractionField P)
181       (componentCoordinate P j) = 0) :
182     Stafford38.Geometry.AffineConormalSpan.coordinateCovector xi ∈
183       Stafford38.Geometry.AffineConormalSpan.affineConormalSpace (componentCoordinate P)
184         (P.asIdeal.map (MvPolynomial.map
185           (algebraMap k (ComponentFractionField P)))) := by
186   haveI : P.asIdeal.IsPrime := P.isPrime
187   exact coordinateCovector_mem_affineConormalSpace_of_kaehler_sum_eq_zero
188     (I := P.asIdeal) (F := ComponentFractionField P) xi h
189 
190 /-- A visible divisor frame on a component yields a finite-gradient boundary
191 certificate over the residue field of its place, for the radical ideal of
192 which the component is a minimal prime. -/
193 theorem exists_finiteGradientBoundaryCertificateOver_of_hasVisibleDivisorFrame
194     [CharZero k]
195     (I : Ideal (MvPolynomial (Fin m) k)) (hI : I.IsRadical)
196     (P : PrimeSpectrum (MvPolynomial (Fin m) k)) (hP : P.asIdeal ∈ I.minimalPrimes)
197     (hm : 0 < m) (h : HasVisibleDivisorFrame P hm) :
198     ∃ (K : Type u) (_ : Field K) (_ : Algebra k K),
199       Nonempty (FiniteGradientBoundaryCertificateOver (k := k) (K := K) m hm I) := by
200   classical
201   obtain ⟨W, q, scale, hq0, hq, hratio, D, hQ₀, hQ₁, hQ⟩ := h
202   letI : Algebra (CoordinateZeroLocalRing W.coefficientField)
203       (ComponentFractionField P) := W.ambientAlgebra
204   let V := W.place.valuation.toSubring
205   letI : IsDiscreteValuationRing V := W.place.isDiscrete
206   letI : Algebra W.coefficientField V :=
207     (relativeCoefficientMap W.coefficientField W.place).toAlgebra
208   letI : Algebra k (ResidueField V) := retainedResidueGroundAlgebra P ⟨0, hm⟩ W
209   -- The generic point kills exactly the minimal prime.
210   have hy : ∀ f, MvPolynomial.eval (componentCoordinate P)
211       (MvPolynomial.map (algebraMap k (ComponentFractionField P)) f) = 0 ↔ f ∈ P.asIdeal := by
212     intro f
213     rw [MvPolynomial.eval_map, ← componentAffineGenericPointMap_eq_eval₂,
214       ← RingHom.mem_ker, componentAffineGenericPointMap_ker]
215   have hbridge : ∀ xi : Fin m → ComponentFractionField P,
216       ∑ j, xi j • KaehlerDifferential.D k (ComponentFractionField P)
217         (componentCoordinate P j) = 0 →
218       Stafford38.Geometry.AffineConormalSpan.coordinateCovector xi ∈
219         Stafford38.Geometry.AffineConormalSpan.affineConormalSpace (componentCoordinate P)
220           (I.map (MvPolynomial.map (algebraMap k (ComponentFractionField P)))) :=
221     fun xi hxi ↦ affineConormalSpace_map_minimalPrime_le I P.asIdeal hI hP _ hy
222       (component_kaehler_bridge P xi hxi)
223   have hq0F : (q 0 : ComponentFractionField P) ≠ 0 := fun h ↦ hq0 (Subtype.ext h)
224   have hIy : ∀ g ∈ I,
225       MvPolynomial.eval₂ (algebraMap k (ComponentFractionField P))
226         (componentCoordinate P) g = 0 := by
227     intro g hg
228     rw [← componentAffineGenericPointMap_eq_eval₂]
229     exact componentAffineGenericPointMap_eq_zero_of_mem P (hP.1.2 hg)
230   obtain ⟨R⟩ := regularizedOneRowConormalData_of_transport hm I (componentCoordinate P)
231     hIy Subtype.val_injective (retainedToCompletedPowerSeries W)
232     (retainedToCompletedPowerSeries_injective W)
233     (retainedToCompletedPowerSeries_constantCoeff_eq_zero_of_nonunit W)
234     (retainedLaurentLift P ⟨0, hm⟩ W)
235     (retainedLaurentLift_algebraMap P ⟨0, hm⟩ W)
236     (retainedLaurentLift_comp_algebraMap P ⟨0, hm⟩ W)
237     q hq0 (componentCoordinate_eq_div P (fun a ↦ (q a : ComponentFractionField P))
238       scale hq hq0F)
239     W.place.parameter hratio D hQ₀ hQ₁ hQ hbridge
240   exact ⟨ResidueField V, inferInstance, inferInstance,
241     finiteGradientBoundaryCertificateOver_of_regularizedOneRowConormalData hm I _ R⟩
242 
243 /-- The reduced lane C input: every relevant transcendental component carries
244 a retained place with a visible divisor frame. -/
245 def HigherDimensionalCanonicalVisibleDivisorFrameProduction : Prop :=
246   ∀ (k : Type u) [Field k] [CharZero k] [IsAlgClosed k]
247     (n N : ℕ) (d : PresentedWeyl k (n + 1)),
248     0 < n →
249     Disjoint
250       (orderCharacteristicSupport k
251         (canonicalRightIdeal (presentedCoordinate k n) d N))
252       (PrimeSpectrum.zeroLocus
253         ({MvPolynomial.X (.inl (0 : Fin (n + 1)))} :
254           Set (SymbolRing k (n + 1)))) →
255     ∀ P : PrimeSpectrum (MvPolynomial (Fin (n + 1)) k),
256       P.asIdeal ∈
257         (reducedOrderBaseIdeal k
258           (canonicalRightIdeal (presentedCoordinate k n) d N)).minimalPrimes →
259       Transcendental k (componentCoordinate P ⟨0, Nat.zero_lt_succ n⟩) →
260       HasVisibleDivisorFrame P (Nat.zero_lt_succ n)
261 
262 /-- The visible-frame producer discharges the finite-gradient interface. -/
263 theorem higherDimensionalCanonicalResidueExtensionNonconstantFiniteGradientProduction_of_visibleDivisorFrame
264     (h : HigherDimensionalCanonicalVisibleDivisorFrameProduction.{u}) :
265     HigherDimensionalCanonicalResidueExtensionNonconstantFiniteGradientProduction.{u} := by
266   intro k _ _ _ n N d hn hdisjoint P hP htrans
267   exact exists_finiteGradientBoundaryCertificateOver_of_hasVisibleDivisorFrame _
268     (reducedOrderBaseIdeal_isRadical k (canonicalRightIdeal (presentedCoordinate k n) d N))
269     P hP (Nat.zero_lt_succ n) (h k n N d hn hdisjoint P hP htrans)
270 
271 #print axioms exists_mul_mem_of_mem_minimalPrimes_of_isRadical
272 #print axioms affineConormalSpace_map_minimalPrime_le
273 #print axioms component_kaehler_bridge
274 #print axioms exists_finiteGradientBoundaryCertificateOver_of_hasVisibleDivisorFrame
275 #print axioms higherDimensionalCanonicalResidueExtensionNonconstantFiniteGradientProduction_of_visibleDivisorFrame
276 
277 end
278 
279 end Stafford38.Geometry.CanonicalVisibleDivisorFrameProduction
280