arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.03406cs.CRcs.PL
收藏

LeanDY:在Lean中基于类型和踪迹的符号协议验证

LeanDY: Type-Based and Trace-Based Symbolic Protocol Verification in Lean

TU Wien(维也纳工业大学);Fondazione Bruno Kessler(布鲁诺·凯斯勒基金会);Christian Doppler Laboratory Blockchain Technologies for the Internet of Things(区块链物联网技术基督教多普勒实验室)

Simon Jeanteur, Lorenzo Veronese, Magdalena Solitro, Matteo Maffei

AI总结:

针对现有密码协议验证技术的不足,提出结合基于组合类型推理与基于踪迹推理的方法,实现有状态和无界协议的模块化验证,以弥合验证差距,且兼具自动化与高表达性。

摘要:

计算机辅助形式验证广泛用于密码协议符号分析,但现代协议的一些特性对现有技术仍具挑战。我们提出一种正交方法,结合基于组合类型推理与基于踪迹推理,弥合差距。以语言与自动化协同设计原则为指导,实现兼具特定协议自动化与高表达性的框架,并在Lean证明助手里实现为LeanDY库。

英文摘要:

Computer-aided formal verification is a widely used approach for the symbolic analysis of cryptographic protocols. However, many modern protocols rely on features that remain challenging for existing techniques. In particular, reasoning about state, time-dependent behavior, inductively defined data structures, unbounded executions, and conditional secrecy requires a level of expressiveness that is difficult to reconcile with effective automation. As a result, protocol verification has largely followed two disjoint paths: fully automated methods with limited expressiveness, or interactive proofs in general-purpose theorem provers that offer flexibility but only limited, non-specialized automation. We present an orthogonal approach that bridges this gap by combining compositional type-based reasoning with trace-based reasoning, enabling modular verification of stateful and unbounded protocols. Guided by the language-and-automation co-design (LAC) principle, our approach delivers protocol-specific automation while retaining high expressiveness. We implement this framework as the LeanDY library for the Lean proof assistant, building on and extending the design of DY*, and combining protocol-specific automation with interactive proofs. Our framework supports, in a unified setting, a broad class of functional and security requirements, including secrecy and authentication for stateful protocols, as well as recursive conditional secrecy for protocols using XOR. We formalize SegWit-style blockchain primitives in LeanDY and demonstrate its expressiveness by carrying out an in-depth formalization of payment channels on top of this blockchain model, verifying punishment mechanisms and properties that depend on chain liveness.

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

↑