atlas

Research map / Large language models / Agents, code and math

FVEL: Interactive Formal Verification Environment with Large Language Models via Theorem Proving

NeurIPS 2024 · Large language models › Agents, code and math · approach: Formal verification and proof data · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes FVEL, an interactive environment that translates C code into Isabelle and verifies it via LLM-driven theorem proving, plus the FVEL dataset extracted from seL4 proofs, and LoRA fine-tunes Llama-3-8B and Mistral-7B on it.

Problem

Current formal verification of code relies on symbolic verifiers or hand-crafted rules that limit flexible verification, while LLMs' formal reasoning ability in interactive theorem proving remains underexplored for code verification.

Approach

Transform C code into Isabelle definitions (via C-Parser and AutoCorres) and let an LLM generate lemma specifications and step-wise proofs interacting with the Isabelle prover through PISA, with feedback from the prover; supported by a large dataset of seL4 theories, lemmas and proof steps.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Fine-tune Mistral-7B on FVELERMistral-7B in FVEL · SV-COMP (1,000)verified tasks: 75 -> 84Helped
Fine-tune Llama3-8B on FVELERLlama3-8B in FVEL · SV-COMP (1,000)verified tasks: 69 -> 81Helped
Fine-tune Mistral-7B on FVELERMistral-7B in FVEL · Code2Invverified tasks: 37 -> 40Helped
Fine-tune Llama3-8B on FVELERLlama3-8B in FVEL · Code2Invverified tasks: 46 -> 46No clear effect
Fine-tune Mistral-7B on FVELERMistral-7B in FVEL · SV-COMP-47verified tasks: 10 -> 14Helped
Fine-tune Llama3-8B on FVELERLlama3-8B in FVEL · SV-COMP-47verified tasks: 11 -> 16Helped
Fine-tune Mistral-7B on FVELERMistral-7B in FVEL · SV-COMPproof error (%): 50.3 -> 41.0Helped
Fine-tune Llama3-8B on FVELERLlama3-8B in FVEL · SV-COMPproof error (%): 47.0 -> 38.2Helped
Fine-tune Mistral-7B on FVELERMistral-7B in FVEL · Code2Invstatement error (%): 70.8 -> 72.0Hurt
Fine-tune Llama3-8B on FVELERLlama3-8B in FVEL · Code2Invstatement error (%): 67.8 -> 66.7Helped
Fine-tune Mistral-7B on FVELERMistral-7B in FVEL · FVELER test splitproof correctness (%): 2.4% -> 6.9%Helped
Fine-tune Llama-3-8B on FVELERLlama-3-8B in FVEL · FVELER test splitproof correctness (%): 3.6% -> 8.1%Helped

Surprising findings

Limitations

Experimental setup

Datasets: FVEL dataset (seL4-derived Isabelle theories, lemmas, proof steps) Code2Inv SV-COMP

Benchmarks: Code2Inv SV-COMP-47 SV-COMP-1000 FVEL test FVEL test-hard

Metrics: number of problems passed proof error proportion statement error proportion pass rate

Baselines: UAutomizer ESBMC Lemur-GPT-3.5-turbo Lemur-GPT-4 Mistral-7B Llama3-8B

Builds on: PISA Lemur LoRA AutoCorres C-Parser

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy