arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1805.04263cs.DC
收藏

OpSets:复制数据库的顺序规范(扩展版)

OpSets: Sequential Specifications for Replicated Datatypes (Extended Version)

Martin Kleppmann, Victor B. F. Gomes, Dominic P. Mulligan, Alastair R. Beresford

摘要:

我们介绍OpSets,一个可执行的框架,用于指定和推理的语义复制的datasets,提供最终的一致性,在分布式系统中,并机械验证算法,实现这些datasets。我们的方法很简单,但表现力,使我们能够简洁地指定各种抽象的数据库,包括地图,集,列表,文本,图形,树和寄存器。我们的数据库也是可组合的,支持构建复杂的数据结构。为了演示OpSets用于分析复制算法的实用性,我们强调了传统上被忽视的协作文本编辑的一个重要的正确性属性;不满足此属性的算法可以表现出尴尬的文本交错。我们使用OpSets来指定此正确性属性,并证明,虽然现有的复制算法满足此属性,其他几个已发布的算法不。我们还展示了如何OpSets可以用来开发新的复制datashees:我们提供了一个简单的规范的原子移动操作树,以前被认为是不可能实现的操作没有锁定。我们使用Isabelle/HOL证明助手来形式化OpSets方法,并在本文中产生主要主张正确性的机械化证明,从而消除了以前非正式方法的模糊性,并排除了手写证明中可能发生的推理错误。

英文摘要:

We introduce OpSets, an executable framework for specifying and reasoning about the semantics of replicated datatypes that provide eventual consistency in a distributed system, and for mechanically verifying algorithms that implement these datatypes. Our approach is simple but expressive, allowing us to succinctly specify a variety of abstract datatypes, including maps, sets, lists, text, graphs, trees, and registers. Our datatypes are also composable, enabling the construction of complex data structures. To demonstrate the utility of OpSets for analysing replication algorithms, we highlight an important correctness property for collaborative text editing that has traditionally been overlooked; algorithms that do not satisfy this property can exhibit awkward interleaving of text. We use OpSets to specify this correctness property and prove that although one existing replication algorithm satisfies this property, several other published algorithms do not. We also show how OpSets can be used to develop new replicated datatypes: we provide a simple specification of an atomic move operation for trees, an operation that had previously been thought to be impossible to implement without locking. We use the Isabelle/HOL proof assistant to formalise the OpSets approach and produce mechanised proofs of correctness of the main claims in this paper, thereby eliminating the ambiguity of previous informal approaches, and ruling out reasoning errors that could occur in handwritten proofs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