构建首个完整形式化证明数据集,助力AI攻克国际数学奥赛难题
A Lean Dataset for International Math Olympiad: Small Steps towards Writing Math Proofs for Hard Problems
- 将IMO难题分解为1329个可验证的中间引理,构建可扩展的证明骨架
- 产出5880行Lean代码,覆盖全部20道miniF2F题及额外5道近年真题
- 提供可诊断AI失败模式的基准,适合研究形式化推理与大模型数学能力
利用AI撰写数学问题的形式化证明是一项挑战性任务。尽管像Lean这样的自动化系统能验证形式语言证明的正确性,但人类和机器编写形式化证明仍很困难。miniF2F基准测试包含20道国际数学奥林匹克(IMO)题,但仅有6道题有正式证明(其中3道仅由数学家撰写)。目前表现最好的模型仅能证明其中2道来自1950、1960年代的题目,且其训练集保密。本文为剩余的IMO题目以及2022和2023年额外5道题,手写完整原创的Lean形式化证明,共生成5880行代码。目标是为开发能自动写出miniF2F全部题目形式化证明的AI模型铺路。为此,我们提出一种将证明分解为基本构建块的方法,构建了包含1329个引理、超过4万行Lean代码的数据集。这些引理虽非平凡,但具备可解性,可用于评估和诊断AI模型的表现。我们评估了当前最优大模型在该数据集上的表现,并从多个角度分析其成功与失败模式。数据集与代码已公开:https://github.com/roozbeh-yz/IMO-Steps。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。