Hylomorphisms
Here I record some simple thoughts on hylomorphism correspondences.
Let \(F\) be an endofunctor on some category, let \(W : w \to F(w)\) be an \(F\)-coalgebra, and let \(M : m \to F(m)\) be an \(F\)-algebra. Then by an \(F\)-hylomorphism, we mean a commutative square of the following form:
In other words, a fixed point for the map \(x \mapsto M \circ F(x) \circ W\).
Recall that, when dealing with two functions \(f\) and \(g\) in opposite direction between two sets, the fixed points of \(f \circ g\) and of \(g \circ f\) are in bijection, as induced by \(g\) and \(f\).
Thus, when \(F\) and \(G\) are functors in opposite direction between two categories, we have a bijective correspondence between \(FG\)-hylomorphisms \(F(V) \circ W \to M \circ F(N)\) and \(GF\)-hylomorphisms \(G(W) \circ V \to N \circ G(M)\), as illustrated below:
This is by considering the two operations \(x \mapsto N \circ G(x) \circ V\) and \(y \mapsto M \circ F(y) \circ W\), and the fixed points of their compositions in either order.
For example, if we take \(V\) and \(N\) to be identities, then this tells us that the \(FG\)-hylomorphisms from \(W\) to \(M\) are in bijection (via applying \(G\)) with the \(GF\)-hylomorphisms from \(G(W)\) to \(G(M)\).
Or if we take \(W\) and \(N\) to be identities, then this tells us that the \(FG\)-hylomorphisms from \(F(V)\) to \(M\) are in bijection with the \(GF\)-hylomorphisms from \(V\) to \(G(M)\). [This special adjunction-like case is discussed in “Conjugate Hylomorphisms” by Hinze et al, under the name “rolling rule”, and attributed to Eppendahl. Indeed, it is lemma 3.1 in Eppendahl’s “Coalgebra-to-Algebra Morphisms”. Neither author discusses our more general observation or even our first special case. There is some interesting discussion by Eppendahl at the end of his paper on Freyd’s iterated square and Lambek’s lemma, as concerns initial algebras for squared endofunctors.]