You give your AI the problem, like 'make this computer program faster and more reliable', and it'll go off and do the math necessary to make it so.
For all we know, P vs NP will never be resolved neither by human nor AI, and the world will just keep turning.
I am saying that applications supplied and supply an inexhaustible amount of good problems and questions to consider. Purely theoretical concerns also supply some questions, but even if that well dries up for some reason, applications persist.
As the US has offshored manufacturing, the number of patents issued for those processes has fallen. Innovation occurs where the foundational understanding is applied; they arise from a desire to do the required work more efficiently.
Similarly in math, attempting to solve a problem leads to new questions. IF you actually do the work.
You need to have done enough of the work to know what the correct next question are, or you need to rely on AI for everything.