Recent data on the empirical metallicity distribution of G dwarfs in the disk solar neighbourhood are fitted in two different ways. We use an extended Poisson distribution in the limit where the probability of star formation is small, and a Gauss distribution in the limit where a large number of physical variables is required to determine stellar metal abundance. Both are found to reproduce the data at the same (acceptable) extent, with a slight preference for the former. The empirical, differential metallicity distribution of G dwarfs in the disk solar neighbourhood is compared with its theoretical counterpart, in the picture of a closed, comoving model of chemical evolution. The limits of the currently used infall models are discussed and a scenario of galactic formation and evolution is presented. The Galactic history is thought as made of two main phases: contraction (which produces the extended component) and equilibrium (which gives the disk). In this view, the stars observed within the solar cylinder did not necessarily arise from the primordial gas which later collapsed into the disk solar neighbourhood. It is found that the G-dwarf problem is strongly alleviated, with the possible exception of the low-metallicity and high-metallicity tail of the distribution. The best choice of parameters implies: (i) a metal yield in the contraction phase which is larger by a factor of about 5 with respect to the equilibrium phase; (ii) a model halo mass fraction of about 0.3; (iii) a model disk mass fraction of about 0.6. I t provides additional support to the idea of a generalized Schmidt star formation law, which is different in different phases of evolution. The model, cumulative, G-dwarf metallicity distribution in the disk solar neighbourhood is found to predict too many low-metallicity stars with respect to its empirical counterpart, related to a Poissonian or Gaussian fit. The main reasons for the occurrence of a G-dwarf problem are discussed. Finally, a stochastic process of star formation, related to a Poisson distribution, is briefly outlined.