Get Started

Capabilities and limits

judgment v1.0.0 runs on Linux (linux-64, linux-aarch64) and Apple Silicon macOS (osx-arm64) with Mojo 1.2.0 and Python 3. The Mojo implementation is not itself formally verified; the trusted base states what soundness rests on.

Capability matrix

Both the Mojo thin client and the Python package run against the prebuilt core (libjudgment and libjudgment_store, ABI 6). Optional Mojo-only packages compile directly via pixi run build-*.

Area What you get Mojo thin client & Python (prebuilt core) Direct-package Mojo
Core proofs & authoring (judgment / judgment_shell) Session, goal-first Proof, forward Step, targeted & binder rewrites, calc, Transformation, Tactics combinators (or_else, repeat, all_goals), TacticData, hole, suggest, checkpoints, sorry / admit, transactions, TheorySnapshot, Session.fork / Proof.fork, StopSignal, memory limits & out-of-core spill Yes (libjudgment) Yes
Type system & algebra Polymorphism, SubsetBuilder, specification, overloading, ClassBuilder (superclass, class_relation, sorted type variables), custom acu_operator, exact integer / rational / formal-polynomial literal kinds (Arithmetic) Yes (libjudgment; apn_mojo items in judgment.exact for Mojo client) Yes
Scalar — axiomatic & symbolic (scalar) build_scalar (FOUNDATION through ELEMENTARY_FUNCTIONS/ALL), build_scalar_poly, build_library, sealed_snapshot(), session, default_context, transfer, reify, identity, literal_facts, class_split, to_guard, is_generic Yes (libjudgment) Yes
Scalar — numeric engine Cut-aware ball evaluate, guard decide, counterexample search refute (testing evidence only, never a proof) Yes (libjudgment) Yes
Scalar — indexed library & HOL model build_classical, build_model, build_bridges, build_classes, build_analysis over judgment_mathlib; ScalarLibrary.index discrimination-tree index Builders yes (libjudgment); ScalarLibrary.index direct Mojo only Yes
Proof libraries & OpenTheory (judgment_store) Format-2.2 Library (create, open, find, categories, dependents, snapshot, profile_snapshot, recheck), LibraryChange (add, add_snapshot, add_article, replace, withdraw, publish, rebase), Article (open, theorems, write), write_article, Session.import_theorem(s) Yes (libjudgment_store) Yes (plus *_io / Article.resource)
Theory interpretations (judgment_store) TypeImage, PreparedInterpretation, prepare_interpretation, transport_type, transport_term, transport_scoped_term, reuse (cross-session and same-session) Yes (libjudgment_store) Yes (plus reuse_eliminated / reuse_batch_eliminated)
Natural numbers (judgment_nat) Conservative Peano naturals, nat.induct, primitive recursion (define_primrec) over a classical profile Direct Mojo only Yes (pixi run build-nat)
Concurrent proof search (judgment_search) Deterministic first tactic racing and parallel check_lemmas over isolated Session.fork workspaces Direct Mojo only Yes (pixi run build-search)
Low-level kernel & storage (judgment_core, termbank) Stateless checker (check_proof, check_chunk, check_dag_chunk, check_declaration, check_theory), Constructor, Derivations, DagBank, Workspace Direct Mojo only Yes

Start with Getting started and the Tutorials. See the API reference for full signatures.

What is not included

  • No mathematical surface parser, ATP, or full CAS: you construct terms and proofs programmatically in Mojo or Python. There is no built-in general simplifier or SMT/ATP solver.
  • No direct .thy or .lean reader: Isabelle/HOL theorems enter through the external format-2.2 library judgment_mathlib (judgment.fetch_mathlib() / judgment-fetch-mathlib). There is no Lean bridge.

Known limits

Kernel & authoring

  • In-process trust boundary: soundness assumes callers do not mutate private termbank.dag or judgment_core storage (trusted base).
  • Compatibility vs. consistency: merging snapshots checks declaration compatibility, not joint consistency of arbitrary user axioms (semantics).
  • Transaction nesting: transactions on one Session nest strictly; use Session.snapshot() / checkout() or Session.fork() for interleaved branches.
  • Overloaded instance definitions: stay opaque to conversion; rewrite using their checked defining equations via use.
  • Resource limits: hitting LIMIT means the work budget ran out, never that a proposition or equality is false.
  • First-order matching: theorem-store matching (HeadIndex) is first-order and does not split literals.

Scalar

  • Rational transfer (transfer): supports Scalar locals, independent constants, exact rational literals, +, *, -, inv, and literal integer powers (up to 65,536 terms / exponent magnitude). Analytic functions, non-integer powers, and exceptional constants are unsupported.
  • Polynomial reification (reify / identity): treats zero, negative, and non-literal powers as opaque atoms. identity returning None means the two expressions are not polynomially identical, not that they are mathematically unequal.
  • Numeric filter (evaluate / decide / refute): gives testing evidence only, never a proof, and returns inconclusive on unknown functions, unassigned variables, or unresolved branch-cut boundaries (numeric reference).
  • Analytic laws: laws requiring real/complex analysis (such as \(\sqrt{(-1)^2} = 1\), \(\log(e^z)\), inverse trigonometric ranges) live in the HOL model's build_analysis library (HOL bridges), not as axioms in the axiomatic profile.

Store & prebuilt core

  • Format 2.2 only: Library reads and writes format 2.2 exclusively (wire format compatibility) and loads a whole version at once.
  • OpenTheory export (Article.write): supports equational proofs (none profile) and supported natural-deduction proofs (classical profile); refuses isabelle, sorted type variables, type classes, and constructs without a version-6 form (OpenTheory theory).
  • Theory interpretations (reuse): source classes and instances must live in the shared base snapshot.
  • Prebuilt core concurrency: each Session or object serves one client call at a time (BUSY on concurrent access); forks are not driven concurrently from Python or Mojo client threads (prebuilt core).
judgment v1.0.0 for Mojo 1.2 · Apache License 2.0 with LLVM Exceptions · Source on GitHub