Definition

Let and be categories. Suppose we have functors and . The Rolling Rule states there is a canonical isomorphism between the fixed points of the compositions and . Specifically, if is the terminal coalgebra of and is the terminal coalgebra of , then the following both hold:

Likewise for initial algebras ,

Technical Context

We interpret this via the behavior of the fixpoint operator (for initial algebras) or (for terminal coalgebras). In many-sorted logic or functional programming, this justifies why swapping the order of nested data types results in equivalent structures. For a terminal coalgebra where , we can construct a terminal coalgebra for using the action of on the structure map.

Alternative Approaches

While often called the Rolling Rule in the context of fixed-point calculi (like the -calculus), it is also a consequence of the fact that and preserve certain limits or colimits, or more generally, it follows from the theory of adjoint functors. If , the relationship between their fixed points is even more rigid.

References

backhouse1997-program-construction santocanale2002-circular-proofs