arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.18048cs.DCcs.LO
收藏

通过归纳证明分解进行分布式协议的交互式安全性验证

Interactive Safety Verification of Distributed Protocols by Inductive Proof Decomposition

Northeastern University(东北大学);Microsoft Research(微软研究院)

William Schultz, Edward Ashton, Heidi Howard, Stavros Tripakis

AI总结:

本文提出归纳证明分解方法,用于交互式验证分布式协议的安全性,通过归纳证明图引导人类开发归纳不变量,提升大规模验证效率。

摘要:

近年来,许多自动化验证分布式协议的技术已得到发展,但其性能仍不可预测,且在工业规模验证任务中失败模式可能不透明。因此,实践中大规模验证通常需要一定程度的人工指导。本文提出归纳证明分解,一种新的交互式安全性验证方法,提供一种组合性、交互性的归纳不变量开发方法。我们的方法通过一种新的结构,归纳证明图,引导人类辅助开发归纳不变量。该图通过人类验证者逐步构建,从目标安全性属性倒推。用户通过定位到特定图节点的归纳反例进行引导,且图中的节点进一步基于协议转换关系中的逻辑动作进行分解。我们的分解还使一种局部变量切片技术得以实现,隐藏每个归纳证明子组件中无关的协议状态,使用户能够专注于细粒度的子问题,而不是一个大的整体归纳不变量。我们展示了该技术,并应用它来开发几个复杂分布式协议的归纳安全证明,包括Raft共识协议,这超出了现代自动化验证工具的能力。我们还展示了所开发的证明图如何提供关于协议证明结构及其正确性的额外见解。

英文摘要:

Many techniques for the automated verification of distributed protocols have been developed over the past several years, but their performance is still unpredictable and their failure modes can be opaque for industrial scale verification tasks. Thus, in practice, large-scale verification efforts typically require some amount of human guidance. In this paper, we present inductive proof decomposition, a new methodology for interactive safety verification that provides a compositional, interactive approach to inductive invariant development. Our approach guides the human-aided development of inductive invariants via a novel structure, an inductive proof graph, which is built incrementally by a human verifier, working backwards from a target safety property. A user is guided by induction counterexamples that are localized to specific nodes of this graph, and nodes of this proof graph are further decomposed based on logical actions that appear in a protocol's transition relation. Our decomposition also enables a localized variable slicing technique that hides irrelevant protocol state at each sub-component of an inductive proof, allowing a user to focus on fine-grained sub-problems rather than a large, monolithic inductive invariant. We present our technique and experience applying it to develop inductive safety proofs of several complex distributed protocols, including the Raft consensus protocol, which is beyond the capabilities of modern automated verification tools. We also demonstrate how the developed proof graphs provide additional insight into the structure of a protocol proof and its correctness.

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

↑