Syntactic composition of top-down tree transducers is short cut fusion

CLAUS JRGENSEN, HEIKO VOGLER
2004 Mathematical Structures in Computer Science  
We compare two deforestation techniques: short cut fusion formalized in category theory and the syntactic composition of tree transducers. The former strongly depends on types and uses the parametricity property or free theorem whereas the latter makes no use of types at all and allows more general compositions. We introduce the notion of a categorical transducer which is a generalization of a catamorphism and show a respective fusion result which is a generalization of the 'acid rain theorem'.
more » ... We prove the following main theorems: (i) The class of all categorical transducers builds a category where composition is fusion. (ii) The semantics of categorical transducers is a functor. (iii) The subclass of top-down categorical transducers is a subcategory. (iv)
doi:10.1017/s0960129503004109 fatcat:dhi7qbfivrg7nnmxy7t76m6eca