As a gauge field A(θ) winds once around the gauge group (θ: 0→2π), the Dirac operator spectrum flows: each eigenvalue descends by one unit, but the net spectral asymmetry η changes by the index — the Atiyah-Patodi-Singer theorem. The Chern-Simons invariant must be integer-quantized for gauge invariance, tying topology to spectral properties.