Arrow Research search
Back to I&C

I&C 2024

Mixed choice in session types

Journal Article journal-article Computer Science · Theoretical Computer Science

Abstract

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 π-calculus where mixed choice was proved more expressive. Recently Casal, Mordido, and Vasconcelos proposed binary session types with mixed choices ( CMV + ). Surprisingly, 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 π-calculus into CMV +, preserving distribution. We then close their open problem on the encoding from CMV + into CMV (without mixed choice), proving its soundness.

Authors

Keywords

  • Session types
  • Mixed choice
  • Expressive power

Context

Venue
Information and Computation
Archive span
1987-2026
Indexed papers
3021
Paper id
1095154016404516514
v2026.09.13