Sciweavers

TYPES
2004
Springer

Exploring the Regular Tree Types

13 years 9 months ago
Exploring the Regular Tree Types
In this paper we use the Epigram language to define the universe of regular tree types—closed under empty, unit, sum, product and least fixpoint. We then present a generic decision procedure for Epigram’s in-built equality at each type, taking a complementary approach to that of Benke, Dybjer and Jansson [7]. We also give a generic definition of map, taking our inspiration from Jansson and Jeuring [21]. Finally, we equip the regular universe with the partial derivative which can be interpreted functionally as Huet’s notion of ‘zipper’, as suggested by McBride in [27] and implemented (without the fixpoint case) in Generic Haskell by Hinze, Jeuring and L¨oh [18]. We aim to show through these examples that generic programming can be ordinary programming in a dependently typed language.
Peter Morris, Thorsten Altenkirch, Conor McBride
Added 02 Jul 2010
Updated 02 Jul 2010
Type Conference
Year 2004
Where TYPES
Authors Peter Morris, Thorsten Altenkirch, Conor McBride
Comments (0)