The supernova trigger for formation of the solar system