Cospan Bisimulation#
(draft)
One of the starting points of coalgebra was Aczel’s discovery, see also (Rutten, 2000), that span-bisimulation, also known as Aczel-Mendler bisimulation, can capture category theoretically the combinatorial notion of bisimulation.
From an axiomatic point of view, one drawback of span-bisimulations is that, in order to for span-bisimulations to capture the coalgebraic notion of equivalence (aka behavioural equivalence), the coalgebra-functor needs to weakly preserve pullbacks (=preserve weak pullbacks).
In their proof of the final coalgebra, in order to not depend on this assumption, Aczel and Mendler work with quotients and cospans instead of spans. What they call precongruences can be considered as a precursor to the notion of cospan-bisimulation, defined below.
One disadvantage of cospans in Set is that they do not allow us to capture general relations. This can be circumvented by working poset enriched.
Recall that
for every relation \(R\subseteq X\times Y\) the collage \(\mathbf R\) is the poset on the disjoint union \(X+Y\) encoding \(R\) (with \(x\le_{\bf R} y \ \Leftrightarrow \ xRy\)),
for every functor \(T:Set\to Set\) there is a preordification \(\overline T:Pre\to Pre\). [1]
Definition (cospan-bisimulation): Let \(T:Set\to Set\) be a functor. A relation \(R\subseteq X\times Y\) is a cospan bisimulation between coalgebras \(X\stackrel\xi\longrightarrow TX\) and \(Y\stackrel\nu\longrightarrow TY\) if the unique arrow \(\mathbf R\to\overline T \mathbf R\) that makes the diagram
commute is order preserving. As we will see now, this notion does also work well in case of set-functors that do not preserve weak pullbacks. But let us first start with the familiar case of Kripke frames.
Kripke models#
For a starter we can illustrate what happens in the case of Kripke frames, that is, \(T=\mathcal P\) is the powerset functor.
Proposition (Balan et al, 2015): The posetification of \(\mathcal P\) is the convex powerset functor \(\mathcal{\overline P}\).
By definition, then, \(R\) is a cospan-bisimulation iff
which, by definition[2] of the order on \(\mathcal{\overline P}\mathbf R\), gives us the usual definition of a bisimulation on Kripke frames (to emphasise the coalgebraic nature of Kripke frames we write \(x'\in\xi(x)\) instead of \(x\to x'\) and \(y'\in\nu(y)\) instead of \(y\to y'\)).
Corollary: \(R\) is a cospan-bisimulation between Kripke frames \(\xi:X\to TX\) and \(\nu:Y\to TY\) iff \(xRy\) implies
Monotone Neighbourhood Coalgebras#
In this subsection we look at coalgebras for the functor \(Up\mathcal P:Set\to Set\) and the associated notion of cospan-bisimulation induced by its posetification \(\overline{Up\mathcal P}\). For cospan-(bi)simulations for related functors \(Pos\to Pos\) see the section on Montone Neighbourhood Coalgebras.
Proposition (Corollary 5 in Dahlqvist and Kurz, 2017): The preordification of the monotone neighbourhood functor \(T=Up\mathcal P\) is \(\mathcal D \mathcal U\) ordered by
for all \(A,B\in \mathcal D\mathcal UX\).
The proof relies on the following lemma, see also Proposition 8.25 in (Hansen, 2003).
Lemma: Let \(R\subseteq X\times Y\) with projections \(\pi_1:R\to X\), \(\pi_2:R\to Y\) onto. There is a \(C\in TR\) s.t.
if and only if
Remark: “only if” does not need the \(\pi_i\) to be onto.
Proof of the Proposition: Recall that \(Tf={\uparrow}f[-]\). By definition (see Sec 3.3 in Dahlqvist and Kurz, 2017), the posetification has \(A\le B\) if there is \(C\) such that \({\uparrow}\pi_1[C]=A\) and \({\uparrow}\pi_2[C]=B\), which is equivalent to the left-hand side of the lemma. On the other hand, the definition of \(A\le B\) in the proposition is equivalent to the right-hand side of the lemma. Finally, notice that the \(\pi_i\) are onto because the order is reflexive (and \(T\) preserves surjections).
We have shown that cospan-bisimulations capture Pauly’s notion of bisimulation for neighbourhood frames:
Corollary: \(R\) is a cospan-bisimulation between monotone neighbourhood frames \(\xi:X\to TX\) and \(\nu:Y\to TY\) iff \(xRy\) implies
Neighbourhood Coalgebras#
In this subsection we take \(TX=2^{2^{X}}\).
Proposition (Theorem 8 in Dahlqvist and Kurz, 2017): The posetification of the neighbourhood functor \(2^{2^-}\) maps a poset \(X\) to the \(2^{2^{CX}}\) where \(C\) takes connected components. (CHECK whether this is also true for the preordification.)
Recall that, given \(R\subseteq X\times Y\), we have [3]
Corollary: \(R\) is a cospan-bisimulation between neighbourhood frames \(\xi:X\to TX\) and \(\nu:Y\to TY\) iff \(xRy\) implies
Proof: Let \(D:Set\to Pos\) be the discrete functor (apologies for using the same letter for the downset-functor). \(R\) is a cospan-bisimulation if the middle arrow in the diagram below is order-preserving.
\(\mathbf R\to \overline T\mathbf R\) is order-preserving iff \(xRy\) implies that \(\overline Ti (D\xi(x))=\overline Tj(D\nu(y))\), that is,
where \(C\) takes connected components. “\(\subseteq\)” can be written as
which is equivalent to
and similarly for “\(\supseteq\)”.
Probabilistic bisimulation#
Probabilistic bisimulation also provides an example of cospan bisimulations. If \(\mathcal D\) is the functor of finitely supported probability distributions, then the posetification \(\overline{\mathcal D}\) is given as follows. Let \(p,q\) be two probability distributions in \(\mathcal DX\). Then define \(p\sqsubseteq q\) if \(p[U]\le q[U]\) for all upsets \(U\) of \(X\).
More Examples?#
… other, less well-known, examples?
Results#
We will get the expected results. For \(T:Set\to Set\), cospan bisimulation
agrees with span bisimulation if \(T\) preserves weak pullbacks
captures behavioural equivalence without assumptions on \(T\)
coalgebraic logic is invariant under cospan-bisimulations
…
Could there be theorems linking cospan-bisimulations to cospan-simulations?
What are conditions on \(T:Set\to Set\) so that there is a forward version \(T^\rightarrow:Pos\to Pos\) and a backward version \(T^\leftarrow:Pos\to Pos\)? Can we say sth general here or must this be done on an adhoc basis for particlar \(T\)?
…
References#
Balan, Kurz and Velebil: Positive Fragments of Coalgebraic Logics. LMCS 2015.
Dahlqvist and Kurz: The Positivication of Coalgebraic Logics. CALCO 2017. (Section 3.3 and 3.4)
Hansen: Monotonic modal logics. 2003. (Def 4.10, Def 8.20, Prop 8.25)
Hansen, Kupke and Pacuit: Neighbourhood Structures: Bisimilarity and Basic Model Theory. LMCS 2009. (Def 3.5, Thm 3.12)
Pauly: Logic for Social Software. 2001. (Thm 6.5)
Rutten, Turi: , 1993. In particular, Def 5.4 of an ordered F-bisimulation.
Worrell: Coinduction for recursive data types: partial orders, metric spaces and \(\Omega\)-categories, CMCS 2000. (Def 5.2)
Further Reading#
Aczel:
Aczel, Mendler:
Hansen, Kupke and Pacuit: Neighbourhood Structures: Bisimilarity and Basic Model Theory. LMCS 2009.
Lawvere:
Rutten: