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

111 declarations and 1 deprecated aliases. Mathlib docs · Source

The sheaf condition for a presieve

We define what it means for a presheaf P : Cᵒᵖ ⥤ Type v to be a sheaf for a particular presieve R on X:

  • A family of elements x for P at R is an element x_f of P Y for every f : Y ⟶ X in R. See FamilyOfElements.
  • The family x is compatible if, for any f₁ : Y₁ ⟶ X and f₂ : Y₂ ⟶ X both in R, and any g₁ : Z ⟶ Y₁ and g₂ : Z ⟶ Y₂ such that g₁ ≫ f₁ = g₂ ≫ f₂, the restriction of x_f₁ along g₁ agrees with the restriction of x_f₂ along g₂. See FamilyOfElements.Compatible.
  • An amalgamation t for the family is an element of P X such that for every f : Y ⟶ X in R, the restriction of t on f is x_f. See FamilyOfElements.IsAmalgamation.

We then say P is separated for R if every compatible family has at most one amalgamation, and it is a sheaf for R if every compatible family has a unique amalgamation. See IsSeparatedFor and IsSheafFor.

In the special case where R is a sieve, the compatibility condition can be simplified:

  • The family x is compatible if, for any f : Y ⟶ X in R and g : Z ⟶ Y, the restriction of x_f along g agrees with x_(g ≫ f) (which is well defined since g ≫ f is in R). See FamilyOfElements.SieveCompatible and compatible_iff_sieveCompatible.

In the special case where C has pullbacks, the compatibility condition can be simplified:

  • The family x is compatible if, for any f : Y ⟶ X and g : Z ⟶ X both in R, the restriction of x_f along π₁ : pullback f g ⟶ Y agrees with the restriction of x_g along π₂ : pullback f g ⟶ Z. See FamilyOfElements.PullbackCompatible and pullbackCompatible_iff.

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

  • Stacks: 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:

    • Yoneda condition: Defined in yonedaSheafCondition and equivalence in isSheafFor_iff_yonedaSheafCondition.
    • Matching family for presieves with pullback: pullbackCompatible_iff.

Implementation

The sheaf condition is given as a proposition, rather than a subsingleton in Type (max u₁ v). This doesn't seem to make a big difference, other than making a couple of definitions noncomputable, but it means that equivalent conditions can be given as ↔ statements rather than ≃ statements, which can be convenient.

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.FamilyOfElements.sieveExtend.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (x x_1 : CategoryTheory.Presieve.FamilyOfElements P R),
  x = x_1 →
    ∀ ⦃Y : C⦄ (f f_1 : Y ⟶ X) (e_f : f = f_1) (a : (CategoryTheory.Sieve.generate R).arrows f),
      x.sieveExtend f a = x_1.sieveExtend f_1 ⋯

theorem CategoryTheory.Presieve.Arrows.PullbackCompatible.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type w)) {B : C}
  {I : Type u_1} {X : I → C} (π π_1 : (i : I) → X i ⟶ B) (e_π : π = π_1)
  [inst_1 : (CategoryTheory.Presieve.ofArrows X π).HasPairwisePullbacks] (x x_1 : (i : I) → P.obj (Opposite.op (X i))),
  x = x_1 →
    CategoryTheory.Presieve.Arrows.PullbackCompatible P π x =
      CategoryTheory.Presieve.Arrows.PullbackCompatible P π_1 x_1

theorem CategoryTheory.Presieve.FamilyOfElements.pullback.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X Y : C}
  {S : CategoryTheory.Sieve X} (f f_1 : Y ⟶ X) (e_f : f = f_1)
  (x x_1 : CategoryTheory.Presieve.FamilyOfElements P S.arrows),
  x = x_1 →
    ∀ ⦃Y_1 : C⦄ (f_2 f_3 : Y_1 ⟶ Y) (e_f_1 : f_2 = f_3) (a : (CategoryTheory.Sieve.pullback f S).arrows f_2),
      CategoryTheory.Presieve.FamilyOfElements.pullback f x f_2 a =
        CategoryTheory.Presieve.FamilyOfElements.pullback f_1 x_1 f_3 ⋯

theorem CategoryTheory.Presieve.Arrows.Compatible.familyOfElements.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {B : C}
  {I : Type u_1} {X : I → C} {π π_1 : (i : I) → X i ⟶ B} (e_π : π = π_1) {x x_1 : (i : I) → P.obj (Opposite.op (X i))}
  (e_x : x = x_1) (hx : CategoryTheory.Presieve.Arrows.Compatible P π x) ⦃Y : C⦄ (f f_1 : Y ⟶ B) (e_f : f = f_1)
  (a : CategoryTheory.Presieve.ofArrows X π f), hx.familyOfElements f a = ⋯.familyOfElements f_1 ⋯

theorem CategoryTheory.Presieve.IsSheafFor.extend.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {S : CategoryTheory.Sieve X}
  {P : CategoryTheory.Functor Cᵒᵖ (Type v₁)} (h : CategoryTheory.Presieve.IsSheafFor P S.arrows)
  (f f_1 : S.functor ⟶ P), f = f_1 → h.extend f = h.extend f_1

theorem CategoryTheory.Presieve.FamilyOfElements.map.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P Q : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (p p_1 : CategoryTheory.Presieve.FamilyOfElements P R),
  p = p_1 →
    ∀ (φ φ_1 : P ⟶ Q), φ = φ_1 → ∀ ⦃Y : C⦄ (f f_1 : Y ⟶ X) (e_f : f = f_1) (a : R f), p.map φ f a = p_1.map φ_1 f_1 ⋯

theorem CategoryTheory.Presieve.IsSheafFor.amalgamate.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (t : CategoryTheory.Presieve.IsSheafFor P R)
  (x x_1 : CategoryTheory.Presieve.FamilyOfElements P R) (e_x : x = x_1) (hx : x.Compatible),
  t.amalgamate x hx = t.amalgamate x_1 ⋯

theorem CategoryTheory.Presieve.FamilyOfElements.restrict.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R₁ R₁_1 : CategoryTheory.Presieve X} (e_R₁ : R₁ = R₁_1) {R₂ : CategoryTheory.Presieve X} (h : R₁ ≤ R₂)
  (a a_1 : CategoryTheory.Presieve.FamilyOfElements P R₂),
  a = a_1 →
    ∀ ⦃Y : C⦄ (f f_1 : Y ⟶ X) (e_f : f = f_1) (a_2 : R₁ f),
      CategoryTheory.Presieve.FamilyOfElements.restrict h a f a_2 =
        CategoryTheory.Presieve.FamilyOfElements.restrict ⋯ a_1 f_1 ⋯

def CategoryTheory.Presieve.FamilyOfElements E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} → CategoryTheory.Functor Cᵒᵖ (Type w) → CategoryTheory.Presieve X → Type (max (max u₁ w) v₁)

A family of elements for a presheaf P given a collection of arrows R with fixed codomain X consists of an element of P Y for every f : Y ⟶ X in R. A presheaf is a sheaf (resp, separated) if every compatible family of elements has exactly one (resp, at most one) amalgamation.

This data is referred to as a family in [MM92], Chapter III, Section 4. It is also a concrete version of the elements of the middle object in the Stacks entry which is more useful for direct calculations. It is also used implicitly in Definition C2.1.2 in [Elephant].

