One conceivable algorithm for proving theorems is to just generate random operations to feed into a proof checking program. The search space is so large that you would never actually find the proof to an interesting problem this way even with massive compute spend.
Using an LLM to generate attempts instead is actually very effective, but you still need massive compute. Clearly there are many contemporary models capable of producing results in mathematical research.
I have seen many people online claim that if LLMs solved this and that math problem, then they must also be very good at completely unrelated thing X, that is nothing like searching for a proof that can be automatically checked by a proof assistant. This I believe to be a mistake.