The areas / V24. Category theory
Mathlib.CategoryTheory.Limits.Preserves.Presheaf
15 declarations. Mathlib docs · Source
Finite-limit-preserving presheaves
In this file we prove that if C is a small finitely cocomplete category and A : Cᵒᵖ ⥤ Type u
is a presheaf, then CostructuredArrow yoneda A is filtered (equivalently, the category of
elements of A is cofiltered) if and only if A preserves finite limits.
This is one of the keys steps of establishing the equivalence Ind C ≌ (Cᵒᵖ ⥤ₗ Type u) (here,
Cᵒᵖ ⥤ₗ Type u is the category of left exact functors) for a small finitely cocomplete category
C.
Implementation notes
In the entire file, we are careful about details like functor associativity to ensure that we do
not end up in situations where we have morphisms like colimit.ι F i ≫ f, where the domain of f
is colimit G where F and G are definitionally equal but not syntactically equal. In these
situations, lemmas about colimit.ι G i ≫ f cannot be applied using rw and simp, forcing the
use of erw. In particular, for us this means that HasColimit.isoOfNatIso (Iso.refl _) is better
than Iso.refl _ and that we should be very particular about functor associativity.
The theorem is also true for large categories and the proof given here generalizes to this case on
paper. However, our infrastructure for commuting finite limits of shape J and filtered colimits
of shape K is fundamentally not equipped to deal with the case where not all limits of shape K
exist. In fact, not even the definition colimitLimitToLimitColimit can be written down if not
all limits of shape K exist. Refactoring this to the level of generality we need would be a major
undertaking. Since the application to the category of Ind-objects only require the case where C
is small, we leave this as a TODO.
References
- [M. Kashiwara, P. Schapira, Categories and Sheaves][Kashiwara2006], Proposition 3.3.13
- [F. Borceux, Handbook of Categorical Algebra 1][borceux-vol1], Proposition 6.1.2
theorem CategoryTheory.Limits.isFiltered_costructuredArrow_yoneda_of_preservesFiniteLimits E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasFiniteColimits C]
(A : CategoryTheory.Functor Cᵒᵖ (Type v)) [CategoryTheory.Limits.PreservesFiniteLimits A],
CategoryTheory.IsFiltered (CategoryTheory.CostructuredArrow CategoryTheory.yoneda A)
If C is a finitely cocomplete category and A : Cᵒᵖ ⥤ Type u is a presheaf that preserves
finite limits, then CostructuredArrow yoneda A is filtered.
One direction of Proposition 3.3.13 of [Kashiwara2006].
def CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.functorToInterchange E1 #
{C : Type u} →
[inst : CategoryTheory.SmallCategory C] →
(A : CategoryTheory.Functor Cᵒᵖ (Type u)) →
{J : Type} →
[inst_1 : CategoryTheory.SmallCategory J] →
CategoryTheory.Functor J Cᵒᵖ →
CategoryTheory.Functor J
(CategoryTheory.Functor (CategoryTheory.CostructuredArrow CategoryTheory.yoneda A) (Type u))
(Implementation) This is the bifunctor we will apply "filtered colimits commute with finite limits" to.
def CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.functorToInterchangeIso E1 #
{C : Type u} →
[inst : CategoryTheory.SmallCategory C] →
(A : CategoryTheory.Functor Cᵒᵖ (Type u)) →
{J : Type} →
[inst_1 : CategoryTheory.SmallCategory J] →
(K : CategoryTheory.Functor J Cᵒᵖ) →
CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.functorToInterchange A K ≅
K.comp
(CategoryTheory.coyoneda.comp
((CategoryTheory.Functor.whiskeringLeft (CategoryTheory.CostructuredArrow CategoryTheory.yoneda A) C
(Type u)).obj
(CategoryTheory.CostructuredArrow.proj CategoryTheory.yoneda A)))
(Implementation) The definition of functorToInterchange.
theorem CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.functorToInterchangeIso_hom_app_app_hom_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.SmallCategory C] (A : CategoryTheory.Functor Cᵒᵖ (Type u)) {J : Type}
[inst_1 : CategoryTheory.SmallCategory J] (K : CategoryTheory.Functor J Cᵒᵖ) (X : J)
(X_1 : CategoryTheory.CostructuredArrow CategoryTheory.yoneda A)
(a :
((CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.functorToInterchange A K).obj
X).obj
X_1),
(CategoryTheory.ConcreteCategory.hom
(((CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.functorToInterchangeIso A
K).hom.app
X).app
X_1))
a =
a
theorem CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.functorToInterchangeIso_inv_app_app_hom_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.SmallCategory C] (A : CategoryTheory.Functor Cᵒᵖ (Type u)) {J : Type}
[inst_1 : CategoryTheory.SmallCategory J] (K : CategoryTheory.Functor J Cᵒᵖ) (X : J)
(X_1 : CategoryTheory.CostructuredArrow CategoryTheory.yoneda A)
(a :
((CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.functorToInterchange A K).obj
X).obj
X_1),
(CategoryTheory.ConcreteCategory.hom
(((CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.functorToInterchangeIso A
K).inv.app
X).app
X_1))
a =
a
def CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.flipFunctorToInterchange E1 #
{C : Type u} →
[inst : CategoryTheory.SmallCategory C] →
(A : CategoryTheory.Functor Cᵒᵖ (Type u)) →
{J : Type} →
[inst_1 : CategoryTheory.SmallCategory J] →
(K : CategoryTheory.Functor J Cᵒᵖ) →
(CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.functorToInterchange A
K).flip ≅
((CategoryTheory.CostructuredArrow.proj CategoryTheory.yoneda A).comp CategoryTheory.yoneda).comp
((CategoryTheory.Functor.whiskeringLeft J Cᵒᵖ (Type u)).obj K)
(Implementation) One way to express the flipped version of our functor. We choose this
association because the type of Presheaf.tautologicalCocone is
Cocone (CostructuredArrow.proj yoneda P ⋙ yoneda), so this association will show up in the
proof.
theorem CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.flipFunctorToInterchange_hom_app_app_hom_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.SmallCategory C] (A : CategoryTheory.Functor Cᵒᵖ (Type u)) {J : Type}
[inst_1 : CategoryTheory.SmallCategory J] (K : CategoryTheory.Functor J Cᵒᵖ)
(X : CategoryTheory.CostructuredArrow CategoryTheory.yoneda A) (X_1 : J)
(a :
((CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.functorToInterchange A
K).flip.obj
X).obj
X_1),
(CategoryTheory.ConcreteCategory.hom
(((CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.flipFunctorToInterchange A
K).hom.app
X).app
X_1))
a =
a
theorem CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.flipFunctorToInterchange_inv_app_app_hom_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.SmallCategory C] (A : CategoryTheory.Functor Cᵒᵖ (Type u)) {J : Type}
[inst_1 : CategoryTheory.SmallCategory J] (K : CategoryTheory.Functor J Cᵒᵖ)
(X : CategoryTheory.CostructuredArrow CategoryTheory.yoneda A) (X_1 : J)
(a :
((CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.functorToInterchange A
K).flip.obj
X).obj
X_1),
(CategoryTheory.ConcreteCategory.hom
(((CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.flipFunctorToInterchange A
K).inv.app
X).app
X_1))
a =
a
def CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.isoAux E0 #
{C : Type u} →
[inst : CategoryTheory.SmallCategory C] →
[inst_1 : CategoryTheory.Limits.HasFiniteColimits C] →
(A : CategoryTheory.Functor Cᵒᵖ (Type u)) →
{J : Type} →
[inst_2 : CategoryTheory.SmallCategory J] →
[inst_3 : CategoryTheory.FinCategory J] →
(K : CategoryTheory.Functor J Cᵒᵖ) →
(CategoryTheory.CostructuredArrow.proj CategoryTheory.yoneda A).comp
(CategoryTheory.yoneda.comp
((CategoryTheory.evaluation Cᵒᵖ (Type u)).obj (CategoryTheory.Limits.limit K))) ≅
(CategoryTheory.coyoneda.comp
((CategoryTheory.Functor.whiskeringLeft
(CategoryTheory.CostructuredArrow CategoryTheory.yoneda A) C (Type u)).obj
(CategoryTheory.CostructuredArrow.proj CategoryTheory.yoneda A))).obj
(CategoryTheory.Limits.limit K)
(Implementation) A natural isomorphism we will need to construct iso.
theorem CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.isoAux_hom_app E0 #
∀ {C : Type u} [inst : CategoryTheory.SmallCategory C] [inst_1 : CategoryTheory.Limits.HasFiniteColimits C]
(A : CategoryTheory.Functor Cᵒᵖ (Type u)) {J : Type} [inst_2 : CategoryTheory.SmallCategory J]
[inst_3 : CategoryTheory.FinCategory J] (K : CategoryTheory.Functor J Cᵒᵖ),
(CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.isoAux A K).hom.app = fun X ↦
CategoryTheory.CategoryStruct.id (Opposite.unop (CategoryTheory.Limits.limit K) ⟶ X.left)
def CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.iso E1 #
{C : Type u} →
[inst : CategoryTheory.SmallCategory C] →
[inst_1 : CategoryTheory.Limits.HasFiniteColimits C] →
(A : CategoryTheory.Functor Cᵒᵖ (Type u)) →
{J : Type} →
[inst_2 : CategoryTheory.SmallCategory J] →
[inst_3 : CategoryTheory.FinCategory J] →
(K : CategoryTheory.Functor J Cᵒᵖ) →
[CategoryTheory.IsFiltered (CategoryTheory.CostructuredArrow CategoryTheory.yoneda A)] →
A.obj (CategoryTheory.Limits.limit K) ≅ CategoryTheory.Limits.limit (K.comp A)
(Implementation) The isomorphism that proves that A preserves finite limits.
theorem CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.iso_hom E1 #
∀ {C : Type u} [inst : CategoryTheory.SmallCategory C] [inst_1 : CategoryTheory.Limits.HasFiniteColimits C]
(A : CategoryTheory.Functor Cᵒᵖ (Type u)) {J : Type} [inst_2 : CategoryTheory.SmallCategory J]
[inst_3 : CategoryTheory.FinCategory J] (K : CategoryTheory.Functor J Cᵒᵖ)
[inst_4 : CategoryTheory.IsFiltered (CategoryTheory.CostructuredArrow CategoryTheory.yoneda A)],
(CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.iso A K).hom =
CategoryTheory.Limits.limit.post K A
theorem CategoryTheory.Limits.PreservesFiniteLimitsOfIsFilteredCostructuredArrowYonedaAux.isIso_post E1 #
∀ {C : Type u} [inst : CategoryTheory.SmallCategory C] [inst_1 : CategoryTheory.Limits.HasFiniteColimits C]
(A : CategoryTheory.Functor Cᵒᵖ (Type u)) {J : Type} [inst_2 : CategoryTheory.SmallCategory J]
[inst_3 : CategoryTheory.FinCategory J] (K : CategoryTheory.Functor J Cᵒᵖ)
[CategoryTheory.IsFiltered (CategoryTheory.CostructuredArrow CategoryTheory.yoneda A)],
CategoryTheory.IsIso (CategoryTheory.Limits.limit.post K A)
theorem CategoryTheory.Limits.preservesFiniteLimits_of_isFiltered_costructuredArrow_yoneda E1 #
∀ {C : Type u} [inst : CategoryTheory.SmallCategory C] [CategoryTheory.Limits.HasFiniteColimits C]
(A : CategoryTheory.Functor Cᵒᵖ (Type u))
[CategoryTheory.IsFiltered (CategoryTheory.CostructuredArrow CategoryTheory.yoneda A)],
CategoryTheory.Limits.PreservesFiniteLimits A
If C is a small finitely cocomplete category and A : Cᵒᵖ ⥤ Type u is a presheaf such that
CostructuredArrow yoneda A is filtered, then A preserves finite limits.
One direction of Proposition 3.3.13 of [Kashiwara2006].
theorem CategoryTheory.Limits.isFiltered_costructuredArrow_yoneda_iff_nonempty_preservesFiniteLimits E1 #
∀ {C : Type u} [inst : CategoryTheory.SmallCategory C] [CategoryTheory.Limits.HasFiniteColimits C]
(A : CategoryTheory.Functor Cᵒᵖ (Type u)),
CategoryTheory.IsFiltered (CategoryTheory.CostructuredArrow CategoryTheory.yoneda A) ↔
CategoryTheory.Limits.PreservesFiniteLimits A
If C is a small finitely cocomplete category and A : Cᵒᵖ ⥤ Type u is a presheaf, then
CostructuredArrow yoneda A is filtered if and only if A preserves finite limits.
Proposition 3.3.13 of [Kashiwara2006].