Herald: A Natural Language Annotated Lean 4 Dataset
Guoxiong Gao, Yutong Wang, Jiedong Jiang, Qi Gao, Zihan Qin, Tianyi Xu, Bin Dong
摘要
Verifiable formal languages like Lean have profoundly impacted mathematical reasoning, particularly through the use of large language models (LLMs) for automated reasoning. A significant challenge in training LLMs for these formal languages is the lack of parallel datasets that align natural language with formal language proofs. To address this challenge, this paper introduces a novel framework for translating the Mathlib4 corpus (a unified library of mathematics in formal language Lean 4) into natural language. Building upon this, we employ a dual augmentation strategy that combines tactic-based and informal-based approaches, leveraging the Lean-jixia system, a Lean 4 analyzer. We present the results of this pipeline on Mathlib4 as Herald (Hierarchy and Retrieval-based Translated Lean Dataset). We also propose the Herald Translator, which is fine-tuned on Herald. Herald translator achieves a 93.2% accuracy (Pass@128) on formalizing statements in the miniF2F-test and a 22.5% accuracy on our internal graduatelevel textbook dataset, outperforming InternLM2-Math-Plus-7B (74.0% and 7.5%) and TheoremLlama (50.1% and 4.0%). Furthermore, we propose a section-level translation framework for real-world applications. As a direct application of Herald translator, we have successfully translated a template section in the Stack project, marking a notable progress in the automatic formalization of graduate-level mathematical literature. Our model, along with the datasets, are open-sourced to the public. 1
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 14 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Don't Trust: Verify - Grounding LLM Quantitative Reasoning with Autoformalization 引用了 Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
- Don't Trust: Verify - Grounding LLM Quantitative Reasoning with Autoformalization 引用了 Autoformalization with Large Language Models
- Don't Trust: Verify - Grounding LLM Quantitative Reasoning with Autoformalization 引用了 miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- miniF2F-Lean Revisited: Reviewing Limitations and Charting a Path Forward 引用了 ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Data
- miniF2F-Lean Revisited: Reviewing Limitations and Charting a Path Forward 引用了 Autoformalization with Large Language Models
- miniF2F-Lean Revisited: Reviewing Limitations and Charting a Path Forward 引用了 miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs 引用了 Autoformalization with Large Language Models
- Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs 引用了 miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Models 引用了 Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
- Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Models 引用了 LEGO-Prover: Neural Theorem Proving with Growing Libraries
- Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Models 引用了 Autoformalization with Large Language Models
- Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Models 引用了 miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- Reliable Fine-Grained Evaluation of Natural Language Math Proofs 引用了 miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Data 引用了 Don't Trust: Verify - Grounding LLM Quantitative Reasoning with Autoformalization
- ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Data 引用了 Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
- ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Data 引用了 LEGO-Prover: Neural Theorem Proving with Growing Libraries
- ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Data 引用了 Autoformalization with Large Language Models
- ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Data 引用了 miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- ProofBridge: Auto-Formalization of Natural Language Proofs in Lean via Joint Embeddings 引用了 Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
- ProofBridge: Auto-Formalization of Natural Language Proofs in Lean via Joint Embeddings 引用了 miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- LEGO-Prover: Neural Theorem Proving with Growing Libraries 引用了 Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
- LEGO-Prover: Neural Theorem Proving with Growing Libraries 引用了 Autoformalization with Large Language Models
- LEGO-Prover: Neural Theorem Proving with Growing Libraries 引用了 miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- Autoformalization with Large Language Models 引用了 miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
引用它的顶会 Paper14
- ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of DataXiaoyang Liu, Kangjie Bao, Jiashuo Zhang, Yunqi Liu 等NeurIPS 2025 · 28 次引用
- Reviving DSP for Advanced Theorem Proving in the Era of Reasoning ModelsChenrui Cao, Liangcheng Song, Zenan Li, Xinyi Le 等NeurIPS 2025 · 23 次引用
- ProofBridge: Auto-Formalization of Natural Language Proofs in Lean via Joint EmbeddingsPrithwish Jana, Kaan Kale, Ahmet Ege Tanriverdi, Cruise Song 等ICLR 2026 · 19 次引用
- miniF2F-Lean Revisited: Reviewing Limitations and Charting a Path ForwardAzim Ospanov, Farzan Farnia, Roozbeh MohitNeurIPS 2025 · 14 次引用
- Reliable Fine-Grained Evaluation of Natural Language Math ProofsWenjie Ma, Andrei Cojocaru, Neel Kolhe, Haihan Zhang 等ICLR 2026 · 14 次引用
它引用的 Paper9
- Autoformalization with Large Language ModelsYuhuai Wu, Albert Qiaochu Jiang, Wenda Li, Markus N. Rabe 等NeurIPS 2022 · 364 次引用
- miniF2F: a cross-system benchmark for formal Olympiad-level mathematicsKunhao Zheng, Jesse Michael Han, Stanislas PoluICLR 2022 · 342 次引用
- LEGO-Prover: Neural Theorem Proving with Growing LibrariesHaiming Wang, Huajian Xin, Chuanyang Zheng, Zhengying Liu 等ICLR 2024 · 125 次引用
- Don't Trust: Verify - Grounding LLM Quantitative Reasoning with AutoformalizationJin Peng Zhou, Charles Staats, Wenda Li, Christian Szegedy 等ICLR 2024 · 72 次引用
- Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal ProofsAlbert Qiaochu Jiang, Sean Welleck, Jin Peng Zhou, Timothée Lacroix 等ICLR 2023 · 25 次引用
相关 Paper
- TheoremLlama: Transforming General-Purpose LLMs into Lean4 ExpertsRuida Wang, Jipeng Zhang, Yizhen Jia, Rui Pan 等EMNLP 2024 · 9 次引用
- LoC-Decomp: LLM Autoformalization via Logical Concept Decomposition and Iterative Feedback CorrectionJiangze Shi, Zhiwei Zhang, Baoquan Ma, Shuai Zhao 等ICLR 2026
- DRIFT: Decompose, Retrieve, Illustrate, then Formalize TheoremsMeiru Zhang, Philipp Borchert, Milan Gritta, Gerasimos LampourasICLR 2026 · 8 次引用
- Automated Formalization via Conceptual Retrieval-Augmented LLMsWangyue Lu, Lun Du, Sirui Li, Ke Weng 等ICLR 2026 · 8 次引用
- CriticLean: Critic-Guided Reinforcement Learning for Mathematical FormalizationZhongyuan Peng, Yifan Yao, Kaijing Ma, Shuyue Guo 等ACL 2026 · 15 次引用
