paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Mostly Automated Verification of Liveness Properties for Distributed Protocols with Ranking Functions

基于秩函数的分布式协议活性性质的大部分自动化验证
POPL 8(POPL)2024匹配度 2/10 · 该论文研究分布式协议活性性质的自动化验证,属于形式化验证/程序验证方向,但未涉及用户核心关注的 LLM/Agent 与静态分析/形式化验证交叉、Agentic 程序分析、浮点程序分析或贝叶斯程序分析。仅与“形式化验证”这一宽泛背景有弱关联,因此匹配度较低。引用 12 inbox
Jianan Yao, Runzhou Tao, Ronghui Gu, Jason Nieh
crossref: 2026-09-10

AI 速览

一句话:提出 LVR,首个可大部分自动验证分布式协议活性性质的框架,将活性归约为秩函数与无死锁的安全性验证。

分布式协议常以安全性和活性性质刻画。安全性性质的自动验证近年进展显著,但活性验证仍是难题。本文提出 LVR,首个可大部分自动验证分布式协议活性性质的框架。核心洞见是借助秩函数将多数活性性质归约为一组安全性性质。作者证明,只需验证秩函数在任意状态迁移下严格递减且非负,并且协议无死锁,即可推出活性。LVR 构造协议整数变量的参数化秩函数,静态分析变量上下界及迁移中的变化量,再交给 SMT 求解器确定系数;随后用现成验证工具寻找归纳不变式,验证秩函数安全条件与无死锁性。实验表明,LVR 能在有限用户引导下大部分自动验证多种分布式协议(含多个 Paxos 版本)的活性性质。

问题
分布式协议的活性性质自动验证长期困难;已有工作多聚焦安全性,缺乏可扩展的活性验证方法。
方法
提出 LVR:用秩函数把活性归约为安全性,自动合成秩函数并用 SMT 与现成验证工具生成归纳不变式,验证秩函数递减/非负及无死锁。
评估
在多个分布式协议(包括不同版本 Paxos)上评估,展示只需有限用户引导即可大部分自动完成活性性质验证。
原文摘要(Abstract)

Distributed protocols have long been formulated in terms of their safety and liveness properties. Much recent work has focused on automatically verifying the safety properties of distributed protocols, but doing so for liveness properties has remained a challenging, unsolved problem. We present LVR, the first framework that can mostly automatically verify liveness properties for distributed protocols. Our key insight is that most liveness properties for distributed protocols can be reduced to a set of safety properties with the help of ranking functions. Such ranking functions for practical distributed protocols have certain properties that make them straightforward to synthesize, contrary to conventional wisdom. We prove that verifying a liveness property can then be reduced to a simpler problem of verifying a set of safety properties, namely that the ranking function is strictly decreasing and nonnegative for any protocol state transition, and there is no deadlock. LVR automatically synthesizes ranking functions by formulating a parameterized function of integer protocol variables, statically analyzing the lower and upper bounds of the variables as well as how much they can change on each state transition, then feeding the constraints to an SMT solver to determine the coefficients of the ranking function. It then uses an off-the-shelf verification tool to find inductive invariants to verify safety properties for both ranking functions and deadlock freedom. We show that LVR can mostly automatically verify the liveness properties of several distributed protocols, including various versions of Paxos, with limited user guidance.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot2637,
  title = {Mostly Automated Verification of Liveness Properties for Distributed Protocols with Ranking Functions},
  author = {Jianan Yao and Runzhou Tao and Ronghui Gu and Jason Nieh},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {8},
  number = {POPL},
  year = {2024},
  doi = {10.1145/3632877}
}