instance CategoryTheory.Presieve.instInhabitedFamilyOfElementsBot E0 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {P : CategoryTheory.Functor Cᵒᵖ (Type w)} → {X : C} → Inhabited (CategoryTheory.Presieve.FamilyOfElements P ⊥)

theorem CategoryTheory.Presieve.FamilyOfElements.ext_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} {x y : CategoryTheory.Presieve.FamilyOfElements P R},
  x = y ↔ ∀ {Y : C} (f : Y ⟶ X) (hf : R f), x f hf = y f hf

theorem CategoryTheory.Presieve.FamilyOfElements.ext E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} {x y : CategoryTheory.Presieve.FamilyOfElements P R},
  (∀ {Y : C} (f : Y ⟶ X) (hf : R f), x f hf = y f hf) → x = y

def CategoryTheory.Presieve.FamilyOfElements.restrict E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {P : CategoryTheory.Functor Cᵒᵖ (Type w)} →
      {X : C} →
        {R₁ R₂ : CategoryTheory.Presieve X} →
          R₁ ≤ R₂ → CategoryTheory.Presieve.FamilyOfElements P R₂ → CategoryTheory.Presieve.FamilyOfElements P R₁

A family of elements for a presheaf on the presieve R₂ can be restricted to a smaller presieve R₁.

def CategoryTheory.Presieve.FamilyOfElements.map E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {P Q : CategoryTheory.Functor Cᵒᵖ (Type w)} →
      {X : C} →
        {R : CategoryTheory.Presieve X} →
          CategoryTheory.Presieve.FamilyOfElements P R → (P ⟶ Q) → CategoryTheory.Presieve.FamilyOfElements Q R

The image of a family of elements by a morphism of presheaves.

theorem CategoryTheory.Presieve.FamilyOfElements.map_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P Q : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (p : CategoryTheory.Presieve.FamilyOfElements P R) (φ : P ⟶ Q) {Y : C} (f : Y ⟶ X)
  (hf : R f), p.map φ f hf = (CategoryTheory.ConcreteCategory.hom (φ.app (Opposite.op Y))) (p f hf)

theorem CategoryTheory.Presieve.FamilyOfElements.restrict_map E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P Q : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (p : CategoryTheory.Presieve.FamilyOfElements P R) (φ : P ⟶ Q)
  {R' : CategoryTheory.Presieve X} (h : R' ≤ R),
  (CategoryTheory.Presieve.FamilyOfElements.restrict h p).map φ =
    CategoryTheory.Presieve.FamilyOfElements.restrict h (p.map φ)

def CategoryTheory.Presieve.FamilyOfElements.singletonEquiv E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    (P : CategoryTheory.Functor Cᵒᵖ (Type w)) →
      {X Y : C} →
        (f : X ⟶ Y) →
          CategoryTheory.Presieve.FamilyOfElements P (CategoryTheory.Presieve.singleton f) ≃ P.obj (Opposite.op X)

A family of elements on { f : X ⟶ Y } is an element of F(X).

theorem CategoryTheory.Presieve.FamilyOfElements.singletonEquiv_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type w)) {X Y : C}
  (f : X ⟶ Y) (x : CategoryTheory.Presieve.FamilyOfElements P (CategoryTheory.Presieve.singleton f)),
  (CategoryTheory.Presieve.FamilyOfElements.singletonEquiv P f) x = x f ⋯

theorem CategoryTheory.Presieve.FamilyOfElements.singletonEquiv_symm_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type w)) {X Y : C}
  (f : X ⟶ Y) (x : P.obj (Opposite.op X)) (Z : C) (g : Z ⟶ Y) (hg : CategoryTheory.Presieve.singleton f g),
  (CategoryTheory.Presieve.FamilyOfElements.singletonEquiv P f).symm x g hg =
    (CategoryTheory.ConcreteCategory.hom (P.map (CategoryTheory.eqToHom ⋯).op)) x

theorem CategoryTheory.Presieve.FamilyOfElements.singletonEquiv_symm_apply_self E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X Y : C}
  (f : X ⟶ Y) (x : P.obj (Opposite.op X)), (CategoryTheory.Presieve.FamilyOfElements.singletonEquiv P f).symm x f ⋯ = x

def CategoryTheory.Presieve.FamilyOfElements.Compatible E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {P : CategoryTheory.Functor Cᵒᵖ (Type w)} →
      {X : C} → {R : CategoryTheory.Presieve X} → CategoryTheory.Presieve.FamilyOfElements P R → Prop

A family of elements for the arrow set R is compatible if for any f₁ : Y₁ ⟶ X and f₂ : Y₂ ⟶ X in R, and any g₁ : Z ⟶ Y₁ and g₂ : Z ⟶ Y₂, if the square g₁ ≫ f₁ = g₂ ≫ f₂ commutes then the elements of P Z obtained by restricting the element of P Y₁ along g₁ and restricting the element of P Y₂ along g₂ are the same.

In special cases, this condition can be simplified, see pullbackCompatible_iff and compatible_iff_sieveCompatible.

This is referred to as a "compatible family" in Definition C2.1.2 of [Elephant], and on nlab: https://ncatlab.org/nlab/show/sheaf#GeneralDefinitionInComponents

For a more explicit version in the case where R is of the form Presieve.ofArrows, see CategoryTheory.Presieve.Arrows.Compatible.

def CategoryTheory.Presieve.FamilyOfElements.PullbackCompatible E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {P : CategoryTheory.Functor Cᵒᵖ (Type w)} →
      {X : C} →
        {R : CategoryTheory.Presieve X} → CategoryTheory.Presieve.FamilyOfElements P R → [R.HasPairwisePullbacks] → Prop

If the category C has pullbacks, this is an alternative condition for a family of elements to be compatible: For any f : Y ⟶ X and g : Z ⟶ X in the presieve R, the restriction of the given elements for f and g to the pullback agree. This is equivalent to being compatible (provided C has pullbacks), shown in pullbackCompatible_iff.

This is the definition for a "matching" family given in [MM92], Chapter III, Section 4, Equation (5). Viewing the type FamilyOfElements as the middle object of the fork in https://stacks.math.columbia.edu/tag/00VM, this condition expresses that pr₀* (x) = pr₁* (x), using the notation defined there.

For a more explicit version in the case where R is of the form Presieve.ofArrows, see CategoryTheory.Presieve.Arrows.PullbackCompatible.

theorem CategoryTheory.Presieve.pullbackCompatible_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (x : CategoryTheory.Presieve.FamilyOfElements P R) [inst_1 : R.HasPairwisePullbacks],
  x.Compatible ↔ x.PullbackCompatible

theorem CategoryTheory.Presieve.FamilyOfElements.Compatible.restrict E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R₁ R₂ : CategoryTheory.Presieve X} (h : R₁ ≤ R₂) {x : CategoryTheory.Presieve.FamilyOfElements P R₂},
  x.Compatible → (CategoryTheory.Presieve.FamilyOfElements.restrict h x).Compatible

The restriction of a compatible family is compatible.

