arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1711.02246cs.PL
收藏

概率控制流图的切片理论

A Theory of Slicing for Probabilistic Control-Flow Graphs

Torben Amtoft, Anindya Banerjee

摘要:

我们提出了一个理论切片概率命令式程序-包含随机分配,和“的”语句(条件)-表示为概率控制流图(pCFGs),其节点修改概率分布。我们表明,这样的表示允许直接适应的标准机械,如数据和控制依赖,postdominators,相关变量等的概率设置。我们分离的规范切片从其实现:首先,我们开发的句法条件,切片必须满足;其次,我们证明,任何这样的切片是语义正确的;最后,我们给出了一个算法来计算最少的切片。为了生成更小的切片,我们还可以利用某些循环将(几乎)总是终止的知识。我们的句法条件的一个关键特征是,它们涉及两个不相交的切片,使得一个切片的变量在概率上独立于另一个切片的变量。这直接导致了概率切片的正确性证明。在同伴的文章中,我们充分的pCFGs的语义相对于标准的结构化概率程序的语义。

英文摘要:

We present a theory for slicing probabilistic imperative programs -- containing random assignments, and ``observe'' statements (for conditioning) -- represented as probabilistic control-flow graphs (pCFGs) whose nodes modify probability distributions. We show that such a representation allows direct adaptation of standard machinery such as data and control dependence, postdominators, relevant variables, etc to the probabilistic setting. We separate the specification of slicing from its implementation: first we develop syntactic conditions that a slice must satisfy; next we prove that any such slice is semantically correct; finally we give an algorithm to compute the least slice. To generate smaller slices, we may in addition take advantage of knowledge that certain loops will terminate (almost) always. A key feature of our syntactic conditions is that they involve two disjoint slices such that the variables of one slice are probabilistically independent of the variables of the other. This leads directly to a proof of correctness of probabilistic slicing. In a companion article we show adequacy of the semantics of pCFGs with respect to the standard semantics of structured probabilistic programs.

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

↑