Dice Question Streamline Icon: https://streamlinehq.com

LLMs for automatic generation of Dafny helper assertions

Determine whether large language models can automatically generate helper assertions for Dafny programs, producing assertion statements that enable the Dafny verifier to discharge failing verification conditions without manual intervention.

Information Square Streamline Icon: https://streamlinehq.com

Background

Dafny proofs often require helper assertions to guide the SMT solver through complex reasoning steps, but crafting these assertions is tedious and error-prone for engineers. The paper introduces Laurel, a tool that uses LLMs to generate such assertions, and evaluates techniques like assertion placeholders and example selection to improve success rates.

The conjecture addresses the fundamental feasibility of employing LLMs to synthesize helper assertions in real-world Dafny codebases, a capability that, if established, could reduce brittleness and manual burden in automated verification.

References

Encouraged by the success of LLMs in program repair and proof synthesis, we conjecture that LLMs can be used to generate helper assertions automatically.

Laurel: Unblocking Automated Verification with Large Language Models (2405.16792 - Mugnier et al., 27 May 2024) in Section 2 (Overview), paragraph "Can LLMs generate helper assertions?"