Repository navigation
CVC5 Mojo 1.4.1.0
The first release of CVC5 Mojo: bindings for the cvc5 SMT solver for Mojo 1.1, generated from cvc5 1.4.1.
- cvc5's Python API in Mojo: the same classes, methods and enum names as cvc5's Python base API, so its documentation and examples carry over. 366 of cvc5's Python unit tests and 22 of its examples, translated to Mojo, pass.
- Exact numbers: integers and rationals of any size through apn_mojo's
IntegerandRational. - Callbacks: plugins that supply lemmas and observe the solver, and oracle functions through
Oracle.evaluateandSolver.declareOracleFun. - Safe ownership: terms, sorts and results keep their native owners alive, and API misuse raises a Mojo error instead of ending the process.
- Documentation: tutorials, a transcendental-functions course, a scheduling application and a generated API reference.
Works with Mojo 1.1.x on Linux x86-64, Linux ARM64 and macOS Apple Silicon (macOS 15 or later). The package includes cvc5's solver and parser libraries.
Install from the Modular community channel:
# pixi.toml
[workspace]
channels = ["https://conda.modular.com/max", "https://repo.prefix.dev/modular-community", "conda-forge"]pixi add cvc5_mojoDocumentation: https://spellbound-mojo.github.io/cvc5_mojo/