用于分布式协议验证的场景证明
Scenario Proofs for Verification of Distributed Protocols
AI总结:
本文提出场景证明这一形式验证方法,将协议设计者面向执行的推理形式化,通过覆盖性与正确性两大义务完成分布式协议验证,经多案例验证可替代整体不变量发现。
摘要:
分布式协议的形式验证目前仍以归纳不变量证明为主,其核心挑战在于发现能够排除不可达状态的强化断言。这种负担往往与协议设计者的推理方式不匹配:设计者通过跟踪代表性执行过程、因果历史以及节点间的阶段结构化交互来解释正确性。本文提出场景证明,这是一种将此类面向执行的推理形式化的验证方法。场景是一种结构化表达式,用于描述代表性协议执行过程,并加入了幽灵变量(ghost variables)。场景不会枚举所有可能的交错,而是描述规范执行过程,并利用合理的半交换关系来解释那些保持可行性和最终状态的重排序。验证过程分解为两个主要义务:覆盖性证明表明,每一个可行的协议执行过程,在半交换关系下都等价于场景所描述的执行过程;该义务独立于安全属性,可作为协议的可复用行为表征。正确性证明仅在代表性执行过程上验证所需的安全属性,通过沿场景结构的霍尔式最弱前置条件推理实现。我们形式化了场景语言、其分层语义以及覆盖性和正确性的证明规则。通过对环领导选举、两阶段提交、去中心化锁、两种多签名支付变体以及单指令Paxos的案例研究,我们展示了场景证明如何捕捉协议设计者非正式使用的基于因果和阶段的论证。这些示例表明,场景证明可以用对代表性执行过程的结构化推理替代整体不变量发现,同时保持与所有可行协议行为的严格关联。
英文摘要:
Formal verification of distributed protocols is still dominated by inductive-invariant proofs, whose central challenge is discovering strengthening assertions that rule out unreachable states. This burden is often misaligned with how protocol designers reason: they explain correctness by following representative executions, causal histories, and phase-structured interactions among nodes. This paper introduces scenario proofs, a verification methodology that makes such execution-oriented reasoning formal. A scenario is a structured expression describing representative protocol executions, enriched with ghost variables. Rather than enumerate all possible interleavings, a scenario describes canonical executions and uses a sound semi-commutation relation to account for reorderings that preserve feasibility and final states. Verification then factors into two main obligations. Coverage shows that every feasible protocol execution is equivalent, up to semi-commutation, to one described by the scenario; this obligation is independent of the safety property and serves as a reusable behavioral characterization of the protocol. Correctness proves the desired safety property only over the representative executions, using Hoare-style weakest-precondition reasoning along the scenario structure. We formalize the scenario language, its layered semantics, and proof rules for coverage and correctness. Through case studies of ring leader election, two-phase commit, a decentralized lock, two variants of multi-signature payment, and single-decree Paxos, we show how scenario proofs capture the causal and phase-based arguments used informally by protocol designers. These examples illustrate that scenario proofs can replace monolithic invariant discovery with structured reasoning over representative executions, while retaining a rigorous connection to all feasible protocol behaviors.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。