This is what Lean is for: https://lean-lang.org/
If you have the LLM generate Lean code, and it compiles, then the proof is correct and you don't need to bother checking its working. (You still need to check that it is proving the theorem you asked it to prove).
I’m playing devil’s advocate here, so go easy on me. But how completely do we know lean is perfectly true in all cases?