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.Sheaf

81 declarations. Mathlib docs · Source

Sheaves taking values in a category

If C is a category with a Grothendieck topology, we define the notion of a sheaf taking values in an arbitrary category A. We follow the definition in https://stacks.math.columbia.edu/tag/00VR, noting that the presheaf of sets "defined above" can be seen in the comments between tags 00VQ and 00VR on the page https://stacks.math.columbia.edu/tag/00VL. The advantage of this definition is that we need no assumptions whatsoever on A other than the assumption that the morphisms in C and A live in the same universe.

  • An A-valued presheaf P : Cᵒᵖ ⥤ A is defined to be a sheaf (for the topology J) iff for every E : A, the type-valued presheaves of sets given by sending U : Cᵒᵖ to Hom_{A}(E, P U) are all sheaves of sets, see CategoryTheory.Presheaf.IsSheaf.
  • When A = Type, this recovers the basic definition of sheaves of sets, see CategoryTheory.isSheaf_iff_isSheaf_of_type.
  • An alternate definition in terms of limits, unconditionally equivalent to the original one: see CategoryTheory.Presheaf.isSheaf_iff_isLimit.
  • An alternate definition when C is small, has pullbacks and A has products is given by an equalizer condition CategoryTheory.Presheaf.IsSheaf'. This is equivalent to the earlier definition, shown in CategoryTheory.Presheaf.isSheaf_iff_isSheaf'.
  • When A = Type, this is definitionally equal to the equalizer condition for presieves in CategoryTheory.Sites.SheafOfTypes.
  • When A has limits and there is a functor s : A ⥤ Type which is faithful, reflects isomorphisms and preserves limits, then P : Cᵒᵖ ⥤ A is a sheaf iff the underlying presheaf of types P ⋙ s : Cᵒᵖ ⥤ Type is a sheaf (CategoryTheory.Presheaf.isSheaf_iff_isSheaf_forget). Cf https://stacks.math.columbia.edu/tag/0073, which is a weaker version of this statement (it's only over spaces, not sites) and https://stacks.math.columbia.edu/tag/00YR (a), which additionally assumes filtered colimits.

Implementation notes

Occasionally we need to take a limit in A of a collection of morphisms of C indexed by a collection of objects in C. This turns out to force the morphisms of A to be in a sufficiently large universe. Rather than use UnivLE we prove some results for a category A' instead, whose morphism universe of A' is defined to be max u₁ v₁, where u₁, v₁ are the universes for C. Perhaps after we get better at handling universe inequalities this can be changed.

theorem CategoryTheory.Presheaf.IsSheaf.amalgamate.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] {E : A} {X : C} {P : CategoryTheory.Functor Cᵒᵖ A}
  (hP : CategoryTheory.Presheaf.IsSheaf J P) (S : J.Cover X) (x x_1 : (I : S.Arrow) → E ⟶ P.obj (Opposite.op I.Y))
  (e_x : x = x_1)
  (hx :
    ∀ ⦃I₁ I₂ : S.Arrow⦄ (r : I₁.Relation I₂),
      CategoryTheory.CategoryStruct.comp (x I₁) (P.map r.g₁.op) =
        CategoryTheory.CategoryStruct.comp (x I₂) (P.map r.g₂.op)),
  hP.amalgamate S x hx = hP.amalgamate S x_1 ⋯

theorem CategoryTheory.Presheaf.IsSheaf.amalgamateOfArrows.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  {J J_1 : CategoryTheory.GrothendieckTopology C} (e_J : J = J_1) {P : CategoryTheory.Functor Cᵒᵖ A}
  (hP : CategoryTheory.Presheaf.IsSheaf J P) {I : Type u_1} {S : C} {X : I → C} (f f_1 : (i : I) → X i ⟶ S)
  (e_f : f = f_1) (hf : CategoryTheory.Sieve.ofArrows X f ∈ J S) {E : A}
  (x x_1 : (i : I) → E ⟶ P.obj (Opposite.op (X i))) (e_x : x = x_1)
  (hx :
    ∀ ⦃W : C⦄ ⦃i j : I⦄ (a : W ⟶ X i) (b : W ⟶ X j),
      CategoryTheory.CategoryStruct.comp a (f i) = CategoryTheory.CategoryStruct.comp b (f j) →
        CategoryTheory.CategoryStruct.comp (x i) (P.map a.op) = CategoryTheory.CategoryStruct.comp (x j) (P.map b.op)),
  hP.amalgamateOfArrows f hf x hx = ⋯.amalgamateOfArrows f_1 ⋯ x_1 ⋯

def CategoryTheory.Presheaf.IsSheaf E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
        CategoryTheory.GrothendieckTopology C → CategoryTheory.Functor Cᵒᵖ A → Prop

A sheaf of A is a presheaf P : Cᵒᵖ ⥤ A such that for every E : A, the presheaf of types given by sending U : C to Hom_{A}(E, P U) is a sheaf of types.

def CategoryTheory.Presheaf.IsSeparated E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
        CategoryTheory.GrothendieckTopology C →
          CategoryTheory.Functor Cᵒᵖ A →
            {FA : A → A → Type u_1} →
              {CA : A → Type u_2} →
                [inst : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] → [CategoryTheory.ConcreteCategory A FA] → Prop

Condition that a presheaf with values in a concrete category is separated for a Grothendieck topology.

