OpenAI generated formal mathematical proofs using Lean, an open-source programming language and proof assistant that checks logical correctness against strict rules.