A calculus of expandable stores - Laboratoire Méthodes Formelles Access content directly
Conference Papers Year : 2020

A calculus of expandable stores

Abstract

The call-by-need evaluation strategy for the λ-calculus is an evaluation strategy that lazily evaluates arguments only if needed, and if so, shares computations across all places where it is needed. To implement this evaluation strategy, abstract machines require some form of global environment. While abstract machines usually lead to a better understanding of the flow of control during the execution, facilitating in particular the definition of continuation-passing style translations , the case of machines with global environments turns out to be much more subtle. The main purpose of this paper is to understand how to type a continuation-and-environment-passing style translation , that is to say how to soundly translate in continuation-passing style a calculus with global environment. To this end, we introduce Fϒ , a generic calculus to define the target of such translations. In particular, Fϒ features a data type for typed stores and a mechanism of explicit coercions witnessing store extensions along environment-passing style translations. On the logical side, this broadly amounts to a Kripke forcing-like translation mixed with a negative translation (for the continuation-passing part). Since Fϒ allows for the definition of such translations for different source calculi (call-by-need, call-by-name, call-by-value) with different type systems (simple types, system F), we claim that it precisely captures the computational content of continuation-and-environment-passing style translations.
Fichier principal
Vignette du fichier
main.pdf (979.81 Ko) Télécharger le fichier
Origin : Files produced by the author(s)
Loading...

Dates and versions

hal-02557823 , version 1 (29-04-2020)
hal-02557823 , version 2 (29-06-2020)

Identifiers

  • HAL Id : hal-02557823 , version 1

Cite

Hugo Herbelin, Étienne Miquey. A calculus of expandable stores: Continuation-and-environment-passing style translations. LICS 2020 - Thirty-Fifth Annual ACM/IEEE Symposium on Logic in Computer Science, Jul 2020, Saarbrücken, Germany. ⟨hal-02557823v1⟩
203 View
223 Download

Share

Gmail Facebook X LinkedIn More