Much the same way that VC money has been funnelled to Google and Meta through advertising budgets.
If it doesn’t pay for non-permanent staff salary that would be sad for the maths ppl indeed.
OTOH I have a phd in th physics, 15+ y of academic senior researcher experience, now working 60+ h /w on an unpaid internship and using lunch money to pay for tokens.
And I’m by far not most unlucky
Edit: just to put things in perspective, my phd field (string theory) has 15-30M€ annual funding in Europe (per google)
Mathematicians are in the same boat as Silicon Valley programmers in the end: AI is doing their job better than them and cheaper. Other professions will join shortly.
The question then becomes, what do humans do? Resigning to die quietly is hardly the most favorable option?
Just because somebody else can do something better than you ever could doesn't make doing it superfluous. There is more to mathematics and software engineering than finding proofs and algorithms.
Cheaper than them? That's dramatically unproven and unlikely just on power efficiency alone, even if we accept the suspect assumption the only efficiency anyone should care about is currency marked per line of code or theorem proved.
We're not just going to have to become better existential philosophers, we're going to have to become better examiners of assumptions and claims.