Skip to main content

Acacia-Bonsai

Acacia-Bonsai checks whether a controller can satisfy a Linear Temporal Logic (LTL) specification for every possible sequence of inputs. If it can, the tool can build that controller. The environment chooses the inputs; the controller chooses the outputs.

It accepts LTL formulas and TLSF files. The solver uses antichains over downsets; the TACAS 2023 paper explains the method.

Build

You need GCC with C++23 and C23 support, Spot 2.16.3 with development headers, Meson 1.7 or newer, Ninja, pkg-config, Zsh, Flex, Bison, Cargo with Rust 1.91 or newer, and cbindgen 0.29.4. For Python, also install SWIG and Python development headers. The Python package requires Python 3.13 or newer.

Start with a checkout whose submodules, including nested submodules, are initialized. Run these commands from the repository root in Bash. This builds the CLI and Python module with the first configuration in docker_default:

export CARGO_BUILD_JOBS=2
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}
build_dir=${ACACIA_BUILD_DIR:-build}
preset=$(python3 scripts/acacia-config.py list-group docker_default | head -n1)
read -r -a preset_args <<< "$(python3 scripts/acacia-config.py meson-args "$preset")"
meson setup "$build_dir" --buildtype=debug -Dbuild_python=true \
  "${preset_args[@]}" -Dtlsf-tools:cpu=baseline
meson compile -C "$build_dir" -j 2

Keep using the same shell for the quick start below. Set ACACIA_BUILD_DIR before setup to put the build elsewhere. Spot must provide both libspot and libbddx through pkg-config; adjust PKG_CONFIG_PATH for a different install prefix. On macOS, use Homebrew GCC for both Spot and Acacia-Bonsai, and set CC and CXX before setup.

Quick start

Ask whether repeated requests can be met by repeated grants:

"$build_dir/src/acacia-bonsai" -f 'G F req -> G F grant' -i req -o grant

The verdict is REALIZABLE. G means “always” and F means “eventually”, so G F req means requests occur infinitely often. To read a TLSF specification and write its controller as an ASCII AIGER circuit:

"$build_dir/src/acacia-bonsai" -T examples/realizable.tlsf -s controller.aag

CLI

The CLI guide covers input files, verdicts, exit codes, controller output, and solver selection. Use it when calling the tool from a script: UNREALIZABLE has exit status 1, even though the solver answered the question.

Python

The build above also produces acacia_boomslang. The Python guide shows how to import it, solve a bounded safety game, and inspect its winning region. It also explains how that API differs from the CLI.

Docker

The Docker guide covers the CLI source image and the Boomslang notebook image. The CLI image needs a compile step inside the container; Boomslang includes a built Python module, Spot, and Jupyter.

Presets and configuration

A preset chooses components at compile time. docker_default names the configurations used by the Docker wrappers; its first entry is also used by Python builds. Read the group instead of copying a preset name. The configuration guide explains how to inspect presets, choose solver workers at runtime, and set translation effort. The first two presets use closure-recurrence for their formula-unrealizability arm, with fallback candidate mode and low effort for fallback translation. --candidate-mode only overrides that build default. Controller synthesis keeps that arm's frozen-graph provider.

The four slots offer the six-arm default, its eight-arm variant with both forward workers, the historical backward solver, and the previous six-arm GR(1) portfolio. The eight-arm option keeps the default's other settings. Historical presets outside the group remain available by name.

Benchmarks

See results and their measurement conditions for performance comparisons. The benchmarking guide starts with a small local run and describes the correctness and measurement gates. Debug builds are useful for checking examples; use matched release builds for performance comparisons.

Citing

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

The software is licensed under GPLv3. See the changelog for user-visible changes and CLAUDE.md for development conventions.

Metadata

