We want to understand internal right Kan extensions in $\boldsymbol {\mathsf{Rel}}$, which look like this:
that is right adjoint to the precomposition by $R$ functor
Let $A$, $B$, and $X$ be sets and let $R\colon A\mathrel {\rightarrow \kern -9.5pt\mathrlap {|}\kern 6pt}B$ and $F\colon A\mathrel {\rightarrow \kern -9.5pt\mathrlap {|}\kern 6pt}X$ be relations.
We want to understand internal right Kan extensions in $\boldsymbol {\mathsf{Rel}}$, which look like this:
that is right adjoint to the precomposition by $R$ functor
The internal right Kan extension of $F$ along $R$ is the relation $\operatorname {\mathrm{Ran}}_{R}(F)$ described as follows:
Viewing relations from $B$ to $X$ as subsets of $B\times X$, we have
Viewing relations as functions $B\times X\to \{ \mathsf{true},\mathsf{false}\} $, we have
where the meet $\bigwedge $ is taken in the poset $(\{ \mathsf{true},\mathsf{false}\} ,\preceq )$ of Chapter 3: Sets, Definition 3.2.2.1.3.
Viewing relations as functions $B\to \mathcal{P}(X)$, we have
for each $V\in \mathcal{P}(B)$, so we have
for each $b\in B$.
We have
is right adjoint to the precomposition functor $-\mathbin {\diamond }R$, being thus the right Kan extension along $R$. Here we have used the following results, respectively (i.e. for each $\cong $ sign):
This finishes the proof.
Here are some examples of internal right Kan extensions of relations.
Orthogonal Complements. Let $A=B=X=\mathcal{V}$ be an inner product space, and let $R=F=\mathord {\perp }$ be the orthogonality relation, so that we have
for each $u,v\in \mathcal{V}$, where
is the orthogonal complement of $v$. The right Kan extension $\operatorname {\mathrm{Ran}}_{R}(F)$ is then given by
the double orthogonal complement. In particular:
If $\mathcal{V}$ is finite-dimensional, then $[\operatorname {\mathrm{Ran}}_{R}(F)](v)=\mathrm{Span}(v)$.
If $\mathcal{V}$ is a Hilbert space, then $[\operatorname {\mathrm{Ran}}_{R}(F)](v)=\overline{\mathrm{Span}(v)}$.
Galois Connections and Closure Operators. Let:
$B=X=(P,\preceq _{P})$ and $A=(Q,\preceq _{Q})$ be posets;
$(f,g)$ be a Galois connection (adjunction) between $P$ and $Q$;
$R,F\colon Q\mathrel {\rightrightarrows \kern -9.5pt\mathrlap {|}\kern 6pt}P$ be the relations defined by
for each $q\in Q$.
We have
the down set of $g(f(p))$. In other words, $\operatorname {\mathrm{Ran}}_{R}(F)$ is the closure operator on $P$ associated with the Galois connection $(f,g)$.
Let $A$, $B$, $C$ and $X$ be sets and let $R\colon A\mathrel {\rightarrow \kern -9.5pt\mathrlap {|}\kern 6pt}B$, $S\colon B\mathrel {\rightarrow \kern -9.5pt\mathrlap {|}\kern 6pt}C$, and $F\colon A\mathrel {\rightarrow \kern -9.5pt\mathrlap {|}\kern 6pt}X$ be relations.
Functoriality. The assignments $R,F,(R,F)\mapsto \operatorname {\mathrm{Ran}}_{R}(F)$ define functors
In other words, given relations
Interaction With Composition. We have
and an equality
Interaction With Converses. We have
Interaction With Inverse Images. We have
for each $x\in X$.
for each $b\in B$, so we therefore have $\operatorname {\mathrm{Ran}}_{R_{2}}(F_{1})\subset \operatorname {\mathrm{Ran}}_{R_{1}}(F_{2})$.
where we have used Proposition 8.5.18.1.2 and Item 4.
We have $b\in [\operatorname {\mathrm{Ran}}_{R}(F)]^{-1}(x)$ iff, for each $a\in R^{-1}(b)$, we have $b\in F(a)$.
This holds iff, for each $a\in R^{-1}(b)$, we have $a\in F^{-1}(b)$.
This holds iff $R^{-1}(b)\subset F^{-1}(b)$.
This finishes the proof.