Generalising Projection in Asynchronous Multiparty Session Types

by   Rupak Majumdar, et al.

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.



There are no comments yet.


page 5

page 7

page 9

page 13

page 15

page 23

page 31

page 35


Deconfined Global Types for Asynchronous Sessions

Multiparty sessions with asynchronous communications and global types pl...

An Abstract Framework for Choreographic Testing

We initiate the development of a model-driven testing framework for mess...

A Message-Passing Interpretation of Adjoint Logic

We present a system of session types based on adjoint logic which genera...

Actris 2.0: Asynchronous Session-Type Based Reasoning in Separation Logic

Message passing is a useful abstraction for implementing concurrent prog...

Probabilistic Resource-Aware Session Types

Session types guarantee that message-passing processes adhere to predefi...

Global Types for Open Systems

Global-type formalisms enable to describe the overall behaviour of distr...

Value-Dependent Session Design in a Dependently Typed Language

Session Types offer a typing discipline that allows protocol specificati...
This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.