MathlibPR: Pull Request Merge-Readiness Benchmark for Formal Mathematical Libraries
On the map: LLM reasoning → Mathematical reasoning
Abstract (arXiv)
The ecosystem of Lean and Mathlib has become the de facto standard for large language model (LLM) assisted formal reasoning with remarkable successes in recent years. Those successes, however, only consume Mathlib as an essential dependency but do not directly contribute to it. In the meantime, the growth of Mathlib has recently been bottlenecked by the review process, which requires human reviewers to judge whether proposed pull requests (PRs) follow the Mathlib's conventions and are worth integrating as part of a shared mathematical infrastructure. This leads to our central question: can LLMs help review Mathlib PRs? To this end, we introduce MathlibPR, a benchmark built from real Mathlib4 PR histories. We further propose a staged evaluation protocol and use it to evaluate both LLM models (e.g., DeepSeek, Qwen, Goedel, and Kimina) and LLM agents (e.g., Codex and Claude Code). Surprisingly, both LLM models and LLM agents struggle to distinguish merge-ready PRs from build-passing PRs that were revised or never merged. By turning Mathlib PR histories into a supervised signal, MathlibPR provides a step toward reviewer assistants and reward models that could help evaluate PRs and steer LLMs toward producing merge-ready Mathlib contributions.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 29 of its 41 references that are in the map. First posted on arXiv 8 May 2026.
Builds on
29 of 41 references.
Closest ancestors · 8
Same direction, newest first
- 2026MathlibLemma: Folklore Lemma Generation and Benchmark for Formal Mathematics30 Jan
- 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoning26 Sep
- 2025Seed-Prover: Deep and Broad Reasoning for Automated Theorem Proving31 Jul
- 2025Solving Formal Math Problems by Decomposition and Iterative Reflection21 Jul
- 2025APOLLO: Automated LLM and Lean Collaboration for Advanced Formal Reasoning9 May
- 2025FormalMATH: Benchmarking Formal Mathematical Reasoning of Large Language Models5 May
- 2025Kimina-Prover Preview: Towards Large Formal Reasoning Models with Reinforcement Learning15 Apr
- 2024Formal Theorem Proving by Rewarding LLMs to Decompose Proofs Hierarchically4 Nov
Other references · 21
- 2025Qwen3 Technical Reportcited by 8,195
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,205
- 2023Prometheus: Inducing Fine-grained Evaluation Capability in Language Modelscited by 558
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
- 2021MiniF2F: a cross-system benchmark for formal Olympiad-level mathematicscited by 380
- 2024DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Datacited by 225
- 2023ProofNet: Autoformalizing and Formally Proving Undergraduate-Level Mathematicscited by 180
- 2024PutnamBench: Evaluating Neural Theorem-Provers on the Putnam Mathematical Competitioncited by 153
- 2025Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correctioncited by 140
- 2022Automating Code Review Activities by Large-Scale Pre-trainingcited by 98
- 2024LLM-Rubric: A Multidimensional, Calibrated Approach to Automated Evaluation of Natural Language Textscited by 81
9 more
- 2023FIMO: A Challenge Formal Dataset for Automated Theorem Provingcited by 54
- 2025LeanConjecturer: Automatic Generation of Mathematical Conjectures for Theorem Provingcited by 6
- 2025Lemmanaid: Neuro-Symbolic Lemma Conjecturingcited by 5
- 2025Growing Mathlib: maintenance of a large scale mathematical librarycited by 5
- 2025SWR-Bench: Assessing LLM Performance in Real-World Code Review Comment Generationcited by 5
- 2025Towards Formalizing Reinforcement Learning Theory: A Robbins-Siegmund Approachcited by 5
- 2020Maintaining a Library of Formal Mathematicscited by 4
- 2026AI4SLT: Empirical Processes in Lean 4 for Formal Statistical Learning Theorycited by 4
- 2026Sphinx: Benchmarking and Modeling for LLM-Driven Pull Request Reviewcited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026ProofJudge: Tool-Grounded LLM Evaluation of Formal Proof Quality in Mathlib
- 2025DRIFT: Decompose, Retrieve, Illustrate, then Formalize Theorems
- 2025Do LLMs Overthink Basic Math Reasoning? Benchmarking the Accuracy-Efficiency Tradeoff in Language Models
- 2024Scheherazade: Evaluating Chain-of-Thought Math Reasoning in LLMs with Chain-of-Problems
- 2025Rewriting Pre-Training Data Boosts LLM Performance in Math and Code
- 2025Token-by-Token Regeneration and Domain Biases: A Benchmark of LLMs on Advanced Mathematical Problem-Solving
- 2026Beyond Benchmarks: MathArena as an Evaluation Platform for Mathematics with LLMs
- 2024MARIO: MAth Reasoning with code Interpreter Output -- A Reproducible Pipeline