8.3.4 The $2$-Category of Relations

The $2$-category of relations is the locally posetal $2$-category $\boldsymbol {\mathsf{Rel}}$ where

  • Objects. The objects of $\boldsymbol {\mathsf{Rel}}$ are sets.

  • $\mathbf{Hom}$-Objects. For each $A,B\in \operatorname {\mathrm{Obj}}\webleft (\mathsf{Sets}\webright )$, we have

    \begin{align*} \operatorname {\mathrm{Hom}}_{\boldsymbol {\mathsf{Rel}}}\webleft (A,B\webright ) & \mathrel {\smash {\overset {\mathclap {\scriptscriptstyle \text{def}}}=}}\mathbf{Rel}\webleft (A,B\webright )\\ & \mathrel {\smash {\overset {\mathclap {\scriptscriptstyle \text{def}}}=}}\webleft (\mathrm{Rel}\webleft (A,B\webright ),\subset \webright ).\end{align*}
  • Identities. For each $A\in \operatorname {\mathrm{Obj}}\webleft (\boldsymbol {\mathsf{Rel}}\webright )$, the unit map

    \[ \mathbb {1}^{\boldsymbol {\mathsf{Rel}}}_{A} \colon \mathrm{pt}\to \mathbf{Rel}\webleft (A,A\webright ) \]

    of $\boldsymbol {\mathsf{Rel}}$ at $A$ is defined by

    \[ \operatorname {\mathrm{id}}^{\boldsymbol {\mathsf{Rel}}}_{A} \mathrel {\smash {\overset {\mathclap {\scriptscriptstyle \text{def}}}=}}\chi _{A}\webleft (-_{1},-_{2}\webright ), \]

    where $\chi _{A}\webleft (-_{1},-_{2}\webright )$ is the characteristic relation of $A$ of Chapter 4: Constructions With Sets, Unresolved reference of Unresolved reference.

  • Composition. For each $A,B,C\in \operatorname {\mathrm{Obj}}\webleft (\boldsymbol {\mathsf{Rel}}\webright )$, the composition map1

    \[ \circ ^{\boldsymbol {\mathsf{Rel}}}_{A,B,C}\colon \mathbf{Rel}\webleft (B,C\webright )\times \mathbf{Rel}\webleft (A,B\webright )\to \mathbf{Rel}\webleft (A,C\webright ) \]

    of $\boldsymbol {\mathsf{Rel}}$ at $\webleft (A,B,C\webright )$ is defined by

    \[ S\mathbin {{\circ }^{\boldsymbol {\mathsf{Rel}}}_{A,B,C}}R \mathrel {\smash {\overset {\mathclap {\scriptscriptstyle \text{def}}}=}}S\mathbin {\diamond }R \]

    for each $\webleft (S,R\webright )\in \boldsymbol {\mathsf{Rel}}\webleft (B,C\webright )\times \boldsymbol {\mathsf{Rel}}\webleft (A,B\webright )$, where $S\mathbin {\diamond }R$ is the composition of $S$ and $R$ of Chapter 9: Constructions With Relations, Unresolved reference.


  1. 1Note that this is indeed a morphism of posets: given relations $R_{1},R_{2}\in \mathbf{Rel}\webleft (A,B\webright )$ and $S_{1},S_{2}\in \mathbf{Rel}\webleft (B,C\webright )$ such that
    \begin{align*} R_{1} & \subset R_{2},\\ S_{1} & \subset S_{2}, \end{align*}
    we have also $S_{1}\mathbin {\diamond }R_{1}\subset S_{2}\mathbin {\diamond }R_{2}$.


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


You can also use the contact form below: