跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2607.12642 · v2

Building Extensible Program Logics through Effect Handlers (Extended Version)

通过效应处理器构建可扩展的程序逻辑(扩展版)

首次提交 2026-07-14 19:21
版本更新 2026-12-01 02:51
雷达观测 2026-12-01 16:32
arXiv ↗PDF ↗

摘要

One approach to reasoning about effectful programs is to use program logics that provide proof rules for various effects. However, developing program logics requires skills that are distinct from those needed for using program logics, making the development of new logics less accessible. Moreover, when developing new logics, it can be difficult to reuse components from prior logics or combine support for different effects. In this paper, we propose an approach for building extensible program logics based on effect handlers. Our starting point is an expressive program logic for reasoning about programs written in a pure, sequential language with support for effect handlers. Within this language, we implement handlers that model concurrency, distributed execution, and crash-recovery behavior. Then, by proving properties of these handlers within the logic, we derive expressive rules for reasoning about these effects. In some cases, this approach leads to stronger reasoning rules than those found in prior program logics. In addition, we develop a relational logic for proving contextual refinements between programs using effects. As with unary reasoning, handlers enable this relational logic to be developed in an extensible way.

AI 论文解读

基于摘要 · 非全文审阅

提出以效应处理器为基础、在纯顺序语言的程序逻辑内部建模并发、分布式执行与崩溃恢复等效应,从而可扩展地推导出相应推理规则,并发展出用于上下文精化的关系逻辑。

正在读取账号与研究记录…

版本差异

本站首次收录为 v2,暂无更早版本可对照。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v2 · 2026-12-01 02:51 · 最新观测版本

Building Extensible Program Logics through Effect Handlers (Extended Version)

One approach to reasoning about effectful programs is to use program logics that provide proof rules for various effects. However, developing program logics requires skills that are distinct from those needed for using program logics, making the development of new logics less accessible. Moreover, when developing new logics, it can be difficult to reuse components from prior logics or combine support for different effects. In this paper, we propose an approach for building extensible program logics based on effect handlers. Our starting point is an expressive program logic for reasoning about programs written in a pure, sequential language with support for effect handlers. Within this language, we implement handlers that model concurrency, distributed execution, and crash-recovery behavior. Then, by proving properties of these handlers within the logic, we derive expressive rules for reasoning about these effects. In some cases, this approach leads to stronger reasoning rules than those found in prior program logics. In addition, we develop a relational logic for proving contextual refinements between programs using effects. As with unary reasoning, handlers enable this relational logic to be developed in an extensible way.

查看此版本解读 →查看此版本原文 ↗