A type- and scope-safe universe of syntaxes with binding: their semantics and proofs
Journal of Functional Programming · 2021 · 31
DOI: 10.1017/s0956796820000076 ↗Kurz gefasst
Fachartikel in der Zeitschrift Journal of Functional Programming, online erschienen am 19.10.2021. Verfasst von GUILLAUME ALLAIS und 4 weiteren Autor:innen. Die Arbeit wurde bisher 16-mal zitiert (Crossref) und nennt 94 Literaturangaben.
Abstract (Originalsprache)
The syntax of almost every programming language includes a notion of binder and corresponding bound occurrences, along with the accompanying notions of α-equivalence, capture-avoiding substitution, typing contexts, runtime environments, and so on. In the past, implementing and reasoning about programming languages required careful handling to maintain the correct behaviour of bound variables. Modern programming languages include features that enable constraints like scope safety to be expressed in types. Nevertheless, the programmer is still forced to write the same boilerplate over again for each new implementation of a scope-safe operation (e.g., renaming, substitution, desugaring, printing), and then again for correctness proofs. We present an expressive universe of syntaxes with binding and demonstrate how to (1) implement scope-safe traversals once and for all by generic programming; and (2) how to derive properties of these traversals by generic proving. Our universe description, generic traversals and proofs, and our examples have all been formalised in Agda and are available in the accompanying material available online at https://github.com/gallais/generic-syntax .
Zitieren
APA
ALLAIS, G., ATKEY, R., CHAPMAN, J., MCBRIDE, C., & MCKINNA, J. (2021). A type- and scope-safe universe of syntaxes with binding: their semantics and proofs. Journal of Functional Programming, 31. https://doi.org/10.1017/s0956796820000076
Vancouver
ALLAIS G, ATKEY R, CHAPMAN J, MCBRIDE C, MCKINNA J. A type- and scope-safe universe of syntaxes with binding: their semantics and proofs. Journal of Functional Programming. 2021;31. doi:10.1017/s0956796820000076
BibTeX
@article{ALLAIS2021,
author = {ALLAIS, GUILLAUME and ATKEY, ROBERT and CHAPMAN, JAMES and MCBRIDE, CONOR and MCKINNA, JAMES},
title = {A type- and scope-safe universe of syntaxes with binding: their semantics and proofs},
journal = {Journal of Functional Programming},
year = {2021},
volume = {31},
doi = {10.1017/s0956796820000076}
}
EUVIMED