Release files for acacia-boomslang 2.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for acacia-boomslang 2.10.0
File Size Uploaded Provenance Actions
acacia_boomslang-2.10.0.tar.gz 14.4 MB With provenance Details for acacia_boomslang-2.10.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for acacia-boomslang 2.10.0
File Actions
acacia_boomslang-2.10.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for acacia_boomslang-2.10.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
acacia_boomslang-2.10.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details for acacia_boomslang-2.10.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
acacia_boomslang-2.10.0-cp314-cp314-macosx_15_0_arm64.whl CPython 3.14 CPython 3.14 macOS 15.0+ ARM64 Details for acacia_boomslang-2.10.0-cp314-cp314-macosx_15_0_arm64.whl
acacia_boomslang-2.10.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for acacia_boomslang-2.10.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
acacia_boomslang-2.10.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.26+ ARM64, Linux glibc 2.28+ ARM64 Details for acacia_boomslang-2.10.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
acacia_boomslang-2.10.0-cp313-cp313-macosx_15_0_arm64.whl CPython 3.13 CPython 3.13 macOS 15.0+ ARM64 Details for acacia_boomslang-2.10.0-cp313-cp313-macosx_15_0_arm64.whl

Total release size: 239.5 MB

Release files / acacia_boomslang-2.10.0.tar.gz

Download URL acacia_boomslang-2.10.0.tar.gz
Size 14.4 MB
Tags Source
SHA-256 checksum
How to use checksums
98a90f8fe8c07c12d901efed84311c0605912f157c70b1a84b7359e8800a0798
BLAKE2b-256 checksum
How to use checksums
1116d51c416e8ef08eeb1bfe097700012b59c1026c6ea2d0e23d04e19e3d245b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / acacia_boomslang-2.10.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL acacia_boomslang-2.10.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 54.6 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
03c7b7a05a336211b8a9c2f13fe0619299f58c9abfa62196d68e74bedd560ecb
BLAKE2b-256 checksum
How to use checksums
10eb544881249688c5e049afc3fdf4bede1a36e1e1fefa160c5b2b375735ae27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / acacia_boomslang-2.10.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL acacia_boomslang-2.10.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 53.4 MB
Tags CPython 3.14 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
1cbe41fa19af3d512b324419f9e919f95da2aa752da3cd1e99012cd953f8fd56
BLAKE2b-256 checksum
How to use checksums
12398a3374d8acfa5945f9089a5d9381172bc83b9a3bdf752db0b8ad955fbf47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / acacia_boomslang-2.10.0-cp314-cp314-macosx_15_0_arm64.whl

Download URL acacia_boomslang-2.10.0-cp314-cp314-macosx_15_0_arm64.whl
Size 4.6 MB
Tags CPython 3.14 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
89e051695bb21eeab21d939b946aa15180eda6bd74144f0ea935cd75fb21810a
BLAKE2b-256 checksum
How to use checksums
aa421cd2fb932c33d717891b53dd3f311a32a1ccc5f3c516ff8f692061e9f6de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / acacia_boomslang-2.10.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL acacia_boomslang-2.10.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 54.6 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a9ae6f97545dca2d435cd5f557e53ca4f4b2fa28e60d1aface795a5c057c50db
BLAKE2b-256 checksum
How to use checksums
9713171c650c5d642f917a9ae32eaa5726b904e71b75735f28c1b9aca55c0e50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / acacia_boomslang-2.10.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL acacia_boomslang-2.10.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 53.4 MB
Tags CPython 3.13 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
d6015825885f5a97ffb9c096ad1030b069f6d695d9271fb109ce48b51f6f25e7
BLAKE2b-256 checksum
How to use checksums
45ab07113eac2960626d81772d14976f46805dc6385b778815f2462688328c57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / acacia_boomslang-2.10.0-cp313-cp313-macosx_15_0_arm64.whl

Download URL acacia_boomslang-2.10.0-cp313-cp313-macosx_15_0_arm64.whl
Size 4.6 MB
Tags CPython 3.13 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
76554c6fa8ef36abecb58f5bf9055ddf6d85a7521e7cba4910923fc2ae7b15b6
BLAKE2b-256 checksum
How to use checksums
ee45ede53123a095c97864da748c09a409f66058476a46c985da1ee532aed7d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for acacia-boomslang 2.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for acacia_boomslang-2.10.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page