Skip to content

Commit

Permalink
add prose
Browse files Browse the repository at this point in the history
  • Loading branch information
4e554c4c committed Feb 7, 2025
1 parent b54f099 commit 46e945a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/Cat/Bi/Diagram/Monad.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,15 @@ mutual compatibility of the multiplication and unit with the unitors.

# Monads as lax functors

[[Monads in a bicategory|monad in]] $\cS$ are equivalent to
[[lax functors]] from the [[terminal bicategory]] to $\cS$.
Suppose that we have a [[lax functor]] $P$ from the [[terminal bicategory]] to $\cB$.
Then $P$ identifies a single object $a=P_0(*)$ as well as a morphism $M:a\to a$
given by $P\_1(*)$. The composition operation is a natural transformation
\[
P\_1(*)\otimes P\_1(*)\To P\_1(*\otimes *)
\]
i.e. a natural transformation $\mu :M\otimes M\To M$. Finally, the unitor gives
$\eta:\id\To M$.
Altogether, this is exactly the same data as an object $a\in\cB$ and a monad on $a$.

```agda
lax-functor→monad : Σ[ a ∈ B.Ob ] Monad a Lax-functor ⊤Bicat B
Expand Down Expand Up @@ -129,7 +136,7 @@ mutual compatibility of the multiplication and unit with the unitors.
module monad where
M = P₁.F₀ _
μ = γ→ _ _
--η = unitor
η = unitor
μ-assoc =
μ ∘ M ▶ μ ≡⟨ (Hom.intror $ ap (λ nt nt ._=>_.η (M , M , M)) associator.invl) ⟩
(μ ∘ M ▶ μ) ∘ (α→ M M M ∘ α← M M M) ≡⟨ cat! (Hom a a) ⟩
Expand Down

0 comments on commit 46e945a

Please sign in to comment.