Lilac: A Modal Separation Logic for Conditional Probability

04/03/2023
by   John M. Li, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/29/2021

A Separation Logic for Negative Dependence

Formal reasoning about hashing-based probabilistic data structures often...
research
07/24/2019

A Probabilistic Separation Logic

Probabilistic independence is a fundamental tool for reasoning about ran...
research
08/20/2020

A Logic to Reason about Dependence and Independence

Independence and conditional independence are fundamental concepts for r...
research
02/28/2018

Quantitative Separation Logic

We present quantitative separation logic (QSL). In contrast to classical...
research
01/16/2023

A separation logic for sequences in pointer programs and its decidability

Separation logic and its variants can describe various properties on poi...
research
08/30/2023

On the Independencies Hidden in the Structure of a Probabilistic Logic Program

Pearl and Verma developed d-separation as a widely used graphical criter...
research
07/26/2023

Modal Abstractions for Virtualizing Memory Addresses

Operating system kernels employ virtual memory management (VMM) subsyste...

Please sign up or login with your details

Forgot password? Click here to reset