VeriStruct:基于AI的Verus数据结构模块自动化验证框架
VeriStruct: AI-assisted Automated Verification of Data-Structure Modules in Verus
AI总结:
VeriStruct通过AI辅助自动化验证技术,实现了对数据结构模块的高效验证,成功验证了99.2%的函数。
摘要:
我们介绍了VeriStruct,一种新的框架,将基于AI的自动化验证从单个函数扩展到更复杂的数据结构模块。VeriStruct采用规划模块来协调系统化生成抽象、类型不变式、规范和证明代码。为了解决LLM经常误解Verus注释语法和验证特定语义的问题,VeriStruct在提示中嵌入了语法指导,并包含一个修复阶段来自动纠正注释错误。在对十一组Rust数据结构模块的评估中,VeriStruct在十一个模块中成功验证了128个函数中的129个(99.2%)。这些结果是实现自动AI辅助形式验证目标的重要一步。
英文摘要:
We introduce VeriStruct, a novel framework that extends AI-assisted automated verification from single functions to more complex data structure modules in Verus. VeriStruct employs a planner module to orchestrate the systematic generation of abstractions, type invariants, specifications, and proof code. To address the challenge that LLMs often misunderstand Verus' annotation syntax and verification-specific semantics, VeriStruct embeds syntax guidance within prompts and includes a repair stage to automatically correct annotation errors. In an evaluation on eleven Rust data structure modules, VeriStruct succeeds on ten of the eleven, successfully verifying 128 out of 129 functions (99.2%) in total. These results represent an important step toward the goal of automatic AI-assisted formal verification.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。