paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Abstracting Effect Systems for Algebraic Effect Handlers

为代数效应处理器抽象效应系统
ICFP 8(ICFP)2024匹配度 2/10 · 该论文属于类型系统与代数效应处理器的形式化研究,虽与程序语言理论相关,但未涉及用户核心关注的 PL+AI/Agentic、LLM 与静态分析/形式化验证交叉、浮点程序分析或贝叶斯程序分析等方向。引用 7 inbox
Takuma Yoshioka, Taro Sekiyama, Atsushi Igarashi
dblp: 2026-09-10crossref: 2026-09-10arxiv: 2026-09-10

AI 速览

一句话:提出参数化于效应代数的类型与效应系统 λ_EA,抽象并统一现有代数效应处理器的效应系统,并证明其类型-效应安全性。

许多面向代数效应处理器的效应系统旨在保证所有被调用的效应都得到妥善处理,但各系统对效应集合的表示与操作方式不同,使安全效应系统的核心要求并不清晰。本文提出语言 λ_EA,其效应系统以效应代数为参数,抽象效应集合的表示与操作;假设效应代数满足安全条件,作者证明 λ_EA 的类型-效应安全性。于是,具体效应系统的安全性可归约为相应效应代数满足安全条件。文中展示满足安全条件的效应代数足以容纳若干不同风格的现有系统,并区分其安全性侧面。为比较扩展场景,作者还扩展 λ_EA 与安全条件以支持 coercions 和 type-erasure 语义,提出新的效应代数,并分析哪些安全、哪些不安全。

问题
现有代数效应处理器的效应系统在效应集合的表示与操作上各不相同,缺乏统一的安全性要求。
方法
提出参数化于效应代数的语言 λ_EA,用安全条件刻画效应代数,并证明类型-效应安全性;扩展支持 coercions 与 type-erasure。
评估
通过将若干现有效应系统编码为满足条件的效应代数,并构造新效应代数,比较其安全性。
原文摘要(Abstract)

Many effect systems for algebraic effect handlers are designed to guarantee that all invoked effects are handled adequately. However, respective researchers have developed their own effect systems that differ in how to represent the collections of effects that may happen. This situation results in blurring what is required for the representation and manipulation of effect collections in a safe effect system. In this work, we present a language λ EA equipped with an effect system that abstracts the existing effect systems for algebraic effect handlers. The effect system of λ EA is parameterized over effect algebras , which abstract the representation and manipulation of effect collections in safe effect systems. We prove the type-and-effect safety of λ EA by assuming that a given effect algebra meets certain properties called safety conditions . As a result, we can obtain the safety properties of a concrete effect system by proving that an effect algebra corresponding to the concrete system meets the safety conditions. We also show that effect algebras meeting the safety conditions are expressive enough to accommodate some existing effect systems, each of which represents effect collections in a different style. Our framework can also differentiate the safety aspects of the effect collections of the existing effect systems. To this end, we extend λ EA and the safety conditions to lift coercions and type-erasure semantics , propose other effect algebras including ones for which no effect system has been studied in the literature, and compare which effect algebra is safe and which is not for the extensions.

链接与引用

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

BibTeX
@article{YoshiokaSI24,
  title = {Abstracting Effect Systems for Algebraic Effect Handlers},
  author = {Takuma Yoshioka and Taro Sekiyama and Atsushi Igarashi},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {8},
  number = {ICFP},
  year = {2024},
  doi = {10.1145/3674641}
}