def CategoryTheory.Presieve.FamilyOfElements.sieveExtend E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {P : CategoryTheory.Functor Cᵒᵖ (Type w)} →
      {X : C} →
        {R : CategoryTheory.Presieve X} →
          CategoryTheory.Presieve.FamilyOfElements P R →
            CategoryTheory.Presieve.FamilyOfElements P (CategoryTheory.Sieve.generate R).arrows

Extend a family of elements to the sieve generated by an arrow set. This is the construction described as "easy" in Lemma C2.1.3 of [Elephant].

theorem CategoryTheory.Presieve.FamilyOfElements.Compatible.sieveExtend E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} {x : CategoryTheory.Presieve.FamilyOfElements P R},
  x.Compatible → x.sieveExtend.Compatible

The extension of a compatible family to the generated sieve is compatible.

theorem CategoryTheory.Presieve.extend_agrees E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X Y : C}
  {R : CategoryTheory.Presieve X} {x : CategoryTheory.Presieve.FamilyOfElements P R},
  x.Compatible → ∀ {f : Y ⟶ X} (hf : R f), x.sieveExtend f ⋯ = x f hf

The extension of a family agrees with the original family.

theorem CategoryTheory.Presieve.restrict_extend E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} {x : CategoryTheory.Presieve.FamilyOfElements P R},
  x.Compatible → CategoryTheory.Presieve.FamilyOfElements.restrict ⋯ x.sieveExtend = x

The restriction of an extension is the original.

theorem CategoryTheory.Presieve.FamilyOfElements.Compatible.of_mono E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P Q : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (f : P ⟶ Q) [CategoryTheory.Mono f]
  {x : CategoryTheory.Presieve.FamilyOfElements P R}, (x.map f).Compatible → x.Compatible

def CategoryTheory.Presieve.FamilyOfElements.SieveCompatible E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {P : CategoryTheory.Functor Cᵒᵖ (Type w)} →
      {X : C} → {S : CategoryTheory.Sieve X} → CategoryTheory.Presieve.FamilyOfElements P S.arrows → Prop

If the arrow set for a family of elements is actually a sieve (i.e. it is downward closed) then the consistency condition can be simplified. This is an equivalent condition, see compatible_iff_sieveCompatible.

This is the notion of "matching" given for families on sieves given in [MM92], Chapter III, Section 4, Equation 1, and nlab: https://ncatlab.org/nlab/show/matching+family. See also the discussion before Lemma C2.1.4 of [Elephant].

theorem CategoryTheory.Presieve.compatible_iff_sieveCompatible E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {S : CategoryTheory.Sieve X} (x : CategoryTheory.Presieve.FamilyOfElements P S.arrows),
  x.Compatible ↔ x.SieveCompatible

theorem CategoryTheory.Presieve.FamilyOfElements.Compatible.to_sieveCompatible E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {S : CategoryTheory.Sieve X} {x : CategoryTheory.Presieve.FamilyOfElements P S.arrows},
  x.Compatible → x.SieveCompatible

theorem CategoryTheory.Presieve.extend_restrict E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X}
  {x : CategoryTheory.Presieve.FamilyOfElements P (CategoryTheory.Sieve.generate R).arrows},
  x.Compatible → (CategoryTheory.Presieve.FamilyOfElements.restrict ⋯ x).sieveExtend = x

Given a family of elements x for the sieve S generated by a presieve R, if x is restricted to R and then extended back up to S, the resulting extension equals x.

theorem CategoryTheory.Presieve.restrict_inj E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X}
  {x₁ x₂ : CategoryTheory.Presieve.FamilyOfElements P (CategoryTheory.Sieve.generate R).arrows},
  x₁.Compatible →
    x₂.Compatible →
      CategoryTheory.Presieve.FamilyOfElements.restrict ⋯ x₁ = CategoryTheory.Presieve.FamilyOfElements.restrict ⋯ x₂ →
        x₁ = x₂

Two compatible families on the sieve generated by a presieve R are equal if and only if they are equal when restricted to R.

