paperbot · PL 论文追踪

全部论文 待读 收藏

P1 Positive Almost-Sure Termination: Complexity and Proof Rules

正几乎必然终止:复杂度与证明规则
POPL 8(POPL)2024匹配度 5/10 · 论文研究概率程序的PAST终止性、复杂度与证明规则,属于形式化验证/程序验证方向,与“AI→PL改进形式化验证”有间接关联;但完全不涉及LLM/Agent、静态分析在ML/Agentic程序中的应用、浮点或贝叶斯程序分析与LLM交叉,也缺少工程实现与工业落地。引用 12 inbox
Rupak Majumdar, V. R. Sathiyanarayana
crossref: 2026-09-10

AI 速览

一句话:证明概率程序的PAST复杂度为Π^1_1完全,并给出基于超限序数的可靠完备证明规则。

论文研究带有理变量、有界非确定选择与离散概率选择的命令式语言中正几乎必然终止(PAST)的递归论复杂度。PAST要求对每个调度器,程序几乎必然终止且期望运行时间有限。作者证明该语言的PAST是Π^1_1完全的,而AST与BAST分别仅为Π^0_2与Σ^0_2完全。上界将概率终止归约到非概率公平终止与普通终止;下界把无界非确定终止归约到有界概率程序的PAST。作者给出有效可计算的正规形,其中每个概率选择以1/2继续或立即终止,并针对正规形给出基于超限序数的可靠完备证明规则,证明推理需要达到ω_1^CK的序数,因而基于ranking supermartingale的实数技术不足。

问题
如何刻画含概率与有界非确定选择的程序中正几乎必然终止(PAST)的递归论复杂度,并为PAST提供完备的证明方法。
方法
作者用可计算性理论对PAST进行复杂度分类,构造概率终止与非概率公平/普通终止之间的有效双向归约,并证明正规形及基于超限序数的可靠完备证明规则。
评估
通过上界与下界证明PAST是Π^1_1完全的,并论证基于ranking supermartingale的实数排序技术不足以推理PAST;评估为理论证明。
原文摘要(Abstract)

We study the recursion-theoretic complexity of Positive Almost-Sure Termination (PAST) in an imperative programming language with rational variables, bounded nondeterministic choice, and discrete probabilistic choice. A program terminates positive almost-surely if, for every scheduler, the program terminates almost-surely and the expected runtime to termination is finite. We show that PAST for our language is complete for the (lightface) co-analytic sets ( Π 1 1 -complete). This is in contrast to the related notions of Almost-Sure Termination (AST) and Bounded Termination (BAST), both of which are arithmetical ( Π 2 0 - and Σ 2 0 -complete respectively). Our upper bound implies an effective procedure to reduce reasoning about probabilistic termination to non-probabilistic fair termination in a model with bounded nondeterminism, and to simple program termination in models with unbounded nondeterminism. Our lower bound shows the opposite: for every program with unbounded nondeterministic choice, there is an effectively computable probabilistic program with bounded choice such that the original program is terminating if, and only if, the transformed program is PAST. We show that every program has an effectively computable normal form, in which each probabilistic choice either continues or terminates execution immediately, each with probability 1 / 2 . For normal form programs, we provide a sound and complete proof rule for PAST. Our proof rule uses transfinite ordinals. We show that reasoning about PAST requires transfinite ordinals up to ω 1 CK ; thus, existing techniques for probabilistic termination based on ranking supermartingales that map program states to reals do not suffice to reason about PAST.

链接与引用

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

BibTeX
@article{paperbot2626,
  title = {Positive Almost-Sure Termination: Complexity and Proof Rules},
  author = {Rupak Majumdar and V. R. Sathiyanarayana},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {8},
  number = {POPL},
  year = {2024},
  doi = {10.1145/3632879}
}