Simpler Specifications and Easier Proofs of Distributed Algorithms Using History Variables

Saksham Chand, Yanhong A. Liu
2/27/2018
cs.DCcs.LO

Official code: DistAlgo/proofs (9 stars, TLA, last commit 2019-11-04).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

DistAlgo/proofsOfficial100%
94TLAJun 11, 20187 years ago

Similar Papers

Cite this paper

@article{chand2018simpler,
  title  = {Simpler Specifications and Easier Proofs of Distributed Algorithms Using History Variables},
  author = {Saksham Chand and Yanhong A. Liu},
  year   = {2018},
  eprint = {1802.09687},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1802.09687}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1802.09687.svg)](https://codeofpaper.com/paper/1802.09687)

Discussion