2010 · 83 citations · 23 references
ComputingComputer ScienceFormal MethodsProgramming LanguagesSyntaxData TypesGeneric ProgrammingType CheckingType SystemsDependent TypesGeneric TypesGenericityInfinite RegressPolymorphic Type SystemsSelf-supporting DesignType DeclarationsType Theory
We present a closed dependent type theory whose inductive types are given not by a scheme for generative declarations, but by encoding in a universe. Each inductive datatype arises by interpreting its description - a first-class value in a datatype of descriptions. Moreover, the latter itself has a description. Datatype-generic programming thus becomes ordinary programming. We show some of the resulting generic operations and deploy them in particular, useful ways on the datatype of datatype descriptions itself. Simulations in existing systems suggest that this apparently self-supporting setup is achievable without paradox or infinite regress.
23
Ralf Lämmel, Simon Peyton Jones · 2003 · 350 citations
Guarded recursive datatype constructors
Hongwei Xi, Chiyan Chen, Gang Chen · 2003 · 329 citations
Conor McBride, James McKinna · Journal of Functional Programming · 2004 · 327 citations · Full text
PolyP---a polytypic programming language extension
Patrik Jansson, Johan Jeuring · 1997 · 246 citations · Full text
Computation and reasoning: a type theory for computer science
Choice Reviews Online · 1995 · 243 citations
Computing, Computer Science, Logic +16