On the preciseness of subtyping in session types

Tzu Chun Chen, Mariangiola Dezani-Ciancaglini, Alceste Scalas, Nobuko Yoshida

Research output: Contribution to journalArticlepeer-review

38 Citations (SciVal)
47 Downloads (Pure)

Abstract

Subtyping in concurrency has been extensively studied since early 1990s as one of the most interesting issues in type theory. The correctness of subtyping relations has been usually provided as the soundness for type safety. The converse direction, the completeness, has been largely ignored in spite of its usefulness to define the largest subtyping relation ensuring type safety. This paper formalises preciseness (i.e. both soundness and completeness) of subtyping for mobile processes and studies it for the synchronous and the asynchronous session calculi. We first prove that the well-known session subtyping, the branching-selection subtyping, is sound and complete for the synchronous calculus. Next we show that in the asynchronous calculus, this subtyping is incomplete for type-safety: that is, there exist session types T and S such that T can safely be considered as a subtype of S, but T ≤ S is not derivable by the subtyping. We then propose an asynchronous subtyping system which is sound and complete for the asynchronous calculus. The method gives a general guidance to design rigorous channel-based subtypings respecting desired safety properties. Both the synchronous and the asynchronous calculus are first considered with linear channels only, and then they are extended with session initialisations and communications of expressions (including shared channels).

Original languageEnglish
Article number12
JournalLogical Methods in Computer Science
Volume13
Issue number2
DOIs
Publication statusPublished - 30 Jun 2017

Bibliographical note

© T. Chen, M. Dezani-Ciancaglini, A. Scalas, and N. Yoshida
CC Creative Commons

Funding

Key words and phrases: Session types, Subtyping, Completeness, Soundness, the pi-calculus, Type safety, Asynchronous message permutations. ∗ This work was partly supported by the COST Action IC1201 BETTY. . a Tzu-chun Chen was supported by the ERC grant FP7-617805 LiVeSoft. dMariangiola Dezani was partly supported by EU projects H2020-644235 Rephrase and H2020-644298 HyVar, ICT COST Actions IC1402 , IC1405 and Ateneo/CSP project RunVar. cAlceste Scalas was partly supported by EPSRC EP/K011715/1, and was also affiliated with: Dip. di Matematica e Informatica, Università di Cagliari, Italy. d Nobuko Yoshida was partly supported by EPSRC EP/K011715/1, EP/K034413/1, EP/L00058X/1 and EP/N027833/1 and and EU FP7-612985 UpScale.

Keywords

  • Asynchronous message permutations
  • Completeness
  • Session types
  • Soundness
  • Subtyping
  • The π-calculus
  • Type safety

Fingerprint

Dive into the research topics of 'On the preciseness of subtyping in session types'. Together they form a unique fingerprint.

Cite this