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

53 declarations. Mathlib docs · Source

Locally surjective morphisms

Main definitions

  • IsLocallySurjective : A morphism of presheaves valued in a concrete category is locally surjective with respect to a Grothendieck topology if every section in the target is locally in the set-theoretic image, i.e. the image sheaf coincides with the target.

Main results

  • Presheaf.isLocallySurjective_toSheafify: toSheafify is locally surjective.
  • Sheaf.isLocallySurjective_iff_epi: a morphism of sheaves of types is locally surjective iff it is epi.

theorem CategoryTheory.Presheaf.localPreimage.congr_simp E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {A : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} A]
  {FA : A → A → Type u_1} {CA : A → Type w'} [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)]
  [inst_3 : CategoryTheory.ConcreteCategory A FA] {F G : CategoryTheory.Functor Cᵒᵖ A} (f f_1 : F ⟶ G) (e_f : f = f_1)
  {U : Cᵒᵖ} (s s_1 : CategoryTheory.ToType (G.obj U)) (e_s : s = s_1) {V : C} (g g_1 : V ⟶ Opposite.unop U)
  (e_g : g = g_1) (hg : (CategoryTheory.Presheaf.imageSieve f s).arrows g),
  CategoryTheory.Presheaf.localPreimage f s g hg = CategoryTheory.Presheaf.localPreimage f_1 s_1 g_1 ⋯

def CategoryTheory.Presheaf.imageSieve E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {A : Type u'} →
      [inst_1 : CategoryTheory.Category.{v', u'} A] →
        {FA : A → A → Type u_1} →
          {CA : A → Type w'} →
            [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] →
              [inst_3 : CategoryTheory.ConcreteCategory A FA] →
                {F G : CategoryTheory.Functor Cᵒᵖ A} →
                  (F ⟶ G) → {U : C} → CategoryTheory.ToType (G.obj (Opposite.op U)) → CategoryTheory.Sieve U

Given f : F ⟶ G, a morphism between presieves, and s : G.obj (op U), this is the sieve of U consisting of the i : V ⟶ U such that s restricted along i is in the image of f.

theorem CategoryTheory.Presheaf.imageSieve_apply E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {A : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} A]
  {FA : A → A → Type u_1} {CA : A → Type w'} [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)]
  [inst_3 : CategoryTheory.ConcreteCategory A FA] {F G : CategoryTheory.Functor Cᵒᵖ A} (f : F ⟶ G) {U : C}
  (s : CategoryTheory.ToType (G.obj (Opposite.op U))) (V : C) (i : V ⟶ U),
  (CategoryTheory.Presheaf.imageSieve f s).arrows i =
    ∃ t,
      (CategoryTheory.ConcreteCategory.hom (f.app (Opposite.op V))) t =
        (CategoryTheory.ConcreteCategory.hom (G.map i.op)) s

theorem CategoryTheory.Presheaf.pullback_imageSieve E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {A : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} A]
  {FA : A → A → Type u_1} {CA : A → Type w'} [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)]
  [inst_3 : CategoryTheory.ConcreteCategory A FA] {F G : CategoryTheory.Functor Cᵒᵖ A} (f : F ⟶ G) {U : C}
  (s : CategoryTheory.ToType (G.obj (Opposite.op U))) {V : C} (g : V ⟶ U),
  CategoryTheory.Sieve.pullback g (CategoryTheory.Presheaf.imageSieve f s) =
    CategoryTheory.Presheaf.imageSieve f ((CategoryTheory.ConcreteCategory.hom (G.map g.op)) s)

theorem CategoryTheory.Presheaf.imageSieve_eq_sieveOfSection E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {A : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} A]
  {FA : A → A → Type u_1} {CA : A → Type w'} [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)]
  [inst_3 : CategoryTheory.ConcreteCategory A FA] {F G : CategoryTheory.Functor Cᵒᵖ A} (f : F ⟶ G) {U : C}
  (s : CategoryTheory.ToType (G.obj (Opposite.op U))),
  CategoryTheory.Presheaf.imageSieve f s =
    (CategoryTheory.Subfunctor.range (CategoryTheory.Functor.whiskerRight f (CategoryTheory.forget A))).sieveOfSection s

theorem CategoryTheory.Presheaf.imageSieve_whisker_forget E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {A : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} A]
  {FA : A → A → Type u_1} {CA : A → Type w'} [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)]
  [inst_3 : CategoryTheory.ConcreteCategory A FA] {F G : CategoryTheory.Functor Cᵒᵖ A} (f : F ⟶ G) {U : C}
  (s : CategoryTheory.ToType (G.obj (Opposite.op U))),
  CategoryTheory.Presheaf.imageSieve (CategoryTheory.Functor.whiskerRight f (CategoryTheory.forget A)) s =
    CategoryTheory.Presheaf.imageSieve f s

theorem CategoryTheory.Presheaf.imageSieve_app E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {A : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} A]
  {FA : A → A → Type u_1} {CA : A → Type w'} [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)]
  [inst_3 : CategoryTheory.ConcreteCategory A FA] {F G : CategoryTheory.Functor Cᵒᵖ A} (f : F ⟶ G) {U : C}
  (s : CategoryTheory.ToType (F.obj (Opposite.op U))),
  CategoryTheory.Presheaf.imageSieve f ((CategoryTheory.ConcreteCategory.hom (f.app (Opposite.op U))) s) = ⊤

def CategoryTheory.Presheaf.localPreimage E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {A : Type u'} →
      [inst_1 : CategoryTheory.Category.{v', u'} A] →
        {FA : A → A → Type u_1} →
          {CA : A → Type w'} →
            [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] →
              [inst_3 : CategoryTheory.ConcreteCategory A FA] →
                {F G : CategoryTheory.Functor Cᵒᵖ A} →
                  (f : F ⟶ G) →
                    {U : Cᵒᵖ} →
                      (s : CategoryTheory.ToType (G.obj U)) →
                        {V : C} →
                          (g : V ⟶ Opposite.unop U) →
                            (CategoryTheory.Presheaf.imageSieve f s).arrows g →
                              CategoryTheory.ToType (F.obj (Opposite.op V))

If a morphism g : V ⟶ U.unop belongs to the sieve imageSieve f s g, then this is choice of a preimage of G.map g.op s in F.obj (op V), see app_localPreimage.

theorem CategoryTheory.Presheaf.app_localPreimage E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {A : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} A]
  {FA : A → A → Type u_1} {CA : A → Type w'} [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)]
  [inst_3 : CategoryTheory.ConcreteCategory A FA] {F G : CategoryTheory.Functor Cᵒᵖ A} (f : F ⟶ G) {U : Cᵒᵖ}
  (s : CategoryTheory.ToType (G.obj U)) {V : C} (g : V ⟶ Opposite.unop U)
  (hg : (CategoryTheory.Presheaf.imageSieve f s).arrows g),
  (CategoryTheory.ConcreteCategory.hom (f.app (Opposite.op V))) (CategoryTheory.Presheaf.localPreimage f s g hg) =
    (CategoryTheory.ConcreteCategory.hom (G.map g.op)) s

class CategoryTheory.Presheaf.IsLocallySurjective E3 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    CategoryTheory.GrothendieckTopology C →
      {A : Type u'} →
        [inst_1 : CategoryTheory.Category.{v', u'} A] →
          {FA : A → A → Type u_1} →
            {CA : A → Type w'} →
              [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] →
                [CategoryTheory.ConcreteCategory A FA] → {F G : CategoryTheory.Functor Cᵒᵖ A} → (F ⟶ G) → Prop

A morphism of presheaves f : F ⟶ G is locally surjective with respect to a Grothendieck topology if every section of G is locally in the image of f.

ctor CategoryTheory.Presheaf.IsLocallySurjective.mk E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F G : CategoryTheory.Functor Cᵒᵖ A} {f : F ⟶ G},
  (∀ {U : C} (s : CategoryTheory.ToType (G.obj (Opposite.op U))), CategoryTheory.Presheaf.imageSieve f s ∈ J U) →
    CategoryTheory.Presheaf.IsLocallySurjective J f

theorem CategoryTheory.Presheaf.IsLocallySurjective.imageSieve_mem E1 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {J : CategoryTheory.GrothendieckTopology C} {A : Type u'}
  {inst_1 : CategoryTheory.Category.{v', u'} A} {FA : A → A → Type u_1} {CA : A → Type w'}
  {inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)} {inst_3 : CategoryTheory.ConcreteCategory A FA}
  {F G : CategoryTheory.Functor Cᵒᵖ A} {f : F ⟶ G} [self : CategoryTheory.Presheaf.IsLocallySurjective J f] {U : C}
  (s : CategoryTheory.ToType (G.obj (Opposite.op U))), CategoryTheory.Presheaf.imageSieve f s ∈ J U

theorem CategoryTheory.Presheaf.imageSieve_mem E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F G : CategoryTheory.Functor Cᵒᵖ A} (f : F ⟶ G) [CategoryTheory.Presheaf.IsLocallySurjective J f] {U : Cᵒᵖ}
  (s : CategoryTheory.ToType (G.obj U)), CategoryTheory.Presheaf.imageSieve f s ∈ J (Opposite.unop U)

instance CategoryTheory.Presheaf.instIsLocallySurjectiveFunWhiskerRightOppositeForget E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F G : CategoryTheory.Functor Cᵒᵖ A} (f : F ⟶ G) [CategoryTheory.Presheaf.IsLocallySurjective J f],
  CategoryTheory.Presheaf.IsLocallySurjective J (CategoryTheory.Functor.whiskerRight f (CategoryTheory.forget A))

theorem CategoryTheory.Presheaf.isLocallySurjective_iff_range_sheafify_eq_top E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F G : CategoryTheory.Functor Cᵒᵖ A} (f : F ⟶ G),
  CategoryTheory.Presheaf.IsLocallySurjective J f ↔
    CategoryTheory.Subfunctor.sheafify J
        (CategoryTheory.Subfunctor.range (CategoryTheory.Functor.whiskerRight f (CategoryTheory.forget A))) =
      ⊤

theorem CategoryTheory.Presheaf.isLocallySurjective_iff_range_sheafify_eq_top' E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  {F G : CategoryTheory.Functor Cᵒᵖ (Type w)} (f : F ⟶ G),
  CategoryTheory.Presheaf.IsLocallySurjective J f ↔
    CategoryTheory.Subfunctor.sheafify J (CategoryTheory.Subfunctor.range f) = ⊤

theorem CategoryTheory.Presheaf.isLocallySurjective_iff_whisker_forget E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F G : CategoryTheory.Functor Cᵒᵖ A} (f : F ⟶ G),
  CategoryTheory.Presheaf.IsLocallySurjective J f ↔
    CategoryTheory.Presheaf.IsLocallySurjective J (CategoryTheory.Functor.whiskerRight f (CategoryTheory.forget A))

theorem CategoryTheory.Presheaf.isLocallySurjective_of_surjective E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F G : CategoryTheory.Functor Cᵒᵖ A} (f : F ⟶ G),
  (∀ (U : Cᵒᵖ), Function.Surjective ⇑(CategoryTheory.ConcreteCategory.hom (f.app U))) →
    CategoryTheory.Presheaf.IsLocallySurjective J f

instance CategoryTheory.Presheaf.isLocallySurjective_of_iso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F G : CategoryTheory.Functor Cᵒᵖ A} (f : F ⟶ G) [CategoryTheory.IsIso f],
  CategoryTheory.Presheaf.IsLocallySurjective J f

instance CategoryTheory.Presheaf.isLocallySurjective_comp E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F₁ F₂ F₃ : CategoryTheory.Functor Cᵒᵖ A} (f₁ : F₁ ⟶ F₂) (f₂ : F₂ ⟶ F₃)
  [CategoryTheory.Presheaf.IsLocallySurjective J f₁] [CategoryTheory.Presheaf.IsLocallySurjective J f₂],
  CategoryTheory.Presheaf.IsLocallySurjective J (CategoryTheory.CategoryStruct.comp f₁ f₂)

