The areas / V25. Higher structures in categories
Mathlib.CategoryTheory.Sites.SheafHom
16 declarations. Mathlib docs · Source
Internal hom of sheaves
In this file, given two sheaves F and G on a site (C, J) with values
in a category A, we define a sheaf of types
sheafHom F G which sends X : C to the type of morphisms
between the restrictions of F and G to the categories Over X.
We first define presheafHom F G when F and G are
presheaves Cᵒᵖ ⥤ A and show that it is a sheaf when G is a sheaf.
TODO:
- turn both
presheafHomandsheafHominto bifunctors - for a sheaf of types
F, thesheafHomfunctor fromFis right-adjoint to the product functor withF, i.e. for allXandY, there is a natural bijection(X ⨯ F ⟶ Y) ≃ (X ⟶ sheafHom F Y). - use these results in order to show that the category of sheaves of types is Cartesian closed
def CategoryTheory.presheafHom E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{A : Type u'} →
[inst_1 : CategoryTheory.Category.{v', u'} A] →
CategoryTheory.Functor Cᵒᵖ A →
CategoryTheory.Functor Cᵒᵖ A → CategoryTheory.Functor Cᵒᵖ (Type (max (max u v) v'))
Given two presheaves F and G on a category C with values in a category A,
this presheafHom F G is the presheaf of types which sends an object X : C
to the type of morphisms between the "restrictions" of F and G to the category Over X.
theorem CategoryTheory.presheafHom_obj E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {A : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} A]
(F G : CategoryTheory.Functor Cᵒᵖ A) (X : Cᵒᵖ),
(CategoryTheory.presheafHom F G).obj X =
((CategoryTheory.Over.forget (Opposite.unop X)).op.comp F ⟶
(CategoryTheory.Over.forget (Opposite.unop X)).op.comp G)
theorem CategoryTheory.presheafHom_map_app E2 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {A : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} A]
{F G : CategoryTheory.Functor Cᵒᵖ A} {X Y Z : C} (f : Z ⟶ Y) (g : Y ⟶ X) (h : Z ⟶ X),
CategoryTheory.CategoryStruct.comp f g = h →
∀ (α : (CategoryTheory.presheafHom F G).obj (Opposite.op X)),
((CategoryTheory.ConcreteCategory.hom ((CategoryTheory.presheafHom F G).map g.op)) α).app
(Opposite.op (CategoryTheory.Over.mk f)) =
α.app (Opposite.op (CategoryTheory.Over.mk h))
Equational lemma for the presheaf structure on presheafHom.
It is advisable to use this lemma rather than dsimp [presheafHom] which may result
in the need to prove equalities of objects in an Over category.
theorem CategoryTheory.presheafHom_map_app_op_mk_id E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {A : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} A]
{F G : CategoryTheory.Functor Cᵒᵖ A} {X Y : C} (g : Y ⟶ X) (α : (CategoryTheory.presheafHom F G).obj (Opposite.op X)),
((CategoryTheory.ConcreteCategory.hom ((CategoryTheory.presheafHom F G).map g.op)) α).app
(Opposite.op (CategoryTheory.Over.mk (CategoryTheory.CategoryStruct.id Y))) =
α.app (Opposite.op (CategoryTheory.Over.mk g))
def CategoryTheory.presheafHomSectionsEquiv E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{A : Type u'} →
[inst_1 : CategoryTheory.Category.{v', u'} A] →
(F G : CategoryTheory.Functor Cᵒᵖ A) → ↑(CategoryTheory.presheafHom F G).sections ≃ (F ⟶ G)
The sections of the presheaf presheafHom F G identify to morphisms F ⟶ G.
theorem CategoryTheory.PresheafHom.isAmalgamation_iff E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {A : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} A]
{F G : CategoryTheory.Functor Cᵒᵖ A} {X : C} (S : CategoryTheory.Sieve X)
(x : CategoryTheory.Presieve.FamilyOfElements (CategoryTheory.presheafHom F G) S.arrows),
x.Compatible →
∀ (y : (CategoryTheory.presheafHom F G).obj (Opposite.op X)),
x.IsAmalgamation y ↔
∀ (Y : C) (g : Y ⟶ X) (hg : S.arrows g),
y.app (Opposite.op (CategoryTheory.Over.mk g)) =
(x g hg).app (Opposite.op (CategoryTheory.Over.mk (CategoryTheory.CategoryStruct.id Y)))
theorem CategoryTheory.PresheafHom.IsSheafFor.exists_app E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {A : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} A]
{F G : CategoryTheory.Functor Cᵒᵖ A} {X : C} {S : CategoryTheory.Sieve X}
(hG :
⦃Y : C⦄ →
(f : Y ⟶ X) → CategoryTheory.Limits.IsLimit (G.mapCone (CategoryTheory.Sieve.pullback f S).arrows.cocone.op))
(x : CategoryTheory.Presieve.FamilyOfElements (CategoryTheory.presheafHom F G) S.arrows) {Y : C},
x.Compatible →
∀ (g : Y ⟶ X),
∃ φ,
∀ {Z : C} (p : Z ⟶ Y) (hp : S.arrows (CategoryTheory.CategoryStruct.comp p g)),
CategoryTheory.CategoryStruct.comp φ (G.map p.op) =
CategoryTheory.CategoryStruct.comp (F.map p.op)
((x (CategoryTheory.CategoryStruct.comp p g) hp).app
(Opposite.op (CategoryTheory.Over.mk (CategoryTheory.CategoryStruct.id Z))))
def CategoryTheory.PresheafHom.IsSheafFor.app E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{A : Type u'} →
[inst_1 : CategoryTheory.Category.{v', u'} A] →
{F G : CategoryTheory.Functor Cᵒᵖ A} →
{X : C} →
{S : CategoryTheory.Sieve X} →
(⦃Y : C⦄ →
(f : Y ⟶ X) →
CategoryTheory.Limits.IsLimit (G.mapCone (CategoryTheory.Sieve.pullback f S).arrows.cocone.op)) →
(x : CategoryTheory.Presieve.FamilyOfElements (CategoryTheory.presheafHom F G) S.arrows) →
{Y : C} → x.Compatible → (Y ⟶ X) → (F.obj (Opposite.op Y) ⟶ G.obj (Opposite.op Y))
Auxiliary definition for presheafHom_isSheafFor.
theorem CategoryTheory.PresheafHom.IsSheafFor.app_cond E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {A : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} A]
{F G : CategoryTheory.Functor Cᵒᵖ A} {X : C} {S : CategoryTheory.Sieve X}
(hG :
⦃Y : C⦄ →
(f : Y ⟶ X) → CategoryTheory.Limits.IsLimit (G.mapCone (CategoryTheory.Sieve.pullback f S).arrows.cocone.op))
(x : CategoryTheory.Presieve.FamilyOfElements (CategoryTheory.presheafHom F G) S.arrows) {Y : C} (hx : x.Compatible)
(g : Y ⟶ X) {Z : C} (p : Z ⟶ Y) (hp : S.arrows (CategoryTheory.CategoryStruct.comp p g)),
CategoryTheory.CategoryStruct.comp (CategoryTheory.PresheafHom.IsSheafFor.app hG x hx g) (G.map p.op) =
CategoryTheory.CategoryStruct.comp (F.map p.op)
((x (CategoryTheory.CategoryStruct.comp p g) hp).app
(Opposite.op (CategoryTheory.Over.mk (CategoryTheory.CategoryStruct.id Z))))
theorem CategoryTheory.presheafHom_isSheafFor E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {A : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} A]
(F G : CategoryTheory.Functor Cᵒᵖ A) {X : C} (S : CategoryTheory.Sieve X)
(hG :
⦃Y : C⦄ →
(f : Y ⟶ X) → CategoryTheory.Limits.IsLimit (G.mapCone (CategoryTheory.Sieve.pullback f S).arrows.cocone.op)),
CategoryTheory.Presieve.IsSheafFor (CategoryTheory.presheafHom F G) S.arrows
theorem CategoryTheory.Presheaf.IsSheaf.hom E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u'}
[inst_1 : CategoryTheory.Category.{v', u'} A] (F G : CategoryTheory.Functor Cᵒᵖ A),
CategoryTheory.Presheaf.IsSheaf J G → CategoryTheory.Presheaf.IsSheaf J (CategoryTheory.presheafHom F G)
def CategoryTheory.sheafHom' E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{J : CategoryTheory.GrothendieckTopology C} →
{A : Type u'} →
[inst_1 : CategoryTheory.Category.{v', u'} A] →
CategoryTheory.Sheaf J A → CategoryTheory.Sheaf J A → CategoryTheory.Functor Cᵒᵖ (Type (max (max u v) v'))
The underlying presheaf of sheafHom F G. It is isomorphic to presheafHom F.1 G.1
(see sheafHom'Iso), but has better definitional properties.
def CategoryTheory.sheafHom'Iso E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{J : CategoryTheory.GrothendieckTopology C} →
{A : Type u'} →
[inst_1 : CategoryTheory.Category.{v', u'} A] →
(F G : CategoryTheory.Sheaf J A) → CategoryTheory.sheafHom' F G ≅ CategoryTheory.presheafHom F.obj G.obj
The canonical isomorphism sheafHom' F G ≅ presheafHom F.1 G.1.
def CategoryTheory.sheafHom E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{J : CategoryTheory.GrothendieckTopology C} →
{A : Type u'} →
[inst_1 : CategoryTheory.Category.{v', u'} A] →
CategoryTheory.Sheaf J A → CategoryTheory.Sheaf J A → CategoryTheory.Sheaf J (Type (max (max u v') v))
Given two sheaves F and G on a site (C, J) with values in a category A,
this sheafHom F G is the sheaf of types which sends an object X : C
to the type of morphisms between the "restrictions" of F and G to the category Over X.
def CategoryTheory.sheafHomSectionsEquiv E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{J : CategoryTheory.GrothendieckTopology C} →
{A : Type u'} →
[inst_1 : CategoryTheory.Category.{v', u'} A] →
(F G : CategoryTheory.Sheaf J A) → ↑(CategoryTheory.sheafHom F G).obj.sections ≃ (F ⟶ G)
The sections of the sheaf sheafHom F G identify to morphisms F ⟶ G.
theorem CategoryTheory.sheafHomSectionsEquiv_symm_apply_coe_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {J : CategoryTheory.GrothendieckTopology C} {A : Type u'}
[inst_1 : CategoryTheory.Category.{v', u'} A] {F G : CategoryTheory.Sheaf J A} (φ : F ⟶ G) (X : Cᵒᵖ),
↑((CategoryTheory.sheafHomSectionsEquiv F G).symm φ) X = (J.overPullback A (Opposite.unop X)).map φ