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

22 declarations. Mathlib docs · Source

Sheaves of types on a Grothendieck topology

Defines the notion of a sheaf of types (usually called a sheaf of sets by mathematicians) on a category equipped with a Grothendieck topology, as well as a range of equivalent conditions useful in different situations.

In Mathlib/CategoryTheory/Sites/IsSheafFor.lean it is defined what it means for a presheaf to be a sheaf for a particular sieve. Given a Grothendieck topology J, P is a sheaf if it is a sheaf for every sieve in the topology. See IsSheaf.

In the case where the topology is generated by a basis, it suffices to check P is a sheaf for every presieve in the pretopology. See isSheaf_pretopology.

We also provide equivalent conditions to satisfy alternate definitions given in the literature.

  • Stacks: In Equalizer.Presieve.sheaf_condition, the sheaf condition at a presieve is shown to be equivalent to that of https://stacks.math.columbia.edu/tag/00VM (and combined with isSheaf_pretopology, this shows the notions of IsSheaf are exactly equivalent.)

    The condition of https://stacks.math.columbia.edu/tag/00Z8 is virtually identical to the statement of isSheafFor_iff_yonedaSheafCondition (since the bijection described there carries the same information as the unique existence.)

  • Maclane-Moerdijk [MM92]: Using compatible_iff_sieveCompatible, the definitions of IsSheaf are equivalent. There are also alternate definitions given:

    • Sheaf for a pretopology (Prop 1): isSheaf_pretopology combined with pullbackCompatible_iff.
    • Sheaf for a pretopology as equalizer (Prop 1, bis): Equalizer.Presieve.sheaf_condition combined with the previous.

References

  • [MM92]: Sheaves in geometry and logic, Saunders MacLane, and Ieke Moerdijk: Chapter III, Section 4.
  • [Elephant]: Sketches of an Elephant, P. T. Johnstone: C2.1.
  • https://stacks.math.columbia.edu/tag/00VL (sheaves on a pretopology or site)
  • https://stacks.math.columbia.edu/tag/00ZB (sheaves on a topology)

theorem CategoryTheory.Presieve.yonedaFamilyOfElements_fromCocone.congr_simp E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (R : CategoryTheory.Presieve X)
  (s : CategoryTheory.Limits.Cocone R.diagram) ⦃Y : C⦄ (f f_1 : Y ⟶ X) (e_f : f = f_1) (a : R f),
  R.yonedaFamilyOfElements_fromCocone s f a = R.yonedaFamilyOfElements_fromCocone s f_1 ⋯

def CategoryTheory.Presieve.IsSeparated E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    CategoryTheory.GrothendieckTopology C → CategoryTheory.Functor Cᵒᵖ (Type w) → Prop

A presheaf is separated for a topology if it is separated for every sieve in the topology.

def CategoryTheory.Presieve.IsSheaf E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    CategoryTheory.GrothendieckTopology C → CategoryTheory.Functor Cᵒᵖ (Type w) → Prop

A presheaf is a sheaf for a topology if it is a sheaf for every sieve in the topology.

If the given topology is given by a pretopology, isSheaf_pretopology shows it suffices to check the sheaf condition at presieves in the pretopology.

theorem CategoryTheory.Presieve.IsSheaf.isSheafFor E1 #

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

theorem CategoryTheory.Presieve.isSheaf_of_le E1 #

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

theorem CategoryTheory.Presieve.isSeparated_of_le E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (P : CategoryTheory.Functor Cᵒᵖ (Type w))
  {J₁ J₂ : CategoryTheory.GrothendieckTopology C},
  J₁ ≤ J₂ → CategoryTheory.Presieve.IsSeparated J₂ P → CategoryTheory.Presieve.IsSeparated J₁ P

theorem CategoryTheory.Presieve.IsSheaf.isSeparated E1 #

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

theorem CategoryTheory.Presieve.IsSeparated.isSheaf E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C}
  {P : CategoryTheory.Functor Cᵒᵖ (Type w)},
  CategoryTheory.Presieve.IsSeparated J P →
    (∀ (X : C),
        ∀ S ∈ J X,
          ∀ (x : CategoryTheory.Presieve.FamilyOfElements P S.arrows), x.Compatible → ∃ t, x.IsAmalgamation t) →
      CategoryTheory.Presieve.IsSheaf J P

If P is separated and every compatible family of elements of P for a covering sieve has an amalgamation, P is a sheaf.

