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 / V25. Higher structures in categories

Mathlib.CategoryTheory.Sites.Limits

20 declarations. Mathlib docs · Source

Limits and colimits of sheaves

Limits

We prove that the forgetful functor from Sheaf J D to presheaves creates limits. If the target category D has limits (of a certain shape), this then implies that Sheaf J D has limits of the same shape and that the forgetful functor preserves these limits.

Colimits

Given a diagram F : K ⥤ Sheaf J D of sheaves, and a colimit cocone on the level of presheaves, we show that the cocone obtained by sheafifying the cocone point is a colimit cocone of sheaves.

This allows us to show that Sheaf J D has colimits (of a certain shape) as soon as D does.

def CategoryTheory.Sheaf.multiforkEvaluationCone E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {J : CategoryTheory.GrothendieckTopology C} →
      {D : Type w} →
        [inst_1 : CategoryTheory.Category.{w', w} D] →
          {K : Type z} →
            [inst_2 : CategoryTheory.Category.{z', z} K] →
              (F : CategoryTheory.Functor K (CategoryTheory.Sheaf J D)) →
                (E : CategoryTheory.Limits.Cone (F.comp (CategoryTheory.sheafToPresheaf J D))) →
                  (X : C) →
                    (W : J.Cover X) →
                      CategoryTheory.Limits.Multifork (W.index E.pt) →
                        CategoryTheory.Limits.Cone
                          (F.comp
                            ((CategoryTheory.sheafToPresheaf J D).comp
                              ((CategoryTheory.evaluation Cᵒᵖ D).obj (Opposite.op X))))

An auxiliary definition to be used below.

Whenever E is a cone of shape K of sheaves, and S is the multifork associated to a covering W of an object X, with respect to the cone point E.X, this provides a cone of shape K of objects in D, with cone point S.X.

See isLimitMultiforkOfIsLimit for more on how this definition is used.

def CategoryTheory.Sheaf.isLimitMultiforkOfIsLimit E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {J : CategoryTheory.GrothendieckTopology C} →
      {D : Type w} →
        [inst_1 : CategoryTheory.Category.{w', w} D] →
          {K : Type z} →
            [inst_2 : CategoryTheory.Category.{z', z} K] →
              [CategoryTheory.Limits.HasLimitsOfShape K D] →
                (F : CategoryTheory.Functor K (CategoryTheory.Sheaf J D)) →
                  (E : CategoryTheory.Limits.Cone (F.comp (CategoryTheory.sheafToPresheaf J D))) →
                    CategoryTheory.Limits.IsLimit E →
                      (X : C) → (W : J.Cover X) → CategoryTheory.Limits.IsLimit (W.multifork E.pt)

If E is a cone of shape K of sheaves, which is a limit on the level of presheaves, this definition shows that the limit presheaf satisfies the multifork variant of the sheaf condition, at a given covering W.

This is used below in isSheaf_of_isLimit to show that the limit presheaf is indeed a sheaf.

theorem CategoryTheory.Sheaf.isSheaf_of_isLimit E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {D : Type w}
  [inst_1 : CategoryTheory.Category.{w', w} D] {K : Type z} [inst_2 : CategoryTheory.Category.{z', z} K]
  [CategoryTheory.Limits.HasLimitsOfShape K D] (F : CategoryTheory.Functor K (CategoryTheory.Sheaf J D))
  (E : CategoryTheory.Limits.Cone (F.comp (CategoryTheory.sheafToPresheaf J D))) (hE : CategoryTheory.Limits.IsLimit E),
  CategoryTheory.Presheaf.IsSheaf J E.pt

If E is a cone which is a limit on the level of presheaves, then the limit presheaf is again a sheaf.

This is used to show that the forgetful functor from sheaves to presheaves creates limits.

instance CategoryTheory.Sheaf.instIsClosedUnderLimitsOfShapeFunctorOppositeIsSheaf E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {D : Type w}
  [inst_1 : CategoryTheory.Category.{w', w} D] {K : Type z} [inst_2 : CategoryTheory.Category.{z', z} K]
  [CategoryTheory.Limits.HasLimitsOfShape K D],
  CategoryTheory.ObjectProperty.IsClosedUnderLimitsOfShape (CategoryTheory.Presheaf.IsSheaf J) K

instance CategoryTheory.Sheaf.createsLimitsOfShape E0 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {J : CategoryTheory.GrothendieckTopology C} →
      {D : Type w} →
        [inst_1 : CategoryTheory.Category.{w', w} D] →
          {K : Type z} →
            [inst_2 : CategoryTheory.Category.{z', z} K] →
              [CategoryTheory.Limits.HasLimitsOfShape K D] →
                CategoryTheory.CreatesLimitsOfShape K (CategoryTheory.sheafToPresheaf J D)

instance CategoryTheory.Sheaf.instHasLimitsOfShape E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {D : Type w}
  [inst_1 : CategoryTheory.Category.{w', w} D] {K : Type z} [inst_2 : CategoryTheory.Category.{z', z} K]
  [CategoryTheory.Limits.HasLimitsOfShape K D], CategoryTheory.Limits.HasLimitsOfShape K (CategoryTheory.Sheaf J D)

instance CategoryTheory.Sheaf.instHasFiniteProducts E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {D : Type w}
  [inst_1 : CategoryTheory.Category.{w', w} D] [CategoryTheory.Limits.HasFiniteProducts D],
  CategoryTheory.Limits.HasFiniteProducts (CategoryTheory.Sheaf J D)

instance CategoryTheory.Sheaf.instHasFiniteLimits E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {D : Type w}
  [inst_1 : CategoryTheory.Category.{w', w} D] [CategoryTheory.Limits.HasFiniteLimits D],
  CategoryTheory.Limits.HasFiniteLimits (CategoryTheory.Sheaf J D)

instance CategoryTheory.Sheaf.createsLimits E0 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {J : CategoryTheory.GrothendieckTopology C} →
      {D : Type w} →
        [inst_1 : CategoryTheory.Category.{w', w} D] →
          [CategoryTheory.Limits.HasLimitsOfSize.{u₁, u₂, w', w} D] →
            CategoryTheory.CreatesLimitsOfSize.{u₁, u₂, max u w', max u w', max (max (max u v) w) w',
                max (max (max u v) w) w'}
              (CategoryTheory.sheafToPresheaf J D)

instance CategoryTheory.Sheaf.hasLimitsOfSize E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {D : Type w}
  [inst_1 : CategoryTheory.Category.{w', w} D] [CategoryTheory.Limits.HasLimitsOfSize.{u₁, u₂, w', w} D],
  CategoryTheory.Limits.HasLimitsOfSize.{u₁, u₂, max u w', max (max (max w u) w') v} (CategoryTheory.Sheaf J D)

instance CategoryTheory.Sheaf.instPreservesFiniteLimitsFunctorOppositeSheafToPresheafOfHasFiniteLimits E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {D : Type w}
  [inst_1 : CategoryTheory.Category.{w', w} D] [CategoryTheory.Limits.HasFiniteLimits D],
  CategoryTheory.Limits.PreservesFiniteLimits (CategoryTheory.sheafToPresheaf J D)

def CategoryTheory.Sheaf.sheafifyCocone E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {J : CategoryTheory.GrothendieckTopology C} →
      {D : Type w} →
        [inst_1 : CategoryTheory.Category.{w', w} D] →
          {K : Type z} →
            [inst_2 : CategoryTheory.Category.{z', z} K] →
              [CategoryTheory.HasWeakSheafify J D] →
                {F : CategoryTheory.Functor K (CategoryTheory.Sheaf J D)} →
                  CategoryTheory.Limits.Cocone (F.comp (CategoryTheory.sheafToPresheaf J D)) →
                    CategoryTheory.Limits.Cocone F

Construct a cocone by sheafifying a cocone point of a cocone E of presheaves over a functor which factors through sheaves. In isColimitSheafifyCocone, we show that this is a colimit cocone when E is a colimit.

theorem CategoryTheory.Sheaf.sheafifyCocone_ι_app_val_assoc E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {D : Type w}
  [inst_1 : CategoryTheory.Category.{w', w} D] {K : Type z} [inst_2 : CategoryTheory.Category.{z', z} K]
  [inst_3 : CategoryTheory.HasWeakSheafify J D] {F : CategoryTheory.Functor K (CategoryTheory.Sheaf J D)}
  (E : CategoryTheory.Limits.Cocone (F.comp (CategoryTheory.sheafToPresheaf J D))) (k : K)
  {Z : CategoryTheory.Functor Cᵒᵖ D}
  (h : (((CategoryTheory.Functor.const K).obj (CategoryTheory.Sheaf.sheafifyCocone E).pt).obj k).obj ⟶ Z),
  CategoryTheory.CategoryStruct.comp ((CategoryTheory.Sheaf.sheafifyCocone E).ι.app k).hom h =
    CategoryTheory.CategoryStruct.comp (E.ι.app k)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.toSheafify J E.pt) h)

theorem CategoryTheory.Sheaf.sheafifyCocone_ι_app_val E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {D : Type w}
  [inst_1 : CategoryTheory.Category.{w', w} D] {K : Type z} [inst_2 : CategoryTheory.Category.{z', z} K]
  [inst_3 : CategoryTheory.HasWeakSheafify J D] {F : CategoryTheory.Functor K (CategoryTheory.Sheaf J D)}
  (E : CategoryTheory.Limits.Cocone (F.comp (CategoryTheory.sheafToPresheaf J D))) (k : K),
  ((CategoryTheory.Sheaf.sheafifyCocone E).ι.app k).hom =
    CategoryTheory.CategoryStruct.comp (E.ι.app k) (CategoryTheory.toSheafify J E.pt)

def CategoryTheory.Sheaf.isColimitSheafifyCocone E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {J : CategoryTheory.GrothendieckTopology C} →
      {D : Type w} →
        [inst_1 : CategoryTheory.Category.{w', w} D] →
          {K : Type z} →
            [inst_2 : CategoryTheory.Category.{z', z} K] →
              [inst_3 : CategoryTheory.HasWeakSheafify J D] →
                {F : CategoryTheory.Functor K (CategoryTheory.Sheaf J D)} →
                  (E : CategoryTheory.Limits.Cocone (F.comp (CategoryTheory.sheafToPresheaf J D))) →
                    CategoryTheory.Limits.IsColimit E →
                      CategoryTheory.Limits.IsColimit (CategoryTheory.Sheaf.sheafifyCocone E)

If E is a colimit cocone of presheaves, over a diagram factoring through sheaves, then sheafifyCocone E is a colimit cocone.

instance CategoryTheory.Sheaf.instHasColimitsOfShape E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {D : Type w}
  [inst_1 : CategoryTheory.Category.{w', w} D] {K : Type z} [inst_2 : CategoryTheory.Category.{z', z} K]
  [CategoryTheory.HasWeakSheafify J D] [CategoryTheory.Limits.HasColimitsOfShape K D],
  CategoryTheory.Limits.HasColimitsOfShape K (CategoryTheory.Sheaf J D)

instance CategoryTheory.Sheaf.instHasFiniteCoproducts E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {D : Type w}
  [inst_1 : CategoryTheory.Category.{w', w} D] [CategoryTheory.HasWeakSheafify J D]
  [CategoryTheory.Limits.HasFiniteCoproducts D], CategoryTheory.Limits.HasFiniteCoproducts (CategoryTheory.Sheaf J D)

instance CategoryTheory.Sheaf.instHasFiniteColimits E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {D : Type w}
  [inst_1 : CategoryTheory.Category.{w', w} D] [CategoryTheory.HasWeakSheafify J D]
  [CategoryTheory.Limits.HasFiniteColimits D], CategoryTheory.Limits.HasFiniteColimits (CategoryTheory.Sheaf J D)

instance CategoryTheory.Sheaf.instHasColimitsOfSize E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {D : Type w}
  [inst_1 : CategoryTheory.Category.{w', w} D] [CategoryTheory.HasWeakSheafify J D]
  [CategoryTheory.Limits.HasColimitsOfSize.{u₁, u₂, w', w} D],
  CategoryTheory.Limits.HasColimitsOfSize.{u₁, u₂, max u w', max (max (max w u) w') v} (CategoryTheory.Sheaf J D)

def CategoryTheory.Sheaf.createsColimitOfIsSheaf E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {J : CategoryTheory.GrothendieckTopology C} →
      {D : Type w} →
        [inst_1 : CategoryTheory.Category.{w', w} D] →
          {K : Type z} →
            [inst_2 : CategoryTheory.Category.{z', z} K] →
              (F : CategoryTheory.Functor K (CategoryTheory.Sheaf J D)) →
                (∀ (c : CategoryTheory.Limits.Cocone (F.comp (CategoryTheory.sheafToPresheaf J D)))
                    (x : CategoryTheory.Limits.IsColimit c), CategoryTheory.Presheaf.IsSheaf J c.pt) →
                  CategoryTheory.CreatesColimit F (CategoryTheory.sheafToPresheaf J D)

If every cocone on a diagram of sheaves which is a colimit on the level of presheaves satisfies the condition that the cocone point is a sheaf, then the functor from sheaves to presheaves creates colimits of the diagram. Note: this almost never holds in sheaf categories in general, but it does for the extensive topology (see Mathlib/CategoryTheory/Sites/Coherent/ExtensiveColimits.lean).