Code language
judgment documentation
Judgment¶
Theorem prover for Mojo and Python.
With judgment, you can write ordinary Mojo or Python programs that state mathematical
claims, build their proofs, and verify their validity.
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. You
can inspect its exact statement,
axioms(),admissions(), and dependency closure at any time. Theorems can also be exported in OpenTheory format and verified independently by other HOL theorem provers. - HOL-style polymorphism and type classes: Declare generic constants, nonempty subset types, overloaded operators, class hierarchies, and custom ACU (associative-commutative-unit) conversion without dependent-type bookkeeping.
- Out-of-core compute: RAM-friendly storage that spills verified pages to disk instead of crashing when workspaces grow large.
- Extended-complex
Scalarmath and cut-aware refutation: Work over finite complex numbers, directed infinities, \(\tilde{\infty}\), and \(\mathrm{indet}\). Derive exact generic guards withtransfer, prove polynomial identities withreifyandidentity, and catch missing poles or branch-cut guards quickly withrefute. - Versioned binary libraries and theory interpretations: Save checked proofs in
content-addressed libraries, exchange OpenTheory articles, and transport abstract
theorems into concrete theories with
reuse.
Where to start¶
| If you want to… | Go here |
|---|---|
| Understand why Judgment uses HOL instead of dependent types | Why HOL? |
| Install Pixi, build the core once, and run your first proof | Getting started · Proofs from Python |
| Learn by running 38 hands-on Mojo + Python lessons | Tutorials (Parts 1–5) |
| Look up everyday calls or a specific signature | Quick reference · API reference |
| Explore Scalar algebra, numeric refutation, or binary libraries | Scalar workflows · Proof libraries |
| Check platform support, guarantees, and boundaries | Capabilities and limits · The trusted base |