theorem CategoryTheory.Presheaf.isLocallySurjective_of_isLocallySurjective E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F₁ F₂ F₃ : CategoryTheory.Functor Cᵒᵖ A} (f₁ : F₁ ⟶ F₂) (f₂ : F₂ ⟶ F₃)
  [CategoryTheory.Presheaf.IsLocallySurjective J (CategoryTheory.CategoryStruct.comp f₁ f₂)],
  CategoryTheory.Presheaf.IsLocallySurjective J f₂

theorem CategoryTheory.Presheaf.isLocallySurjective_of_isLocallySurjective_fac E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F₁ F₂ F₃ : CategoryTheory.Functor Cᵒᵖ A} {f₁ : F₁ ⟶ F₂} {f₂ : F₂ ⟶ F₃} {f₃ : F₁ ⟶ F₃},
  CategoryTheory.CategoryStruct.comp f₁ f₂ = f₃ →
    ∀ [CategoryTheory.Presheaf.IsLocallySurjective J f₃], CategoryTheory.Presheaf.IsLocallySurjective J f₂

theorem CategoryTheory.Presheaf.isLocallySurjective_iff_of_fac E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F₁ F₂ F₃ : CategoryTheory.Functor Cᵒᵖ A} {f₁ : F₁ ⟶ F₂} {f₂ : F₂ ⟶ F₃} {f₃ : F₁ ⟶ F₃},
  CategoryTheory.CategoryStruct.comp f₁ f₂ = f₃ →
    ∀ [CategoryTheory.Presheaf.IsLocallySurjective J f₁],
      CategoryTheory.Presheaf.IsLocallySurjective J f₃ ↔ CategoryTheory.Presheaf.IsLocallySurjective J f₂

