Download PDFOpen PDF in browser

Type-Based Termination for Futures

EasyChair Preprint no. 8625

21 pagesDate: August 9, 2022

Abstract

In sequential functional languages, sized types enable termination checking of programs with complex patterns of recursion in the presence of mixed inductive-coinductive types. In this paper, we adapt sized types and their metatheory to the concurrent setting. We extend the semi-axiomatic sequent calculus, a subsuming paradigm for futures-based functional concurrency, and its underlying operational semantics with recursion and arithmetic refinements. The latter enables a new and highly general sized type scheme we call sized type refinements. As a widely applicable technical device, we type recursive programs with infinitely deep typing derivations that unfold all recursive calls. Then, we observe that certain such derivations can be made infinitely wide but finitely deep. The resulting trees serve as the induction target of our strong normalization result, which we develop via a novel logical relations argument.

Keyphrases: concurrency, futures, infinite proofs, sized types, type-based termination

BibTeX entry
BibTeX does not have the right entry for preprints. This is a hack for producing the correct reference:
@Booklet{EasyChair:8625,
  author = {Siva Somayyajula and Frank Pfenning},
  title = {Type-Based Termination for Futures},
  howpublished = {EasyChair Preprint no. 8625},

  year = {EasyChair, 2022}}
Download PDFOpen PDF in browser