Global Winning Conditions in Synthesis of Distributed Systems with Causal Memory

Bernd Finkbeiner, Manuel Gieseking, Jesko Hecking-Harbusch, Ernst-Rüdiger Olderog

TL;DR

This paper explores the boundaries of what we can automatically build in distributed computing. The authors prove that while we can successfully synthesize distributed systems with global safety requirements (like mutual exclusion), adding global liveness requirements (ensuring something good eventually happens across the whole system) makes the problem mathematically impossible to solve in almost all cases.

What Problem Does This Paper Address?

In computer science, "synthesis" is the holy grail: instead of writing code and checking if it works, you provide a formal specification of what the system should do, and a tool automatically generates the how (the implementation).

For distributed systems—where multiple components run at the same time and talk to each other—this is incredibly hard. Most distributed synthesis problems are "undecidable," meaning no algorithm can ever solve them for every possible input. However, if we assume components have causal memory (they remember everything they’ve learned from every synchronization they've ever had), some problems become solvable.

Until now, researchers could only handle local winning conditions (rules for individual parts). But real-world systems need global rules, such as "two different robots must never enter the same narrow corridor at the same time" (Mutual Exclusion). This paper asks: can we still synthesize a system if the rules apply to everyone at once?

Methods

The authors use a framework called Petri games. Imagine a Petri net where tokens are "players." Some players are the "system" (the code we are trying to write), and others are the "environment" (unpredictable external factors).

To prove decidability for safety, they developed a complex reduction technique:

  1. Two-Player Game Reduction: They turn the distributed problem into a classic two-player Büchi game (System vs. Environment) that can be solved with existing algorithms.
  2. Backward Moves: Since concurrent processes can happen in many different orders, the authors introduced "backward moves." This allows the synthesis tool to "rewind" and check if any specific interleaving of concurrent actions could have accidentally triggered a "bad marking" (a violation of global safety).
  3. NES-case Handling: They created a way to handle "No more Environment Synchronization," ensuring the system doesn't win simply by ignoring the environment forever.

For the undecidability proof, they used a reduction from the Post Correspondence Problem (PCP), a classic "unsolvable" puzzle in logic, showing that global liveness allows a distributed system to mimic a synchronous system, which is known to be undecidable.

Datasets

As a theoretical paper in formal methods, it does not use traditional "datasets." Instead, it uses:

  • Petri Net Models: Specifically, a "Two Power Plants" motivating example (Figure 1) to illustrate energy production constraints.
  • AdamSYNT: The authors mention that the reduction for bad places is implemented in this specialized tool for Petri game synthesis.

Key Insights and Ideas

  • Safety is "Rewindable": The big "aha!" moment is that to check global safety, you don't need to know the infinite future. You only need to store the finite causal history of each player until their last interaction with the environment. If you can "rewind" through that history, you can catch any safety violations.
  • Liveness is the Dealbreaker: The results show a sharp "decidability frontier." Global safety is 2-EXPTIME (very hard, but possible), but global liveness is a dead end. This is because global liveness can be used to force players to stay "in sync," effectively turning an asynchronous system into a synchronous one, which breaks the math.
  • Causal Memory is Powerful: The paper reinforces that causal memory is the key ingredient that makes asynchronous synthesis more tractable than synchronous synthesis.

Key Results

  • Decidability of Global Safety: The authors prove it is decidable to synthesize a system with a bounded number of system players and one environment player when the goal is to avoid "bad markings" (Global Safety). This problem is shown to be in 2-EXPTIME.
  • Undecidability of Global Liveness: They prove it is undecidable to determine if a winning strategy exists if the condition includes "good markings" (Global Liveness) for any system with at least two system players and one environment player.
  • The "Corner Case": The paper identifies that the only remaining open question in this specific sub-field is the case of one system player and multiple environment players with global conditions.

Limitations and Future Work

The primary limitation is the "Boundedness" requirement for the decidability result; the number of system players must be fixed. While this covers many hardware and protocol designs, it doesn't account for systems where an infinite number of processes might be spawned.

Future Work: * The authors plan to combine these global safety results with local liveness specifications (using a logic called Flow-LTL). This would allow engineers to specify: "The whole system must never crash (Global Safety), and every individual robot must eventually finish its task (Local Liveness)." * Investigating the "corner case" of multiple environment players vs. one system player.

Summary updated

BibTeX
@inproceedings{finkbeiner2022global,
  author = {Bernd Finkbeiner and Manuel Gieseking and Jesko Hecking-Harbusch and Ernst-Rüdiger Olderog},
  title = {{Global Winning Conditions in Synthesis of Distributed Systems with Causal Memory}},
  booktitle = {CSL},
  year = {2022},
  doi = {10.4230/lipics.csl.2022.20},
}
Figure