def CategoryTheory.Presieve.compatibleEquivGenerateSieveCompatible E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {P : CategoryTheory.Functor Cᵒᵖ (Type w)} →
      {X : C} → {R : CategoryTheory.Presieve X} → { x // x.Compatible } ≃ { x // x.Compatible }

Compatible families of elements for a presheaf of types P and a presieve R are in 1-1 correspondence with compatible families for the same presheaf and the sieve generated by R, through extension and restriction.

theorem CategoryTheory.Presieve.compatibleEquivGenerateSieveCompatible_apply_coe E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (x : { x // x.Compatible }),
  ↑(CategoryTheory.Presieve.compatibleEquivGenerateSieveCompatible x) = (↑x).sieveExtend

theorem CategoryTheory.Presieve.compatibleEquivGenerateSieveCompatible_symm_apply_coe E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (x : { x // x.Compatible }),
  ↑(CategoryTheory.Presieve.compatibleEquivGenerateSieveCompatible.symm x) =
    CategoryTheory.Presieve.FamilyOfElements.restrict ⋯ ↑x

theorem CategoryTheory.Presieve.FamilyOfElements.comp_of_compatible E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X Y : C}
  (S : CategoryTheory.Sieve X) {x : CategoryTheory.Presieve.FamilyOfElements P S.arrows},
  x.Compatible →
    ∀ {f : Y ⟶ X} (hf : S.arrows f) {Z : C} (g : Z ⟶ Y),
      x (CategoryTheory.CategoryStruct.comp g f) ⋯ = (CategoryTheory.ConcreteCategory.hom (P.map g.op)) (x f hf)

theorem CategoryTheory.Presieve.FamilyOfElements.compatible_singleton_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X Y : C}
  (f : X ⟶ Y) (x : CategoryTheory.Presieve.FamilyOfElements P (CategoryTheory.Presieve.singleton f)),
  x.Compatible ↔
    ∀ {Z : C} (p₁ p₂ : Z ⟶ X),
      CategoryTheory.CategoryStruct.comp p₁ f = CategoryTheory.CategoryStruct.comp p₂ f →
        (CategoryTheory.ConcreteCategory.hom (P.map p₁.op)) (x f ⋯) =
          (CategoryTheory.ConcreteCategory.hom (P.map p₂.op)) (x f ⋯)

def CategoryTheory.Presieve.FamilyOfElements.functorPullback E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {P : CategoryTheory.Functor Cᵒᵖ (Type w)} →
      {D : Type u₂} →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
          (F : CategoryTheory.Functor D C) →
            {Z : D} →
              {T : CategoryTheory.Presieve (F.obj Z)} →
                CategoryTheory.Presieve.FamilyOfElements P T →
                  CategoryTheory.Presieve.FamilyOfElements (F.op.comp P) (CategoryTheory.Presieve.functorPullback F T)

Given a family of elements of a sieve S on F(X), we can realize it as a family of elements of S.functorPullback F.

theorem CategoryTheory.Presieve.FamilyOfElements.Compatible.functorPullback E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {D : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} D] (F : CategoryTheory.Functor D C) {Z : D}
  {T : CategoryTheory.Presieve (F.obj Z)} {x : CategoryTheory.Presieve.FamilyOfElements P T},
  x.Compatible → (CategoryTheory.Presieve.FamilyOfElements.functorPullback F x).Compatible

def CategoryTheory.Presieve.FamilyOfElements.functorPushforward E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {P : CategoryTheory.Functor Cᵒᵖ (Type w)} →
      {D : Type u₂} →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
          (F : CategoryTheory.Functor D C) →
            {X : D} →
              {T : CategoryTheory.Presieve X} →
                CategoryTheory.Presieve.FamilyOfElements (F.op.comp P) T →
                  CategoryTheory.Presieve.FamilyOfElements P (CategoryTheory.Presieve.functorPushforward F T)

Given a family of elements of a sieve S on X whose values factors through F, we can realize it as a family of elements of S.functorPushforward F. Since the preimage is obtained by choice, this is not well-defined generally.

def CategoryTheory.Presieve.FamilyOfElements.pullback E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {P : CategoryTheory.Functor Cᵒᵖ (Type w)} →
      {X Y : C} →
        {S : CategoryTheory.Sieve X} →
          (f : Y ⟶ X) →
            CategoryTheory.Presieve.FamilyOfElements P S.arrows →
              CategoryTheory.Presieve.FamilyOfElements P (CategoryTheory.Sieve.pullback f S).arrows

Given a family of elements of a sieve S on X, and a map Y ⟶ X, we can obtain a family of elements of S.pullback f by taking the same elements.

theorem CategoryTheory.Presieve.FamilyOfElements.Compatible.pullback E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X Y : C}
  {S : CategoryTheory.Sieve X} (f : Y ⟶ X) {x : CategoryTheory.Presieve.FamilyOfElements P S.arrows},
  x.Compatible → (CategoryTheory.Presieve.FamilyOfElements.pullback f x).Compatible

theorem CategoryTheory.Presieve.FamilyOfElements.map_id E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (x : CategoryTheory.Presieve.FamilyOfElements P R),
  x.map (CategoryTheory.CategoryStruct.id P) = x

theorem CategoryTheory.Presieve.FamilyOfElements.map_comp E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P Q U : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (x : CategoryTheory.Presieve.FamilyOfElements P R) (f : P ⟶ Q) (g : Q ⟶ U),
  (x.map f).map g = x.map (CategoryTheory.CategoryStruct.comp f g)

theorem CategoryTheory.Presieve.FamilyOfElements.Compatible.map E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P Q : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (f : P ⟶ Q) {x : CategoryTheory.Presieve.FamilyOfElements P R},
  x.Compatible → (x.map f).Compatible

def CategoryTheory.Presieve.FamilyOfElements.IsAmalgamation E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {P : CategoryTheory.Functor Cᵒᵖ (Type w)} →
      {X : C} →
        {R : CategoryTheory.Presieve X} → CategoryTheory.Presieve.FamilyOfElements P R → P.obj (Opposite.op X) → Prop

The given element t of P.obj (op X) is an amalgamation for the family of elements x if every restriction P.map f.op t = x_f for every arrow f in the presieve R.

This is the definition given in https://ncatlab.org/nlab/show/sheaf#GeneralDefinitionInComponents, and https://ncatlab.org/nlab/show/matching+family, as well as [MM92], Chapter III, Section 4, equation (2).

theorem CategoryTheory.Presieve.FamilyOfElements.IsAmalgamation.map E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P Q : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} {x : CategoryTheory.Presieve.FamilyOfElements P R} {t : P.obj (Opposite.op X)}
  (f : P ⟶ Q),
  x.IsAmalgamation t → (x.map f).IsAmalgamation ((CategoryTheory.ConcreteCategory.hom (f.app (Opposite.op X))) t)

theorem CategoryTheory.Presieve.is_compatible_of_exists_amalgamation E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (x : CategoryTheory.Presieve.FamilyOfElements P R),
  (∃ t, x.IsAmalgamation t) → x.Compatible

theorem CategoryTheory.Presieve.isAmalgamation_restrict E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R₁ R₂ : CategoryTheory.Presieve X} (h : R₁ ≤ R₂) (x : CategoryTheory.Presieve.FamilyOfElements P R₂)
  (t : P.obj (Opposite.op X)),
  x.IsAmalgamation t → (CategoryTheory.Presieve.FamilyOfElements.restrict h x).IsAmalgamation t

theorem CategoryTheory.Presieve.isAmalgamation_sieveExtend E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (x : CategoryTheory.Presieve.FamilyOfElements P R) (t : P.obj (Opposite.op X)),
  x.IsAmalgamation t → x.sieveExtend.IsAmalgamation t

theorem CategoryTheory.Presieve.FamilyOfElements.isAmalgamation_singleton_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X Y : C}
  (f : X ⟶ Y) (x : CategoryTheory.Presieve.FamilyOfElements P (CategoryTheory.Presieve.singleton f))
  (y : P.obj (Opposite.op Y)), x.IsAmalgamation y ↔ (CategoryTheory.ConcreteCategory.hom (P.map f.op)) y = x f ⋯

theorem CategoryTheory.Presieve.FamilyOfElements.IsAmalgamation.of_mono E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P Q : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (f : P ⟶ Q) [CategoryTheory.Mono f] {x : CategoryTheory.Presieve.FamilyOfElements P R}
  {t : P.obj (Opposite.op X)},
  (x.map f).IsAmalgamation ((CategoryTheory.ConcreteCategory.hom (f.app (Opposite.op X))) t) → x.IsAmalgamation t

def CategoryTheory.Presieve.IsSeparatedFor E1 #

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

A presheaf is separated for a presieve if there is at most one amalgamation.

theorem CategoryTheory.Presieve.IsSeparatedFor.ext E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X},
  CategoryTheory.Presieve.IsSeparatedFor P R →
    ∀ {t₁ t₂ : P.obj (Opposite.op X)},
      (∀ ⦃Y : C⦄ ⦃f : Y ⟶ X⦄,
          R f →
            (CategoryTheory.ConcreteCategory.hom (P.map f.op)) t₁ =
              (CategoryTheory.ConcreteCategory.hom (P.map f.op)) t₂) →
        t₁ = t₂

theorem CategoryTheory.Presieve.isSeparatedFor_iff_generate E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X},
  CategoryTheory.Presieve.IsSeparatedFor P R ↔
    CategoryTheory.Presieve.IsSeparatedFor P (CategoryTheory.Sieve.generate R).arrows

theorem CategoryTheory.Presieve.isSeparatedFor_top E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (P : CategoryTheory.Functor Cᵒᵖ (Type w)),
  CategoryTheory.Presieve.IsSeparatedFor P ⊤

def CategoryTheory.Presieve.IsSheafFor E1 #

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

We define P to be a sheaf for the presieve R if every compatible family has a unique amalgamation.

This is the definition of a sheaf for the given presieve given in C2.1.2 of [Elephant], and https://ncatlab.org/nlab/show/sheaf#GeneralDefinitionInComponents. Using compatible_iff_sieveCompatible, this is equivalent to the definition of a sheaf in [MM92], Chapter III, Section 4.

def CategoryTheory.Presieve.YonedaSheafCondition E1 #

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

This is an equivalent condition to be a sheaf, which is useful for the abstraction to local operators on elementary toposes. However this definition is defined only for sieves, not presieves. The equivalence between this and IsSheafFor is given in isSheafFor_iff_yonedaSheafCondition. This version is also useful to establish that being a sheaf is preserved under isomorphism of presheaves.

See the discussion before Equation (3) of [MM92], Chapter III, Section 4. See also C2.1.4 of [Elephant].

def CategoryTheory.Presieve.shrinkFunctorHomEquiv E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} →
      {S : CategoryTheory.Sieve X} →
        [inst_1 : CategoryTheory.LocallySmall.{w, v₁, u₁} C] →
          {F : CategoryTheory.Functor Cᵒᵖ (Type w)} →
            ((CategoryTheory.Sieve.shrinkFunctor.{w, v₁, u₁} S).toFunctor ⟶ F) ≃ { x // x.Compatible }

(Implementation). This is a (primarily internal) equivalence between natural transformations and compatible families.

Cf the discussion after Lemma 7.47.10 in https://stacks.math.columbia.edu/tag/00YW. See also the proof of C2.1.4 of [Elephant], and the discussion in [MM92], Chapter III, Section 4.

theorem CategoryTheory.Presieve.shrinkFunctorHomEquiv_apply_coe E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {S : CategoryTheory.Sieve X}
  [inst_1 : CategoryTheory.LocallySmall.{w, v₁, u₁} C] {F : CategoryTheory.Functor Cᵒᵖ (Type w)}
  (t : (CategoryTheory.Sieve.shrinkFunctor.{w, v₁, u₁} S).toFunctor ⟶ F) (Y : C) (f : Y ⟶ X) (hf : S.arrows f),
  ↑(CategoryTheory.Presieve.shrinkFunctorHomEquiv t) f hf =
    (CategoryTheory.ConcreteCategory.hom (t.app (Opposite.op Y))) ⟨CategoryTheory.shrinkYonedaObjObjEquiv.symm f, ⋯⟩

theorem CategoryTheory.Presieve.shrinkFunctorHomEquiv_symm_apply_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {S : CategoryTheory.Sieve X}
  [inst_1 : CategoryTheory.LocallySmall.{w, v₁, u₁} C] {F : CategoryTheory.Functor Cᵒᵖ (Type w)}
  (t : { x // x.Compatible }) (X_1 : Cᵒᵖ),
  (CategoryTheory.Presieve.shrinkFunctorHomEquiv.symm t).app X_1 =
    TypeCat.ofHom fun f ↦ ↑t (CategoryTheory.shrinkYonedaObjObjEquiv ↑f) ⋯

theorem CategoryTheory.Presieve.shrinkFunctor_ι_comp_eq_iff_isAmalgamation E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {S : CategoryTheory.Sieve X}
  [inst_1 : CategoryTheory.LocallySmall.{w, v₁, u₁} C] (F : CategoryTheory.Functor Cᵒᵖ (Type w))
  (f : (CategoryTheory.Sieve.shrinkFunctor.{w, v₁, u₁} S).toFunctor ⟶ F)
  (g : CategoryTheory.shrinkYoneda.{w, v₁, u₁}.obj X ⟶ F),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Sieve.shrinkFunctor.{w, v₁, u₁} S).ι g = f ↔
    (↑(CategoryTheory.Presieve.shrinkFunctorHomEquiv f)).IsAmalgamation (CategoryTheory.shrinkYonedaEquiv g)

theorem CategoryTheory.Presieve.isSheafFor_iff_bijective_shrinkFunctor_ι_comp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] [inst_1 : CategoryTheory.LocallySmall.{w, v₁, u₁} C] {X : C}
  (S : CategoryTheory.Sieve X) (F : CategoryTheory.Functor Cᵒᵖ (Type w)),
  CategoryTheory.Presieve.IsSheafFor F S.arrows ↔
    Function.Bijective fun g ↦ CategoryTheory.CategoryStruct.comp (CategoryTheory.Sieve.shrinkFunctor.{w, v₁, u₁} S).ι g

theorem CategoryTheory.Presieve.isSheafFor_iff_yonedaSheafCondition E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {S : CategoryTheory.Sieve X}
  {P : CategoryTheory.Functor Cᵒᵖ (Type v₁)},
  CategoryTheory.Presieve.IsSheafFor P S.arrows ↔ CategoryTheory.Presieve.YonedaSheafCondition P S

The yoneda version of the sheaf condition is equivalent to the sheaf condition.

C2.1.4 of [Elephant].

def CategoryTheory.Presieve.IsSheafFor.extend E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} →
      {S : CategoryTheory.Sieve X} →
        {P : CategoryTheory.Functor Cᵒᵖ (Type v₁)} →
          CategoryTheory.Presieve.IsSheafFor P S.arrows → (S.functor ⟶ P) → (CategoryTheory.yoneda.obj X ⟶ P)

If P is a sheaf for the sieve S on X, a natural transformation from S (viewed as a functor) to P can be (uniquely) extended to all of yoneda.obj X.

      f
   S  →  P
   ↓  ↗
   yX

theorem CategoryTheory.Presieve.IsSheafFor.functorInclusion_comp_extend E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {S : CategoryTheory.Sieve X}
  {P : CategoryTheory.Functor Cᵒᵖ (Type v₁)} (h : CategoryTheory.Presieve.IsSheafFor P S.arrows) (f : S.functor ⟶ P),
  CategoryTheory.CategoryStruct.comp S.functorInclusion (h.extend f) = f

Show that the extension of f : S.functor ⟶ P to all of yoneda.obj X is in fact an extension, i.e. that the triangle below commutes, provided P is a sheaf for S

      f
   S  →  P
   ↓  ↗
   yX

theorem CategoryTheory.Presieve.IsSheafFor.functorInclusion_comp_extend_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {S : CategoryTheory.Sieve X}
  {P : CategoryTheory.Functor Cᵒᵖ (Type v₁)} (h : CategoryTheory.Presieve.IsSheafFor P S.arrows) (f : S.functor ⟶ P)
  {Z : CategoryTheory.Functor Cᵒᵖ (Type v₁)} (h_1 : P ⟶ Z),
  CategoryTheory.CategoryStruct.comp S.functorInclusion (CategoryTheory.CategoryStruct.comp (h.extend f) h_1) =
    CategoryTheory.CategoryStruct.comp f h_1

Show that the extension of f : S.functor ⟶ P to all of yoneda.obj X is in fact an extension, i.e. that the triangle below commutes, provided P is a sheaf for S

      f
   S  →  P
   ↓  ↗
   yX

theorem CategoryTheory.Presieve.IsSheafFor.unique_extend E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {S : CategoryTheory.Sieve X}
  {P : CategoryTheory.Functor Cᵒᵖ (Type v₁)} (h : CategoryTheory.Presieve.IsSheafFor P S.arrows) {f : S.functor ⟶ P}
  (t : CategoryTheory.yoneda.obj X ⟶ P), CategoryTheory.CategoryStruct.comp S.functorInclusion t = f → t = h.extend f

The extension of f to yoneda.obj X is unique.

theorem CategoryTheory.Presieve.IsSheafFor.hom_ext E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {S : CategoryTheory.Sieve X}
  {P : CategoryTheory.Functor Cᵒᵖ (Type v₁)},
  CategoryTheory.Presieve.IsSheafFor P S.arrows →
    ∀ (t₁ t₂ : CategoryTheory.yoneda.obj X ⟶ P),
      CategoryTheory.CategoryStruct.comp S.functorInclusion t₁ =
          CategoryTheory.CategoryStruct.comp S.functorInclusion t₂ →
        t₁ = t₂

