Documentation

Mathlib.CategoryTheory.Bicategory.Monad.Basic

Comonads in a bicategory #

We define comonads in a bicategory B as comonoid objects in an endomorphism monoidal category. We show that this is equivalent to oplax functors from the trivial bicategory to B. From this, we show that comonads in B form a bicategory.

TODO #

We can also define monads in a bicategory. This is not yet done as we don't have the bicategory structure on the set of lax functors at this point, which is needed to show that monads form a bicategory.

@[reducible, inline]
abbrev CategoryTheory.Bicategory.Comonad {B : Type u} [Bicategory B] {a : B} (t : a a) :

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.

Instances For
    @[reducible, inline]

    The counit 2-morphism of the comonad.

    Instances For
      @[reducible, inline]

      The comultiplication 2-morphism of the comonad.

      Instances For
        def CategoryTheory.Bicategory.termε :
        Lean.ParserDescr

        The counit 2-morphism of the comonad.

        Instances For

          The counit 2-morphism of the comonad.

          Instances For
            def CategoryTheory.Bicategory.termΔ :
            Lean.ParserDescr

            The comultiplication 2-morphism of the comonad.

            Instances For

              The comultiplication 2-morphism of the comonad.

              Instances For
                @[implicit_reducible]

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

                Instances For

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

                  Instances For
                    def CategoryTheory.Bicategory.OplaxTrans.ComonadBicat (B : Type u) [Bicategory B] :
                    Type (max (max (max u v) 0) w)

                    The bicategory of comonads in B.

                    Instances For
                      @[implicit_reducible]

                      The bicategory of comonads in B.

                      Instances For

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

                        Instances For

                          The object in B associated with the comonad.

                          Instances For

                            The morphism in B associated with the comonad.

                            Instances For

                              Construct a comonad as an object in ComonadBicat B.

                              Instances For