A Denotational Semantics for Low-Level Probabilistic Programs with Nondeterminism
A Denotational Semantics for Low-Level Probabilistic Programs with Nondeterminism
复制标题
DOI:
10.1016/j.entcs.2019.09.016
复制
发表时间:
2019-11
期刊:
影响因子:
--
通讯作者:
Di Wang;Jan Hoffmann;T. Reps
中科院分区:
文献类型:
--
作者:
Di Wang;Jan Hoffmann;T. Reps
Probabilistic programming is an increasingly popular formalism for modeling randomness and uncertainty. Designing semantic models for probabilistic programs has been extensively studied, but is technically challenging. Particular complications arise when trying to account for (i) unstructured control-flow, a natural feature in low-level imperative programs; (ii) general recursion, an extensively used programming paradigm; and (iii) nondeterminism, which is often used to represent adversarial actions in probabilistic models, and to support refinement-based development. This paper presents a denotational-semantics framework that supports the three features mentioned above, while allowing nondeterminism to be handled in different ways. To support both probabilistic choice and nondeterministic choice, the semantics is given over control-flowhyper-graphs. The semantics follows analgebraicapproach: it can be instantiated in different ways as long as certain algebraic properties hold. In particular, the semantics can be instantiated to support nondeterminism among eitherprogram statesorstate transformers. We develop a new formalization of nondeterminism based onpowerdomainsoversub-probability kernels. Semantic objects in the powerdomain enjoy a notion we callgeneralized convexity, which is a generalization of convexity. As an application, the paper sketches an algebraic framework for static analysis of probabilistic programs, which has been proposed in a companion paper.