paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Probabilistic Termination by Monadic Affine Sized Typing

基于单子仿射大小类型的概率终止
TOPLAS 41(2)2019匹配度 3/10 · 该论文属于概率程序的类型论/形式化基础研究(单子仿射大小类型、几乎必然终止),与用户的浮点程序分析、贝叶斯程序分析有一点间接关联,但不涉及 LLM/Agent、静态分析工具落地或基准评测,也未与用户关注的 AI↔PL 交叉方向挂钩。引用 22 inbox
Ugo Dal Lago, Charles Grellois
crossref: 2026-09-10

AI 速览

一句话:提出单子仿射大小类型系统,可类型化概率高阶程序并证明其几乎必然终止。

本文研究概率高阶程序的几乎必然终止性,目标是在不牺牲可靠性的前提下超越普通强规范化。作者提出单子仿射大小类型(monadic affine sized types),它推广了通常的大小类型,引入更定量的类型信息,并施加仿射约束以保持证明可行。该类型系统足以类型化随机游走等经典概率终止程序。可类型化程序被证明几乎必然终止,证明基于可归约性(reducibility)方法,但需要对这一技术作出实质性适配。

问题
如何用类型系统刻画概率高阶程序的几乎必然终止,同时不放弃强规范化之外的可靠性。
方法
引入单子仿射大小类型,推广传统大小类型,以定量类型与仿射约束支持几乎必然终止;证明采用经实质性适配的可归约性方法。
评估
通过类型化随机游走等经典概率终止程序展示类型系统的表达力,并证明所有可类型化程序几乎必然终止。
原文摘要(Abstract)

We introduce a system of monadic affine sized types, which substantially generalizes usual sized types and allows in this way to capture probabilistic higher-order programs that terminate almost surely. Going beyond plain, strong normalization without losing soundness turns out to be a hard task, which cannot be accomplished without a richer, quantitative notion of types, but also without imposing some affinity constraints. The proposed type system is powerful enough to type classic examples of probabilistically terminating programs such as random walks. The way typable programs are proved to be almost surely terminating is based on reducibility but requires a substantial adaptation of the technique.

链接与引用

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

BibTeX
@article{paperbot713,
  title = {Probabilistic Termination by Monadic Affine Sized Typing},
  author = {Ugo Dal Lago and Charles Grellois},
  journal = {ACM Transactions on Programming Languages and Systems},
  volume = {41},
  number = {2},
  year = {2019},
  doi = {10.1145/3293605}
}