I want to describe a bug class that bites people writing their first simulation, because the numbers stay plausible the whole way. You write an SIR model, declare the infection rate as 0.3 per day and step the integrator with t measured in days. Then one afternoon you switch the rate to 0.3 per second, or a helper returns seconds while the parameters assume days. The dimensions still match, 1/time against 1/time, so a dimension check passes and the curve just comes out wrong by a factor of 86,400. Nothing throws. You tune the parameters until the curve looks right again, and now the fit is meaningless.
That gap is what I built axiomize for. It is a modeling layer that takes a model declaration, keeps a versioned Model IR, and validates it before any numbers are produced. Units are mandatory on every parameter and variable, so a declaration looks like this: beta with unit 1/day, S and I in persons, N in persons, t in days. The check runs on canonical unit scales rather than dimension exponents alone, so 1/day against 1/s is refused instead of being accepted as both being inverse time.
The failure is loud by design. Simulation routes through the same validation as axiomize model --action validate, and a mismatch raises ModelDimensionMismatch carrying the failing checks rather than returning an array of numbers. There is also an audit for the quiet version of this problem: unit_declaration_audit reports every symbol that would silently default to dimensionless, which is usually where an unlabeled constant hides.
The part that mattered for my own work is what leaves the tool. Models export to canonical JSON, SBML Level 3, CellML 2.0, Modelica and a SHA-256 bundle, and values with units round-trip bit-exactly, which is asserted in the test suite rather than promised in prose. A run ledger keeps the provenance, so a stored result can be checked before someone reuses it. For coursework or a paper, that is the difference between shipping a notebook and shipping something a reviewer can rerun.
Install is pip install axiomize, or npm install -g axiomize if you want the Node entry point. The CLI has axiomize capabilities, axiomize solve, axiomize fit, and 16 actions under axiomize model, including plan, validate, simulate, numerical-verify and export.
What it does not do: it does not make a bad model good, it makes a bad model fail loudly. Numerical verification compares against closed-form theory and separates numerical error from stochastic variability before claiming convergence, but if your equations are wrong the tool will happily verify the wrong model consistently. Bayesian sampling needs the full extra with PyMC and JAX, and FEM needs FEniCS; both are reported as unavailable rather than silently swapped for something else.
One honest limit: dimensional and scale checking catches unit errors, not physics errors. A model with correct meters and seconds can still be the wrong model, and the worked examples in the repo use illustrative parameter values, not literature-backed ones. The checking is a floor, not a validation of your science.
MIT, 1.15.0 on both PyPI and npm: https://github.com/Furox-Art/axiomize