def CategoryTheory.Presheaf.conesEquivSieveCompatibleFamily E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
        (P : CategoryTheory.Functor Cᵒᵖ A) →
          {X : C} →
            (S : CategoryTheory.Sieve X) →
              (E : Aᵒᵖ) → (S.arrows.diagram.op.comp P).cones.obj E ≃ { x // x.SieveCompatible }

Given a sieve S on X : C, a presheaf P : Cᵒᵖ ⥤ A, and an object E of A, the cones over the natural diagram S.arrows.diagram.op ⋙ P associated to S and P with cone point E are in 1-1 correspondence with SieveCompatible family of elements for the sieve S and the presheaf of types Hom (E, P -).

def CategoryTheory.Presieve.FamilyOfElements.SieveCompatible.cone E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
        {P : CategoryTheory.Functor Cᵒᵖ A} →
          {X : C} →
            {S : CategoryTheory.Sieve X} →
              {E : Aᵒᵖ} →
                {x : CategoryTheory.Presieve.FamilyOfElements (P.comp (CategoryTheory.coyoneda.obj E)) S.arrows} →
                  x.SieveCompatible → CategoryTheory.Limits.Cone (S.arrows.diagram.op.comp P)

The cone corresponding to a SieveCompatible family of elements, dot notation enabled.

def CategoryTheory.Presheaf.homEquivAmalgamation E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
        {P : CategoryTheory.Functor Cᵒᵖ A} →
          {X : C} →
            {S : CategoryTheory.Sieve X} →
              {E : Aᵒᵖ} →
                {x : CategoryTheory.Presieve.FamilyOfElements (P.comp (CategoryTheory.coyoneda.obj E)) S.arrows} →
                  (hx : x.SieveCompatible) → (hx.cone ⟶ P.mapCone S.arrows.cocone.op) ≃ { t // x.IsAmalgamation t }

Cone morphisms from the cone corresponding to a SieveCompatible family to the natural cone associated to a sieve S and a presheaf P are in 1-1 correspondence with amalgamations of the family.

theorem CategoryTheory.Presheaf.isLimit_iff_isSheafFor E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  (P : CategoryTheory.Functor Cᵒᵖ A) {X : C} (S : CategoryTheory.Sieve X),
  Nonempty (CategoryTheory.Limits.IsLimit (P.mapCone S.arrows.cocone.op)) ↔
    ∀ (E : Aᵒᵖ), CategoryTheory.Presieve.IsSheafFor (P.comp (CategoryTheory.coyoneda.obj E)) S.arrows

Given sieve S and presheaf P : Cᵒᵖ ⥤ A, their natural associated cone is a limit cone iff Hom (E, P -) is a sheaf of types for the sieve S and all E : A.

theorem CategoryTheory.Presheaf.subsingleton_iff_isSeparatedFor E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  (P : CategoryTheory.Functor Cᵒᵖ A) {X : C} (S : CategoryTheory.Sieve X),
  (∀ (c : CategoryTheory.Limits.Cone (S.arrows.diagram.op.comp P)), Subsingleton (c ⟶ P.mapCone S.arrows.cocone.op)) ↔
    ∀ (E : Aᵒᵖ), CategoryTheory.Presieve.IsSeparatedFor (P.comp (CategoryTheory.coyoneda.obj E)) S.arrows

Given sieve S and presheaf P : Cᵒᵖ ⥤ A, their natural associated cone admits at most one morphism from every cone in the same category (i.e. over the same diagram), iff Hom (E, P -) is separated for the sieve S and all E : A.

theorem CategoryTheory.Presheaf.isSheaf_iff_isLimit E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  (J : CategoryTheory.GrothendieckTopology C) (P : CategoryTheory.Functor Cᵒᵖ A),
  CategoryTheory.Presheaf.IsSheaf J P ↔
    ∀ ⦃X : C⦄, ∀ S ∈ J X, Nonempty (CategoryTheory.Limits.IsLimit (P.mapCone S.arrows.cocone.op))

A presheaf P is a sheaf for the Grothendieck topology J iff for every covering sieve S of J, the natural cone associated to P and S is a limit cone.

theorem CategoryTheory.Presheaf.isSeparated_iff_subsingleton E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  (J : CategoryTheory.GrothendieckTopology C) (P : CategoryTheory.Functor Cᵒᵖ A),
  (∀ (E : A), CategoryTheory.Presieve.IsSeparated J (P.comp (CategoryTheory.coyoneda.obj (Opposite.op E)))) ↔
    ∀ ⦃X : C⦄,
      ∀ S ∈ J X,
        ∀ (c : CategoryTheory.Limits.Cone (S.arrows.diagram.op.comp P)), Subsingleton (c ⟶ P.mapCone S.arrows.cocone.op)

A presheaf P is separated for the Grothendieck topology J iff for every covering sieve S of J, the natural cone associated to P and S admits at most one morphism from every cone in the same category.

theorem CategoryTheory.Presheaf.isLimit_iff_isSheafFor_presieve E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  (P : CategoryTheory.Functor Cᵒᵖ A) {X : C} (R : CategoryTheory.Presieve X),
  Nonempty (CategoryTheory.Limits.IsLimit (P.mapCone (CategoryTheory.Sieve.generate R).arrows.cocone.op)) ↔
    ∀ (E : Aᵒᵖ), CategoryTheory.Presieve.IsSheafFor (P.comp (CategoryTheory.coyoneda.obj E)) R

Given presieve R and presheaf P : Cᵒᵖ ⥤ A, the natural cone associated to P and the sieve Sieve.generate R generated by R is a limit cone iff Hom (E, P -) is a sheaf of types for the presieve R and all E : A.

theorem CategoryTheory.Presheaf.isSheaf_iff_isLimit_pretopology E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  (P : CategoryTheory.Functor Cᵒᵖ A) [inst_2 : CategoryTheory.Limits.HasPullbacks C] (K : CategoryTheory.Pretopology C),
  CategoryTheory.Presheaf.IsSheaf K.toGrothendieck P ↔
    ∀ ⦃X : C⦄,
      ∀ R ∈ K.coverings X,
        Nonempty (CategoryTheory.Limits.IsLimit (P.mapCone (CategoryTheory.Sieve.generate R).arrows.cocone.op))

A presheaf P is a sheaf for the Grothendieck topology generated by a pretopology K iff for every covering presieve R of K, the natural cone associated to P and Sieve.generate R is a limit cone.

def CategoryTheory.Presheaf.IsSheaf.amalgamate E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {J : CategoryTheory.GrothendieckTopology C} →
      {A : Type u₂} →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
          {E : A} →
            {X : C} →
              {P : CategoryTheory.Functor Cᵒᵖ A} →
                CategoryTheory.Presheaf.IsSheaf J P →
                  (S : J.Cover X) →
                    (x : (I : S.Arrow) → E ⟶ P.obj (Opposite.op I.Y)) →
                      (∀ ⦃I₁ I₂ : S.Arrow⦄ (r : I₁.Relation I₂),
                          CategoryTheory.CategoryStruct.comp (x I₁) (P.map r.g₁.op) =
                            CategoryTheory.CategoryStruct.comp (x I₂) (P.map r.g₂.op)) →
                        (E ⟶ P.obj (Opposite.op X))

This is a wrapper around Presieve.IsSheafFor.amalgamate to be used below. If P is a sheaf, S is a cover of X, and x is a collection of morphisms from E to P evaluated at terms in the cover which are compatible, then we can amalgamate the xs to obtain a single morphism E ⟶ P.obj (op X).

theorem CategoryTheory.Presheaf.IsSheaf.amalgamate_map E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] {E : A} {X : C} {P : CategoryTheory.Functor Cᵒᵖ A}
  (hP : CategoryTheory.Presheaf.IsSheaf J P) (S : J.Cover X) (x : (I : S.Arrow) → E ⟶ P.obj (Opposite.op I.Y))
  (hx :
    ∀ ⦃I₁ I₂ : S.Arrow⦄ (r : I₁.Relation I₂),
      CategoryTheory.CategoryStruct.comp (x I₁) (P.map r.g₁.op) =
        CategoryTheory.CategoryStruct.comp (x I₂) (P.map r.g₂.op))
  (I : S.Arrow), CategoryTheory.CategoryStruct.comp (hP.amalgamate S x hx) (P.map I.f.op) = x I

theorem CategoryTheory.Presheaf.IsSheaf.amalgamate_map_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] {E : A} {X : C} {P : CategoryTheory.Functor Cᵒᵖ A}
  (hP : CategoryTheory.Presheaf.IsSheaf J P) (S : J.Cover X) (x : (I : S.Arrow) → E ⟶ P.obj (Opposite.op I.Y))
  (hx :
    ∀ ⦃I₁ I₂ : S.Arrow⦄ (r : I₁.Relation I₂),
      CategoryTheory.CategoryStruct.comp (x I₁) (P.map r.g₁.op) =
        CategoryTheory.CategoryStruct.comp (x I₂) (P.map r.g₂.op))
  (I : S.Arrow) {Z : A} (h : P.obj (Opposite.op I.Y) ⟶ Z),
  CategoryTheory.CategoryStruct.comp (hP.amalgamate S x hx) (CategoryTheory.CategoryStruct.comp (P.map I.f.op) h) =
    CategoryTheory.CategoryStruct.comp (x I) h

