The halo mass function from the dark ages through the present day | Synapse