Three Subtyping Algorithms for Binary Session Types and their Complexity Analyses

Thien Udomsrirungruang
(University of Oxford)
Nobuko Yoshida
(University of Oxford)

Session types are a type discipline for describing and specifying communication behaviours of concurrent processes. Session subtyping, firstly introduced by Gay and Hole, is widely used for enlarging typability of session programs. This paper gives the complexity analysis of three algorithms for subtyping of synchronous binary session types. First, we analyse the complexity of the algorithm from the original paper, which is based on an inductive tree search. We then introduce its optimised version, which improves the complexity, but is still exponential against the size of the two types. Finally, we propose a new quadratic algorithm based on a graph search using the concept of XYZW-simulation, recently introduced by Silva et al.

In Diana Costa and Raymond Hu: Proceedings 15th Workshop on Programming Language Approaches to Concurrency and Communication-cEntric Software (PLACES 2024), Luxembourg City, Luxembourg, 6th April 2024, Electronic Proceedings in Theoretical Computer Science 401, pp. 49–60.
A full version of this paper which contains complete definitions and examples is available at https://arxiv.org/abs/2402.06988.
Published: 6th April 2024.

ArXived at: https://dx.doi.org/10.4204/EPTCS.401.5 bibtex PDF
References in reconstructed bibtex, XML and HTML format (approximated).
Comments and questions to: eptcs@eptcs.org
For website issues: webmaster@eptcs.org