Hybrid Multiparty Session Types: Compositionality for Protocol Specification through Endpoint Projection
Hybrid Multiparty Session Types: Compositionality for Protocol Specification through Endpoint Projection
复制标题
混合多方会话类型:通过端点投影实现协议规范的组合性
DOI:
10.1145/3586031
复制
发表时间:
2023
影响因子:
--
通讯作者:
Gheri L
中科院分区:
文献类型:
--
作者:
Gheri L
Multiparty session types (MPST) are a specification and verification framework for distributed message-passing systems. The communication protocol of the system is specified as aglobal type, from which a collection oflocal types(local process implementations) is obtained byendpoint projection. A global type is a single disciplining entity for the whole system, specified byone designerthat has full knowledge of the communication protocol. On the other hand, distributed systems are often described in terms of theircomponents: 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 ofmultiparty compositionality for distributed protocol specificationthat is semantics-preserving, allows the composition of two or more components, and retains full MPST expressiveness. We introducehybrid typesfor describing subprotocols interacting with each other, define a novelcompatibility relation, explicitly describe an algorithm for composing multiple subprotocols into awell-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.