Cobblestone: A Divide-and-Conquer Approach for Automating Formal Verification

Saketh Ram Kasibatla, Arpan Agarwal, Yuriy Brun, Sorin Lerner, Talia Ringer +1 more
10/25/2024
cs.LOcs.AIcs.PL

No official code found. Best implementation: sakekasi/cobblestone (4 stars, last commit 2026-01-05).

Abstract

Formal verification using proof assistants, such as Coq, is an effective way of improving software quality, but requires significant effort and expertise. Machine learning can automatically synthesize proofs, but such tools are able to prove only a fraction of desired software properties. We introduce Cobblestone, a divide-and-conquer approach for proof synthesis. Cobblestone uses a large language model (LLM) to generate potential proofs, uses those proofs to break the problem into simpler parts, automatically identifies which of those parts were successfully proven, and iterates on the remaining parts to build a correct proof that is guaranteed to be sound, despite the reliance on unsound LLMs. We evaluate Cobblestone on four benchmarks of open-source Coq projects, controlling for training data leakage. Fully automatically, Cobblestone outperforms state-of-the-art non-LLM tools, and proves many theorems that other LLM-based tools cannot, and on many benchmarks, outperforms them. Each Cobblestone run costs only $1.25 and takes 14.7 minutes, on average. Cobblestone can also be used with external input, from a user or another tool, providing a proof structure or relevant lemmas. Evaluated with such an oracle, Cobblestone proves up to 58% of theorems. Overall, our research shows that tools can make use of partial progress and external input to more effectively automate formal verification.

View on arXivView PDF

Code Implementations(1)

Cobblestone: A Divide-and-Conquer Approach for Automating Formal Verification

40CSS, HTMLAug 21, 20239 months ago

Similar Papers

Cite this paper

@article{kasibatla2024cobblestone,
  title  = {Cobblestone: A Divide-and-Conquer Approach for Automating Formal Verification},
  author = {Saketh Ram Kasibatla and Arpan Agarwal and Yuriy Brun and Sorin Lerner and Talia Ringer and Emily First},
  year   = {2024},
  eprint = {2410.19940},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.19940v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.19940.svg)](https://codeofpaper.com/paper/2410.19940)

Discussion