Affiliation:
1. Northeastern University, USA
Abstract
We present Lilac, a separation logic for reasoning about probabilistic programs where separating conjunction captures probabilistic independence. Inspired by an analogy with mutable state where sampling corresponds to dynamic allocation, we show how probability spaces over a fixed, ambient sample space appear to be the natural analogue of heap fragments, and present a new combining operation on them such that probability spaces behave like heaps and measurability of random variables behaves like ownership. This combining operation forms the basis for our model of separation, and produces a logic with many pleasant properties. In particular, Lilac has a frame rule identical to the ordinary one, and naturally accommodates advanced features like continuous random variables and reasoning about quantitative properties of programs. Then we propose a new modality based on disintegration theory for reasoning about conditional probability. We show how the resulting modal logic validates examples from prior work, and give a formal verification of an intricate weighted sampling algorithm whose correctness depends crucially on conditional independence structure.
Funder
National Science Foundation
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Cited by
7 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Combining Classical and Probabilistic Independence Reasoning to Verify the Security of Oblivious Algorithms;Lecture Notes in Computer Science;2024-09-11
2. Language-Based Security for Low-Level MPC;Proceedings of the 26th International Symposium on Principles and Practice of Declarative Programming;2024-09-09
3. Error Credits: Resourceful Reasoning about Error Bounds for Higher-Order Probabilistic Programs;Proceedings of the ACM on Programming Languages;2024-08-15
4. A Nominal Approach to Probabilistic Separation Logic;Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science;2024-07-08
5. Equivalence and Conditional Independence in Atomic Sheaf Logic;Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science;2024-07-08