Derpy must have traveled to the past and then boxed herself up so that she herself could deliver herself to Luna.... Dr. Whooves must not be far away then...