$\newcommand{\sq}{\mathbin{\square}}$The usual composition $S\diamond R$ of two relations $R\colon A⇸B$ and $S\colon B⇸C$ is defined as follows:
- For each $(a,c)\in A\times C$, we declare $a\sim_{S\diamond R}c$ if there exists $b\in B$ such that $a\sim_{R}b$ and $b\sim_{S}c$.
Now, consider the relation $S\sq R$ defined as follows:
- For each $(a,c)\in A\times C$, we declare $a\sim_{S\sq R}c$ if for each $b\in B$, we have $a\sim_{R}b$ and $b\sim_{S}c$.
Intuitively, the composition $\sq$ is quite weird, although its categorical origin is at least natural: categorically, $\diamond$ is a 0-categorical analogue of the coend composition of profunctors, where we view relations as morphisms $R\colon A\times B\to\{\mathtt{true},\mathtt{false}\}$ and then have $$(S\diamond R)^{c}_{a}=\int^{b\in B}S^{c}_{b}\times R^{b}_{a},$$ whereas we have $$(S\sq R)^{c}_{a}=\int_{b\in B}S^{c}_{b}\times R^{b}_{a},$$ where:
- The product $\times$ on $\{\mathtt{true},\mathtt{false}\}:=\{\mathtt{t},\mathtt{f}\}$ is given by logical conjunction;
- The coend $\int^{b\in B}$ is given by $\vee_{b\in B}$, the join in the poset $\{\mathtt{t},\mathtt{f}\}$ equipped with logical implication $\implies$.
- The end $\int_{b\in B}$ is given by $\wedge_{b\in B}$, the meet in $(\{\mathtt{t},\mathtt{f}\},\mathord{\implies})$.
- Has $\sq$ found any natural use in practice?
- What kinds of nice properties does the 2-category $\mathsf{Rel}^{\sq}$ given by sets, relations and inclusions with the composition $\sq$ has?
For instance, while $\mathsf{Rel}^{\diamond}$ has right Kan lifts and right Kan extensions, $\mathsf{Rel}^{\sq}$ has left ones. Other properties would include whether $\mathsf{Rel}^{\sq}$ is co/complete (1- or 2-categorically), what the adjunctions in $\mathsf{Rel}^{\sq}$ are, etc.
- Are there any references which study $\sq$ or $\mathsf{Rel}^{\sq}$?
- (This is slightly outside of the scope of the question, but I'm also interested in profunctors with end composition (and the properties $\mathsf{Prof}$ enjoys with such a composition). I'm sure these have been considered before, and likely the results for those are adaptable to $\mathsf{Rel}^{\sq}$)