mathlib documentation

category_theory.limits.types

Limits in the category of types. #

We show that the category of types has all (co)limits, by providing the usual concrete models.

We also give a characterisation of filtered colimits in Type, via colimit.ι F i xi = colimit.ι F j xj ↔ ∃ k (f : i ⟶ k) (g : j ⟶ k), F.map f xi = F.map g xj.

Finally, we prove the category of types has categorical images, and that these agree with the range of a function.

(internal implementation) the limit cone of a functor, implemented as flat sections of a pi type

Equations

(internal implementation) the fact that the proposed limit cone is the limit

Equations
@[protected, instance]

The category of types has all limits.

See https://stacks.math.columbia.edu/tag/002U.

The equivalence between a limiting cone of F in Type u and the "concrete" definition as the sections of F.

Equations

The equivalence between the abstract limit of F in Type u and the "concrete" definition as the sections of F.

Equations
@[ext]
noncomputable def category_theory.limits.types.limit.mk {J : Type v} [category_theory.small_category J] (F : J Type (max v u)) (x : Π (j : J), F.obj j) (h : ∀ (j j' : J) (f : j j'), F.map f (x j) = x j') :

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

Equations
@[simp]
theorem category_theory.limits.types.limit.π_mk {J : Type v} [category_theory.small_category J] (F : J Type (max v u)) (x : Π (j : J), F.obj j) (h : ∀ (j j' : J) (f : j j'), F.map f (x j) = x j') (j : J) :
@[simp]
theorem category_theory.limits.types.limit.π_mk' {J : Type v} [category_theory.small_category J] (F : J Type v) (x : Π (j : J), F.obj j) (h : ∀ (j j' : J) (f : j j'), F.map f (x j) = x j') (j : J) :
@[ext]
@[simp]
def category_theory.limits.types.quot.rel {J : Type v} [category_theory.small_category J] (F : J Type (max v u)) :
(Σ (j : J), F.obj j)(Σ (j : J), F.obj j) → Prop

The relation defining the quotient type which implements the colimit of a functor F : J ⥤ Type u. See category_theory.limits.types.quot.

Equations
@[nolint]
def category_theory.limits.types.quot {J : Type v} [category_theory.small_category J] (F : J Type (max v u)) :
Type (max v u)

A quotient type implementing the colimit of a functor F : J ⥤ Type u, as pairs ⟨j, x⟩ where x : F.obj j, modulo the equivalence relation generated by ⟨j, x⟩ ~ ⟨j', x'⟩ whenever there is a morphism f : j ⟶ j' so F.map f x = x'.

Equations
Instances for category_theory.limits.types.quot

(internal implementation) the colimit cocone of a functor, implemented as a quotient of a sigma type

Equations

(internal implementation) the fact that the proposed colimit cocone is the colimit

Equations
@[protected, instance]

The category of types has all colimits.

See https://stacks.math.columbia.edu/tag/002U.

@[simp]
theorem category_theory.limits.types.colimit.w_apply {J : Type v} [category_theory.small_category J] {F : J Type (max v u)} {j j' : J} {x : F.obj j} (f : j j') :
@[simp]
theorem category_theory.limits.types.colimit.w_apply' {J : Type v} [category_theory.small_category J] {F : J Type v} {j j' : J} {x : F.obj j} (f : j j') :
theorem category_theory.limits.types.colimit_sound {J : Type v} [category_theory.small_category J] {F : J Type (max v u)} {j j' : J} {x : F.obj j} {x' : F.obj j'} (f : j j') (w : F.map f x = x') :
theorem category_theory.limits.types.colimit_sound' {J : Type v} [category_theory.small_category J] {F : J Type (max v u)} {j j' : J} {x : F.obj j} {x' : F.obj j'} {j'' : J} (f : j j'') (f' : j' j'') (w : F.map f x = F.map f' x') :
theorem category_theory.limits.types.colimit_eq {J : Type v} [category_theory.small_category J] {F : J Type (max v u)} {j j' : J} {x : F.obj j} {x' : F.obj j'} (w : category_theory.limits.colimit.ι F j x = category_theory.limits.colimit.ι F j' x') :
theorem category_theory.limits.types.jointly_surjective {J : Type v} [category_theory.small_category J] (F : J Type (max v u)) {t : category_theory.limits.cocone F} (h : category_theory.limits.is_colimit t) (x : t.X) :
∃ (j : J) (y : F.obj j), t.ι.app j y = x

A variant of jointly_surjective for x : colimit F.

@[protected]
def category_theory.limits.types.filtered_colimit.rel {J : Type v} [category_theory.small_category J] (F : J Type (max v u)) (x y : Σ (j : J), F.obj j) :
Prop

An alternative relation on Σ j, F.obj j, which generates the same equivalence relation as we use to define the colimit in Type above, but that is more convenient when working with filtered colimits.

Elements in F.obj j and F.obj j' are equivalent if there is some k : J to the right where their images are equal.

Equations
noncomputable def category_theory.limits.types.filtered_colimit.is_colimit_of {J : Type v} [category_theory.small_category J] (F : J Type (max v u)) (t : category_theory.limits.cocone F) (hsurj : ∀ (x : t.X), ∃ (i : J) (xi : F.obj i), x = t.ι.app i xi) (hinj : ∀ (i j : J) (xi : F.obj i) (xj : F.obj j), t.ι.app i xi = t.ι.app j xj(∃ (k : J) (f : i k) (g : j k), F.map f xi = F.map g xj)) :

Recognizing filtered colimits of types.

Equations
theorem category_theory.limits.types.filtered_colimit.is_colimit_eq_iff {J : Type v} [category_theory.small_category J] (F : J Type (max v u)) [category_theory.is_filtered_or_empty J] {t : category_theory.limits.cocone F} (ht : category_theory.limits.is_colimit t) {i j : J} {xi : F.obj i} {xj : F.obj j} :
t.ι.app i xi = t.ι.app j xj ∃ (k : J) (f : i k) (g : j k), F.map f xi = F.map g xj
theorem category_theory.limits.types.filtered_colimit.colimit_eq_iff {J : Type v} [category_theory.small_category J] (F : J Type (max v u)) [category_theory.is_filtered_or_empty J] {i j : J} {xi : F.obj i} {xj : F.obj j} :
category_theory.limits.colimit.ι F i xi = category_theory.limits.colimit.ι F j xj ∃ (k : J) (f : i k) (g : j k), F.map f xi = F.map g xj
def category_theory.limits.types.image {α β : Type u} (f : α β) :
Type u

the image of a morphism in Type is just set.range f

Equations
Instances for category_theory.limits.types.image

the inclusion of image f into the target

Equations
Instances for category_theory.limits.types.image.ι

the universal property for the image factorisation

Equations

the facorisation through a mono has the universal property of the image.

Equations
@[protected, instance]
Equations