8.5.4 Internal Monads

    Let $X$ be a set.

    We have a natural identification1

    \[ \left\{ \begin{gathered} \text{Monads in}\\ \text{$\boldsymbol {\mathsf{Rel}}$ on $X$} \end{gathered} \right\} \cong \left\{ \text{Preorders on $X$}\right\} . \]


    1. 1See also Unresolved reference for an extension of this correspondence to “relative monads in $\boldsymbol {\mathsf{Rel}}$”.

    A monad in $\boldsymbol {\mathsf{Rel}}$ on $X$ consists of a relation $R\colon X\mathrel {\rightarrow \kern -9.5pt\mathrlap {|}\kern 6pt}X$ together with maps

    \begin{align*} \mu _{R} & \colon R\mathbin {\diamond }R \subset R,\\ \eta _{R} & \colon \Delta _{X} \subset R \end{align*}

    making the diagrams

    commute. However, since all morphisms involved are inclusions, the commutativity of the above diagrams is automatic (Chapter 11: Categories, Item 4 of Proposition 11.2.7.1.2), and hence all that is left is the data of the two maps $\mu _{R}$ and $\eta _{R}$, which correspond respectively to the following conditions:

    1. 1.

      For each $x,z\in X$, if there exists some $y\in Y$ such that $x\sim _{R}y$ and $y\sim _{R}z$, then $x\sim _{R}z$.

    2. 2.

      For each $x\in X$, we have $x\sim _{R}x$.

    These are exactly the requirements for $R$ to be a preorder (Unresolved reference). Conversely, any preorder $\preceq $ gives rise to a pair of maps $\mu _{\preceq }$ and $\eta _{\preceq }$, forming a monad on $X$.

    Let $R\colon A\mathrel {\rightarrow \kern -9.5pt\mathrlap {|}\kern 6pt}B$ be a relation.

  • 1.

    The codensity monad $\operatorname {\mathrm{Ran}}_{R}(R)\colon B\mathrel {\rightarrow \kern -9.5pt\mathrlap {|}\kern 6pt}B$ is given by

    for each $b\in B$. Thus, it corresponds to the preorder

    \[ \mathord {\preceq _{\operatorname {\mathrm{Ran}}_{R}(R)}}\colon B\times B\to \{ \mathsf{t},\mathsf{f}\} \]

    on $B$ obtained by declaring $b\preceq _{\operatorname {\mathrm{Ran}}_{R}(R)}b'$ iff the following equivalent conditions are satisfied:

    1. (a)

      For each $a\in A$, if $a\sim _{R}b$, then $a\sim _{R}b'$.

    2. (b)

      We have $R^{-1}(b)\subset R^{-1}(b')$.

  • 2.

    The dual codensity monad $\operatorname {\mathrm{Rift}}_{R}(R)\colon A\mathrel {\rightarrow \kern -9.5pt\mathrlap {|}\kern 6pt}A$ is given by

    for each $a\in A$. Thus, it corresponds to the preorder

    \[ \mathord {\preceq _{\operatorname {\mathrm{Rift}}_{R}(R)}}\colon A\times A\to \{ \mathsf{t},\mathsf{f}\} \]

    on $A$ obtained by declaring $a\preceq _{\operatorname {\mathrm{Rift}}_{R}(R)}a'$ iff the following equivalent conditions are satisfied:

    1. (a)

      For each $a\in A$, if $a\sim _{R}b$, then $a'\sim _{R}b$.

    2. (b)

      We have $R(a')\subset R(a)$.


Noticed something off, or have any comments? Feel free to reach out!


You can also use the contact form below: