Projects per year
Abstract
Agda's standard library struggles in various places with n-ary functions and relations. It introduces congruence and substitution operators for functions of arities one and two, and provides users with convenient combinators for manipulating indexed families of arity exactly one.
After a careful analysis of the kinds of problems the unifier can easily solve, we design a unifier-friendly representation of n-ary functions. This allows us to write generic programs acting on n-ary functions which automatically reconstruct the representation of their inputs' types by unification. In particular, we can define fully level polymorphic n-ary versions of congruence, substitution and the combinators for indexed families, all requiring minimal user input.
After a careful analysis of the kinds of problems the unifier can easily solve, we design a unifier-friendly representation of n-ary functions. This allows us to write generic programs acting on n-ary functions which automatically reconstruct the representation of their inputs' types by unification. In particular, we can define fully level polymorphic n-ary versions of congruence, substitution and the combinators for indexed families, all requiring minimal user input.
Original language | English |
---|---|
Title of host publication | TyDe 2019 - Proceedings of the 4th ACM SIGPLAN International Workshop on Type-Driven Development, co-located with ICFP 2019 |
Editors | David Darais, Jeremy Gibbons |
Place of Publication | New York |
Pages | 14-26 |
Number of pages | 13 |
DOIs | |
Publication status | Published - 18 Aug 2019 |
Event | 4th ACM SIGPLAN International Workshop on Type-Driven Development - Berlin, Germany Duration: 18 Aug 2019 → 18 Aug 2019 https://icfp19.sigplan.org/home/tyde-2019 |
Workshop
Workshop | 4th ACM SIGPLAN International Workshop on Type-Driven Development |
---|---|
Abbreviated title | TyDe'19 |
Country/Territory | Germany |
City | Berlin |
Period | 18/08/19 → 18/08/19 |
Internet address |
Keywords
- dependently typed functional type
- Agda formalization
- arity-generic programming
- universe polymorphism
Fingerprint
Dive into the research topics of 'Generic level polymorphic N-ary functions'. Together they form a unique fingerprint.Projects
- 1 Finished
-
Homotopy Type Theory: Programming and Verification
Ghani, N. (Principal Investigator) & McBride, C. (Co-investigator)
EPSRC (Engineering and Physical Sciences Research Council)
1/04/15 → 30/09/19
Project: Research