The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V24. Category theory

Mathlib.CategoryTheory.Bicategory.Monad.Basic

29 declarations. Mathlib docs · Source

abbrev CategoryTheory.Bicategory.Comonad E1 #

{B : Type u} → [inst : CategoryTheory.Bicategory B] → {a : B} → (a ⟶ a) → Type w

A comonad in a bicategory B is a 1-morphism t : a ⟶ a together with 2-morphisms Δ : t ⟶ t ≫ t and ε : t ⟶ 𝟙 a satisfying the comonad laws.

abbrev CategoryTheory.Bicategory.Comonad.counit E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a : B} → {t : a ⟶ a} → [CategoryTheory.Bicategory.Comonad t] → t ⟶ CategoryTheory.CategoryStruct.id a

The counit 2-morphism of the comonad.

abbrev CategoryTheory.Bicategory.Comonad.comul E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a : B} → {t : a ⟶ a} → [CategoryTheory.Bicategory.Comonad t] → t ⟶ CategoryTheory.CategoryStruct.comp t t

The comultiplication 2-morphism of the comonad.

def CategoryTheory.Bicategory.termε E1 #

Lean.ParserDescr

The counit 2-morphism of the comonad.

def CategoryTheory.Bicategory.«termε[_]» E1 #

Lean.ParserDescr

The counit 2-morphism of the comonad.

def CategoryTheory.Bicategory.termΔ E1 #

Lean.ParserDescr

The comultiplication 2-morphism of the comonad.

def CategoryTheory.Bicategory.«termΔ[_]» E1 #

Lean.ParserDescr

The comultiplication 2-morphism of the comonad.

theorem CategoryTheory.Bicategory.Comonad.counit_comul_assoc E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a : B} (t : a ⟶ a) [inst_1 : CategoryTheory.Bicategory.Comonad t]
  {Z : a ⟶ a} (h : CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.id a) t ⟶ Z),
  CategoryTheory.CategoryStruct.comp CategoryTheory.Bicategory.Comonad.comul
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Bicategory.whiskerRight CategoryTheory.Bicategory.Comonad.counit t) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor t).inv h

theorem CategoryTheory.Bicategory.Comonad.counit_comul E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a : B} (t : a ⟶ a) [inst_1 : CategoryTheory.Bicategory.Comonad t],
  CategoryTheory.CategoryStruct.comp CategoryTheory.Bicategory.Comonad.comul
      (CategoryTheory.Bicategory.whiskerRight CategoryTheory.Bicategory.Comonad.counit t) =
    (CategoryTheory.Bicategory.leftUnitor t).inv

theorem CategoryTheory.Bicategory.Comonad.comul_counit_assoc E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a : B} (t : a ⟶ a) [inst_1 : CategoryTheory.Bicategory.Comonad t]
  {Z : a ⟶ a} (h : CategoryTheory.CategoryStruct.comp t (CategoryTheory.CategoryStruct.id a) ⟶ Z),
  CategoryTheory.CategoryStruct.comp CategoryTheory.Bicategory.Comonad.comul
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Bicategory.whiskerLeft t CategoryTheory.Bicategory.Comonad.counit) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor t).inv h

theorem CategoryTheory.Bicategory.Comonad.comul_counit E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a : B} (t : a ⟶ a) [inst_1 : CategoryTheory.Bicategory.Comonad t],
  CategoryTheory.CategoryStruct.comp CategoryTheory.Bicategory.Comonad.comul
      (CategoryTheory.Bicategory.whiskerLeft t CategoryTheory.Bicategory.Comonad.counit) =
    (CategoryTheory.Bicategory.rightUnitor t).inv

theorem CategoryTheory.Bicategory.Comonad.comul_assoc E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a : B} (t : a ⟶ a) [inst_1 : CategoryTheory.Bicategory.Comonad t],
  CategoryTheory.CategoryStruct.comp CategoryTheory.Bicategory.Comonad.comul
      (CategoryTheory.Bicategory.whiskerLeft t CategoryTheory.Bicategory.Comonad.comul) =
    CategoryTheory.CategoryStruct.comp CategoryTheory.Bicategory.Comonad.comul
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Bicategory.whiskerRight CategoryTheory.Bicategory.Comonad.comul t)
        (CategoryTheory.Bicategory.associator t t t).hom)

theorem CategoryTheory.Bicategory.Comonad.comul_assoc_assoc E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a : B} (t : a ⟶ a) [inst_1 : CategoryTheory.Bicategory.Comonad t]
  {Z : a ⟶ a} (h : CategoryTheory.CategoryStruct.comp t (CategoryTheory.CategoryStruct.comp t t) ⟶ Z),
  CategoryTheory.CategoryStruct.comp CategoryTheory.Bicategory.Comonad.comul
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Bicategory.whiskerLeft t CategoryTheory.Bicategory.Comonad.comul) h) =
    CategoryTheory.CategoryStruct.comp CategoryTheory.Bicategory.Comonad.comul
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Bicategory.whiskerRight CategoryTheory.Bicategory.Comonad.comul t)
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.associator t t t).hom h))

