Nested Session Types

Ankush Das, Henry DeYoung, Andreia Mordido, Frank Pfenning
10/13/2020
cs.PLcs.LO

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Session types statically describe communication protocols between concurrent message-passing processes. Unfortunately, parametric polymorphism even in its restricted prenex form is not fully understood in the context of session types.

Show full abstract

In this paper, we present the metatheory of session types extended with prenex polymorphism and, as a result, nested recursive datatypes. Remarkably, we prove that type equality is decidable by exhibiting a reduction to trace equivalence of deterministic first-order grammars. Recognizing the high theoretical complexity of the latter, we also propose a novel type equality algorithm and prove its soundness. We observe that the algorithm is surprisingly efficient and, despite its incompleteness, sufficient for all our examples. We have implemented our ideas by extending the Rast programming language with nested session types. We conclude with several examples illustrating the expressivity of our enhanced type system.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{das2020nested,
  title  = {Nested Session Types},
  author = {Ankush Das and Henry DeYoung and Andreia Mordido and Frank Pfenning},
  year   = {2020},
  eprint = {2010.06482},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.06482}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.06482.svg)](https://codeofpaper.com/paper/2010.06482)

Discussion