Global Winning Conditions in Synthesis of Distributed Systems with Causal Memory
Abstract
Automatic synthesis of distributed systems from formal specifications is a fundamental challenge in computer science. While distributed synthesis is generally undecidable, the assumption of causal memory—where components track their interaction history—renders some problems tractable. This paper investigates the decidability frontier for global winning conditions. We demonstrate that while global safety requirements (e.g., mutual exclusion) are decidable in 2-EXPTIME through a reduction to two-player games with backward moves, global liveness requirements remain undecidable.
Introduction
In distributed computing, synthesis aims to automatically generate system implementations that satisfy a given formal specification. This process is notoriously difficult due to the inherent concurrency and partial information of distributed components. Most formulations of this problem are undecidable. However, recent research has shown that if components possess "causal memory"—the ability to remember all information gained through past synchronizations—the synthesis of local winning conditions becomes possible. This paper extends this line of inquiry to global winning conditions, which are essential for specifying system-wide properties like mutual exclusion or global resource constraints.
Synthesis via Petri Games
The authors utilize Petri games as a modeling framework. In these games, tokens represent players categorized as either "system" (the code to be generated) or "environment" (unpredictable external factors). The goal is to find a strategy for the system players that ensures the global condition is met regardless of the environment's actions.
To address global safety—the requirement that the system never reaches a "bad" global state—the authors propose a reduction to a classic two-player Büchi game. A key innovation is the introduction of "backward moves." Because concurrent processes can interleave in numerous ways, the synthesis tool must be able to "rewind" and verify that no specific sequence of concurrent actions leads to a safety violation.
Decidability of Global Safety
The research establishes that global safety is decidable for systems with a bounded number of system players and a single environment player. This problem resides in 2-EXPTIME, indicating high computational complexity but theoretical feasibility. The reduction ensures that the system cannot "win" by simply avoiding interaction with the environment (the "No more Environment Synchronization" or NES-case).
By storing the finite causal history of each player up to their last environment interaction, the tool can effectively monitor global safety. This "rewindable" nature of safety properties is the core insight that allows for decidability.
The Limit of Liveness
The paper identifies a sharp "decidability frontier" when moving from safety to liveness. Global liveness—ensuring that a "good" global state is eventually reached—is proven to be undecidable. The authors demonstrate this through a reduction from the Post Correspondence Problem (PCP). Global liveness conditions can be exploited to force asynchronous players into a synchronous execution pattern, effectively bypassing the advantages of causal memory and re-introducing the undecidability inherent in synchronous distributed synthesis.
Conclusion and Future Work
This work clarifies the boundaries of distributed synthesis with causal memory. Global safety is achievable, albeit complex, while global liveness represents a fundamental mathematical limit. The primary limitation is the requirement for a bounded number of system players.
Future research aims to bridge the gap by combining global safety with local liveness properties (using logics like Flow-LTL). This would allow for robust specifications that ensure both system-wide stability (e.g., "the system never crashes") and individual progress (e.g., "every process eventually finishes its task").
Summary updated