If P is a sheaf for the sieve S on X, then if two natural transformations from yoneda.obj X to P agree when restricted to the subfunctor given by S, they are equal.

theorem CategoryTheory.Presieve.isSeparatedFor_and_exists_isAmalgamation_iff_isSheafFor E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X},
  (CategoryTheory.Presieve.IsSeparatedFor P R ∧
      ∀ (x : CategoryTheory.Presieve.FamilyOfElements P R), x.Compatible → ∃ t, x.IsAmalgamation t) ↔
    CategoryTheory.Presieve.IsSheafFor P R

P is a sheaf for R iff it is separated for R and there exists an amalgamation.

theorem CategoryTheory.Presieve.IsSeparatedFor.isSheafFor E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X},
  CategoryTheory.Presieve.IsSeparatedFor P R →
    (∀ (x : CategoryTheory.Presieve.FamilyOfElements P R), x.Compatible → ∃ t, x.IsAmalgamation t) →
      CategoryTheory.Presieve.IsSheafFor P R

If P is separated for R and every family has an amalgamation, then P is a sheaf for R.

theorem CategoryTheory.Presieve.IsSheafFor.isSeparatedFor E1 #

∀ {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 R → CategoryTheory.Presieve.IsSeparatedFor P R

If P is a sheaf for R, it is separated for R.

def CategoryTheory.Presieve.IsSheafFor.amalgamate E1 #

{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 R →
            (x : CategoryTheory.Presieve.FamilyOfElements P R) → x.Compatible → P.obj (Opposite.op X)

Get the amalgamation of the given compatible family, provided we have a sheaf.

theorem CategoryTheory.Presieve.IsSheafFor.isAmalgamation E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (t : CategoryTheory.Presieve.IsSheafFor P R)
  {x : CategoryTheory.Presieve.FamilyOfElements P R} (hx : x.Compatible), x.IsAmalgamation (t.amalgamate x hx)

theorem CategoryTheory.Presieve.IsSheafFor.valid_glue E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X Y : C}
  {R : CategoryTheory.Presieve X} (t : CategoryTheory.Presieve.IsSheafFor P R)
  {x : CategoryTheory.Presieve.FamilyOfElements P R} (hx : x.Compatible) (f : Y ⟶ X) (Hf : R f),
  (CategoryTheory.ConcreteCategory.hom (P.map f.op)) (t.amalgamate x hx) = x f Hf

theorem CategoryTheory.Presieve.isSheafFor_iff_generate E1 #

∀ {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 R ↔ CategoryTheory.Presieve.IsSheafFor P (CategoryTheory.Sieve.generate R).arrows

C2.1.3 in [Elephant]

theorem CategoryTheory.Presieve.isSheafFor_singleton_iso E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (P : CategoryTheory.Functor Cᵒᵖ (Type w)),
  CategoryTheory.Presieve.IsSheafFor P (CategoryTheory.Presieve.singleton (CategoryTheory.CategoryStruct.id X))

Every presheaf is a sheaf for the family {𝟙 X}.

[Elephant] C2.1.5(i)

theorem CategoryTheory.Presieve.isSheafFor_top E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (P : CategoryTheory.Functor Cᵒᵖ (Type w)),
  CategoryTheory.Presieve.IsSheafFor P ⊤

Every presheaf is a sheaf for the maximal sieve.

[Elephant] C2.1.5(ii)

theorem CategoryTheory.Presieve.isSheafFor_of_nat_equiv E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} 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)) →
    ∀ {X : C} {R : CategoryTheory.Presieve X},
      CategoryTheory.Presieve.IsSheafFor P₁ R → CategoryTheory.Presieve.IsSheafFor P₂ R

If P₁ : Cᵒᵖ ⥤ Type w and P₂ : Cᵒᵖ ⥤ Type w are two naturally equivalent presheaves, and P₁ is a sheaf for a presieve R, then P₂ is also a sheaf for R.

theorem CategoryTheory.Presieve.isSheafFor_iff_of_nat_equiv E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} 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)) →
    ∀ {X : C} {R : CategoryTheory.Presieve X},
      CategoryTheory.Presieve.IsSheafFor P₁ R ↔ CategoryTheory.Presieve.IsSheafFor P₂ R

theorem CategoryTheory.Presieve.isSheafFor_iso E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} {P' : CategoryTheory.Functor Cᵒᵖ (Type w)} (i : P ≅ P'),
  CategoryTheory.Presieve.IsSheafFor P R → CategoryTheory.Presieve.IsSheafFor P' R

If P is a sheaf for S, and it is iso to P', then P' is a sheaf for S. This shows that "being a sheaf for a presieve" is a mathematical or hygienic property.

theorem CategoryTheory.Presieve.isSheafFor_iff_of_iso E1 #

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

theorem CategoryTheory.Presieve.isSeparatedFor_iso E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} {P' : CategoryTheory.Functor Cᵒᵖ (Type w)} (i : P ≅ P'),
  CategoryTheory.Presieve.IsSeparatedFor P R → CategoryTheory.Presieve.IsSeparatedFor P' R

The property of being separated for some presieve is preserved under isomorphisms.

theorem CategoryTheory.Presieve.IsSeparatedFor.of_mono E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P Q : CategoryTheory.Functor Cᵒᵖ (Type w)} {X : C}
  {R : CategoryTheory.Presieve X} (f : P ⟶ Q) [CategoryTheory.Mono f],
  CategoryTheory.Presieve.IsSeparatedFor Q R → CategoryTheory.Presieve.IsSeparatedFor P R

theorem CategoryTheory.Presieve.isSheafFor_subsieve_aux E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (P : CategoryTheory.Functor Cᵒᵖ (Type w))
  {S : CategoryTheory.Sieve X} {R : CategoryTheory.Presieve X},
  S.arrows ≤ R →
    CategoryTheory.Presieve.IsSheafFor P S.arrows →
      (∀ ⦃Y : C⦄ ⦃f : Y ⟶ X⦄,
          R f → CategoryTheory.Presieve.IsSeparatedFor P (CategoryTheory.Sieve.pullback f S).arrows) →
        CategoryTheory.Presieve.IsSheafFor P R

If a presieve R on X has a subsieve S such that:

  • P is a sheaf for S.
  • For every f in R, P is separated for the pullback of S along f,

then P is a sheaf for R.

This is closely related to [Elephant] C2.1.6(i).

theorem CategoryTheory.Presieve.isSheafFor_subsieve E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (P : CategoryTheory.Functor Cᵒᵖ (Type w))
  {S : CategoryTheory.Sieve X} {R : CategoryTheory.Presieve X},
  S.arrows ≤ R →
    (∀ ⦃Y : C⦄ (f : Y ⟶ X), CategoryTheory.Presieve.IsSheafFor P (CategoryTheory.Sieve.pullback f S).arrows) →
      CategoryTheory.Presieve.IsSheafFor P R

If P is a sheaf for every pullback of the sieve S, then P is a sheaf for any presieve which contains S. This is closely related to [Elephant] C2.1.6.

