认证的可合并复制数据类型
Certified Mergeable Replicated Data Types
摘要:
复制的数据类型(RDT)是数据结构,其允许并发修改多个可能地理分布的副本,而无需在它们之间进行协调。RDT的设计方式是,冲突的操作最终确定性地协调,确保收敛。构建正确的RDTs仍然是一个困难的努力,由于推理的复杂性独立演变的副本的状态。随着对RDT正确性的关注(正确地),RDT的现有方法在本地操作的时间和空间复杂度方面与它们的顺序对应物相比效率较低。这是不幸的,因为RDT通常用于本地优先的设置,其中本地操作远远超过远程通信。在本文中,我们提出了Peepul,一个务实的方法来建立和验证有效的RDTs。为了使推理的正确性更容易,我们铸造RDTs的模具的分布式版本控制系统,并配备了一个三路合并功能,协调冲突的版本。此外,我们超越了仅仅验证收敛,并提供了一种方法来验证任意复杂的规格。我们开发了一个复制感知的仿真关系RDT规范,其高效的纯功能的实现。我们将Peepul实现为一个F* 库,它将证明义务释放给SMT求解器。将验证后的有效RDT提取为OCaml代码,并用于类Git的分布式数据库Irmin中。
英文摘要:
Replicated data types (RDTs) are data structures that permit concurrent modification of multiple, potentially geo-distributed, replicas without coordination between them. RDTs are designed in such a way that conflicting operations are eventually deterministically reconciled ensuring convergence. Constructing correct RDTs remains a difficult endeavour due to the complexity of reasoning about independently evolving states of the replicas. With the focus on the correctness of RDTs (and rightly so), existing approaches to RDTs are less efficient compared to their sequential counterparts in terms of time and space complexity of local operations. This is unfortunate since RDTs are often used in a local-first setting where the local operations far outweigh remote communication. In this paper, we present Peepul, a pragmatic approach to building and verifying efficient RDTs. To make reasoning about correctness easier, we cast RDTs in the mould of a distributed version control system, and equip it with a three-way merge function for reconciling conflicting versions. Further, we go beyond just verifying convergence, and provide a methodology to verify arbitrarily complex specifications. We develop a replication-aware simulation relation to relate RDT specifications to their efficient purely functional implementations. We implement Peepul as an F* library that discharges proof obligations to an SMT solver. The verified efficient RDTs are extracted as OCaml code and used in Irmin, a Git-like distributed database.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。