Proving the Coding Interview: A Benchmark for Formally Verified Code Generation
Authors:
- 3 May 2025
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 72-79
Abstract
We introduce the Formally Verified Automated Programming Progress Standards, or FVAPPS, a benchmark of 4715 samples for writing programs and proving their correctness, the largest formal verification benchmark, including 1083 curated and quality controlled samples. Previously, APPS provided a benchmark and dataset for programming puzzles to be completed in Python and checked against unit tests, of the kind seen in technical assessments in the software engineering industry. Building upon recent approaches for benchmarks in interactive theorem proving, we generalize the unit tests to Lean 4 theorems given without proof (i.e., using Lean’s “sorry” keyword). On the 406 theorems of 100 randomly selected samples, Sonnet correctly proves 30% and Gemini correctly proves 18%. We challenge the machine learning and program synthesis communities to solve both each general purpose programming problem and its associated correctness specifications. The benchmark is available at https://huggingface.co/datasets/quinn-dougherty/fvapps.Keywords
All Related Versions
This publication has 7 references indexed in Scilit:
- Clover: Closed-Loop Verifiable Code Generation2024
- Towards AI-Assisted Synthesis of Verified Dafny MethodsProceedings of the ACM on Software Engineering, 2024
- CodeFusion: A Pre-trained Diffusion Model for Code Generation2023
- Hypothesis: A new approach to property-based testingJournal of Open Source Software, 2019
- The Lean Theorem Prover (System Description)2015
- Mining the Archive of Formal Proofs2015
- Isabelle/HOL2002