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:
- Liveness Constraints: They primarily handle "eventually" properties and struggle with safety properties due to a lack of temporal deadlines.
- 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.
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.
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