paperbot · PL 论文追踪

全部论文 待读 收藏

P0 Proof Automation with Large Language Models

基于大语言模型的证明自动化
ASE Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering2024匹配度 9/10 · 论文属于'AI→PL'方向,利用LLM改进Coq形式化验证,采用生成-修复的符号与LLM混合方法,与用户对LLM+形式化验证交叉研究的兴趣高度契合。其问题驱动的研究方式(分析LLM证明错误并针对性修复)也符合用户偏好。引用 10 inbox
Minghai Lu, Benjamin Delaware, Tianyi Zhang
crossref: 2026-09-12

AI 速览

一句话:提出 PALM:让 LLM 先生成证明,再用符号方法迭代修复低层错误,大幅提升 Coq 形式证明自动化成功率。

Coq 等交互式定理证明器能形式化保证软件正确性,但使用门槛高、需大量人工与专业知识。已有大语言模型(LLM)虽能生成自然语言非形式证明,却在生成形式证明时表现不佳。本文通过形成性研究分析 GPT-3.5 产生的 520 个证明生成错误,发现模型常能把握证明的高层结构,但低层细节频繁出错。据此提出 PALM:先由 LLM 生成初始证明,再用针对性的符号方法迭代修复低层问题。作者在含 1 万余条定理的大规模数据集上评估,PALM 比现有最优方法多证明 76.6% 至 180.4% 的定理,并额外证明 1270 条现有方法无法处理的定理;实验还表明该方法可泛化到不同 LLM。

问题
交互式定理证明器(如 Coq)要求大量人工与专业知识,而 LLM 虽擅长生成自然语言证明,却难以生成正确的形式证明。
方法
通过分析 GPT-3.5 的 520 个证明错误发现其高层结构常正确而低层细节易错,据此提出 PALM:先提示 LLM 生成初始证明,再用针对性符号方法迭代修复低层问题。
评估
在包含 1 万余条定理的大规模数据集上与现有最优方法比较,统计证明成功率与新增可证定理数,并测试方法在不同 LLM 上的泛化性。
原文摘要(Abstract)

Interactive theorem provers such as Coq are powerful tools to formally guarantee the correctness of software. However, using these tools requires significant manual effort and expertise. While Large Language Models (LLMs) have shown promise in automatically generating informal proofs in natural language, they are less effective at generating formal proofs in interactive theorem provers. In this paper, we conduct a formative study to identify common mistakes made by LLMs when asked to generate formal proofs. By analyzing 520 proof generation errors made by GPT-3.5, we found that GPT-3.5 often identified the correct high-level structure of a proof, but struggled to get the lower-level details correct. Based on this insight, we propose PALM, a novel generate-then-repair approach that first prompts an LLM to generate an initial proof and then leverages targeted symbolic methods to iteratively repair low-level problems. We evaluate PALM on a large dataset that includes more than 10K theorems. Our results show that PALM significantly outperforms other state-of-the-art approaches, successfully proving 76.6% to 180.4% more theorems. Moreover, PALM proves 1270 theorems beyond the reach of existing approaches. We also demonstrate the generalizability of PALM across different LLMs.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot8358,
  title = {Proof Automation with Large Language Models},
  author = {Minghai Lu and Benjamin Delaware and Tianyi Zhang},
  booktitle = {ASE},
  year = {2024},
  doi = {10.1145/3691620.3695521}
}