Search papers, labs, and topics across Lattice.
MechGeo is a novel framework that integrates autoformalization and certified proof construction for Euclidean geometry using Lean 4. It employs GeoFormalizer to convert informal geometry problems into formal statements and GeoProver to generate proof plans and verify results, achieving significant improvements in autoformalization across various LLMs. The framework successfully proves 12 out of 14 geometry statements from LEAP's Lean-IMO-Bench, marking a substantial advancement in automated formal verification of geometric proofs.
Achieving a 12 out of 14 success rate in proving geometry statements for the first time highlights a breakthrough in automated formal verification.
We present MechGeo, a Mathlib native agentic framework that jointly addresses faithful autoformalization and certified proof construction for Euclidean geometry. In this framework, GeoFormalizer represents informal problems in GeoIR, deterministically translates them into Lean 4, and iteratively repairs candidate statements using structural diagnostics and semantic evaluation. GeoProver constructs geometric proof plans, derives intermediate lemmas, and selectively algebraizes suitable subgoals through a library verified in Lean. Singular or SymPy may generate algebraic certificates, but all resulting proofs and counterexamples are checked by Lean's kernel. Experiments across seven LLM backbones show substantial improvements in autoformalization, particularly for models with weaker direct translation performance. On 43 historical IMO geometry problems, GeoFormalizer generates formal statements that GeoProver proves in 29 cases; for the remaining 14, it constructs counterexamples verified in Lean and proves all repaired statements after expert correction. Together with IMO 2026 Problem 2, this yields, to the best of our knowledge, the largest reported collection of automated, kernel-checked Lean proofs for IMO geometry problems. On the 14 geometry statements in LEAP's Lean-IMO-Bench, MechGeo proves 12 for the first time, formally refutes the remaining two, and proves both repaired statements. These results establish counterexample guided diagnosis, geometric reasoning, and certified symbolic computation as a practical foundation for trustworthy formal geometry.