$$\pi $$π with Leftovers: A Mechanisation in Agda - Inria - Institut national de recherche en sciences et technologies du numérique
Communication Dans Un Congrès Année : 2021

$$\pi $$π with Leftovers: A Mechanisation in Agda

Uma Zalakain
  • Fonction : Auteur
  • PersonId : 1152666
Ornela Dardha
  • Fonction : Auteur
  • PersonId : 978918

Résumé

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 [2, 23], 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 [26, 27], a process algebra used to model concurrent systems. Our type system is parametrised over a set of usage algebras [20, 34] 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 [37].
Fichier principal
Vignette du fichier
509782_1_En_9_Chapter.pdf (442.35 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-03740255 , version 1 (29-07-2022)

Licence

Identifiants

Citer

Uma Zalakain, Ornela Dardha. $$\pi $$π with Leftovers: A Mechanisation in Agda. 41th International Conference on Formal Techniques for Distributed Objects, Components, and Systems (FORTE), Jun 2021, Valletta, Malta. pp.157-174, ⟨10.1007/978-3-030-78089-0_9⟩. ⟨hal-03740255⟩
27 Consultations
16 Téléchargements

Altmetric

Partager

More