Evaluation of LLMs for Mathematical Formalization in Lean

Tyson Klingner, Drew Bladek, Escher Crawford, Bohao Chen, Ariel Fu +4 more
6/4/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Within the past few years, the ability of Large Language Models (LLMs) to generate formal mathematical proofs has improved drastically. We provide a comparison of various LLMs' effectiveness in producing formal proofs in Lean 4 with the goal of assisting those seeking to use LLMs to support their own projects.

Show full abstract

We utilize both pass@$k$ and refine@$k$ metrics as the benchmark for our comparison and evaluate on subsets of both miniF2F and miniCTX datasets. Our testing shows that overall, Gemini 3.1 Pro and Claude Opus 4.7 perform best. Gemini 3.1 Pro achieved a 92\% success rate on miniF2F via refine@32 whereas Opus 4.7 achieved a 86\% success rate on miniCTX via refine@32. When taking cost into account, NVIDIA Nemotron 3 Super and GPT-OSS 120B were the most efficient, with competitive accuracies and average costs of $<\$0.01$ per correct proof.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{klingner2026evaluation,
  title  = {Evaluation of LLMs for Mathematical Formalization in Lean},
  author = {Tyson Klingner and Drew Bladek and Escher Crawford and Bohao Chen and Ariel Fu and Kaira Nair and Jarod Alper and Giovanni Inchiostro and Vasily Ilin},
  year   = {2026},
  eprint = {2606.05632},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.05632v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.05632.svg)](https://codeofpaper.com/paper/2606.05632)

Discussion