Brandon Shapiro and David Spivak (“Dynamic Categories, Dynamic Operads”) build categorical structures whose hom-objects are themselves machines, so that a dynamic category is a category in which morphisms carry interactive, stateful behaviour.
The category
From this Spivak and Shapiro extract
Their slogan is that a dynamic thing is a thing enriched in
Definition (dynamic category)
A dynamic category is a category enriched in
. Its objects are interfaces, and each hom is a category of coalgebras of behaviours, with composition given by a coherent way of running two machines in series. Applying the same recipe to operads yields dynamic operads.
Remark on why
closedness matters The internal hom
is what lets a morphism carry state. A -coalgebra is a dynamical system on the interface , so enrichment in these coalgebra categories is the formal content of “the arrows themselves evolve”.