The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V26. Homological algebra

Mathlib.Algebra.Category.ModuleCat.Presheaf.Colimits

21 declarations. Mathlib docs · Source

Colimits in categories of presheaves of modules

In this file, it is shown that under suitable assumptions, colimits exist in the category PresheafOfModules R.

def PresheafOfModules.evaluationJointlyReflectsColimits E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {R : CategoryTheory.Functor Cᵒᵖ RingCat} →
      {J : Type u₂} →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} J] →
          (F : CategoryTheory.Functor J (PresheafOfModules R)) →
            (c : CategoryTheory.Limits.Cocone F) →
              ((X : Cᵒᵖ) → CategoryTheory.Limits.IsColimit ((PresheafOfModules.evaluation R X).mapCocone c)) →
                CategoryTheory.Limits.IsColimit c

A cocone in the category PresheafOfModules R is colimit if it is so after the application of the functors evaluation R X for all X.

instance PresheafOfModules.instHasColimitModuleCatCarrierObjOppositeRingCatCompEvaluationRestrictScalarsHomMap E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {R : CategoryTheory.Functor Cᵒᵖ RingCat} {J : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} J] (F : CategoryTheory.Functor J (PresheafOfModules R))
  [∀ {X Y : Cᵒᵖ} (f : X ⟶ Y),
      CategoryTheory.Limits.PreservesColimit (F.comp (PresheafOfModules.evaluation R Y))
        (ModuleCat.restrictScalars (RingCat.Hom.hom (R.map f)))]
  [∀ (X : Cᵒᵖ), CategoryTheory.Limits.HasColimit (F.comp (PresheafOfModules.evaluation R X))] {X Y : Cᵒᵖ} (f : X ⟶ Y),
  CategoryTheory.Limits.HasColimit
    (F.comp ((PresheafOfModules.evaluation R Y).comp (ModuleCat.restrictScalars (RingCat.Hom.hom (R.map f)))))

def PresheafOfModules.colimitPresheafOfModules E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {R : CategoryTheory.Functor Cᵒᵖ RingCat} →
      {J : Type u₂} →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} J] →
          (F : CategoryTheory.Functor J (PresheafOfModules R)) →
            [∀ {X Y : Cᵒᵖ} (f : X ⟶ Y),
                  CategoryTheory.Limits.PreservesColimit (F.comp (PresheafOfModules.evaluation R Y))
                    (ModuleCat.restrictScalars (RingCat.Hom.hom (R.map f)))] →
              [∀ (X : Cᵒᵖ), CategoryTheory.Limits.HasColimit (F.comp (PresheafOfModules.evaluation R X))] →
                PresheafOfModules R

Given F : J ⥤ PresheafOfModules.{v} R, this is the presheaf of modules obtained by taking a colimit in the category of modules over R.obj X for all X.

theorem PresheafOfModules.colimitPresheafOfModules_map E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {R : CategoryTheory.Functor Cᵒᵖ RingCat} {J : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} J] (F : CategoryTheory.Functor J (PresheafOfModules R))
  [inst_2 :
    ∀ {X Y : Cᵒᵖ} (f : X ⟶ Y),
      CategoryTheory.Limits.PreservesColimit (F.comp (PresheafOfModules.evaluation R Y))
        (ModuleCat.restrictScalars (RingCat.Hom.hom (R.map f)))]
  [inst_3 : ∀ (X : Cᵒᵖ), CategoryTheory.Limits.HasColimit (F.comp (PresheafOfModules.evaluation R X))] {x Y : Cᵒᵖ}
  (f : x ⟶ Y),
  (PresheafOfModules.colimitPresheafOfModules F).map f =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Limits.colimMap (F.whiskerLeft (PresheafOfModules.restriction R f)))
      (CategoryTheory.preservesColimitIso (ModuleCat.restrictScalars (RingCat.Hom.hom (R.map f)))
          (F.comp (PresheafOfModules.evaluation R Y))).inv

theorem PresheafOfModules.colimitPresheafOfModules_obj E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {R : CategoryTheory.Functor Cᵒᵖ RingCat} {J : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} J] (F : CategoryTheory.Functor J (PresheafOfModules R))
  [inst_2 :
    ∀ {X Y : Cᵒᵖ} (f : X ⟶ Y),
      CategoryTheory.Limits.PreservesColimit (F.comp (PresheafOfModules.evaluation R Y))
        (ModuleCat.restrictScalars (RingCat.Hom.hom (R.map f)))]
  [inst_3 : ∀ (X : Cᵒᵖ), CategoryTheory.Limits.HasColimit (F.comp (PresheafOfModules.evaluation R X))] (X : Cᵒᵖ),
  (PresheafOfModules.colimitPresheafOfModules F).obj X =
    CategoryTheory.Limits.colimit (F.comp (PresheafOfModules.evaluation R X))

