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

使用历史变量的分布式算法的简化描述和证明

Simpler Specifications and Easier Proofs of Distributed Algorithms Using History Variables

Saksham Chand, Yanhong A. Liu

摘要:

本文以分布式共识的基本Paxos和多Paxos算法为例,研究了仅使用消息历史变量时分布式算法的规范和证明。我们表明,不使用和维护其他状态变量产生更简单的规范,更声明性和更容易理解。它还允许通过需要更少的不变量和促进证明推导来开发更容易的证明。此外,还可以更有效地机械检查证据。我们表明,规格TLA+,Lamport的时间逻辑的行动,并证明在TLAPS,TLA+证明系统(TLAPS)减少了四分之一或更多的单值Paxos和约一半或更多的多值Paxos。总的来说,我们需要大约一半的手工编写的不变量和证明义务。我们的基本Paxos证明需要TLAPS检查的时间减少约25%,我们的Multi-Paxos证明在1.5分钟内检查,而TLAPS无法检查以前的证明。

英文摘要:

This paper studies specifications and proofs of distributed algorithms when only message history variables are used, using the Basic Paxos and Multi-Paxos algorithms for distributed consensus as precise case studies. We show that not using and maintaining other state variables yields simpler specifications that are more declarative and easier to understand. It also allows easier proofs to be developed by needing fewer invariants and facilitating proof derivations. Furthermore, the proofs are mechanically checked more efficiently. We show that specifications in TLA+, Lamport's temporal logic of actions, and proofs in TLAPS, the TLA+ Proof System (TLAPS) are reduced by a quarter or more for single-value Paxos and by about half or more for multi-value Paxos. Overall we need about half as many manually written invariants and proof obligations. Our proof for Basic Paxos takes about 25% less time for TLAPS to check, and our proofs for Multi-Paxos are checked within 1.5 minutes whereas prior proofs fail to be checked by TLAPS.

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

↑