Verified but Vacuous: Three Failure Surfaces of LLM-Driven Verified Code Generation

Aditya Vempaty, Ravi Kokku and colleagues at Emergence AI argue that "verified" LLM-generated code bundles three separate properties and show that a single verification number can hide large gaps between them.
Ask this paper
Three surfaces. Surface A is verifier acceptance, Surface B is whether the proof obligation binds to the specification, and Surface C is whether the specification captures the informal requirement.
A vs B. A same-model reproduction of a Dafny-as-intermediate pipeline under Claude Opus 4.7 reaches 99.1% verifier acceptance on HumanEval, but only 1.9% of outputs carry a certificate bound to a spec-defined predicate or function, a roughly fortyfold gap across three Python benchmarks.
B vs C. With their own pipeline (VCG) on Rust, where spec binding is enforced by construction, 11.48% (MBPP-Rust) and 14.82% (VeriContest LC) of structurally verified samples still fail hidden tests.
End-to-end. VCG reports 7.79% End2End on the VeriContest LC slice (535 of 6,870), against cited external rates of 5.51% for GPT-5.5 and 1.88% for single-shot Opus 4.7. Budgets and repair are not matched.
Recommendation. Pipelines that ship certificates should report Surface B or C alongside acceptance, and preferably both.
Abstract
What should ``verified'' mean when evaluating LLM-generated code? Many existing pipelines report a single verification number. We argue this collapses three distinct properties measured in a conditional audit sequence: verifier acceptance (Surface A), \emph{syntactic specification binding (Surface B: does the proof obligation bind to the spec?), and \emph{semantic specification fidelity} (Surface C: does the spec capture the informal requirement?). Two empirical demonstrations show the surfaces separate. \textbf{First ($A \neq B$), via Li@Opus (a same-model reproduction of \citet{li2025dafny}'s Dafny-as-intermediate-representation (IR) pipeline under Claude Opus 4.7) on three Python benchmarks}: it reaches \textbf{99.1\% verifier acceptance} on HumanEval while only \textbf{1.9\%} carry a certificate binding to a spec-defined predicate or function. \textbf{Second ($B \neq C$), via VCG on two Rust benchmarks}: we use VCG (which is our own in-house Dafny-as-intermediate pipeline) on Rust because the Rust target lets us enforce fully-verifiable output (every component ships as a Dafny certificate, ensures-binding gate passing by construction). Even inside that construction, \textbf{11.48\% (MBPP-Rust) and 14.82\% (VeriContest LC slice) of structurally-verified samples still fail hidden tests}. On the LC slice of VeriContest, \textbf{VCG's reported End2End rate is 7.79\% (535/6870).} The cited external rates are 5.51\% (GPT-5.5) and 1.88\% (single-shot Opus 4.7). These give descriptive differences of 2.3 percentage points and 4.14$\times$, respectively; task-budget, repair and harness differences prevent a matched-performance claim.