In neutron stars, neutron heavy nuclei are found as relativistic electrons penetrate the nuclei and produce inverse beta decay, wherein the electron combines with a proton in the nucleus to make a neutron and an electron-neutrino:
As more and more neutrons are created in nuclei the energy levels for neutrons get filled up to an energy level equal to the rest mass of a neutron. At this point any electron penetrating a nucleus will create a neutron, which will "drip" out of the nucleus. At this point we have:
And from this point onwards the equation
applies, where p is the Fermi momentum of the neutron. As we go deeper into the neutron star the free neutron density increases, and as the Fermi momentum increases with increasing density, the Fermi energy increases, so that energy levels lower than the top level reach neutron drip and more and more neutrons drip out of nuclei so that we get nuclei in a neutron fluid. Eventually all the neutrons drip out of nuclei and we have reached the neutron fluid interior of the neutron star.