paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Intersection types and (positive) almost-sure termination

交集类型与(正)几乎必然终止
POPL 5(POPL)2021匹配度 3/10 · 论文属于纯类型论/程序语言理论,研究随机λ演算的几乎必然终止与非幂等交集类型,不涉及LLM/Agent、静态分析在机器学习或Agentic程序中的应用,也未涉及浮点程序分析或贝叶斯程序分析与LLM的交叉。仅与概率程序的形式化验证/终止性分析有较弱间接关联。引用 21 inbox
Ugo Dal Lago, Claudia Faggian, Simona Ronchi Della Rocca
crossref: 2026-09-10

AI 速览

一句话:用非幂等交集类型同时刻画随机λ演算的收敛概率与正几乎必然终止,并证明其可靠完备且递归论最优。

论文研究带二元概率选择的随机高阶λ演算的终止性,区分收敛概率与期望求值步数两种(正)几乎必然终止概念。作者提出一个带非幂等性的交集类型系统:项的类型可下近似其收敛概率,类型推导的权重则给出项归约到范式所需期望步数的下界。关键是非幂等性,否则无法推理完整求值的期望归约步数。论文证明该刻画同时具备可靠性(soundness)与完备性(completeness),两种近似都是紧的;并证明其近似在递归论意义下最优:不存在可递归枚举的形式系统能做得更好。

问题
如何用类型系统精确刻画随机高阶λ演算中收敛概率和期望求值时间这两个(正)几乎必然终止概念。
方法
构建带二元概率选择λ演算上的非幂等交集类型系统,以类型下近似收敛概率,并用推导权重下界期望归约步数。
评估
通过可靠性与完备性证明说明两种近似都是紧的,并给出递归论最优性证明。
原文摘要(Abstract)

Randomized higher-order computation can be seen as being captured by a λ-calculus endowed with a single algebraic operation, namely a construct for binary probabilistic choice. What matters about such computations is the probability of obtaining any given result, rather than the possibility or the necessity of obtaining it, like in (non)deterministic computation. Termination, arguably the simplest kind of reachability problem, can be spelled out in at least two ways, depending on whether it talks about the probability of convergence or about the expected evaluation time, the second one providing a stronger guarantee. In this paper, we show that intersection types are capable of precisely characterizing both notions of termination inside a single system of types: the probability of convergence of any λ-term can be underapproximated by its type , while the underlying derivation’s weight gives a lower bound to the term’s expected number of steps to normal form. Noticeably, both approximations are tight—not only soundness but also completeness holds. The crucial ingredient is non-idempotency, without which it would be impossible to reason on the expected number of reduction steps which are necessary to completely evaluate any term. Besides, the kind of approximation we obtain is proved to be optimal recursion theoretically: no recursively enumerable formal system can do better than that.

链接与引用

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

BibTeX
@article{paperbot1199,
  title = {Intersection types and (positive) almost-sure termination},
  author = {Ugo Dal Lago and Claudia Faggian and Simona Ronchi Della Rocca},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {5},
  number = {POPL},
  year = {2021},
  doi = {10.1145/3434313}
}