The invisible hand as an emergent property
We develop a multi-sector competitive economy where firms reallocate across sectors under myopic profit-seeking behaviour and quadratic reallocation costs. The dynamic path, formalised as a gradient flow in Wasserstein space, yields two emergent properties: (i) short-run equilibria can be seen as solutions to sequential aggregate optimisation problems; and (ii) the long-run equilibrium is globally stable and efficient. Linearizing around the common long-run equilibrium, we show that convergence can be faster or slower under a planner who accounts for reallocation costs than under decentralized adjustment.