Download data/lean/OAI/NumberTheory/PiExponent/LocalAlgebra/CoherentExtFiniteness.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.61 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/PiExponent/LocalAlgebra/CoherentExtFiniteness.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/PiExponent/LocalAlgebra/CoherentExtFiniteness.lean
-
curl -L -o CoherentExtFiniteness.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/PiExponent/LocalAlgebra/CoherentExtFiniteness.lean
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 | |