Relational Hoare Logic for Realistically Modelled Machine Code
Denis Mazzucato (1), Abdalrhman Mohamed (2), Juneyoung Lee (3), Clark Barrett (2), Jim Grundy (3), John Harrison (3), and Corina S. Pasareanu (1) ((1) Carnegie Mellon University, (2) Stanford University, (3) Amazon Web Services)

TL;DR
This paper introduces a Hoare-style logic for low-level, relational verification of machine code, enabling formal proofs of security properties like constant-time behavior directly on realistic assembly code.
Contribution
It presents a novel low-level relational Hoare logic formalized in HOL Light, capable of verifying security and correctness properties of real-world assembly programs.
Findings
Verified constant-time property of cryptographic routines
Proved equivalence between optimized and verification-friendly assembly code
Demonstrated applicability on large real-world assembly codebase
Abstract
Many security- and performance-critical domains, such as cryptography, rely on low-level verification to minimize the trusted computing surface and allow code to be written directly in assembly. However, verifying assembly code against a realistic machine model is a challenging task. Furthermore, certain security properties -- such as constant-time behavior -- require relational reasoning that goes beyond traditional correctness by linking multiple execution traces within a single specification. Yet, relational verification has been extensively explored at a higher level of abstraction. In this work, we introduce a Hoare-style logic that provides low-level, expressive relational verification. We demonstrate our approach on the s2n-bignum library, proving both constant-time discipline and equivalence between optimized and verification-friendly routines. Formalized in HOL Light, our…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSecurity and Verification in Computing · Physical Unclonable Functions (PUFs) and Hardware Security · Formal Methods in Verification
