统计程序设计语言的域理论方法
A Domain-Theoretic Approach to Statistical Programming Languages
摘要:
我们给一个域理论语义的统计程序设计语言,使用普通的老类dcpos,在对比一些更复杂的最近的建议。值得注意的是,我们的最小估值单子是可交换的,这允许程序转换,置换独立随机抽取的顺序,正如人们所期望的那样。琼斯和普洛特金的连续估值单子中没有类似的性质。我们使用精确的实数运算,而不是使用真实数,为可能的实现提供了一个桥梁。(这里不讨论实现本身。)而值得注意的是,我们表明,限制自己的最小估值并没有限制我们太多:所有措施的真正的线可以模拟域$\mathbf{I}\mathbb{R}_\bot$上的最小估值的真正的算术。我们给我们的语言的三个操作语义,我们表明,他们都是足够的指称语义。我们还探索了相当多的例子,以证明我们的语义计算完全符合预期,并为了揭穿神话,即基于连续映射的语义将不足以表达仅使用紧支持的度量来编码非紧支持的度量,或者通过非连续密度函数编码度量。我们的例子还包括一些有用的,非平凡的情况下,分布在高阶对象。
英文摘要:
We give a domain-theoretic semantics to a statistical programming language, using the plain old category of dcpos, in contrast to some more sophisticated recent proposals. Remarkably, our monad of minimal valuations is commutative, which allows for program transformations that permute the order of independent random draws, as one would expect. A similar property is not known for Jones and Plotkin' s monad of continuous valuations. Instead of working with true real numbers, we work with exact real arithmetic, providing a bridge towards possible implementations. (Implementations by themselves are not addressed here.) Rather remarkably, we show that restricting ourselves to minimal valuations does not restrict us much: all measures on the real line can be modeled by minimal valuations on the domain $\mathbf{I}\mathbb{R}_\bot$ of exact real arithmetic. We give three operational semantics for our language, and we show that they are all adequate with respect to the denotational semantics. We also explore quite a few examples in order to demonstrate that our semantics computes exactly as one would expect, and in order to debunk the myth that a semantics based on continuous maps would not be expressive enough to encode measures with non-compact support using only measures with compact support, or to encode measures via non-continuous density functions, for instance. Our examples also include some useful, non-trivial cases of distributions on higher-order objects.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。