[Paper Review] Towards an Automatic Proof of Lamport's Paxos
This paper presents IC3PO, a novel model checker that automatically infers inductive invariants for Lamport's Paxos consensus protocol by exploiting three structural features: spatial regularity (via symmetry boosting), temporal regularity (via range boosting), and hierarchical composition (via hierarchical strengthening). The key contribution is the first fully automatic inference of an inductive invariant that matches the manually derived, human-readable invariant for the original Paxos specification, significantly reducing verification effort.
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.
Motivation & Objective
- To address the high manual effort required to derive inductive invariants for complex distributed protocols like Paxos.
- To overcome the limitations of existing verification tools that rely on interactive theorem proving or are restricted to simplified protocol variants.
- To enable automatic, scalable verification of unbounded, parameterized distributed protocols by leveraging inherent structural regularities.
- To demonstrate that IC3PO can infer a compact, human-readable inductive invariant for Lamport's original Paxos protocol without manual intervention.
Proposed method
- Extends finite-domain IC3/PDR with symmetry boosting to exploit spatial regularity in unordered process sets, enabling automatic quantifier inference over symmetric process replicas.
- Introduces range boosting to handle temporal regularity in totally-ordered domains (e.g., sequence numbers), allowing quantified reasoning over infinite or large ranges.
- Employs hierarchical strengthening to verify high-level abstractions first and reuse their invariants as strengthening assertions for lower-level protocols.
- Uses incremental induction with SMT solving to perform backward reachability checks, learning clauses that are generalized into quantified invariants via symmetry and range analysis.
- Integrates finite convergence guarantees to ensure correctness and completeness of the inference process on finite instances.
- Applies the framework to a four-level hierarchy of Paxos abstractions (Voting → SimplePaxos → ImplicitPaxos → Paxos), progressively refining invariants through top-down abstraction.
Experimental results
Research questions
- RQ1Can an automated model checker infer a correct and compact inductive invariant for Lamport’s original Paxos protocol without manual guidance?
- RQ2How can temporal regularity in totally-ordered domains (e.g., sequence numbers) be exploited to generalize finite-state reasoning to unbounded protocols?
- RQ3Can hierarchical abstraction with invariant reuse improve scalability and automation in verifying complex distributed protocols?
- RQ4To what extent do symmetry, range, and hierarchical structure enable automatic inference of quantified invariants that match human-written proofs?
Key findings
- IC3PO successfully inferred an inductive invariant for Lamport’s original Paxos protocol that is logically equivalent to the manually derived, human-readable invariant from prior work.
- The automatically inferred invariants at each level of the four-level hierarchy (Voting to Paxos) were concise and semantically meaningful, matching the structure of known proofs.
- The tool outperformed other verifiers such as I4, UPDR, fol-ic3, and SWISS on the same problems, with significantly fewer SMT queries and better scalability.
- Range boosting enabled effective reasoning over infinite or large totally-ordered domains, extending incremental induction beyond finite-state systems.
- Symmetry and hierarchical strengthening reduced the need for manual intervention, demonstrating that structural features in protocols can be leveraged to automate invariant inference.
- The evaluation confirmed that IC3PO scales to complex protocols and achieves full automation in deriving invariants that are both correct and readable.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.