Abstract
Combining density functional theory with the form of the virial theorem established by Nelander for polyatomic molecules, the basic foundation of Walsh’s rules for molecular shape is clarified.