I think you're misunderstanding what the objective of mathematics is. It is not just about what theorems are true and false, but rather why they are true and false. A highschool sophomore could use these prompts, but I severely doubt whether they'd be able to understand the entire structure. And I think it is exactly this ability to deeply understand structures is what makes a mathematician valuable.
Solving problems is a by-product of the understanding. New techniques are a by-product of the understanding.
But I can understand you're scared that some future version of AI will undermine this as well. I personally pivoted to a field adjacent to mathematics. But that doesn't mean my mathematics education wasn't valuable. To the contrary, I find that it helps me think much more sharply about problems than most of my colleagues.