With benevolent humanist self-improving AIs, the question is basically moot. Someone invented that AI, it did the rest. Let's say it started a company, rolled out fusion power, interactive personalized education and healthcare at very minimal cost, used the proceeds to expand into space and to subvert whatever was in its way.