import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coherent.ClosedDescent import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AnnihilatorSubobjects import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Noetherian.QuasicoherentKernels /-! # Reduction Layer -/ namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Closed.ReductionLayer noncomputable section /-! The canonical coherent layer obtained by restricting to a closed subscheme. Its quotient descends to that actual closed subscheme. -/ open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry universe u def closedModuleUnit {X Y : Scheme.{u}} (f : X ⟶ Y) (M : Y.Modules) : M ⟶ (Scheme.Modules.pushforward f).obj ((Scheme.Modules.pullback f).obj M) := (Scheme.Modules.pullbackPushforwardAdjunction f).unit.app M def closedReductionKernel {X Y : Scheme.{u}} (f : X ⟶ Y) (M : Y.Modules) : Y.Modules := kernel (closedModuleUnit f M) def closedReductionQuotient {X Y : Scheme.{u}} (f : X ⟶ Y) (M : Y.Modules) : Y.Modules := Abelian.coimage (closedModuleUnit f M) def closedReductionSequence {X Y : Scheme.{u}} (f : X ⟶ Y) (M : Y.Modules) : ShortComplex Y.Modules := ShortComplex.mk (kernel.ι (closedModuleUnit f M)) (Abelian.coimage.π (closedModuleUnit f M)) (by simp) theorem closedReductionSequence_shortExact {X Y : Scheme.{u}} (f : X ⟶ Y) (M : Y.Modules) : (closedReductionSequence f M).ShortExact := by change (ShortComplex.mk (kernel.ι (closedModuleUnit f M)) (Abelian.coimage.π (closedModuleUnit f M)) _).ShortExact exact ⟨ShortComplex.cokernelSequence_exact (kernel.ι (closedModuleUnit f M))⟩ theorem closedReductionKernel_quasicoherent {X Y : Scheme.{u}} (f : X ⟶ Y) [IsClosedImmersion f] (M : Y.Modules) [M.IsQuasicoherent] : (closedReductionKernel f M).IsQuasicoherent := by have := Affine.MorphismQuasicoherentPullback.quasicoherent_pullback_of_isAffineHom f M have := Quasicoherent.Image.quasiCompact_separated_directImage_quasicoherent f ((Scheme.Modules.pullback f).obj M) exact Quasicoherent.Kernels.module_quasicoherent_kernel (closedModuleUnit f M) theorem closedReductionKernel_finiteType {X Y : Scheme.{u}} [IsLocallyNoetherian Y] (f : X ⟶ Y) [IsClosedImmersion f] (M : Y.Modules) [M.IsQuasicoherent] [M.IsFiniteType] : (closedReductionKernel f M).IsFiniteType := by have := Affine.MorphismQuasicoherentPullback.quasicoherent_pullback_of_isAffineHom f M have := Quasicoherent.Image.quasiCompact_separated_directImage_quasicoherent f ((Scheme.Modules.pullback f).obj M) exact Noetherian.QuasicoherentKernels.noetherian_quasicoherent_kernel_finiteType (closedModuleUnit f M) theorem closedReductionQuotient_quasicoherent {X Y : Scheme.{u}} (f : X ⟶ Y) [IsClosedImmersion f] (M : Y.Modules) [M.IsQuasicoherent] : (closedReductionQuotient f M).IsQuasicoherent := by have : (kernel (closedModuleUnit f M)).IsQuasicoherent := closedReductionKernel_quasicoherent f M exact Quasicoherent.Cokernels.module_quasicoherent_cokernel (kernel.ι (closedModuleUnit f M)) theorem closedReductionQuotient_finiteType {X Y : Scheme.{u}} (f : X ⟶ Y) [IsClosedImmersion f] (M : Y.Modules) [M.IsQuasicoherent] [M.IsFiniteType] : (closedReductionQuotient f M).IsFiniteType := by have : (kernel (closedModuleUnit f M)).IsQuasicoherent := closedReductionKernel_quasicoherent f M exact Quasicoherent.QuotientFiniteType.quasicoherent_cokernel_finiteType (kernel.ι (closedModuleUnit f M)) theorem closedReductionQuotient_ideal_annihilates {X Y : Scheme.{u}} (f : X ⟶ Y) [IsClosedImmersion f] (M : Y.Modules) [M.IsQuasicoherent] [M.IsFiniteType] : letI := closedReductionQuotient_quasicoherent f M letI := closedReductionQuotient_finiteType f M f.ker ≤ Coherent.Annihilator.coherentAnnihilator (closedReductionQuotient f M) := by have := closedReductionQuotient_quasicoherent f M have := closedReductionQuotient_finiteType f M let P : X.Modules := (Scheme.Modules.pullback f).obj M have : P.IsQuasicoherent := Affine.MorphismQuasicoherentPullback.quasicoherent_pullback_of_isAffineHom f M have : P.IsFiniteType := Quasicoherent.PullbackFiniteType.module_pullback_finiteType f M have := Quasicoherent.Image.quasiCompact_separated_directImage_quasicoherent f P have := Finite.ImageType.finite_directImage_finiteType f P let a : M ⟶ (Scheme.Modules.pushforward f).obj P := closedModuleUnit f M have hmono : Mono (Abelian.factorThruCoimage a) := inferInstance exact (AnnihilatorSubobjects.closedIdeal_annihilates_pushforward f P).trans (@AnnihilatorSubobjects.coherentAnnihilator_le_of_mono Y (closedReductionQuotient f M) ((Scheme.Modules.pushforward f).obj P) (closedReductionQuotient_quasicoherent f M) (Quasicoherent.Image.quasiCompact_separated_directImage_quasicoherent f P) (closedReductionQuotient_finiteType f M) (Finite.ImageType.finite_directImage_finiteType f P) (Abelian.factorThruCoimage a) hmono) theorem closedReductionQuotient_exists_descent {X Y : Scheme.{u}} (f : X ⟶ Y) [IsClosedImmersion f] (M : Y.Modules) [M.IsQuasicoherent] [M.IsFiniteType] : ∃ N : X.Modules, N.IsQuasicoherent ∧ N.IsFiniteType ∧ Nonempty ((Scheme.Modules.pushforward f).obj N ≅ closedReductionQuotient f M) := by have := closedReductionQuotient_quasicoherent f M have := closedReductionQuotient_finiteType f M exact Coherent.ClosedDescent.exists_coherent_closed_descent f (closedReductionQuotient f M) (closedReductionQuotient_ideal_annihilates f M) end end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Closed.ReductionLayer