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

36 declarations. Mathlib docs · Source

The canonical topology on a category

We define the finest (largest) Grothendieck topology for which a given presheaf P is a sheaf. This is well defined since if P is a sheaf for a topology J, then it is a sheaf for any coarser (smaller) topology. Nonetheless we define the topology explicitly by specifying its sieves: A sieve S on X is covering for finestTopologySingle P iff for any f : Y ⟶ X, P satisfies the sheaf axiom for S.pullback f. Showing that this is a genuine Grothendieck topology (namely that it satisfies the transitivity axiom) forms the bulk of this file.

This generalises to a set of presheaves, giving the topology finestTopology Ps which is the finest topology for which every presheaf in Ps is a sheaf. Using Ps as the set of representable presheaves defines the canonicalTopology: the finest topology for which every representable is a sheaf.

A Grothendieck topology is called Subcanonical if it is smaller than the canonical topology, equivalently it is subcanonical iff every representable presheaf is a sheaf.

References

  • https://ncatlab.org/nlab/show/canonical+topology
  • https://ncatlab.org/nlab/show/subcanonical+coverage
  • https://stacks.math.columbia.edu/tag/00Z9
  • https://math.stackexchange.com/a/358709/

def CategoryTheory.Sheaf.finestTopologySingle E1 #

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

Construct the finest (largest) Grothendieck topology for which the given presheaf is a sheaf.

def CategoryTheory.Sheaf.finestTopology E1 #

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

Construct the finest (largest) Grothendieck topology for which all the given presheaves are sheaves.

theorem CategoryTheory.Sheaf.sheaf_for_finestTopology E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P : CategoryTheory.Functor Cᵒᵖ (Type w)}
  (Ps : Set (CategoryTheory.Functor Cᵒᵖ (Type w))),
  P ∈ Ps → CategoryTheory.Presieve.IsSheaf (CategoryTheory.Sheaf.finestTopology Ps) P

Check that if P ∈ Ps, then P is indeed a sheaf for the finest topology on Ps.

theorem CategoryTheory.Sheaf.mem_finestTopology_of_forall_isSheafFor E0 #

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

theorem CategoryTheory.Sheaf.le_finestTopology E1 #

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

Check that if each P ∈ Ps is a sheaf for J, then J is a subtopology of finestTopology Ps.

def CategoryTheory.Sheaf.canonicalTopology E1 #

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

The canonicalTopology on a category is the finest (largest) topology for which every representable presheaf is a sheaf.

theorem CategoryTheory.Sheaf.isSheaf_yoneda_obj E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C),
  CategoryTheory.Presieve.IsSheaf (CategoryTheory.Sheaf.canonicalTopology C) (CategoryTheory.yoneda.obj X)

yoneda.obj X is a sheaf for the canonical topology.

theorem CategoryTheory.Sheaf.isSheaf_of_isRepresentable E1 #

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

A representable functor is a sheaf for the canonical topology.

class CategoryTheory.GrothendieckTopology.Subcanonical E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.GrothendieckTopology C → Prop

A subcanonical topology is a topology which is smaller than the canonical topology. Equivalently, a topology is subcanonical iff every representable is a sheaf.

ctor CategoryTheory.GrothendieckTopology.Subcanonical.mk E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C},
  J ≤ CategoryTheory.Sheaf.canonicalTopology C → J.Subcanonical

theorem CategoryTheory.GrothendieckTopology.Subcanonical.le_canonical E1 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {J : CategoryTheory.GrothendieckTopology C}
  [self : J.Subcanonical], J ≤ CategoryTheory.Sheaf.canonicalTopology C

theorem CategoryTheory.GrothendieckTopology.le_canonical E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C) [J.Subcanonical],
  J ≤ CategoryTheory.Sheaf.canonicalTopology C

instance CategoryTheory.GrothendieckTopology.instSubcanonicalCanonicalTopology E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C], (CategoryTheory.Sheaf.canonicalTopology C).Subcanonical

theorem CategoryTheory.GrothendieckTopology.Subcanonical.of_isSheaf_yoneda_obj E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C),
  (∀ (X : C), CategoryTheory.Presieve.IsSheaf J (CategoryTheory.yoneda.obj X)) → J.Subcanonical

