Tech & Tools · Verification Guide · METHODOLOGY · LEAN 4 · 12 min read
Lean 4 Proof Observatory · Kernel Architecture & Auditing Public Formalizations
How Lean 4's small trusted kernel checks proofs, what four public Lean 4 projects state in their READMEs, and three commands to audit them yourself.
Audit Definitions Before Claims
Open the public .lean files on GitHub. Check whether the formal signature states the intended theorem without vacuous premises or altered definitions.
Replay & Inspect #print axioms
Do not take a summary on trust. Run lake build, #print axioms, and lean4checker --fresh locally to check for any sorryAx or custom axiom.
Connect Proof to Computation
Read the companion mathematical analyses in Folio M.01, Folio M.02, Folio M.06, Folio M.12, and The AI Loop.
Act I — Why a Small Trusted Kernel Separates Search from Checking
Proof search may be large, heuristic, or untrusted, yet every finished proof must compile to a term checked by a small kernel. Lean 4 (de Moura & Ullrich, CADE-28, 2021) builds that separation directly into its type checker.
Think of a long proof like aircraft wiring. A person or an AI model can propose thousands of connections rapidly, while Lean 4's kernel tests continuity and rejects missing cases. Two tasks remain human: build the repository yourself instead of quoting a headline, and read the top-level statement to check that it asks the intended question.
Shared libraries such as mathlib (The mathlib Community, 2020) break large proofs into dependency graphs of reusable lemmas. Public Lean 4 blueprints—including the Imperial College London Fermat project (Buzzard, Taylor, et al.) and the Freiman–Ruzsa project in Folio M.04—use that modular layout.
Act II — Public Lean 4 Repositories & What Their READMEs State
Across Folios M.01, M.02, M.06, and M.12, this site reports only what each public README or preprint states. This site has not built or checked these Lean 4 repositories. Use the links below and the Act III commands to inspect the primary files:
| Repository / Project | What the Repository README / Preprint States | Verification Status Here | Primary Links & Companion Folio |
|---|---|---|---|
| Fermat's Last Theorem (R = T Modularity Lifting) | Classical proof by Wiles (1995) and Taylor–Wiles (1995) for x^n + y^n = z^n (n > 2). Anthropic's README states a 29,511-theorem Lean 4 formalization alongside the ongoing Imperial FLT blueprint. |
Reported from README (read 2026-11-14); not built or checked here. | anthropics/fermats-last-theorem · Research post · ImperialCollegeLondon/FLT · Folio M.01 |
zeta23 · Critical-Line Zeros of Riemann Zeta |
Listed in anthropics/formal-math as a Lean 4 project for Alpöge & Furman (arXiv:2608.13637), stating that more than two-thirds of non-trivial Riemann zeta zeros are simple and on the critical line. Also includes zeta23/Challenge/XiPrime.lean. |
Reported from README (read 2026-11-14); not built or checked here. | formal-math/zeta23 · arXiv:2608.13637 · Folio M.02 |
3sum-apsp · Subquadratic 3SUM & Subcubic APSP |
Listed in anthropics/formal-math for Alman & Vassilevska Williams (arXiv:2610.06783; PALOMAR-2026-10-08-000003). States O(n^1.9992) time for 3SUM and O(n^2.99942) for All-Pairs Shortest Paths. |
Reported from README & preprint; not built or checked here. | formal-math/3sum-apsp · arXiv:2610.06783 · Palomar Registry · Folio M.06 |
eth · k-CNF Counting & ETH Claim |
Described in anthropics/formal-math (read 2026-11-14) as a 2^o(n) k-CNF solution-counting algorithm claiming to refute the Exponential Time Hypothesis. Classical background: Impagliazzo, Paturi & Zane (2001). |
Repository's own unchecked claim per README; not built or checked here. | formal-math/eth · Folio M.12 · Folio M.01 |
Act III — Three Checks Every Human Reviewer Must Run
A zero exit code from lake build shows only that a term inhabits the declared type in Lean's type theory. It does not check whether that type matches the informal theorem. Independent review therefore requires three steps:
-
Top-Level Statement & Definition Fidelity: Inspect every custom structure, coercion, quantifier, and domain hypothesis in the theorem header. Check that conventions such as natural-number subtraction truncation or division by zero in
Nat/Realdo not make a premise unsatisfiable. Registries such as Palomar Registry freeze canonical statements to guard against specification drift. -
Axiom Footprint Inspection (#print axioms): Run
#print axioms MainTheoremto list every axiom reachable from the proof term. Classical Mathlib4 proofs use onlypropext,Classical.choice, andQuot.sound; anysorryAxor unvettedaxiommarks an unfinished obligation. -
Out-of-Process Kernel Replay (lean4checker): Because Lean 4 allows metaprograms and macros during elaboration, run
lean4checker --freshon compiled.oleanfiles so tactic code cannot bypass kernel type-checking.
Act IV — Primary Sources & Companion Informatico Monographs
- de Moura, L., & Ullrich, S. (2021): The Lean 4 Theorem Prover and Programming Language, CADE-28, Lecture Notes in Computer Science, vol. 12699 — doi:10.1007/978-3-030-79876-5_37.
- The mathlib Community (2020): The Lean Mathematical Library, CPP 2020 — doi:10.1145/3372885.3373824.
- Buzzard, K., Taylor, R., et al. (2024–2026): Imperial College London Lean 4 Fermat's Last Theorem Blueprint & Repository — github.com/ImperialCollegeLondon/FLT.
- Alpöge, L., & Furman, R. (2026): More than two thirds of the zeta zeros are simple and on the critical line — arXiv:2608.13637. Listed as
zeta23in github.com/anthropics/formal-math (README read 2026-11-14; not built or checked here). - Alman, J., & Vassilevska Williams, V. (2026): Truly Subquadratic 3SUM and Truly Subcubic APSP via Triangles in Sparse Lopsided Graphs — arXiv:2610.06783 · PALOMAR-2026-10-08-000003 (not built or checked here).
- Impagliazzo, R., Paturi, R., & Zane, F. (2001): Which Problems Have Strongly Exponential Complexity? Journal of Computer and System Sciences, 63(4), 512–530 — doi:10.1006/jcss.2001.1774.