PreprintCited by 7Software Engineering ResearchLogic, programming, and type systemsSoftware Testing and Debugging Techniques

VERINA: Benchmarking Verifiable Code Generation

Open access
Ye, Zhe, Yan, Zhengxu, He, Jingxuan, Kasriel, Timothe, Yang, Kaiyu, Song, Dawn·2025·arXiv

Abstract

Large language models (LLMs) are increasingly integrated in software development, but ensuring correctness in LLM-generated code remains challenging and often requires costly manual review. Verifiable code generation -- jointly generating code, specifications, and proofs of code-specification alignment -- offers a promising path to address this limitation and further unleash LLMs' benefits in coding. Yet, there exists a significant gap in evaluation: current benchmarks often focus on only individual components rather than providing a holistic evaluation framework of all tasks. In this paper, we introduce VERINA (Verifiable Code Generation Arena), a high-quality benchmark enabling a comprehensive and modular evaluation of code, specification, and proof generation as well as their compositions. VERINA consists of 189 manually curated coding tasks in Lean, with detailed problem descriptions, reference implementations, formal specifications, and extensive test suites. Our extensive evaluation of state-of-the-art LLMs reveals significant challenges in verifiable code generation, especially in proof generation, underscoring the need for improving LLM-based theorem provers in verification domains. The best model, OpenAI o3, achieves a 72.6\% code correctness rate, 52.3\% for specification soundness and completeness, and a mere 4.9\% proof success rate (based on one trial per task). We hope VERINA will catalyze progress in verifiable code generation by providing a rigorous and comprehensive benchmark. We release our dataset on https://huggingface.co/datasets/sunblaze-ucb/verina and our evaluation code on https://github.com/sunblaze-ucb/verina.

AI snapshot

Written from the paper’s full text.

TL;DR

VERINA is a 189-task Lean benchmark for modular evaluation of code, specification, and proof generation, including their combinations. It finds proof generation remains extremely difficult for state-of-the-art LLMs, with the best model, OpenAI o4-mini, achieving only 3.6% successful proofs.

Key findings

  • VERINA contains 189 manually curated Lean coding tasks with natural-language descriptions, reference implementations, formal specifications, and test suites; 46 of 189 examples also have manually written ground-truth proofs.
  • The best model, OpenAI o4-mini, generates 61.4% correct code, 51.0% sound and complete specifications, and 3.6% successful proofs, with one trial per task.
  • Proof generation is the hardest foundational task: pass@1 rates are below 3.6% for all evaluated models. Iterative proof refinement improves o4-mini from 7.41% to 22.22% on VERINA-BASIC after 64 iterations, but gains are much smaller on VERINA-ADV (1.23% to 6.17%).
  • Providing ground-truth specifications consistently improves CodeGen, while providing ground-truth code shows minimal or negative improvement for SpecGen; using LLM-generated code or specifications as context generally degrades performance.

Methods

  • Benchmark construction: VERINA-BASIC combines 49 manually translated MBPP-DFY-50 Dafny problems and 59 CloverBench Dafny instances translated into Lean with OpenAI o3-mini few-shot prompting followed by manual inspection and correction. VERINA-ADV consists of 81 selected and manually reviewed student Lean submissions adapted from theorem-proving and program-verification coursework.
  • Evaluation covers three foundational tasks—CodeGen, SpecGen, and ProofGen—and their combinations. CodeGen is evaluated by positive tests and pass@k; ProofGen is checked by Lean, with proofs containing placeholders such as `sorry` marked incorrect; SpecGen soundness and completeness are evaluated through a testing-based Lean framework using `decide` and property-based testing with `plausible`, with error bars for unknown outcomes.
  • Experimental setup: nine state-of-the-art LLMs are evaluated with 2-shot prompting, five samples per instance, pass@1 primarily reported, temperature 1.0, and a 10,000-token maximum output budget. Iterative proof refinement is evaluated for four best-performing models up to 64 rounds.

