By the time any of that happens, which will be in billions of years, humans will have already spread to other planets... I mean look how far we have come since industrialization.... atomic bombs, skyskrapers, and going to the moon.... we have millions or billions untill the earth will die... plenty of time.