ArXiv TLDR

A Deductive System for Contract Satisfaction Proofs

🐦 Tweet
2604.09165

Arthur Correnson, Haoyi Zeng, Jana Hofmann

cs.PLcs.CRcs.LO

TLDR

A new deductive system, based on relative bisimulation, simplifies proving hardware-software contract satisfaction for side-channel security.

Key contributions

  • Identifies contract satisfaction as "relative trace equality" and introduces "relative bisimulation".
  • Develops a sound and complete deductive proof system for relative trace equality using coinductive proofs.
  • Enables modular, incremental proofs with principles for symmetries and transitivity.
  • Formalized in Rocq and applied to complex contract satisfaction proofs.

Why it matters

This work offers a novel, interactive approach to verifying hardware-software contracts, moving beyond traditional model-checking. By providing a sound and complete deductive system, it simplifies complex security proofs against side-channel attacks, making them more manageable and robust.

Original 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.

📬 Weekly AI Paper Digest

Get the top 10 AI/ML arXiv papers from the week — summarized, scored, and delivered to your inbox every Monday.