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

QEDCartographer:使用无奖励强化学习自动化形式验证

QEDCartographer: Automating Formal Verification Using Reward-Free Reinforcement Learning

Alex Sanchez-Stern, Abhishek Varghese, Zhanna Kaufman, Dylan Zhang, Talia Ringer, Yuriy Brun

AI总结:

QEDCartographer结合监督与强化学习,利用证明分支结构实现无奖励搜索,在CoqGym基准上自动证明21.4%的定理,优于现有工具,证明强化学习可有效提升证明合成搜索机制。

摘要:

形式验证是生成可靠软件的一种有前景的方法,但手动编写验证证明的难度严重限制了其在实际中的应用。近期的一些方法通过使用定理证明器引导搜索证明空间,实现了部分证明合成的自动化。不幸的是,定理证明器仅提供最粗略的进度估计,导致搜索实际上是无方向的。为解决这一问题,我们创建了QEDCartographer,一种自动化的证明合成工具,它结合了监督学习和强化学习,以更有效地探索证明空间。QEDCartographer融入了证明的分支结构,实现了无奖励搜索,并克服了形式验证固有的稀疏奖励问题。我们使用CoqGym基准(包含来自124个开源Coq项目的68.5K个定理)对QEDCartographer进行了评估。QEDCartographer全自动证明了测试集中21.4%的定理。先前仅依赖监督学习的基于搜索的证明合成工具Tok、Tac、ASTactic、Passport和Proverbot9001分别证明了9.6%、9.8%、10.9%、12.5%和19.8%。结合了62种工具的Diva证明了19.2%。与先前最有效的工具Proverbot9001相比,在两个工具都能证明的定理上,QEDCartographer平均生成短34%的证明,速度快29%。QEDCartographer与非基于学习的CoqHammer结合可证明30.3%的定理,而CoqHammer单独可证明26.6%。我们的工作表明,强化学习是改进证明合成工具搜索机制的一个富有成效的研究方向。

英文摘要:

Formal verification is a promising method for producing reliable software, but the difficulty of manually writing verification proofs severely limits its utility in practice. Recent methods have automated some proof synthesis by guiding a search through the proof space using a theorem prover. Unfortunately, the theorem prover provides only the crudest estimate of progress, resulting in effectively undirected search. To address this problem, we create QEDCartographer, an automated proof-synthesis tool that combines supervised and reinforcement learning to more effectively explore the proof space. QEDCartographer incorporates the proofs' branching structure, enabling reward-free search and overcoming the sparse reward problem inherent to formal verification. We evaluate QEDCartographer using the CoqGym benchmark of 68.5K theorems from 124 open-source Coq projects. QEDCartographer fully automatically proves 21.4% of the test-set theorems. Previous search-based proof-synthesis tools Tok, Tac, ASTactic, Passport, and Proverbot9001, which rely only on supervised learning, prove 9.6%, 9.8%, 10.9%, 12.5%, and 19.8%, respectively. Diva, which combines 62 tools, proves 19.2%. Comparing to the most effective prior tool, Proverbot9001, QEDCartographer produces 34% shorter proofs 29% faster, on average over the theorems both tools prove. Together, QEDCartographer and non-learning-based CoqHammer prove 30.3% of the theorems, while CoqHammer alone proves 26.6%. Our work demonstrates that reinforcement learning is a fruitful research direction for improving proof-synthesis tools' search mechanisms.

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

↑