Leveraging Large Language Models for Automated Proof Synthesis in Rust
Not on the map. Why?
Abstract (arXiv)
Formal verification can provably guarantee the correctness of critical system software, but the high proof burden has long hindered its wide adoption. Recently, Large Language Models (LLMs) have shown success in code analysis and synthesis. In this paper, we present a combination of LLMs and static analysis to synthesize invariants, assertions, and other proof structures for a Rust-based formal verification framework called Verus. In a few-shot setting, LLMs demonstrate impressive logical ability in generating postconditions and loop invariants, especially when analyzing short code snippets. However, LLMs lack the ability to retain and propagate context information, a strength of traditional static analysis. Based on these observations, we developed a prototype based on OpenAI's GPT-4 model. Our prototype decomposes the verification task into multiple smaller ones, iteratively queries GPT-4, and combines its output with lightweight static analysis. We evaluated the prototype with a developer in the automation loop on 20 vector-manipulating programs. The results demonstrate that it significantly reduces human effort in writing entry-level proof code.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 9 of its 26 references that are in the map. First posted on arXiv 7 Nov 2023.
Builds on
9 of 26 references.
References · 9
- 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 118
- 2019Learning to Prove Theorems via Interacting with Proof Assistantscited by 107
- 2023Verus: Verifying Rust Programs using Linear Ghost Types (extended version)cited by 50
- 2019CLN2INV: Learning Loop Invariants with Continuous Logic Networkscited by 20
- 2021Diffy: Inductive Reasoning of Array Programs using Difference Invariantscited by 5
- 2020Data-Driven Inference of Representation Invariantscited by 4
- 2013Learning Universally Quantified Invariants of Linear Data Structurescited by 2
- 2021Beyond the Elementary Representations of Program Invariants over Algebraic Data Typescited by 2
- 2021Inferring Invariants with Quantifier Alternations: Taming the Search Space Explosioncited by 1
Built on by
Citing papers per year: 2024: 4; 2025: 4; 2026: 3.
11 papers.
- 2024A Survey on Deep Learning for Theorem Provingcited by 55
- 2024Automated Proof Generation for Rust Code via Self-Evolutioncited by 31
- 2024Towards Neural Synthesis for SMT-Assisted Proof-Oriented Programmingcited by 19
- 2024miniCodeProps: a Minimal Benchmark for Proving Code Propertiescited by 18
- 2025Next Steps in LLM-Supported Java Verificationcited by 3
- 2025Can LLMs Enable Verification in Mainstream Programming?cited by 3
- 2025Inferring multiple helper Dafny assertions with LLMscited by 3
- 2026Doc2Spec: Synthesizing Formal Programming Specifications from Natural Language via Grammar Inductioncited by 2
- 2025The 4/δ Bound: Designing Predictable LLM-Verifier Systems for Formal Method Guaranteecited by 1
- 2026ExVerus: Verus Proof Repair via Counterexample Reasoningcited by 1
- 2026An Empirical Study of LLM-Generated Specifications for VeriFastcited by 0
- 2026An Empirical Study of LLM-Generated Specifications for VeriFast25 Jun 2026
- 2026ExVerus: Verus Proof Repair via Counterexample Reasoning26 Mar 2026
- 2026Doc2Spec: Synthesizing Formal Programming Specifications from Natural Language via Grammar Induction30 Jan 2026
- 2025The 4/δ Bound: Designing Predictable LLM-Verifier Systems for Formal Method Guarantee30 Nov 2025
- 2025Inferring multiple helper Dafny assertions with LLMs31 Oct 2025
- 2025Can LLMs Enable Verification in Mainstream Programming?18 Mar 2025
- 2025Next Steps in LLM-Supported Java Verification3 Feb 2025
- 2024Automated Proof Generation for Rust Code via Self-Evolution21 Oct 2024
- 2024miniCodeProps: a Minimal Benchmark for Proving Code Properties16 Jun 2024
- 2024Towards Neural Synthesis for SMT-Assisted Proof-Oriented Programming3 May 2024
- 2024A Survey on Deep Learning for Theorem Proving15 Apr 2024