Elaborating Inductive Definitions and Course-of-Values Induction in Cedille
Preprint
Abstract
In the Calculus of Dependent Lambda Eliminations (CDLE), a pure Curry-style type theory, it is possible to generically {\lambda}-encode inductive datatypes which support course-of-values (CoV) induction. We present a datatype subsystem for Cedille (an implementation of CDLE) that provides this feature to programmers through convenient notation for declaring datatypes and for defining functions over them by case analysis and fixpoint-style recursion guarded by a type-based termination checker. We demonstrate that this does not require extending CDLE by showing how datatypes and functions over them elaborate to {\lambda}-encodings, and proving that this elaboration is type- and value-preserving. This datatype subsystem and elaborator are implemented in Cedille, establishing for the first time a complete translation of inductive definitions to a small pure typed {\lambda}-calculus.Keywords
All Related Versions
This publication has 16 references indexed in Scilit:
- The calculus of dependent lambda eliminationsJournal of Functional Programming, 2017
- The Reflective Milawa Theorem Prover is Sound (Down to the Machine Code that Runs it)Journal of Automated Reasoning, 2015
- Transporting functions across ornamentsJournal of Functional Programming, 2014
- Proof assistants: History, ideas and futureSādhanā, 2009
- Eliminating Dependent Pattern Matching2006
- Inductive Types in the Calculus of Algebraic Constructions2003
- Induction Is Not Derivable in Second Order Dependent Type Theory2001
- Inductive types and type constraints in the second-order lambda calculusAnnals of Pure and Applied Logic, 1991
- Data structures and program transformationScience of Computer Programming, 1990
- A fixpoint theorem for complete categoriesMathematische Zeitschrift, 1968