theorem CategoryTheory.Presheaf.comp_isLocallySurjective_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] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F₁ F₂ F₃ : CategoryTheory.Functor Cᵒᵖ A} (f₁ : F₁ ⟶ F₂) (f₂ : F₂ ⟶ F₃)
  [CategoryTheory.Presheaf.IsLocallySurjective J f₁],
  CategoryTheory.Presheaf.IsLocallySurjective J (CategoryTheory.CategoryStruct.comp f₁ f₂) ↔
    CategoryTheory.Presheaf.IsLocallySurjective J f₂

theorem CategoryTheory.Presheaf.isLocallySurjective_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] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {K : CategoryTheory.GrothendieckTopology C},
  J ≤ K →
    ∀ {F G : CategoryTheory.Functor Cᵒᵖ A} (f : F ⟶ G),
      CategoryTheory.Presheaf.IsLocallySurjective J f → CategoryTheory.Presheaf.IsLocallySurjective K f

theorem CategoryTheory.Presheaf.isLocallyInjective_of_isLocallyInjective_of_isLocallySurjective E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F₁ F₂ F₃ : CategoryTheory.Functor Cᵒᵖ A} (f₁ : F₁ ⟶ F₂) (f₂ : F₂ ⟶ F₃)
  [CategoryTheory.Presheaf.IsLocallyInjective J (CategoryTheory.CategoryStruct.comp f₁ f₂)]
  [CategoryTheory.Presheaf.IsLocallySurjective J f₁], CategoryTheory.Presheaf.IsLocallyInjective J f₂

