paper-with-me

Papers

Neural Theorem Proving: Generating and Structuring Proofs for Formal Verification

2025-04-23 · Balaji Rao, William Eiers, Carlo Lipizzi

Formally verifying properties of software code has been a highly desirable task, especially with the emergence of LLM-generated code. In the same vein, they provide an interesting avenue for the exploration of formal verification and mechanistic interpretability. Since the introduction of code-specific models, despite their successes in generating code in Lean4 and Isabelle, the task of generalized theorem proving still remains far from being fully solved and will be a benchmark for reasoning capability in LLMs. In this work, we introduce a framework that generates whole proofs in a formal language to be used within systems that utilize the power of built-in tactics and off-the-shelf automated theorem provers. Our framework includes 3 components: generating natural language statements of the code to be verified, an LLM that generates formal proofs for the given statement, and a module employing heuristics for building the final proof. To train the LLM, we employ a 2-stage fine-tuning process, where we first use SFT-based training to enable the model to generate syntactically correct Isabelle code and then RL-based training that encourages the model to generate proofs verified by a theorem prover. We validate our framework using the miniF2F-test benchmark and the Isabelle proof assistant and design a use case to verify the correctness of the AWS S3 bucket access policy code. We also curate a dataset based on the FVEL\textsubscript{\textnormal{ER}} dataset for future training tasks.

📄 PDF Abstract BibTeX arXiv:2504.17017

Code (0)

등록된 구현이 없습니다.

Tasks

Automated Theorem Proving

Similar Papers 제목 키워드 기반

TheoremLlama: Transforming General-Purpose LLMs into Lean4 Experts

2024-07-03 · Ruida Wang, Jipeng Zhang, Yizhen Jia, Rui Pan 외

Proving mathematical theorems using computer-verifiable formal languages like Lean significantly impacts mathematical reasoning. One approach to formal theorem proving involves generating complete proofs using Large Lang…

Automated Theorem ProvingCode GenerationDataset GenerationMathematical Reasoning

Generating Millions Of Lean Theorems With Proofs By Exploring State Transition Graphs

2025-02-16 · David Yin, Jing Gao

Large Language Models (LLMs) have demonstrated significant potential in generating mathematical proofs. However, a persistent challenge is that LLMs occasionally make mistakes, while even a minor mistake can invalidate a…

Automated Theorem ProvingMathematical Proofs

Proof Automation with Large Language Models

2024-09-22 · Minghai Lu, Benjamin Delaware, Tianyi Zhang

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…

APOLLO: Automated LLM and Lean Collaboration for Advanced Formal Reasoning

2025-05-09 · Azim Ospanov, Farzan Farnia, Roozbeh Yousefzadeh

Formal reasoning and automated theorem proving constitute a challenging subfield of machine learning, in which machines are tasked with proving mathematical theorems using formal languages like Lean. A formal verificatio…

Automated Theorem Proving

Enhancing Formal Theorem Proving: A Comprehensive Dataset for Training AI Models on Coq Code

2024-03-19 · Andreas Florath

In the realm of formal theorem proving, the Coq proof assistant stands out for its rigorous approach to verifying mathematical assertions and software correctness. Despite the advances in artificial intelligence and mach…

Automated Theorem ProvingCode GenerationLEMMAvalid