paperbot · PL 论文追踪

全部论文 待读 收藏

P2 A Deductive System for Contract Satisfaction Proofs

面向契约满足证明的演绎系统
PLDI 10(PLDI)2026匹配度 3/10 · 论文聚焦交互式定理证明中 CPU 契约满足证明的形式化演绎系统,属于形式化验证/程序验证;但用户关注的是静态分析、Agentic/LLM 与形式化验证交叉、浮点/贝叶斯程序分析,本文未涉及 LLM/Agent 或这些具体方向,仅方法层面有间接关联。引用 1 inbox
Arthur Correnson, Haoyi Zeng, Jana Hofmann
crossref: 2026-09-10

AI 速览

一句话:提出相对轨迹相等问题与相对互模拟技术,给出可靠完备的演绎证明系统,并在Rocq中形式化用于CPU契约满足证明。

软硬件契约以抽象方式刻画CPU的泄漏行为,使高层程序可免于显式推理微架构细节而验证侧信道安全性;但使用该抽象需证明目标CPU满足契约,即契约对CPU泄漏是过近似。已有工作多采用模型检测和半自动不变式搜索。本文改在交互式证明助手中构造此类证明,首先观察到契约满足是一类更一般的“相对轨迹相等”问题的实例,并引入相对互模拟作为证明技术。借助共归纳证明的进展,作者提出相对轨迹相等的演绎证明系统,证明其可靠且完备,并支持模块化、增量式证明;系统还提供利用对称性与传递性的推理原则以简化证明。作者在Rocq证明助手中形式化该系统,并成功应用于两个具有挑战性的契约满足证明。

问题
证明目标CPU满足硬件-软件契约,即契约过近似CPU泄漏行为,是侧信道安全验证中的关键但困难问题。
方法
将契约满足归约为相对轨迹相等,提出相对互模拟,并基于共归纳证明构建可靠完备、模块化的演绎证明系统,在Rocq中形式化。
评估
在Rocq中形式化该系统,并完成两个高挑战性的契约满足证明案例。
原文摘要(Abstract)

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.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@article{abs-2604-09165,
  title = {A Deductive System for Contract Satisfaction Proofs},
  author = {Arthur Correnson and Haoyi Zeng and Jana Hofmann},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {10},
  number = {PLDI},
  year = {2026},
  doi = {10.1145/3808251}
}