论文标题
为概率程序生成功能
Generating Functions for Probabilistic Programs
论文作者
论文摘要
本文研究了对程序变量编码措施的生成函数的用法(GFS),以推理离散概率程序的推理。为此,我们为概率的概率定义了一种示意性GF-转化器语义,并表明它实例化了Kozen的开创性分布变压器语义。然后,我们研究GFS用于程序分析的有效用法。我们表明,有限表达的GFS通过计算机代数工具可以检查超级不变,并且可以用于确定终止概率。本文结束了结论,表征一类 - 可能是无限状态的程序,其语义是编码离散相型分布的合理GF。
This paper investigates the usage of generating functions (GFs) encoding measures over the program variables for reasoning about discrete probabilistic programs. To that end, we define a denotational GF-transformer semantics for probabilistic while-programs, and show that it instantiates Kozen's seminal distribution transformer semantics. We then study the effective usage of GFs for program analysis. We show that finitely expressible GFs enable checking super-invariants by means of computer algebra tools, and that they can be used to determine termination probabilities. The paper concludes by characterizing a class of -- possibly infinite-state -- programs whose semantics is a rational GF encoding a discrete phase-type distribution.