arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.23772cs.AIcs.LOcs.PLcs.SE
收藏

程序验证的智能体证明

Isomorphism Is Not Enough: An Agentic Audit of Verified Code Generation in Lean

Department of Computer Science(计算机科学系)

Alessandro Sosso, Akhil Arora, Bas Spitters

AI总结:

本文评估Claude Code在Lean 4基准CLEVER上的智能体证明框架,结果显示其能生成98.8%问题的有效规范,87.5%的实现通过验证,端到端成功率达98.1%,并指出当前基准与智能体能力不匹配,需更严格的评估方法。

摘要:

智能体系统最近已成为形式数学中自动定理证明的最先进方法。为了评估这些能力在程序验证中的延伸程度,我们在CLEVER(一个用于可验证代码生成的Lean 4基准)上,在智能体证明框架中评估了Claude Code。我们的结果显示,Claude为98.8%的问题生成了可论证的有效规范(其中81.3%也被CLEVER基于同构的评分在基准的正确部分接受),针对正确的地面真实规范验证了87.5%问题的实现,并在具有自洽前提的条目上,端到端程序生成和验证管道的成功率达到98.1%。在所有阶段,Claude进一步对其自身尝试提供了高质量的反馈(经人工审查确认),识别了失败的根本原因和数据集中残留的错误。这些发现突显了现有程序验证基准的难度与当代智能体证明器能力之间日益增长的不匹配,并指出了对更严格、更具错误鲁棒性的评估方法的需求,特别是对生成规范基于同构的评分的替代方案。更广泛地说,我们的结果提供了经验证据,表明紧密的编译器在环智能体范式目前是基础程序验证最有效的方法。

英文摘要:

Agentic systems have recently emerged as state-of-the-art approaches for automated theorem proving in formal mathematics. To assess how far these capabilities extend to program verification and how reliably existing benchmarks can measure them, we audit CLEVER, a Lean 4 benchmark for verifiable code generation, using three independent agentic stacks based on Claude Opus 4.6, GPT-5.4, and Kimi K2.5. Our audit finds arguably erroneous reference specifications in 80 of 161 entries, each accepted by the benchmark's authors, distills a taxonomy of benchmark errors, and exposes structural limitations of isomorphism-based scoring, whose signal breaks down when generated and reference specifications formalize different yet defensible readings. In the process, the stacks generate arguably valid specifications for up to 98.8% of entries, certify implementations against sound reference specifications for up to 92.3%, and reach up to 96.2% end-to-end success over entries with sound premises, suggesting that CLEVER no longer stresses modern agentic provers as much as its design intended. Looking ahead, we translate our findings into recommendations for future work, with our error analysis doubling as a repair list for CLEVER and a heuristic checklist for the next generation of benchmarks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