paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Step-Indexed Logical Relations for Countable Nondeterminism and Probabilistic Choice

面向可数非确定性与概率选择的步进索引逻辑关系
POPL 7(POPL)2023匹配度 3/10 · 论文研究概率与非确定性选择的形式语义和逻辑关系,属于概率编程的理论基础,与用户关注的贝叶斯程序分析有间接关联,但未涉及LLM、静态分析、浮点分析或Agentic程序,且偏纯理论而非工程落地或问题驱动。引用 13 inbox
Alejandro Aguirre, Lars Birkedal
crossref: 2026-09-10

AI 速览

一句话:为含可数非确定性与概率选择的高阶语言构建步进索引逻辑关系,并给出可靠完备的上下文等价理论。

高阶语言中同时包含概率选择与非确定性选择时,指称语义模型的构造非常困难。本文改走操作语义路线,研究一个同时具有参数多态、递归类型、离散概率选择与可数非确定性的高阶语言。作者将 may- 与 must-终止概率分别推广为最优与最差终止概率,并定义步进索引逻辑关系;其中 may-等价在自然数上索引,must-等价则需在可数序数上索引。文中证明这些逻辑关系相对于诱导的上下文前序是可靠且完备的,并表明 may/must 终止概率分别对应所有调度器下的最大与最小终止概率。最后,作者导出上下文等价所诱导的等式理论,证明它验证了概率选择与非确定性选择代数理论的分配式组合。

问题
如何为同时具有高阶、多态、递归类型、离散概率选择和可数非确定性的语言建立语义基础,并刻画其上下文等价或前序。
方法
采用操作技术,定义 may/must 终止概率的推广,并构造步进索引逻辑关系;may 用自然数索引,must 用可数序数索引。
评估
证明逻辑关系相对上下文前序的可靠性与完备性,证明终止概率与所有调度器下最大/最小概率一致,并导出验证分配律的等式理论。
原文摘要(Abstract)

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.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot2062,
  title = {Step-Indexed Logical Relations for Countable Nondeterminism and Probabilistic Choice},
  author = {Alejandro Aguirre and Lars Birkedal},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {7},
  number = {POPL},
  year = {2023},
  doi = {10.1145/3571195}
}