If every functor yoneda.obj X is a J-sheaf, then J is subcanonical.

theorem CategoryTheory.GrothendieckTopology.Subcanonical.isSheaf_of_isRepresentable E1 #

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

If J is subcanonical, then any representable is a J-sheaf.

theorem CategoryTheory.GrothendieckTopology.Subcanonical.of_le E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J K : CategoryTheory.GrothendieckTopology C},
  J ≤ K → ∀ [K.Subcanonical], J.Subcanonical

def CategoryTheory.GrothendieckTopology.yoneda E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (J : CategoryTheory.GrothendieckTopology C) →
      [J.Subcanonical] → CategoryTheory.Functor C (CategoryTheory.Sheaf J (Type v))

If J is subcanonical, we obtain a "Yoneda" functor from the defining site into the sheaf category.

theorem CategoryTheory.GrothendieckTopology.yoneda_map_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  [inst_1 : J.Subcanonical] {X Y : C} (f : X ⟶ Y), (J.yoneda.map f).hom = CategoryTheory.yoneda.map f

theorem CategoryTheory.GrothendieckTopology.yoneda_obj_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  [inst_1 : J.Subcanonical] (X : C), (J.yoneda.obj X).obj = CategoryTheory.yoneda.obj X

def CategoryTheory.GrothendieckTopology.uliftYoneda E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (J : CategoryTheory.GrothendieckTopology C) →
      [J.Subcanonical] → CategoryTheory.Functor C (CategoryTheory.Sheaf J (Type (max v w)))

Variant of the Yoneda embedding which allows a raise in the universe level for the category of types.

theorem CategoryTheory.GrothendieckTopology.uliftYoneda_map_hom_app_hom_apply_down E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  [inst_1 : J.Subcanonical] {X Y : C} (f : X ⟶ Y) (X_1 : Cᵒᵖ)
  (x : ULift.{w, v} (((CategoryTheory.sheafToPresheaf J (Type v)).obj (J.yoneda.obj X)).obj X_1)),
  ((CategoryTheory.ConcreteCategory.hom
          (((CategoryTheory.GrothendieckTopology.uliftYoneda.{w, v, u} J).map f).hom.app X_1))
        x).down =
    CategoryTheory.CategoryStruct.comp x.down f

theorem CategoryTheory.GrothendieckTopology.uliftYoneda_obj_obj_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  [inst_1 : J.Subcanonical] (X : C) (X_1 : Cᵒᵖ),
  ((CategoryTheory.GrothendieckTopology.uliftYoneda.{w, v, u} J).obj X).obj.obj X_1 =
    ULift.{w, v} (Opposite.unop X_1 ⟶ X)

theorem CategoryTheory.GrothendieckTopology.uliftYoneda_obj_obj_map_hom_apply_down E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  [inst_1 : J.Subcanonical] (X : C) {X_1 Y : Cᵒᵖ} (f : X_1 ⟶ Y)
  (x : ULift.{w, v} (((CategoryTheory.sheafToPresheaf J (Type v)).obj (J.yoneda.obj X)).obj X_1)),
  ((CategoryTheory.ConcreteCategory.hom
          (((CategoryTheory.GrothendieckTopology.uliftYoneda.{w, v, u} J).obj X).obj.map f))
        x).down =
    CategoryTheory.CategoryStruct.comp f.unop x.down

def CategoryTheory.GrothendieckTopology.uliftYonedaIsoYoneda E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{max w v, u} C] →
    (J : CategoryTheory.GrothendieckTopology C) →
      [inst_1 : J.Subcanonical] → CategoryTheory.GrothendieckTopology.uliftYoneda.{w, max v w, u} J ≅ J.yoneda

If C is a category with [Category.{max w v} C], this is the isomorphism uliftYoneda.{w} (C := C) ≅ yoneda.

