The Quantum Theory of Valence