Math will perhaps become a bit like biology:
Evolution builds enormously complex machines that obviously 'work' in some sense, and it is upon us to understand them.
> AI still isn't especially good at it yet either (although that may change!).
True for both. However, AI is pretty decent at refactoring a large codebase, if they have a human to guide it. Especially in this case, you have a good oracle to check whether your refactoring attempt introduced any bugs: just see if it still compiles.