paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Hybrid Multiparty Session Types: Compositionality for Protocol Specification through Endpoint Projection

混合多方会话类型:通过端点投影实现协议规范的组合性
OOPSLA 7(OOPSLA1)2023匹配度 2/10 · 论文属于多方会话类型与端点投影的形式化验证工作,虽与PL/形式化验证相关,但未涉及LLM/Agent、静态分析在ML或Agentic程序中的应用、浮点程序分析或贝叶斯程序分析等用户核心方向。引用 5 inbox
Lorenzo Gheri, Nobuko Yoshida
crossref: 2026-09-10

AI 速览

一句话:提出混合多方会话类型,用端点投影保持语义地组合多个子协议为全局类型。

多参与者会话类型(MPST)将分布式消息传递系统协议写成全局类型,再经端点投影得到局部类型。传统方法假设单一设计者掌握完整协议,而实际系统常由不同组件或设计者分别给出子协议;已有模块化规范仅处理对偶输入输出兼容。本文提出首个保持语义的多参与者组合性 MPST 理论:引入混合类型描述相互交互的子协议,定义新的兼容关系,给出将多个子协议组合为良构全局类型的算法,并证明组合保持端点投影,从而保留活性与无死锁等语义保证。作者用真实案例研究评估该理论,并将兼容性扩展到带委托和显式连接的 MPST。

问题
如何在多个设计者分别提供组件子协议时,对 MPST 全局协议进行模块化规范与组合,并超越现有仅支持对偶输入输出兼容的限制。
方法
提出混合类型和新的兼容关系,设计将多个子协议组合为良构全局类型的算法,并证明组合保持端点投影。
评估
通过真实世界案例研究测试,并扩展到带委托和显式连接的 MPST。
原文摘要(Abstract)

Multiparty session types (MPST) are a specification and verification framework for distributed message-passing systems. The communication protocol of the system is specified as a global type , from which a collection of local types (local process implementations) is obtained by endpoint projection . A global type is a single disciplining entity for the whole system, specified by one designer that has full knowledge of the communication protocol. On the other hand, distributed systems are often described in terms of their components : a different designer is in charge of providing a subprotocol for each component. The problem of modular specification of global protocols has been addressed in the literature, but the state of the art focuses only on dual input/output compatibility. Our work overcomes this limitation. We propose the first MPST theory of multiparty compositionality for distributed protocol specification that is semantics-preserving, allows the composition of two or more components, and retains full MPST expressiveness. We introduce hybrid types for describing subprotocols interacting with each other, define a novel compatibility relation , explicitly describe an algorithm for composing multiple subprotocols into a well-formed global type , and prove that compositionality preserves projection, thus retaining semantic guarantees, such as liveness and deadlock freedom. Finally, we test our work against real-world case studies and we smoothly extend our novel compatibility to MPST with delegation and explicit connections.

链接与引用

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

BibTeX
@article{paperbot2018,
  title = {Hybrid Multiparty Session Types: Compositionality for Protocol Specification through Endpoint Projection},
  author = {Lorenzo Gheri and Nobuko Yoshida},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {7},
  number = {OOPSLA1},
  year = {2023},
  doi = {10.1145/3586031}
}