Could math predict humanity’s end? The Carter catastrophe suggests we might be living closer to the finale than we realize.