The areas / V24. Category theory
Mathlib.CategoryTheory.Monad.Products
39 declarations. Mathlib docs · Source
theorem CategoryTheory.coprodMonad.congr_simp E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X X_1 : C),
X = X_1 →
∀ [inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C],
CategoryTheory.coprodMonad X = CategoryTheory.coprodMonad X_1
theorem CategoryTheory.Limits.coprod.congr_simp E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X X_1 : C) (e_X : X = X_1) (Y Y_1 : C) (e_Y : Y = Y_1)
[inst_1 : CategoryTheory.Limits.HasBinaryCoproduct X Y], (X ⨿ Y) = (X_1 ⨿ Y_1)
theorem CategoryTheory.Comonad.Coalgebra.isoMk.congr_simp E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {T : CategoryTheory.Comonad C} {A B : T.Coalgebra}
(h h_1 : A.A ≅ B.A) (e_h : h = h_1)
(w : CategoryTheory.CategoryStruct.comp A.a (T.map h.hom) = CategoryTheory.CategoryStruct.comp h.hom B.a),
CategoryTheory.Comonad.Coalgebra.isoMk h w = CategoryTheory.Comonad.Coalgebra.isoMk h_1 ⋯
theorem CategoryTheory.Limits.prod.congr_simp E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X X_1 : C) (e_X : X = X_1) (Y Y_1 : C) (e_Y : Y = Y_1)
[inst_1 : CategoryTheory.Limits.HasBinaryProduct X Y], (X ⨯ Y) = (X_1 ⨯ Y_1)
theorem CategoryTheory.prodComonad.congr_simp E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X X_1 : C),
X = X_1 →
∀ [inst_1 : CategoryTheory.Limits.HasBinaryProducts C],
CategoryTheory.prodComonad X = CategoryTheory.prodComonad X_1
def CategoryTheory.prodComonad E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] → C → [CategoryTheory.Limits.HasBinaryProducts C] → CategoryTheory.Comonad C
X ⨯ - has a comonad structure. This is sometimes called the writer comonad.
theorem CategoryTheory.prodComonad_ε_app E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryProducts C]
(x : C), (CategoryTheory.prodComonad X).ε.app x = CategoryTheory.Limits.prod.snd
theorem CategoryTheory.prodComonad_δ_app E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryProducts C]
(x : C),
(CategoryTheory.prodComonad X).δ.app x =
CategoryTheory.Limits.prod.lift CategoryTheory.Limits.prod.fst (CategoryTheory.CategoryStruct.id (X ⨯ x))
theorem CategoryTheory.prodComonad_obj E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryProducts C]
(Y : C), (CategoryTheory.prodComonad X).obj Y = (X ⨯ Y)
theorem CategoryTheory.prodComonad_map E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryProducts C]
{x x_1 : C} (g : x ⟶ x_1),
(CategoryTheory.prodComonad X).map g = CategoryTheory.Limits.prod.map (CategoryTheory.CategoryStruct.id X) g
def CategoryTheory.coalgebraToOver E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
(X : C) →
[inst_1 : CategoryTheory.Limits.HasBinaryProducts C] →
CategoryTheory.Functor (CategoryTheory.prodComonad X).Coalgebra (CategoryTheory.Over X)
The forward direction of the equivalence from coalgebras for the product comonad to the over category.
theorem CategoryTheory.coalgebraToOver_obj E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryProducts C]
(A : (CategoryTheory.prodComonad X).Coalgebra),
(CategoryTheory.coalgebraToOver X).obj A =
CategoryTheory.Over.mk (CategoryTheory.CategoryStruct.comp A.a CategoryTheory.Limits.prod.fst)
theorem CategoryTheory.coalgebraToOver_map E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryProducts C]
{X_1 Y : (CategoryTheory.prodComonad X).Coalgebra} (f : X_1 ⟶ Y),
(CategoryTheory.coalgebraToOver X).map f = CategoryTheory.Over.homMk f.f ⋯
def CategoryTheory.overToCoalgebra E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
(X : C) →
[inst_1 : CategoryTheory.Limits.HasBinaryProducts C] →
CategoryTheory.Functor (CategoryTheory.Over X) (CategoryTheory.prodComonad X).Coalgebra
The backward direction of the equivalence from coalgebras for the product comonad to the over category.
theorem CategoryTheory.overToCoalgebra_map_f E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryProducts C]
{X_1 Y : CategoryTheory.Over X} (g : X_1 ⟶ Y),
((CategoryTheory.overToCoalgebra X).map g).f = CategoryTheory.Over.Hom.left g
theorem CategoryTheory.overToCoalgebra_obj_A E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryProducts C]
(f : CategoryTheory.Over X), ((CategoryTheory.overToCoalgebra X).obj f).A = f.left
theorem CategoryTheory.overToCoalgebra_obj_a E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryProducts C]
(f : CategoryTheory.Over X),
((CategoryTheory.overToCoalgebra X).obj f).a =
CategoryTheory.Limits.prod.lift f.hom (CategoryTheory.CategoryStruct.id f.left)
def CategoryTheory.coalgebraEquivOver E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
(X : C) →
[inst_1 : CategoryTheory.Limits.HasBinaryProducts C] →
(CategoryTheory.prodComonad X).Coalgebra ≌ CategoryTheory.Over X
The equivalence from coalgebras for the product comonad to the over category.
theorem CategoryTheory.coalgebraEquivOver_functor E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryProducts C],
(CategoryTheory.coalgebraEquivOver X).functor = CategoryTheory.coalgebraToOver X
theorem CategoryTheory.coalgebraEquivOver_counitIso E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryProducts C],
(CategoryTheory.coalgebraEquivOver X).counitIso =
CategoryTheory.NatIso.ofComponents
(fun f ↦
CategoryTheory.Over.isoMk
(CategoryTheory.Iso.refl
(((CategoryTheory.overToCoalgebra X).comp (CategoryTheory.coalgebraToOver X)).obj f).left)
⋯)
⋯
theorem CategoryTheory.coalgebraEquivOver_inverse E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryProducts C],
(CategoryTheory.coalgebraEquivOver X).inverse = CategoryTheory.overToCoalgebra X
theorem CategoryTheory.coalgebraEquivOver_unitIso E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryProducts C],
(CategoryTheory.coalgebraEquivOver X).unitIso =
CategoryTheory.NatIso.ofComponents
(fun A ↦
CategoryTheory.Comonad.Coalgebra.isoMk
(CategoryTheory.Iso.refl ((CategoryTheory.Functor.id (CategoryTheory.prodComonad X).Coalgebra).obj A).A) ⋯)
⋯
def CategoryTheory.coprodMonad E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] → C → [CategoryTheory.Limits.HasBinaryCoproducts C] → CategoryTheory.Monad C
X ⨿ - has a monad structure. This is sometimes called the either monad.
theorem CategoryTheory.coprodMonad_μ_app E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C]
(x : C),
(CategoryTheory.coprodMonad X).μ.app x =
CategoryTheory.Limits.coprod.desc CategoryTheory.Limits.coprod.inl (CategoryTheory.CategoryStruct.id (X ⨿ x))
theorem CategoryTheory.coprodMonad_η_app E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C]
(x : C), (CategoryTheory.coprodMonad X).η.app x = CategoryTheory.Limits.coprod.inr
theorem CategoryTheory.coprodMonad_map E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C]
{x x_1 : C} (g : x ⟶ x_1),
(CategoryTheory.coprodMonad X).map g = CategoryTheory.Limits.coprod.map (CategoryTheory.CategoryStruct.id X) g
theorem CategoryTheory.coprodMonad_obj E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C]
(Y : C), (CategoryTheory.coprodMonad X).obj Y = (X ⨿ Y)
def CategoryTheory.algebraToUnder E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
(X : C) →
[inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C] →
CategoryTheory.Functor (CategoryTheory.coprodMonad X).Algebra (CategoryTheory.Under X)
The forward direction of the equivalence from algebras for the coproduct monad to the under category.
theorem CategoryTheory.algebraToUnder_obj E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C]
(A : (CategoryTheory.coprodMonad X).Algebra),
(CategoryTheory.algebraToUnder X).obj A =
CategoryTheory.Under.mk (CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.coprod.inl A.a)
theorem CategoryTheory.algebraToUnder_map E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C]
{X_1 Y : (CategoryTheory.coprodMonad X).Algebra} (f : X_1 ⟶ Y),
(CategoryTheory.algebraToUnder X).map f = CategoryTheory.Under.homMk f.f ⋯
def CategoryTheory.underToAlgebra E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
(X : C) →
[inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C] →
CategoryTheory.Functor (CategoryTheory.Under X) (CategoryTheory.coprodMonad X).Algebra
The backward direction of the equivalence from algebras for the coproduct monad to the under category.
theorem CategoryTheory.underToAlgebra_obj_A E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C]
(f : CategoryTheory.Under X), ((CategoryTheory.underToAlgebra X).obj f).A = f.right
theorem CategoryTheory.underToAlgebra_obj_a E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C]
(f : CategoryTheory.Under X),
((CategoryTheory.underToAlgebra X).obj f).a =
CategoryTheory.Limits.coprod.desc f.hom (CategoryTheory.CategoryStruct.id f.right)
theorem CategoryTheory.underToAlgebra_map_f E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C]
{X_1 Y : CategoryTheory.Under X} (g : X_1 ⟶ Y),
((CategoryTheory.underToAlgebra X).map g).f = CategoryTheory.Under.Hom.right g
def CategoryTheory.algebraEquivUnder E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
(X : C) →
[inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C] →
(CategoryTheory.coprodMonad X).Algebra ≌ CategoryTheory.Under X
The equivalence from algebras for the coproduct monad to the under category.
theorem CategoryTheory.algebraEquivUnder_inverse E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C],
(CategoryTheory.algebraEquivUnder X).inverse = CategoryTheory.underToAlgebra X
theorem CategoryTheory.algebraEquivUnder_unitIso E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C],
(CategoryTheory.algebraEquivUnder X).unitIso =
CategoryTheory.NatIso.ofComponents
(fun A ↦
CategoryTheory.Monad.Algebra.isoMk
(CategoryTheory.Iso.refl ((CategoryTheory.Functor.id (CategoryTheory.coprodMonad X).Algebra).obj A).A) ⋯)
⋯
theorem CategoryTheory.algebraEquivUnder_counitIso E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C],
(CategoryTheory.algebraEquivUnder X).counitIso =
CategoryTheory.NatIso.ofComponents
(fun f ↦
CategoryTheory.Under.isoMk
(CategoryTheory.Iso.refl
(((CategoryTheory.underToAlgebra X).comp (CategoryTheory.algebraToUnder X)).obj f).right)
⋯)
⋯
theorem CategoryTheory.algebraEquivUnder_functor E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C) [inst_1 : CategoryTheory.Limits.HasBinaryCoproducts C],
(CategoryTheory.algebraEquivUnder X).functor = CategoryTheory.algebraToUnder X