Session Types with Arithmetic Refinements

Ankush Das, Frank Pfenning
5/12/2020
cs.PLcs.LO

No confident code implementation found for this paper.

Abstract

Session types statically prescribe bidirectional communication protocols for message-passing processes. However, simple session types cannot specify properties beyond the type of exchanged messages.

Show full abstract

In this paper we extend the type system by using index refinements from linear arithmetic capturing intrinsic attributes of data structures and algorithms. We show that, despite the decidability of Presburger arithmetic, type equality and therefore also subtyping and type checking are now undecidable, which stands in contrast to analogous dependent refinement type systems from functional languages. We also present a practical, but incomplete algorithm for type equality, which we have used in our implementation of Rast, a concurrent session-typed language with arithmetic index refinements as well as ergometric and temporal types. Moreover, if necessary, the programmer can propose additional type bisimulations that are smoothly integrated into the type equality algorithm.

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{das2020session,
  title  = {Session Types with Arithmetic Refinements},
  author = {Ankush Das and Frank Pfenning},
  year   = {2020},
  eprint = {2005.05970},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.05970}
}

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

Discussion