Acacia-Bonsai: A Modern Implementation of Downset-Based LTL Realizability

Michaël Cadilhac, Guillermo A. Pérez

Abstract

Acacia-Bonsai is a high-performance C++20 implementation of the Acacia tool for Linear Temporal Logic (LTL) realizability. By integrating modern hardware features such as SIMD instructions and advanced data structures like k-d trees, it revitalizes downset-based synthesis. Our evaluation against the SYNTCOMP 2021 benchmarks demonstrates that Acacia-Bonsai is competitive with state-of-the-art tools, offering significant performance gains through low-level optimizations and parallel nonrealizability checks.

Introduction

In the design of reactive systems—such as operating systems, communication protocols, and autonomous controllers—ensuring correctness is a critical challenge. Linear Temporal Logic (LTL) synthesis offers a "holy grail" solution: instead of manually writing and testing code, developers provide a formal specification in LTL, and a tool automatically generates a "correct-by-construction" program.

However, the classical algorithm for LTL synthesis is doubly exponential in the size of the specification, leading to significant computational hurdles. While "Safra-less" approaches, like the original Acacia tool, mitigated some complexity using downsets and antichains, they were developed in an era before modern hardware optimizations. Acacia-Bonsai addresses this gap by providing a ground-up C++20 rewrite of the Acacia approach, leveraging contemporary software engineering and hardware features.

Methodology

Acacia-Bonsai revitalizes the downset-based synthesis approach through several key technical innovations:

  • Safra-less Synthesis: The tool avoids the expensive explicit determinization of automata. Instead, it employs a fixed-point iteration over "downsets" of vectors, representing sets of states from which a winning strategy exists.
  • Hardware Acceleration: By utilizing 256-bit SIMD (Single Instruction, Multiple Data) registers, the tool performs component-wise operations on state vectors in parallel. This allows the CPU to process multiple state valuations in a single clock cycle, significantly speeding up the core math of formal verification.
  • Advanced Data Structures: Managing antichains—sets of non-dominating vectors—is a known bottleneck. Acacia-Bonsai implements k-d trees to accelerate the process of checking if a new vector is covered by existing ones.
  • State Optimization: The tool identifies "bounded" states that only require boolean values, enabling faster bitmask operations and reduced memory footprint.
Illustration of state transitions and region-based analysis in the synthesis process.

The synthesis process often involves analyzing the structure of the underlying automaton to identify "surely losing" states or regions from which no winning strategy is possible, as illustrated in the figure above. Preprocessing these states can simplify the problem before the main fixed-point iteration begins.

Experimental Evaluation

The authors evaluated Acacia-Bonsai using the SYNTCOMP 2021 benchmark suite, focusing on 879 LTL formulas solvable by existing tools within 100 seconds. Experiments were conducted on an Intel i7-8700 system with a 15-second timeout to emphasize fine-grained performance differences.

Key Results

  • Competitive Performance: Acacia-Bonsai significantly outperforms the original Acacia+ and remains competitive with modern state-of-the-art tools like Strix and ltlsynt.
  • Optimization Synergy: The combination of SIMD and k-d trees provided a synergistic performance boost, with k-d trees showing marked improvement when SIMD was active.
  • Nonrealizability Gains: A novel "shift forward" algorithm for checking nonrealizability allowed the tool to solve 14% more instances than standard formula-modification methods.
  • Efficiency: A large portion of the benchmarks were solved in under one second, demonstrating the tool's high efficiency for practical specifications.

Discussion and Future Work

A primary insight from this work is that low-level hardware optimizations, often overlooked in high-level algorithmic research, are highly effective for the vector-heavy computations in formal methods. Furthermore, precomputing a "sufficient set" of inputs using Binary Decision Diagrams (BDDs) drastically reduced the branching factor and search space.

Despite its performance, Acacia-Bonsai currently focuses on the decision problem of realizability. Future work includes extending the tool to output the actual controller code for all cases and moving beyond Büchi automata to support more complex conditions like Parity games. Additionally, refining heuristics for automaton preprocessing remains an open challenge, as current methods show variable impact on performance.

Conclusion

Acacia-Bonsai demonstrates that modern implementation techniques can breathe new life into established formal methods. By bridging the gap between high-level synthesis algorithms and low-level hardware capabilities, it provides a powerful tool for the automated generation of correct-by-construction reactive systems.

The source code is available at https://github.com/gaperez64/acacia-bonsai/.

Summary updated

BibTeX
@inproceedings{cadilhac2023acacia,
  author = {Michaël Cadilhac and Guillermo A. Pérez},
  title = {{Acacia-Bonsai: A Modern Implementation of Downset-Based LTL Realizability}},
  booktitle = {TACAS},
  year = {2023},
  doi = {10.1007/978-3-031-30820-8\_14},
}
Figure