arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.14702cs.PL
收藏

带 Bang 的多方会话类型!

Multiparty Session Types with a Bang!

Matthew Alan Le Brun, Simon Fowler, Ornela Dardha

AI总结:

本文提出带复制与一等角色的多方会话类型演算 MPST!,证明复制与递归互补可表达上下文无关及含互斥竞争的协议,并探讨其对类型检查可判定性的影响。

摘要:

复制是 pi-演算中描述无限行为的递归的替代构造。在本文中,我们探讨在多方会话类型(MPST)中包含类型级复制的影响,MPST 是一种用于消息传递程序的的行为类型理论。我们引入 MPST!,一种具有复制和一等角色的会话类型多方进程演算。我们表明,复制不是 MPST 中递归的等价替代,并且在同一个类型系统中同时使用复制和递归实际上使我们能够表达上下文无关协议以及支持互斥和竞争(race)的协议。我们在包括二叉树序列化、哲学家就餐问题和拍卖模型在内的示例上展示了 MPST! 的表达能力,并探讨了复制对类型检查可判定性的影响。

英文摘要:

Replication is an alternative construct to recursion for describing infinite behaviours in the pi-calculus. In this paper we explore the implications of including type-level replication in Multiparty Session Types (MPST), a behavioural type theory for message-passing programs. We introduce MPST!, a session-typed multiparty process calculus with replication and first-class roles. We show that replication is not an equivalent alternative to recursion in MPST, and that using both replication and recursion in one type system in fact allows us to express both context-free protocols and protocols that support mutual exclusion and races. We demonstrate the expressiveness of MPST! on examples including binary tree serialisation, dining philosophers, and a model of an auction, and explore the implications of replication on the decidability of typechecking.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