arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.11915cs.SEcs.AIcs.LG
收藏

miniCodeProps:一个用于证明代码属性的最小基准

miniCodeProps: a Minimal Benchmark for Proving Code Properties

Carnegie Mellon University(卡内基梅隆大学)

Evan Lohn, Sean Welleck

AI总结:

研究当前神经定理证明器自动验证简单程序的能力,提出包含201个Lean程序规范的miniCodeProps基准,发现现有最先进LLM证明器在中等和困难属性上几乎完全失败。

摘要:

AI智能体在Lean等证明助手中自动进行数学定理证明方面已展现出初步潜力。同样的证明助手也可用于验证代码的正确性,方法是将代码与规范及证明规范成立的证明相配对。自动化编写代码、规范和证明可以降低验证成本,或者有雄心地使AI智能体能够输出安全的、可证明正确的代码。然而,目前的神经定理证明器能否自动验证哪怕是相对简单的程序仍不清楚。我们提出了miniCodeProps,这是一个包含201个Lean证明助手程序规范的基准,针对为提供的程序和规范自动生成证明的子问题。miniCodeProps包含关于简单、自包含程序(例如列表、自然数、二叉树)的规范,具有不同的证明难度。尽管很简单,miniCodeProps足以打破当前基于LLM的证明器,最先进的方法在miniCodeProps的简单属性上显示出潜力,但几乎无法证明所有的中等和困难属性。我们公开发布miniCodeProps,作为促进形式化验证代码背景下自动定理证明的基准。

英文摘要:

AI agents have shown initial promise in automating mathematical theorem proving in proof assistants such as Lean. The same proof assistants can be used to verify the correctness of code by pairing code with specifications and proofs that the specifications hold. Automating the writing of code, specifications, and proofs could lower the cost of verification, or, ambitiously, enable an AI agent to output safe, provably correct code. However, it remains unclear whether current neural theorem provers can automatically verify even relatively simple programs. We present miniCodeProps, a benchmark of 201 program specifications in the Lean proof assistant, aimed at the subproblem of automatically generating a proof for a provided program and specification. miniCodeProps contains specifications about simple, self-contained programs (e.g., lists, natural numbers, binary trees) with varied proof difficulty. Despite its simplicity, miniCodeProps is sufficient to break current LLM-based provers, with state-of-the-art methods showing promise on the easy properties in miniCodeProps, yet failing to prove nearly all of the medium and hard properties. We publicly release miniCodeProps as a benchmark for furthering automated theorem proving in the context of formally verified code.

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

↑