通过IC3和大语言模型综合分布式协议的归纳不变量
Synthesizing Inductive Invariants for Distributed Protocols via IC3 and Large Language Models
AI总结:
提出IC3Syn框架,结合符号IC3控制器和大语言模型,自动综合分布式协议的归纳不变量,无需逻辑限制或人工模板,在29个协议上验证了有效性。
摘要:
分布式协议的正确验证极其困难。证明安全性通常需要归纳不变量,这些不变量既蕴含所需性质,又在每个协议转换下保持不变;然而推断这样的不变量仍然是一个主要瓶颈:现有方法要么将协议模型限制在一阶逻辑的可判定片段,要么需要专家设计的模板。我们提出了IC3Syn,一个神经符号框架,通过在大语言模型(LLM)的辅助下,在TLA+状态上执行类似IC3的过程来综合归纳不变量。总体而言,IC3Syn结合了一个符号IC3控制器(它将不变量综合分解为聚焦的阻塞任务)和一个LLM(它为TLA+规范提供IC3单独缺乏的协议级推理)。这种集成实现了对不变量的有纪律但灵活的搜索,无需施加逻辑限制或要求手动模板。我们在涵盖共识、重配置和客户端-服务器系统的29个分布式协议上评估了IC3Syn,并将其与Endive、IC3PO、SWISS和DistAI进行了比较。IC3Syn为所有29个协议发现了候选不变量,包括MongoLoglessDynamicRaft(MLDR),一个工业规模的基于Raft的重配置协议,所有比较工具均未报告解决方案,以及一个复杂的Paxos变体。在每种情况下,在有限实例上综合的不变量在TLAPS中被证明对于完整的无界协议是归纳的,从而建立了安全性。
英文摘要:
Distributed protocols are notoriously difficult to verify correctly. Proving safety typically requires inductive invariants that both imply the desired property and are preserved by every protocol transition; yet inferring such invariants remains a major bottleneck: existing approaches either restrict the protocol models to a decidable fragment of first-order logic or demand expert-crafted templates. We present IC3Syn, a neuro-symbolic framework that synthesizes inductive invariants by executing an IC3-style process over TLA+ states with the assistance of Large Language Models (LLMs). At large, IC3Syn combines a symbolic IC3 controller, which decomposes invariant synthesis into focused blocking tasks and an LLM which provides protocol-level reasoning that IC3 alone lacks for TLA+ specifications. This integration enables a disciplined yet flexible search for invariants without imposing logical restrictions or requiring manual templates. We evaluate IC3Syn on 29 distributed protocols spanning consensus, reconfiguration and client-server systems, and compare it against Endive, IC3PO, SWISS and DistAI. IC3Syn discovers candidate invariants for all 29 protocols, including MongoLoglessDynamicRaft (MLDR), an industrial-scale Raft-based reconfiguration protocol for which none of the compared tools reports a solution, as well as one complex Paxos variant. In each case, the invariants synthesized on finite instances are shown in TLAPS to be inductive for the full unbounded protocol, thereby establishing safety.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。