Get started
Release notes¶
5.3.3.0¶
First public release, targeting Mojo 1.2.0, Z3 5.3.3, and APN Mojo 1.0.2.
- Generated from a pinned release.
z3-version.tomlpins Z3 5.3.3 acrosslinux-64,linux-aarch64, andosx-arm64, withpixi run bump,generate,api-diff,check-api, and.github/workflows/z3-update.yml. - Two public API layers.
- Pythonic API (
from z3_mojo import ...): Pythonic Z3 classes, constructors (Solver(ctx),Optimize(ctx),Goal(ctx),Tactic(name, ctx),Probe(name, ctx),Fixedpoint(ctx)), operators onAst,Probe, andRcfNum,sat/unsat/unknownconstants, safe callback traits (UserPropagator,ClauseHandler/OnClause,ModelHandler/Optimize.set_on_model), 360+z3.z3free functions across all theories (including Z3 5.x FiniteFields, FiniteSets, Complex, Orders, and polymorphic datatypes), and all 769 safe C-API methods (618 generated, 151 hand-written) covering 809/817 C functions (99.0%) and all 10 enums (370 entries). - Low-level C API (
from z3_mojo.c import c_api, ...): All 817 exported functions across Z3's nine C headers verified againstz3.hwithcc -Werror, plus all 29 rawZ3_*handle types, 10 enums, and FFI helpers (c_bytes,to_string,null,to_c_uint32,to_c_int32). - Safe lifetimes and exact numbers. Child handles keep their
Contextalive throughArcPointer[_ContextOwner](including acrosstranslatecalls), callback state is heap-pinned to itsSolver/Optimizehandle with exception safety across C, Z3 error codes raise MojoError("z3: ..."), and integers/rationals convert losslessly to and fromapn_mojo.Integerandapn_mojo.Rational. - Tests and packaging. Ships with unit tests for the generator, raw C
layer, core Mojo API, Pythonic surface, and callbacks, seven runnable
examples (
pixi run docs-test), differential checks againstz3-solver==5.3.3.0, strict MkDocs documentation, and amodular-communityconda recipe (recipes/z3_mojo/recipe.yaml).