User loginNavigation |
I am not a number: I am a free variable
I am not a number: I am a free variable
Conor McBride, James McKinna
In this paper, we show how to manipulate syntax with binding using a mixed representation of names for free variables (with respect to the task in hand) and de Bruijn indices for bound variables. By doing so, we retain the advantages of both representations: naming supports easy, arithmetic-Âfree manipulation of terms; de Bruijn indices eliminate the need for alpha-Âconversion. Further, we have ensure that not only the user but also the implementation need never deal with de Bruijn indices, except within key basic operations. Moreover, we give a representation for names which readily supports a power structure naturally reflecting the structure of the implementation. Name choice is safe and straightforward. Our technology combines easily with an approach to syntax manipulation inspired by Huet's `zippers'. Without the technology in this paper, we could not have implemented Epigram. Our example---constructing inductive elimination opera tors for datatype families---is but one of many where it proves invaluable.A pretty technical paper, but fun to read. OT: Is it just me, or the page 7 contains an easter egg? Or rather a pun... By Andris Birkmanis at 2005-02-22 08:28 | LtU Forum | previous forum topic | next forum topic | other blogs | 8911 reads
|
Browse archives
Active forum topics |
Recent comments
26 weeks 6 days ago
26 weeks 6 days ago
26 weeks 6 days ago
49 weeks 12 hours ago
1 year 1 week ago
1 year 2 weeks ago
1 year 2 weeks ago
1 year 5 weeks ago
1 year 10 weeks ago
1 year 10 weeks ago