theorem CategoryTheory.Presheaf.isLocallyInjective_of_isLocallyInjective_of_isLocallySurjective_fac E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F₁ F₂ F₃ : CategoryTheory.Functor Cᵒᵖ A} {f₁ : F₁ ⟶ F₂} {f₂ : F₂ ⟶ F₃} (f₃ : F₁ ⟶ F₃),
  CategoryTheory.CategoryStruct.comp f₁ f₂ = f₃ →
    ∀ [CategoryTheory.Presheaf.IsLocallyInjective J f₃] [CategoryTheory.Presheaf.IsLocallySurjective J f₁],
      CategoryTheory.Presheaf.IsLocallyInjective J f₂

theorem CategoryTheory.Presheaf.isLocallySurjective_of_isLocallySurjective_of_isLocallyInjective E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F₁ F₂ F₃ : CategoryTheory.Functor Cᵒᵖ A} (f₁ : F₁ ⟶ F₂) (f₂ : F₂ ⟶ F₃)
  [CategoryTheory.Presheaf.IsLocallySurjective J (CategoryTheory.CategoryStruct.comp f₁ f₂)]
  [CategoryTheory.Presheaf.IsLocallyInjective J f₂], CategoryTheory.Presheaf.IsLocallySurjective J f₁

theorem CategoryTheory.Presheaf.isLocallySurjective_of_isLocallySurjective_of_isLocallyInjective_fac E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F₁ F₂ F₃ : CategoryTheory.Functor Cᵒᵖ A} {f₁ : F₁ ⟶ F₂} {f₂ : F₂ ⟶ F₃} (f₃ : F₁ ⟶ F₃),
  CategoryTheory.CategoryStruct.comp f₁ f₂ = f₃ →
    ∀ [CategoryTheory.Presheaf.IsLocallySurjective J f₃] [CategoryTheory.Presheaf.IsLocallyInjective J f₂],
      CategoryTheory.Presheaf.IsLocallySurjective J f₁

