Subtyping on Nested Polymorphic Session Types

Ankush Das, Henry DeYoung, Andreia Mordido, Frank Pfenning
3/28/2021
cs.PLcs.LO

No confident code implementation found for this paper.

Abstract

The importance of subtyping to enable a wider range of well-typed programs is undeniable. However, the interaction between subtyping, recursion, and polymorphism is not completely understood yet.

Show full abstract

In this work, we explore subtyping in a system of nested, recursive, and polymorphic types with a coinductive interpretation, and we prove that this problem is undecidable. Our results will be broadly applicable, but to keep our study grounded in a concrete setting, we work with an extension of session types with explicit polymorphism, parametric type constructors, and nested types. We prove that subtyping is undecidable even for the fragment with only internal choices and nested unary recursive type constructors. Despite this negative result, we present a subtyping algorithm for our system and prove its soundness. We minimize the impact of the inescapable incompleteness by enabling the programmer to seed the algorithm with subtyping declarations (that are validated by the algorithm). We have implemented the proposed algorithm in Rast and it showed to be efficient in various example programs.

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. Any repos shown below are weak matches — 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{das2021subtyping,
  title  = {Subtyping on Nested Polymorphic Session Types},
  author = {Ankush Das and Henry DeYoung and Andreia Mordido and Frank Pfenning},
  year   = {2021},
  eprint = {2103.15193},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.15193}
}

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/2103.15193.svg)](https://codeofpaper.com/paper/2103.15193)

Discussion