Abstract
Compositional synthesis relies on the discovery of assumptions—restrictions on the behavior of the remainder of the system that allow a component to realize its specification. Traditional behavioral assumptions often fail to capture the necessary conditions for realizability without being overly restrictive. We introduce information flow assumptions, a new class of assumptions for compositional synthesis. These assumptions capture the essential requirement that components must act upon information available only in other parts of the system. Unlike behavioral assumptions, which are properties of individual computation traces, information flow assumptions are hyperproperties (properties of sets of traces). This paper presents a method for the automatic derivation of these assumptions from temporal logic specifications and a technique for synthesizing component implementations based on them, providing a novel compositional approach to distributed system synthesis.
Introduction: The Challenge of Distributed Synthesis
Distributed synthesis is often considered the "holy grail" of formal methods: the goal is to automatically transform high-level specifications into a set of interacting subsystems that collectively satisfy the global requirement. This task is notoriously difficult because each subsystem possesses only a partial view of the global state.
To manage this complexity, researchers employ compositional synthesis, breaking the problem down to design one component at a time. However, this introduces a "chicken-and-egg" dilemma: to synthesize component $A$, one must assume how component $B$ behaves. Yet, $B$'s behavior is unknown until it is synthesized, which itself requires assumptions about $A$. Traditional behavioral assumptions are often too brittle; if they are too specific, synthesis fails even when a solution exists; if too loose, components fail to interoperate. This research proposes a shift toward minimal necessary assumptions focusing on the flow of information rather than specific bit-level behaviors.
Information Flow as a Hyperproperty
The core innovation of this work is the transition from behavioral assumptions to information flow assumptions. Information flow is inherently a relationship between different possible executions, making it a hyperproperty. For instance, a requirement might state: "If the environment input differs between execution 1 and execution 2, the communication channel must eventually reflect this difference."
To formalize this, the authors utilize HyperLTL. They define a "distinguishability relation" to identify pairs of environment inputs that must result in different component behaviors to satisfy the specification. This allows for the automatic derivation of the minimal information flow a component requires from its environment to function correctly.
Implementation and Locality
To resolve the synthesis deadlock, the approach first generates "hyper-implementations." These are prototypes that "cheat" by having direct access to the unencoded information they are destined to receive.
To transform these prototypes into valid programs, a locality condition is applied. This ensures the component only acts on information once it has been physically received and decoded from the communication channel. This decoupling of encoding from use allows a receiver's synthesis to proceed without knowing the exact protocol the sender will eventually use, provided some encoding exists that satisfies the information flow requirement.
Experimental Evaluation
The approach was evaluated using the BoSyHyper synthesis tool on several classic distributed computing benchmarks:
- Atomic Commit (AC): Processes must agree to commit or abort based on distributed inputs.
- Eventual Commit (EC): A variation of AC where inputs arrive asynchronously.
- Send All (SA): A stress test where every input from a sender is relevant to the receiver, necessitating complex communication.
Results indicate that information-flow-guided synthesis significantly outperforms standard distributed methods. In the AC benchmark, while traditional tools slowed down exponentially as inputs increased, the proposed method maintained nearly constant synthesis time for local processes. Furthermore, it successfully synthesized solutions for the "Send All" benchmark where other state-of-the-art tools failed.
Conclusion and Future Work
By treating information flow as the primary constraint, this method provides a more robust and scalable path for distributed synthesis. The synthesized components are inherently more general, as they are compatible with any implementation that satisfies the necessary information flow. Future work aims to extend this framework beyond two-process systems and to handle infinite, repetitive data streams, further closing the gap toward fully automated distributed system design.
Summary updated