math / data /lean /OAI /NumberTheory /PiExponent /LocalAlgebra /CoherentExtFiniteness.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
6.61 kB
import OAI.NumberTheory.PiExponent.Cohomology.EulerExact
import OAI.NumberTheory.PiExponent.Cohomology.SerreVanishing
namespace OAI
namespace PiExponent.CoherentExtFiniteness
noncomputable section
open CategoryTheory CategoryTheory.Limits CategoryTheory.Abelian AlgebraicGeometry
open PiExponentSeshadri.Geometry
theorem finite_middle_of_exact {K U V W : Type*} [Field K]
[AddCommGroup U] [Module K U] [AddCommGroup V] [Module K V]
[AddCommGroup W] [Module K W] [Module.Finite K U] [Module.Finite K W]
(f : U β†’β‚—[K] V) (g : V β†’β‚—[K] W) (h : Function.Exact f g) :
Module.Finite K V := by
have he : Function.Exact f g.rangeRestrict := by
intro x
rw [Subtype.ext_iff]
exact h x
exact Module.Finite.of_exact he g.surjective_rangeRestrict
universe w v u t k
variable {K : Type k} [Field K] {C : Type u} [Category.{v} C] [Abelian C]
[Linear K C] [HasExt.{w} C]
def extLinearEquivBiproduct (A : C) {J : Type*} [Fintype J]
{B : J β†’ C} {c : Bicone B} (hc : c.IsBilimit) (q : β„•) :
Ext.{w} A c.pt q ≃ₗ[K] βˆ€ j, Ext.{w} A (B j) q :=
{ Ext.addEquivBiproduct A hc q with
map_smul' := by
intro a x
funext j
exact Ext.smul_comp x (Ext.mkβ‚€ (c.Ο€ j)) (add_zero q) a }
theorem ext_finite_of_biproduct (A : C) {J : Type*} [Fintype J]
{B : J β†’ C} {c : Bicone B} (hc : c.IsBilimit) (q : β„•)
(hfinite : βˆ€ j, Module.Finite K (Ext.{w} A (B j) q)) :
Module.Finite K (Ext.{w} A c.pt q) := by
let (j : J) : Module.Finite K (Ext.{w} A (B j) q) := hfinite j
exact Module.Finite.of_surjective (extLinearEquivBiproduct (K := K) A hc q).symm.toLinearMap
(extLinearEquivBiproduct (K := K) A hc q).symm.surjective
structure FiniteCohomologyPresentation {ΞΉ : Type t} (A : C) (F : ΞΉ β†’ C) (i : ΞΉ) where
kernel : ΞΉ
middle : C
left : F kernel ⟢ middle
right : middle ⟢ F i
comp_zero : left ≫ right = 0
shortExact : (ShortComplex.mk left right comp_zero).ShortExact
finite : βˆ€ q, Module.Finite K (Ext.{w} A middle q)
theorem ext_finite_of_presentations {ΞΉ : Type t} (A : C) (F : ΞΉ β†’ C) (l : β„•)
(hbound : βˆ€ i q, l ≀ q β†’ βˆ€ x : Ext.{w} A (F i) q, x = 0)
(presentation : βˆ€ i, FiniteCohomologyPresentation (K := K) A F i)
(i : ΞΉ) (q : β„•) : Module.Finite K (Ext.{w} A (F i) q) := by
have hdown : βˆ€ k q, l ≀ q + k β†’ βˆ€ i, Module.Finite K (Ext.{w} A (F i) q) := by
intro k
induction k with
| zero =>
intro q hq i
let : Subsingleton (Ext.{w} A (F i) q) :=
⟨fun x y => (hbound i q (by omega) x).trans (hbound i q (by omega) y).symm⟩
infer_instance
| succ k ih =>
intro q hq i
let P := presentation i
let S := ShortComplex.mk P.left P.right P.comp_zero
let : Module.Finite K (Ext.{w} A S.Xβ‚‚ q) := P.finite q
let : Module.Finite K (Ext.{w} A S.X₁ (q+1)) := ih (q+1) (by omega) P.kernel
exact finite_middle_of_exact
(PiExponentSeshadri.Cohomology.cohomologyMapβ‚‚ (K := K) A (S := S) q)
(PiExponentSeshadri.Cohomology.cohomologyBoundary (K := K) A P.shortExact q)
(PiExponentSeshadri.Cohomology.cohomology_exact₃ (K := K) A P.shortExact q)
exact hdown l q (Nat.le_add_left _ _) i
variable {X : Scheme.{0}}
theorem cohomology_finite_of_biproduct
(p : X ⟢ Spec (CommRingCat.of β„‚)) {J : Type*} [Fintype J]
{B : J β†’ X.Modules} {c : Bicone B} (hc : c.IsBilimit) (q : β„•)
(hfinite : βˆ€ j, letI := Module.compHom (cohomology (B j) q) (baseScalars p)
FiniteDimensional β„‚ (cohomology (B j) q)) :
letI := Module.compHom (cohomology c.pt q) (baseScalars p)
FiniteDimensional β„‚ (cohomology c.pt q) := by
let := sheafComplexLinear p
have hfin : βˆ€ j, Module.Finite β„‚ (Ext.{1} (structureSheaf X) (B j) q) := by
intro j
change @Module.Finite β„‚ (cohomology (B j) q) _ _ (complexExtModule p (B j) q)
rw [complexExtModule_eq]
exact hfinite j
have hf := ext_finite_of_biproduct (K := β„‚) (structureSheaf X) hc q hfin
change @Module.Finite β„‚ (cohomology c.pt q) _ _ (complexExtModule p c.pt q) at hf
rw [complexExtModule_eq] at hf
exact hf
structure CoherentFinitePresentation (p : X ⟢ Spec (CommRingCat.of β„‚)) (M : X.Modules) where
kernel : X.Modules
kernel_coherent : kernel.IsFinitePresentation
middle : X.Modules
left : kernel ⟢ middle
right : middle ⟢ M
comp_zero : left ≫ right = 0
shortExact : (ShortComplex.mk left right comp_zero).ShortExact
middle_finite : βˆ€ q, letI := Module.compHom (cohomology middle q) (baseScalars p)
FiniteDimensional β„‚ (cohomology middle q)
theorem coherent_cohomology_finite_of_presentations
[IsNoetherian X] [IsAffineHom (pullback.diagonal (terminal.from X))]
(p : X ⟢ Spec (CommRingCat.of β„‚))
(l : β„•) (hl : 0 < l) (U : Fin l β†’ X.Opens)
(hU : βˆ€ i, IsAffineOpen (U i)) (hcover : (⨆ i, U i) = ⊀)
(presentation : βˆ€ (M : X.Modules) [M.IsFinitePresentation],
Nonempty (CoherentFinitePresentation p M))
(M : X.Modules) [M.IsFinitePresentation] (q : β„•) :
letI := Module.compHom (cohomology M q) (baseScalars p)
FiniteDimensional β„‚ (cohomology M q) := by
let := sheafComplexLinear p
let F : {N : X.Modules // N.IsFinitePresentation} β†’ X.Modules := Subtype.val
let P (i : {N : X.Modules // N.IsFinitePresentation}) :
FiniteCohomologyPresentation (K := β„‚) (structureSheaf X) F i := by
letI : i.val.IsFinitePresentation := i.property
let S := Classical.choice (presentation i.val)
exact
{ kernel := ⟨S.kernel, S.kernel_coherent⟩
middle := S.middle
left := S.left
right := S.right
comp_zero := S.comp_zero
shortExact := S.shortExact
finite := fun n => by
change @Module.Finite β„‚ (cohomology S.middle n) _ _ (complexExtModule p S.middle n)
rw [complexExtModule_eq]
exact S.middle_finite n }
have hbound : βˆ€ i n, l ≀ n β†’ βˆ€ x : Ext.{1} (structureSheaf X) (F i) n, x = 0 := by
intro i n hn x
let : i.val.IsFinitePresentation := i.property
let : i.val.IsQuasicoherent :=
(SheafOfModules.IsFinitePresentation.exists_quasicoherentData i.val).choose.isQuasicoherent
exact PiExponent.SerreVanishing.ext_eq_zero_of_affine_cover l hl U hU hcover i.val n hn x
have hf := ext_finite_of_presentations (K := β„‚) (structureSheaf X) F l hbound P
⟨M, inferInstance⟩ q
change @Module.Finite β„‚ (cohomology M q) _ _ (complexExtModule p M q) at hf
rw [complexExtModule_eq] at hf
exact hf
end
end PiExponent.CoherentExtFiniteness
end OAI