paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Learning the boundary of inductive invariants

学习归纳不变式的边界
POPL 5(POPL)2021匹配度 4/10 · 论文研究不变式推断与精确概念学习理论的结合,属于AI→PL/形式化验证方向,但未涉及用户重点关注的LLM/Agent、浮点程序分析或贝叶斯程序分析,且偏理论而非工业落地。引用 5 inbox
Yotam M. Y. Feldman, Mooly Sagiv, Sharon Shoham, James R. Wilcox
crossref: 2026-09-10

AI 速览

一句话:将精确概念学习理论引入不变式推断,提出 fence 条件,首次给出插值式不变式推断的多项式复杂度结果。

本文研究归纳不变式推断的复杂度,并揭示其与精确概念学习的联系。作者提出不变式及其几何性质的“fence 条件”:不变式边界(与不变式 Hamming 距离为 1 的状态)需在少量步骤内从坏状态反向可达。借助该条件,可把概念学习理论结果用于回答不变式推断的开放问题。主要结果包括:首次证明某类基于插值的不变式推断算法具有多项式复杂度,可在以 SAT 求解器为 oracle 的情况下高效推断单调 DNF 不变式;进一步利用 Bshouty 的概念学习结果,将高效推断扩展到比单调 DNF 更大的语法类。最后考察程序变换下推断的鲁棒性,表明简单变换保持 fence 条件,而复杂变换会破坏它。

问题
归纳不变式推断的复杂度及其理论边界尚不清楚,尤其缺乏与精确概念学习理论的联系。
方法
定义 fence 条件刻画不变式边界与坏状态的反向可达性,并借助精确概念学习结果设计/分析基于插值的不变式推断算法。
评估
理论分析:证明算法在 SAT oracle 下多项式时间推断单调 DNF 等不变式,并分析若干程序变换对 fence 条件的影响。
原文摘要(Abstract)

We study the complexity of invariant inference and its connections to exact concept learning. We define a condition on invariants and their geometry, called the fence condition, which permits applying theoretical results from exact concept learning to answer open problems in invariant inference theory. The condition requires the invariant's boundary---the states whose Hamming distance from the invariant is one---to be backwards reachable from the bad states in a small number of steps. Using this condition, we obtain the first polynomial complexity result for an interpolation-based invariant inference algorithm, efficiently inferring monotone DNF invariants with access to a SAT solver as an oracle. We further harness Bshouty's seminal result in concept learning to efficiently infer invariants of a larger syntactic class of invariants beyond monotone DNF. Lastly, we consider the robustness of inference under program transformations. We show that some simple transformations preserve the fence condition, and that it is sensitive to more complex transformations.

链接与引用

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

BibTeX
@article{paperbot1194,
  title = {Learning the boundary of inductive invariants},
  author = {Yotam M. Y. Feldman and Mooly Sagiv and Sharon Shoham and James R. Wilcox},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {5},
  number = {POPL},
  year = {2021},
  doi = {10.1145/3434296}
}