The Mathematics of CODES: Prime-Driven Resonance, Nonlinear Phase-Locking, and the Topology of Emergent Systems | Synapse