Theory of the electronic structure