ACM SIGPLAN Notices · 2011 · 12 citations · 26 references
ComputingComputer ScienceAlgorithmsCombinatoricsSet TheoryRecursion TheoryType SystemsRecursionRecursive StructureRecursive TypesStrong InductionTermination MechanismsTermination Of Recursive Programs
The Mendler style catamorphism (which corresponds to weak induction) always terminates even for negative inductive datatypes. The Mendler style histomorphism (which corresponds to strong induction) is known to terminate for positive inductive datatypes. To our knowledge, the literature is silent on its termination properties for negative datatypes. In this paper, we prove that histomorphisms do not always termintate by showing a counter-example. We also enrich the Mendler collection of recursion combinators by defining a new form of Mendler style catamorphism ( msfcata ), which terminates for all inductive datatypes, that is more expressive than the original. We organize the collection of combinators by placing them into a hierarchy of ever increasing generality, and describing the termination properties of each point on the hierarchy. We also provide many examples (including a case study on a negative inductive datatype), which illustrate both the expressive power and beauty of the Mendler style. One lesson we learn from this work is that weak induction applies to negative inductive datatypes but strong induction is problematic. We provide a proof of weak induction by exhibiting an embedding of our new combinator into F ω . We pose the open question: Is there a safe way to apply strong induction to negative inductive datatypes?
26
A formulation of the simple theory of types
Alonzo Church · Journal of Symbolic Logic · 1940 · 1.9K citations
Mathematical Logic as Based on the Theory of Types
Bertrand Russell · American Journal of Mathematics · 1908 · 938 citations
Frank Pfenning, Conal Elliott · ACM SIGPLAN Notices · 1988 · 587 citations · Full text
Alonzo Church · Journal of Symbolic Logic · 1974 · 484 citations
Humanities, Mathematics, Philosophy +15
Frank Pfenning, Conal Elliott · 1988 · 346 citations · Full text