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