arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.35269cs.CL
收藏

MechAlign:数学形式化中项目级语义对齐的评估

MechAlign: Evaluating Semantic Alignment at the Project Level in Mathematical Formalization

Academy of Mathematics and Systems Science, Chinese Academy of Sciences(中国科学院数学与系统科学研究院);University of Chinese Academy of Sciences(中国科学院大学)

Hao Shen, Ruichen Qiu, Lihong Zhi, Xiao-Shan Gao

AI总结:

本研究提出 MechAlign 框架,结合 LeanTrace 依赖提取与 LLM 评估,构建 LeanReviewBench 数据集,用于数学形式化的项目级语义对齐评估,解决 Lean 无法验证命题与数学主张对应关系的问题。

摘要:

Lean 可验证形式化证明在声明假设下成立其所述命题,但无法检查该命题是否忠实表达了手稿中的数学主张。评估这种对应关系需通过项目依赖关系解释主定理,而这些依赖可能分散在大型开发中。我们提出 MechAlign,一种结合形式依赖提取与基于大语言模型(LLM)评估的项目级语义对齐审查框架。其提取工具 LeanTrace 从精化声明构建语句依赖图,保留定义体与结构约束,排除证明体并在显式库边界处停止。审查器利用此上下文调查对齐情况并报告带有局部证据的差异。我们对 173 个 OpenAI Math 项目的 201 个主要结果进行初步审查,使用提供的非形式描述与可用论文上下文。一个双曲群案例说明依赖检查如何定位相对于手稿缺失的维度约束,这与形式化范围的上游声明一致。我们还构建 LeanReviewBench,包含来自 OpenAI Math、费马大定理和 Kakeya 的 501 个固定主张-语句-上下文三元组,记录描述来源。该资源支持对更多项目级语义对齐评估的受控比较。

英文摘要:

Lean verifies that a formal proof establishes its stated proposition under declared assumptions, but does not check whether that proposition faithfully expresses the mathematical claim in a manuscript. Assessing this correspondence requires interpreting the main theorem through its project dependencies, which may be scattered throughout a large development. We introduce MechAlign, a framework for project-level semantic alignment review that combines formal dependency extraction with LLM-based assessment. Its extraction tool, LeanTrace, constructs a statement dependency graph from elaborated declarations, retaining definition bodies and structure constraints while excluding proof bodies and stopping at an explicit library boundary. The reviewer uses this context to investigate alignment and report discrepancies with localized evidence. We conduct a preliminary review of 201 main results from 173 OpenAI Math projects, using supplied informal descriptions and available paper context. A hyperbolic-group case illustrates how dependency inspection localizes a missing dimensional constraint relative to the manuscript, consistent with the upstream declaration of formalization scope. We also construct LeanReviewBench, comprising 501 fixed claim-statement-context triples from OpenAI Math, Fermat's Last Theorem, and Kakeya, with description provenance recorded. The resource supports controlled comparisons of more project-level semantic alignment evaluations.

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

↑