Evaluating the Robustness of Proof Autoformalization in Lean 4

📅 2026-06-12
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Current large language models exhibit limited robustness in automatic formalization tasks when confronted with non-idealized, perturbed informal proofs, struggling to simultaneously maintain consistency and faithfulness. This work introduces the first robustness evaluation framework tailored to this task, proposing two types of perturbations—global style rewrites and local factual corruptions—and constructing a corresponding benchmark dataset. By integrating natural language perturbation generation, formal consistency verification, and automated faithfulness assessment, the study systematically evaluates seven state-of-the-art models. Results reveal that existing approaches are generally sensitive to global perturbations and fail to accurately capture localized modifications, exposing significant deficiencies in their robustness for proof formalization.
📝 Abstract
Proof autoformalization aims to translate a mathematical informal proof written in natural language into a formal proof in a formal language such as Lean~4. Several works have developed LLM-based models for proof autoformalization. However, existing evaluations have typically focused on translating well-formed informal proofs from curated datasets. We argue that a robust proof autoformalizer must remain faithful even for informal proofs that diverge from these idealized ones, and we present the first study on the robustness of proof autoformalization models. We formulate two categories of perturbations and evaluate robustness under each: a global perturbation paraphrases the informal proof in a different style, under which the formalization should remain consistent; a local perturbation alters a value, symbol, or proof step, possibly in a counterfactual way, and a robust formalization should faithfully reflect the perturbation rather than reverting to the original one or inferring a different one on its own. We build a benchmark with both perturbations on miniF2F and MATH-500, and automatically measure how stable a proof autoformalization's correctness is under global perturbations and how faithfully its output reflects local perturbations. We evaluate seven recent models, all of which are sensitive to global perturbations and mostly fail to remain faithful under local perturbations. Code and data are available via https://github.com/ucr-rai/robust-proof-autoformalization.
Problem

Research questions and friction points this paper is trying to address.

proof autoformalization
robustness
natural language proofs
formal verification
perturbations
Innovation

Methods, ideas, or system contributions that make the work stand out.

proof autoformalization
robustness evaluation
perturbation analysis
Lean 4
large language models
🔎 Similar Papers