Sprinkles of extensionality for your vanilla type theory
Adding custom rewrite rules to Agda Jesper Cockx Andreas Abel
DistriNet – KU Leuven
Sprinkles of extensionality for your vanilla type theory Adding - - PowerPoint PPT Presentation
Sprinkles of extensionality for your vanilla type theory Adding custom rewrite rules to Agda Jesper Cockx Andreas Abel DistriNet KU Leuven 24 May 2016 What are we doing? Take some vanilla Agda . . . 1 / 17 What are we doing? Take
DistriNet – KU Leuven
1 / 17
1 / 17
1 Turn propositional equalities
2 Add new primitives with
2 / 17
3 / 17
4 / 17
5 / 17
5 / 17
6 / 17
7 / 17
1See New equations for neutral terms by Guillaume Allais,
Conor McBride, and Pierre Boutillier.
8 / 17
9 / 17
2Based on code by Martin Escardo, see
cs.bham.ac.uk/~mhe/impredicativity-via-rewriting/
10 / 17
2Based on code by Martin Escardo, see
cs.bham.ac.uk/~mhe/impredicativity-via-rewriting/
10 / 17
3Based on A cubical crossroads by Conor McBride at AIM XXIII,
see github.com/jespercockx/cubes for the Agda code
11 / 17
3Based on A cubical crossroads by Conor McBride at AIM XXIII,
see github.com/jespercockx/cubes for the Agda code
11 / 17
12 / 17
12 / 17
1 t1 . . . tn are matched against linear part of
2 Non-linear parts are checked for equality
3 f t1 . . . tn is rewritten to rσ
13 / 17
14 / 17
14 / 17
15 / 17
16 / 17
17 / 17
17 / 17