Step-Indexed Logical Relations for Countable Nondeterminism and Probabilistic Choice

被引:5
|
作者
Aguirre, Alejandro [1 ]
Birkedal, Lars [1 ]
机构
[1] Aarhus Univ, Abogade 34, DK-8200 Aarhus, Denmark
来源
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL | 2023年 / 7卷 / POPL期
关键词
Functional Languages; Probabilistic programming; Logical Relations; LAMBDA-TERMS; MODEL;
D O I
10.1145/3571195
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Developing denotational models for higher-order languages that combine probabilistic and nondeterministic choice is known to be very challenging. In this paper, we propose an alternative approach based on operational techniques. We study a higher-order language combining parametric polymorphism, recursive types, discrete probabilistic choice and countable nondeterminism. We define probabilistic generalizations of may- and must-termination as the optimal and pessimal probabilities of termination. Then we define step-indexed logical relations and show that they are sound and complete with respect to the induced contextual preorders. For may-equivalence we use step-indexing over the natural numbers whereas for must-equivalence we index over the countable ordinals. We then show than the probabilities of may- and must-termination coincide with the maximal and minimal probabilities of termination under all schedulers. Finally we derive the equational theory induced by contextual equivalence and show that it validates the distributive combination of the algebraic theories for probabilistic and nondeterministic choice.
引用
收藏
页码:33 / 60
页数:28
相关论文
共 26 条