Structural Induction Principles for Functional Programmers

James Caldwell
(University of Wyoming)

User defined recursive types are a fundamental feature of modern functional programming languages like Haskell, Clean, and the ML family of languages. Properties of programs defined by recursion on the structure of recursive types are generally proved by structural induction on the type. It is well known in the theorem proving community how to generate structural induction principles from

data type declarations. These methods deserve to be better know in the functional programming community. Existing functional programming textbooks gloss over this material. And yet, if functional programmers do not know how to write down the structural induction principle for a new type - how are they supposed to reason about it? In this paper we describe an algorithm to generate structural induction principles from data type declarations. We also discuss how these methods are taught in the functional programming course at the University of Wyoming. A Haskell implementation of the algorithm is included in an appendix.

In Philip K.F. Hölzenspies: Proceedings Second Workshop on Trends in Functional Programming In Education (TFPIE 2013), Provo, Utah, USA, 13th May 2013, Electronic Proceedings in Theoretical Computer Science 136, pp. 16–26.
Published: 8th December 2013.

ArXived at: https://dx.doi.org/10.4204/EPTCS.136.2 bibtex PDF
References in reconstructed bibtex, XML and HTML format (approximated).
Comments and questions to: eptcs@eptcs.org
For website issues: webmaster@eptcs.org