Step-Indexed Logical Relations for Countable Nondeterminism and Probabilistic Choice

被引:10
作者
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
相关论文
共 48 条
[1]  
Ahmed A, 2006, LECT NOTES COMPUT SC, V3924, P69
[2]  
[Anonymous], 1955, Pacific J. Math., DOI 10.2140/pjm.1955.5.285
[3]   An indexed model of recursive types for foundational proof-carrying code [J].
Appel, AW ;
McAllester, D .
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2001, 23 (05) :657-683
[4]   COUNTABLE NONDETERMINISM AND RANDOM ASSIGNMENT [J].
APT, KR ;
PLOTKIN, GD .
JOURNAL OF THE ACM, 1986, 33 (04) :724-767
[5]  
Aumann R.J., 1961, Illinois Journal of Mathematics, V5, DOI DOI 10.1215/IJM/1255631584
[6]   STEP-INDEXED RELATIONAL REASONING FOR COUNTABLE NONDETERMINISM [J].
Birkedal, Lars ;
Bizjak, Ales ;
Schwinghammer, Jan .
LOGICAL METHODS IN COMPUTER SCIENCE, 2013, 9 (04)
[7]  
Birkedal Lars, 2012, CSL (LIPIcs, V16, P107, DOI [10.4230/LIPIcs.CSL.2012.107, DOI 10.4230/LIPICS.CSL.2012.107]
[8]   Step-Indexed Logical Relations for Probability [J].
Bizjak, Ales ;
Birkedal, Lars .
FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES (FOSSACS 2015), 2015, 9034 :279-294
[9]  
Bonchi F., 2017, LIPIcs, V85, DOI DOI 10.4230/LIPICS.CONCUR.2017.23
[10]   The Theory of Traces for Systems with Nondeterminism and Probability [J].
Bonchi, Filippo ;
Sokolova, Ana ;
Vignudelli, Valeria .
2019 34TH ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS), 2019,