What is Lean?

On this page
  1. How verification works
  2. Allowed axioms vs. forbidden shortcuts
  3. The trust boundary
  4. Check a result yourself

Lean 4 is a proof assistant where every theorem is a type and every proof is a program term checked against a small core logic (the Calculus of Inductive Constructions with a non-cumulative universe hierarchy, proof-irrelevant Prop, and built-in quotients). You never have to trust the human, tactic, or AI that found a proof — only the small kernel that type-checks it.

How verification works

UNTRUSTED Proof Search Humans · AI Tactics (simp, omega, ring) Search & automation Errors cannot sneak past proof term TRUSTED CORE Lean 4 Kernel Small C++ type-checker Primitive inference rules At most 3 standard axioms Accepts or rejects strictly replay INDEPENDENT CHECKS Replay & Palomar lean4checker (clean env) Palomar Comparator NanoDa (Rust kernel) No single-kernel pass
Lean separates proof search from checking (the de Bruijn criterion): broken tactics or skipped cases simply fail to type-check. Entries in the Palomar Registry separate statements (Challenge) from proofs (Solution), verify exact signature match via the Comparator, and replay every proof through both Lean's kernel and the independent NanoDa Rust kernel (with automated, non-human editorial review).

Allowed axioms vs. forbidden shortcuts

Allowed (at most 3 standard axioms)

  • propextLogically equivalent propositions are equal.
  • Quot.soundQuotient equivalence (yields function extensionality).
  • Classical.choiceChoice and classical logic (excluded middle).

#print axioms must stay within these three (equiconsistent with ZFC plus finite inaccessible cardinals).

Forbidden on this site

  • sorryAxFrom sorry or admit — leaves a claim unproved.
  • native_decideAdds Lean.ofReduceBool, trusting the compiler instead of the kernel.
  • axiomAny custom unproven assumption.
  • unsafe · @[implemented_by] · @[extern]Runtime and compiler escape hatches.

Enforced automatically on every shipped .lean archive here: 0 sorry, 0 native_decide, and 0 custom axioms in any proof file.

The trust boundary

OUTSIDE LEAN · REQUIRES HUMAN & EXTERNAL REVIEW English paper & prose · External certificates · Prior work · Unrefereed status Formalization gap — read definitions & theorem statements FORMAL INTERFACE · WHAT YOU AUDIT BY READING Lean theorem signatures · Shared Mathlib & core definitions · Palomar Challenge.lean Mechanically type-checked (0 sorry · 0 native_decide) INSIDE THE KERNEL · MECHANICALLY GUARANTEED Zero skipped cases or arithmetic slips · Reproducible from source · Kernel + NanoDa replay

Guaranteed

  • Deductive validity: the formal Lean statement follows strictly from its definitions and the standard axioms — no missing cases or silent leaps.
  • Shared definitions: building on Mathlib or Lean core types (Nat, Int, Rat, Finset) minimizes custom definitions to inspect.
  • Reproducibility: anyone with the pinned toolchain can rebuild and re-check from source.

Not guaranteed

  • Statement fidelity: Lean checks the formal statement, not that it matches the English paper — a narrowed quantifier or vacuous premise still type-checks.
  • Parts outside Lean: external certificates or written proofs sit outside the kernel, so this site reports exact per-claim Lean and Palomar compared denominators.
  • Prior work & human review: Lean cannot judge literature overlap or significance; every result logs prior-work searches and stays Unrefereed until human peer review.

Check a result yourself

  1. Read the statements

    Compare the .lean definitions and theorem signatures (or Palomar Challenge.lean) against the English claims.

  2. Rebuild & audit axioms

    Unzip the archive or clone the GitHub repo, run lake build, and confirm #print axioms <Name> uses only standard axioms.

  3. Check the scope rows

    Read Headline in Lean, Lean share, and Registry (badge guide →) to see what sits inside vs. outside Lean.

Short

Watch on YouTube ↗