mlsanityData to 7 Oct 2026

Leveraging Large Language Models for Automated Proof Synthesis in Rust

arXiv 2311.03739 ↗First posted 7 Nov 2023cs.FL cs.AIcited by 11

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

  1. 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 118
  2. 2019Learning to Prove Theorems via Interacting with Proof Assistantscited by 107
  3. 2023Verus: Verifying Rust Programs using Linear Ghost Types (extended version)cited by 50
  4. 2019CLN2INV: Learning Loop Invariants with Continuous Logic Networkscited by 20
  5. 2021Diffy: Inductive Reasoning of Array Programs using Difference Invariantscited by 5
  6. 2020Data-Driven Inference of Representation Invariantscited by 4
  7. 2013Learning Universally Quantified Invariants of Linear Data Structurescited by 2
  8. 2021Beyond the Elementary Representations of Program Invariants over Algebraic Data Typescited by 2
  9. 2021Inferring Invariants with Quantifier Alternations: Taming the Search Space Explosioncited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 4; 2025: 4; 2026: 3.

11 papers.