theorem CategoryTheory.Presheaf.comp_isLocallyInjective_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] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F₁ F₂ F₃ : CategoryTheory.Functor Cᵒᵖ A} (f₁ : F₁ ⟶ F₂) (f₂ : F₂ ⟶ F₃)
  [CategoryTheory.Presheaf.IsLocallyInjective J f₁] [CategoryTheory.Presheaf.IsLocallySurjective J f₁],
  CategoryTheory.Presheaf.IsLocallyInjective J (CategoryTheory.CategoryStruct.comp f₁ f₂) ↔
    CategoryTheory.Presheaf.IsLocallyInjective J f₂

theorem CategoryTheory.Presheaf.isLocallySurjective_comp_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] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F₁ F₂ F₃ : CategoryTheory.Functor Cᵒᵖ A} (f₁ : F₁ ⟶ F₂) (f₂ : F₂ ⟶ F₃)
  [CategoryTheory.Presheaf.IsLocallyInjective J f₂] [CategoryTheory.Presheaf.IsLocallySurjective J f₂],
  CategoryTheory.Presheaf.IsLocallySurjective J (CategoryTheory.CategoryStruct.comp f₁ f₂) ↔
    CategoryTheory.Presheaf.IsLocallySurjective J f₁

instance CategoryTheory.Presheaf.instIsLocallySurjectiveFunToRangeSheafify E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  {F₁ F₂ : CategoryTheory.Functor Cᵒᵖ (Type w)} (f : F₁ ⟶ F₂),
  CategoryTheory.Presheaf.IsLocallySurjective J (CategoryTheory.Subfunctor.toRangeSheafify J f)

def CategoryTheory.Presheaf.sheafificationIsoImagePresheaf E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (J : CategoryTheory.GrothendieckTopology C) →
      (F : CategoryTheory.Functor Cᵒᵖ (Type (max u v))) →
        J.sheafify F ≅
          (CategoryTheory.Subfunctor.sheafify J (CategoryTheory.Subfunctor.range (J.toSheafify F))).toFunctor

The image of F in J.sheafify F is isomorphic to the sheafification.

instance CategoryTheory.Presheaf.isLocallySurjective_toPlus E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  (P : CategoryTheory.Functor Cᵒᵖ (Type (max u v))), CategoryTheory.Presheaf.IsLocallySurjective J (J.toPlus P)

instance CategoryTheory.Presheaf.isLocallySurjective_toSheafify E3 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  (P : CategoryTheory.Functor Cᵒᵖ (Type (max u v))), CategoryTheory.Presheaf.IsLocallySurjective J (J.toSheafify P)

instance CategoryTheory.Presheaf.isLocallySurjective_toSheafify' E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {D : Type u_2}
  [inst_1 : CategoryTheory.Category.{v_1, u_2} D] {FD : D → D → Type u_3} {CD : D → Type (max u v)}
  [inst_2 : (X Y : D) → FunLike (FD X Y) (CD X) (CD Y)] [inst_3 : CategoryTheory.ConcreteCategory D FD]
  (P : CategoryTheory.Functor Cᵒᵖ D) [inst_4 : CategoryTheory.HasWeakSheafify J D]
  [J.HasSheafCompose (CategoryTheory.forget D)] [J.PreservesSheafification (CategoryTheory.forget D)],
  CategoryTheory.Presheaf.IsLocallySurjective J (CategoryTheory.toSheafify J P)

abbrev CategoryTheory.Sheaf.IsLocallySurjective E3 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {J : CategoryTheory.GrothendieckTopology C} →
      {A : Type u'} →
        [inst_1 : CategoryTheory.Category.{v', u'} A] →
          {FA : A → A → Type u_1} →
            {CA : A → Type w'} →
              [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] →
                [CategoryTheory.ConcreteCategory A FA] → {F₁ F₂ : CategoryTheory.Sheaf J A} → (F₁ ⟶ F₂) → Prop

If φ : F₁ ⟶ F₂ is a morphism of sheaves, this is an abbreviation for Presheaf.IsLocallySurjective J φ.val.

theorem CategoryTheory.Sheaf.isLocallySurjective_sheafToPresheaf_map_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] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F₁ F₂ : CategoryTheory.Sheaf J A} (φ : F₁ ⟶ F₂),
  CategoryTheory.Presheaf.IsLocallySurjective J ((CategoryTheory.sheafToPresheaf J A).map φ) ↔
    CategoryTheory.Sheaf.IsLocallySurjective φ

instance CategoryTheory.Sheaf.isLocallySurjective_comp E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F₁ F₂ F₃ : CategoryTheory.Sheaf J A} (φ : F₁ ⟶ F₂) (ψ : F₂ ⟶ F₃) [CategoryTheory.Sheaf.IsLocallySurjective φ]
  [CategoryTheory.Sheaf.IsLocallySurjective ψ],
  CategoryTheory.Sheaf.IsLocallySurjective (CategoryTheory.CategoryStruct.comp φ ψ)

instance CategoryTheory.Sheaf.isLocallySurjective_of_iso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F₁ F₂ : CategoryTheory.Sheaf J A} (φ : F₁ ⟶ F₂) [CategoryTheory.IsIso φ], CategoryTheory.Sheaf.IsLocallySurjective φ

instance CategoryTheory.Sheaf.instIsLocallySurjectiveFunToImage E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C}
  {F G : CategoryTheory.Sheaf J (Type w)} (f : F ⟶ G),
  CategoryTheory.Sheaf.IsLocallySurjective (CategoryTheory.Sheaf.toImage f)

instance CategoryTheory.Sheaf.instIsLocallySurjectiveFunMapTypeSheafComposeForget E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F₁ F₂ : CategoryTheory.Sheaf J A} (φ : F₁ ⟶ F₂) [inst_4 : J.HasSheafCompose (CategoryTheory.forget A)]
  [CategoryTheory.Sheaf.IsLocallySurjective φ],
  CategoryTheory.Sheaf.IsLocallySurjective ((CategoryTheory.sheafCompose J (CategoryTheory.forget A)).map φ)

theorem CategoryTheory.Sheaf.isLocallySurjective_iff_isIso E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C}
  {F G : CategoryTheory.Sheaf J (Type w)} (f : F ⟶ G),
  CategoryTheory.Sheaf.IsLocallySurjective f ↔ CategoryTheory.IsIso (CategoryTheory.Sheaf.imageι f)

instance CategoryTheory.Sheaf.epi_of_isLocallySurjective' E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C}
  {F₁ F₂ : CategoryTheory.Sheaf J (Type w)} (φ : F₁ ⟶ F₂) [CategoryTheory.Sheaf.IsLocallySurjective φ],
  CategoryTheory.Epi φ

instance CategoryTheory.Sheaf.epi_of_isLocallySurjective E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u'}
  [inst_1 : CategoryTheory.Category.{v', u'} A] {FA : A → A → Type u_1} {CA : A → Type w'}
  [inst_2 : (X Y : A) → FunLike (FA X Y) (CA X) (CA Y)] [inst_3 : CategoryTheory.ConcreteCategory A FA]
  {F₁ F₂ : CategoryTheory.Sheaf J A} (φ : F₁ ⟶ F₂) [J.HasSheafCompose (CategoryTheory.forget A)]
  [CategoryTheory.Sheaf.IsLocallySurjective φ], CategoryTheory.Epi φ

theorem CategoryTheory.Sheaf.isLocallySurjective_iff_epi E3 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C}
  {F G : CategoryTheory.Sheaf J (Type w)} (φ : F ⟶ G) [CategoryTheory.HasSheafify J (Type w)],
  CategoryTheory.Sheaf.IsLocallySurjective φ ↔ CategoryTheory.Epi φ

