Sciweavers

FOSSACS
2003
Springer

Generalized Iteration and Coiteration for Higher-Order Nested Datatypes

13 years 9 months ago
Generalized Iteration and Coiteration for Higher-Order Nested Datatypes
Abstract. We solve the problem of extending Bird and Paterson’s generalized folds for nested datatypes and its dual to inductive and coinductive constructors of arbitrarily high ranks by appropriately generalizing Mendler-style (co)iteration. Characteristically to Mendler-style schemes of disciplined (co)recursion, the schemes we propose do not rest on notions like positivity or monotonicity of a constructor and facilitate programming in a natural and elegant style close to programming with the customary letrec construct, where the typings of the schemes, however, guarantee termination. For rank 2, a smoothened version of Bird and Paterson’s generalized folds and its dual are achieved; for rank 1, the schemes instantiate to Mendler’s original (re)formulation of iteration and coiteration. Several examples demonstrate the power of the approach. Strong normalization of our proposed extension of system Fω of higherorder parametric polymorphism is proven by a reduction-preserving emb...
Andreas Abel, Ralph Matthes, Tarmo Uustalu
Added 06 Jul 2010
Updated 06 Jul 2010
Type Conference
Year 2003
Where FOSSACS
Authors Andreas Abel, Ralph Matthes, Tarmo Uustalu
Comments (0)