arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.01449cs.LOcs.SC
收藏

程序是否产生正确的分布?基于生成函数的概率规划

Does a Program Yield the Right Distribution? Verifying Probabilistic Programs via Generating Functions

Mingshuai Chen, Joost-Pieter Katoen, Lutz Klinkenberg, Tobias Winkler

摘要:

研究了无限状态空间上具有潜在无界循环行为的离散概率规划。我们目前,据我们所知,第一个决定性的结果,确定这样一个程序是否完全产生一个指定的分布在其输出(提供的程序几乎肯定会终止)的问题。在我们的形式主义中可以指定的分布类包括标准分布(几何分布,均匀分布等)。以及其有限卷积。我们的方法依赖于代表这些(可能是无限支持)的概率生成函数,承认有效的算术运算的分布。我们已经自动化我们的技术在一个工具,称为神童,它支持自动不变性检查,嵌套循环的组合推理,和有效的查询上的各种数量的输出分布,如实验所示。

英文摘要:

We study discrete probabilistic programs with potentially unbounded looping behaviors over an infinite state space. We present, to the best of our knowledge, the first decidability result for the problem of determining whether such a program generates exactly a specified distribution over its outputs (provided the program terminates almost surely). The class of distributions that can be specified in our formalism consists of standard distributions (geometric, uniform, etc.) and finite convolutions thereof. Our method relies on representing these (possibly infinite-support) distributions as probability generating functions which admit effective arithmetic operations. We have automated our techniques in a tool called prodigy, which supports automatic invariance checking, compositional reasoning of nested loops, and efficient queries on various quantities of to the output distribution, as demonstrated by experiments.

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

↑