Stephen: Verifying Sequencer-Aided Coordination Systems with Cross-View Prophecy
Jinkun Geng, Muhammad Haseeb, Daniel Qian, Joseph Tassarotti, Shuai Mu, Anirudh Sivaraman
Key points
From the paper's conclusion- We fix them and prove the fixes correct. (3) We apply Stephen to NOPaxos, Corfu and LazyLog.
Abstract
Many distributed systems achieve high performance by relying on dedicated sequencers to order requests, leaving replicas to commit them in that order. Despite more than a decade of such sequencer-aided coordination (SAC) systems, from Corfu and NOPaxos to LazyLog and SwitchBFT, their correctness has been argued only with pen-and-paper proofs or bounded model checking at the protocol level. In this paper, we formally verify implementations of SAC protocols. The sequencer seems to make this easy: it decides the order of all requests, so the proof can place each request's linearization point at the sequencer using a well-known technique, prophecy variables. Yet a linearization point placed at the sequencer is not durable, because the sequencer orders a request before any replica commits it. Crashes and other rare events may trigger a view change that discards the request, nullifying the earlier decision and the proof that rests on it. Our framework, Stephen, extends prophecy variables to handle view changes, and we make three contributions. (1) We develop cross-view prophecy peek, which lets the proof follow a request across view changes until it is either committed or permanently discarded. (2) Our verification uncovered bugs in existing SAC implementations, including one that can lose committed requests. We fix them and prove the fixes correct. (3) We apply Stephen to NOPaxos, Corfu and LazyLog. We build verified implementations with machine-checked proofs of linearizability. They perform within 17% of their open-source, unverified counterparts. The verified implementations and proofs will be open-sourced.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- PRDTs: Composable Design and Verification of Consensus Protocols using Replicated Data TypesProceedings of the ACM on Programming Languages · 2026
- Modular Responsiveness Verification of Rust Async RuntimesarXiv · 2026
- TLAPS-Bench: Formally Proving Correctness of Real-World System Specifications with TLA+ Proof SystemarXiv · 2026
- Vbox: Efficient Black-Box Serializability VerificationProceedings of the ACM on Software Engineering · 2026
- Two Sides of the Same Proof: Extraction and Projection in Choreographic ProgrammingarXiv · 2026
- A Relational Separation Logic for Effect HandlersProceedings of the ACM on Programming Languages · 2026