arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.01339cs.PLcs.LO
收藏

Lilac:一种用于条件概率的模态分离逻辑

Lilac: A Modal Separation Logic for Conditional Probability

John M. Li, Amal Ahmed, Steven Holtzen

AI总结:

本文提出分离逻辑 Lilac,用分离合取刻画概率独立性,并基于分解理论引入条件概率推理模态,成功形式化验证了依赖条件独立结构的加权采样算法。

摘要:

我们提出 Lilac,一种用于推理概率程序的分离逻辑,其中分离合取刻画概率独立性。受与可变状态的类比的启发——在可变状态中采样对应于动态分配——我们展示了固定环境样本空间上的概率空间如何自然地成为堆片段的类比物,并提出一种新的组合运算,使得概率空间表现得像堆,而随机变量的可测性表现得像所有权。这种组合运算构成了我们分离模型的基础,并产生了一个具有许多优良性质的逻辑。特别是,Lilac 具有与普通分离逻辑完全相同的帧规则,并且自然地支持连续随机变量和程序定量性质推理等高级特性。随后,我们基于分解理论提出一种用于条件概率推理的新模态。我们展示了所得的模态逻辑如何验证先前工作中的示例,并给出了一个复杂的加权采样算法的形式化验证,该算法的正确性关键依赖于条件独立结构。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