一句话:提出混合选择多参与方会话类型系统并证明可靠性,用可编码与分离性比较九个子演算的表达力。
多参与方会话类型(MP)用于保证并发消息传递程序的结构化、无死锁通信,但传统 MP 的选择形式受限:备选通信由单一参与者提供、另一参与者选择。混合选择多参与方会话类型(MCMP)将选择与提供纳入同一选择结构。本文为混合选择同步多参与方会话演算提出通用类型系统,证明类型可靠性、通信安全与死锁自由。进而通过可编码性(存在良好编码)与分离性(不存在良好编码)比较 MCMP 的九个子演算,证明 8 个新可编码结果与 20 个新分离结果。结论表明 MCMP 严格强于经典多参与方会话及混合会话中的混合选择,揭示多参与方混合选择的表达力。
Multiparty session types (MP) are a type discipline for enforcing the structured, deadlock-free communication of concurrent and message-passing programs. Traditional MP have a limited form of choice in which alternative communication possibilities are offered by a single participant and selected by another. Mixed choice multiparty session types (MCMP) extend the choice construct to include both selections and offers in the same choice. This paper first proposes a general typing system for a mixed choice synchronous multiparty session calculus, and prove type soundness, communication safety, and deadlock-freedom. Next we compare expressiveness of nine subcalcli of MCMP-calculus by examining their encodability (there exists a good encoding from one to another) and separation (there exists no good encoding from one calculus to another). We prove 8 new encodablity results and 20 new separation results. In summary, MCMP is strictly more expressive than classical multiparty sessions (MP) in [19] and mixed choice in mixed sessions in [8]. This contrasts to the results proven in [8, 50] where mixed sessions [8] do not add any expressiveness to non-mixed fundamental sessions in [64], shedding a light on expressiveness of multiparty mixed choice.