The areas / V24. Category theory
Mathlib.CategoryTheory.Limits.Types.Limits
36 declarations. Mathlib docs · Source
Limits in the category of types.
We show that the category of types has all limits, by providing the usual concrete models.
We now provide two distinct implementations in the category of types.
The first, in the CategoryTheory.Limits.Types.Small namespace,
assumes Small.{u} J and constructs J-indexed limits in Type u.
The second, in the CategoryTheory.Limits.Types.TypeMax namespace
constructs limits for functors F : J ⥤ Type (max v u), for J : Type v.
This construction is slightly nicer, as the limit is definitionally just F.sections,
rather than Shrink F.sections, which makes an arbitrary choice of u-small representative.
Hopefully we might be able to entirely remove the TypeMax constructions,
but for now they are useful glue for the later parts of the library.
The results in this section have a UnivLE.{v, u} hypothesis,
but as they only use the constructions from the CategoryTheory.Limits.Types.UnivLE namespace
in their definitions (rather than their statements),
we leave them in the main CategoryTheory.Limits.Types namespace.
In this section we verify that instances are available as expected.
def CategoryTheory.Limits.Types.coneOfSection E1 #
{J : Type v} →
[inst : CategoryTheory.Category.{w, v} J] →
{F : CategoryTheory.Functor J (Type u)} → {s : (j : J) → F.obj j} → s ∈ F.sections → CategoryTheory.Limits.Cone F
Given a section of a functor F into Type*,
construct a cone over F with PUnit as the cone point.
def CategoryTheory.Limits.Types.sectionOfCone E1 #
{J : Type v} →
[inst : CategoryTheory.Category.{w, v} J] →
{F : CategoryTheory.Functor J (Type u)} → (c : CategoryTheory.Limits.Cone F) → c.pt → ↑F.sections
Given a cone over a functor F into Type* and an element in the cone point,
construct a section of F.
theorem CategoryTheory.Limits.Types.sectionOfCone_coe E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] {F : CategoryTheory.Functor J (Type u)}
(c : CategoryTheory.Limits.Cone F) (x : c.pt) (j : J),
↑(CategoryTheory.Limits.Types.sectionOfCone c x) j = (CategoryTheory.ConcreteCategory.hom (c.π.app j)) x
theorem CategoryTheory.Limits.Types.isLimit_iff E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] {F : CategoryTheory.Functor J (Type u)}
(c : CategoryTheory.Limits.Cone F),
Nonempty (CategoryTheory.Limits.IsLimit c) ↔
∀ s ∈ F.sections, ∃! x, ∀ (j : J), (CategoryTheory.ConcreteCategory.hom (c.π.app j)) x = s j
theorem CategoryTheory.Limits.Types.isLimit_iff_bijective_sectionOfCone E1 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] {F : CategoryTheory.Functor J (Type u)}
(c : CategoryTheory.Limits.Cone F),
Nonempty (CategoryTheory.Limits.IsLimit c) ↔ Function.Bijective (CategoryTheory.Limits.Types.sectionOfCone c)
def CategoryTheory.Limits.Types.isLimitEquivSections E1 #
{J : Type v} →
[inst : CategoryTheory.Category.{w, v} J] →
{F : CategoryTheory.Functor J (Type u)} →
{c : CategoryTheory.Limits.Cone F} → CategoryTheory.Limits.IsLimit c → c.pt ≃ ↑F.sections
The equivalence between a limiting cone of F in Type u and the "concrete" definition as the
sections of F.
theorem CategoryTheory.Limits.Types.isLimitEquivSections_apply E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] {F : CategoryTheory.Functor J (Type u)}
{c : CategoryTheory.Limits.Cone F} (t : CategoryTheory.Limits.IsLimit c) (j : J) (x : c.pt),
↑((CategoryTheory.Limits.Types.isLimitEquivSections t) x) j = (CategoryTheory.ConcreteCategory.hom (c.π.app j)) x
theorem CategoryTheory.Limits.Types.isLimitEquivSections_symm_apply E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] {F : CategoryTheory.Functor J (Type u)}
{c : CategoryTheory.Limits.Cone F} (t : CategoryTheory.Limits.IsLimit c) (x : ↑F.sections) (j : J),
(CategoryTheory.ConcreteCategory.hom (c.π.app j)) ((CategoryTheory.Limits.Types.isLimitEquivSections t).symm x) = ↑x j
def CategoryTheory.Limits.Types.Small.limitCone E1 #
{J : Type v} →
[inst : CategoryTheory.Category.{w, v} J] →
(F : CategoryTheory.Functor J (Type u)) → [Small.{u, max u v} ↑F.sections] → CategoryTheory.Limits.Cone F
(internal implementation) the limit cone of a functor, implemented as flat sections of a pi type
theorem CategoryTheory.Limits.Types.Small.limitCone_pt E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] (F : CategoryTheory.Functor J (Type u))
[inst_1 : Small.{u, max u v} ↑F.sections],
(CategoryTheory.Limits.Types.Small.limitCone F).pt = Shrink.{u, max u v} ↑F.sections
theorem CategoryTheory.Limits.Types.Small.limitCone_π_app E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] (F : CategoryTheory.Functor J (Type u))
[inst_1 : Small.{u, max u v} ↑F.sections] (j : J),
(CategoryTheory.Limits.Types.Small.limitCone F).π.app j = TypeCat.ofHom fun u ↦ ↑((equivShrink ↑F.sections).symm u) j
theorem CategoryTheory.Limits.Types.Small.limitCone_pt_ext E1 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] (F : CategoryTheory.Functor J (Type u))
[inst_1 : Small.{u, max u v} ↑F.sections] {x y : (CategoryTheory.Limits.Types.Small.limitCone F).pt},
(equivShrink ↑F.sections).symm x = (equivShrink ↑F.sections).symm y → x = y
theorem CategoryTheory.Limits.Types.Small.limitCone_pt_ext_iff E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] {F : CategoryTheory.Functor J (Type u)}
[inst_1 : Small.{u, max u v} ↑F.sections] {x y : (CategoryTheory.Limits.Types.Small.limitCone F).pt},
x = y ↔ (equivShrink ↑F.sections).symm x = (equivShrink ↑F.sections).symm y
def CategoryTheory.Limits.Types.Small.limitConeIsLimit E1 #
{J : Type v} →
[inst : CategoryTheory.Category.{w, v} J] →
(F : CategoryTheory.Functor J (Type u)) →
[inst_1 : Small.{u, max u v} ↑F.sections] →
CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.Types.Small.limitCone F)
(internal implementation) the fact that the proposed limit cone is the limit
theorem CategoryTheory.Limits.Types.Small.limitConeIsLimit_lift E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] (F : CategoryTheory.Functor J (Type u))
[inst_1 : Small.{u, max u v} ↑F.sections] (s : CategoryTheory.Limits.Cone F),
(CategoryTheory.Limits.Types.Small.limitConeIsLimit F).lift s =
TypeCat.ofHom fun v ↦ (equivShrink ↑F.sections) ⟨fun j ↦ (CategoryTheory.ConcreteCategory.hom (s.π.app j)) v, ⋯⟩
theorem CategoryTheory.Limits.Types.hasLimit_iff_small_sections E1 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] (F : CategoryTheory.Functor J (Type u)),
CategoryTheory.Limits.HasLimit F ↔ Small.{u, max u v} ↑F.sections
def CategoryTheory.Limits.Types.limitCone E1 #
{J : Type v} →
[inst : CategoryTheory.Category.{w, v} J] →
(F : CategoryTheory.Functor J (Type (max v u))) → CategoryTheory.Limits.Cone F
(internal implementation) the limit cone of a functor, implemented as flat sections of a pi type
theorem CategoryTheory.Limits.Types.limitCone_pt E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] (F : CategoryTheory.Functor J (Type (max v u))),
(CategoryTheory.Limits.Types.limitCone F).pt = ↑F.sections
theorem CategoryTheory.Limits.Types.limitCone_π_app E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] (F : CategoryTheory.Functor J (Type (max v u))) (j : J),
(CategoryTheory.Limits.Types.limitCone F).π.app j = TypeCat.ofHom fun u ↦ ↑u j
def CategoryTheory.Limits.Types.limitConeIsLimit E1 #
{J : Type v} →
[inst : CategoryTheory.Category.{w, v} J] →
(F : CategoryTheory.Functor J (Type (max v u))) →
CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.Types.limitCone F)
(internal implementation) the fact that the proposed limit cone is the limit
theorem CategoryTheory.Limits.Types.limitConeIsLimit_lift E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] (F : CategoryTheory.Functor J (Type (max v u)))
(s : CategoryTheory.Limits.Cone F),
(CategoryTheory.Limits.Types.limitConeIsLimit F).lift s =
TypeCat.ofHom fun v ↦ ⟨fun j ↦ (CategoryTheory.ConcreteCategory.hom (s.π.app j)) v, ⋯⟩
instance CategoryTheory.Limits.Types.hasLimit E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] [Small.{u, v} J] (F : CategoryTheory.Functor J (Type u)),
CategoryTheory.Limits.HasLimit F
instance CategoryTheory.Limits.Types.hasLimitsOfShape E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] [Small.{u, v} J],
CategoryTheory.Limits.HasLimitsOfShape J (Type u)
instance CategoryTheory.Limits.Types.hasLimitsOfSize E0 #
∀ [UnivLE.{v, u}], CategoryTheory.Limits.HasLimitsOfSize.{w, v, u, u + 1} (Type u)
The category of types has all limits.
More specifically, when UnivLE.{v, u}, the category Type u has all v-small limits.
def CategoryTheory.Limits.Types.limitEquivSections E1 #
{J : Type v} →
[inst : CategoryTheory.Category.{w, v} J] →
(F : CategoryTheory.Functor J (Type u)) →
[inst_1 : CategoryTheory.Limits.HasLimit F] → CategoryTheory.Limits.limit F ≃ ↑F.sections
The equivalence between the abstract limit of F in Type max v u
and the "concrete" definition as the sections of F.
theorem CategoryTheory.Limits.Types.limitEquivSections_apply E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] (F : CategoryTheory.Functor J (Type u))
[inst_1 : CategoryTheory.Limits.HasLimit F] (x : CategoryTheory.Limits.limit F) (j : J),
↑((CategoryTheory.Limits.Types.limitEquivSections F) x) j =
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π F j)) x
theorem CategoryTheory.Limits.Types.limitEquivSections_symm_apply E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] (F : CategoryTheory.Functor J (Type u))
[inst_1 : CategoryTheory.Limits.HasLimit F] (x : ↑F.sections) (j : J),
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π F j))
((CategoryTheory.Limits.Types.limitEquivSections F).symm x) =
↑x j
def CategoryTheory.Limits.Types.limNatIsoSectionsFunctor E1 #
{J : Type v} →
[inst : CategoryTheory.Category.{w, v} J] → CategoryTheory.Limits.lim ≅ CategoryTheory.Functor.sectionsFunctor J
The limit of a functor F : J ⥤ Type _ is naturally isomorphic to F.sections.
def CategoryTheory.Limits.Types.Limit.mk E1 #
{J : Type v} →
[inst : CategoryTheory.Category.{w, v} J] →
(F : CategoryTheory.Functor J (Type u)) →
[inst_1 : CategoryTheory.Limits.HasLimit F] →
(x : (j : J) → F.obj j) →
(∀ (j j' : J) (f : j ⟶ j'), (CategoryTheory.ConcreteCategory.hom (F.map f)) (x j) = x j') →
CategoryTheory.Limits.limit F
Construct a term of limit F : Type u from a family of terms x : Π j, F.obj j
which are "coherent": ∀ (j j') (f : j ⟶ j'), F.map f (x j) = x j'.
theorem CategoryTheory.Limits.Types.Limit.π_mk E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] (F : CategoryTheory.Functor J (Type u))
[inst_1 : CategoryTheory.Limits.HasLimit F] (x : (j : J) → F.obj j)
(h : ∀ (j j' : J) (f : j ⟶ j'), (CategoryTheory.ConcreteCategory.hom (F.map f)) (x j) = x j') (j : J),
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π F j))
(CategoryTheory.Limits.Types.Limit.mk F x h) =
x j
theorem CategoryTheory.Limits.Types.limit_ext E1 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] (F : CategoryTheory.Functor J (Type u))
[inst_1 : CategoryTheory.Limits.HasLimit F] (x y : CategoryTheory.Limits.limit F),
(∀ (j : J),
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π F j)) x =
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π F j)) y) →
x = y
theorem CategoryTheory.Limits.Types.limit_ext_iff E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] {F : CategoryTheory.Functor J (Type u)}
[inst_1 : CategoryTheory.Limits.HasLimit F] {x y : CategoryTheory.Limits.limit F},
x = y ↔
∀ (j : J),
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π F j)) x =
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π F j)) y
theorem CategoryTheory.Limits.Types.limit_ext'_iff E0 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] {F' : CategoryTheory.Functor J (Type v)}
{x y : CategoryTheory.Limits.limit F'},
x = y ↔
∀ (j : J),
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π F' j)) x =
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π F' j)) y
theorem CategoryTheory.Limits.Types.limit_ext' E1 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] (F' : CategoryTheory.Functor J (Type v))
(x y : CategoryTheory.Limits.limit F'),
(∀ (j : J),
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π F' j)) x =
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π F' j)) y) →
x = y
theorem CategoryTheory.Limits.Types.limit_ext_iff' E1 #
∀ {J : Type v} [inst : CategoryTheory.Category.{w, v} J] (F' : CategoryTheory.Functor J (Type v))
(x y : CategoryTheory.Limits.limit F'),
x = y ↔
∀ (j : J),
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π F' j)) x =
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π F' j)) y
theorem CategoryTheory.Limits.limMap_π_apply E0 #
∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {C : Type u} [inst_1 : CategoryTheory.Category.{v, u} C]
{F G : CategoryTheory.Functor J C} [inst_2 : CategoryTheory.Limits.HasLimit F]
[inst_3 : CategoryTheory.Limits.HasLimit G] (α : F ⟶ G) (j : J) {F_1 : C → C → Type uF} {carrier : C → Type w}
{instFunLike : (X Y : C) → FunLike (F_1 X Y) (carrier X) (carrier Y)} [inst_4 : CategoryTheory.ConcreteCategory C F_1]
(x : carrier (CategoryTheory.Limits.limit F)),
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π G j))
((CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limMap α)) x) =
(CategoryTheory.ConcreteCategory.hom (α.app j))
((CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π F j)) x)