HackerPapers

arXiv:2108.08796cs.LO

Towards an Automatic Proof of Lamport's Paxos

Aman Goel, Karem A. Sakallah

Abstract

Lamport's celebrated Paxos consensus protocol is generally viewed as a complex hard-to-understand algorithm. Notwithstanding its complexity, in this paper, we take a step towards automatically proving the safety of Paxos by taking advantage of three structural features in its specification: spatial regularity in its unordered domains, temporal regularity in its totally-ordered domain, and its hierarchical composition. By carefully integrating these structural features in IC3PO, a novel model checking algorithm, we were able to infer an inductive invariant that identically matches the human-written one previously derived with significant manual effort using interactive theorem proving. While various attempts have been made to verify different versions of Paxos, to the best of our knowledge, this is the first demonstration of an automatically-inferred inductive invariant for Lamport's original Paxos specification. We note that these structural features are not specific to Paxos and that IC3PO can serve as an automatic general-purpose protocol verification tool.

arXiv comments
"to be published in Formal Methods in Computer-Aided Design (FMCAD) 2021, see https://fmcad.org/FMCAD21"
Journal reference
DOI
doi:10.34727/2021/isbn.978-3-85448-046-4_20
Subjects
cs.LOLogic in Computer Science cs.DCDistributed, Parallel, and Cluster Computing cs.FLFormal Languages and Automata Theory

On Hacker News

Linked by 2 identifiable commenters in 2 comments across 1 thread, from Oct 2021 to Oct 2021. Found in 1 HN submission from Aug 2021 to Aug 2021. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments1 thread

    • Towards an Automatic Proof of Lamport's Paxos (2021) https://arxiv.org/pdf/2108.08796.pdf

      threatofrainView on HNParent context

    • The conclusion in the paper states it's left as future work. "Future work also includes automatically inferring inductive proofs for other distributed protocols, such as Byzantine Paxos [15], Raft [90], etc., and exploring the verification of consensus algorithms in blockchain…

      _r2glView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.