KAPPA: Checking the Proofs in Statistics Papers with Lean 4 and Language Model Agents
On the map: LLM agents and tool use → Educational agents and math problem solving also fits: Web, search, and research agents
Abstract (arXiv)
Papers in statistical theory rest on long proofs that few readers check line by line. We present KAPPA (Kit of Agents for Proof-checking Papers with a proof Assistant), open-source software that organizes language model agents, run by Claude Code, to translate the proofs of a LaTeX paper into the proof assistant Lean 4 with its library Mathlib and check them there, result by result. Each numbered result receives one of four verdicts: verified unconditionally; verified conditionally, with every cited or unproved input stated as a named hypothesis; issue recorded, with its place in the paper and the side at fault; or unfinished, with the reason. The kit follows the paper's own proof step by step, rather than finding a new one. Separate agents write and review, each statement is compared with the paper before it is proved and fingerprinted afterwards, and every verdict rests on evidence that can be rerun without a language model. The kit runs unattended for hours, waits out usage limits, re-checks only what a revision changed and reports its cost by role, model and result. We describe the design, walk through a complete run, and apply the kit to four example papers with answer keys and to three published statistical papers, checked blind in their versions from before public corrections. In all three, the kit found the published error at the step that the correction names, together with further problems that we confirmed by hand. Given the same papers directly, the same language model working with Lean classified fewer results correctly on the longest paper and reported some statements narrower than the paper's as proved; no verdict of the kit claimed more than its Lean evidence showed.
Key facts. Cited by 1 paper in the map (data through 24 Nov 2026). Placed in Educational agents and math problem solving, one of 16 directions in LLM agents and tool use. Builds on 15 of its 35 references that are in the map. Submitted 26 Oct 2026.
Builds on
15 of 35 references.
Closest ancestors · 1
Same direction, newest first
Other references · 14
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 457
- 2021MiniF2F: a cross-system benchmark for formal Olympiad-level mathematicscited by 430
- 2020Generative Language Modeling for Automated Theorem Provingcited by 419
- 2022Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofscited by 319
- 2022Autoformalization with Large Language Modelscited by 282
- 2024DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Datacited by 263
- 2023ProofNet: Autoformalizing and Formally Proving Undergraduate-Level Mathematicscited by 218
- 2023Can large language models provide useful feedback on research papers? A large-scale empirical analysiscited by 216
- 2019The Lean mathematical librarycited by 164
- 2015A formal proof of the Kepler conjecturecited by 51
- 2016On the Geometric Ergodicity of Hamiltonian Monte Carlocited by 21
- 2026MerLean: An Agentic Framework for Autoformalization in Quantum Computationcited by 12
2 more
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026ProofPatch: Reviewing Lean Statements and Keeping the Reviews Valid as Formalizations Evolve
- 2024Not All Votes Count! Programs as Verifiers Improve Self-Consistency of Language Models for Math Reasoning
- 2026LAMP: Lean-based Agentic framework with MCP and Proof Repair
- 2026ProofCouncil: An LLM Agent for Solving Open Mathematical Problems
- 2024ImProver: Agent-Based Automated Proof Optimization
- 2026Beyond fabrication: Misattributed numbers in papers written by AI research agents
- 2025Prover Agent: An Agent-Based Framework for Formal Mathematical Proofs
- 2025StatEval: A Comprehensive Benchmark for Large Language Models in Statistics