def PresheafOfModules.colimitCocone E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {R : CategoryTheory.Functor Cᵒᵖ RingCat} →
      {J : Type u₂} →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} J] →
          (F : CategoryTheory.Functor J (PresheafOfModules R)) →
            [∀ {X Y : Cᵒᵖ} (f : X ⟶ Y),
                  CategoryTheory.Limits.PreservesColimit (F.comp (PresheafOfModules.evaluation R Y))
                    (ModuleCat.restrictScalars (RingCat.Hom.hom (R.map f)))] →
              [∀ (X : Cᵒᵖ), CategoryTheory.Limits.HasColimit (F.comp (PresheafOfModules.evaluation R X))] →
                CategoryTheory.Limits.Cocone F

The (colimit) cocone for F : J ⥤ PresheafOfModules.{v} R that is constructed from the colimit of F ⋙ evaluation R X for all X.

theorem PresheafOfModules.colimitCocone_pt E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {R : CategoryTheory.Functor Cᵒᵖ RingCat} {J : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} J] (F : CategoryTheory.Functor J (PresheafOfModules R))
  [inst_2 :
    ∀ {X Y : Cᵒᵖ} (f : X ⟶ Y),
      CategoryTheory.Limits.PreservesColimit (F.comp (PresheafOfModules.evaluation R Y))
        (ModuleCat.restrictScalars (RingCat.Hom.hom (R.map f)))]
  [inst_3 : ∀ (X : Cᵒᵖ), CategoryTheory.Limits.HasColimit (F.comp (PresheafOfModules.evaluation R X))],
  (PresheafOfModules.colimitCocone F).pt = PresheafOfModules.colimitPresheafOfModules F

theorem PresheafOfModules.colimitCocone_ι_app_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {R : CategoryTheory.Functor Cᵒᵖ RingCat} {J : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} J] (F : CategoryTheory.Functor J (PresheafOfModules R))
  [inst_2 :
    ∀ {X Y : Cᵒᵖ} (f : X ⟶ Y),
      CategoryTheory.Limits.PreservesColimit (F.comp (PresheafOfModules.evaluation R Y))
        (ModuleCat.restrictScalars (RingCat.Hom.hom (R.map f)))]
  [inst_3 : ∀ (X : Cᵒᵖ), CategoryTheory.Limits.HasColimit (F.comp (PresheafOfModules.evaluation R X))] (j : J)
  (X : Cᵒᵖ),
  ((PresheafOfModules.colimitCocone F).ι.app j).app X =
    CategoryTheory.Limits.colimit.ι (F.comp (PresheafOfModules.evaluation R X)) j

def PresheafOfModules.isColimitColimitCocone E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {R : CategoryTheory.Functor Cᵒᵖ RingCat} →
      {J : Type u₂} →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} J] →
          (F : CategoryTheory.Functor J (PresheafOfModules R)) →
            [inst_2 :
                ∀ {X Y : Cᵒᵖ} (f : X ⟶ Y),
                  CategoryTheory.Limits.PreservesColimit (F.comp (PresheafOfModules.evaluation R Y))
                    (ModuleCat.restrictScalars (RingCat.Hom.hom (R.map f)))] →
              [inst_3 : ∀ (X : Cᵒᵖ), CategoryTheory.Limits.HasColimit (F.comp (PresheafOfModules.evaluation R X))] →
                CategoryTheory.Limits.IsColimit (PresheafOfModules.colimitCocone F)

The cocone colimitCocone F is colimit for any F : J ⥤ PresheafOfModules.{v} R.

instance PresheafOfModules.hasColimit E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {R : CategoryTheory.Functor Cᵒᵖ RingCat} {J : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} J] (F : CategoryTheory.Functor J (PresheafOfModules R))
  [∀ {X Y : Cᵒᵖ} (f : X ⟶ Y),
      CategoryTheory.Limits.PreservesColimit (F.comp (PresheafOfModules.evaluation R Y))
        (ModuleCat.restrictScalars (RingCat.Hom.hom (R.map f)))]
  [∀ (X : Cᵒᵖ), CategoryTheory.Limits.HasColimit (F.comp (PresheafOfModules.evaluation R X))],
  CategoryTheory.Limits.HasColimit F

instance PresheafOfModules.evaluation_preservesColimit E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {R : CategoryTheory.Functor Cᵒᵖ RingCat} {J : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} J] (F : CategoryTheory.Functor J (PresheafOfModules R))
  [∀ {X Y : Cᵒᵖ} (f : X ⟶ Y),
      CategoryTheory.Limits.PreservesColimit (F.comp (PresheafOfModules.evaluation R Y))
        (ModuleCat.restrictScalars (RingCat.Hom.hom (R.map f)))]
  [∀ (X : Cᵒᵖ), CategoryTheory.Limits.HasColimit (F.comp (PresheafOfModules.evaluation R X))] (X : Cᵒᵖ),
  CategoryTheory.Limits.PreservesColimit F (PresheafOfModules.evaluation R X)

