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

超越编译:评估从自然语言到Lean的忠实语句形式化

Beyond Compilation: Evaluating Faithful Natural-Language-to-Lean Statement Formalization

University of California, Riverside(加州大学河滨分校);University of Arizona(亚利桑那大学);University of California, San Diego(加州大学圣地亚哥分校)

Ke Zhang, Patricio Gallardo Candela, Sudhir Murthy, Yi Xie, Zhi Wang, Maziar Raissi

AI总结:

提出忠实语句形式化评估方法,结合Lean编译、跨模型语义判断和人类专家校准,发现编译通过但语义不忠实的29.0%差距,并分解形式化流程中的关键干预因素。

摘要:

定理证明基准测试针对固定的形式化语句评估证明搜索,但从自然语言到Lean的形式化必须自行生成形式化语句。在此设置中,编译仅是一种有效性检查:Lean声明可能通过类型检查,但省略假设、改变域或表达空洞主张。我们研究忠实语句形式化,既作为评估问题,也作为瓶颈归因问题。在一个涵盖实分析、复分析、拓扑和代数的400条研究生级基准测试上,我们的协议结合了Lean编译、跨模型语义判断和人类专家校准。结果与编译率评估不同:一个完整的工具增强智能体达到89.5%的编译率,但仅60.5%的共识忠实度,暴露出29.0个百分点的编译通过但共识不忠实差距。针对性的人工审计支持该指标作为保守决策边界:在可用的案例级审计中,96.0%的共识正面输出被人类确认为忠实,而82.4%的编译通过但共识负面输出被人类确认为语义失败。在此指标下,现有的一次性形式化模型和面向证明的Lean模型仍然较低,表明形式有效性、面向证明的Lean能力和忠实语句生成应分别报告。然后,我们使用完整的$2^3$析因设计来分解形式化流程中三种重复出现的干预:参数化专家起草、Mathlib/上下文搜索和Lean细化反馈。细化反馈是最大的有效性干预,但也暴露了更大的编译通过语义失败桶;搜索主要改进基础化和选择性;而微调起草在此工具栈中,一旦反馈和基础化可用,在很大程度上是可替代的。

英文摘要:

Lean verifies that a generated declaration is well typed, but cannot check whether it states what the user intended. We measure how far compilation overstates faithfulness in statement autoformalization without canonical Lean targets. Our criterion requires Lean compilation and agreement of two LLM judges from different model families. On an independent random audit, it agrees with the human majority on 91.5% of cases; it rarely accepts an unfaithful output but rejects some faithful ones. Across eight systems on 227 university-level statements, the gap between compiling and accepted outputs ranges from 1.3 to 29.5 percentage points: our tool-augmented agent compiles 87.2% of the statements, but only 57.7% are accepted. Human review of all the agent's rejections confirms that 23.8 of its 29.5 points are real translation errors. For the gaps of the seven one-shot systems, a two-stage review by Claude Opus 5.5 with Lean and GPT-6.1 Sol, validated on these human labels, finds that 78-100% are real translation errors for six of them. When GPT-5.2, one of the two judges, grades the translations of two models released after it, GPT-6 Astra and Claude Opus 5.5, it accepts 83% of the statements for each, against 21% for one-shot GPT-5.2. For these two models, the same review classifies only 4 of their 54 rejections (7%) as translation errors, so most of their measured gap is judge errors rather than translation errors. This is consistent with these systems erring less while the judge does not: the fewer errors a system makes, the smaller the share of its rejections that are translation errors. Finally, a 2^3 tool ablation of the agent shows that Lean feedback drives most of its compilation gain, and that nearly half of this gain fails the semantic criterion. Code and data are available at https://github.com/grenadeComing/beyond-compilation.

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

↑