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