Baldur: Whole-Proof Generation and Repair with Large Language Models
摘要
Formally verifying software properties is a highly desirable but labor-intensive task. Recent work has developed methods to automate formal verification using proof assistants, such as Coq and Isabelle/HOL, e.g., by training a model to predict one proof step at a time, and using that model to search through the space of possible proofs. This paper introduces a new method to automate formal verification: We use large language models, trained on natural language text and code and fine-tuned on proofs, to generate whole proofs for theorems at once, rather than one step at a time. We combine this proof generation model with a fine-tuned repair model to repair generated proofs, further increasing proving power. As its main contributions, this paper demonstrates for the first time that: (1) Whole-proof generation using transformers is possible and is as effective as search-based techniques without requiring costly search. (2) Giving the learned model additional context, such as a prior failed proof attempt and the ensuing error message, results in proof repair and further improves automated proof generation.
(3) We establish a new state of the art for fully automated proof synthesis. We reify our method in a prototype, Baldur, and evaluate it on a benchmark of 6,336 Isabelle/HOL theorems and their proofs. In addition to empirically showing the effectiveness of whole-proof generation, repair, and added context, we show that Baldur improves on the state-of-the-art tool, Thor, by automatically generating proofs for an additional 8.7% of the theorems. Together, Baldur and Thor can prove 65.7% of the theorems fully automatically. This paper paves the way for new research into using large language models for automating formal verification.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 77 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Llemma: An Open Language Model for Mathematics 引用了 Solving Quantitative Reasoning Problems with Language Models
- Llemma: An Open Language Model for Mathematics 引用了 Language Models are Few-Shot Learners
- Llemma: An Open Language Model for Mathematics 引用了 Autoformalization with Large Language Models
- Llemma: An Open Language Model for Mathematics 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Llemma: An Open Language Model for Mathematics 引用了 HyperTree Proof Search for Neural Theorem Proving
- Lemur: Integrating Large Language Models in Automated Program Verification 引用了 Solving Quantitative Reasoning Problems with Language Models
- Lemur: Integrating Large Language Models in Automated Program Verification 引用了 Language Models are Few-Shot Learners
- Lemur: Integrating Large Language Models in Automated Program Verification 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Solving Quantitative Reasoning Problems with Language Models 引用了 Language Models are Few-Shot Learners
- Solving Quantitative Reasoning Problems with Language Models 引用了 Autoformalization with Large Language Models
- Solving Quantitative Reasoning Problems with Language Models 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- LEGO-Prover: Neural Theorem Proving with Growing Libraries 引用了 Solving Quantitative Reasoning Problems with Language Models
- LEGO-Prover: Neural Theorem Proving with Growing Libraries 引用了 Language Models are Few-Shot Learners
- LEGO-Prover: Neural Theorem Proving with Growing Libraries 引用了 Autoformalization with Large Language Models
- LEGO-Prover: Neural Theorem Proving with Growing Libraries 引用了 HyperTree Proof Search for Neural Theorem Proving
- Autoformalization with Large Language Models 引用了 Language Models are Few-Shot Learners
引用它的顶会 Paper77
- Llemma: An Open Language Model for MathematicsZhangir Azerbayev, Hailey Schoelkopf, Keiran Paster, Marco Dos Santos 等ICLR 2024 · 433 次引用
- Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-CorrectionYong Lin, Shange Tang, Bohan Lyu, Ziran Yang 等ICLR 2026 · 160 次引用
- LEGO-Prover: Neural Theorem Proving with Growing LibrariesHaiming Wang, Huajian Xin, Chuanyang Zheng, Zhengying Liu 等ICLR 2024 · 125 次引用
- Lemur: Integrating Large Language Models in Automated Program VerificationHaoze Wu, Clark W. Barrett, Nina NarodytskaICLR 2024 · 67 次引用
- How Beginning Programmers and Code LLMs (Mis)read Each OtherSydney Nguyen, Hannah McLean Babe, Yangtian Zi, Arjun Guha 等CHI 2024 · 66 次引用
它引用的 Paper18
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma 等NeurIPS 2022 · 22,562 次引用
- Solving Quantitative Reasoning Problems with Language ModelsAitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer 等NeurIPS 2022 · 2,039 次引用
- Autoformalization with Large Language ModelsYuhuai Wu, Albert Qiaochu Jiang, Wenda Li, Markus N. Rabe 等NeurIPS 2022 · 364 次引用
- HyperTree Proof Search for Neural Theorem ProvingGuillaume Lample, Timothée Lacroix, Marie-Anne Lachaux, Aurélien Rodriguez 等NeurIPS 2022 · 271 次引用
相关 Paper
- Proof Automation with Large Language ModelsMinghai Lu, Benjamin Delaware, Tianyi ZhangASE 2024 · 9 次引用
- Cobblestone: A Divide-and-Conquer Approach for Automating Formal VerificationSaketh Ram Kasibatla, Arpan Agrawal, Yuriy Brun, Sorin Lerner 等ICSE 2026 · 3 次引用
- ExVerus: Verus Proof Repair via Counterexample ReasoningJun Yang, Yuechun Sun, Yi Wu, Rodrigo Caridad 等ICML 2026 · 3 次引用
- Neuro-Symbolic Proof Generation for Scaling Systems Software VerificationBaoding He, Zenan Li, Wei Sun, Yuan Yao 等OSDI 2026
- NaturalProver: Grounded Mathematical Proof Generation with Language ModelsSean Welleck, Jiacheng Liu, Ximing Lu, Hannaneh Hajishirzi 等NeurIPS 2022 · 108 次引用