theorem CategoryTheory.GrothendieckTopology.uliftYonedaIsoYoneda_hom_app_hom_app_hom_apply E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{max w v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  [inst_1 : J.Subcanonical] (X : C) (X_1 : Cᵒᵖ) (x : ULift.{w, max v w} (Opposite.unop X_1 ⟶ X)),
  (CategoryTheory.ConcreteCategory.hom ((J.uliftYonedaIsoYoneda.hom.app X).hom.app X_1)) x = x.down

theorem CategoryTheory.GrothendieckTopology.uliftYonedaIsoYoneda_inv_app_hom_app_hom_apply_down E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{max w v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  [inst_1 : J.Subcanonical] (X : C) (X_1 : Cᵒᵖ) (x : Opposite.unop X_1 ⟶ X),
  ((CategoryTheory.ConcreteCategory.hom ((J.uliftYonedaIsoYoneda.inv.app X).hom.app X_1)) x).down = x

def CategoryTheory.GrothendieckTopology.yonedaCompSheafToPresheaf E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (J : CategoryTheory.GrothendieckTopology C) →
      [inst_1 : J.Subcanonical] → J.yoneda.comp (CategoryTheory.sheafToPresheaf J (Type v)) ≅ CategoryTheory.yoneda

The yoneda embedding into the presheaf category factors through the one to the sheaf category.

def CategoryTheory.GrothendieckTopology.uliftYonedaCompSheafToPresheaf E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (J : CategoryTheory.GrothendieckTopology C) →
      [inst_1 : J.Subcanonical] →
        (CategoryTheory.GrothendieckTopology.uliftYoneda.{w, v, u} J).comp
            (CategoryTheory.sheafToPresheaf J (Type (max v w))) ≅
          CategoryTheory.uliftYoneda.{w, v, u}

A variant of yonedaCompSheafToPresheaf with a raise in the universe level.

theorem CategoryTheory.GrothendieckTopology.uliftYonedaCompSheafToPresheaf_hom_app_app_hom_apply E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  [inst_1 : J.Subcanonical] (X : C) (X_1 : Cᵒᵖ)
  (a :
    (((CategoryTheory.GrothendieckTopology.uliftYoneda.{w, v, u} J).comp
              (CategoryTheory.sheafToPresheaf J (Type (max v w)))).obj
          X).obj
      X_1),
  (CategoryTheory.ConcreteCategory.hom ((J.uliftYonedaCompSheafToPresheaf.hom.app X).app X_1)) a = a

theorem CategoryTheory.GrothendieckTopology.uliftYonedaCompSheafToPresheaf_inv_app_app_hom_apply E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  [inst_1 : J.Subcanonical] (X : C) (X_1 : Cᵒᵖ)
  (a :
    (((CategoryTheory.GrothendieckTopology.uliftYoneda.{w, v, u} J).comp
              (CategoryTheory.sheafToPresheaf J (Type (max v w)))).obj
          X).obj
      X_1),
  (CategoryTheory.ConcreteCategory.hom ((J.uliftYonedaCompSheafToPresheaf.inv.app X).app X_1)) a = a

def CategoryTheory.GrothendieckTopology.yonedaFullyFaithful E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (J : CategoryTheory.GrothendieckTopology C) → [inst_1 : J.Subcanonical] → J.yoneda.FullyFaithful

The yoneda functor into the sheaf category is fully faithful

instance CategoryTheory.GrothendieckTopology.instFullSheafTypeYoneda E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  [inst_1 : J.Subcanonical], J.yoneda.Full

instance CategoryTheory.GrothendieckTopology.instFaithfulSheafTypeYoneda E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  [inst_1 : J.Subcanonical], J.yoneda.Faithful

def CategoryTheory.GrothendieckTopology.fullyFaithfulUliftYoneda E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (J : CategoryTheory.GrothendieckTopology C) →
      [inst_1 : J.Subcanonical] → (CategoryTheory.GrothendieckTopology.uliftYoneda.{w, v, u} J).FullyFaithful

A variant of yonedaFullyFaithful with a raise in the universe level.

instance CategoryTheory.GrothendieckTopology.instFullSheafTypeUliftYoneda E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  [inst_1 : J.Subcanonical], (CategoryTheory.GrothendieckTopology.uliftYoneda.{w, v, u} J).Full

instance CategoryTheory.GrothendieckTopology.instFaithfulSheafTypeUliftYoneda E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (J : CategoryTheory.GrothendieckTopology C)
  [inst_1 : J.Subcanonical], (CategoryTheory.GrothendieckTopology.uliftYoneda.{w, v, u} J).Faithful