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

异步多方会话类型中的广义投影

Generalising Projection in Asynchronous Multiparty Session Types

Rupak Majumdar, Madhavan Mukund, Felix Stutz, Damien Zufferey

摘要:

多方会话类型(MST)为指定和验证消息传递软件系统提供了一种有效的方法。在MST理论中,全局类型指定了全局级别上角色之间的交互。每个角色的本地规范是通过从全局类型投射到它所参与的消息交换上来生成的。只要一个全局类型可以被投射到每个角色上,投射的组合就没有死锁,并且具有全局类型所指定的行为。MST可用性的关键是投影操作:更具表达性的投影允许更多的系统进行类型检查,但需要更困难的合理性参数。在本文中,我们推广的标准投影操作MST。这使我们能够对分布式系统中的许多设计模式进行建模和类型检查,例如标准投影所拒绝的负载均衡。新预测的关键是跟踪信息之间因果关系的分析。我们的合理性证明使用新的图论技术从消息序列图的理论。我们展示了新的投影操作的有效性,显示了许多全球类型的共同模式,可以根据我们的投影,但不是根据标准的投影操作。

英文摘要:

Multiparty session types (MSTs) provide an efficient methodology for specifying and verifying message passing software systems. In the theory of MSTs, a global type specifies the interaction among the roles at the global level. A local specification for each role is generated by projecting from the global type on to the message exchanges it participates in. Whenever a global type can be projected on to each role, the composition of the projections is deadlock free and has exactly the behaviours specified by the global type. The key to the usability of MSTs is the projection operation: a more expressive projection allows more systems to be type-checked but requires a more difficult soundness argument. In this paper, we generalise the standard projection operation in MSTs. This allows us to model and type-check many design patterns in distributed systems, such as load balancing, that are rejected by the standard projection. The key to the new projection is an analysis that tracks causality between messages. Our soundness proof uses novel graph-theoretic techniques from the theory of message-sequence charts. We demonstrate the efficacy of the new projection operation by showing many global types for common patterns that can be projected under our projection but not under the standard projection operation.

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

↑