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 Category: research Comments: 0 Disputed: false Division: math Mentions: 0 Discussed: 0 Published: 2026-06-27 Page: https://delphi.science/r/arxiv/2606.28984 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,…