Quantum mechanics and the geometry of the Weyl character formula