Activities per year
Abstract
State of the art optimisation passes for dependently typed languages can help erase the redundant information typical of invariant-rich data structures and programs. These automated processes do not dramatically change the structure of the data, even though more efficient representations could be available.
Using Quantitative Type Theory as implemented in Idris 2, we demonstrate how to define an invariant-rich, typechecking-time data structure packing an efficient runtime representation together with runtime irrelevant invariants. The compiler can then aggressively erase all such invariants during compilation.
Unlike other approaches, the complexity of the resulting representation is entirely predictable, we do not require both representations to have the same structure, and yet we are able to seamlessly program as if we were using the high-level structure.
Using Quantitative Type Theory as implemented in Idris 2, we demonstrate how to define an invariant-rich, typechecking-time data structure packing an efficient runtime representation together with runtime irrelevant invariants. The compiler can then aggressively erase all such invariants during compilation.
Unlike other approaches, the complexity of the resulting representation is entirely predictable, we do not require both representations to have the same structure, and yet we are able to seamlessly program as if we were using the high-level structure.
| Original language | English |
|---|---|
| Title of host publication | Programming Languages and Systems. ESOP 2023 |
| Editors | Thomas Wies |
| Place of Publication | Cham, Switzerland |
| Publisher | Springer |
| Pages | 113-139 |
| Number of pages | 27 |
| Volume | 13990 |
| ISBN (Electronic) | 9783031300448 |
| ISBN (Print) | 9783031300431 |
| DOIs | |
| Publication status | Published - 17 Apr 2023 |
| Event | European Symposium on Programming - Sorbonne Université, Paris, France Duration: 22 Apr 2023 → 27 Apr 2023 Conference number: 32 |
Publication series
| Name | Lecture Notes in Computer Science |
|---|---|
| Volume | 13990 LNCS |
| ISSN (Print) | 0302-9743 |
| ISSN (Electronic) | 1611-3349 |
Conference
| Conference | European Symposium on Programming |
|---|---|
| Abbreviated title | ESOP 2023 |
| Country/Territory | France |
| City | Paris |
| Period | 22/04/23 → 27/04/23 |
Funding
This research was funded by the Engineering and Physical Sciences Research Council (grant number EP/T007265/1).
Keywords
- quantitative type theory
- indexed families
- runtime representation
- Idris 2
Fingerprint
Dive into the research topics of 'Builtin types viewed as inductive families'. Together they form a unique fingerprint.Activities
- 1 Participation in conference
-
European Symposium on Programming
Allais, G. (Speaker)
22 Apr 2023 → 27 Apr 2023Activity: Presenting or Organising an Event › Participation in conference
Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver