paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Polymorphic Iterable Sequential Effect Systems

多态可迭代顺序效应系统
TOPLAS 43(1)2021匹配度 2/10 · 论文研究顺序效应系统与 effect quantale,属于类型系统和形式语义的理论工作,与用户核心关注的 LLM/Agentic 程序分析、浮点程序分析、贝叶斯程序分析及 AI↔PL 交叉方向均无直接关系。引用 17 inbox
Colin S. Gordon
crossref: 2026-09-10

AI 速览

一句话:提出以 effect quantale 为参数的抽象多态顺序效应系统,并推导出尽可能精确的迭代结构。

效应系统能以较低开发者负担验证多种性质,但已有的一般理解多局限于效应顺序无关的半格模型;顺序效应系统中效应顺序重要,却缺乏统一的代数结构。本文提出由 effect quantale 参数化的抽象多态效应系统,定义该结构并推导其性质,表明它能干净地建模多种已知顺序效应系统。作者进一步给出诱导的顺序效应迭代概念,证明对多数 effect quantale 而言该迭代与先前手工设计的迭代算子一致,且在定义时尽可能精确。文中还将其与顺序效应系统的范畴语义及 Kleene 代数进行定位,澄清区别并推广迭代构造。

问题
顺序效应系统中效应的顺序重要,但缺乏类似半格那样的统一代数结构,限制了对效应系统的一般理解与新系统设计。
方法
定义 effect quantale 作为抽象多态效应系统的参数,推导其性质与诱导迭代,并将其与顺序效应系统的范畴语义和 Kleene 代数建立联系。
评估
通过建模多种已有顺序效应系统、与先前手工设计的迭代算子进行比较,并论证所定义迭代的精确性;同时系统梳理并定位相关范畴语义框架。
原文摘要(Abstract)

Effect systems are lightweight extensions to type systems that can verify a wide range of important properties with modest developer burden. But our general understanding of effect systems is limited primarily to systems where the order of effects is irrelevant. Understanding such systems in terms of a semilattice of effects grounds understanding of the essential issues and provides guidance when designing new effect systems. By contrast, sequential effect systems—where the order of effects is important—lack an established algebraic structure on effects. We present an abstract polymorphic effect system parameterized by an effect quantale—an algebraic structure with well-defined properties that can model the effects of a range of existing sequential effect systems. We define effect quantales, derive useful properties, and show how they cleanly model a variety of known sequential effect systems. We show that for most effect quantales, there is an induced notion of iterating a sequential effect; that for systems we consider the derived iteration agrees with the manually designed iteration operators in prior work; and that this induced notion of iteration is as precise as possible when defined. We also position effect quantales with respect to work on categorical semantics for sequential effect systems, clarifying the distinctions between these systems and our own in the course of giving a thorough survey of these frameworks. Our derived iteration construct should generalize to these semantic structures, addressing limitations of that work. Finally, we consider the relationship between sequential effects and Kleene Algebras, where the latter may be used as instances of the former.

链接与引用

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

BibTeX
@article{paperbot1221,
  title = {Polymorphic Iterable Sequential Effect Systems},
  author = {Colin S. Gordon},
  journal = {ACM Transactions on Programming Languages and Systems},
  volume = {43},
  number = {1},
  year = {2021},
  doi = {10.1145/3450272}
}