theorem CategoryTheory.Presheaf.IsSheaf.hom_ext E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] {E : A} {X : C} {P : CategoryTheory.Functor Cᵒᵖ A},
  CategoryTheory.Presheaf.IsSheaf J P →
    ∀ (S : J.Cover X) (e₁ e₂ : E ⟶ P.obj (Opposite.op X)),
      (∀ (I : S.Arrow),
          CategoryTheory.CategoryStruct.comp e₁ (P.map I.f.op) = CategoryTheory.CategoryStruct.comp e₂ (P.map I.f.op)) →
        e₁ = e₂

theorem CategoryTheory.Presheaf.IsSheaf.hom_ext_ofArrows E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  {J : CategoryTheory.GrothendieckTopology C} {P : CategoryTheory.Functor Cᵒᵖ A},
  CategoryTheory.Presheaf.IsSheaf J P →
    ∀ {I : Type u_1} {S : C} {X : I → C} (f : (i : I) → X i ⟶ S),
      CategoryTheory.Sieve.ofArrows X f ∈ J S →
        ∀ {E : A} {x y : E ⟶ P.obj (Opposite.op S)},
          (∀ (i : I),
              CategoryTheory.CategoryStruct.comp x (P.map (f i).op) =
                CategoryTheory.CategoryStruct.comp y (P.map (f i).op)) →
            x = y

theorem CategoryTheory.Presheaf.IsSheaf.existsUnique_amalgamation_ofArrows E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  {J : CategoryTheory.GrothendieckTopology C} {P : CategoryTheory.Functor Cᵒᵖ A},
  CategoryTheory.Presheaf.IsSheaf J P →
    ∀ {I : Type u_1} {S : C} {X : I → C} (f : (i : I) → X i ⟶ S),
      CategoryTheory.Sieve.ofArrows X f ∈ J S →
        ∀ {E : A} (x : (i : I) → E ⟶ P.obj (Opposite.op (X i))),
          (∀ ⦃W : C⦄ ⦃i j : I⦄ (a : W ⟶ X i) (b : W ⟶ X j),
              CategoryTheory.CategoryStruct.comp a (f i) = CategoryTheory.CategoryStruct.comp b (f j) →
                CategoryTheory.CategoryStruct.comp (x i) (P.map a.op) =
                  CategoryTheory.CategoryStruct.comp (x j) (P.map b.op)) →
            ∃! g, ∀ (i : I), CategoryTheory.CategoryStruct.comp g (P.map (f i).op) = x i

def CategoryTheory.Presheaf.IsSheaf.amalgamateOfArrows E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
        {J : CategoryTheory.GrothendieckTopology C} →
          {P : CategoryTheory.Functor Cᵒᵖ A} →
            CategoryTheory.Presheaf.IsSheaf J P →
              {I : Type u_1} →
                {S : C} →
                  {X : I → C} →
                    (f : (i : I) → X i ⟶ S) →
                      CategoryTheory.Sieve.ofArrows X f ∈ J S →
                        {E : A} →
                          (x : (i : I) → E ⟶ P.obj (Opposite.op (X i))) →
                            (∀ ⦃W : C⦄ ⦃i j : I⦄ (a : W ⟶ X i) (b : W ⟶ X j),
                                CategoryTheory.CategoryStruct.comp a (f i) =
                                    CategoryTheory.CategoryStruct.comp b (f j) →
                                  CategoryTheory.CategoryStruct.comp (x i) (P.map a.op) =
                                    CategoryTheory.CategoryStruct.comp (x j) (P.map b.op)) →
                              (E ⟶ P.obj (Opposite.op S))

If P : Cᵒᵖ ⥤ A is a sheaf and f i : X i ⟶ S is a covering family, then a morphism E ⟶ P.obj (op S) can be constructed from a compatible family of morphisms x : E ⟶ P.obj (op (X i)).

