MathlibPR: Pull Request Merge-Readiness Benchmark for Formal Mathematical Libraries

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Xie, Zixuan, Liu, Xinyu, Zhang, Shangtong
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914560618790912
author Xie, Zixuan
Liu, Xinyu
Zhang, Shangtong
author_facet Xie, Zixuan
Liu, Xinyu
Zhang, Shangtong
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2605_07147
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle MathlibPR: Pull Request Merge-Readiness Benchmark for Formal Mathematical Libraries
Xie, Zixuan
Liu, Xinyu
Zhang, Shangtong
Logic in Computer Science
Artificial Intelligence
Machine Learning
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.
title MathlibPR: Pull Request Merge-Readiness Benchmark for Formal Mathematical Libraries
topic Logic in Computer Science
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2605.07147