Information Flow Guided Synthesis with Unbounded Communication

Bernd Finkbeiner, Niklas Metzger, Yoram Moses

Abstract

Synthesizing distributed systems from high-level specifications is a long-standing challenge in formal methods. This paper presents a compositional approach using prefix distinguishability to handle safety properties and unbounded communication. By reducing complex hyperproperty problems to trace-property problems, the tool FlowSy achieves significant performance gains over existing state-of-the-art synthesis engines.

Introduction: The Distributed Synthesis Challenge

Reactive synthesis aims to automatically generate executable code from logical specifications. While successful for monolithic programs, synthesizing distributed systems—where multiple components interact—remains computationally difficult. The primary obstacle is "information flow": a component must often make decisions based on inputs visible only to other components.

Existing information-flow guided synthesis methods suffer from two major limitations:

  1. Liveness Constraints: They primarily handle "eventually" properties and struggle with safety properties due to a lack of temporal deadlines.
  2. Finite Information: They are restricted to finite communication, failing to handle infinite loops or continuous data streams.

Methodology: Prefix Distinguishability and Information Classes

The authors introduce a framework centered on finite prefixes rather than infinite traces.

Prefix Distinguishability

A core contribution is the definition of a relation that identifies when two input histories must be distinguished by a component to prevent safety violations. If a component cannot differentiate between two histories requiring distinct outputs, failure is inevitable.

Information Classes

To manage potentially infinite input sequences, the framework groups them into "information classes." Sequences in the same class allow for identical component reactions. This abstraction allows the system to handle unbounded communication as long as the number of required information classes remains finite.

Automata representing prefix distinguishability and information classes.

Assume-Guarantee Synthesis

These requirements are transformed into standard Linear Temporal Logic (LTL) properties. This reduction allows the use of optimized off-the-shelf synthesis tools like spot and oink, effectively solving distributed problems (hyperproperties) as single-trace problems.

Experimental Evaluation

The tool FlowSy was evaluated against BosyHyper using several parametric benchmarks, including delay-based tasks and sequence transmission.

Key Results

FlowSy demonstrated superior scalability:

  • Constant Scaling: In the "Delay" benchmark, FlowSy maintained a constant execution time (~2s) while BosyHyper timed out, as the number of information classes remained stable despite increasing memory requirements.
  • Complex Tasks: FlowSy solved "Sequence Transmission" instances in 36 seconds that caused the competition to fail.
The FlowSy tool is publicly available and verified through the CAV artifact evaluation process.

Discussion and Future Work

The "aha moment" of this research is the realization that safety properties provide natural deadlines for information flow. By fixing information flow as an assumption, the complexity of reasoning about multiple traces is drastically reduced.

However, the method relies on heuristics to identify finite information classes. If a specification requires infinite internal state to distinguish inputs, the process may not terminate. Future work involves extending this to more than two components and integrating behavioral assume-guarantee synthesis for more robust distributed engines.

Summary updated

BibTeX
@inproceedings{finkbeiner2024information,
  author = {Bernd Finkbeiner and Niklas Metzger and Yoram Moses},
  title = {{Information Flow Guided Synthesis with Unbounded Communication}},
  booktitle = {CAV},
  year = {2024},
  doi = {10.1007/978-3-031-65633-0\_4},
}
Figure