paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Higher-Order Model Checking of Effect-Handling Programs with Answer-Type Modification

带答案类型修改的效应处理程序的高阶模型检测
OOPSLA 8(OOPSLA2)2024匹配度 2/10 · 该论文属于纯 PL/形式化验证方向,研究带代数效应处理器的高阶程序模型检测与可判定性,并实现验证器 EffCaml;但未涉及 LLM/Agent、浮点程序分析或贝叶斯程序分析,与用户当前研究的交叉点距离较远。引用 6 inbox
Taro Sekiyama, Hiroshi Unno
dblp: 2026-09-10crossref: 2026-09-10

AI 速览

一句话:引入答案类型修改限制,使带代数效应处理器的高阶程序模型检测可判定,并实现验证器 EffCaml。

自 Ong 的开创性工作以来,高阶模型检测(HOMC)受到关注,而将其应用于实际软件需处理计算效应。Dal Lago 与 Ghyselen 研究了 HOMC 对代数效应处理器的扩展,但给出了不可判定性结果。本文探索可确保 HOMC 可判定、同时允许实现多种效应的程序限制。作者将不可判定性的症结归结为可同时活跃的代数效应处理器数量无界,为此引入答案类型修改(ATM),以约束同时活跃的处理器数量。论文证明 ATM 可保证 HOMC 可判定,并说明其能容纳广泛的效应。为评估方法,作者实现自动验证器 EffCaml,确认文中讨论的程序实例均可自动验证。

问题
带代数效应处理器的高阶程序模型检测不可判定,核心原因是同时活跃的处理器数量无界;如何施加限制以恢复可判定性而不牺牲多种效应的可表达性。
方法
引入答案类型修改(ATM)来约束可同时活跃的代数效应处理器数量,并证明该限制下 HOMC 可判定且支持广泛效应。
评估
实现自动验证器 EffCaml,并用其自动验证论文所讨论的程序实例。
原文摘要(Abstract)

Since the seminal work by Ong, the model checking of higher-order programs—called higher-order model checking , or HOMC for short—has gained attention. It is also crucial for making HOMC applicable to real-world software to address programs involving computational effects. Recently, Dal Lago and Ghyselen considered an extension of HOMC to algebraic effect handlers , which enable programming the semantics of effects. They showed a negative result for HOMC with algebraic effect handlers—it is undecidable. In this work, we explore a restriction on programs with algebraic effect handlers which ensures the decidability of HOMC while allowing implementations of various effects. We identify the crux of the undecidability as the use of an unbounded number of algebraic effect handlers being active at the same time. To prevent it, we introduce answer-type modification (ATM), which can bound the number of algebraic effect handlers that can be active at the same time. We prove that ATM can ensure the decidability of HOMC and show that it accommodates a wide range of effects. To evaluate our approach, we implemented an automated verifier EffCaml based on the presented techniques and confirmed that the program examples discussed in this paper can be automatically verified.

链接与引用

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

BibTeX
@article{Sekiyama024,
  title = {Higher-Order Model Checking of Effect-Handling Programs with Answer-Type Modification},
  author = {Taro Sekiyama and Hiroshi Unno},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {8},
  number = {OOPSLA2},
  year = {2024},
  doi = {10.1145/3689805}
}