arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.01979cs.PL
收藏

混合多方会话类型--完整版本

Hybrid Multiparty Session Types -- Full Version

Lorenzo Gheri, Nobuko Yoshida

摘要:

多方会话类型(MPST)是分布式消息传递系统的规范和验证框架。系统的通信协议被指定为全局类型,通过端点投影从该全局类型获得局部类型的集合(局部流程实现)。全局类型是整个系统的单一规范实体,由一个完全了解通信协议的设计者指定。另一方面,分布式系统通常根据其组件来描述:不同的设计者负责为每个组件提供子协议。全球协议的模块化规范的问题已在文献中得到解决,但最先进的只集中在双输入/输出兼容性。我们的工作克服了这一限制。我们提出了第一个MPST理论的多方组成的分布式协议规范,是语义保持,允许组成两个或多个组件,并保留完整的MPST表现力。我们引入混合类型描述子协议相互作用,定义了一种新的兼容性关系,明确描述了一种算法组成多个子协议到一个良好的形式的全球类型,并证明组合保持投影,从而保留语义保证,如活性和死锁自由。最后,我们测试我们的工作对现实世界的案例研究,我们顺利地扩展我们的新的兼容性MPST与委托和显式连接。

英文摘要:

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.

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

↑