Formalizing Mathematics using the Lean Theorem Prover