CV-Rules: 通过显式事务排序实现并发控制协议的可串行化验证
CV-Rules: Serializability Verification of Concurrency Control Protocols via Explicit Transaction Ordering
AI总结:
提出CV-rules,通过显式事务排序和两个读条件(C-rule和V-rule)等价刻画可串行化,并验证五种协议,其中SSN和Aria的显式排序被识别,Aria的唯一写约束被证明非必要。
摘要:
我们提出CV-rules,这是可串行化的一种替代刻画,其中由协议构建的事务顺序满足两个每读条件:C-rule(因果性)和V-rule(视图一致性),这两个条件约束了读自关系和竞争写入者。经典的多版本序列化图(MVSG)推理通过无环性刻画可串行化,而我们的方法需要显式顺序构建,从而能够基于协议自身机制进行直接证明。我们证明了CV-rules、可串行化和MVSG无环性三者等价。此外,C/V分离揭示了对于C-rule强制顺序宽度的任何固定界限,可串行化是多项式时间可判定的。我们验证了五种协议:两阶段锁、多版本时间戳排序、串行安全网(SSN)、Aria和SnapChain。对于SSN和Aria,其原始论文仅定义了认证条件,我们识别了由其机制产生的显式事务顺序;我们还证明了Aria的唯一写约束对于可串行化是不必要的。相比之下,SnapChain直接根据CV-rules设计,通过构造强制执行V-rule。除复杂度界限外,所有结果均在Lean中机械化,无需额外公理且无未完成目标。
英文摘要:
We present CV-rules, an alternative characterization of serializability in which a transaction order constructed by a protocol satisfies two per-read conditions, C-rule (Causality) and V-rule (View Consistency), that constrain the reads-from relation and competing writers. While classical Multi-Version Serialization Graph (MVSG) reasoning characterizes serializability via its acyclicity, our approach requires explicit order construction, enabling direct proofs that build on the protocol's own mechanisms. We prove that CV-rules, serializability, and MVSG acyclicity are all equivalent. Moreover, the C/V separation reveals that serializability is polynomial-time decidable for any fixed bound on the width of the order forced by C-rule. We verify five protocols: Two-Phase Locking, Multi-Version Timestamp Ordering, Serial Safety Net (SSN), Aria, and SnapChain. For SSN and Aria, whose original papers defined only certification conditions, we identify explicit transaction orders arising from their mechanisms; we also prove that Aria's unique-write constraint is unnecessary for serializability. SnapChain, in contrast, is designed directly from CV-rules, enforcing V-rule by construction. All results except the complexity bounds are mechanized in Lean with no additional axioms and no admitted goals.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。