Installation and Compatibility
Install
LeanCert Python 1.0 requires Python 3.10 or newer and depends on NumPy. PyTorch support is optional:
Bundled Bridge platforms
The 1.0 release publishes wheels for:
- Linux x86-64;
- macOS arm64;
- macOS x86-64; and
- Windows x86-64.
Supported wheels include a version-pinned lean_bridge binary. Installing from
an sdist or running on an unsupported platform may require an explicitly built
Bridge:
Contract negotiation
The SDK checks the Bridge API major version, operation schemas, advertised capabilities, certificate families, backends, and verification routes before sending checked work. Unknown major versions and contradictory responses are rejected rather than guessed compatible.
Stable proof families require the contract that introduced their fixed certificate schema:
| Proof family | Minimum Bridge contract |
|---|---|
| Bounds and unique nonlinear-system roots | 2.4 |
| Scalar-root existence, uniqueness, and exclusion | 2.5 |
| Exact integral equalities and checked integral bounds | 2.6 |
Use leancert doctor --json to inspect the installed wheel's negotiated
contract and capabilities.
Core, Bridge, and SDK versions
The Python package, Bridge, and LeanCert Core have separate release numbers.
Use leancert doctor --json or a result's provenance instead of inferring one
component's version from another.
Legacy API migration
The pre-1.0 API remains available:
New proof-oriented code should use:
The semantic API adds exact input enforcement, claim normalization, stable
identity, typed non-success, and replay export. Use explicit ast.legacy_*
adapters when crossing the boundary.