paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Fair termination of binary sessions

二元会话的公平终止
POPL 6(POPL)2022匹配度 2/10 · 论文属于会话类型系统与公平终止/公平子类型理论,虽与形式化方法相关,但未涉及 LLM/Agent、静态分析、浮点程序分析或贝叶斯程序分析,也不属于用户画像中 PL 与 AI 交叉的核心方向。引用 8 inbox
Luca Ciccone, Luca Padovani
crossref: 2026-09-10

AI 速览

一句话:提出首个保证二元会话公平终止的类型系统,并首次实际采用公平子类型。

二元会话是连接两个进程的私有通道,进程需遵循会话类型协议。已有类型系统多保证无死锁或强终止,却无法刻画只排除不公平无限执行的公平终止。本文提出首个保证二元会话公平终止的类型系统:若协议允许的无限执行都因违反公平性假设而不现实,则会话公平终止,并蕴含所有未完成的输入/输出最终完成,即使其依赖跨会话、数量无界的其他动作,从而提供一种 lock freedom,并覆盖既有系统难以处理的通信模式。该系统还首次采用 fair subtyping——会话类型标准子类型的保持活性的精化,此前仅有理论研究;为保持活性,类型系统须谨慎追踪 fair subtyping 的所有使用。

问题
如何为二元会话建立保证公平终止而非仅无死锁或强终止的类型系统,并支持保持活性的公平子类型。
方法
定义公平终止与 fair subtyping,设计带公平性假设的类型规则,并谨慎追踪 fair subtyping 的所有使用以避免破坏活性。
评估
以理论性质与自然通信模式论证该类型系统可保证公平终止和 lock freedom,并覆盖既有类型系统无法处理的通信模式。
原文摘要(Abstract)

A binary session is a private communication channel that connects two processes, each adhering to a protocol description called session type . In this work, we study the first type system that ensures the fair termination of binary sessions. A session fairly terminates if all of the infinite executions admitted by its protocol are deemed unrealistic because they violate certain fairness assumptions . Fair termination entails the eventual completion of all pending input/output actions, including those that depend on the completion of an unbounded number of other actions in possibly different sessions. This form of lock freedom allows us to address a large family of natural communication patterns that fall outside the scope of existing type systems. Our type system is also the first to adopt fair subtyping , a liveness-preserving refinement of the standard subtyping relation for session types that so far has only been studied theoretically. Fair subtyping is surprisingly subtle not only to characterize concisely but also to use appropriately, to the point that the type system must carefully account for all usages of fair subtyping to avoid compromising its liveness-preserving properties.

链接与引用

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

BibTeX
@article{paperbot1568,
  title = {Fair termination of binary sessions},
  author = {Luca Ciccone and Luca Padovani},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {6},
  number = {POPL},
  year = {2022},
  doi = {10.1145/3498666}
}