Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Thompson, Kyle, Saavedra, Nuno, Carrott, Pedro, Fisher, Kevin, Sanchez-Stern, Alex, Brun, Yuriy, Ferreira, João F., Lerner, Sorin, First, Emily
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909469112270848
author Thompson, Kyle
Saavedra, Nuno
Carrott, Pedro
Fisher, Kevin
Sanchez-Stern, Alex
Brun, Yuriy
Ferreira, João F.
Lerner, Sorin
First, Emily
author_facet Thompson, Kyle
Saavedra, Nuno
Carrott, Pedro
Fisher, Kevin
Sanchez-Stern, Alex
Brun, Yuriy
Ferreira, João F.
Lerner, Sorin
First, Emily
contents Formal verification using proof assistants, such as Coq, enables the creation of high-quality software. However, the verification process requires significant expertise and manual effort to write proofs. Recent work has explored automating proof synthesis using machine learning and large language models (LLMs). This work has shown that identifying relevant premises, such as lemmas and definitions, can aid synthesis. We present Rango, a fully automated proof synthesis tool for Coq that automatically identifies relevant premises and also similar proofs from the current project and uses them during synthesis. Rango uses retrieval augmentation at every step of the proof to automatically determine which proofs and premises to include in the context of its fine-tuned LLM. In this way, Rango adapts to the project and to the evolving state of the proof. We create a new dataset, CoqStoq, of 2,226 open-source Coq projects and 196,929 theorems from GitHub, which includes both training data and a curated evaluation benchmark of well-maintained projects. On this benchmark, Rango synthesizes proofs for 32.0% of the theorems, which is 29% more theorems than the prior state-of-the-art tool Tactician. Our evaluation also shows that Rango adding relevant proofs to its context leads to a 47% increase in the number of theorems proven.
format Preprint
id arxiv_https___arxiv_org_abs_2412_14063
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification
Thompson, Kyle
Saavedra, Nuno
Carrott, Pedro
Fisher, Kevin
Sanchez-Stern, Alex
Brun, Yuriy
Ferreira, João F.
Lerner, Sorin
First, Emily
Software Engineering
Artificial Intelligence
D.2.4; I.2.7; I.2.3
Formal verification using proof assistants, such as Coq, enables the creation of high-quality software. However, the verification process requires significant expertise and manual effort to write proofs. Recent work has explored automating proof synthesis using machine learning and large language models (LLMs). This work has shown that identifying relevant premises, such as lemmas and definitions, can aid synthesis. We present Rango, a fully automated proof synthesis tool for Coq that automatically identifies relevant premises and also similar proofs from the current project and uses them during synthesis. Rango uses retrieval augmentation at every step of the proof to automatically determine which proofs and premises to include in the context of its fine-tuned LLM. In this way, Rango adapts to the project and to the evolving state of the proof. We create a new dataset, CoqStoq, of 2,226 open-source Coq projects and 196,929 theorems from GitHub, which includes both training data and a curated evaluation benchmark of well-maintained projects. On this benchmark, Rango synthesizes proofs for 32.0% of the theorems, which is 29% more theorems than the prior state-of-the-art tool Tactician. Our evaluation also shows that Rango adding relevant proofs to its context leads to a 47% increase in the number of theorems proven.
title Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification
topic Software Engineering
Artificial Intelligence
D.2.4; I.2.7; I.2.3
url https://arxiv.org/abs/2412.14063