{"id":"arxiv/2606.28984","url":"https://arxiv.org/abs/2606.28984","tags":["math.CT","cs.AI"],"score":0,"title":"Compositional Dynamics in Learning and Mechanics","domain":"math.CT","source":"arxiv","authors":["David I. Spivak"],"reviews":0,"subject":"math.CT","summary":"We give a single compositional setting in which gradient-based learning and Hamiltonian-style mechanics appear as functorial semantics. The syntax is an operad Arr whose objects are input-output interfaces (pairs of manifolds) and whose morphisms are *smooth adaptive arrangements*, which consist of a responsive parameter space, a lens given by smooth output and input maps, and a real-valued potential. The main technical result of the paper is what we call *lens internalization*, a lax symmetric monoidal functor Lens(C) $\\to$ C associated to any symmetric monoidal closed category C. Using it,…","category":"research","comments":0,"disputed":false,"division":"math","mentions":0,"discussed":0,"published":"2026-06-27","reactions":{}}