Judgment
Higher-order logic theorem prover for Mojo and Python.
With judgment (v1.0.0), you write ordinary Mojo or Python programs that state
mathematical claims, construct derivations, and verify them through a small
polymorphic HOL kernel. Supported on Linux (linux-64, linux-aarch64) and
Apple Silicon macOS (osx-arm64) with Mojo 1.2 and Python 3.
What judgment provides
- Kernel-checked proofs: Every theorem (whether constructed by hand,
tactics, algebraic engines, or imported from a library) is checked by the HOL
kernel (
judgment_core). Inspectstatement(),axioms(),admissions(), and dependency closures at any time, or export proofs in OpenTheory v6 format for independent verification in other HOL provers (such as Isabelle/HOL). - HOL polymorphism and type classes: Declare generic constants, nonempty subset types, overloaded operators, order-sorted class hierarchies, and custom ACU (associative-commutative-unit) conversion without dependent-type bookkeeping.
- Out-of-core storage: Cap live workspace memory (
set_memory_limit) and spill verified proof-DAG pages to disk (spill) for workloads exceeding RAM. - Extended-complex
Scalarmathematics and cut-aware refutation: Reason over finite complex numbers, directed infinities, complex infinity, and indeterminate values. Derive exact generic guards withtransfer, prove polynomial identities withreifyandidentity, and detect missing poles or branch-cut guards withrefute. - Versioned binary libraries and theory interpretations: Persist checked
proofs in content-addressed format-2.2 libraries, exchange OpenTheory v6
articles, and transport abstract theorems into concrete theories via
reuse.
Quick start
Install with Pixi (modular-community)
Once the modular-community channel pull request merges, add judgment to any
Pixi project with the max,
modular-community, and conda-forge channels:
[workspace]
channels = ["https://conda.modular.com/max", "https://repo.prefix.dev/modular-community", "conda-forge"]
platforms = ["linux-64", "linux-aarch64", "osx-arm64"]
pixi add judgment mojo=1.2
The conda package ships the compiled shared library (libjudgment_store), the
Mojo package (judgment.mojoc, loaded automatically via dlopen with no linker
flags), the Python package (import judgment), and the judgment-fetch-mathlib
helper:
# Mojo (zero -I or linker flags)
pixi run mojo run my_proof.mojo
# Python (zero PYTHONPATH or env vars)
pixi run python my_proof.py
# Optional: download the 591 MiB verified Isabelle math library (judgment_mathlib)
pixi run judgment-fetch-mathlib
You can also download judgment_mathlib programmatically with the same API in
both languages: judgment.fetch_mathlib() (defaulting to $JUDGMENT_MATHLIB or
~/.local/share/judgment_mathlib).
Build from source
To work from a source checkout, build the shared library once with Pixi:
git clone https://github.com/Spellbound-Mojo/judgment.git
cd judgment
pixi install --locked
pixi run build-core # builds libjudgment.so / .dylib once
pixi run build-core-store # optional: adds libjudgment_store.so / .dylib
Run the starter proof in either language:
# Mojo (loads the prebuilt core via dlopen in seconds)
pixi run core-run docs/examples/library/quick_start_goal.mojo
# Python (~30 ms startup, no compilation)
PYTHONPATH=bindings/python pixi run python docs/examples/python/library/quick_start_goal.py
Both print:
⊢ P ∧ Q → Q ∧ P
Minimal example
Python:
from judgment import Session, implies
s = Session()
P, Q = s.prop("P"), s.prop("Q")
proof = s.theorem("swap", implies(P & Q, Q & P))
h = proof.intro("h")
proof.exact(proof.conjoin(proof.right(h), proof.left(h)))
theorem = proof.finish()
print(theorem)
Mojo:
from judgment import Session, implies
def main() raises:
var s = Session()
var P = s.prop("P")
var Q = s.prop("Q")
var proof = s.theorem("swap", implies(P & Q, Q & P))
var h = proof.intro("h")
proof.exact(proof.conjoin(proof.right(h), proof.left(h)))
var theorem = proof.finish()
print(theorem)
Documentation
Build and browse the full site locally with pixi run -e docs docs-serve, or
read the Markdown sources directly:
| Topic | Start here |
|---|---|
| Rationale for HOL and OpenTheory | Why HOL? |
| Setup for Mojo and Python | Getting started · Proofs from Python · Use in your project |
| 38 hands-on Mojo + Python lessons | Tutorials (Parts 1–5) · Verify Cantor's theorem in Isabelle/HOL |
| Everyday lookup and full API | Quick reference · Using the API |
| Scalar algebra and binary libraries | Scalar workflows · Proof libraries & OpenTheory |
| Capabilities, limits, and trust boundary | Capabilities and limits · The trusted base · Troubleshooting |
Repository packages
This repository contains the unified Mojo 1.2 workspace:
judgment: public authoring entry point (thin prebuilt-core client and direct package).judgment_core: stateless HOL checking kernel.termbank: content-addressed proof-DAG storage (termbank.dag), budgets, and out-of-core spill.judgment_shell: proof authoring, tactics, rewriting, and calculations.scalar: extended-complex mathematical profile, symbolic proof helpers, and cut-aware numeric engine.judgment_store: optional versioned binary libraries, OpenTheory v6 interchange, and theory interpretations (pixi run build-core-storeorpixi run build-store).judgment_nat: optional conservative Peano natural numbers, induction, and primitive recursion (pixi run build-nat, direct Mojo).judgment_search: optional deterministic concurrent tactic racing and parallel lemma checking (pixi run build-search, direct Mojo).
Runtime dependencies apn_mojo and fp_mojo are installed automatically by
Pixi from the modular-community channel at the versions pinned in pixi.toml.
License
Apache-2.0 WITH LLVM-exception. See LICENSE.
Metadata
Release files for judgment-prover 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| judgment_prover-1.0.0-py3-none-manylinux_2_34_x86_64.whl | Python 3 | none | Linux glibc 2.34+ x86-64 | Details for judgment_prover-1.0.0-py3-none-manylinux_2_34_x86_64.whl |
| judgment_prover-1.0.0-py3-none-manylinux_2_34_aarch64.whl | Python 3 | none | Linux glibc 2.34+ ARM64 | Details for judgment_prover-1.0.0-py3-none-manylinux_2_34_aarch64.whl |
| judgment_prover-1.0.0-py3-none-macosx_13_0_arm64.whl | Python 3 | none | macOS 13.0+ ARM64 | Details for judgment_prover-1.0.0-py3-none-macosx_13_0_arm64.whl |
Total release size: 171.4 MB
Release files / judgment_prover-1.0.0-py3-none-manylinux_2_34_x86_64.whl
| Download URL | judgment_prover-1.0.0-py3-none-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 63.6 MB |
| Tags | Linux glibc 2.34+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
2f77c26b8ce86b4ba0f0412766bf1a65021de38bd61d271c59e4a096326b31b1
|
|
BLAKE2b-256 checksum How to use checksums |
79ec0b8e86901d2cc534b193f70ef917057070fbeec310791fa83cf83ddb9ed8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / judgment_prover-1.0.0-py3-none-manylinux_2_34_aarch64.whl
| Download URL | judgment_prover-1.0.0-py3-none-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 53.9 MB |
| Tags | Linux glibc 2.34+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
2ebcfad25782bb35b34731fc0d050fd8d73f8a56770cc39ef31470c5d3f8aec9
|
|
BLAKE2b-256 checksum How to use checksums |
8642c4b8e797a60896de7d7f7c13116339dd7494f9cd795a5519aacbf728ecb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / judgment_prover-1.0.0-py3-none-macosx_13_0_arm64.whl
| Download URL | judgment_prover-1.0.0-py3-none-macosx_13_0_arm64.whl |
|---|---|
| Size | 53.9 MB |
| Tags | Python 3 macOS 13.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
005294dded29d1e8dc16ad4987bdb764a8f99b90a6f36ec4b778267c78e324f8
|
|
BLAKE2b-256 checksum How to use checksums |
41f9d3f6c8641576fcc26d96c5016993515c42e58dd296d4d9c27d6ce7611bb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for judgment-prover 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 3 files in this release have been uploaded with provenance metadata.
Attestation for judgment_prover-1.0.0-py3-none-manylinux_2_34_x86_64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.