General theory of the static dielectric constant