We have a natural identification
Let $X$ be a set.
We have a natural identification
A comonad 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
making the diagrams
For each $x,y\in X$, if $x\sim _{R}y$, then there exists some $k\in X$ such that $x\sim _{R}k$ and $k\sim _{R}y$.
For each $x,y\in X$, if $x\sim _{R}y$, then $x=y$.
The second condition implies that $R\subset \Delta _{X}$, so $R$ must be a subset of $X$. Taking $k=y$ in the first condition above then shows it to be trivially satisfied. Conversely, any subset $U$ of $X$ satisfies $U\subset \Delta _{X}$, defining a comonad as above.
Let $f\colon A\to B$ be a function.
The density comonad $\operatorname {\mathrm{Lan}}_{f}(f)\colon B\mathrel {\rightarrow \kern -9.5pt\mathrlap {|}\kern 6pt}B$ is given by
The dual density comonad $\operatorname {\mathrm{Lift}}_{f^{\dagger }}(f^{\dagger })\colon A\mathrel {\rightarrow \kern -9.5pt\mathrlap {|}\kern 6pt}A$ is given by