We have no idea the timeframe under which humans will no longer be helpful or relevant to solving math.
Humans went from being better than computers at chess to being helped by computers to being helpful to computers to being a hindrance in somewhere from 10-20 years.
We’ve already gone from phase 1 to phase 3 in mathematics in a handful of years.
[dead]
Chess is a very narrowly-bounded problem, and mathematics is vast. But you're right: We really have no idea.
Thing is, even if AI starts solving the hardest problems and determines for itself what the right problems to solve are... math, like chess, is still a human activity.
Humans watch other humans play chess, and using stockfish in competition is the lowest form of cheating. Chess is more popular than ever, because it's more a human sport than a problem to be solved.
In an analogous way, I'd suggest that math is, traditionally, a form of pedagogical activity. The future will always need people who interpret and explain the work of LLMs in human terms, as a form of mental training, and as a means of furthering human understanding -- just as the study of philosophy is a form of mental training.
Industrial math (generating useful results for engineering or cryptography) is absolutely certain to become AI-dominated in the very near future, but math as a discipline for building human mental models and advancing our understanding of the world isn't going away any time soon.