Introduction
Reactive synthesis is the automated process of generating a system implementation that is guaranteed to satisfy a given formal specification. While traditional synthesis focuses on Linear Temporal Logic (LTL), which describes properties of individual execution traces, many modern requirements—particularly in security and privacy—are hyperproperties. These properties relate multiple execution traces to one another. For instance, non-interference requires that a system's public output remains identical across different executions if the public inputs are the same, regardless of secret inputs. This paper provides a comprehensive study of reactive synthesis for HyperLTL, mapping out decidable fragments and introducing BoSyHyper, a tool for automated secure system generation.
The Challenge of Hyperproperties
LTL is insufficient for expressing requirements like "the system is deterministic" or "no information leaks from high-security to low-security domains." HyperLTL extends LTL with trace quantification, allowing formulas to compare multiple traces. However, this expressiveness comes at a cost: the synthesis problem for HyperLTL is generally undecidable. This research seeks to identify the boundary between decidable and undecidable fragments of HyperLTL and provide practical algorithms for the fragments most relevant to system design.
Methodology: Bounded Synthesis and SMT
The authors employ a multi-pronged approach to tackle the complexity of HyperLTL synthesis:
- Complexity Analysis: Categorizing HyperLTL formulas by their quantifier prefixes (e.g., $\exists^*$, $\forall^*$, $\exists^*\forall^1$) to identify decidable fragments.
- Bounded Synthesis: For the generally undecidable universal fragment ($\forall^*$), the authors propose a semi-decision procedure. By searching for finite-state implementations with a maximum of $n$ states, the problem is encoded as a Satisfiability Modulo Theories (SMT) problem, solvable by tools like Z3.
- Bounded Unrealizability: To prove a specification is impossible to satisfy, the tool searches for an environment "counterexample strategy" that forces failure, reducing the problem back to standard LTL synthesis.
Key Insights: Navigating the Decidability Cliff
A major contribution of this work is the mapping of the "decidability cliff." The authors demonstrate that while the $\exists^*\forall^1$ fragment (arbitrary existential quantifiers followed by one universal) is decidable, adding just one more universal quantifier ($\forall^2$) or reversing the order ($\forall\exists$) leads to undecidability.
They also identify a "linear" fragment of universal HyperLTL that remains decidable by avoiding information forks—scenarios where different processes have incomparable information about the environment's actions. HyperLTL synthesis is shown to be a "master logic" that unifies several previously distinct problems, including distributed synthesis and synthesis under incomplete information.
Evaluation and BoSyHyper
The tool BoSyHyper, built on the BoSy LTL synthesis engine, was evaluated on benchmarks representing classic challenges in distributed systems and security:
- Symmetric Mutual Exclusion: Synthesizing protocols with identical process behavior.
- Encoder/Decoder: Generating error-correcting codes defined by codeword distance.
- CAP Theorem: Formally proving the impossibility of simultaneous Consistency, Availability, and Partition tolerance.
- Dining Cryptographers: Synthesizing complex anonymity protocols.
BoSyHyper solved most benchmarks in under a minute. For example, it synthesized the Dining Cryptographers protocol in 82.4 seconds and successfully identified unrealizable specifications like the CAP theorem by finding small counterexample strategies.
Conclusion
This work advances the state of the art in reactive synthesis by providing a rigorous theoretical framework and a practical tool for hyperproperties. While high theoretical complexity remains a challenge for scaling to massive systems, the success of BoSyHyper on classic benchmarks demonstrates the viability of SMT-based bounded synthesis for critical security and distributed system requirements. Future work will explore more expressive logics and further optimize SMT encodings for complex architectures.
Summary updated