theorem CategoryTheory.Bicategory.Comonad.comul_assoc_flip E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a : B} (t : a ⟶ a) [inst_1 : CategoryTheory.Bicategory.Comonad t],
  CategoryTheory.CategoryStruct.comp CategoryTheory.Bicategory.Comonad.comul
      (CategoryTheory.Bicategory.whiskerRight CategoryTheory.Bicategory.Comonad.comul t) =
    CategoryTheory.CategoryStruct.comp CategoryTheory.Bicategory.Comonad.comul
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Bicategory.whiskerLeft t CategoryTheory.Bicategory.Comonad.comul)
        (CategoryTheory.Bicategory.associator t t t).inv)

theorem CategoryTheory.Bicategory.Comonad.comul_assoc_flip_assoc E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a : B} (t : a ⟶ a) [inst_1 : CategoryTheory.Bicategory.Comonad t]
  {Z : a ⟶ a} (h : CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp t t) t ⟶ Z),
  CategoryTheory.CategoryStruct.comp CategoryTheory.Bicategory.Comonad.comul
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Bicategory.whiskerRight CategoryTheory.Bicategory.Comonad.comul t) h) =
    CategoryTheory.CategoryStruct.comp CategoryTheory.Bicategory.Comonad.comul
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Bicategory.whiskerLeft t CategoryTheory.Bicategory.Comonad.comul)
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.associator t t t).inv h))

theorem CategoryTheory.Bicategory.Comonad.counit_def E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a : B},
  CategoryTheory.ComonObj.counit = CategoryTheory.CategoryStruct.id (CategoryTheory.CategoryStruct.id a)

instance CategoryTheory.Bicategory.Comonad.instId E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a : B} → CategoryTheory.Bicategory.Comonad (CategoryTheory.CategoryStruct.id a)

def CategoryTheory.Bicategory.Comonad.ofOplaxFromUnit E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    (F : CategoryTheory.OplaxFunctor (CategoryTheory.LocallyDiscrete (CategoryTheory.Discrete Unit)) B) →
      CategoryTheory.Bicategory.Comonad (F.map (CategoryTheory.CategoryStruct.id { as := { as := () } }))

An oplax functor from the trivial bicategory to B defines a comonad in B.

def CategoryTheory.Bicategory.Comonad.toOplax E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a : B} →
      (t : a ⟶ a) →
        [CategoryTheory.Bicategory.Comonad t] →
          CategoryTheory.OplaxFunctor (CategoryTheory.LocallyDiscrete (CategoryTheory.Discrete Unit)) B

A comonad in B defines an oplax functor from the trivial bicategory to B.

def CategoryTheory.Bicategory.OplaxTrans.ComonadBicat E1 #

(B : Type u) → [CategoryTheory.Bicategory B] → Type (max (max (max (max 0 u) v) 0) w)

The bicategory of comonads in B.

def CategoryTheory.Bicategory.OplaxTrans.ComonadBicat.inst E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] → CategoryTheory.Bicategory (CategoryTheory.Bicategory.OplaxTrans.ComonadBicat B)

The bicategory of comonads in B.

def CategoryTheory.Bicategory.OplaxTrans.ComonadBicat.toOplax E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    CategoryTheory.Bicategory.OplaxTrans.ComonadBicat B →
      CategoryTheory.OplaxFunctor (CategoryTheory.LocallyDiscrete (CategoryTheory.Discrete PUnit.{1})) B

The oplax functor from the trivial bicategory to B associated with the comonad.

def CategoryTheory.Bicategory.OplaxTrans.ComonadBicat.obj E1 #

{B : Type u} → [inst : CategoryTheory.Bicategory B] → CategoryTheory.Bicategory.OplaxTrans.ComonadBicat B → B

The object in B associated with the comonad.

def CategoryTheory.Bicategory.OplaxTrans.ComonadBicat.hom E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] → (m : CategoryTheory.Bicategory.OplaxTrans.ComonadBicat B) → m.obj ⟶ m.obj

The morphism in B associated with the comonad.

instance CategoryTheory.Bicategory.OplaxTrans.ComonadBicat.instComonadHom E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    (m : CategoryTheory.Bicategory.OplaxTrans.ComonadBicat B) → CategoryTheory.Bicategory.Comonad m.hom

def CategoryTheory.Bicategory.OplaxTrans.ComonadBicat.mkOfComonad E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a : B} → (t : a ⟶ a) → [CategoryTheory.Bicategory.Comonad t] → CategoryTheory.Bicategory.OplaxTrans.ComonadBicat B

Construct a comonad as an object in ComonadBicat B.

theorem CategoryTheory.Bicategory.OplaxTrans.ComonadBicat.mkOfComonad_hom E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a : B} (t : a ⟶ a) [inst_1 : CategoryTheory.Bicategory.Comonad t],
  (CategoryTheory.Bicategory.OplaxTrans.ComonadBicat.mkOfComonad t).hom = t

theorem CategoryTheory.Bicategory.OplaxTrans.ComonadBicat.mkOfComonad_counit E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a : B} (t : a ⟶ a) [inst_1 : CategoryTheory.Bicategory.Comonad t],
  CategoryTheory.Bicategory.Comonad.counit = CategoryTheory.Bicategory.Comonad.counit

theorem CategoryTheory.Bicategory.OplaxTrans.ComonadBicat.mkOfComonad_comul E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a : B} (t : a ⟶ a) [inst_1 : CategoryTheory.Bicategory.Comonad t],
  CategoryTheory.Bicategory.Comonad.comul = CategoryTheory.Bicategory.Comonad.comul