arXiv:2609.37726cs.LOSep 2026

Manuscript Offprint

arXiv:2609.37726

Modelling Shared-Space Coordination in mCRL2: a Bach-to-mCRL2 Translation Framework

Corentin Reuther, Jean-Marie Jacquet

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Corentin Reuther Jean-Marie Jacquet

Nadi Research Institute

Faculty of Computer Science, University of Namur

Belgium

{corentin.reuther, jean-marie.jacquet}@unamur.be

Although significant research has focused on the theory and implementation of data-based coordination languages, the critical aspect of their automated verification using model-checking techniques remains underexplored, which is essential for ensuring reliability and correctness in distributed systems. Existing tools, such as Anemone, provide a solid foundation for reachability-based verification of Bach programs. While they effectively analyze properties expressed in terms of state attainability, extending support to more expressive temporal specifications—such as liveness properties or invariants over shared space contents—remains an open opportunity. Such extensions are important to capture comprehensive system behaviors, for instance, ensuring that “a request is always matched by a response” or that “no message is silently lost”. Addressing this limitation, we propose an automated translation from Bach to mCRL2, which explicitly represents the shared space, thereby enabling the use of mCRL2’s μ\mu-calculus model checker to verify complex properties beyond simple reachability. Complementing this translation, we introduce a systematic method to analyze the shared space in mCRL2 concerning data reachability, by directly expressing properties over the shared space’s contents in the μ\mu-calculus, thus providing a clearer framework for verification. This approach enables a novel verification process that combines action-based properties with state-based properties over the shared space contents, a largely unexplored area in current coordination-language verification approaches, offering a new dimension of analysis.

1 Introduction and Related Work

In the era of distributed computing, systems confront unprecedented challenges in managing interactions between autonomous components. These systems, where human and technical elements coexist, often exhibit emergent behaviors that can lead to failures if not properly coordinated. For instance, in a microservices setup, a single faulty interaction can cascade into system-wide service disruptions, as illustrated by a major Amazon Web Services outage in October 2025 [17]. In light of this complexity, it appears imperative to use robust coordination models that separate computation and interaction, in order to reason and verify the behavior of systems in a formal way.

The concept of coordination languages originated with Gelernter and Carriero, who introduced Linda in 1985 [9] as a generative communication model based on a shared tuple space — a logical blackboard where processes deposit and retrieve data without direct coupling [4, 8].

Bach [1, 5, 12, 13], developed at the University of Namur, is directly inspired by Linda and the algebra of communicating processes (ACP) [3] to propose a modern coordination language. It combines ACP operators (sequential :, parallel ||, non-deterministic choice + operators) with Linda-like primitives (tell, get, ask, nask) operating on a shared space.

While Bach excels at modeling such interactions, verifying its behavioral properties, such as fairness or absence of losses, has proved challenging with the built-in model checker of Anemone [12], a veri-

L. Edixhoven, S. Fowler, R. Neykova & V. K. I Pun (Eds.): 19th Interaction and Concurrency Experience (ICE 2026) EPTCS 453, 2026, pp. 59–78, doi:10.4204/EPTCS.453.5

© C. Reuther & J.-M. Jacquet This work is licensed under the Creative Commons Attribution License.

Modelling Shared-Space Coordination in mCRL2

fication platform developed for Bach. Writing complex temporal properties in this environment turned out to be cumbersome, as the tool primarily focuses on state reachability within the shared space.

This limitation prompted the exploration of mCRL2 [10], a process-algebra-based tool that employs the μ\mu-calculus for rigorous verification and is equipped with state-of-the-art model checking techniques. While Groote and Mousavi [10] provide a comprehensive framework for modelling and verifying channel-based communicating systems, Bach processes communicate through a shared space whose contents must themselves be subject to verification — an aspect not addressed by standard mCRL2 methodology.

The question of formally verifying coordination languages based on shared spaces is not new, but remains largely open in its most expressive forms. De Nicola et al. [7] tackle a related challenge with STOcKLAIM, a stochastic extension of KLAIM [6]: they model action durations as exponential distributions, translate systems into Continuous Time Markov Chains, and verify quantitative properties such as the probability of reaching a given state within a time bound. This is a genuinely different angle — their concern is how fast things happen, while ours is whether they happen at all. More fundamentally, their atomic propositions track process locations, not data presence in a shared space. To our best knowledge, directly reasoning over the contents of a shared space as part of a temporal verification framework remains unexplored — and this is precisely the gap we begin to explore.

This paper develops an automated tool for this translation, available as an artefact in [18]. The tool makes the shared space explicit as a parallel process in mCRL2 and encodes Bach primitives as actions, enabling mCRL2 to effectively model Linda-like coordination structures. A key contribution of this paper is extending mCRL2's μ\mu-calculus proofs to incorporate shared content alongside actions, enabling content-aware verification (e.g., querying the presence of specific elements or data values in the shared space) beyond standard action-based checks. More precisely, the objectives of our work are twofold: on the one hand, to describe the Bach-to-mCRL2 translation, highlighting how observable behavior is preserved and the shared space is explicitly modelled; and, on the other hand, to lay the groundwork for verification of temporal properties, combining action-based and state-based reasoning, preparing for future μ\mu-calculus proofs over shared space contents.

The remainder of this paper is organized in five sections. Section 2 introduces the Bach coordination language, its primitives, composition operators, and trace semantics. Section 3 presents the Bach-to-mCRL2 translation, including the explicit encoding of the shared space, the mapping of primitives to actions, and the trace correspondence theorem. Section 4 introduces the verification framework, recalling the temporal operators of Anemone and the μ\mu-calculus fragment of mCRL2, and presenting the systematic translation of Bach temporal properties into μ\mu-calculus formulas, including the content-aware approach based on Blackboard instrumentation. Section 5 illustrates the approach with a synchronous Load Balancer case study, exploring how the translation enables the verification of coordination properties combining action-based and content-aware reasoning. Finally, Section 6 concludes with a discussion of the results and perspectives for future work.