This website uses cookies

Read our Privacy policy and Terms of use for more information.

TL;DR: A Lean proof can pass and still prove the wrong thing. AI can help turn a claim into Lean, find a proof, or fill in missing steps. Checking the proof and checking that the formal statement matches the original claim are two separate jobs. These 18 tools and papers show where each check comes in.

If you’ve been on math or AI Twitter lately, you probably saw the news about Levent Alpöge’s Riemann Hypothesis formalization in Lean – a programming language where mathematical proofs are written as code and checked by a small trusted kernel, backed by Mathlib, its massive community library of verified math. When such a huge claim drops, everyone asks two things: does the proof actually hold up, and did the AI prove the right theorem instead of quietly changing the rules?

On November 21, Lean FRO and the Mathlib Initiative reported two separate checks of Levent Alpöge’s Riemann Hypothesis formalization. They verified the proof itself and compared the theorem it proved against Mathlib’s formal statement of the hypothesis. To see what those checks look like in practice, Andrew Sutherland published the files and compilation logs from his verification.

So writing the statement, finding a proof, and checking it are three different jobs. Over the past few weeks, a wave of new tools, papers, and benchmarks has tackled every part of that pipeline. Here is a look at what’s new in the field. →

Lean proof tools and papers at a glance

Start with what you need: write or repair a proof, check what it proves, or test how the workflow holds up.

#

Tool or paper

What it does

Use it when you want to…

1

Paper2Lean

Maps dependencies in an optimization paper and assigns statements and proofs to specialized agents.

Turn a whole paper into a Lean project.

2

MathEye (From Sorry to QED)

Sets aside broken proof fragments and isolates the missing steps that need a mathematician.

Salvage an AI-written proof that only partly works.

3

daVinci-Prover

Trains a prover to try steps, read Lean’s feedback, and revise; includes the harness used to collect runs.

Study how to train a Lean proof agent.

4

Lea

Lets a mathematician steer a Lean-writing agent from chat or Overleaf, using one shared session.

Guide a formalization as it’s being written.

5

Statopia

Pairs a statistics and ML proof agent with Statlib, a Lean library of reviewed lemmas.

Find and reuse formal results in statistics and ML.

6

KAPPA

Audits statistics papers result by result, separates unconditional and conditional proofs, and lets you rerun checks offline.

See which claims in a statistics paper hold and under what assumptions.

7

AI-Guided Lean Proof Refinement

Tightens individual lemmas and traces how each change affects the final bound.

Improve a constant in an existing proof.

8

Reap

Uses a small model to guide Monte Carlo tree search over tactics that Lean executes.

Search for the next proof step.

9

crush

Sends supported goals to an SMT solver and reconstructs a proof Lean can check. No LLM required.

Close a supported goal with a tactic.

10

AutoIP

Pairs Lean declarations with textbook claims in an inverse-problems case study.

Spot extra assumptions the formal version needed.

11

Comparator

Matches a submission to a trusted Lean statement, lists its axioms, and rechecks the exported proof.

Verify a submission against the exact formal target.

12

ProofPatch

Fingerprints the definitions behind a human-reviewed statement and invalidates the review if they change.

Keep a statement review valid as the project changes.

13

LeanTrail

Uses a model to compare paper claims with Lean statements; a separate dependency check flags proof gaps.

Find mistranslated claims and unfinished proofs.

14

MechAlign

Shows an LLM reviewer the definitions behind a theorem, not just its statement.

Catch missing assumptions hidden in definitions.

15

ProofStudio

Runs Lean and four other proof assistants in the browser, with worked examples and AI help.

Try a prover without installing it.

16

LeanContext

Varies which declarations and local Lean commands a prover sees, then checks the proof in its original project.

Measure which context actually helps a prover.

17

RefactorProof

Refactors a program without changing its behavior, then reruns the original Lean proof unchanged.

See whether a proof survives a code refactor.

18

AuXSpec

Pairs a Lean postcondition with an executable version so the model can test its spec on examples.

Test what a spec says before trying to prove it.

How AI Writes Lean Proofs (and What Lean Actually Checks)

Writing, searching for, and repairing proofs

1. Paper2Lean

Turns an optimization paper into a Lean project. It maps which results depend on one another, then assigns the formal statements, proofs, and integration work to specialized agents. All 20 benchmark projects compiled without proof placeholders, but expert reviewers found 21 mismatches across 494 items before repair. In one case, the agent repeated a hypothesis as the conclusion. Lean accepted the proof, but the paper’s convergence claim was gone.

2. MathEye (From Sorry to QED)

