On the Expressiveness of Mixed Choice Sessions

09/06/2022
by   Kirstin Peters, et al.
0

Session types provide a flexible programming style for structuring interaction, and are used to guarantee a safe and consistent composition of distributed processes. Traditional session types include only one-directional input (external) and output (internal) guarded choices. This prevents the session-processes to explore the full expressive power of the pi-calculus where the mixed choices are proved more expressive than the (non-mixed) guarded choices. To account this issue, recently Casal, Mordido, and Vasconcelos proposed the binary session types with mixed choices (CMV+). This paper carries a surprising, unfortunate result on CMV+: in spite of an inclusion of unrestricted channels with mixed choice, CMV+'s mixed choice is rather separate and not mixed. We prove this negative result using two methodologies (using either the leader election problem or a synchronisation pattern as distinguishing feature), showing that there exists no good encoding from the pi-calculus into CMV+, preserving distribution. We then close their open problem on the encoding from CMV+ into CMV (without mixed choice), proving its soundness and thereby that the encoding is good up to coupled similarity.

READ FULL TEXT
research
08/15/2022

On the Expressiveness of Mixed Choice Sessions (Technical Report)

Session types provide a flexible programming style for structuring inter...
research
04/03/2020

Mixed Sessions: the Other Side of the Tape

The original paper on Mixed Sessions introduce the side A of the tape: t...
research
07/24/2023

Safe asynchronous mixed-choice for timed interactions

Mixed-choice has long been barred from models of asynchronous communicat...
research
09/04/2019

Probabilities in Session Types

This paper deals with the probabilistic behaviours of distributed system...
research
02/19/2020

Imprecise Probability for Multiparty Session Types in Process Algebra

In this paper we introduce imprecise probability for session types. More...
research
03/28/2021

Subtyping on Nested Polymorphic Session Types

The importance of subtyping to enable a wider range of well-typed progra...
research
08/05/2018

On the Distributability of Mobile Ambients (Technical Report)

Modern society is dependent on distributed software systems and to verif...

Please sign up or login with your details

Forgot password? Click here to reset