...we might need to work on wealth distribution, though.
The Great Aging is underway, the EU last year had more deaths than births and will for the foreseable future, Japan has been there for a little while and China's working age population is already in decline. Africa, the Middle East/India and parts of South America are the only places experiencing actual population growth, when immigration is not taken into the equation. With Demographics and Automation deflation is the likely outcome. The Central Banks are trying all they can to prevent this from happening in the near term by spending Trillions of dollars to prop up economies and drive interest rates lower to eek out some inflation. They seem not to care whether growth is actual demand growth or simply a mirage in terms of inflation. The central banks are doubling down their efforts and will be even more accomodative in the next few years when the growth they continue to state is right around the corner never materializes.
Unfortunately I do not see a way out of this without the developing nations taking care of themselves.
https://www.cia.gov/library/publications/the-world-factbook/...
As it stands now the EU has more deaths than births every year for the foreseeable future. When birthrates have been below replacement level for over 30 years it would take a massive baby boom to right the pyramid, but what good would that do? We don't need the population we used to and those babies wouldn't be productive for at least 20 years and as it stands now many of them would be as much of a drain on the state as the retired
And the population structure will probably become something like a rectangle then, almost everybody becomes 80 or 90 or whatever and dies within a relative narrow window. Setting aside radical changes like getting hit by an asteroid or discovering the key to eternal life.
I really only wanted to point out that it is not absolutely certain that increasing wealth surely leads to a decreasing population. If all work is done by robots and nobody is at risk of a shortage of good and services, what would people compel not to spend some of their years raising three children?