def CategoryTheory.Presieve.Arrows.Compatible E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    (P : CategoryTheory.Functor Cᵒᵖ (Type w)) →
      {B : C} → {I : Type u_1} → {X : I → C} → ((i : I) → X i ⟶ B) → ((i : I) → P.obj (Opposite.op (X i))) → Prop

A more explicit version of FamilyOfElements.Compatible for a Presieve.ofArrows.

theorem CategoryTheory.Presieve.FamilyOfElements.isAmalgamation_iff_ofArrows E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type w)) {B : C}
  {I : Type u_1} {X : I → C} (π : (i : I) → X i ⟶ B)
  (x : CategoryTheory.Presieve.FamilyOfElements P (CategoryTheory.Presieve.ofArrows X π)) (t : P.obj (Opposite.op B)),
  x.IsAmalgamation t ↔ ∀ (i : I), (CategoryTheory.ConcreteCategory.hom (P.map (π i).op)) t = x (π i) ⋯

theorem CategoryTheory.Presieve.Arrows.Compatible.exists_familyOfElements E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {B : C}
  {I : Type u_1} {X : I → C} {π : (i : I) → X i ⟶ B} {x : (i : I) → P.obj (Opposite.op (X i))},
  CategoryTheory.Presieve.Arrows.Compatible P π x → ∃ x', ∀ (i : I), x' (π i) ⋯ = x i

def CategoryTheory.Presieve.Arrows.Compatible.familyOfElements E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {P : CategoryTheory.Functor Cᵒᵖ (Type w)} →
      {B : C} →
        {I : Type u_1} →
          {X : I → C} →
            {π : (i : I) → X i ⟶ B} →
              {x : (i : I) → P.obj (Opposite.op (X i))} →
                CategoryTheory.Presieve.Arrows.Compatible P π x →
                  CategoryTheory.Presieve.FamilyOfElements P (CategoryTheory.Presieve.ofArrows X π)

A FamilyOfElements associated to an explicit family of elements.

theorem CategoryTheory.Presieve.Arrows.Compatible.familyOfElements_ofArrows_mk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {B : C}
  {I : Type u_1} {X : I → C} {π : (i : I) → X i ⟶ B} {x : (i : I) → P.obj (Opposite.op (X i))}
  (hx : CategoryTheory.Presieve.Arrows.Compatible P π x) (i : I), hx.familyOfElements (π i) ⋯ = x i

theorem CategoryTheory.Presieve.Arrows.Compatible.familyOfElements_compatible E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {B : C}
  {I : Type u_1} {X : I → C} {π : (i : I) → X i ⟶ B} {x : (i : I) → P.obj (Opposite.op (X i))}
  (hx : CategoryTheory.Presieve.Arrows.Compatible P π x), hx.familyOfElements.Compatible

theorem CategoryTheory.Presieve.isSheafFor_arrows_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type w)) {B : C}
  {I : Type u_1} {X : I → C} (π : (i : I) → X i ⟶ B),
  CategoryTheory.Presieve.IsSheafFor P (CategoryTheory.Presieve.ofArrows X π) ↔
    ∀ (x : (i : I) → P.obj (Opposite.op (X i))),
      CategoryTheory.Presieve.Arrows.Compatible P π x →
        ∃! t, ∀ (i : I), (CategoryTheory.ConcreteCategory.hom (P.map (π i).op)) t = x i

def CategoryTheory.Presieve.Arrows.toCompatible E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    (P : CategoryTheory.Functor Cᵒᵖ (Type w)) →
      {B : C} →
        {I : Type u_1} →
          {X : I → C} →
            (π : (i : I) → X i ⟶ B) → P.obj (Opposite.op B) → Subtype (CategoryTheory.Presieve.Arrows.Compatible P π)

If P is a presheaf of types and π : (i : I) → X i ⟶ B is a family of morphisms, this is the map from P.obj (op B) to the subtype of compatible families in P.obj (op (X i)).

theorem CategoryTheory.Presieve.Arrows.toCompatible_coe E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type w)) {B : C}
  {I : Type u_1} {X : I → C} (π : (i : I) → X i ⟶ B) (s : P.obj (Opposite.op B)) (i : I),
  ↑(CategoryTheory.Presieve.Arrows.toCompatible P π s) i = (CategoryTheory.ConcreteCategory.hom (P.map (π i).op)) s

theorem CategoryTheory.Presieve.isSheafFor_ofArrows_iff_bijective_toCompatible E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type w)) {B : C}
  {I : Type u_1} {X : I → C} (π : (i : I) → X i ⟶ B),
  CategoryTheory.Presieve.IsSheafFor P (CategoryTheory.Presieve.ofArrows X π) ↔
    Function.Bijective (CategoryTheory.Presieve.Arrows.toCompatible P π)

theorem CategoryTheory.Presieve.isSheafFor_pullback_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type w)) {X : C}
  (R : CategoryTheory.Sieve X) {Y : C} (f : Y ⟶ X) [CategoryTheory.IsIso f],
  CategoryTheory.Presieve.IsSheafFor P (CategoryTheory.Sieve.pullback f R).arrows ↔
    CategoryTheory.Presieve.IsSheafFor P R.arrows

theorem CategoryTheory.Presieve.isSheafFor_over_map_op_comp_ofArrows_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {I : Type u_1} {B B' : C} (p : B ⟶ B')
  (P : CategoryTheory.Functor (CategoryTheory.Over B')ᵒᵖ (Type w)) {X : CategoryTheory.Over B}
  {Y : I → CategoryTheory.Over B} (f : (i : I) → Y i ⟶ X),
  CategoryTheory.Presieve.IsSheafFor ((CategoryTheory.Over.map p).op.comp P) (CategoryTheory.Presieve.ofArrows Y f) ↔
    CategoryTheory.Presieve.IsSheafFor P
      (CategoryTheory.Presieve.ofArrows (fun i ↦ (CategoryTheory.Over.map p).obj (Y i)) fun i ↦
        (CategoryTheory.Over.map p).map (f i))

theorem CategoryTheory.Presieve.isSheafFor_over_map_op_comp_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B B' : C} (p : B ⟶ B')
  (P : CategoryTheory.Functor (CategoryTheory.Over B')ᵒᵖ (Type w)) {X : CategoryTheory.Over B}
  (R : CategoryTheory.Sieve X) {X' : CategoryTheory.Over B'} (e : (CategoryTheory.Over.map p).obj X ≅ X'),
  CategoryTheory.Presieve.IsSheafFor ((CategoryTheory.Over.map p).op.comp P) R.arrows ↔
    CategoryTheory.Presieve.IsSheafFor P
      (CategoryTheory.Sieve.pullback e.inv
          (CategoryTheory.Sieve.functorPushforward (CategoryTheory.Over.map p) R)).arrows

def CategoryTheory.Presieve.Arrows.PullbackCompatible E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    (P : CategoryTheory.Functor Cᵒᵖ (Type w)) →
      {B : C} →
        {I : Type u_1} →
          {X : I → C} →
            (π : (i : I) → X i ⟶ B) →
              [(CategoryTheory.Presieve.ofArrows X π).HasPairwisePullbacks] →
                ((i : I) → P.obj (Opposite.op (X i))) → Prop

A more explicit version of FamilyOfElements.PullbackCompatible for a Presieve.ofArrows.

theorem CategoryTheory.Presieve.Arrows.pullbackCompatible_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type w)) {B : C}
  {I : Type u_1} {X : I → C} (π : (i : I) → X i ⟶ B)
  [inst_1 : (CategoryTheory.Presieve.ofArrows X π).HasPairwisePullbacks] (x : (i : I) → P.obj (Opposite.op (X i))),
  CategoryTheory.Presieve.Arrows.Compatible P π x ↔ CategoryTheory.Presieve.Arrows.PullbackCompatible P π x

theorem CategoryTheory.Presieve.isSheafFor_arrows_iff_pullbacks E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type w)) {B : C}
  {I : Type u_1} {X : I → C} (π : (i : I) → X i ⟶ B)
  [inst_1 : (CategoryTheory.Presieve.ofArrows X π).HasPairwisePullbacks],
  CategoryTheory.Presieve.IsSheafFor P (CategoryTheory.Presieve.ofArrows X π) ↔
    ∀ (x : (i : I) → P.obj (Opposite.op (X i))),
      CategoryTheory.Presieve.Arrows.PullbackCompatible P π x →
        ∃! t, ∀ (i : I), (CategoryTheory.ConcreteCategory.hom (P.map (π i).op)) t = x i

