paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Monadic Intersection Types, Relationally, and Ordered

单子交集类型:关系式与有序式
TOPLAS 47(4)2025匹配度 2/10 · 论文属于纯PL类型论与形式语义,研究带代数效应的单子交集类型及关系/前序语义,虽与程序分析和形式验证的理论基础相关,但未涉及用户画像中的LLM/Agent、机器学习系统、浮点程序分析或贝叶斯程序分析等核心交叉方向。引用 1 inbox
Zeinab Galal, Francesco Gavazzo, Riccardo Treglia, Gabriele Vanoni
crossref: 2026-09-10

AI 速览

一句话:将交集类型提升到带代数效应的计算演算,并用单子与前序语义刻画程序观察行为。

本文将交集类型扩展到带 Plotkin-Power 代数操作的 computational λ-演算。核心思想是单子交集:计算效应不仅出现在操作语义中,也出现在类型系统里。由于在效应场景中终止不再是唯一关注性质,作者用类型系统刻画程序与环境交互的自然观察,覆盖有限与无限情形。随后引入子类型,并用前序上的单子(而非集合上的单子)容纳更丰富的效应,特别可建模非确定性。技术上是句法技术与抽象关系推理的新结合,可将可类型化、逻辑关系等概念提升到单子场景。

问题
在带代数效应的计算演算中,传统交集类型主要关注终止等性质,难以刻画效应程序与环境的交互观察行为;如何把交集类型、子类型与逻辑关系提升到单子/效应场景是核心问题。
方法
作者提出单子交集类型,使计算效应同时出现在操作语义与类型系统中;进一步采用前序上的单子实现子类型以支持非确定性等更丰富效应,并发展句法技术与抽象关系推理相结合的方法来提升可类型化和逻辑关系。
评估
论文以形式化定义与证明为主,展示类型系统在有限和无限情形下刻画自然观察,并说明有序单子扩展可建模非确定性等效应;摘要未报告实现或基准评估。
原文摘要(Abstract)

We extend intersection types to a computational \(\lambda\) -calculus with algebraic operations à la Plotkin and Power. We achieve this by considering monadic intersections—whereby computational effects appear not only in the operational semantics but also in the type system . Since in the effectful setting, termination is not anymore the only property of interest, we want to analyze the interactive behavior of typed programs with the environment. Indeed, our type system can characterize the natural notion of observation, both in the finitary and in the infinitary setting. In a second phase, we extend our system with subtyping to incorporate a richer class of effects via monads on preorders instead of sets allowing us to model in particular non-determinism. The main technical tool is a novel combination of syntactic techniques with abstract relational reasoning, which allows us to lift all the required notions, for example, of typability and logical relation, to the monadic setting.

链接与引用

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

BibTeX
@article{GalalGTV25,
  title = {Monadic Intersection Types, Relationally, and Ordered},
  author = {Zeinab Galal and Francesco Gavazzo and Riccardo Treglia and Gabriele Vanoni},
  journal = {ACM Transactions on Programming Languages and Systems},
  volume = {47},
  number = {4},
  year = {2025},
  doi = {10.1145/3777483}
}