The areas / V26. Homological algebra
Mathlib.Algebra.Category.MonCat.FilteredColimits
58 declarations. Mathlib docs · Source
abbrev MonCat.FilteredColimits.M E1 #
{J : Type v} → [inst : CategoryTheory.SmallCategory J] → CategoryTheory.Functor J MonCat → Type (max u v)
The colimit of F ⋙ forget MonCat in the category of types.
In the following, we will construct a monoid structure on M.
abbrev AddMonCat.FilteredColimits.M E1 #
{J : Type v} → [inst : CategoryTheory.SmallCategory J] → CategoryTheory.Functor J AddMonCat → Type (max u v)
The colimit of F ⋙ forget AddMon in the category of types.
In the following, we will construct an additive monoid structure on M.
abbrev MonCat.FilteredColimits.M.mk E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J MonCat) → (j : J) × ↑(F.obj j) → MonCat.FilteredColimits.M F
The canonical projection into the colimit, as a quotient type.
abbrev AddMonCat.FilteredColimits.M.mk E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J AddMonCat) → (j : J) × ↑(F.obj j) → AddMonCat.FilteredColimits.M F
The canonical projection into the colimit, as a quotient type.
theorem AddMonCat.FilteredColimits.M.mk_surjective E1 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J AddMonCat)
(m : AddMonCat.FilteredColimits.M F), ∃ j x, AddMonCat.FilteredColimits.M.mk F ⟨j, x⟩ = m
theorem MonCat.FilteredColimits.M.mk_surjective E1 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J MonCat)
(m : MonCat.FilteredColimits.M F), ∃ j x, MonCat.FilteredColimits.M.mk F ⟨j, x⟩ = m
theorem AddMonCat.FilteredColimits.M.mk_eq E0 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J AddMonCat)
(x y : (j : J) × ↑(F.obj j)),
(∃ k f g,
(CategoryTheory.ConcreteCategory.hom (F.map f)) x.snd = (CategoryTheory.ConcreteCategory.hom (F.map g)) y.snd) →
AddMonCat.FilteredColimits.M.mk F x = AddMonCat.FilteredColimits.M.mk F y
theorem MonCat.FilteredColimits.M.mk_eq E0 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J MonCat)
(x y : (j : J) × ↑(F.obj j)),
(∃ k f g,
(CategoryTheory.ConcreteCategory.hom (F.map f)) x.snd = (CategoryTheory.ConcreteCategory.hom (F.map g)) y.snd) →
MonCat.FilteredColimits.M.mk F x = MonCat.FilteredColimits.M.mk F y
theorem MonCat.FilteredColimits.M.map_mk E0 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J MonCat) {j k : J} (f : j ⟶ k)
(x : ↑(F.obj j)),
MonCat.FilteredColimits.M.mk F ⟨k, (CategoryTheory.ConcreteCategory.hom (F.map f)) x⟩ =
MonCat.FilteredColimits.M.mk F ⟨j, x⟩
theorem AddMonCat.FilteredColimits.M.map_mk E0 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J AddMonCat) {j k : J} (f : j ⟶ k)
(x : ↑(F.obj j)),
AddMonCat.FilteredColimits.M.mk F ⟨k, (CategoryTheory.ConcreteCategory.hom (F.map f)) x⟩ =
AddMonCat.FilteredColimits.M.mk F ⟨j, x⟩
instance MonCat.FilteredColimits.colimitOne E0 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J MonCat) → [CategoryTheory.IsFiltered J] → One (MonCat.FilteredColimits.M F)
As J is nonempty, we can pick an arbitrary object j₀ : J. We use this object to define the
"one" in the colimit as the equivalence class of ⟨j₀, 1 : F.obj j₀⟩.
instance AddMonCat.FilteredColimits.colimitZero E0 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J AddMonCat) → [CategoryTheory.IsFiltered J] → Zero (AddMonCat.FilteredColimits.M F)
As J is nonempty, we can pick an arbitrary object j₀ : J. We use this object to
define the "zero" in the colimit as the equivalence class of ⟨j₀, 0 : F.obj j₀⟩.
theorem MonCat.FilteredColimits.colimit_one_eq E0 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J MonCat)
[inst_1 : CategoryTheory.IsFiltered J] (j : J), 1 = MonCat.FilteredColimits.M.mk F ⟨j, 1⟩
The definition of the "one" in the colimit is independent of the chosen object of J.
In particular, this lemma allows us to "unfold" the definition of colimit_one at a custom chosen
object j.
theorem AddMonCat.FilteredColimits.colimit_zero_eq E0 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J AddMonCat)
[inst_1 : CategoryTheory.IsFiltered J] (j : J), 0 = AddMonCat.FilteredColimits.M.mk F ⟨j, 0⟩
The definition of the "zero" in the colimit is independent of the chosen object
of J. In particular, this lemma allows us to "unfold" the definition of colimit_zero at
a custom chosen object j.
def MonCat.FilteredColimits.colimitMulAux E0 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J MonCat) →
[CategoryTheory.IsFiltered J] → (j : J) × ↑(F.obj j) → (j : J) × ↑(F.obj j) → MonCat.FilteredColimits.M F
The "unlifted" version of multiplication in the colimit. To multiply two dependent pairs
⟨j₁, x⟩ and ⟨j₂, y⟩, we pass to a common successor of j₁ and j₂ (given by IsFiltered.max)
and multiply them there.
def AddMonCat.FilteredColimits.colimitAddAux E0 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J AddMonCat) →
[CategoryTheory.IsFiltered J] → (j : J) × ↑(F.obj j) → (j : J) × ↑(F.obj j) → AddMonCat.FilteredColimits.M F
The "unlifted" version of addition in the colimit. To add two dependent pairs
⟨j₁, x⟩ and ⟨j₂, y⟩, we pass to a common successor of j₁ and j₂
(given by IsFiltered.max) and add them there.
theorem MonCat.FilteredColimits.colimitMulAux_eq_of_rel_left E1 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J MonCat)
[inst_1 : CategoryTheory.IsFiltered J] {x x' y : (j : J) × ↑(F.obj j)},
CategoryTheory.Limits.Types.FilteredColimit.Rel (F.comp (CategoryTheory.forget MonCat)) x x' →
MonCat.FilteredColimits.colimitMulAux F x y = MonCat.FilteredColimits.colimitMulAux F x' y
Multiplication in the colimit is well-defined in the left argument.
theorem AddMonCat.FilteredColimits.colimitAddAux_eq_of_rel_left E1 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J AddMonCat)
[inst_1 : CategoryTheory.IsFiltered J] {x x' y : (j : J) × ↑(F.obj j)},
CategoryTheory.Limits.Types.FilteredColimit.Rel (F.comp (CategoryTheory.forget AddMonCat)) x x' →
AddMonCat.FilteredColimits.colimitAddAux F x y = AddMonCat.FilteredColimits.colimitAddAux F x' y
Addition in the colimit is well-defined in the left argument.
theorem MonCat.FilteredColimits.colimitMulAux_eq_of_rel_right E1 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J MonCat)
[inst_1 : CategoryTheory.IsFiltered J] {x y y' : (j : J) × ↑(F.obj j)},
CategoryTheory.Limits.Types.FilteredColimit.Rel (F.comp (CategoryTheory.forget MonCat)) y y' →
MonCat.FilteredColimits.colimitMulAux F x y = MonCat.FilteredColimits.colimitMulAux F x y'
Multiplication in the colimit is well-defined in the right argument.
theorem AddMonCat.FilteredColimits.colimitAddAux_eq_of_rel_right E1 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J AddMonCat)
[inst_1 : CategoryTheory.IsFiltered J] {x y y' : (j : J) × ↑(F.obj j)},
CategoryTheory.Limits.Types.FilteredColimit.Rel (F.comp (CategoryTheory.forget AddMonCat)) y y' →
AddMonCat.FilteredColimits.colimitAddAux F x y = AddMonCat.FilteredColimits.colimitAddAux F x y'
Addition in the colimit is well-defined in the right argument.
instance MonCat.FilteredColimits.colimitMul E0 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J MonCat) → [CategoryTheory.IsFiltered J] → Mul (MonCat.FilteredColimits.M F)
Multiplication in the colimit. See also colimitMulAux.
instance AddMonCat.FilteredColimits.colimitAdd E0 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J AddMonCat) → [CategoryTheory.IsFiltered J] → Add (AddMonCat.FilteredColimits.M F)
Addition in the colimit. See also colimitAddAux.
theorem MonCat.FilteredColimits.colimit_mul_mk_eq E0 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J MonCat)
[inst_1 : CategoryTheory.IsFiltered J] (x y : (j : J) × ↑(F.obj j)) (k : J) (f : x.fst ⟶ k) (g : y.fst ⟶ k),
MonCat.FilteredColimits.M.mk F x * MonCat.FilteredColimits.M.mk F y =
MonCat.FilteredColimits.M.mk F
⟨k, (CategoryTheory.ConcreteCategory.hom (F.map f)) x.snd * (CategoryTheory.ConcreteCategory.hom (F.map g)) y.snd⟩
Multiplication in the colimit is independent of the chosen "maximum" in the filtered category.
In particular, this lemma allows us to "unfold" the definition of the multiplication of x and y,
using a custom object k and morphisms f : x.1 ⟶ k and g : y.1 ⟶ k.
theorem AddMonCat.FilteredColimits.colimit_add_mk_eq E0 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J AddMonCat)
[inst_1 : CategoryTheory.IsFiltered J] (x y : (j : J) × ↑(F.obj j)) (k : J) (f : x.fst ⟶ k) (g : y.fst ⟶ k),
AddMonCat.FilteredColimits.M.mk F x + AddMonCat.FilteredColimits.M.mk F y =
AddMonCat.FilteredColimits.M.mk F
⟨k, (CategoryTheory.ConcreteCategory.hom (F.map f)) x.snd + (CategoryTheory.ConcreteCategory.hom (F.map g)) y.snd⟩
Addition in the colimit is independent of the chosen "maximum" in the filtered
category. In particular, this lemma allows us to "unfold" the definition of the addition of
x and y, using a custom object k and morphisms f : x.1 ⟶ k and g : y.1 ⟶ k.
theorem MonCat.FilteredColimits.colimit_mul_mk_eq' E1 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J MonCat)
[inst_1 : CategoryTheory.IsFiltered J] {j : J} (x y : ↑(F.obj j)),
MonCat.FilteredColimits.M.mk F ⟨j, x⟩ * MonCat.FilteredColimits.M.mk F ⟨j, y⟩ =
MonCat.FilteredColimits.M.mk F ⟨j, x * y⟩
theorem AddMonCat.FilteredColimits.colimit_add_mk_eq' E1 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J AddMonCat)
[inst_1 : CategoryTheory.IsFiltered J] {j : J} (x y : ↑(F.obj j)),
AddMonCat.FilteredColimits.M.mk F ⟨j, x⟩ + AddMonCat.FilteredColimits.M.mk F ⟨j, y⟩ =
AddMonCat.FilteredColimits.M.mk F ⟨j, x + y⟩
instance MonCat.FilteredColimits.colimitMulOneClass E0 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J MonCat) → [CategoryTheory.IsFiltered J] → MulOneClass (MonCat.FilteredColimits.M F)
instance AddMonCat.FilteredColimits.colimitAddZeroClass E0 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J AddMonCat) →
[CategoryTheory.IsFiltered J] → AddZeroClass (AddMonCat.FilteredColimits.M F)
instance MonCat.FilteredColimits.colimitMonoid E0 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J MonCat) → [CategoryTheory.IsFiltered J] → Monoid (MonCat.FilteredColimits.M F)
instance AddMonCat.FilteredColimits.colimitAddMonoid E0 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J AddMonCat) →
[CategoryTheory.IsFiltered J] → AddMonoid (AddMonCat.FilteredColimits.M F)
def MonCat.FilteredColimits.colimit E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] → CategoryTheory.Functor J MonCat → [CategoryTheory.IsFiltered J] → MonCat
The bundled monoid giving the filtered colimit of a diagram.
def AddMonCat.FilteredColimits.colimit E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
CategoryTheory.Functor J AddMonCat → [CategoryTheory.IsFiltered J] → AddMonCat
The bundled additive monoid giving the filtered colimit of a diagram.
def MonCat.FilteredColimits.coconeMorphism E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J MonCat) →
[inst_1 : CategoryTheory.IsFiltered J] → (j : J) → F.obj j ⟶ MonCat.FilteredColimits.colimit F
The monoid homomorphism from a given monoid in the diagram to the colimit monoid.
def AddMonCat.FilteredColimits.coconeMorphism E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J AddMonCat) →
[inst_1 : CategoryTheory.IsFiltered J] → (j : J) → F.obj j ⟶ AddMonCat.FilteredColimits.colimit F
The additive monoid homomorphism from a given additive monoid in the diagram to the colimit additive monoid.
theorem AddMonCat.FilteredColimits.cocone_naturality E0 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J AddMonCat)
[inst_1 : CategoryTheory.IsFiltered J] {j j' : J} (f : j ⟶ j'),
CategoryTheory.CategoryStruct.comp (F.map f) (AddMonCat.FilteredColimits.coconeMorphism F j') =
AddMonCat.FilteredColimits.coconeMorphism F j
theorem MonCat.FilteredColimits.cocone_naturality E0 #
∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J MonCat)
[inst_1 : CategoryTheory.IsFiltered J] {j j' : J} (f : j ⟶ j'),
CategoryTheory.CategoryStruct.comp (F.map f) (MonCat.FilteredColimits.coconeMorphism F j') =
MonCat.FilteredColimits.coconeMorphism F j
def MonCat.FilteredColimits.colimitCocone E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J MonCat) → [CategoryTheory.IsFiltered J] → CategoryTheory.Limits.Cocone F
The cocone over the proposed colimit monoid.
def AddMonCat.FilteredColimits.colimitCocone E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J AddMonCat) → [CategoryTheory.IsFiltered J] → CategoryTheory.Limits.Cocone F
The cocone over the proposed colimit additive monoid.
def MonCat.FilteredColimits.colimitDesc E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J MonCat) →
[inst_1 : CategoryTheory.IsFiltered J] →
(t : CategoryTheory.Limits.Cocone F) → MonCat.FilteredColimits.colimit F ⟶ t.pt
Given a cocone t of F, the induced monoid homomorphism from the colimit to the cocone point.
As a function, this is simply given by the induced map of the corresponding cocone in Type.
The only thing left to see is that it is a monoid homomorphism.
def AddMonCat.FilteredColimits.colimitDesc E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J AddMonCat) →
[inst_1 : CategoryTheory.IsFiltered J] →
(t : CategoryTheory.Limits.Cocone F) → AddMonCat.FilteredColimits.colimit F ⟶ t.pt
Given a cocone t of F, the induced additive monoid homomorphism from the colimit
to the cocone point. As a function, this is simply given by the induced map of the
corresponding cocone in Type. The only thing left to see is that it is an additive monoid
homomorphism.
def MonCat.FilteredColimits.colimitCoconeIsColimit E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J MonCat) →
[inst_1 : CategoryTheory.IsFiltered J] → CategoryTheory.Limits.IsColimit (MonCat.FilteredColimits.colimitCocone F)
The proposed colimit cocone is a colimit in MonCat.
def AddMonCat.FilteredColimits.colimitCoconeIsColimit E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
(F : CategoryTheory.Functor J AddMonCat) →
[inst_1 : CategoryTheory.IsFiltered J] →
CategoryTheory.Limits.IsColimit (AddMonCat.FilteredColimits.colimitCocone F)
The proposed colimit cocone is a colimit in AddMonCat.
instance AddMonCat.FilteredColimits.forget_preservesFilteredColimits E0 #
CategoryTheory.Limits.PreservesFilteredColimits (CategoryTheory.forget AddMonCat)
instance MonCat.FilteredColimits.forget_preservesFilteredColimits E0 #
CategoryTheory.Limits.PreservesFilteredColimits (CategoryTheory.forget MonCat)
abbrev CommMonCat.FilteredColimits.M E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] → [CategoryTheory.IsFiltered J] → CategoryTheory.Functor J CommMonCat → MonCat
The colimit of F ⋙ forget₂ CommMonCat MonCat in the category MonCat.
In the following, we will show that this has the structure of a commutative monoid.
abbrev AddCommMonCat.FilteredColimits.M E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
[CategoryTheory.IsFiltered J] → CategoryTheory.Functor J AddCommMonCat → AddMonCat
The colimit of F ⋙ forget₂ AddCommMonCat AddMonCat in the category AddMonCat. In the
following, we will show that this has the structure of a commutative additive monoid.
instance AddCommMonCat.FilteredColimits.colimitAddCommMonoid E0 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
[inst_1 : CategoryTheory.IsFiltered J] →
(F : CategoryTheory.Functor J AddCommMonCat) → AddCommMonoid ↑(AddCommMonCat.FilteredColimits.M F)
instance CommMonCat.FilteredColimits.colimitCommMonoid E0 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
[inst_1 : CategoryTheory.IsFiltered J] →
(F : CategoryTheory.Functor J CommMonCat) → CommMonoid ↑(CommMonCat.FilteredColimits.M F)
def CommMonCat.FilteredColimits.colimit E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
[CategoryTheory.IsFiltered J] → CategoryTheory.Functor J CommMonCat → CommMonCat
The bundled commutative monoid giving the filtered colimit of a diagram.
def AddCommMonCat.FilteredColimits.colimit E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
[CategoryTheory.IsFiltered J] → CategoryTheory.Functor J AddCommMonCat → AddCommMonCat
The bundled additive commutative monoid giving the filtered colimit of a diagram.
def CommMonCat.FilteredColimits.colimitCocone E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
[CategoryTheory.IsFiltered J] → (F : CategoryTheory.Functor J CommMonCat) → CategoryTheory.Limits.Cocone F
The cocone over the proposed colimit commutative monoid.
def AddCommMonCat.FilteredColimits.colimitCocone E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
[CategoryTheory.IsFiltered J] → (F : CategoryTheory.Functor J AddCommMonCat) → CategoryTheory.Limits.Cocone F
The cocone over the proposed colimit additive commutative monoid.
def CommMonCat.FilteredColimits.colimitCoconeIsColimit E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
[inst_1 : CategoryTheory.IsFiltered J] →
(F : CategoryTheory.Functor J CommMonCat) →
CategoryTheory.Limits.IsColimit (CommMonCat.FilteredColimits.colimitCocone F)
The proposed colimit cocone is a colimit in CommMonCat.
def AddCommMonCat.FilteredColimits.colimitCoconeIsColimit E1 #
{J : Type v} →
[inst : CategoryTheory.SmallCategory J] →
[inst_1 : CategoryTheory.IsFiltered J] →
(F : CategoryTheory.Functor J AddCommMonCat) →
CategoryTheory.Limits.IsColimit (AddCommMonCat.FilteredColimits.colimitCocone F)
The proposed colimit cocone is a colimit in AddCommMonCat.
instance AddCommMonCat.FilteredColimits.forget₂AddMonPreservesFilteredColimits E0 #
CategoryTheory.Limits.PreservesFilteredColimits (CategoryTheory.forget₂ AddCommMonCat AddMonCat)
instance CommMonCat.FilteredColimits.forget₂Mon_preservesFilteredColimits E0 #
CategoryTheory.Limits.PreservesFilteredColimits (CategoryTheory.forget₂ CommMonCat MonCat)
instance AddCommMonCat.FilteredColimits.forget_preservesFilteredColimits E0 #
CategoryTheory.Limits.PreservesFilteredColimits (CategoryTheory.forget AddCommMonCat)
instance CommMonCat.FilteredColimits.forget_preservesFilteredColimits E0 #
CategoryTheory.Limits.PreservesFilteredColimits (CategoryTheory.forget CommMonCat)