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

高阶概率程序的形式化验证

Formal verification of higher-order probabilistic programs

Tetsuya Sato, Alejandro Aguirre, Gilles Barthe, Marco Gaboardi, Deepak Garg, Justin Hsu

摘要:

概率编程提供了一种方便的通用语言,用于编写概率模型和推理任务的简洁和严格的描述。一些概率程序设计语言,包括Anglican、Church或Hakaru,从连续分布、条件和高阶函数的强大组合中获得它们的表达能力。虽然这些组合的功能对实际应用非常重要,但对程序语义和验证提出了根本性的挑战。最近的一些作品提供了有希望的答案,这些挑战,但他们的主要重点是语义问题。在本文中,我们采取了进一步的,我们开发了一套程序逻辑,名为PPV,证明性能的程序编写的表达概率高阶语言连续分布和运营商的条件分布的实值函数。令人高兴的是,我们的程序逻辑保留了舒适的推理风格的非正式证明感谢精心挑选的公理化的关键结果概率论。我们的逻辑的多功能性说明通过形式化验证的几个复杂的例子,从统计,概率推理,和机器学习。我们进一步展示了我们的逻辑的表现力,给出现有的逻辑的声音嵌入。特别是,我们这样做的参数的方式,通过展示如何(一元和关系)TT-提升的语义思想可以在我们的逻辑内在化。PPV的合理性如下解释程序和断言在准Borel空间(QBS),最近提出的Borel空间的一个很好的结构解释高阶概率程序的变体。

英文摘要:

Probabilistic programming provides a convenient lingua franca for writing succinct and rigorous descriptions of probabilistic models and inference tasks. Several probabilistic programming languages, including Anglican, Church or Hakaru, derive their expressiveness from a powerful combination of continuous distributions, conditioning, and higher-order functions. Although very important for practical applications, these combined features raise fundamental challenges for program semantics and verification. Several recent works offer promising answers to these challenges, but their primary focus is on semantical issues. In this paper, we take a step further and we develop a set of program logics, named PPV, for proving properties of programs written in an expressive probabilistic higher-order language with continuous distributions and operators for conditioning distributions by real-valued functions. Pleasingly, our program logics retain the comfortable reasoning style of informal proofs thanks to carefully selected axiomatizations of key results from probability theory. The versatility of our logics is illustrated through the formal verification of several intricate examples from statistics, probabilistic inference, and machine learning. We further show the expressiveness of our logics by giving sound embeddings of existing logics. In particular, we do this in a parametric way by showing how the semantics idea of (unary and relational) TT-lifting can be internalized in our logics. The soundness of PPV follows by interpreting programs and assertions in quasi-Borel spaces (QBS), a recently proposed variant of Borel spaces with a good structure for interpreting higher order probabilistic programs.

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

↑