paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Higher-Order MSL Horn Constraints

高阶 MSL Horn 约束
POPL 7(POPL)2023匹配度 3/10 · 论文属于程序验证与高阶 Horn 约束判定,理论性强并含实现,但完全不涉及 LLM/Agent、ML 系统、浮点分析或贝叶斯程序分析,因此与用户当前主攻的 PL 与 AI 交叉方向距离较远。引用 1 inbox
Jerome Jochems, Eddie Jones, Steven Ramsay
crossref: 2026-09-10

AI 速览

一句话:提出高阶 MSL Horn 约束类并给出基于消解的判定过程,证明其与 HORS 模型检测可相互归约,并应用于高阶程序验证。

一元浅线性(MSL)是一阶 Horn 子句的可判定片段,自世纪之交被多次发现与再发现,广泛用于静态分析与验证。本文将其推广到高阶逻辑,提出高阶 MSL Horn 约束,并给出基于消解的判定过程。该约束类能够自然刻画高阶程序中复杂的调用与返回模式,因此非常适合高阶程序验证。作者进一步证明高阶 MSL 可满足性问题与 HORS 模型检测问题可相互归约,从而将高阶 MSL 视为高阶模型检测的一种基于约束的方法。最后,作者实现了该判定过程,并将其应用于经过验证的 socket 编程。

问题
一阶 MSL Horn 子句虽可判定且用于静态分析与验证,但无法直接刻画高阶程序中复杂的调用与返回模式,因此需要将其推广到高阶逻辑以支持高阶程序验证。
方法
定义高阶 MSL Horn 约束类,并设计基于消解的判定过程;同时从理论上建立其可满足性问题与 HORS 模型检测之间的相互归约。
评估
实现了该判定过程,并将其应用于经过验证的 socket 编程案例;理论层面给出了高阶 MSL 与 HORS 模型检测的相互归约证明。
原文摘要(Abstract)

The monadic shallow linear (MSL) class is a decidable fragment of first-order Horn clauses that was discovered and rediscovered around the turn of the century, with applications in static analysis and verification. We propose a new class of higher-order Horn constraints which extend MSL to higher-order logic and develop a resolution-based decision procedure. Higher-order MSL Horn constraints can quite naturally capture the complex patterns of call and return that are possible in higher-order programs, which make them well suited to higher-order program verification. In fact, we show that the higher-order MSL satisfiability problem and the HORS model checking problem are interreducible, so that higher-order MSL can be seen as a constraint-based approach to higher-order model checking. Finally, we describe an implementation of our decision procedure and its application to verified socket programming.

链接与引用

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

BibTeX
@article{paperbot2105,
  title = {Higher-Order MSL Horn Constraints},
  author = {Jerome Jochems and Eddie Jones and Steven Ramsay},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {7},
  number = {POPL},
  year = {2023},
  doi = {10.1145/3571262}
}