[Paper Review] Paxos Consensus, Deconstructed and Abstracted (Extended Version)
This paper presents a modular verification framework for Paxos consensus protocols by decomposing single-decree Paxos into composable, non-deterministic specifications and introducing protocol-aware network transformations to verify Multi-Paxos from verified single-decree Paxos. The approach enables reusable, composable proofs using rely/guarantee reasoning with prophecy variables and linearisation points, achieving behaviour-preserving transformations that preserve client-level semantics.
Lamport's Paxos algorithm is a classic consensus protocol for state machine replication in environments that admit crash failures. Many versions of Paxos exploit the protocol's intrinsic properties for the sake of gaining better run-time performance, thus widening the gap between the original description of the algorithm, which was proven correct, and its real-world implementations. In this work, we address the challenge of specifying and verifying complex Paxos-based systems by (a) devising composable specifications for implementations of Paxos's single-decree version, and (b) engineering disciplines to reason about protocol-aware, semantics-preserving optimisations to single-decree Paxos. In a nutshell, our approach elaborates on the deconstruction of single-decree Paxos by Boichat et al. We provide novel non-deterministic specifications for each module in the deconstruction and prove that the implementations refine the corresponding specifications, such that the proofs of the modules that remain unchanged can be reused across different implementations. We further reuse this result and show how to obtain a verified implementation of Multi-Paxos from a verified implementation of single-decree Paxos, by a series of novel protocol-aware transformations of the network semantics, which we prove to be behaviour-preserving.
Motivation & Objective
- To address the growing gap between formally specified Paxos variants and their optimized, real-world implementations.
- To enable modular, composable verification of Paxos-based systems by decomposing single-decree Paxos into independent, specifiable components.
- To develop a methodology for verifying Multi-Paxos by reusing verified single-decree Paxos through behaviour-preserving transformations of network semantics.
- To support protocol-aware optimizations without re-proving correctness from scratch, enhancing scalability of formal verification.
- To provide a foundation for verifying other consensus protocols beyond Paxos, such as Raft and PBFT.
Proposed method
- Deconstructing single-decree Paxos into shared-memory-style modules using non-deterministic specifications inspired by Boichat et al.'s abstractions.
- Introducing novel, non-deterministic register-based specifications for proposer and acceptor roles, enabling modular refinement proofs.
- Applying rely/guarantee reasoning with prophecy variables and explicit linearisation points to prove that implementations refine their specifications.
- Defining a family of protocol-aware network semantics transformations that preserve client-visible behavior across protocol instances.
- Constructing a verified Multi-Paxos implementation by applying these transformations to a verified single-decree Paxos system.
- Validating the approach with an executable prototype that exposes a high-level shared-memory-like interface.
Experimental results
Research questions
- RQ1How can single-decree Paxos be decomposed into composable, independently verifiable components with non-deterministic specifications?
- RQ2In what way does introducing non-determinism into specifications still allow for strong correctness guarantees at the top-level consensus abstraction?
- RQ3How can protocol-aware network transformations be formally defined to preserve client behavior when composing multiple Paxos instances?
- RQ4Can a verified Multi-Paxos implementation be constructed by reusing proofs from a verified single-decree Paxos implementation?
- RQ5To what extent can this methodology be generalized to other consensus protocols like Raft or PBFT?
Key findings
- The authors successfully define composable, non-deterministic specifications for proposer and acceptor modules in single-decree Paxos that support modular verification via rely/guarantee reasoning.
- The use of prophecy variables and linearisation points enables modular, independent proofs of correctness for each component, even under non-deterministic specifications.
- The paper establishes a formal framework for behaviour-preserving network transformations that allow the construction of Multi-Paxos from verified single-decree Paxos without re-proving consensus properties.
- A high-level, executable prototype of Multi-Paxos is implemented using these transformations, demonstrating the feasibility and modularity of the approach.
- The methodology enables proof reuse across implementations, significantly reducing the effort required to verify optimized Paxos variants.
- The framework is extensible and applicable beyond Paxos, with potential for verification of protocols such as Mencius, Raft, and PBFT.
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.