def CategoryTheory.Presieve.FamilyOfElements.localPreimage E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {R R' : CategoryTheory.Functor Cᵒᵖ (Type w)} →
      (φ : R ⟶ R') →
        {X : Cᵒᵖ} →
          (r' : R'.obj X) → CategoryTheory.Presieve.FamilyOfElements R (CategoryTheory.Presheaf.imageSieve φ r').arrows

Given a morphism φ : R ⟶ R' of presheaves of types and r' : R'.obj X, this is the family of elements of R defined over the sieve Presheaf.imageSieve φ r' which sends a map in this sieve to an arbitrary choice of a preimage of the restriction of r'.

theorem CategoryTheory.Presieve.FamilyOfElements.isAmalgamation_map_localPreimage E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {R R' : CategoryTheory.Functor Cᵒᵖ (Type w)} (φ : R ⟶ R')
  {X : Cᵒᵖ} (r' : R'.obj X), ((CategoryTheory.Presieve.FamilyOfElements.localPreimage φ r').map φ).IsAmalgamation r'

theorem CategoryTheory.Presheaf.imageSieve_cofanIsColimitDesc_shrinkYoneda_map E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {S : C} {ι : Type u_2} [Small.{w, u_2} ι] {X : ι → C}
  (f : (i : ι) → X i ⟶ S) [inst_2 : CategoryTheory.LocallySmall.{w, v, u} C]
  {c : CategoryTheory.Limits.Cofan fun i ↦ CategoryTheory.shrinkYoneda.{w, v, u}.obj (X i)}
  (hc : CategoryTheory.Limits.IsColimit c) {U : C} (g : U ⟶ S),
  CategoryTheory.Presheaf.imageSieve
      (CategoryTheory.Limits.Cofan.IsColimit.desc hc fun i ↦ CategoryTheory.shrinkYoneda.{w, v, u}.map (f i))
      (CategoryTheory.shrinkYonedaObjObjEquiv.symm g) =
    CategoryTheory.Sieve.pullback g (CategoryTheory.Sieve.ofArrows X f)

theorem CategoryTheory.GrothendieckTopology.ofArrows_mem_iff_isLocallySurjective_cofanIsColimitDesc_shrinkYoneda_map E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] {S : C} {ι : Type u_2} [Small.{w, u_2} ι] {X : ι → C}
  (f : (i : ι) → X i ⟶ S) {c : CategoryTheory.Limits.Cofan fun i ↦ CategoryTheory.shrinkYoneda.{w, v, u}.obj (X i)}
  (hc : CategoryTheory.Limits.IsColimit c),
  CategoryTheory.Sieve.ofArrows X f ∈ J S ↔
    CategoryTheory.Presheaf.IsLocallySurjective J
      (CategoryTheory.Limits.Cofan.IsColimit.desc hc fun i ↦ CategoryTheory.shrinkYoneda.{w, v, u}.map (f i))

theorem CategoryTheory.GrothendieckTopology.ofArrows_mem_iff_isLocallySurjective_cofanIsColimitDesc_uliftYoneda_map E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {S : C}
  {ι : Type u_2} [Small.{max w v, u_2} ι] {X : ι → C} (f : (i : ι) → X i ⟶ S)
  {c : CategoryTheory.Limits.Cofan fun i ↦ CategoryTheory.uliftYoneda.{w, v, u}.obj (X i)}
  (hc : CategoryTheory.Limits.IsColimit c),
  CategoryTheory.Sieve.ofArrows X f ∈ J S ↔
    CategoryTheory.Presheaf.IsLocallySurjective J
      (CategoryTheory.Limits.Cofan.IsColimit.desc hc fun i ↦ CategoryTheory.uliftYoneda.{w, v, u}.map (f i))

theorem CategoryTheory.GrothendieckTopology.ofArrows_mem_iff_isLocallySurjective_sigmaDesc_shrinkYoneda_map E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] {S : C} {ι : Type u_2} [inst_2 : Small.{w, u_2} ι] {X : ι → C}
  (f : (i : ι) → X i ⟶ S),
  CategoryTheory.Sieve.ofArrows X f ∈ J S ↔
    CategoryTheory.Presheaf.IsLocallySurjective J
      (CategoryTheory.Limits.Sigma.desc fun i ↦ CategoryTheory.shrinkYoneda.{w, v, u}.map (f i))

theorem CategoryTheory.GrothendieckTopology.ofArrows_mem_iff_isLocallySurjective_sigmaDesc_uliftYoneda_map E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) {S : C}
  {ι : Type u_2} [inst_1 : Small.{max w v, u_2} ι] {X : ι → C} (f : (i : ι) → X i ⟶ S),
  CategoryTheory.Sieve.ofArrows X f ∈ J S ↔
    CategoryTheory.Presheaf.IsLocallySurjective J
      (CategoryTheory.Limits.Sigma.desc fun i ↦ CategoryTheory.uliftYoneda.{w, v, u}.map (f i))