theorem CategoryTheory.Presieve.isSeparatedFor_singleton E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X Y : C}
  {f : X ⟶ Y},
  CategoryTheory.Presieve.IsSeparatedFor P (CategoryTheory.Presieve.singleton f) ↔
    Function.Injective ⇑(CategoryTheory.ConcreteCategory.hom (P.map f.op))

theorem CategoryTheory.Presieve.isSheafFor_singleton E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X Y : C}
  {f : X ⟶ Y},
  CategoryTheory.Presieve.IsSheafFor P (CategoryTheory.Presieve.singleton f) ↔
    ∀ (x : P.obj (Opposite.op X)),
      (∀ {Z : C} (p₁ p₂ : Z ⟶ X),
          CategoryTheory.CategoryStruct.comp p₁ f = CategoryTheory.CategoryStruct.comp p₂ f →
            (CategoryTheory.ConcreteCategory.hom (P.map p₁.op)) x =
              (CategoryTheory.ConcreteCategory.hom (P.map p₂.op)) x) →
        ∃! y, (CategoryTheory.ConcreteCategory.hom (P.map f.op)) y = x

theorem CategoryTheory.Presieve.IsSeparatedFor.of_singleton_comp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X Y S : C}
  (p : Y ⟶ X) (f : X ⟶ S),
  CategoryTheory.Presieve.IsSeparatedFor P
      (CategoryTheory.Presieve.singleton (CategoryTheory.CategoryStruct.comp p f)) →
    CategoryTheory.Presieve.IsSeparatedFor P (CategoryTheory.Presieve.singleton f)

theorem CategoryTheory.Presieve.IsSheafFor.of_singleton_comp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X Y S : C}
  (p : Y ⟶ X) (f : X ⟶ S),
  CategoryTheory.Presieve.IsSheafFor P (CategoryTheory.Presieve.singleton (CategoryTheory.CategoryStruct.comp p f)) →
    CategoryTheory.Presieve.IsSeparatedFor P (CategoryTheory.Presieve.singleton p) →
      CategoryTheory.Presieve.IsSheafFor P (CategoryTheory.Presieve.singleton f)

theorem CategoryTheory.Presieve.IsSheafFor.of_singleton E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)} {X S : C}
  {f : X ⟶ S},
  CategoryTheory.Presieve.IsSheafFor P (CategoryTheory.Presieve.singleton f) →
    ∀ {R : CategoryTheory.Presieve S},
      R f →
        (∀ {Y : C} (g : Y ⟶ S),
            R g →
              ∃ Z a b,
                CategoryTheory.CategoryStruct.comp a g = CategoryTheory.CategoryStruct.comp b f ∧
                  CategoryTheory.Presieve.IsSeparatedFor P (CategoryTheory.Presieve.singleton a)) →
          CategoryTheory.Presieve.IsSheafFor P R

Let P be a presheaf of types. Let f : X ⟶ S be a morphism such that P is a sheaf for the presieve generated by f. We show that P is a sheaf for R if f belongs to R and P satisfies the following technical condition: for any morphism g : Y ⟶ S which belongs to R, there exists a commutative square a ≫ g = b ≫ f such that P is separated for a.

theorem CategoryTheory.Presieve.isSheafFor_bind E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (P : CategoryTheory.Functor Cᵒᵖ (Type u_1))
  (U : CategoryTheory.Sieve X) (B : ⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → U.arrows f → CategoryTheory.Sieve Y),
  CategoryTheory.Presieve.IsSheafFor P U.arrows →
    (∀ ⦃Y : C⦄ ⦃f : Y ⟶ X⦄ (hf : U.arrows f), CategoryTheory.Presieve.IsSheafFor P (B hf).arrows) →
      (∀ ⦃Y : C⦄ ⦃f : Y ⟶ X⦄ (h : U.arrows f) ⦃Z : C⦄ (g : Z ⟶ Y),
          CategoryTheory.Presieve.IsSeparatedFor P (CategoryTheory.Sieve.pullback g (B h)).arrows) →
        CategoryTheory.Presieve.IsSheafFor P (CategoryTheory.Sieve.bind U.arrows B).arrows

To show P is a sheaf for the binding of U with B, it suffices to show that P is a sheaf for U, that P is a sheaf for each sieve in B, and that it is separated for any pullback of any sieve in B.

This is mostly an auxiliary lemma to show Presieve.isSheafFor_trans. Adapted from [Elephant], Lemma C2.1.7(i) with suggestions as mentioned in https://math.stackexchange.com/a/358709/

theorem CategoryTheory.Presieve.isSheafFor_trans E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (P : CategoryTheory.Functor Cᵒᵖ (Type u_1))
  (R S : CategoryTheory.Sieve X),
  CategoryTheory.Presieve.IsSheafFor P R.arrows →
    (∀ ⦃Y : C⦄ ⦃f : Y ⟶ X⦄,
        S.arrows f → CategoryTheory.Presieve.IsSeparatedFor P (CategoryTheory.Sieve.pullback f R).arrows) →
      (∀ ⦃Y : C⦄ ⦃f : Y ⟶ X⦄,
          R.arrows f → CategoryTheory.Presieve.IsSheafFor P (CategoryTheory.Sieve.pullback f S).arrows) →
        CategoryTheory.Presieve.IsSheafFor P S.arrows

Given two sieves R and S, to show that P is a sheaf for S, we can show:

  • P is a sheaf for R
  • P is a sheaf for the pullback of S along any arrow in R
  • P is separated for the pullback of R along any arrow in S.

This is mostly an auxiliary lemma to construct Sheaf.finestTopology. Adapted from [Elephant], Lemma C2.1.7(ii) with suggestions as mentioned in https://math.stackexchange.com/a/358709

Deprecated aliases

NameNew nameSince
CategoryTheory.Presieve.isSheafFor_ofArrows_iff_bijective_toCompabibleCategoryTheory.Presieve.isSheafFor_ofArrows_iff_bijective_toCompatible2026-09-17