Keeps going when part of an AI-written proof fails. It marks the failing fragments as gaps, filters out dependent subgoals to isolate the core missing steps, and asks a mathematician to resolve only what remains.

3. daVinci-Prover

Trains models on interactive proving: breaking a theorem into steps, trying an argument, seeing what Lean rejects, and revising. Alongside the models, the developers release the single-agent harness used to collect those proving runs.

4. Lea

This one lets a mathematician steer the proof while an agent writes the Lean code. You can start with an outline in chat or annotate a theorem directly in Overleaf, and both interfaces share the same session.

5. Statopia

Pairs a statistics and machine learning proof agent with Statlib, a growing Lean library it can draw on. Whenever the agent proves a useful result, the lemma goes through review and becomes available for future proofs.

6. KAPPA

KAPPA uses separate agents to translate and review the arguments in a statistics paper, result by result. Its verdicts distinguish an unconditional proof from one that holds only under a named assumption, and you can rebuild its Lean evidence and rerun the mechanical audit offline without an LLM.

7. AI-Guided Lean Proof Refinement

AI-Guided Lean Proof Refinement hunts for loose bounds inside an existing argument. An agent tightens individual lemmas within a Lean blueprint so you can trace exactly how each adjustment improves the final analytic constant.

  • AI-Guided Lean Proof Refinement Paper

8. Reap

Uses a lightweight model to guide Monte Carlo tree search inside Lean. The model helps choose which tactic to try next, while Lean executes it and checks the resulting proof state.

9. crush

Sends supported Lean goals to an external SMT solver, then reconstructs a proof that Lean’s kernel can check. It is conventional, extensible proof automation that an agent can call, not an LLM prover.

10. AutoIP

It is a case study in using agents to formalize inverse-problem mathematics. Its Lean library pairs formal statements with their prose counterparts so reviewers can spot when a textbook theorem secretly requires a stronger assumption than advertised.

Checking the proof and the statement

11. Comparator

This development checks a submission against a separately supplied Lean statement, inspects the axioms it uses, and rechecks the exported proof. It confirms whether a submission matches the formal target you supplied, though not whether that target faithfully captures the paper’s prose.

12. ProofPatch

Records a human’s review of a Lean statement and cryptographically fingerprints all the definitions it depends on. A later edit to an underlying definition invalidates that review, even if the theorem line itself stays word-for-word the same.

13. LeanTrail

LeanTrail places claims from a paper side by side with candidate Lean declarations. A model reviews whether the statements mean the same thing. In one example, the paper needs a single constant for every input, but the Lean statement lets it vary with the input. A separate dependency check flags unfinished proofs.

14. MechAlign

Traces a theorem into the definitions it depends on and feeds that stripped context to an LLM reviewer. In one project, that context exposed a dimension restriction from the manuscript that the Lean statement had omitted.

A workspace and two ways to test proof workflows

15. ProofStudio

Lets you try Lean alongside four other proof assistants, Isabelle/HOL, Rocq, HOL4, and HOL Light, directly in the browser. It provides worked examples, built-in proof search, and contextual AI help next to each prover’s native feedback.

16. LeanContext

It is a benchmark rather than a prover. It lets researchers vary which mathematical declarations a model sees separately from the surrounding local Lean commands, then checks the generated proof inside its original project.

17. RefactorProof

Rewrites a program without changing its behavior, then tests the original Lean proof without editing a single character. It measures whether the proof survives intact as written, not how hard it would be to repair.

One step upstream

18. AuXSpec

Pairs a declarative Lean postcondition (what should be true after a program runs) with an executable version. Running test cases gives the model immediate feedback on the specification it wrote, though passing tests is still not a proof that the program meets the spec for every input.

FAQ

What does Lean actually check?

Lean’s kernel checks that the proof establishes the formal statement it was given, under the assumptions and axioms it uses. If that statement came from a paper, someone still needs to check that it says what the paper says.

What’s the difference between autoformalization and theorem proving?

Autoformalization turns a mathematical claim or argument written in prose into Lean code. Theorem proving starts with a formal statement and finds a proof. A system can do both, but getting one right doesn’t guarantee the other.

Can a Lean project compile and still be unfinished?

Yes. Lean can compile a proof with a placeholder like sorry. Run #print axioms on the theorem to see the axioms it depends on, directly or indirectly. If sorryAx shows up, the proof still relies on a placeholder.

Do you need AI to check a Lean proof?

No. You can check a Lean proof without a model. If you also need to know whether it proves a specific theorem, compare the submission against a trusted formal statement, for example with Comparator.

Also, subscribe to our X, Threads and BlueSky

to get unique content on every social media

Reply

Avatar

or to participate