Operation-based Conflict-free Replicated Data Types (op-based CRDTs) are a family of distributed data structures where all operations are designed to commute, so that replica states eventually converge.
Additionally, op-based CRDTs require that operations be propagated between replicas in causal order.
This paper presents a framework for verifying safety properties of CRDT implementations using separation logic.
The framework consists of two libraries.
One implements a Reliable Causal Broadcast (RCB) protocol so that replicas can exchange messages in causal order.
A second ``OpLib" library then uses RCB to simplify the creation and correctness proofs of op-based CRDTs.
OpLib allows clients to implement new CRDTs as purely-functional data structures, without having to reason about network operations, concurrency control and mutable state, and without having to each time re-implement causal broadcast.
Using OpLib, we have implemented 12 example CRDTs from the literature, including multiple versions of replicated registers and sets, two CRDT combinators for products and maps, and two example use cases of the map combinator.
Our proofs are conducted in the Aneris distributed separation logic and are formalized in Coq.
Our technique is the first work on verification of op-based CRDTs that satisfies both of the following properties: it is \emph{modular} and targets executable \emph{implementations}, as opposed to high-level protocols.
Wed 30 NovDisplayed time zone: Auckland, Wellington change
04:00 - 05:30 | Session 1V-OOPSLA at Virtual Airmeet Room Chair(s): Amal Ahmed Northeastern University, USA, Jan Vitek Northeastern University | ||
04:00 15mTalk | Generic Go to Go: Dictionary-Passing, Monomorphisation, and HybridPre-recorded V-OOPSLA Stephen Ellis Imperial College London, Shuofei Zhu Pennsylvania State University, Nobuko Yoshida University of Oxford, Linhai Song Pennsylvania State University DOI | ||
04:15 15mResearch paper | Coverage-guided tensor compiler fuzzing with joint IR-pass mutationPre-recorded V-OOPSLA Jiawei Liu University of Illinois at Urbana-Champaign, Yuxiang Wei Tongji University, Sen Yang Fudan University, Yinlin Deng University of Illinois at Urbana-Champaign, Lingming Zhang University of Illinois at Urbana-Champaign DOI | ||
04:30 15mTalk | Modular Verification of Op-Based CRDTs in Separation Logic V-OOPSLA Abel Nieto Aarhus University, Léon Gondelman Aarhus University, Alban Reynaud ENS Lyon, Amin Timany Aarhus University, Lars Birkedal Aarhus University DOI | ||
04:45 15mTalk | Monadic and Comonadic Aspects of Dependency Analysis V-OOPSLA Pritam Choudhury University of Pennsylvania DOI | ||
05:00 30mLive Q&A | Q&A for Session 1 V-OOPSLA |