Synthesis in Distributed Environments

Bernd Finkbeiner, Paul Gölz

Introduction

Reactive synthesis is the process of automatically generating a program (the "system") that satisfies a formal specification regardless of the actions taken by its "environment." Traditional synthesis models typically treat the environment as a single, monolithic opponent with perfect internal coordination. However, real-world systems operate in distributed environments where information is scattered across multiple independent entities, such as sensors, users, or external services.

This paper addresses the challenge of synthesizing strategies for a system that must navigate an environment composed of multiple distributed players who only share information when they interact. By modeling these interactions as Petri games, the authors establish the first complexity bounds for this problem.

Modeling with Petri Games

The authors utilize the framework of Petri games, where players are represented as tokens moving through a Petri net. This model naturally captures the distributed nature of the environment:

  • Distributed Players: The game involves one system player and an arbitrary number of environment players.
  • Causal Memory: The model assumes players have "causal memory." When two tokens synchronize at a transition, they truthfully and maximally exchange their known histories. This means the system's strategy is not just about reacting to inputs, but also about choosing when to synchronize with specific environment players to "learn" about events occurring elsewhere in the net.

The Access Control Example

To illustrate these concepts, the authors present an access control scenario. In this example, a safe (the system) requires two employees (environment players) to authenticate with separate authorities before the lock allows the safe to open.

Petri net representation of an access control system with two environment players.

In this model, the system must track whether both employees have successfully authenticated, despite the employees and authorities being distributed entities that do not share a global state.

Algorithmic Approach: Commitments and Symbolic Evaluation

To solve the synthesis problem, the authors reduce the Petri game to a finite, complete-observation graph game. A key technical novelty is the use of commitments. Since the system lacks perfect knowledge of the distributed environment's state, it must "commit" to a set of allowed actions. The synthesis algorithm then checks for the existence of a commitment that prevents the environment from ever forcing the system into a "bad" (unsafe) state.

To manage the potentially massive state space inherent in distributed systems, the authors propose a symbolic evaluation algorithm. This approach leverages SAT solvers to efficiently identify valid commitments, making the synthesis process more computationally feasible.

The Complexity Landscape

A major contribution of this work is the definitive mapping of the complexity of synthesizing a single system player in a $k$-bounded distributed environment. The research reveals a significant "complexity jump" based on the number of environment participants.

Complexity of the synthesis problem based on the number of environment players.

When the environment consists of only one or two players, the problem is solvable in polynomial time (P). However, once the environment includes three or more players, the complexity increases to NP-complete (for a fixed number of players) or EXPTIME-complete (if the number of players scales with the size of the net). This threshold exists because three or more players allow for complex "hidden" coordination patterns that the system must account for, significantly increasing the difficulty of finding a winning strategy.

Conclusion and Future Work

This paper provides the first decidability results for Petri games with multiple environment tokens, filling a critical gap in the literature of distributed synthesis. While the current work focuses on a single system player and safety specifications, it lays the groundwork for more complex scenarios. Future research aims to extend these results to include multiple system components—the "holy grail" of synthesizing fully distributed systems in distributed environments—and to incorporate liveness properties to ensure that "good" events eventually occur.

Summary updated

BibTeX
@inproceedings{finkbeiner2017synthesis,
  author = {Bernd Finkbeiner and Paul Gölz},
  title = {{Synthesis in Distributed Environments}},
  booktitle = {FSTTCS},
  year = {2017},
  doi = {10.4230/lipics.fsttcs.2017.28},
}
Figure