Compositional Taylor expansion in cartesian differential categories
Aymeric Walch
TL;DR
This work develops a compositional theory of Taylor expansion inside cartesian differential categories. It defines a hierarchy of order-$n$ Taylor-expansion functors $\mathsf{T}_{n}$ built from the tangent bundle, and shows they are functors and monads via distributive laws, thereby modeling higher-order dual numbers and jet-bundle structures categorically. The framework extends to an infinitary, coherent expansion $\mathsf{T}_{\omega}$ and establishes an equivalence between Taylor axioms and analytic behavior in categories with countable sums, connecting to Ehrhard–Walch and Manzonetto’s differential lambda-calculus. Together these results unify derivative calculus with category-theoretic constructs, offering a semantic foundation for automated differentiation and higher-order differential programming, and suggest directions toward reverse derivatives and broader tangent-category generalizations.
Abstract
This paper provides a compositional approach to Taylor expansion, in the setting of cartesian differential categories. Taylor expansion is captured here by a functor that generalizes the tangent bundle functor to higher order derivatives. The fundamental properties of Taylor expansion then boils down to naturality equations that turns this functor into a monad. This monad provides a categorical approach to higher order dual numbers and the jet bundle construction used in automated differentiation.
