paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Bounded Treewidth, Multiple Context-Free Grammars, and Downward Closures

有界树宽、多上下文无关文法与向下闭包
POPL 10(POPL)2026匹配度 4/10 · 论文属于程序验证与静态分析中的形式化方法,讨论多下推自动机、有界树宽与向下闭包,和递归/多线程程序可达性分析相关;但它不涉及用户重点关注的 PL 与 AI/LLM 交叉、浮点程序分析或贝叶斯程序分析,且偏纯理论自动机/形式语言。引用 2 inbox
C. Aiswarya, Pascal Baumann, Prakash Saivasan, Lia Schütze, Georg Zetzsche
crossref: 2026-09-10

AI 速览

一句话:证明 MSO 可定义的有界特殊树宽系统语言恰为多上下文无关语言,并用于计算向下闭包。

多下推自动机(MPDA)或交错 Dyck 可达性可建模递归程序静态分析,但一般不可判定。文献常用有界树宽给出可判定下近似,即 MSO 可定义的有界树宽系统,然而其执行动作语言仍缺乏理解。本文针对稍有不同但等价于 MPDA 上有界树宽、并涵盖已有系统的有界特殊树宽(bounded-stw),建立其与计算语言学中多上下文无关语言(MCFL)的联系,证明 MSO 可定义 bounded-stw 系统的字语言恰好是 MCFL。基于该刻画,作者给出计算向下闭包的最优算法,并展示在可动态生成 bounded-stw 进程的程序中,安全性验证与顺序递归进程具有相同复杂度。

问题
多下推自动机或交错 Dyck 可达性在递归程序分析中重要但不可判定;有界树宽下近似所产生的系统,其执行字语言仍缺乏理解。
方法
引入并利用有界特殊树宽(bounded-stw),将 MSO 可定义 bounded-stw 系统的执行字语言与多上下文无关语言(MCFL)建立等价刻画。
评估
理论证明该系统的字语言恰为 MCFL,并据此给出向下闭包计算的最优算法;进一步论证动态生成 bounded-stw 进程的安全性验证复杂度与顺序递归进程相同。
原文摘要(Abstract)

The reachability problem in multi-pushdown automata (MPDA), or equivalently, interleaved Dyck reachability, has many applications in static analysis of recursive programs. An example is safety verification of multithreaded recursive programs with shared memory. Since these problems are undecidable, the literature contains many decidable (and efficient) underapproximations of MPDA. A uniform framework that captures many of these underapproximations is that of bounded treewidth: To each execution of the MPDA, we associate a graph; then we consider the subset of all graphs that have a treewidth at most k , for some constant k . In fact, bounding treewidth is a generic approach to obtain classes of systems with decidable reachability, even beyond MPDA underapproximations. The resulting systems are also called MSO-definable bounded-treewidth systems. While bounded treewidth is a powerful tool for reachability and similar types of analysis, the word languages (i.e. action sequences corresponding to executions) of these systems remain far from understood. For the slight restriction of bounded special treewidth, or “bounded-stw” (which is equivalent to bounded treewidth on MPDA, and even includes all bounded-treewidth systems studied in the literature), this work reveals a connection with multiple context-free languages (MCFL), a concept from computational linguistics. We show that the word languages of MSO-definable bounded-stw systems are exactly the MCFL. We exploit this connection to provide an optimal algorithm for computing downward closures for MSO-definable bounded-stw systems. Computing downward closures is a notoriously difficult task that has many applications in the verification of complex systems: As an example application, we show that in programs with dynamic spawning of MSO-definable bounded-stw processes, safety verification has the same complexity as in the case of processes with sequential recursive processes.

链接与引用

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

BibTeX
@article{abs-2512-01973,
  title = {Bounded Treewidth, Multiple Context-Free Grammars, and Downward Closures},
  author = {C. Aiswarya and Pascal Baumann and Prakash Saivasan and Lia Schütze and Georg Zetzsche},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {10},
  number = {POPL},
  year = {2026},
  doi = {10.1145/3776716}
}