It's not a given that mathematics will survive without mathematicians. It's not even likely. The proofs OpenAI threw over the wall are unpublishable garbage, top to bottom. A big reason mathematicians are so upset is that they feel like they've been drafted into the role of unpaid editor for OpenAI.
Make no mistake about it, the mathematical profession is under attack. The biggest incentive for becoming a mathematician (as opposed to a hired gun quant) is the challenge of solving the proofs. Take that away and the most talented problem solvers go with it.
In time, the profession of mathematics will evolve so a new task is at the center of the diagram--maybe it will be explaining math results to humans or teaching math to future mathematicians.
That is the centre of mathematics. It's what schools pay mathematicians to do. All the research stuff, the problem solving, the "thrill of the hunt" for elusive proofs, and the prestige of being the first? That's the carrot the schools dangle in front of mathematicians' noses to get them to work. Without that, you don't get exceptional mathematicians teaching classes and supervising grad students (and attracting the world's top students to your school); you get adjuncts and only adjuncts.