mlsanityData to 7 Oct 2026

Laurel: Unblocking Automated Verification with Large Language Models

arXiv 2405.16792 ↗First posted 27 May 2024cs.LO cs.AIcited by 10

Not on the map. Why?

Abstract (arXiv)

Program verifiers such as Dafny automate proofs by outsourcing them to an SMT solver. This automation is not perfect, however, and the solver often requires hints in the form of assertions, creating a burden for the proof engineer. In this paper, we propose Laurel, a tool that alleviates this burden by automatically generating assertions using large language models (LLMs). To improve the success rate of LLMs in this task, we design two domain-specific prompting techniques. First, we help the LLM determine the location of the missing assertion by analyzing the verifier's error message and inserting an assertion placeholder at that location. Second, we provide the LLM with example assertions from the same codebase, which we select based on a new proof similarity metric. We evaluate our techniques on our new benchmark DafnyGym, a dataset of complex lemmas we extracted from three real-world Dafny codebases. Our evaluation shows that Laurel is able to generate over 56.6% of the required assertions given only a few attempts, making LLMs an affordable tool for unblocking program verifiers without human intervention.

Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 30 of its 71 references that are in the map. First posted on arXiv 27 May 2024.

Builds on

30 of 71 references.

References · 30

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  5. 2021Program Synthesis with Large Language Modelscited by 3,509
  6. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  7. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  8. 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
  9. 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 358
  10. 2018code2vec: Learning Distributed Representations of Codecited by 249
  11. 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 242
  12. 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
18 more
  1. 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
  2. 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 118
  3. 2023LEGO-Prover: Neural Theorem Proving with Growing Librariescited by 108
  4. 2019Learning to Prove Theorems via Interacting with Proof Assistantscited by 107
  5. 2022An Information-theoretic Approach to Prompt Engineering Without Ground Truth Labelscited by 88
  6. 2023Clover: Closed-Loop Verifiable Code Generationcited by 62
  7. 2024Towards AI-Assisted Synthesis of Verified Dafny Methodscited by 58
  8. 2024A Survey on Deep Learning for Theorem Provingcited by 55
  9. 2023Verus: Verifying Rust Programs using Linear Ghost Types (extended version)cited by 50
  10. 2023Ranking LLM-Generated Loop Invariants for Program Verificationcited by 33
  11. 2024Towards Neural Synthesis for SMT-Assisted Proof-Oriented Programmingcited by 19
  12. 2023A systematic literature review on source code similarity measurement and clone detection: techniques, applications, and challengescited by 14
  13. 2024VerMCTS: Synthesizing Multi-Step Programs using a Verifier, a Large Language Model, and Tree Searchcited by 13
  14. 2023From Words to Code: Harnessing Data for Program Synthesis from Natural Languagecited by 11
  15. 2024Leveraging Large Language Models to Boost Dafny's Developers Productivitycited by 7
  16. 2023Using a Nearest-Neighbour, BERT-Based Approach for Scalable Clone Detectioncited by 4
  17. 2022Flux: Liquid Types for Rustcited by 2
  18. 2023Formal and Executable Semantics of the Ethereum Virtual Machine in Dafnycited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 1; 2026: 7.

10 papers.