Asynchronous Probabilistic Couplings in Higher-Order Separation Logic
Open Access
- 2 January 2024
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 8 (POPL) , 753-784
Abstract
Probabilistic couplings are the foundation for many probabilistic relational program logics and arise when relating random sampling statements across two programs. In relational program logics, this manifests as dedicated coupling rules that, e.g ., say we may reason as if two sampling statements return the same value. However, this approach fundamentally requires aligning or “synchronizing” the sampling statements of the two programs which is not always possible. In this paper, we develop Clutch, a higher-order probabilistic relational separation logic that addresses this issue by supporting asynchronous probabilistic couplings. We use Clutch to develop a logical step-indexed logical relation to reason about contextual refinement and equivalence of higher-order programs written in a rich language with a probabilistic choice operator, higher-order local state, and impredicative polymorphism. Finally, we demonstrate our approach on a number of case studies. All the results that appear in the paper have been formalized in the Coq proof assistant using the Coquelicot library and the Iris separation logic framework.Keywords
All Related Versions
Funding Information
- ERC (101096090)
- NSF (2318724)
- Villum Foundation (25804)
This publication has 61 references indexed in Scilit:
- The Foundational Cryptography Framework2015
- Coquelicot: A User-Friendly Library of Real Analysis for CoqMathematics in Computer Science, 2014
- The impact of higher-order state and control effects on local relational reasoningJournal of Functional Programming, 2012
- Logical Step-Indexed Logical RelationsLogical Methods in Computer Science, 2011
- Programming Language Techniques for Cryptographic Proofs2010
- 10.1162/153244302760200704Applied Physics Letters, 2000
- Randomized search treesAlgorithmica, 1996
- The existence of refinement mappingsTheoretical Computer Science, 1991
- A public key cryptosystem and a signature scheme based on discrete logarithmsIEEE Transactions on Information Theory, 1985
- Probabilistic encryptionJournal of Computer and System Sciences, 1984