theorem CategoryTheory.Presheaf.IsSheaf.amalgamateOfArrows_map E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  {J : CategoryTheory.GrothendieckTopology C} {P : CategoryTheory.Functor Cᵒᵖ A}
  (hP : CategoryTheory.Presheaf.IsSheaf J P) {I : Type u_1} {S : C} {X : I → C} (f : (i : I) → X i ⟶ S)
  (hf : CategoryTheory.Sieve.ofArrows X f ∈ J S) {E : A} (x : (i : I) → E ⟶ P.obj (Opposite.op (X i)))
  (hx :
    ∀ ⦃W : C⦄ ⦃i j : I⦄ (a : W ⟶ X i) (b : W ⟶ X j),
      CategoryTheory.CategoryStruct.comp a (f i) = CategoryTheory.CategoryStruct.comp b (f j) →
        CategoryTheory.CategoryStruct.comp (x i) (P.map a.op) = CategoryTheory.CategoryStruct.comp (x j) (P.map b.op))
  (i : I), CategoryTheory.CategoryStruct.comp (hP.amalgamateOfArrows f hf x hx) (P.map (f i).op) = x i

theorem CategoryTheory.Presheaf.IsSheaf.amalgamateOfArrows_map_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  {J : CategoryTheory.GrothendieckTopology C} {P : CategoryTheory.Functor Cᵒᵖ A}
  (hP : CategoryTheory.Presheaf.IsSheaf J P) {I : Type u_1} {S : C} {X : I → C} (f : (i : I) → X i ⟶ S)
  (hf : CategoryTheory.Sieve.ofArrows X f ∈ J S) {E : A} (x : (i : I) → E ⟶ P.obj (Opposite.op (X i)))
  (hx :
    ∀ ⦃W : C⦄ ⦃i j : I⦄ (a : W ⟶ X i) (b : W ⟶ X j),
      CategoryTheory.CategoryStruct.comp a (f i) = CategoryTheory.CategoryStruct.comp b (f j) →
        CategoryTheory.CategoryStruct.comp (x i) (P.map a.op) = CategoryTheory.CategoryStruct.comp (x j) (P.map b.op))
  (i : I) {Z : A} (h : P.obj (Opposite.op (X i)) ⟶ Z),
  CategoryTheory.CategoryStruct.comp (hP.amalgamateOfArrows f hf x hx)
      (CategoryTheory.CategoryStruct.comp (P.map (f i).op) h) =
    CategoryTheory.CategoryStruct.comp (x i) h

theorem CategoryTheory.Presheaf.isSheaf_of_iso_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  {J : CategoryTheory.GrothendieckTopology C} {P P' : CategoryTheory.Functor Cᵒᵖ A} (e : P ≅ P'),
  CategoryTheory.Presheaf.IsSheaf J P ↔ CategoryTheory.Presheaf.IsSheaf J P'

theorem CategoryTheory.Presheaf.isSheaf_of_isTerminal E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  (J : CategoryTheory.GrothendieckTopology C) {X : A} (hX : CategoryTheory.Limits.IsTerminal X),
  CategoryTheory.Presheaf.IsSheaf J ((CategoryTheory.Functor.const Cᵒᵖ).obj X)

abbrev CategoryTheory.Sheaf E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    CategoryTheory.GrothendieckTopology C →
      (A : Type u₂) → [CategoryTheory.Category.{v₂, u₂} A] → Type (max (max (max u₂ v₂) u₁) v₁)

The category of sheaves taking values in A on a Grothendieck topology.

theorem CategoryTheory.Sheaf.hom_ext_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] {F G : CategoryTheory.Sheaf J A} {f g : F ⟶ G}, f = g ↔ f.hom = g.hom

theorem CategoryTheory.Sheaf.hom_ext E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] {F G : CategoryTheory.Sheaf J A} {f g : F ⟶ G}, f.hom = g.hom → f = g

abbrev CategoryTheory.sheafToPresheaf E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    (J : CategoryTheory.GrothendieckTopology C) →
      (A : Type u₂) →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
          CategoryTheory.Functor (CategoryTheory.Sheaf J A) (CategoryTheory.Functor Cᵒᵖ A)

The inclusion functor of the category of sheaves in the category of presheaves.

abbrev CategoryTheory.sheafSections E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    (J : CategoryTheory.GrothendieckTopology C) →
      (A : Type u₂) →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
          CategoryTheory.Functor Cᵒᵖ (CategoryTheory.Functor (CategoryTheory.Sheaf J A) A)

The sections of a sheaf (i.e. evaluation as a presheaf on C).

def CategoryTheory.sheafSectionsNatIsoEvaluation E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    (J : CategoryTheory.GrothendieckTopology C) →
      (A : Type u₂) →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
          {X : C} →
            (CategoryTheory.sheafSections J A).obj (Opposite.op X) ≅
              (CategoryTheory.sheafToPresheaf J A).comp ((CategoryTheory.evaluation Cᵒᵖ A).obj (Opposite.op X))

The sheaf sections functor on X is given by evaluation of presheaves on X.

theorem CategoryTheory.sheafSectionsNatIsoEvaluation_hom_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (J : CategoryTheory.GrothendieckTopology C) (A : Type u₂)
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] {X : C} (X_1 : CategoryTheory.Sheaf J A),
  (CategoryTheory.sheafSectionsNatIsoEvaluation J A).hom.app X_1 =
    CategoryTheory.CategoryStruct.id (X_1.obj.obj (Opposite.op X))

theorem CategoryTheory.sheafSectionsNatIsoEvaluation_inv_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (J : CategoryTheory.GrothendieckTopology C) (A : Type u₂)
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] {X : C} (X_1 : CategoryTheory.Sheaf J A),
  (CategoryTheory.sheafSectionsNatIsoEvaluation J A).inv.app X_1 =
    CategoryTheory.CategoryStruct.id (X_1.obj.obj (Opposite.op X))

abbrev CategoryTheory.fullyFaithfulSheafToPresheaf E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    (J : CategoryTheory.GrothendieckTopology C) →
      (A : Type u₂) → [inst_1 : CategoryTheory.Category.{v₂, u₂} A] → (CategoryTheory.sheafToPresheaf J A).FullyFaithful

The functor Sheaf J A ⥤ Cᵒᵖ ⥤ A is fully faithful.

abbrev CategoryTheory.Sheaf.homEquiv E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {J : CategoryTheory.GrothendieckTopology C} →
      {A : Type u₂} →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} A] → {X Y : CategoryTheory.Sheaf J A} → (X ⟶ Y) ≃ (X.obj ⟶ Y.obj)

The bijection (X ⟶ Y) ≃ (X.val ⟶ Y.val) when X and Y are sheaves.

def CategoryTheory.sheafToPresheafCompYonedaCompWhiskeringLeftSheafToPresheaf E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {J : CategoryTheory.GrothendieckTopology C} →
      {A : Type u₂} →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
          (CategoryTheory.sheafToPresheaf J A).comp
              (CategoryTheory.yoneda.comp
                ((CategoryTheory.Functor.whiskeringLeft (CategoryTheory.Sheaf J A)ᵒᵖ (CategoryTheory.Functor Cᵒᵖ A)ᵒᵖ
                      (Type (max u₁ v₂))).obj
                  (CategoryTheory.sheafToPresheaf J A).op)) ≅
            CategoryTheory.yoneda

Sheaf.homEquiv as a natural isomorphism.

theorem CategoryTheory.sheafToPresheafCompYonedaCompWhiskeringLeftSheafToPresheaf_hom_app_app_hom_apply_hom E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] (X : CategoryTheory.Sheaf J A) (X_1 : (CategoryTheory.Sheaf J A)ᵒᵖ)
  (a :
    (((CategoryTheory.sheafToPresheaf J A).comp
              (CategoryTheory.yoneda.comp
                ((CategoryTheory.Functor.whiskeringLeft (CategoryTheory.Sheaf J A)ᵒᵖ (CategoryTheory.Functor Cᵒᵖ A)ᵒᵖ
                      (Type (max u₁ v₂))).obj
                  (CategoryTheory.sheafToPresheaf J A).op))).obj
          X).obj
      X_1),
  ((CategoryTheory.ConcreteCategory.hom
          ((CategoryTheory.sheafToPresheafCompYonedaCompWhiskeringLeftSheafToPresheaf.hom.app X).app X_1))
        a).hom =
    (Equiv.ulift.toIso.inv.hom' a).down

theorem CategoryTheory.sheafToPresheafCompYonedaCompWhiskeringLeftSheafToPresheaf_inv_app_app_hom_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] (X : CategoryTheory.Sheaf J A) (X_1 : (CategoryTheory.Sheaf J A)ᵒᵖ)
  (a : (CategoryTheory.yoneda.obj X).obj X_1),
  (CategoryTheory.ConcreteCategory.hom
        ((CategoryTheory.sheafToPresheafCompYonedaCompWhiskeringLeftSheafToPresheaf.inv.app X).app X_1))
      a =
    Equiv.ulift.toIso.hom.hom'
      ((CategoryTheory.CategoryStruct.comp Equiv.ulift.toIso.inv
            (((CategoryTheory.fullyFaithfulSheafToPresheaf J A).compUliftYonedaCompWhiskeringLeft.inv.app X).app
              X_1)).hom'
        a)

theorem CategoryTheory.sheafToPresheafCompYonedaCompWhiskeringLeftSheafToPresheaf_app_app E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] {X Y : CategoryTheory.Sheaf J A},
  (CategoryTheory.sheafToPresheafCompYonedaCompWhiskeringLeftSheafToPresheaf.app X).app (Opposite.op Y) =
    CategoryTheory.Sheaf.homEquiv.symm.toIso

def CategoryTheory.sheafToPresheafCompCoyonedaCompWhiskeringLeftSheafToPresheaf E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {J : CategoryTheory.GrothendieckTopology C} →
      {A : Type u₂} →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
          (CategoryTheory.sheafToPresheaf J A).op.comp
              (CategoryTheory.coyoneda.comp
                ((CategoryTheory.Functor.whiskeringLeft (CategoryTheory.Sheaf J A) (CategoryTheory.Functor Cᵒᵖ A)
                      (Type (max u₁ v₂))).obj
                  (CategoryTheory.sheafToPresheaf J A))) ≅
            CategoryTheory.coyoneda

Sheaf.homEquiv as a natural isomorphism, using coyoneda.

theorem CategoryTheory.sheafToPresheafCompCoyonedaCompWhiskeringLeftSheafToPresheaf_hom_app_app_hom_apply_hom E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] (X : (CategoryTheory.Sheaf J A)ᵒᵖ) (X_1 : CategoryTheory.Sheaf J A)
  (a :
    (((CategoryTheory.sheafToPresheaf J A).op.comp
              (CategoryTheory.coyoneda.comp
                ((CategoryTheory.Functor.whiskeringLeft (CategoryTheory.Sheaf J A) (CategoryTheory.Functor Cᵒᵖ A)
                      (Type (max u₁ v₂))).obj
                  (CategoryTheory.sheafToPresheaf J A)))).obj
          X).obj
      X_1),
  ((CategoryTheory.ConcreteCategory.hom
          ((CategoryTheory.sheafToPresheafCompCoyonedaCompWhiskeringLeftSheafToPresheaf.hom.app X).app X_1))
        a).hom =
    (Equiv.ulift.toIso.inv.hom' a).down

theorem CategoryTheory.sheafToPresheafCompCoyonedaCompWhiskeringLeftSheafToPresheaf_inv_app_app_hom_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] (X : (CategoryTheory.Sheaf J A)ᵒᵖ) (X_1 : CategoryTheory.Sheaf J A)
  (a : (CategoryTheory.coyoneda.obj X).obj X_1),
  (CategoryTheory.ConcreteCategory.hom
        ((CategoryTheory.sheafToPresheafCompCoyonedaCompWhiskeringLeftSheafToPresheaf.inv.app X).app X_1))
      a =
    Equiv.ulift.toIso.hom.hom'
      ((CategoryTheory.CategoryStruct.comp Equiv.ulift.toIso.inv
            (((CategoryTheory.fullyFaithfulSheafToPresheaf J A).compUliftCoyonedaCompWhiskeringLeft.inv.app X).app
              X_1)).hom'
        a)

