Skip to content
0:00 / 0:00

#recursionschemes#categorytheory#haskell

Unifying Structured Recursion Schemes

Nicolas Wu

44 subscribers • 1 video on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Nicolas Wu

Advanced. Deep dive for people who know the field.

4.2K views12 years ago2 recommendations

Programming languagesComputer scienceFunctional programmingComputation and complexity

Nicolas Wu presents a unification of structured recursion schemes, showing that adjoint folds subsume recursion schemes from comonads.

Unifying Structured Recursion Schemes by Ralf Hinze, Nicolas Wu, and Jeremy Gibbons Presented by Nicolas Wu at ICFP 2013 Author's revised version of the paper: cs.ox.ac.uk/people/nicolas.wu/papers/URS.pdf Abstract: Folds over inductive datatypes are well understood and widely used. In their plain form, they are quite restricted; but many disparate generalisations have been proposed that enjoy similar calculational benefits. There have also been attempts to unify the various generalisations: two prominent such unifications are the "recursion schemes from comonads" of Uustalu, Vene and Pardo, and our own "adjoint folds". Until now, these two unified schemes have appeared incompatible. We show that this appearance is illusory: in fact, adjoint folds subsume recursion schemes from comonads. The proof of this claim involves standard constructions in category theory that are nevertheless not well known in functional programming: Eilenberg-Moore categories and bialgebras. The link between the two schemes is provided by the fusion rule of categorical fixed-point calculus.

Why it's here

2 people recommend this

u/zenzikein r/haskell • Recommends

Unifying Structured Recursion Schemes

u/agumonkeyin r/haskell • Recommends

Unifying Structured Recursion Schemes - Hinze, Wu, Gibbons -- generalization of morphisms