Synthesizing Reactive Systems from Hyperproperties

Bernd Finkbeiner, Christopher Hahn, Philip Lukert, Marvin Stenger, Leander Tentrup

Introduction

The automatic generation of correct-by-construction systems—known as reactive synthesis—has long been a "holy grail" of formal methods. While synthesis from Linear Temporal Logic (LTL) is well-established, it is limited to "trace properties" that evaluate execution paths in isolation. This paper breaks new ground by extending synthesis to HyperLTL, a logic capable of expressing hyperproperties. Unlike trace properties, hyperproperties relate multiple execution traces, enabling the specification of critical security requirements like non-interference and architectural constraints like observational determinism.

The Challenge of Hyperproperties

Reactive synthesis involves constructing a system that satisfies a specification against all possible environment behaviors. The transition to HyperLTL significantly increases complexity. HyperLTL allows for explicit quantification over traces, necessary to express that "for any two executions with the same public inputs, the public outputs must be identical"—a classic formulation of non-interference. The authors demonstrate that HyperLTL synthesis is a "super-problem" that subsumes distributed synthesis, as hyperproperties can enforce that certain outputs depend only on specific subsets of inputs.

Decidability and Fragments

A primary contribution of this work is the first comprehensive mapping of the decidability landscape for HyperLTL synthesis. The authors categorize formulas based on their quantifier prefixes—the sequence of universal ($\forall$) and existential ($\exists$) trace quantifiers.

Decidability results for various HyperLTL fragments based on quantifier prefixes.

The analysis reveals a sharp "undecidability wall." While the existential fragment ($\exists^*$) is PSPACE-complete, adding universal quantifiers quickly leads to undecidability. Specifically, the fragment $\exists^*\forall^{>1}$ is proven undecidable. However, the authors identify a "Linear $\forall^*$" fragment that remains decidable, corresponding to distributed systems without "information forks," where information flows linearly through the system components.

The BoSyHyper Framework

To bridge theory and practice, the authors introduced BoSyHyper, a tool implementing a bounded synthesis approach. BoSyHyper searches for a finite-state machine implementation within a bounded number of states $n$. The tool employs several sophisticated techniques:

  • Self-Composition: For universal specifications ($\forall^*$), the tool checks validity by running multiple parallel copies of the system and verifying cross-trace relationships.
  • SMT-Based Search: The search for a satisfying strategy is encoded as a Satisfiability Modulo Theories (SMT) problem, leveraging solvers like Z3.
  • Bounded Unrealizability: If a specification cannot be met, BoSyHyper attempts to prove unrealizability by finding a "counterexample strategy" for the environment that forces a violation regardless of the system's design.

Empirical Results

The effectiveness of BoSyHyper was evaluated across a diverse set of benchmarks, ranging from classic synchronization problems to security protocols and distributed systems theory.

Experimental performance of BoSyHyper across various benchmarks, including state counts and execution times.

Key successes include synthesizing symmetric mutual exclusion protocols, automatically deriving error-correcting codes from logic, and formally proving the unrealizability of the CAP theorem. While most benchmarks were solved within seconds, the tool faces challenges with state space explosion as the complexity of the specification and the required number of states increase.

Conclusion

This research provides a foundational framework for synthesizing systems from hyperproperties. By identifying decidable fragments and providing a practical tool in BoSyHyper, the authors have opened new avenues for the automated design of secure and distributed systems. Future work will focus on scaling these methods to larger state spaces and exploring heuristics to handle the theoretically undecidable regions of HyperLTL more effectively.

Summary updated

BibTeX
@inproceedings{finkbeiner2018synthesizing,
  author = {Bernd Finkbeiner and Christopher Hahn and Philip Lukert and Marvin Stenger and Leander Tentrup},
  title = {{Synthesizing Reactive Systems from Hyperproperties}},
  booktitle = {CAV},
  year = {2018},
  doi = {10.1007/978-3-319-96145-3\_16},
}
Figure