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

Cobblestone:一种用于自动化形式验证的分而治之方法

Cobblestone: A Divide-and-Conquer Approach for Automating Formal Verification

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of Massachusetts(马萨诸塞大学);Cornell University(康奈尔大学);Rutgers University(罗格斯大学)

Saketh Ram Kasibatla, Arpan Agarwal, Yuriy Brun, Sorin Lerner, Talia Ringer, Emily First

AI总结:

Cobblestone通过大语言模型生成证明并分解问题,有效提升形式验证自动化水平,证明更多定理且成本低。

摘要:

Cobblestone通过大语言模型生成证明并分解问题,有效提升形式验证自动化水平,证明更多定理且成本低。

英文摘要:

Formal verification using proof assistants, such as Coq, is an effective way of improving software quality, but requires significant effort and expertise. Machine learning can automatically synthesize proofs, but such tools are able to prove only a fraction of desired software properties. We introduce Cobblestone, a divide-and-conquer approach for proof synthesis. Cobblestone uses a large language model (LLM) to generate potential proofs, uses those proofs to break the problem into simpler parts, automatically identifies which of those parts were successfully proven, and iterates on the remaining parts to build a correct proof that is guaranteed to be sound, despite the reliance on unsound LLMs. We evaluate Cobblestone on four benchmarks of open-source Coq projects, controlling for training data leakage. Fully automatically, Cobblestone outperforms state-of-the-art non-LLM tools, and proves many theorems that other LLM-based tools cannot, and on many benchmarks, outperforms them. Each Cobblestone run costs only $1.25 and takes 14.7 minutes, on average. Cobblestone can also be used with external input, from a user or another tool, providing a proof structure or relevant lemmas. Evaluated with such an oracle, Cobblestone proves up to 58% of theorems. Overall, our research shows that tools can make use of partial progress and external input to more effectively automate formal verification.

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

↑