Skip to main navigation Skip to search Skip to main content

Builtin types viewed as inductive families

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution book

47 Downloads (Pure)

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.
Original languageEnglish
Title of host publicationProgramming Languages and Systems. ESOP 2023
EditorsThomas Wies
Place of PublicationCham, Switzerland
PublisherSpringer
Pages113-139
Number of pages27
Volume13990
ISBN (Electronic)9783031300448
ISBN (Print)9783031300431
DOIs
Publication statusPublished - 17 Apr 2023
EventEuropean Symposium on Programming - Sorbonne Université, Paris, France
Duration: 22 Apr 2023 → 27 Apr 2023
Conference number: 32

Publication series

NameLecture Notes in Computer Science
Volume13990 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

ConferenceEuropean Symposium on Programming
Abbreviated titleESOP 2023
Country/TerritoryFrance
CityParis
Period22/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.

Cite this