theorem CategoryTheory.sheafToPresheafCompCoyonedaCompWhiskeringLeftSheafToPresheaf_app_app E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] {X Y : CategoryTheory.Sheaf J A},
  (CategoryTheory.sheafToPresheafCompCoyonedaCompWhiskeringLeftSheafToPresheaf.app (Opposite.op X)).app Y =
    CategoryTheory.Sheaf.homEquiv.symm.toIso

theorem CategoryTheory.Sheaf.Hom.mono_of_presheaf_mono E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (J : CategoryTheory.GrothendieckTopology C) (A : Type u₂)
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] {F G : CategoryTheory.Sheaf J A} (f : F ⟶ G)
  [h : CategoryTheory.Mono f.hom], CategoryTheory.Mono f

This is stated as a lemma to prevent class search from forming a loop since a sheaf morphism is monic if and only if it is monic as a presheaf morphism (under suitable assumption).

instance CategoryTheory.Sheaf.Hom.epi_of_presheaf_epi E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (J : CategoryTheory.GrothendieckTopology C) (A : Type u₂)
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] {F G : CategoryTheory.Sheaf J A} (f : F ⟶ G)
  [h : CategoryTheory.Epi f.hom], CategoryTheory.Epi f

theorem CategoryTheory.isSheaf_iff_isSheaf_of_type E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (J : CategoryTheory.GrothendieckTopology C)
  (P : CategoryTheory.Functor Cᵒᵖ (Type w)), CategoryTheory.Presheaf.IsSheaf J P ↔ CategoryTheory.Presieve.IsSheaf J P

def CategoryTheory.sheafOver E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
        {J : CategoryTheory.GrothendieckTopology C} → CategoryTheory.Sheaf J A → A → CategoryTheory.Sheaf J (Type v₂)

The sheaf of sections guaranteed by the sheaf condition.

theorem CategoryTheory.sheafOver_obj E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  {J : CategoryTheory.GrothendieckTopology C} (ℱ : CategoryTheory.Sheaf J A) (E : A),
  (CategoryTheory.sheafOver ℱ E).obj = ℱ.obj.comp (CategoryTheory.coyoneda.obj (Opposite.op E))

theorem CategoryTheory.Presheaf.IsSheaf.isSheafFor E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {J : CategoryTheory.GrothendieckTopology C}
  {P : CategoryTheory.Functor Cᵒᵖ (Type w)},
  CategoryTheory.Presheaf.IsSheaf J P → ∀ {X : C}, ∀ S ∈ J X, CategoryTheory.Presieve.IsSheafFor P S.arrows

theorem CategoryTheory.Presheaf.isSheaf_bot E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  (P : CategoryTheory.Functor Cᵒᵖ A), CategoryTheory.Presheaf.IsSheaf ⊥ P

theorem CategoryTheory.Presheaf.IsSheaf.of_le E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] {K : CategoryTheory.GrothendieckTopology C}
  {F : CategoryTheory.Functor Cᵒᵖ A}, J ≤ K → CategoryTheory.Presheaf.IsSheaf K F → CategoryTheory.Presheaf.IsSheaf J F

def CategoryTheory.sheafBotEquivalence E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    (A : Type u₂) →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] → CategoryTheory.Sheaf ⊥ A ≌ CategoryTheory.Functor Cᵒᵖ A

The category of sheaves on the bottom (trivial) Grothendieck topology is equivalent to the category of presheaves.

theorem CategoryTheory.sheafBotEquivalence_functor E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (A : Type u₂) [inst_1 : CategoryTheory.Category.{v₂, u₂} A],
  (CategoryTheory.sheafBotEquivalence A).functor = CategoryTheory.sheafToPresheaf ⊥ A

theorem CategoryTheory.sheafBotEquivalence_inverse_map_hom E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (A : Type u₂) [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  {X Y : CategoryTheory.Functor Cᵒᵖ A} (f : X ⟶ Y), ((CategoryTheory.sheafBotEquivalence A).inverse.map f).hom = f

theorem CategoryTheory.sheafBotEquivalence_unitIso E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (A : Type u₂) [inst_1 : CategoryTheory.Category.{v₂, u₂} A],
  (CategoryTheory.sheafBotEquivalence A).unitIso =
    CategoryTheory.Iso.refl (CategoryTheory.Functor.id (CategoryTheory.Sheaf ⊥ A))

theorem CategoryTheory.sheafBotEquivalence_inverse_obj_obj E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (A : Type u₂) [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  (P : CategoryTheory.Functor Cᵒᵖ A), ((CategoryTheory.sheafBotEquivalence A).inverse.obj P).obj = P

theorem CategoryTheory.sheafBotEquivalence_counitIso E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (A : Type u₂) [inst_1 : CategoryTheory.Category.{v₂, u₂} A],
  (CategoryTheory.sheafBotEquivalence A).counitIso =
    CategoryTheory.Iso.refl
      ({ obj := fun P ↦ { obj := P, property := ⋯ }, map := fun {X Y} f ↦ { hom := f }, map_id := ⋯,
            map_comp := ⋯ }.comp
        (CategoryTheory.sheafToPresheaf ⊥ A))

instance CategoryTheory.instInhabitedSheafBotGrothendieckTopologyType E0 #

{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → Inhabited (CategoryTheory.Sheaf ⊥ (Type w))

def CategoryTheory.Sheaf.isTerminalOfBotCover E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {J : CategoryTheory.GrothendieckTopology C} →
      {A : Type u₂} →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
          (F : CategoryTheory.Sheaf J A) →
            (X : C) → ⊥ ∈ J X → CategoryTheory.Limits.IsTerminal (F.obj.obj (Opposite.op X))

If the empty sieve is a cover of X, then F(X) is terminal.

def CategoryTheory.Sheaf.terminal E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    (J : CategoryTheory.GrothendieckTopology C) →
      {A : Type u₂} →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
          {X : A} → CategoryTheory.Limits.IsTerminal X → CategoryTheory.Sheaf J A

A terminal object in A gives rise to a terminal object in Sheaf J

theorem CategoryTheory.Sheaf.terminal_obj E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (J : CategoryTheory.GrothendieckTopology C) {A : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] {X : A} (hX : CategoryTheory.Limits.IsTerminal X),
  (CategoryTheory.Sheaf.terminal J hX).obj = (CategoryTheory.Functor.const Cᵒᵖ).obj X

def CategoryTheory.Sheaf.isTerminalTerminal E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    (J : CategoryTheory.GrothendieckTopology C) →
      {A : Type u₂} →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
          {X : A} →
            (hX : CategoryTheory.Limits.IsTerminal X) →
              CategoryTheory.Limits.IsTerminal (CategoryTheory.Sheaf.terminal J hX)

The constant sheaf of a terminal object is indeed terminal

theorem CategoryTheory.Sheaf.isTerminalTerminal_from_hom E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] {X : A} (hX : CategoryTheory.Limits.IsTerminal X)
  (G : CategoryTheory.Sheaf J A),
  ((CategoryTheory.Sheaf.isTerminalTerminal J hX).from G).hom =
    (CategoryTheory.Functor.isTerminalConst Cᵒᵖ hX).from G.obj

def CategoryTheory.Sheaf.isTerminalOfEqTop E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {J : CategoryTheory.GrothendieckTopology C} →
      {A : Type u₂} →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
          J = ⊤ → (F : CategoryTheory.Sheaf J A) → CategoryTheory.Limits.IsTerminal F

If the topology is discrete, any sheaf is terminal.

theorem CategoryTheory.Sheaf.Hom.add_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} A] [inst_2 : CategoryTheory.Preadditive A] {P Q : CategoryTheory.Sheaf J A}
  (f g : P ⟶ Q) (U : Cᵒᵖ), (f + g).hom.app U = f.hom.app U + g.hom.app U

