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 条
  • [1] STEP-INDEXED RELATIONAL REASONING FOR COUNTABLE NONDETERMINISM
    Birkedal, Lars
    Bizjak, Ales
    Schwinghammer, Jan
    LOGICAL METHODS IN COMPUTER SCIENCE, 2013, 9 (04)
  • [2] Step-indexed relational reasoning for countable nondeterminism
    Schwinghammer, Jan
    Birkedal, Lars
    Leibniz International Proceedings in Informatics, LIPIcs, 2011, 12 : 512 - 524
  • [3] LOGICAL STEP-INDEXED LOGICAL RELATIONS
    Dreyer, Derek
    Ahmed, Amal
    Birkedal, Lars
    LOGICAL METHODS IN COMPUTER SCIENCE, 2011, 7 (02)
  • [4] Logical Step-Indexed Logical Relations
    Dreyer, Derek
    Ahmed, Amal
    Birkedal, Lars
    24TH ANNUAL IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, PROCEEDINGS, 2009, : 71 - 80
  • [5] Step-Indexed Logical Relations for Probability
    Bizjak, Ales
    Birkedal, Lars
    FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES (FOSSACS 2015), 2015, 9034 : 279 - 294
  • [6] Step-indexed syntactic logical relations for recursive and quantified types
    Ahmed, A
    PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2006, 3924 : 69 - 83
  • [7] Proving Correctness of a Compiler Using Step-indexed Logical Relations
    Rodriguez, Leonardo
    Pagano, Miguel
    Fridlender, Daniel
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2016, 323 : 197 - 214
  • [8] Scala Step-by-Step Soundness for DOT with Step-Indexed Logical Relations in Iris
    Giarrusso, Paolo G.
    Stefanesco, Leo
    Timany, Amin
    Birkedal, Lars
    Krebbers, Robbert
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2020, 4 (ICFP):
  • [9] Logical relations and nondeterminism
    Hofmann, Martin
    Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2015, 8950 : 62 - 74
  • [10] A step-indexed model of substructural state
    Ahmed, A
    Fluet, M
    Morrisett, G
    ACM SIGPLAN NOTICES, 2005, 40 (09) : 78 - 91