import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle import Mathlib.Algebra.Category.ModuleCat.Presheaf.Monoidal /-! # Sheaf Tensor -/ namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SheafTensor.Construction noncomputable section /-! Tensor products of actual sheaves of modules, formed by sheafification. -/ open _root_.CategoryTheory _root_.AlgebraicGeometry MonoidalCategory universe u local instance (X : Scheme.{u}) : MonoidalCategory X.PresheafOfModules := PresheafOfModulesOfCommRing.monoidalCategory (R := X.presheaf) local instance (X : Scheme.{u}) : SymmetricCategory X.PresheafOfModules := PresheafOfModulesOfCommRing.symmetricCategory (R := X.presheaf) def sheafifyModule {X : Scheme.{u}} (P : X.PresheafOfModules) : X.Modules := (PresheafOfModules.sheafification (๐Ÿ™ X.ringCatSheaf.obj)).obj P /-- Sheafifying the underlying presheaf of a module sheaf recovers it. -/ def sheafifyModuleIso {X : Scheme.{u}} (M : X.Modules) : sheafifyModule M.val โ‰… M := by let c := (PresheafOfModules.sheafificationAdjunction (๐Ÿ™ X.ringCatSheaf.obj)).counit have : IsIso c := by dsimp [c]; infer_instance exact (asIso c).app M def sheafTensor {X : Scheme.{u}} (M N : X.Modules) : X.Modules := sheafifyModule (M.val โŠ— N.val) /-- Maps out of the sheaf tensor product are precisely maps out of the presheaf tensor product into the target sheaf. -/ def sheafTensorHomEquiv {X : Scheme.{u}} (M N P : X.Modules) : (sheafTensor M N โŸถ P) โ‰ƒ (M.val โŠ— N.val โŸถ P.val) := PresheafOfModules.sheafificationHomEquiv (๐Ÿ™ X.ringCatSheaf.obj) def sheafTensorCongr {X : Scheme.{u}} {M M' N N' : X.Modules} (e : M โ‰… M') (f : N โ‰… N') : sheafTensor M N โ‰… sheafTensor M' N' := (PresheafOfModules.sheafification (๐Ÿ™ X.ringCatSheaf.obj)).mapIso (((Scheme.Modules.toPresheafOfModules X).mapIso e) โŠ—แตข ((Scheme.Modules.toPresheafOfModules X).mapIso f)) def sheafTensorUnitLeft {X : Scheme.{u}} (M : X.Modules) : sheafTensor (LineBundle.Construction.structureSheafModule X) M โ‰… M := (PresheafOfModules.sheafification (๐Ÿ™ X.ringCatSheaf.obj)).mapIso (ฮป_ M.val) โ‰ชโ‰ซ sheafifyModuleIso M def sheafTensorUnitRight {X : Scheme.{u}} (M : X.Modules) : sheafTensor M (LineBundle.Construction.structureSheafModule X) โ‰… M := (PresheafOfModules.sheafification (๐Ÿ™ X.ringCatSheaf.obj)).mapIso (ฯ_ M.val) โ‰ชโ‰ซ sheafifyModuleIso M def sheafTensorComm {X : Scheme.{u}} (M N : X.Modules) : sheafTensor M N โ‰… sheafTensor N M := (PresheafOfModules.sheafification (๐Ÿ™ X.ringCatSheaf.obj)).mapIso (ฮฒ_ M.val N.val) end end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SheafTensor.Construction