面向契约满足性证明的演绎系统 A Deductive System for Contract Satisfaction Proofs 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-04-10
⬇️ 4 次下载
👁️ 预览文献
💡 AI 中文简介
本文研究如何用交互式证明助手来证明CPU满足硬件-软件契约,即契约能覆盖CPU的泄漏行为。作者发现契约满足性本质上是“相对迹等价”问题,提出“相对互模拟”证明技术,并基于余归纳证明的最新进展,构建了一个可靠且完备的演绎证明系统。该系统支持模块化和增量式证明,并利用对称性和传递性简化证明。作者在Rocq证明助手中形式化了该系统,并成功应用于两个具有挑战性的契约满足性证明。
领域形式化方法/程序验证/侧信道安全
适合谁读需要一定专业背景(形式化方法、程序语言或安全验证领域的研究生或研究者)
核心贡献1. 将契约满足性问题归约为相对迹等价问题,并提出相对互模拟作为证明技术;2. 基于余归纳证明进展,构建了可靠且完备的演绎证明系统,支持模块化、增量式证明及对称性、传递性等推理原则。
关键数据在Rocq证明助手中形式化了演绎系统,并成功应用于两个具有挑战性的契约满足性证明。
推荐理由如果你对CPU侧信道安全的形式化验证感兴趣,这篇论文提供了一套优雅且可机械化的证明框架,值得一读。
关键词["契约满足性", "相对迹等价", "相对互模拟", "余归纳证明", "交互式证明助手", "侧信道安全"]

原文摘要

查看英文原文摘要

Hardware-software contracts are abstract specifications of a CPU's leakage behavior. They enable verifying the security of high-level programs against side-channel attacks without having to explicitly reason about the microarchitectural details of the CPU. Using the abstraction powers of a contract requires proving that the targeted CPU satisfies the contract in the sense that the contract over-approximates the CPU's leakage. Besides pen-and-paper reasoning, proving contract satisfaction has been approached mostly from the model-checking perspective, with approaches based on a (semi-)automated search for the necessary invariants. As an alternative, this paper explores how such proofs can be conducted in interactive proof assistants. We start by observing that contract satisfaction is an instance of a more general problem we call relative trace equality, and we introduce relative bisimulation as an associated proof technique. Leveraging recent advances in the field of coinductive proofs, we develop a deductive proof system for relative trace equality. Our system is provably sound and complete, and it enables a modular and incremental proof style. It also features several reasoning principles to simplify proofs by exploiting symmetries and transitivity properties. We formalized our deductive system in the Rocq proof assistant and applied it to two challenging contract satisfaction proofs.