instance PresheafOfModules.toPresheaf_preservesColimit E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {R : CategoryTheory.Functor Cᵒᵖ RingCat} {J : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} J] (F : CategoryTheory.Functor J (PresheafOfModules R))
  [∀ {X Y : Cᵒᵖ} (f : X ⟶ Y),
      CategoryTheory.Limits.PreservesColimit (F.comp (PresheafOfModules.evaluation R Y))
        (ModuleCat.restrictScalars (RingCat.Hom.hom (R.map f)))]
  [∀ (X : Cᵒᵖ), CategoryTheory.Limits.HasColimit (F.comp (PresheafOfModules.evaluation R X))]
  [∀ (X : Cᵒᵖ),
      CategoryTheory.Limits.PreservesColimit F
        ((PresheafOfModules.evaluation R X).comp (CategoryTheory.forget₂ (ModuleCat ↑(R.obj X)) AddCommGrpCat))],
  CategoryTheory.Limits.PreservesColimit F (PresheafOfModules.toPresheaf R)

instance PresheafOfModules.hasColimitsOfShape E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (R : CategoryTheory.Functor Cᵒᵖ RingCat) (J : Type u₂)
  [inst_1 : CategoryTheory.Category.{v₂, u₂} J] [CategoryTheory.Limits.HasColimitsOfShape J AddCommGrpCat],
  CategoryTheory.Limits.HasColimitsOfShape J (PresheafOfModules R)

instance PresheafOfModules.evaluation_preservesColimitsOfShape E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (R : CategoryTheory.Functor Cᵒᵖ RingCat) (J : Type u₂)
  [inst_1 : CategoryTheory.Category.{v₂, u₂} J] [CategoryTheory.Limits.HasColimitsOfShape J AddCommGrpCat] (X : Cᵒᵖ),
  CategoryTheory.Limits.PreservesColimitsOfShape J (PresheafOfModules.evaluation R X)

instance PresheafOfModules.toPresheaf_preservesColimitsOfShape E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (R : CategoryTheory.Functor Cᵒᵖ RingCat) (J : Type u₂)
  [inst_1 : CategoryTheory.Category.{v₂, u₂} J] [CategoryTheory.Limits.HasColimitsOfShape J AddCommGrpCat],
  CategoryTheory.Limits.PreservesColimitsOfShape J (PresheafOfModules.toPresheaf R)

instance PresheafOfModules.Finite.hasFiniteColimits E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (R : CategoryTheory.Functor Cᵒᵖ RingCat),
  CategoryTheory.Limits.HasFiniteColimits (PresheafOfModules R)

instance PresheafOfModules.Finite.evaluation_preservesFiniteColimits E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (R : CategoryTheory.Functor Cᵒᵖ RingCat) (X : Cᵒᵖ),
  CategoryTheory.Limits.PreservesFiniteColimits (PresheafOfModules.evaluation R X)

instance PresheafOfModules.Finite.toPresheaf_preservesFiniteColimits E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (R : CategoryTheory.Functor Cᵒᵖ RingCat),
  CategoryTheory.Limits.PreservesFiniteColimits (PresheafOfModules.toPresheaf R)

instance PresheafOfModules.hasColimitsOfSize E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (R : CategoryTheory.Functor Cᵒᵖ RingCat)
  [CategoryTheory.Limits.HasColimitsOfSize.{v₂, u₂, v, v + 1} AddCommGrpCat],
  CategoryTheory.Limits.HasColimitsOfSize.{v₂, u₂, max u₁ v, max (max (max (v + 1) u) u₁) v₁} (PresheafOfModules R)

instance PresheafOfModules.evaluation_preservesColimitsOfSize E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (R : CategoryTheory.Functor Cᵒᵖ RingCat)
  [CategoryTheory.Limits.HasColimitsOfSize.{v₂, u₂, v, v + 1} AddCommGrpCat] (X : Cᵒᵖ),
  CategoryTheory.Limits.PreservesColimitsOfSize.{v₂, u₂, max u₁ v, v, max (max (max u u₁) (v + 1)) v₁, max u (v + 1)}
    (PresheafOfModules.evaluation R X)

instance PresheafOfModules.toPresheaf_preservesColimitsOfSize E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (R : CategoryTheory.Functor Cᵒᵖ RingCat)
  [CategoryTheory.Limits.HasColimitsOfSize.{v₂, u₂, v, v + 1} AddCommGrpCat],
  CategoryTheory.Limits.PreservesColimitsOfSize.{v₂, u₂, max u₁ v, max u₁ v, max (max (max u u₁) (v + 1)) v₁,
      max (max u₁ (v + 1)) v₁}
    (PresheafOfModules.toPresheaf R)