The problem statement (the Riemann Hypothesis) has been stated formally as a type. This was already done by humans in mathlib and has been checked over.
The goal of the AI is then to write a term (a program) of this type. If the AI can write such a piece of code and it typechecks against the problem statement type then problem statement has been proven.
It doesn't matter if any of the subroutines correspond to existing mathematical knowledge, so long as the AI doesn't cheat the type system. There are many tools to assert that the AI didn't cheat the type system and so far everything has checked out.
Due to the nature of domain it is more or less guaranteed that any subroutine necessary to build a /valid/ proof statement for the Riemann Hypothesis will end up being encodings of existing mathematical structures or novel new ones.
> Due to the nature of domain it is more or less guaranteed that any subroutine necessary to build a /valid/ proof statement for the Riemann Hypothesis will end up being encodings of existing mathematical structures or novel new ones.
But that's where I don't agree. I would say that the four-color theorem has a longstanding example of a valid proof that nevertheless fails to do this; despite our best efforts, one of the critical steps remains "the computer told me none of these 633 configurations work for some reason".