The realization of infinitely many universes in cosmology