It's written in a language (Lean) such that if the program compiles, it's "correct". So the only thing that needs to be human-checked is the statement of the problem at the beginning of the program.
There are some caveats to that, around bugs in the compiler implementation, but these proofs have been compiled across different implementations, including those that themselves have been verified.
Deep Thought burned tokens for 7 million years before it produced "42", but the proof was too complex to understand.