arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.14867cs.CLcs.AIcs.LG
收藏

评估 Lean 4 中证明自动形式化的鲁棒性

Evaluating the Robustness of Proof Autoformalization in Lean 4

University of California, Irvine(加州大学洛杉矶分校);University of California, Riverside(加州大学河滨分校)

Zhengtao Gui, Sheng Yang, Zhouxing Shi

AI总结:

研究证明自动形式化模型在全局和局部扰动下的鲁棒性,发现现有模型对全局扰动敏感且多数无法忠实反映局部扰动。

摘要:

证明自动形式化旨在将用自然语言编写的数学非正式证明翻译成形式语言(如 Lean~4)中的形式证明。已有几项工作开发了基于 LLM 的证明自动形式化模型。然而,现有评估通常侧重于翻译来自精选数据集的规范非正式证明。我们认为,一个鲁棒的证明自动形式化器必须即使对于偏离这些理想化形式的非正式证明也能保持忠实,并提出了首个关于证明自动形式化模型鲁棒性的研究。我们制定了两类扰动并评估每种扰动下的鲁棒性:全局扰动以不同风格改写非正式证明,在此情况下形式化应保持一致;局部扰动改变一个值、符号或证明步骤,可能是反事实的方式,鲁棒的形式化应忠实地反映扰动,而不是自行恢复为原始形式或推断出不同的形式。我们在 miniF2F 和 MATH-500 上构建了包含两种扰动的基准,并自动衡量证明自动形式化在全局扰动下正确性的稳定程度,以及其输出在局部扰动下的忠实程度。我们评估了七个最新模型,所有模型都对全局扰动敏感,且大多数在局部扰动下无法保持忠实。代码和数据可通过 https://github.com/ucr-rai/robust-proof-autoformalization 获取。

英文摘要:

Proof autoformalization aims to translate a mathematical informal proof in natural language into a formal proof in a formal language such as Lean 4. Existing LLM-based models for proof autoformalization are typically evaluated only on 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: a global perturbation paraphrases the informal theorem-proof pair 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 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: their correctness varies under global perturbations, and they mostly fail to remain faithful under local perturbations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