def CategoryTheory.Presheaf.isLimitOfIsSheaf E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
        (J : CategoryTheory.GrothendieckTopology C) →
          (P : CategoryTheory.Functor Cᵒᵖ A) →
            {X : C} →
              (S : J.Cover X) → CategoryTheory.Presheaf.IsSheaf J P → CategoryTheory.Limits.IsLimit (S.multifork P)

When P is a sheaf and S is a cover, the associated multifork is a limit.

theorem CategoryTheory.Presheaf.isSheaf_iff_multifork E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  (J : CategoryTheory.GrothendieckTopology C) (P : CategoryTheory.Functor Cᵒᵖ A),
  CategoryTheory.Presheaf.IsSheaf J P ↔
    ∀ (X : C) (S : J.Cover X), Nonempty (CategoryTheory.Limits.IsLimit (S.multifork P))

def CategoryTheory.Presheaf.IsSheaf.isLimitMultifork E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
        {J : CategoryTheory.GrothendieckTopology C} →
          {P : CategoryTheory.Functor Cᵒᵖ A} →
            CategoryTheory.Presheaf.IsSheaf J P →
              {X : C} → (S : J.Cover X) → CategoryTheory.Limits.IsLimit (S.multifork P)

If F : Cᵒᵖ ⥤ A is a sheaf for a Grothendieck topology J on C, and S is a cover of X : C, then the multifork S.multifork F is limit.

theorem CategoryTheory.Presheaf.isSheaf_iff_multiequalizer E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  (J : CategoryTheory.GrothendieckTopology C) (P : CategoryTheory.Functor Cᵒᵖ A)
  [inst_2 : ∀ (X : C) (S : J.Cover X), CategoryTheory.Limits.HasMultiequalizer (S.index P)],
  CategoryTheory.Presheaf.IsSheaf J P ↔ ∀ (X : C) (S : J.Cover X), CategoryTheory.IsIso (S.toMultiequalizer P)

def CategoryTheory.Presheaf.firstObj E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
        {U : C} →
          CategoryTheory.Presieve U →
            CategoryTheory.Functor Cᵒᵖ A → [CategoryTheory.Limits.HasProducts.{max u₁ v₁, v₂, u₂} A] → A

The middle object of the fork diagram given in Equation (3) of [MM92], as well as the fork diagram of the Stacks entry.

def CategoryTheory.Presheaf.forkMap E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
        {U : C} →
          (R : CategoryTheory.Presieve U) →
            (P : CategoryTheory.Functor Cᵒᵖ A) →
              [inst_2 : CategoryTheory.Limits.HasProducts.{max u₁ v₁, v₂, u₂} A] →
                P.obj (Opposite.op U) ⟶ CategoryTheory.Presheaf.firstObj R P

The left morphism of the fork diagram given in Equation (3) of [MM92], as well as the fork diagram of the Stacks entry.

def CategoryTheory.Presheaf.secondObj E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
        {U : C} →
          CategoryTheory.Presieve U →
            CategoryTheory.Functor Cᵒᵖ A →
              [CategoryTheory.Limits.HasProducts.{max u₁ v₁, v₂, u₂} A] → [CategoryTheory.Limits.HasPullbacks C] → A

The rightmost object of the fork diagram of the Stacks entry, which contains the data used to check a family of elements for a presieve is compatible.

def CategoryTheory.Presheaf.firstMap E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
        {U : C} →
          (R : CategoryTheory.Presieve U) →
            (P : CategoryTheory.Functor Cᵒᵖ A) →
              [inst_2 : CategoryTheory.Limits.HasProducts.{max u₁ v₁, v₂, u₂} A] →
                [inst_3 : CategoryTheory.Limits.HasPullbacks C] →
                  CategoryTheory.Presheaf.firstObj R P ⟶ CategoryTheory.Presheaf.secondObj R P

The map pr₀* of the Stacks entry.

def CategoryTheory.Presheaf.secondMap E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
        {U : C} →
          (R : CategoryTheory.Presieve U) →
            (P : CategoryTheory.Functor Cᵒᵖ A) →
              [inst_2 : CategoryTheory.Limits.HasProducts.{max u₁ v₁, v₂, u₂} A] →
                [inst_3 : CategoryTheory.Limits.HasPullbacks C] →
                  CategoryTheory.Presheaf.firstObj R P ⟶ CategoryTheory.Presheaf.secondObj R P

