ProofJudge: Tool-Grounded LLM Evaluation of Formal Proof Quality in Mathlib
Shane Caldwell
Key points
From the paper's conclusion- We introduce ProofJudge, an agentic LLM-as-judge system that scores formal proof quality along five dimensions beyond correctness: library leverage, automation fit, structural clarity, statement quality, and Mathlib conventions.
Abstract
Formal proofs in Lean 4 that pass the kernel's type checker can nonetheless vary widely in quality. We introduce ProofJudge, an agentic LLM-as-judge system that scores formal proof quality along five dimensions beyond correctness: library leverage, automation fit, structural clarity, statement quality, and Mathlib conventions. We evaluate ProofJudge on a novel dataset of 218 declarations drawn from distinct Mathlib PRs. The judge agent is grounded by tool access to the commit the PR is applied to, enabling it to query the library state when scoring. A judge is considered aligned with human preferences when it rates the version of the PR Mathlib accepted above the initial version that was sent back for revision. All six judge models evaluated recover the reviewers' preference well above chance, from 80.8% to 63.5%, and two open-weight judges reach roughly 70% at a tenth of the best judge's cost. We release the judge harness, evaluation dataset, and evaluation traces as open-source artifacts to support further research.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- LeanReviewBench: Semantic Alignment Review in Mathematical Lean ProjectsarXiv · 2026
- ProofPatch: Reviewing Lean Statements and Keeping the Reviews Valid as Formalizations EvolvearXiv · 2026
- Paper2Lean: Agentic Autoformalization of Mathematical Research Papers at ScalearXiv · 2026
- Efficient Proof Generation for Lean Statements with Multiple Candidate AnswersarXiv · 2026
- KAPPA: Checking the Proofs in Statistics Papers with Lean 4 and Language Model AgentsarXiv · 2026
- Let the Library Speak: Self-Advertised Method Selection for Formal ProvingarXiv · 2026