paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Session Coalgebras: A Coalgebraic View on Regular and Context-free Session Types

会话余代数:正则与上下文无关会话类型的余代数视角
TOPLAS 44(3)2022匹配度 2/10 · 该论文研究纯PL/形式语义中的会话类型与余代数,虽属于形式验证/类型系统范畴,但完全不涉及LLM/Agent、机器学习系统静态分析、浮点程序分析或贝叶斯程序分析等用户核心方向。与用户当前PL与AI交叉的研究画像仅有非常间接的关联。引用 4 inbox
Alex C. Keizer, Henning Basold, Jorge A. Pérez
crossref: 2026-09-10

AI 速览

一句话:用余代数给出会话类型的无语法语义,统一正则与上下文无关会话类型并导出可判定子类型系统。

该文研究会话类型这一行为类型系统,旨在为并发通信协议提供不依赖语法的语义基础,并统一处理正则与上下文无关会话类型。作者用余代数将基于会话的并发描述为状态,利用余归纳规范表示重新刻画类型等价、对偶与子类型;借助有理不动点建立会话余代数、有理不动点与会话类型的对应,并通过给会话余代数加栈来扩展到上下文无关情形。结果是在π演算上得到一个带子类型的可判定类型系统,且其关系与现有会话类型系统一致,同时揭示了通常语法式会话类型与无语法余代数方法之间的差异。

问题
如何为会话类型提供不依赖语法的语义基础,并统一处理正则与上下文无关会话类型及其等价、对偶和子类型关系?
方法
采用余代数方法,将基于会话的并发表示为余代数状态,以余归纳规范表示推导类型关系,并借助有理不动点和栈扩展覆盖正则与上下文无关会话类型。
评估
在π演算上导出带子类型的可判定类型系统,证明其关系与现有会话类型系统一致,并分析语法式会话类型与余代数方法之间的差异。
原文摘要(Abstract)

Compositional methods are central to the verification of software systems. For concurrent and communicating systems, compositional techniques based on behavioural type systems have received much attention. By abstracting communication protocols as types, these type systems can statically check that channels in a program interact following a certain protocol—whether messages are exchanged in the intended order. In this article, we put on our coalgebraic spectacles to investigate session types , a widely studied class of behavioural type systems. We provide a syntax-free description of session-based concurrency as states of coalgebras. As a result, we rediscover type equivalence, duality, and subtyping relations in terms of canonical coinductive presentations. In turn, this coinductive presentation enables us to derive a decidable type system with subtyping for the π-calculus, in which the states of a coalgebra will serve as channel protocols. Going full circle, we exhibit a coalgebra structure on an existing session type system, and show that the relations and type system resulting from our coalgebraic perspective coincide with existing ones. We further apply to session coalgebras the coalgebraic approach to regular languages via the so-called rational fixed point, inspired by the trinity of automata, regular languages, and regular expressions with session coalgebras, rational fixed point, and session types, respectively. We establish a suitable restriction on session coalgebras that determines a similar trinity, and reveals the mismatch between usual session types and our syntax-free coalgebraic approach. Furthermore, we extend our coalgebraic approach to account for context-free session types, by equipping session coalgebras with a stack.

链接与引用

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

BibTeX
@article{paperbot1608,
  title = {Session Coalgebras: A Coalgebraic View on Regular and Context-free Session Types},
  author = {Alex C. Keizer and Henning Basold and Jorge A. Pérez},
  journal = {ACM Transactions on Programming Languages and Systems},
  volume = {44},
  number = {3},
  year = {2022},
  doi = {10.1145/3527633}
}