In this community, Z3 does not need an introduction. Now it has Mojo bindings ![]()
If you have used z3-solver in Python, the main API (from z3_mojo import ...) will look familiar:
from std.testing import assert_equal
from z3_mojo import Context, Real, Solver, unsat
def main() raises:
var ctx = Context()
var s = Solver.from_tactic(ctx, "qfnra-nlsat")
var x = Real("x", ctx)
s.add(x * x < 0)
assert_equal(s.check(), unsat)
When you need the low-level layer, z3_mojo.c exposes all 817 exported Z3_* C functions directly. The bindings are generated and checked against the Z3 headers.
Repo: GitHub - Spellbound-Mojo/z3_mojo: Mojo bindings for Z3 SMT solver · GitHub
Documentation: Welcome · Z3 Mojo
Soon to appear in the modular-community Pixi channel (modular-community#470).