A benchmark for vericoding:
formally verified program synthesis

Sergiu Bursuc
Abstract

We present and test the largest benchmark for vericoding , LLM-generation of formally verified code from formal specifications โ€” in contrast to vibe coding , which generates potentially buggy code from a natural language description.

3 Benchmark Construction

3.2 Original sources and task generation

  1. 1.

    Formal verification or vericoding benchmarks such as DafnyBench ( Loughridge etย al., 2025 ) for Dafny, VerifiedCogen ( JetBrains-Research, 2025 ) for Verus, and Verina ( Ye etย al., 2025 ) and Clever ( Thakur etย al., 2025 ) for Lean.

3.3 Spec translations and validation

\got@maxcolwd ๐–ฒ๐—‰๐–พ๐–ผ๐–ณ๐—‹๐–บ๐—‡๐—Œ๐—…๐–บ๐—๐—ˆ๐—‹โก(โ„’๐—Œ๐—ˆ๐—Ž๐—‹๐–ผ๐–พ,โ„’๐—๐–บ๐—‹๐—€๐–พ๐—,๐’ฎ,k,โ„ณ)\mathsf{SpecTranslator}(\mathcal{L}_{\mathsf{source}},\mathcal{L}_{\mathsf{target}},\mathcal{S},k,\mathcal{M}) โ€ƒ // for specification ๐’ฎ\mathcal{S}, iterations kk, and LLM โ„ณ\mathcal{M}ย  Hโ†โˆ…,๐’ซโ†๐–ก๐—Ž๐—‚๐—…๐–ฝ๐–ฏ๐—‹๐—ˆ๐—†๐—‰๐—โก(โ„’๐—Œ๐—ˆ๐—Ž๐—‹๐–ผ๐–พ,โ„’๐—๐–บ๐—‹๐—€๐–พ๐—,๐’ฎ,๐š๐š›๐šŠ๐š—๐šœ๐š•๐šŠ๐š๐šŽ)\displaystyle\vphantom{\rule[2.15277pt]{0.0pt}{0.0pt}}\quad H\leftarrow\emptyset,\mathcal{P}\leftarrow\mathsf{BuildPrompt}(\mathcal{L}_{\mathsf{source}},\mathcal{L}_{\mathsf{target}},\mathcal{S},\mathtt{translate}) ๐Ÿ๐จ๐ซโ€‹iโˆˆ{1,โ€ฆ,k}โ€‹๐๐จ:ย // generate or fix translation, verify file in target language, and update history\displaystyle\quad\mathbf{for}\ i\in\{1,\ldots,k\}\ \mathbf{do}\,:\text{\hskip 10.00002pt\hfill{\text{{// generate or fix translation, verify file in target language, and update history}}}} ๐’ฎโ€ฒโ†โ„ณโก(๐’ซ),(v,e)โ†๐–ต๐–พ๐—‹๐—‚๐–ฟ๐—’๐–ฅ๐—‚๐—…๐–พโก(โ„’๐—๐–บ๐—‹๐—€๐–พ๐—,๐’ฎโ€ฒ),Hโ†Hโˆช{๐’ฎโ€ฒ,v,e}\displaystyle\quad\quad\mathcal{S}^{\prime}\leftarrow\mathcal{M}(\mathcal{P}),(v,e)\leftarrow\mathsf{VerifyFile}(\mathcal{L}_{\mathsf{target}},\mathcal{S}^{\prime}),H\leftarrow H\cup\{\mathcal{S}^{\prime},v,e\} ๐ข๐Ÿโ€‹vโ€‹๐ญ๐ก๐ž๐งโ€‹๐ซ๐ž๐ญ๐ฎ๐ซ๐งโ€‹(๐’ฎโ€ฒ,๐šœ๐šž๐šŒ๐šŒ๐šŽ๐šœ๐šœ)โ€‹๐ž๐ฅ๐ฌ๐žโ€‹๐’ซโ†๐–ก๐—Ž๐—‚๐—…๐–ฝ๐–ฏ๐—‹๐—ˆ๐—†๐—‰๐—โก(โ„’๐—Œ๐—ˆ๐—Ž๐—‹๐–ผ๐–พ,โ„’๐—๐–บ๐—‹๐—€๐–พ๐—,๐’ฎ,๐š๐š’๐šก,๐’ฎโ€ฒ,H)\displaystyle\quad\quad\mathbf{if}\ v\ \mathbf{then}\ \mathbf{return}\ (\mathcal{S}^{\prime},\mathtt{success})\,\mathbf{else}\ \mathcal{P}\leftarrow\mathsf{BuildPrompt}(\mathcal{L}_{\mathsf{source}},\mathcal{L}_{\mathsf{target}},\mathcal{S},\mathtt{fix},\mathcal{S}^{\prime},H) ๐ซ๐ž๐ญ๐ฎ๐ซ๐งโก(๐’ฎโ€ฒ,๐š๐šŠ๐š’๐š•)\displaystyle\quad\mathbf{return}\ (\mathcal{S}^{\prime},\mathtt{fail})