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

面向国际数学奥林匹克的一个 Lean 数据集:迈向为困难问题编写数学证明的一小步

A Lean Dataset for International Math Olympiad: Small Steps towards Writing Math Proofs for Hard Problems

Huawei Hong Kong Research Center(华为香港研究中心);The Chinese University of Hong Kong(香港中文大学)

Roozbeh Yousefzadeh, Xuenan Cao, Azim Ospanov

AI总结:

本研究使用 Lean 为 miniF2F 中剩余的 IMO 问题编写了原创形式化证明,并将其分解为 1,329 个引理构建评估数据集,以推动 AI 自动编写数学形式化证明,并评估了 SOTA LLMs 的表现。

摘要:

使用 AI 为数学问题编写形式化证明是一项极具挑战性的任务,近年来取得了一些进展。诸如 Lean 之类的自动化系统能够验证以形式化语言编写的证明的正确性,然而用形式化语言编写证明对人类和机器来说都颇具挑战。miniF2F 基准的测试集中包含 20 道 IMO 问题,但仅有其中 6 道题存在形式化证明(其中 3 道仅由数学家编写)。准确率最高的模型仅能证明这 20 道 IMO 问题中的 2 道(出自 1950 年代和 60 年代),且其训练集是保密的。在本研究中,我们使用 Lean 为 miniF2F 中剩余的 IMO 问题编写了完整、原创的形式化证明,并额外加入了来自 2022 年和 2023 年 IMO 的 3 道题目。这项工作通过创建 5,880 行 Lean 证明代码,扩大了目前公共领域中可用证明的规模。本文的目标是通过提供一个评估基准,为开发能够自动为 miniF2F 及其他所有 IMO 问题编写形式化证明的 AI 模型铺平道路。在此过程中,我们设计了一种方法,将这些问题的证明分解为其基本构建块,构建了一个包含 1,329 个引理、超过 4 万行 Lean 代码的数据集。这些引理并非微不足道,但易于入手,为评估和诊断 AI 模型的失败与成功提供了机会。我们在我们的数据集上评估了 SOTA LLMs 的能力,并从不同视角分析了它们的成功与失败模式。我们的数据集和代码可在以下地址获取:https://github.com/roozbeh-yz/IMO-Steps。

英文摘要:

Using AI to write formal proofs for mathematical problems is a challenging task that has seen some advancements in recent years. Automated systems such as Lean can verify the correctness of proofs written in formal language, yet writing the proofs in formal language can be challenging for humans and machines. The miniF2F benchmark has 20 IMO problems in its test set, yet formal proofs are available only for 6 of these problems (3 of which are only written by mathematicians). The model with best accuracy can only prove 2 of these 20 IMO problems, from 1950s and 60s, while its training set is a secret. In this work, we write complete, original formal proofs for the remaining IMO problems in Lean along with 3 extra problems from IMO 2022 and 2023. This effort expands the availability of proof currently in the public domain by creating 5,880 lines of Lean proof. The goal of the paper is to pave the way for developing AI models that can automatically write the formal proofs for all the IMO problems in miniF2F and beyond by providing an evaluation benchmark. In this pursuit, we devise a method to decompose the proofs of these problems into their building blocks, constructing a dataset of 1,329 lemmas with more than 40k lines of Lean code. These lemmas are not trivial, yet they are approachable, providing the opportunity to evaluate and diagnose the failures and successes of AI models. We evaluate the ability of the SOTA LLMs on our dataset and analyze their success and failure modes from different perspectives. Our dataset and code is available at: https://github.com/roozbeh-yz/IMO-Steps.

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

↑