VeriBench: End-to-End Formal Verification Benchmark for AI Code Generation in Lean 4
Import the versions from OpenReview: the same title at other venues
@openreview[bot] · 2026-11-22 19:49 UTC · e8d61aacec7a
.gitattributes added
+++ b/.gitattributes@@ -0,0 +1,10 @@+# PDFs and pictures are kept with Git LFS (https://git-lfs.com). With it installed (`git lfs install`),+# a clone has the files, and `git add` of one stores a pointer. This file is the same on every page.+/.potentialpaper/*.pdf filter=lfs diff=lfs merge=lfs -text+/versions/*.pdf filter=lfs diff=lfs merge=lfs -text+/thumbnail.png filter=lfs diff=lfs merge=lfs -text+/thumbnail.jpg filter=lfs diff=lfs merge=lfs -text+/thumbnail.jpeg filter=lfs diff=lfs merge=lfs -text+/thumbnail.gif filter=lfs diff=lfs merge=lfs -text+/thumbnail.webp filter=lfs diff=lfs merge=lfs -text+/thumbnail.avif filter=lfs diff=lfs merge=lfs -text
.potentialpaper/metadata.json added
+++ b/.potentialpaper/metadata.json@@ -0,0 +1,39 @@+{+ "layout": 5,+ "identifiers": [+ {+ "scheme": "openreview",+ "value": "P7NUVF6wo4"+ }+ ],+ "title": "VeriBench: End-to-End Formal Verification Benchmark for AI Code Generation in Lean 4",+ "authors": [+ "Brando Miranda",+ "Srivatsava Daruru",+ "Zhanke Zhou",+ "Slim Barkallah",+ "Allen Nie",+ "Iddah Mlauzi",+ "Leni Aniva",+ "Elyas Obbad",+ "Weston Kirk",+ "Ying Li",+ "Santiago Cuellar",+ "Dilara Soylu",+ "Kai Fronsdal",+ "John Sarracino",+ "Andrea Yu",+ "Rylan Schaeffer",+ "Rakshit Kaushik",+ "Bo Han",+ "Sanmi Koyejo"+ ],+ "abstract": "Formal code verification offers a path to provably correct software, but evaluating language models' capabilities in this domain requires comprehensive benchmarks. \nProvably correct code would eliminate entire classes of vulnerabilities, mitigate critical system failures, and potentially transform software engineering practices through inherently trustworthy implementation methodologies. \nWe present \\textsc{VeriBench}, a benchmark for assessing \\textbf{end-to-end} formal code verification in Lean 4, requiring models to generate complete program implementations with tests, specifications/theorems, and machine-checked proofs from Python references. \nOur benchmark comprises 140 tasks across five difficulty levels: 56 HumanEval problems, 41 foundational programming exercises, 10 classical algorithms, 28 security-critical programs adapted from real-world vulnerabilities and 5 programs from the Python standard library. \nTo enable comprehensive capability assessment, we establish four hierarchical evaluation subtasks with explicit metrics: \n(1) Lean 4 compilation success, \n(2) proportion of unit test passing, \n(3) correctness-theorem synthesis quality, and \n(4) proof success rates with pass@1. \nHowever, evaluation reveals significant limitations in current models: Claude 3.7 Sonnet achieves only 35.0\\% compilation success but 40.6\\% of unit test passing – while LLaMA-70B fails to compile any programs despite 50 feedback-guided attempts on a previous version of \\textsc{VeriBench}. \nModels demonstrate similar performance on theorem evaluation, reaching 0.615\\% theorem accuracy as measured by a LLM judge. \nHowever, proof generation remains particularly challenging—our DSP (Draft Sketch Proof) proving agent achieves only 28.9\\% pass@1. \nIn contrast, our trace-based self-debug agent architecture achieves 49.3\\% compilation success, demonstrating the potential of iterative, feedback-driven approaches. \nTo enable scalable evaluation, we introduce a novel methodology for certifying the trustworthiness of LLM judges. \nWe validate our theorem/specification LLM judge by applying a novel trustworthiness methodology that verifies adherence to fundamental logical properties, such as consistency and monotonicity, thereby facilitating reliable, automated generation of theorems and specifications.\n\\textsc{VeriBench} establishes a rigorous foundation for developing AI systems capable of synthesizing provably correct, bug-free code, thereby advancing the trajectory toward more secure and dependable software infrastructure.",+ "year": 2026,+ "venue": "ICLR 2026 submission",+ "source": "openreview",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}
community/10-tl-dr.md added
+++ b/community/10-tl-dr.md
community/20-summary.md added
+++ b/community/20-summary.md
community/30-why-it-matters.md added
+++ b/community/30-why-it-matters.md
community/40-critique.md added
+++ b/community/40-critique.md
community/50-errata.md added
+++ b/community/50-errata.md
community/60-reproductions.md added
+++ b/community/60-reproductions.md
community/70-follow-ups.md added
+++ b/community/70-follow-ups.md
owners/10-tl-dr.md added
+++ b/owners/10-tl-dr.md
owners/20-overview.md added
+++ b/owners/20-overview.md
owners/30-results.md added
+++ b/owners/30-results.md
owners/40-demos.md added
+++ b/owners/40-demos.md
owners/50-code-and-data.md added
+++ b/owners/50-code-and-data.md
owners/60-talks.md added
+++ b/owners/60-talks.md
prek.toml added
+++ b/prek.toml@@ -0,0 +1,36 @@+# Checks run before each commit, with prek (https://prek.j178.dev): `prek install` once in this clone.+# The site checks every push again; these catch mistakes before you commit. The same on every page.++[[repos]]+repo = "builtin"+hooks = [+ { id = "check-json" },+ { id = "pretty-format-json", args = ["--autofix", "--no-sort-keys", "--no-ensure-ascii"], exclude = '^demos/' },+ { id = "end-of-file-fixer", exclude = '^demos/' },+ { id = "trailing-whitespace", args = ["--markdown-linebreak-ext=md"], exclude = '^demos/' },+ { id = "check-case-conflict" },+ { id = "check-illegal-windows-names" },+ { id = "check-added-large-files", args = ["--maxkb=256"], exclude = '^demos/' },+]++# Each JSON file against its schema (https://papers.potentialhedge.com/schemas/).+[[repos]]+repo = "https://github.com/python-jsonschema/check-jsonschema"+rev = "0.39.0"+hooks = [+ { id = "check-jsonschema", name = "author section plugins files", files = '^owners/plugins\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/authorPlugins.json"] },+ { id = "check-jsonschema", name = "venue files", files = '^venue\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/venue.json"] },+ { id = "check-jsonschema", name = "topic files", files = '^topic\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/topic.json"] },+ { id = "check-jsonschema", name = "organisation files", files = '^org\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/org.json"] },+ { id = "check-jsonschema", name = "link files", files = '^links/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/link.json"] },+ { id = "check-jsonschema", name = "version files", files = '^versions/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/version.json"] },+ { id = "check-jsonschema", name = "picture files", files = '^thumbnail\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/thumbnail.json"] },+]++# Sections formatted the way the web editor formats them.+[[repos]]+repo = "https://github.com/rbubley/mirrors-prettier"+rev = "v3.9.9"+hooks = [+ { id = "prettier", files = '^(owners|community)/.*\.md$' },+]
versions/v_r4ft3uv2.json added
+++ b/versions/v_r4ft3uv2.json@@ -0,0 +1,18 @@+{+ "date": "2025-09-20",+ "kind": "submitted",+ "label": "ICLR 2026",+ "submissions": [+ {+ "venue": "ICLR 2026",+ "status": "rejected",+ "url": "https://openreview.net/forum?id=P7NUVF6wo4"+ }+ ],+ "title": "VeriBench: End-to-End Formal Verification Benchmark for AI Code Generation in Lean 4",+ "url": "https://openreview.net/forum?id=P7NUVF6wo4",+ "evidence": [+ "https://openreview.net/forum?id=P7NUVF6wo4"+ ],+ "abstract": "Formal code verification offers a path to provably correct software, but evaluating language models' capabilities in this domain requires comprehensive benchmarks. \nProvably correct code would eliminate entire classes of vulnerabilities, mitigate critical system failures, and potentially transform software engineering practices through inherently trustworthy implementation methodologies. \nWe present \\textsc{VeriBench}, a benchmark for assessing \\textbf{end-to-end} formal code verification in Lean 4, requiring models to generate complete program implementations with tests, specifications/theorems, and machine-checked proofs from Python references. \nOur benchmark comprises 140 tasks across five difficulty levels: 56 HumanEval problems, 41 foundational programming exercises, 10 classical algorithms, 28 security-critical programs adapted from real-world vulnerabilities and 5 programs from the Python standard library. \nTo enable comprehensive capability assessment, we establish four hierarchical evaluation subtasks with explicit metrics: \n(1) Lean 4 compilation success, \n(2) proportion of unit test passing, \n(3) correctness-theorem synthesis quality, and \n(4) proof success rates with pass@1. \nHowever, evaluation reveals significant limitations in current models: Claude 3.7 Sonnet achieves only 35.0\\% compilation success but 40.6\\% of unit test passing – while LLaMA-70B fails to compile any programs despite 50 feedback-guided attempts on a previous version of \\textsc{VeriBench}. \nModels demonstrate similar performance on theorem evaluation, reaching 0.615\\% theorem accuracy as measured by a LLM judge. \nHowever, proof generation remains particularly challenging—our DSP (Draft Sketch Proof) proving agent achieves only 28.9\\% pass@1. \nIn contrast, our trace-based self-debug agent architecture achieves 49.3\\% compilation success, demonstrating the potential of iterative, feedback-driven approaches. \nTo enable scalable evaluation, we introduce a novel methodology for certifying the trustworthiness of LLM judges. \nWe validate our theorem/specification LLM judge by applying a novel trustworthiness methodology that verifies adherence to fundamental logical properties, such as consistency and monotonicity, thereby facilitating reliable, automated generation of theorems and specifications.\n\\textsc{VeriBench} establishes a rigorous foundation for developing AI systems capable of synthesizing provably correct, bug-free code, thereby advancing the trajectory toward more secure and dependable software infrastructure."+}
versions/v_wijva2cm.json added
+++ b/versions/v_wijva2cm.json@@ -0,0 +1,19 @@+{+ "date": "2025-06-21",+ "kind": "submitted",+ "label": "AI4MATH @ ICML 2025",+ "submissions": [+ {+ "venue": "AI4MATH @ ICML 2025",+ "status": "accepted",+ "decision": "Poster",+ "url": "https://openreview.net/forum?id=rWkGFmnSNl"+ }+ ],+ "title": "VeriBench: End-to-End Formal Verification Benchmark for AI Code Generation in Lean 4",+ "url": "https://openreview.net/forum?id=rWkGFmnSNl",+ "evidence": [+ "https://openreview.net/forum?id=rWkGFmnSNl"+ ],+ "abstract": "Formal verification of software is a promising and potentially transformative application of generative AI. \nProvably correct code would eliminate entire classes of vulnerabilities, mitigate critical system failures, and potentially transform software engineering practices through inherently trustworthy implementation methodologies. \nTo advance this domain, we present **VeriBench**, a carefully curated benchmark for evaluating language-model capabilities in end-to-end code verification, requiring the generation of complete Lean 4 programs—implementations, unit tests, correctness theorems, and formal proofs—derived from reference Python functions or their docstrings. \nOur evaluation on the 113-task suite—51 HumanEval problems, 42 easy exercises, 10 classical algorithms, and 11 security challenges—shows that current frontier models compile only a small fraction of programs.\nClaude 3.7 Sonnet achieves compilation on only 12.5%, while LLaMA-70B fails to compile any programs in the Lean 4 HumanEval subset, even with 50 feedback-guided attempts. \nNotably, among the evaluated approaches, our experiments reveal that a self-optimizing Trace\nagent architecture achieves compilation rates approaching 60%. \n**VeriBench** establishes a rigorous foundation for developing AI systems capable of synthesizing provably correct, bug-free code, thereby advancing the trajectory toward more secure and dependable software infrastructure."+}