SEAILGLOPLSep 22, 2024

Proof Automation with Large Language Models

arXiv:2409.14274v132 citationsh-index: 2
Originality Incremental advance
AI Analysis

This addresses the challenge of reducing manual effort in formal verification for software developers, representing a strong specific gain rather than a broad paradigm shift.

The paper tackled the problem of automating formal proof generation in interactive theorem provers like Coq by analyzing common errors in LLMs and proposing a generate-then-repair approach, resulting in PALM proving 76.6% to 180.4% more theorems and 1270 theorems beyond existing methods.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes