paperbot · PL 论文追踪

全部论文 待读 收藏

P1 Strong Invariants Are Hard: On the Hardness of Strongest Polynomial Invariants for (Probabilistic) Programs

强不变式很难:论(概率)程序最强多项式不变式的困难性
POPL 8(POPL)2024匹配度 5/10 · 论文属于程序验证/静态分析中的不变式计算与概率程序理论,与形式化验证方向有交集;但不涉及 LLM/Agent、浮点程序分析或贝叶斯程序分析,且偏计算复杂性理论,与用户当前以 LLM 与静态分析/概率程序交叉为核心的研究画像距离较远。引用 7 inbox
Julian Müllner, Marcel Moosbrugger, Laura Kovács
crossref: 2026-09-10

AI 速览

一句话:证明单路径多项式循环的最强多项式不变式计算至少与 Skolem 问题同难,并推广到概率程序的矩不变式。

本文研究(概率)程序中强多项式不变式的可计算性。作者证明,对带多项式赋值的单路径循环,计算最强多项式不变式至少与 Skolem 问题同难,而后者的可判定性已开放近百年;作为中间结果,离散多项式动力系统的可达性也是 Skolem-hard。方法上,作者推广不变式理想,并为概率程序引入矩不变式理想。借助该工具,他们证明:带分支的概率循环的最强多项式矩不变式不可计算;无分支的多项式概率循环则 Skolem-hard。最后给出一类可计算情形及算法。

问题
如何计算(概率)程序的最强多项式(矩)不变式,以及该问题的可判定性与计算复杂度如何。
方法
将不变式生成问题归约到 Skolem 问题,推广不变式理想,并引入概率程序的矩不变式理想来分析可计算性。
评估
通过理论证明给出硬度与不可计算性结果,并为最强多项式矩不变式可计算的一类概率循环提供算法;未涉及实现或实验评估。
原文摘要(Abstract)

We show that computing the strongest polynomial invariant for single-path loops with polynomial assignments is at least as hard as the Skolem problem, a famous problem whose decidability has been open for almost a century. While the strongest polynomial invariants are computable for affine loops , for polynomial loops the problem remained wide open. As an intermediate result of independent interest, we prove that reachability for discrete polynomial dynamical systems is Skolem -hard as well. Furthermore, we generalize the notion of invariant ideals and introduce moment invariant ideals for probabilistic programs. With this tool, we further show that the strongest polynomial moment invariant is (i) uncomputable, for probabilistic loops with branching statements, and (ii) Skolem -hard to compute for polynomial probabilistic loops without branching statements. Finally, we identify a class of probabilistic loops for which the strongest polynomial moment invariant is computable and provide an algorithm for it.

链接与引用

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

BibTeX
@article{paperbot2617,
  title = {Strong Invariants Are Hard: On the Hardness of Strongest Polynomial Invariants for (Probabilistic) Programs},
  author = {Julian Müllner and Marcel Moosbrugger and Laura Kovács},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {8},
  number = {POPL},
  year = {2024},
  doi = {10.1145/3632872}
}