theorem CategoryTheory.Presieve.isSheaf_of_nat_equiv E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C}
  {P₁ : CategoryTheory.Functor Cᵒᵖ (Type w)} {P₂ : CategoryTheory.Functor Cᵒᵖ (Type w')}
  (e : ⦃X : C⦄ → P₁.obj (Opposite.op X) ≃ P₂.obj (Opposite.op X)),
  (∀ ⦃X Y : C⦄ (f : X ⟶ Y) (x : P₁.obj (Opposite.op Y)),
      e ((CategoryTheory.ConcreteCategory.hom (P₁.map f.op)) x) =
        (CategoryTheory.ConcreteCategory.hom (P₂.map f.op)) (e x)) →
    CategoryTheory.Presieve.IsSheaf J P₁ → CategoryTheory.Presieve.IsSheaf J P₂

theorem CategoryTheory.Presieve.isSheaf_iff_of_nat_equiv E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C}
  {P₁ : CategoryTheory.Functor Cᵒᵖ (Type w)} {P₂ : CategoryTheory.Functor Cᵒᵖ (Type w')}
  (e : ⦃X : C⦄ → P₁.obj (Opposite.op X) ≃ P₂.obj (Opposite.op X)),
  (∀ ⦃X Y : C⦄ (f : X ⟶ Y) (x : P₁.obj (Opposite.op Y)),
      e ((CategoryTheory.ConcreteCategory.hom (P₁.map f.op)) x) =
        (CategoryTheory.ConcreteCategory.hom (P₂.map f.op)) (e x)) →
    (CategoryTheory.Presieve.IsSheaf J P₁ ↔ CategoryTheory.Presieve.IsSheaf J P₂)

theorem CategoryTheory.Presieve.isSheaf_iso E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)}
  (J : CategoryTheory.GrothendieckTopology C) {P' : CategoryTheory.Functor Cᵒᵖ (Type w)} (i : P ≅ P'),
  CategoryTheory.Presieve.IsSheaf J P → CategoryTheory.Presieve.IsSheaf J P'

The property of being a sheaf is preserved by isomorphism.

theorem CategoryTheory.Presieve.isSeparated_iso E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)}
  (J : CategoryTheory.GrothendieckTopology C) {P' : CategoryTheory.Functor Cᵒᵖ (Type w)} (i : P ≅ P'),
  CategoryTheory.Presieve.IsSeparated J P → CategoryTheory.Presieve.IsSeparated J P'

The property of being separated is preserved under isomorphisms.

theorem CategoryTheory.Presieve.isSheaf_of_yoneda E1 #

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

theorem CategoryTheory.Presieve.isSheaf_pretopology E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)}
  [inst_1 : CategoryTheory.Limits.HasPullbacks C] (K : CategoryTheory.Pretopology C),
  CategoryTheory.Presieve.IsSheaf K.toGrothendieck P ↔
    ∀ {X : C}, ∀ R ∈ K.coverings X, CategoryTheory.Presieve.IsSheafFor P R

For a topology generated by a basis, it suffices to check the sheaf condition on the basis presieves only.

theorem CategoryTheory.Presieve.isSheaf_bot E1 #

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

Any presheaf is a sheaf for the bottom (trivial) Grothendieck topology.

theorem CategoryTheory.Presieve.isSheafFor_comp_uliftFunctor_iff E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X},
  CategoryTheory.Presieve.IsSheafFor (P.comp CategoryTheory.uliftFunctor.{w', w}) R ↔
    CategoryTheory.Presieve.IsSheafFor P R

A presheaf is a sheaf after composing with a universe lift if and only if it is a sheaf.

theorem CategoryTheory.Presieve.isSheaf_comp_uliftFunctor_iff E0 #

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

A presheaf is a sheaf after composing with a universe lift if and only if it is a sheaf.

theorem CategoryTheory.Presieve.isSheaf_comp_uliftFunctor E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)}
  (J : CategoryTheory.GrothendieckTopology C),
  CategoryTheory.Presieve.IsSheaf J P → CategoryTheory.Presieve.IsSheaf J (P.comp CategoryTheory.uliftFunctor.{w', w})

The composition of a sheaf with a ULift functor is still a sheaf.

def CategoryTheory.Presieve.compatibleYonedaFamily_toCocone E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X : C} →
      (R : CategoryTheory.Presieve X) →
        (W : C) →
          (x : CategoryTheory.Presieve.FamilyOfElements (CategoryTheory.yoneda.obj W) R) →
            x.Compatible → CategoryTheory.Limits.Cocone R.diagram

For a presheaf of the form yoneda.obj W, a compatible family of elements on a sieve is the same as a co-cone over the sieve. Constructing a co-cone from a compatible family works for any presieve, as does constructing a family of elements from a co-cone. Showing compatibility of the family needs the sieve condition. Note: This is related to CategoryTheory.Presheaf.conesEquivSieveCompatibleFamily

def CategoryTheory.Presieve.yonedaFamilyOfElements_fromCocone E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X : C} →
      (R : CategoryTheory.Presieve X) →
        (s : CategoryTheory.Limits.Cocone R.diagram) →
          CategoryTheory.Presieve.FamilyOfElements (CategoryTheory.yoneda.obj s.pt) R

Construct a family of elements from a cocone.

theorem CategoryTheory.Sieve.yonedaFamily_fromCocone_compatible E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (S : CategoryTheory.Sieve X)
  (s : CategoryTheory.Limits.Cocone S.arrows.diagram), (S.arrows.yonedaFamilyOfElements_fromCocone s).Compatible

theorem CategoryTheory.Sieve.forallYonedaIsSheaf_iff_colimit E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (S : CategoryTheory.Sieve X),
  (∀ (W : C), CategoryTheory.Presieve.IsSheafFor (CategoryTheory.yoneda.obj W) S.arrows) ↔
    Nonempty (CategoryTheory.Limits.IsColimit S.arrows.cocone)

The base of a sieve S is a colimit of S iff all Yoneda-presheaves satisfy the sheaf condition for S.