关于合同满足证明的演绎系统
A Deductive System for Contract Satisfaction Proofs
AI总结:
本文提出基于交互证明助手的合同满足证明方法,引入相对迹相等性概念并设计了完备的演绎系统,支持模块化和增量证明,通过利用对称性和传递性简化证明过程。
摘要:
硬件-软件合同是对CPU泄漏行为的抽象规范。它们允许在不需显式考虑CPU微架构细节的情况下,验证高级程序对侧信道攻击的安全性。使用合同的抽象能力需要证明目标CPU满足合同,即合同过度逼近CPU的泄漏行为。除了手写推理外,证明合同满足性主要从模型检查角度出发,基于(半)自动搜索必要不变量的方法。作为替代,本文探讨如何在交互证明助手中进行此类证明。我们首先观察到合同满足性是更一般问题相对迹相等性的实例,并引入相对双射作为相关证明技术。利用共诱导证明领域的最新进展,我们开发了相对迹相等性的演绎证明系统。我们的系统被证明是正确且完整的,并支持模块化和增量证明风格。它还具有几种推理原则,通过利用对称性和传递性属性来简化证明。我们已在Rocq证明助手中形式化了我们的演绎系统,并应用于两个具有挑战性的合同满足证明。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。