-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Algebra/Category/ModuleCat): the category of presheaves of modul…
…es is abelian (#12721)
- Loading branch information
1 parent
771d61e
commit 52a9e89
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/- | ||
Copyright (c) 2024 Joël Riou. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Joël Riou | ||
-/ | ||
import Mathlib.Algebra.Category.ModuleCat.Presheaf.Colimits | ||
import Mathlib.Algebra.Category.ModuleCat.Presheaf.Limits | ||
import Mathlib.Algebra.Category.ModuleCat.Abelian | ||
import Mathlib.CategoryTheory.Abelian.Basic | ||
|
||
/-! | ||
# The category of presheaves of modules is abelian | ||
-/ | ||
|
||
universe v v₁ u₁ u | ||
|
||
open CategoryTheory Category Limits | ||
|
||
namespace PresheafOfModules | ||
|
||
variable {C : Type u₁} [Category.{v₁} C] (R : Cᵒᵖ ⥤ RingCat.{u}) | ||
|
||
noncomputable instance : NormalEpiCategory (PresheafOfModules.{v} R) where | ||
normalEpiOfEpi p _ := NormalEpi.mk _ (kernel.ι p) (kernel.condition _) | ||
(evaluationJointlyReflectsColimits _ _ (fun _ => | ||
Abelian.isColimitMapCoconeOfCokernelCoforkOfπ _ _)) | ||
|
||
noncomputable instance : NormalMonoCategory (PresheafOfModules.{v} R) where | ||
normalMonoOfMono i _ := NormalMono.mk _ (cokernel.π i) (cokernel.condition _) | ||
(evaluationJointlyReflectsLimits _ _ (fun _ => | ||
Abelian.isLimitMapConeOfKernelForkOfι _ _)) | ||
|
||
noncomputable instance : Abelian (PresheafOfModules.{v} R) where | ||
|
||
end PresheafOfModules |