The dual of substitution is redecoration

  • Authors:
  • Tarmo Uustalu;Varmo Vene

  • Affiliations:
  • Dep. de Informática, Univ. do Minho, Campus de Gualtar, P-4710-057 Braga, Portugal;Abt. Informatik, Univ. Trier, D-54286 Trier, Germany

  • Venue:
  • Trends in functional programming
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

It is well known that type constructors of incomplete trees (trees with variables) carry the structure of a monad with substitution as the extension operation. Less known are the facts that the same is true of type constructors of incomplete cotrees (=non-wellfounded trees) and that the corresponding monads exhibit a special structure. We wish to draw attention to the dual facts which are as meaningful for functional programming: type constructors of decorated cotrees carry the structure of a comonad with redecoration as the coextension operation, and so do---even more interestingly--type constructors of decorated trees.