paperbot · PL 论文追踪

全部论文 待读 收藏

P2 SyTeCi: automating contextual equivalence for higher-order programs with references

SyTeCi:自动化带引用的高阶程序的上下文等价
POPL 4(POPL)2019匹配度 2/10 · 该论文属于形式语义与程序验证,研究带引用高阶程序的上下文等价归约与可判定性,但未涉及 LLM/Agent、浮点程序分析或贝叶斯程序分析等用户核心交叉方向。引用 16 inbox
Guilhem Jaber
crossref: 2026-09-10

AI 速览

一句话:将带局部整数引用的高阶程序上下文等价归约为内存配置迁移系统的不可达性,并用约束 Horn 子句自动判定。

论文研究带局部整数引用的按值调用函数式语言中程序的上下文等价问题。作者提出一个框架,将该问题归约为内存配置迁移系统中的不可达性;对无递归程序,该归约是完备的。进一步限制函数体内部不分配引用时,可把不可达性编码为一组约束 Horn 子句,并借助求解器自动检查可满足性。若再限制到有限数据类型语言,则得到任意类型下上下文等价的新可判定性结果。该工作为高阶引用程序的上下文等价提供了自动验证途径,并扩展了可判定边界。

问题
如何自动判定带局部整数引用的高阶按值函数式程序中程序的上下文等价。
方法
把上下文等价归约为内存配置迁移系统的不可达性,并在受限条件下将其编码为约束 Horn 子句进行可满足性求解。
评估
通过理论证明给出归约的完备性,并利用约束 Horn 子句的自动求解实现自动化;在有限数据类型下进一步得到可判定性结果。
原文摘要(Abstract)

We propose a framework to study contextual equivalence of programs written in a call-by-value functional language with local integer references. It reduces the problem of contextual equivalence to the problem of non-reachability in a transition system of memory configurations. This reduction is complete for recursion-free programs. Restricting to programs that do not allocate references inside the body of functions, we encode this non-reachability problem as a set of constrained Horn clause that can then be checked for satisfiability automatically. Restricting furthermore to a language with finite data-types, we also get a new decidability result for contextual equivalence at any type.

链接与引用

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

BibTeX
@article{paperbot514,
  title = {SyTeCi: automating contextual equivalence for higher-order programs with references},
  author = {Guilhem Jaber},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {4},
  number = {POPL},
  year = {2019},
  doi = {10.1145/3371127}
}