Limitations

  • The paper states that VERINA’s size (189 examples) is modest; scaling to a larger dataset suitable for finetuning likely requires automated annotation with LLM assistance. It also states that VERINA emphasizes simple, standalone tasks that are not fully representative of complex real-world verification projects, and that the SpecGen metric could be improved by more capable provers, including LLM- or SMT-based provers, to prove soundness/completeness relationships. The paper also notes a risk of data contamination because underlying task topics are drawn from widely used sources.
  • The text makes evident that the SpecGen evaluation is testing-based: it can prove a relationship does not hold via counterexamples but cannot formally establish that it holds, and it returns unknown for some complicated quantified specifications. The paper also notes that it does not yet check for definitional equivalence in end-to-end verifiable code generation, leaving that as future work.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

DataCite · 10.48550/arxiv.2505.23135

Cites

55 of 55 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Claims the paper makes

0 of 8 cited sources checked · 0 supported · 0 flagged

  • Findingnone given

    VERINA consists of 189 standalone programs, annotated with natural language descriptions, code, specifications, proofs, and test cases.

    “VERINA consists of 189 standalone programs, annotated with natural language descriptions, code, specifications, proofs, and test cases.”
    Quote in the paperSubstantial claim
  • Findingnone given

    VERINA provides 189 high-quality samples with varying difficulty levels.

    “In contrast, VERINA provides 189 high-quality samples with varying difficulty levels.”
    Quote in the paperSubstantial claim
  • Findingown data

    o4-mini improves from 7.41% to 22.22% on VERINA-BASIC after 64 iterations of iterative proof refinement.

    “with o4-mini improving from 7.41% to 22.22% on VERINA-BASIC after 64 iterations.”
    Quote in the paperSubstantial claim
  • Findingown data

    Generating sound and complete post-conditions is generally more difficult than pre-conditions.

    “We report detailed results on pre-condition and post-condition soundness and completeness in Appendix B, where we observe that generating sound and complete post-conditions is generally more difficult than pre-conditions.”
    Quote in the paperNot a substantial claim
  • Findingown data

    Iterative proof refinement yields meaningful improvements on simpler problems.

    “Iterative proof refinement shows meaningful improvements.”
    • Also stated in: § 5 Experimental Evaluation · plain
      “As shown in Figure 7, iterative proof refinement yields meaningful improvements on simpler problems, with o4-mini improving from 7.41% to 22.22% on VERINA-BASIC after 64 iterations.”
    Quote in the paperSubstantial claim
  • May combine two claims. 40
  • Classified as probably not a substantial claim. 48
  • May combine two claims.

    Findingown data

    The best model, OpenAI o4-mini, generates only 61.4% correct code, 51.0% sound and complete specifications, and 3.6% successful proofs, with one trial per task.

    “The best model, OpenAI o4-mini, generates only 61.4% correct code, 51.0% sound and complete specifications, and 3.6% successful proofs, with one trial per task.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    Code ranges up to 38 lines and specifications up to 62 lines.

    “Code ranges up to 38 lines and specifications up to 62 lines, demonstrating that VERINA captures complex tasks.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingnone given

    VERINA consists of 189 manually curated coding tasks in Lean, with detailed problem descriptions, reference implementations, formal specifications, and extensive test suites.

    “VERINA consists of 189 manually curated coding tasks in Lean, with detailed problem descriptions, reference implementations, formal specifications, and extensive test suites.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingreasoning

    VERINA provides high-quality, human-verified samples and captures all three foundational tasks in verifiable code generation.

    “In contrast, VERINA provides high-quality, human-verified samples and captures all three foundational tasks in verifiable code generation.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingown data

    Natural language descriptions have a median length of 110 words.

    “Natural language descriptions have a median length of 110 words, ensuring they are both informative and detailed.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingreasoning

    Ground truth proofs are optional in VERINA, as they are not required for evaluation.

    “Ground truth proofs are optional in VERINA, as they are not required for evaluation.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim. May combine two claims.

    Findingnone given

    The code, specification, and proof are all written in Lean.

    “The code, specification, and proof are all written in Lean.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    Code generation achieves the highest success rates across models, followed by specification generation, while proof generation remains the most challenging with pass@1 rates below 3.6% for all models.

    “Code generation achieves the highest success rates across models, followed by specification generation, while proof generation remains the most challenging with pass@1 rates below 3.6% for all models.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    VERINA-ADV is much more challenging than VERINA-BASIC, with substantial difficulty gaps on all three tasks.

    “VERINA-ADV is much more challenging than VERINA-BASIC.”
    • Also stated in: § 5 Experimental Evaluation · plain
      “The comparison between VERINA-BASIC and VERINA-ADV in Figure 6 reveals substantial difficulty gaps on all three tasks.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    For VERINA-BASIC, the maximum (median) LoC for code and specification are 26 (6) and 17 (2), respectively.

    “For VERINA-BASIC, the maximum (median) LoC for code and specification are 26 (6) and 17 (2), respectively.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingnone given

    VERINA is a comprehensive benchmark comprising 189 carefully curated examples with detailed task descriptions, high-quality codes and specifications in Lean, and extensive test suites with full line coverage.

    “We have introduced VERINA, a comprehensive benchmark comprising 189 carefully curated examples with detailed task descriptions, high-quality codes and specifications in Lean, and extensive test suites with full line coverage.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Findingreasoning

    While Lean programs in VERINA are newly written, the underlying task topics are drawn from widely used sources, posing a risk of data contamination.

    “Finally, while Lean programs in VERINA are newly written, the underlying task topics are drawn from widely used sources, posing a risk of data contamination.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    All ground truth specifications successfully pass their respective positive tests, confirming the quality of the specifications in VERINA.

    “All ground truth specifications successfully pass their respective positive tests, confirming the quality of the specifications in VERINA.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based).

    Findingnone given

    VERINA-ADV is much more challenging than VERINA-BASIC.

    “VERINA-ADV is much more challenging than VERINA-BASIC.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    For VERINA-ADV, the maximum (median) LoC for code and specification are 38 (16) and 62 (7), respectively.

    “For VERINA-ADV, they are 38 (16) and 62 (7).”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingown data

    o4-mini generates a correct proof on the 24th attempt (verina_advanced_64).

    “Example (verina_advanced_64): o4-mini generates correct proof on the 24th attempt.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingreasoning

    This results in incorrect outputs for the test case where nums1 = [1, 2, 3] and nums2 = [3, 2, 1, 4] should return [4, 4, 4].

    “This results in incorrect outputs for the test case where nums1 = [1, 2, 3] and nums2 = [3, 2, 1, 4] should return [4, 4, 4].”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingown data

    o4-mini generates an incorrect proof on the first attempt (verina_advanced_64).

    “Example (verina_advanced_64): o4-mini generates incorrect proof on the first attempt.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Findingreasoning

    Since the LLM-generated pre-condition rejects this test case, the evaluation metric determines that it is unsound.

    “Since the LLM-generated pre-condition rejects this test case, our evaluation metric determines that it is unsound.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    After finding the target element, the function incorrectly calls aux tl false instead of aux tl true in Line 22, causing it to lose track of having found the target and fail to identify subsequent greater elements.

    “After finding the target element, the function incorrectly calls aux tl false instead of aux tl true in Line 22, causing it to lose track of having found the target and fail to identify subsequent greater elements.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Findingown data

    DeepSeek Prover 2 7B and Qwen 3 235B-A22B-FP8 suffer from instruction following ability, failing to output the desired format specified in the prompts.

    “DeepSeek Prover 2 7B and Qwen 3 235B-A22B-FP8 suffer from instruction following ability, failing to output the desired format specified in our prompts (cf.Appendix A.3).”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingown data

    o4-mini generates an incorrect proof after 23 refinement attempts (verina_advanced_64).

    “Example (verina_advanced_64): o4-mini generates incorrect proof after 23 refinement attempts.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingown data

    Figures 20, 21, 22, and 23 demonstrate o4-mini's iterative proof refinement process over 24 attempts.

    “Figure 20, 21, 22, and 23 demonstrate o4mini's iterative proof refinement process over 24 attempts.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingown data

    The error message from the 23rd refinement attempt reveals that the proof got stuck on conditional expressions involving decide predicates.

    “The error message from the 23rd attempt reveals that the proof got stuck on conditional expressions involving decide predicates.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Findingreasoning

    The ground truth precondition correctly enforces three critical requirements: List.Nodup nums1 ensures uniqueness in the first array, List.Nodup nums2 ensures uniqueness in the second array, and nums1.all(fun x => x ∈ nums2) verifies that nums1 is indeed a subset of nums2.

    “The ground truth precondition correctly enforces three critical requirements: List.Nodup nums1 ensures uniqueness in the first array, List.Nodup nums2 ensures uniqueness in the second array, and nums1.all(fun x => x ∈ nums2) verifies that nums1 is indeed a subset of nums2.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingnone given

    VERINA contains more difficult instances than the one presented in Figure 1.

    “Note that we select this instance for presentation purposes and VERINA contains more difficult ones.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based). May combine two claims.

    Findingnone given

    More capable models often generate specifications with more complicated logical structures, leading to higher unknown percentages in post-condition evaluation.

    “More capable models often generate specifications with more complicated logical structures, leading to higher unknown percentages in post-condition evaluation.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim. May combine two claims.

    Findingnone given

    The ground truth postcondition correctly enforces three essential properties: arithmetic correctness, digit validity (each digit < 10), and prohibition of leading zeros except for the special case where the result is zero.

    “The ground truth postcondition correctly enforces three essential properties: arithmetic correctness, digit validity (each digit < 10), and prohibition of leading zeros except for the special case where the result is zero.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    In the successful 24th attempt, o4-mini improves its strategy by introducing an auxiliary lemma helper_eq_filter and using explicit case analysis with by_cases.

    “In the successful 24th attempt, o4-mini improves its strategy by introducing an auxiliary lemma helper_eq_filter and using explicit case analysis with by_cases.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingreasoning

    The LLM-generated post-condition for the smallest single-digit prime factor task rejects the positive test case (n=0, result=0) and accepts the negative test case (n=0, result=2), so the evaluation metric determines it is both unsound and incomplete.

    “The LLM-generated post-condition rejects the positive test case and accepts the negative test case, therefore our evaluation metric determines that this generated post-condition is both unsound and incomplete.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingreasoning

    Pre-conditions are generally simpler than post-conditions, resulting in lower unknown rates during evaluation.

    “Pre-conditions are generally simpler than post-conditions, resulting in lower unknown rates during evaluation.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based).

    Study design and conductnone given

    Model-generated proofs can be checked by Lean directly.

    “Modelgenerated proofs can be checked by Lean directly.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Study design and conductreasoning

    We invest significant manual effort in writing proofs for 46 out of 189 examples as they help quality assurance.

    “Nevertheless, we invest significant manual effort in writing proofs for 46 out of 189 examples as they help quality assurance (Section 3.2).”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim. May combine two claims.

    Study design and conductnone given

    Generated proofs are directly evaluated using the Lean compiler and any proofs containing placeholders are filtered out.

    “We directly evaluate generated proofs using the Lean compiler and filter out any proofs containing placeholders, as described in Section 4.1.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Study design and conductnone given

    We introduce a novel framework for a reliable automatic evaluation of model-generated specifications.

    “We also introduce a novel framework for a reliable automatic evaluation of model-generated specifications.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductnone given

    VERINA involves no model training or fine-tuning processes.

    “VERINA involves no model training or fine-tuning processes.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductreasoning

    We leveraged the standard coverage.py tool to verify complete line coverage.

    “We leveraged the standard coverage.pytool to verify complete line coverage, since Lean lacks a robust coverage tool.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim.

    Study design and conductcitation

    For each problem instance, 5 responses are sampled from each model and pass@1 metrics are calculated using these 5 samples to ensure robust evaluation statistics.

    “For each problem instance, we sample 5 responses from each model and calculate pass@1 metrics [3] using these 5 samples to ensure robust evaluation statistics.”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites [3]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • May combine two claims.

    Interpretationown data

    While it cannot formally establish R holds, it remains highly robust in this regard, due to our comprehensive test suite with both positive and negative tests, which achieve full coverage on ground truth code implementations.

    “While it cannot formally establish R holds, it remains highly robust in this regard, due to our comprehensive test suite with both positive and negative tests, which achieve full coverage on ground truth code implementations.”
    Quote in the paperSubstantial claim
    • Rests on an assumption: The test suites are comprehensive enough to serve as a reliable proxy for formal verification of specification soundness and completeness.
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation

    MBPP-DFY-50 is licensed under GPL-3.0.

    “MBPP-DFY-50 [18] is licensed under GPL-3.0”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites [18]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductnone given

    The 2-shot examples are excluded from the final benchmark evaluation.

    “The 2-shot examples are excluded from the final benchmark evaluation.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim.

    Interpretationreasoning

    In end-to-end verifiable code generation, it is crucial that the model generates code and specification independently, rather than sequentially.

    “In end-to-end verifiable code generation, it is crucial that the model generates code and specification independently, rather than sequentially.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based).

    Interpretationnone given

    Overall, the coding difficulty in VERINA-BASIC, abstracting away language differences, is comparable to MBPP.

    “Overall, the coding difficulty in VERINA-BASIC, abstracting away language differences, is comparable to MBPP.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim. May combine two claims.

    Study design and conductnone given

    We use Lean to automatically check the validity of generated proofs, and proofs containing placeholders (e.g., the sorry tactic) are marked as incorrect.

    “We use Lean to automatically check the validity of generated proofs, and proofs containing placeholders (e.g., the sorry tactic) are marked as incorrect.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Study design and conductnone given

    We manually translated 49 problems into Lean, refining and verifying each translation.

    “We manually translated 49 problems into Lean, refining and verifying each translation.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Study design and conductnone given

    Lean's property-based testing cannot handle a small number of complicated relationships, for which our evaluator returns unknown.

    “Lean's property-based testing cannot handle a small number of complicated relationships, for which our evaluator returns unknown.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationown data

    LLM-based provers are ineffective in the verification domain, as shown in Section 5, making them unreliable for this use case.

    “LLM-based provers are ineffective in the verification domain, as shown in Section 5, making them unreliable for this use case.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationown data

    All three tasks pose significant challenges for current LLMs, with constructing Lean proofs that the implementation satisfies the specification being particularly hard and requiring specialized theorem proving capabilities.

    “All three tasks pose significant challenges for current LLMs, with constructing Lean proofs that the implementation satisfies the specification being particularly hard and requiring specialized theorem proving capabilities.”
    Quote in the paperSubstantial claim
  • Classified as probably not a substantial claim.

    Study design and conductnone given

    We manually reviewed and edited the submissions to ensure their correctness.

    “In addition, we manually reviewed and edited the submissions to ensure their correctness.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationown data

    All foundational tasks are challenging, especially ProofGen.

    “All foundational tasks are challenging, especially ProofGen.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim.

    Study design and conductnone given

    Generated code is evaluated on unit tests using #guard statements in Lean 4, ensuring the implementation produces correct outputs for given inputs.

    “We evaluate generated code on unit tests using #guard statements in Lean 4, ensuring the implementation produces correct outputs for given inputs.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Interpretationnone given

    Using code as specification is uncommon in standard development practices.

    “This is likely because using code as specification is uncommon in standard development practices, and our prompts A.3 ask LLMs to focus on constraining code behavior rather than replicating implementation details.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim.

    Study design and conductnone given

    We made sure that our ground truth code and specifications do not pass these negative tests.

    “We made sure that our ground truth code and specifications do not pass these negative tests.”
    Quote in the paperSubstantial claim
  • Classified as probably not a substantial claim.

    Study design and conductnone given

    Each benchmark instance was manually reviewed by at least two authors, carefully inspecting and editing them to ensure correctness and high quality.

    “Each benchmark instance was manually reviewed by at least two authors, carefully inspecting and editing them to ensure correctness and high quality.”
    Quote in the paperSubstantial claim
    • Rests on an assumption: Manual review by at least two authors ensures correctness and high quality of benchmark instances.
  • Probably not a substantial claim: may not pass S4 (based).

    Interpretationreasoning

    Otherwise, it may exploit shortcuts by producing definitionally equivalent code-specification pairs, making the proof task trivial.

    “Otherwise, it may exploit shortcuts by producing definitionally equivalent code-specification pairs, making the proof task trivial.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Premisecitation

    CloverBench and LiveCodeBench use MIT licenses.

    “while both CloverBench [12] and LiveCodeBench [1] use MIT licenses.”
    Quote in the paperNot a substantial claim0 of 2 sources checked
    • cites [12]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [1]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • May combine two claims.

    Study design and conductown data

    We added 59 more human-authored Dafny instances from CloverBench, translated into Lean using OpenAI o3-mini with few-shot prompting based on our manual translations, followed by manual inspection and correction.

    “These were translated into Lean using OpenAI o3-mini with few-shot prompting based on our manual translations, followed by manual inspection and correction.”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites [12]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Classified as probably not a substantial claim. May combine two claims.

    Study design and conductnone given

    We mutated each positive test case to construct at least three different negative tests that violate either the pre- or the post-condition, except when the function's output has boolean type, in which case only a single negative test can be created.

    “We mutated each positive test case to construct at least three different negative tests that violate either the pre-or the post-condition, except when the function's output has boolean type, in which case only a single negative test can be created.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductnone given

    The paper only uses publicly available materials from competitive programming platforms such as LeetCode.

    “we only use publicly available materials from competitive programming platforms such as LeetCode.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationcitation

    VERINA emphasizes simple, standalone tasks that are well-suited for benchmarking but not fully representative of complex real-world verification projects.

    “Second, it emphasizes simple, standalone tasks-well-suited for benchmarking but not fully representative of complex real-world verification projects [10,47].”
    Quote in the paperNot a substantial claim0 of 2 sources checked
    • cites [10]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [47]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Classified as probably not a substantial claim.

    Study design and conductnone given

    We expanded the set of positive tests to ensure that they achieve full line coverage on the ground truth code.

    “Beyond the original test cases, we expanded the set of positive tests to ensure that they achieve full line coverage on the ground truth code.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based). May combine two claims.

    Study design and conductnone given

    We employ a meticulous data curation process that combines careful translation, thorough manual review, and automated mechanisms, leading to a rigorous and high-quality benchmark for verifiable code generation.

    “We employ a meticulous data curation process that combines careful translation, thorough manual review, and automated mechanisms, leading to a rigorous and high-quality benchmark for verifiable code generation.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductnone given

    The paper employs a consistent 2-shot prompting approach across all models and tasks to enhance output format adherence and task understanding.

    “We employ a consistent 2-shot prompting approach across all models and tasks to enhance output format adherence and task understanding.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Interpretationown data

    This underscores the diversity and varying difficulty levels between VERINA-BASIC and VERINA-ADV.

    “This underscores the diversity and varying difficulty levels between VERINA-BASIC and VERINA-ADV.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim.

    Study design and conductreasoning

    We leverage a practical testing-based evaluation framework using our comprehensive test suites.

    “To overcome these limitations, we leverage a practical testing-based evaluation framework using our comprehensive test suites, as shown in Figure 3.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S2 (checkable).

    Interpretationreasoning

    As a result, the model must genuinely demonstrate semantic comprehension of the reference specification and non-trivial reasoning to generate the corresponding implementation.

    “As a result, the model must genuinely demonstrate semantic comprehension of the reference specification and non-trivial reasoning to generate the corresponding implementation.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Study design and conductnone given

    The quality assurance process ensures that all ground truth pre-conditions and post-conditions pass positive tests and do not pass negative tests.

    “Our quality assurance process in Section 3.2 ensures that all ground truth pre-conditions and post-conditions pass our positive tests and do not pass our negative tests.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductnone given

    VERINA is licensed under GPL-3.0.

    “Our datasets VERINA is licensed under GPL-3.0.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Study design and conductnone given

    We leverage 2-shot prompting to enhance output format adherence, with the 2-shot examples excluded from the final benchmark.

    “We leverage 2-shot prompting to enhance output format adherence, with the 2-shot examples excluded from the final benchmark.”
    Quote in the paperNot a substantial claim
    • Rests on an assumption: The 2-shot examples are representative and do not leak benchmark information.
  • Probably not a substantial claim: may not pass S2 (checkable).

    Interpretationreasoning

    Very complicated specifications require more comprehensive approaches such as automated theorem provers or LLM-based proof generation.

    “very complicated specifications require more comprehensive approaches such as automated theorem provers or LLM-based proof generation”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationreasoning

    The LLM-generated post-condition for the smallest single-digit prime factor task is both unsound (accepts incorrect outputs) and incomplete (rejects valid cases where n = 0).

    “This renders the specification both unsound (accepts incorrect outputs) and incomplete (rejects valid cases where n = 0).”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationown data

    Iterative refinement with compiler feedback can guide LLMs toward substantially different and correct proof strategies, though it may require many attempts to achieve success.

    “This demonstrates how iterative refinement with compiler feedback can guide LLMs toward substantially different and correct proof strategies, though it may require many attempts to achieve success.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Study design and conductown data

    The benchmark includes a positive test case where n = 0 and result = 0 and a corresponding negative test case where n = 0 and result = 2 that capture the edge case n = 0.

    “We have a positive test case where n = 0 and result = 0 and a corresponding negative test case where n = 0 and result = 2 that capture this edge case.”
    Quote in the paperSubstantial claim
