Encodings of Bounded Synthesis

Peter Faymonville, Bernd Finkbeiner, Markus N. Rabe, Leander Tentrup

Abstract

Bounded synthesis is a powerful technique for automatically generating minimal hardware or software controllers from logical specifications. By iteratively searching for the smallest implementation that satisfies a given Linear Temporal Logic (LTL) specification, it avoids the large, often redundant systems produced by traditional game-based synthesis. This paper explores how different logical encodings—ranging from basic SAT to complex "fully symbolic" Dependency Quantified Boolean Formulas (DQBF)—affect performance. Our evaluation reveals that QBF-based "input-symbolic" encodings currently offer the best balance of conciseness and solver efficiency, outperforming both simpler explicit methods and more advanced symbolic abstractions.

Introduction

In reactive synthesis, the goal is to automatically construct a system implementation that satisfies a specification, typically expressed in LTL. While traditional methods struggle with scalability and often produce unnecessarily large systems, bounded synthesis addresses these issues by searching for the smallest possible implementation first. However, the effectiveness of this approach depends heavily on how the synthesis problem is encoded into logic. Existing tools often rely on "explicit" encodings that enumerate every possible input and state combination, leading to a "state-space explosion" within the constraint formulas themselves. This research investigates whether moving toward symbolic encodings—using quantifiers to represent inputs and states abstractly—can enable synthesis tools to scale to complex real-world problems.

Methods and Encodings

The authors developed a tool called BoSy to compare four distinct logical encodings of the bounded synthesis problem:

  1. SAT (Basic): An explicit encoding where every state, input, and transition is represented by individual Boolean variables. While easy for solvers to process, it results in massive formulas as the number of inputs grows.
  2. QBF (Input-Symbolic): This encoding uses universal quantification ($\forall$) over the system's inputs, making the formula exponentially smaller relative to the number of input signals.
  3. DQBF/EPR (State- and Input-Symbolic): This version represents system states as bit-vectors and uses Dependency Quantified Boolean Formulas (DQBF) to handle complex functional dependencies between states and inputs.
  4. DQBF/EPR (Fully Symbolic): The most abstract version, which also treats the states of the specification's internal "monitor" (the universal co-Büchi automaton) symbolically.
The synthesis process requires mapping a transition system (implementation) to a universal co-Büchi automaton (specification).

To ensure the implementation is correct, the encoding must find an "annotation"—a mapping that proves every possible execution of the system is accepted by the specification's automaton. This involves checking the product space of the system states and the automaton states.

The annotation process maps implementation states (t) and automaton states (q) to ensure the specification is satisfied.

Key Insights: The "Goldilocks Zone"

The research identifies a non-linear relationship between formula conciseness and solving time. While the SAT encoding is often too bulky for large inputs, the DQBF encoding is currently too complex for existing solvers to handle efficiently. The QBF (input-symbolic) encoding hits the "sweet spot," benefiting from highly optimized preprocessors (like Bloqqer) and solvers (like RAReQS).

Furthermore, the authors found that a two-step synthesis process works best for QBF: first solving for the annotation to prove correctness, and then using a certifying solver to extract the actual hardware logic (Skolem functions).

Results and Evaluation

The encodings were evaluated using 201 benchmarks from the 2016 Reactive Synthesis Competition (SYNTCOMP), including arbiters, load balancers, and request-response detectors.

  • QBF Dominance: The input-symbolic QBF encoding clearly outperformed all others, solving more instances within the one-hour timeout than SAT, SMT, or DQBF versions.
  • Performance Gains: On the simple-arbiter benchmark, the QBF encoding solved a large instance ($k=8$) in just 2.7 seconds. In contrast, the SAT encoding took over 1,000 seconds to solve a smaller version ($k=7$).
  • Implementation Quality: Systems generated by BoSy were significantly smaller (measured in AIGER AND gates) than those produced by traditional game-based tools like Acacia+, fulfilling the promise of bounded synthesis to produce minimal realizations.

Conclusion and Future Work

While theoretically elegant, the "fully symbolic" DQBF approach is currently limited by the maturity of DQBF solvers. The authors suggest that their benchmarks can serve as a stress test to drive the development of better DQBF and EPR solvers. Future work may also extend these symbolic encodings to the synthesis of distributed systems, where different components have different "views" of the system—a problem where DQBF encodings are particularly promising due to their ability to model complex dependencies.

Summary updated

BibTeX
@inproceedings{faymonville2017encodings,
  author = {Peter Faymonville and Bernd Finkbeiner and Markus N. Rabe and Leander Tentrup},
  title = {{Encodings of Bounded Synthesis}},
  booktitle = {TACAS},
  year = {2017},
  doi = {10.1007/978-3-662-54577-5\_20},
}
Figure