The map pr₁* of the Stacks entry.

theorem CategoryTheory.Presheaf.w E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  {U : C} (R : CategoryTheory.Presieve U) (P : CategoryTheory.Functor Cᵒᵖ A)
  [inst_2 : CategoryTheory.Limits.HasProducts.{max u₁ v₁, v₂, u₂} A] [inst_3 : CategoryTheory.Limits.HasPullbacks C],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Presheaf.forkMap R P) (CategoryTheory.Presheaf.firstMap R P) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Presheaf.forkMap R P) (CategoryTheory.Presheaf.secondMap R P)

def CategoryTheory.Presheaf.IsSheaf' E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
        CategoryTheory.GrothendieckTopology C →
          [CategoryTheory.Limits.HasProducts.{max u₁ v₁, v₂, u₂} A] →
            [CategoryTheory.Limits.HasPullbacks C] → CategoryTheory.Functor Cᵒᵖ A → Prop

An alternative definition of the sheaf condition in terms of equalizers. This is shown to be equivalent in CategoryTheory.Presheaf.isSheaf_iff_isSheaf'.

def CategoryTheory.Presheaf.isSheafForIsSheafFor' E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} A] →
        [inst_2 : CategoryTheory.Limits.HasProducts.{max u₁ v₁, v₂, u₂} A] →
          [inst_3 : CategoryTheory.Limits.HasPullbacks C] →
            (P : CategoryTheory.Functor Cᵒᵖ A) →
              (s : CategoryTheory.Functor A (Type (max v₁ u₁))) →
                [∀ (J : Type (max v₁ u₁)), CategoryTheory.Limits.PreservesLimitsOfShape (CategoryTheory.Discrete J) s] →
                  (U : C) →
                    (R : CategoryTheory.Presieve U) →
                      CategoryTheory.Limits.IsLimit
                          (s.mapCone (CategoryTheory.Limits.Fork.ofι (CategoryTheory.Presheaf.forkMap R P) ⋯)) ≃
                        CategoryTheory.Limits.IsLimit
                          (CategoryTheory.Limits.Fork.ofι (CategoryTheory.Equalizer.forkMap (P.comp s) R) ⋯)

(Implementation). An auxiliary lemma to convert between sheaf conditions.

theorem CategoryTheory.Presheaf.isSheaf_iff_isSheaf' E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A' : Type u₂}
  [inst_1 : CategoryTheory.Category.{max v₁ u₁, u₂} A'] (J : CategoryTheory.GrothendieckTopology C)
  (P' : CategoryTheory.Functor Cᵒᵖ A') [inst_2 : CategoryTheory.Limits.HasProducts.{max u₁ v₁, max u₁ v₁, u₂} A']
  [inst_3 : CategoryTheory.Limits.HasPullbacks C],
  CategoryTheory.Presheaf.IsSheaf J P' ↔ CategoryTheory.Presheaf.IsSheaf' J P'

The equalizer definition of a sheaf given by isSheaf' is equivalent to isSheaf.

theorem CategoryTheory.Presheaf.isSheaf_of_isSheaf_comp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  {B : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} B] (J : CategoryTheory.GrothendieckTopology C)
  (P : CategoryTheory.Functor Cᵒᵖ A) (s : CategoryTheory.Functor A B)
  [CategoryTheory.Limits.ReflectsLimitsOfSize.{v₁, max v₁ u₁, v₂, v₃, u₂, u₃} s],
  CategoryTheory.Presheaf.IsSheaf J (P.comp s) → CategoryTheory.Presheaf.IsSheaf J P

theorem CategoryTheory.Presheaf.isSheaf_comp_of_isSheaf E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  {B : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} B] (J : CategoryTheory.GrothendieckTopology C)
  (P : CategoryTheory.Functor Cᵒᵖ A) (s : CategoryTheory.Functor A B)
  [CategoryTheory.Limits.PreservesLimitsOfSize.{v₁, max v₁ u₁, v₂, v₃, u₂, u₃} s],
  CategoryTheory.Presheaf.IsSheaf J P → CategoryTheory.Presheaf.IsSheaf J (P.comp s)

theorem CategoryTheory.Presheaf.isSheaf_iff_isSheaf_comp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} A]
  {B : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} B] (J : CategoryTheory.GrothendieckTopology C)
  (P : CategoryTheory.Functor Cᵒᵖ A) (s : CategoryTheory.Functor A B)
  [CategoryTheory.Limits.HasLimitsOfSize.{v₁, max v₁ u₁, v₂, u₂} A]
  [CategoryTheory.Limits.PreservesLimitsOfSize.{v₁, max v₁ u₁, v₂, v₃, u₂, u₃} s] [s.ReflectsIsomorphisms],
  CategoryTheory.Presheaf.IsSheaf J P ↔ CategoryTheory.Presheaf.IsSheaf J (P.comp s)

theorem CategoryTheory.Presheaf.isSheaf_iff_isSheaf_forget E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A' : Type u₂}
  [inst_1 : CategoryTheory.Category.{max v₁ u₁, u₂} A'] (J : CategoryTheory.GrothendieckTopology C)
  (P' : CategoryTheory.Functor Cᵒᵖ A') (s : CategoryTheory.Functor A' (Type (max v₁ u₁)))
  [CategoryTheory.Limits.HasLimits A'] [CategoryTheory.Limits.PreservesLimits s] [s.ReflectsIsomorphisms],
  CategoryTheory.Presheaf.IsSheaf J P' ↔ CategoryTheory.Presheaf.IsSheaf J (P'.comp s)

For a concrete category (A, s) where the forgetful functor s : A ⥤ Type v preserves limits and reflects isomorphisms, and A has limits, an A-valued presheaf P : Cᵒᵖ ⥤ A is a sheaf iff its underlying Type-valued presheaf P ⋙ s : Cᵒᵖ ⥤ Type is a sheaf.

Note this lemma applies for "algebraic" categories, e.g. groups, abelian groups and rings, but not for the category of topological spaces, topological rings, etc. since reflecting isomorphisms does not hold.