Divergence-Preserving Branching Bisimilarity
Abstract
This note considers the notion of divergence-preserving branching bisimilarity. It briefly surveys results pertaining to the notion that have been obtained in the past one-and-a-half decade, discusses its role in the study of expressiveness of process calculi, and concludes with some suggestions for future work.
1 Introduction
Branching bisimilarity was proposed by van Glabbeek and Weijland as an upgrade of (strong) bisimilarity that facilitates abstraction from internal activity [17]. It preserves the branching structure of processes more strictly than Milner’s observation equivalence [22], which, according to van Glabbeek and Weijland, makes it, e.g., better suited for verification purposes. A case in point is the argument by Graf and Sifakis that there is no temporal logic with an eventually operator that is adequate for observation equivalence in the sense that two processes satisfy the same formulas if, and only if, they are observationally equivalent [18]. The crux is that observation equivalence insufficiently takes into account the intermediate states of an internal computation. Indeed, branching bisimilarity requires a stronger correspondence between the intermediate states of an internal computation.
Branching bisimilarity is also not compatible with a temporal logic that includes an eventually operator, because it abstracts to some extent from divergence (i.e., infinite internal computations). Thus, a further upgrade is necessary, removing the abstraction from divergence. De Nicola and Vaandrager show that divergence-sensitive branching bisimilarity coincides with the equivalence induced by satisfaction of formulas of the temporal logic CTL [7]. (CTL∗ [9] is an expressive state-based logic that includes both linear time and branching time modalities; CTL refers to the variant of CTL∗ obtained by omitting the next-state modality, which is incompatible with abstraction from internal activity.)
Divergence-sensitive branching bisimilarity still has one drawback when it comes to verification: it identifies deadlock and livelock and, as an immediate consequence, is not compatible with parallel composition. It turns out that the notion of divergence-preserving branching bisimilarity111For stylistic reasons we prefer the term “divergence-preserving branching bisimilarity” over “branching bisimilarity with explicit divergence”, which is used in earlier articles on the topic., which is the topic of this note, has all the right properties: it is the coarsest equivalence that is compatible with parallel composition, preserves CTL formulas, and distinguishes deadlock and livelock [16]. Moreover, on finite processes divergence-preserving branching bisimilarity can be decided efficiently [19].
In [17], a coloured-trace characterisation of divergence-preserving branching bisimilarity is provided. In [14], relational and modal characterisations of the notion are given. For some time it was simply assumed that these three characterisations of the notion coincide, but this was only proved in [15]. To establish that the relational characterisation coincides with the coloured-trace and modal characterisations, it needs to be proved that the relational characterisation yields an equivalence relation that satisfies the so-called stuttering property, and this is surprisingly involved. A similar phenomenon is observed in the proof that a rooted version of divergence-preserving branching bisimilarity is compatible with the recursion construct [13]. Due to the divergence condition, Milner’s ingenious argument in [24] that strong bisimilarity is compatible with recursion required several novel twists.
In this note we shall give a survey of results pertaining to divergence-preserving branching bisimilarity that were obtained in the past one-and-a-half decade. in Section 2 we shall present and discuss a relational characterisation of the notion. In Section 3 we comment on modal characterisations of the notion, and discuss the relationship with the temporal logic CTL. In Section 4 we briefly discuss to what extent the notion is compatible with familiar process algebraic operators. In Section 5, we explain how it plays a role in expressiveness results. In Section 6 we arrive at some conclusions and mention some ideas for future work.
2 Relational characterisation
We presuppose a set of actions including a special element , and we presuppose a labelled transition system with labels from , i.e., is a set of states and is a transition relation on . Let and ; we write for and we abbreviate the statement ‘ or ( and )’ by . We denote by the transitive closure of the binary relation , and by its reflexive-transitive closure. A process is given by a state in a labelled transition system, and encompasses all the states and transitions reachable from .
Definition 1.
A symmetric binary relation on is a branching bisimulation if it satisfies the following condition for all and :
-
(T)
if and for some state , then there exist states and such that , and .
We say that a branching bisimulation preserves (internal) divergence if it satisfies the following condition for all :
-
(D)
if and there is an infinite sequence of states such that , and for all , then there is a state such that , and for some .
States and are divergence-preserving branching bisimilar (notation: ) if there is a divergence-preserving branching bisimulation such that .
The divergence condition (D) in the definition above is slightly weaker than the divergence condition used in the relation characterisation of divergence-preserving branching bisimilarity presented in [14], which actually requires that admits an infinite sequence of -transitions and every state on this sequence is related to some state on the infinite sequence of -transitions from . Nevertheless, as is established in [15], the notion of divergence-preserving branching bisimilarity defined here is equivalent to the one defined in [14]. In [15] it is also proved that is an equivalence, that the relation is itself a divergence-preserving branching bisimulation, and that it satisfies the so-called stuttering property: if , and , then for all .
Let us say that a state is divergent if there exists an infinite sequence of states such that and for all . It is a straightforward consequence of the definition that divergence-preserving branching bisimilarity relates divergent states to divergent states only, i.e., that we have the following proposition.
Proposition 2.
If , then is divergent only if is divergent.
Proof.
Suppose that and is divergent. Then there exists an infinite sequence of states such that and for all . We inductively construct an infinite sequence of states such that , , together with a mapping such that for all ;
-
•
We define and ; note that .
-
•
Suppose that the sequence and the mapping have been defined up to . Then, in particular, . We distinguish two cases:
If for all , then by (D) there exists such that and for some ; we can then define .
Otherwise, there exists some such that and . Since it follows by (T) that there exist and such that , and . Clearly, we have that , so and we can define .
From the existence of an infinite sequence of states such that and it follows that is divergent, as was to be shown. ∎
As the following example illustrates, however, a symmetric binary relation on relating states that satisfies (T) of Definition 1 and relates divergent states to divergent states only is not necessarily included in a divergence-preserving branching bisimulation relation. In other words, a symmetric binary relation on that satisfies (T) and only relates divergent states to divergent states may relate states that are not divergence-preserving branching bisimilar.
Example 3.
Consider the transition system depicted in Figure 1. The symmetric closure of the relation satisfies (T) and it relates divergent states to divergent states only. It does not, however, satisfy (D), for and defining for all we get an infinite sequence of states such that and for all , while there does not exist a such that and for some . Note that admits a complete path at which is continuously (weakly) enabled, whereas does not admit such a complete path.
3 Modal characterisations
As shown in [14], to get an (action-based) modal logic that is adequate for branching bisimilarity one could take an adaptation of standard Hennessy-Milner logic replacing, for all actions in the usual unary may and must modalities and by a binary just-before modality . A state satisfies the formula if, and only if, there exist states and such that , holds in and holds in . To get an adequate logic for divergence-preserving branching bisimilarity, it suffices to add a unary divergence modality such that satisfies if, and only if, there exists an infinite sequence of states such that , and holds in for all .
Let be the class of formulas generated by the following grammar:
We then have that states and are divergence-proving branching bisimilar if, and only if, and satisfy exactly the same formula in [15]. We may restrict the cardinality of in conjunctions to the cardinality of the set of states .
Example 4.
Consider again the transition system depicted in Figure 1. States and are not divergence-preserving branching bisimilar. The formula (in which abbreviates ) expresses the existence of a divergence on which the action is continuously enabled. It is satisfied by state , but not by .
There is also an intuitive correspondence between branching bisimilarity and the state-based temporal logic CTL (CTL∗ without the next-state modality) [8]. The standard semantics of CTL is, however, with respect to Kripke structures, in which states rather than transitions have labels and the transition relation is assumed to be total. To formalise the correspondence, De Nicola and Vaandrager devised a framework of translations between labelled transition systems and Kripke structures [7]. The main idea of the translation from labelled transition systems to Kripke structures is that
-
1.
every transition () is replaced by two transitions and , where is a fresh state that is labelled with ;
-
2.
every transition gives rise to a transition ; and
-
3.
for every state without outgoing transitions (i.e., every deadlock state of the labelled transition system) a transition is added to satisfy the totality requirement of Kripke structures.
Example 5.
If we apply the translation sketched above to the labelled transition system depicted in Figure 1, then we get the Kripke structure depicted in Figure 2. Note that by clause 3 of the translation state gets a transition to itself, whereas it is a deadlock state in the orginal transition system. Clearly, there is no CTL formula that distinguishes, e.g., between and , although in the labelled transition system depicted in Figure 1 these states are not divergence-preserving branching bisimilar.
De Nicola and Vaandrager propose a notion of divergence-sensitive branching bisimilarity on finite LTSs and establish that two states in an LTS are divergence-sensitive branching bisimilar if, and only if, in the Kripke resulting from the translation sketched above they satisfy the same CTL formulas. Divergence-sensitive branching bisimilarity coincides with divergence-preserving branching bisimilarity on deadlock-free LTSs. In fact, the only difference between divergence-sensitive branching bisimilarity and divergence-preserving branching bisimilarity is that the latter distinguishes between deadlock and livelock states, whereas the former does not.
To preserve the distinction between deadlock and livelock, a modified translation is proposed in [16], obtained from the translation sketched above by replacing clause 3 by
-
3′.
add a fresh state labelled with , and for every state without outgoing transitions a transition .
Example 6.
Two states in a labelled transition system are divergence-preserving branching bisimilar if they satisfy the same CTL formulas in the Kripke structure that results from the modified transition [16].
4 Congruence
An important reason to prefer divergence-preserving branching bisimilarity over divergence-sensitive branching bisimilarity is that the former is compatible with parallel composition, whereas the latter is not.
Example 7.
Consider the transition system in Figure 4. States and represent the parallel compositions of states and , and of states and , respectively. Similarly, states and represent the parallel compositions of states and , and of states and , respectively. Recall that divergence-sensitive branching bisimilarity does not distinguish deadlock (state ) and livelock (state ), so we have that and are divergence-sensitive branching bisimilar. States and are, however, not divergence-sensitive branching bisimilar. Note that has a complete path on which is continuously enabled, whereas does not have such a complete path, and so these two states do not satisfy the same CTL formulas.
Divergence-preserving branching bisimilarity is the coarsest equivalence included in divergence-sensitive branching bisimilarity that is compatible with parallel composition [16]. Hence, it is also the coarsest congruence for parallel composition relating only processes that satisfy the same CTL formulas.
It is well-known that branching bisimilarity is not compatible with non-deterministic choice, and that the coarsest behavioural equivalence that is included in branching bisimilarity and that is compatible with non-deterministic choice, is obtained by adding a so-called root condition. The same holds for divergence-preserving branching bisimilarity.
Definition 8.
Let be a divergence-preserving branching bisimulation. We say that satisfies the root condition for and if, whenever
-
(R1)
if for some state , then there exists a state such that and .
-
(R2)
if for some state , then there exists a state such that and .
States and are rooted divergence-preserving branching bisimilar if there is a divergence-preserving branching bisimulation relation satisfying the root condition for and such that that .
In [12], formats for transition system specifications are presented that guarantee that divergence-preserving branching bisimilarity and its rooted variant are compatible with the operators defined by the transition system specification. These formats relax the requirements of the branching bisimulation and rooted branching bisimulation formats of [11]. The relaxation of the formats is meaningful: the process-algebraic operations for priority [2] and sequencing [6, 5, 4], with which (rooted) branching bisimilarity is not compatible, are in the rooted divergence-preserving branching bisimulation format. So, in contrast to its divergence-insensitive variant, rooted divergence-preserving branching bisimilarity is compatible with priority and sequencing.
The structural operational rule for the recursion operator , which was considered in the context of observation equivalence by Milner [23] and in the context of divergence-sensitive variants of observation equivalence by Lohrey, D’Argenio and Hermanns [20], is not in the format for rooted divergence-preserving branching bisimilarity. Nevertheless, rooted divergence preserving branching bisimilarity is compatible also with this operator [13]. The proof of this fact requires an adaption of the up-to technique used by Milner in his argument that (strong) bisimilarity is compatible with recursion [24].
5 Expressiveness of process calculi
Phillips showed that abstraction from divergence can be exploited to prove that every recursively enumerable transition system is branching bisimilar to a boundedly branching computable transition system [26]222Phillips actually claimed the correspondence modulo observation equivalence, but it is easy to see that his proof also works modulo branching bisimilarity.. In contrast, there exist recursively enumerable transition systems that are not divergence-preserving branching bisimilar to a computable transition system (cf., e.g., Example 3.6 in [3]). Hence, in a theory that aims to integrate computability and concurrency, divergence preservation is important.
In [3], interactivity is added to Turing machines by associating an action with every computation step. This so-called reactive Turing machine has a transition system semantics and can be studied from a concurrency-theoretic perspective. A transition system is called executable if it is behaviourally equivalent to the transition system associated with a reactive Turing machine. The notion of executability provides a way to characterise the absolute expressiveness of a process calculus. If every transition system that can be specified in the calculus is executable, then the calculus is said to be executable. Conversely, if every executable transition system can be specified in the calculus, then the calculus is said to be behaviourally complete.
A calculus with constants for deadlock and successful termination, unary action prefixes, binary operations for non-deterministic choice, sequencing and ACP-style parallel composition, iteration and nesting is both executable and behaviourally complete up to divergence-preserving branching bisimilarity [4]. The -calculus is also behaviourally complete up to divergence-preserving branching bisimilarity. Since it allows the specification of transition systems with unbounded branching, it is, however, not executable up to divergence-preserving branching bisimilarity; it is nominally orbit-finitely executable up to the divergence-insensitive variant of branching bisimilarity [21].
The aforementioned results illustrate the role of divergence in the consideration of the absolute expressiveness of process calculi. Preservation of divergence is also widely accepted as an important criterion when comparing the relative expressiveness of process calculi [25].
6 Conclusions
We have discussed ther relational and modal characterisations of divergence-preserving branching bisimilarity, commented on its compatibility with respect to process algebraic operations and on its role in the study of the absolute expressiveness. We conclude by briefly mentioning some directions for future work.
Sound and complete axiomatisations for the divergence-sensitive spectrum of observation congruence for basic CCS with recursion are provided in [20]. The congruence result in [13] can serve as a stepping stone for providing similar sound and complete axiomatisations for divergence-preserving branching bisimilarity. Then, it would also be interesting to consider the axiomatisation of divergence-preserving branching bisimilarity for full CCS with recursion, although that would first require a non-trivial extension of the congruence result.
Ad hoc up-to techniques for divergence-preserving branching bisimilarity have already been used, e.g., in the congruence proof in [13] and in proof that the -calculus is behaviourally complete [21]. Recently, several more generic up-to techniques for branching bisimilarity were proved sound [10]. An interesting direction for future work would be to consider extending those up-to techniques for divergence-preserving branching bisimilarity too.
References
- [1]
- [2] J. C. M. Baeten, J. A. Bergstra & J. W. Klop (1986): Syntax and defining equations for an interrupt mechanism in process algebra. Fundamenta Informaticae 9(2), pp. 127–167.
- [3] J. C. M. Baeten, B. Luttik & P. van Tilburg (2013): Reactive Turing machines. Inf. Comput. 231, pp. 143–166, 10.1016/j.ic.2013.08.010.
- [4] J. C. M. Baeten, B. Luttik & F. Yang (2017): Sequential Composition in the Presence of Intermediate Termination (Extended Abstract). In K. Peters & S. Tini, editors: Proceedings Combined 24th International Workshop on Expressiveness in Concurrency and 14th Workshop on Structural Operational Semantics, EXPRESS/SOS 2017, Berlin, Germany, 4th September 2017, EPTCS 255, pp. 1–17, 10.4204/EPTCS.255.1.
- [5] A. Belder, B. Luttik & J. C. M. Baeten (2019): Sequencing and Intermediate Acceptance: Axiomatisation and Decidability of Bisimilarity. In M. Roggenbach & A. Sokolova, editors: 8th Conference on Algebra and Coalgebra in Computer Science, CALCO 2019, June 3-6, 2019, London, United Kingdom, LIPIcs 139, Schloss Dagstuhl - Leibniz-Zentrum für Informatik, pp. 11:1–11:22, 10.4230/LIPIcs.CALCO.2019.11.
- [6] B. Bloom (1994): When is Partial Trace Equivalence Adequate? Formal Asp. Comput. 6(3), pp. 317–338, 10.1007/BF01215409.
- [7] R. De Nicola & F. W. Vaandrager (1995): Three Logics for Branching Bisimulation. Journal of the ACM 42(2), pp. 458–487, 10.1145/201019.201032.
- [8] E. A. Emerson & E. M. Clarke (1982): Using Branching Time Temporal Logic to Synthesize Synchronization Skeletons. Science of Computer Programming 2(3), pp. 241–266, 10.1016/0167-6423(83)90017-5.
- [9] E. A. Emerson & J.Y. Halpern (1986): ‘Sometimes’ and ‘Not Never’ revisited: on branching time versus linear time temporal logic. Journal of the ACM 33(1), pp. 151–178, 10.1145/4904.4999.
- [10] R. Erkens, J. Rot & B. Luttik (2020): Up-to Techniques for Branching Bisimilarity. In A. Chatzigeorgiou, R. Dondi, H. Herodotou, C. A. Kapoutsis, Y. Manolopoulos, G. A. Papadopoulos & F. Sikora, editors: SOFSEM 2020: Theory and Practice of Computer Science - 46th International Conference on Current Trends in Theory and Practice of Informatics, SOFSEM 2020, Limassol, Cyprus, January 20-24, 2020, Proceedings, Lecture Notes in Computer Science 12011, Springer, pp. 285–297, 10.1007/978-3-030-38919-2_24.
- [11] W. J. Fokkink, R. J. van Glabbeek & P. de Wind (2012): Divide and congruence: From decomposition of modal formulas to preservation of branching and -bisimilarity. Inf. Comput. 214, pp. 59–85, 10.1016/j.ic.2011.10.011.
- [12] W. J. Fokkink, Glabbeek R. J. van & B. Luttik (2019): Divide and congruence III: From decomposition of modal formulas to preservation of stability and divergence. Inf. Comput. 268, 10.1016/j.ic.2019.104435.
- [13] R. J. van Glabbeek, B. Luttik & L. Spaninks (2020): Rooted Divergence-Preserving Branching Bisimilarity is a Congruence. CoRR abs/1801.01180. Available at http://arxiv.org/abs/1801.01180. Submitted.
- [14] R. J. van Glabbeek (1993): The Linear Time – Branching Time Spectrum II; The semantics of sequential systems with silent moves (extended abstract). In E. Best, editor: Proceedings 4th International Conference on Concurrency Theory, CONCUR’93, Hildesheim, Germany, August 1993, LNCS 715, Springer, pp. 66–81, 10.1007/3-540-57208-2_6.
- [15] R. J. van Glabbeek, B. Luttik & N. Trčka (2009): Branching Bisimilarity with Explicit Divergence. Fundamenta Informaticae 93(4), pp. 371–392, 10.3233/FI-2009-109.
- [16] R. J. van Glabbeek, B. Luttik & N. Trčka (2009): Computation Tree Logic with Deadlock Detection. Logical Methods in Computer Science 5(4), 10.2168/LMCS-5(4:5)2009.
- [17] R. J. van Glabbeek & W. P. Weijland (1996): Branching time and abstraction in bisimulation semantics. Journal of the ACM 43(3), pp. 555–600, 10.1145/233551.233556.
- [18] S. Graf & J. Sifakis (1987): Readiness Semantics for Regular Processes with Silent Actions. In T. Ottmann, editor: Automata, Languages and Programming, 14th International Colloquium, ICALP87, Karlsruhe, Germany, July 13-17, 1987, Proceedings, Lecture Notes in Computer Science 267, Springer, pp. 115–125, 10.1007/3-540-18088-5_10.
- [19] J. F. Groote, D. N. Jansen, J. J. A. Keiren & A. J. Wijs (2017): An O(m log n) Algorithm for Computing Stuttering Equivalence and Branching Bisimulation. ACM Trans. Comput. Logic 18(2), 10.1145/3060140.
- [20] M. Lohrey, P. R. D’Argenio & H. Hermanns (2005): Axiomatising divergence. Inf. Comput. 203(2), pp. 115–144, 10.1016/j.ic.2005.05.007.
- [21] B. Luttik & F. Yang (2020): The -Calculus is Behaviourally Complete and Orbit-Finitely Executable. CoRR abs/1410.4512v8. Available at http://arxiv.org/abs/1410.4512.
- [22] R. Milner (1980): A Calculus of Communicating Systems. Lecture Notes in Computer Science 92, Springer, 10.1007/3-540-10235-3.
- [23] R. Milner (1989): A Complete Axiomatisation for Observational Congruence of Finite-State Behaviors. Inf. Comput. 81(2), pp. 227–247, 10.1016/0890-5401(89)90070-9.
- [24] R. Milner (1990): Operational and Algebraic Semantics of Concurrent Processes. In Jan van Leeuwen, editor: Handbook of Theoretical Computer Science (Vol. B), MIT Press, Cambridge, MA, USA, pp. 1201–1242. Available at http://dl.acm.org/citation.cfm?id=114891.114910.
- [25] K. Peters (2019): Comparing Process Calculi Using Encodings. In J. A. Pérez & J. Rot, editors: Proceedings Combined 26th International Workshop on Expressiveness in Concurrency and 16th Workshop on Structural Operational Semantics, EXPRESS/SOS 2019, Amsterdam, The Netherlands, 26th August 2019, EPTCS 300, pp. 19–38, 10.4204/EPTCS.300.2.
- [26] I. Phillips (1993): A Note on Expressiveness of Process Algebra. In G. L. Burn, S. J. Gay & M. Ryan, editors: Proceedings of the First Imperial College Department of Computing Workshop on Theory and Formal Methods, Isle of Thorns Conference Centre, Chelwood Gate, Sussex, UK, 29-31 March 1993, Workshops in Computing, Springer, pp. 260–264.