Projects per year
Abstract
Almost every programming language’s syntax 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, etc.), 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.
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.
Original language | English |
---|---|
Article number | 90 |
Pages (from-to) | 1-30 |
Number of pages | 30 |
Journal | Proceedings of the ACM on Programming Languages (PACMPL) |
Volume | 2 |
Issue number | ICFP |
Early online date | 31 Jul 2018 |
DOIs | |
Publication status | Published - 23 Sept 2018 |
Event | International Conference on Functional Programming 2018 - St. Louis, United States Duration: 23 Sept 2018 → 29 Sept 2018 |
Keywords
- generic programming
- syntax with binding
- semantics
- logical relations
- simulation
- fusion
- agda
Fingerprint
Dive into the research topics of 'A type and scope safe universe of syntaxes with binding: their semantics and proofs'. Together they form a unique fingerprint.Profiles
-
Bob Atkey
- Computer And Information Sciences - Senior Lecturer
- Mathematically Structured Programming
Person: Academic
Projects
- 1 Finished
-
Homotopy Type Theory: Programming and Verification
EPSRC (Engineering and Physical Sciences Research Council)
1/04/15 → 30/09/19
Project: Research
Datasets
-
Code for: "A type and scope safe universe of syntaxes with binding: their semantics and proofs"
Allais, G. (Creator), Atkey, B. (Creator), Chapman, J. (Creator), McBride, C. (Creator) & McKinna, J. (Creator), Association for Computing Machinery (ACM), 23 Aug 2018
DOI: 10.1145/3235048, https://github.com/gallais/generic-syntax
Dataset