with leftovers: a mechanisation in Agda

From MaRDI portal
Publication:2117018

DOI10.1007/978-3-030-78089-0_9zbMATH Open1490.68143arXiv2005.05902OpenAlexW3177385648MaRDI QIDQ2117018FDOQ2117018


Authors: Uma Zalakain, Ornela Dardha Edit this on Wikidata


Publication date: 21 March 2022

Abstract: Linear type systems need to keep track of how programs use their resources. The standard approach is to use context splits specifying how resources are (disjointly) split across subterms. In this approach, context splits redundantly echo information which is already present within subterms. An alternative approach is to use leftover typing, where in addition to the usual (input) usage context, typing judgments have also an output usage context: the leftovers. In this approach, the leftovers of one typing derivation are fed as input to the next, threading through linear resources while avoiding context splits. We use leftover typing to define a type system for a resource-aware {pi}-calculus, a process algebra used to model concurrent systems. Our type system is parametrised over a set of usage algebras that are general enough to encompass shared types (free to reuse and discard), graded types (use exactly n number of times) and linear types (use exactly once). Linear types are important in the {pi}-calculus: they ensure privacy and safety of communication and avoid race conditions, while graded and shared types allow for more flexible programming. We provide a framing theorem for our type system, generalise the weakening and strengthening theorems to include linear types, and prove subject reduction. Our formalisation is fully mechanised in about 1850 lines of Agda.


Full work available at URL: https://arxiv.org/abs/2005.05902




Recommendations




Cites Work


Cited In (2)

Uses Software





This page was built for publication: \( \pi\) with leftovers: a mechanisation in Agda

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q2117018)