Lune

NeurIPS2022Top-tier venue

Autoformalization with Large Language Models

Yuhuai Wu, Albert Qiaochu Jiang, Wenda Li, Markus N. Rabe, Charles Staats, Mateja Jamnik, Christian Szegedy

Abstract

Autoformalization is the process of automatically translating from natural language mathematics to formal specifications and proofs. A successful autoformalization system could advance the fields of formal verification, program synthesis, and artificial intelligence. While the long-term goal of autoformalization seemed elusive for a long time, we show large language models provide new prospects towards this goal. We make the surprising observation that LLMs can correctly translate a significant portion (25.3%25.3\%) of mathematical competition problems perfectly to formal specifications in Isabelle/HOL. We demonstrate the usefulness of this process by improving a previously introduced neural theorem prover via training on these autoformalized theorems. Our methodology results in a new state-of-the-art result on the MiniF2F theorem proving benchmark, improving the proof rate from 29.6%29.6\% to 35.2%35.2\%.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

81 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Llemma: An Open Language Model for Mathematics cites Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers
  • Llemma: An Open Language Model for Mathematics cites PAL: Program-aided Language Models
  • Llemma: An Open Language Model for Mathematics cites Proof Artifact Co-Training for Theorem Proving with Language Models
  • Llemma: An Open Language Model for Mathematics cites Solving Quantitative Reasoning Problems with Language Models
  • Llemma: An Open Language Model for Mathematics cites Language Models are Few-Shot Learners
  • Llemma: An Open Language Model for Mathematics cites miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
  • Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers cites Proof Artifact Co-Training for Theorem Proving with Language Models
  • Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers cites miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
  • PAL: Program-aided Language Models cites Solving Quantitative Reasoning Problems with Language Models
  • PAL: Program-aided Language Models cites Language Models are Few-Shot Learners
  • Proof Artifact Co-Training for Theorem Proving with Language Models cites Language Models are Few-Shot Learners
  • Solving Quantitative Reasoning Problems with Language Models cites Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers
  • Solving Quantitative Reasoning Problems with Language Models cites Proof Artifact Co-Training for Theorem Proving with Language Models
  • Solving Quantitative Reasoning Problems with Language Models cites Language Models are Few-Shot Learners
  • Memorizing Transformers cites Language Models are Few-Shot Learners
  • LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers
  • LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Proof Artifact Co-Training for Theorem Proving with Language Models
  • LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Solving Quantitative Reasoning Problems with Language Models
  • LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Language Models are Few-Shot Learners
  • LEGO-Prover: Neural Theorem Proving with Growing Libraries cites miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
  • miniF2F: a cross-system benchmark for formal Olympiad-level mathematics cites Proof Artifact Co-Training for Theorem Proving with Language Models
  • miniF2F: a cross-system benchmark for formal Olympiad-level mathematics cites Language Models are Few-Shot Learners
  • Reasoning with Language Model Prompting: A Survey cites PAL: Program-aided Language Models
  • Reasoning with Language Model Prompting: A Survey cites Solving Quantitative Reasoning Problems with Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers81

  1. Solving Quantitative Reasoning Problems with Language ModelsAitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer et al.NeurIPS 2022 · 2,039 citations
  2. PAL: Program-aided Language ModelsLuyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon et al.ICML 2023 · 700 citations
  3. Llemma: An Open Language Model for MathematicsZhangir Azerbayev, Hailey Schoelkopf, Keiran Paster, Marco Dos Santos et al.ICLR 2024 · 433 citations
  4. LEGO-Prover: Neural Theorem Proving with Growing LibrariesHaiming Wang, Huajian Xin, Chuanyang Zheng, Zhengying Liu et al.ICLR 2024 · 125 citations
  5. Reasoning with Language Model Prompting: A SurveyShuofei Qiao, Yixin Ou, Ningyu Zhang, Xiang Chen et al.ACL 2023 · 124 citations

Builds on13

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. miniF2F: a cross-system benchmark for formal Olympiad-level mathematicsKunhao Zheng, Jesse Michael Han, Stanislas PoluICLR 2022 · 342 citations
  3. Memorizing TransformersYuhuai Wu, Markus Norman Rabe, DeLesley Hutchins, Christian SzegedyICLR 2022 · 231 citations
  4. Thor: Wielding Hammers to Integrate Language Models and Automated Theorem ProversAlbert Qiaochu Jiang, Wenda Li, Szymon Tworkowski, Konrad Czechowski et al.NeurIPS 2022 · 154 citations
  5. Proof Artifact Co-Training for Theorem Proving with Language ModelsJesse Michael Han, Jason Rute, Yuhuai Wu, Edward W. Ayers et al.ICLR 2022 · 149 citations

Related papers

  1. Autoformalize Mathematical Statements by Symbolic Equivalence and Semantic ConsistencyZenan Li, Yifan Wu, Zhaoyu Li, Xinming Wei et al.NeurIPS 2024 · 48 citations
  2. Mathesis: Towards Formal Theorem Proving from Natural LanguagesXuejun Yu, Jianyuan Zhong, Zijin Feng, Pengyi Zhai et al.ICLR 2026 · 15 citations
  3. miniF2F-Lean Revisited: Reviewing Limitations and Charting a Path ForwardAzim Ospanov, Farzan Farnia, Roozbeh MohitNeurIPS 2025 · 14 citations
  4. Don't Trust: Verify - Grounding LLM Quantitative Reasoning with AutoformalizationJin Peng Zhou, Charles Staats, Wenda Li, Christian Szegedy et al.ICLR 2024 · 72 citations
  5. RLMEval: Evaluating Research-Level Neural Theorem ProvingAuguste Poiroux, Antoine Bosselut, Viktor KuncakEMNLP Findings 2025
Dusk over the sea between two cliffs drawn in fine vertical lines