arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.27202cs.PLcs.DC
收藏

Sal:多模态验证复制数据类型

Sal: Multi-modal Verification of Replicated Data Types

Indian Institute of Technology, Madras(印度马德拉斯理工学院)

Pranav Ramesh, Vimala Soundarapandian, KC Sivaramakrishnan

AI总结:

Sal通过结合内核可验证的自动化、SMT辅助自动化及AI辅助交互式定理证明,实现CRDT和MRDT的多模态验证,69%的验证条件由内核验证自动化解决,自动生成反例暴露隐秘错误。

摘要:

设计正确性的复制数据类型(RDTs)具有挑战性,因为副本独立演进且必须合并以保持应用意图。一种有前景的方法是在以证明为导向的编程语言如F*、Dafny和Lean中采用正确性由构造设计的方法。最近的工作Neem提出使用复制感知线性化(RA线性化)作为状态基CRDT和可合并复制数据类型(MRDT)的正确性条件,并在F*中实现自动化。然而,当自动化无法证明验证条件(VC)时,基于SMT的工作流程可能变得不透明,并增加可信计算基(TCB)。我们提出了Sal,一种用于在Lean中设计和验证状态基CRDT和MRDT的多模态工作流程。Sal结合(i)内核可验证的自动化与证明重构,(ii)需要时的SMT辅助自动化,以及(iii)AI辅助的交互式定理证明用于剩余的证明义务。当验证条件被证明无效时,我们利用Lean的属性基于测试自动生成功能和可视化反例,帮助开发者调试不正确的规范或实现。我们报告了使用Sal验证13个CRDT和MRDT套件的经验:69%的验证条件由内核验证自动化解决而无需SMT,反例自动暴露如著名的enable-wins标志异常等细微错误。Sal的代码库已开源,可在https://github.com/fplaunchpad/sal获取。

英文摘要:

Designing correct replicated data types (RDTs) is challenging because replicas evolve independently and must be merged while preserving application intent. A promising approach is correct-by-construction development in a proof-oriented programming language such as F*, Dafny and Lean, where desired correctness guarantees are specified and checked as the RDTs are implemented. Recent work Neem proposes the use of replication-aware linearizability (RA linearizability) as the correctness condition for state-based CRDTs and mergeable replicated data types (MRDTs), with automation in the SMT-aided, proof-oriented programming language F*. However, SMT-centric workflows can be opaque when automation fails to discharge a verification condition (VC), and they enlarge the trusted computing base (TCB). We present Sal, a multi-modal workflow to design and verify state-based CRDTs and MRDTs in Lean. Sal combines (i) kernel-checkable automation with proof reconstruction, (ii) SMT-aided automation when needed, and (iii) AI-assisted interactive theorem proving for remaining proof obligations. When a verification condition is shown to be invalid, we leverage Lean's property-based testing to automatically generate and visualize counterexamples, helping developers debug incorrect specifications or implementations. We report on our experience verifying a suite of 13 CRDTs and MRDTs with Sal: 69% of verification conditions are discharged by kernel-verified automation without SMT, and counterexamples automatically expose subtle bugs such as the well-known enable-wins flag anomaly. The codebase for Sal is open-sourced, and is available at \href{https://github.com/fplaunchpad/sal}{https://github.com/fplaunchpad/sal}

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

↑