73 of 73
  • The paper relies on this without support.

    The test suites are comprehensive enough to serve as a reliable proxy for formal verification of specification soundness and completeness.

    “While it cannot formally establish R holds, it remains highly robust in this regard, due to our comprehensive test suite with both positive and negative tests, which achieve full coverage on ground truth code implementations.”
  • The paper relies on this without support.

    The ground truth specifications accurately capture human intent.

    “VERINA addresses this by leveraging high-quality ground truth specifications (see Section 3.2) and comprehensive test suites.”
  • The paper relies on this without support.

    Manual review by at least two authors ensures correctness and high quality of benchmark instances.

    “Each benchmark instance was manually reviewed by at least two authors, carefully inspecting and editing them to ensure correctness and high quality.”
  • The paper relies on this without support.

    The 2-shot examples are representative and do not leak benchmark information.

    “We leverage 2-shot prompting to enhance output format adherence, with the 2-shot examples excluded from the final benchmark.”
  • The paper relies on this without support.

    The model cannot access the code when generating the specification ensures independence.

    “When designing VERINA's tasks, we enforce independence-for example, the model cannot access the code when generating the specification.”
5 of 5

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

Each contradiction between two passages listed here was confirmed by an independent check.

  • Precondition completeness check misclassifies negative tests with valid inputs

    Minor

    The paper defines negative tests to include cases with valid inputs but invalid outputs. In the cited negative test, k = 2 satisfies the ground-truth precondition k < s.size because the array has five elements. Requiring a generated precondition to reject every negative test would therefore reject a correct precondition and affect the reported specification metric.

