I've seen that the first ionization energy of a particular metal is always greater than its work function. This implies that the valence electrons in an isolated atom are more strongly bound than the de-localized conduction electrons in the solid metal.
For example, the first ionization energy of sodium is $5.14\mathrm {eV}$/atom.
(source: here)
while its work function is just $2.28 \mathrm {eV}$.
(source: here)
I'm thinking that in a metal lattice, the de-localized electrons are attracted by many positive kernels at the same time. Also, they suffer repulsive forces from the electrons around. So the concerned electron is shielded from the attractive force from the positive centers by the other nearby de-localized electrons and the the case isn't much different from that of an isolated atom. But that doesn't seem to be the case because the work function is (very roughly), just half the value of the ionization energy.
In metallic solids, after the formation of bands, are the de-localized electrons (which now exist in bands) attracted less strongly by the positive cores which gives rise to such a difference?
Is it the case always? If so, why?
Thank you very much for your valuable suggestions.