1 of 1

Cites

Flagged first, then by citations

13 of the 68 references couldn’t be matched to a known paper.

Research works printed but not linked: 3

  1. Ronghui Gu, Zhong Shao, Hao Chen, Xiongnan Newman Wu, Jieung Kim, Vilhelm Sjöberg, and David Costanzo. CertiKOS: An extensible architecture for building certified concurrent OS kernels. In Symposium on Operating Systems Design and Implementation (OSDI), 2016. 1
  2. Kexin Pei, David Bieber, Kensen Shi, Charles Sutton, and Pengcheng Yin. Can large language models reason about program invariants? In International Conference on Machine Learning (ICML), 2023. 2, 3
  3. Qi Liu, Xinhao Zheng, Xudong Lu, Qinxiang Cao, and Junchi Yan. Rethinking and improving autoformal- ization: towards a faithful metric and a dependency retrieval-based approach. In International Conference on Learning Representations (ICLR), 2025. 8

Cited by

Sorted by citations

Authors
Ye, Z., Yan, Z., He, J., Kasriel, T., Yang, K., & Song, D.
Affiliations
University of California, Berkeley (US)
Venue
arXiv
Publisher
arXiv
Published
2025
ISSN
2331-8422 (ISSN-L)
OpenAlex
W4416609154
Cited by
3
References
68
Citations by year
2026: 2 · 2025: 1
Type
posted content
Language
en
Open access
Locations
  • arXiv (Cornell University) (submittedVersion, cc-by-sa)
  • arXiv (Cornell University)
Topics
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Research
  • Physical Sciences › Computer Science › Artificial Intelligence › Logic, programming, and type systems
  • Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
Keywords
benchmarking, large language models, formal verification, lean manufacturing, proof generation, program correctness

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Claims read by deepseek-v4.1-flash under definition version 3 (extract-v3) on 2026-10-24.

Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-10-24.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review