Herald: A Natural Language Annotated Lean 4 Dataset
Guoxiong Gao, Yutong Wang, Jiedong Jiang, Qi Gao, Zihan Qin, Tianyi Xu, Bin Dong
Abstract
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
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
14 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Don't Trust: Verify - Grounding LLM Quantitative Reasoning with Autoformalization cites Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
- Don't Trust: Verify - Grounding LLM Quantitative Reasoning with Autoformalization cites Autoformalization with Large Language Models
- Don't Trust: Verify - Grounding LLM Quantitative Reasoning with Autoformalization cites miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- miniF2F-Lean Revisited: Reviewing Limitations and Charting a Path Forward cites ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Data
- miniF2F-Lean Revisited: Reviewing Limitations and Charting a Path Forward cites Autoformalization with Large Language Models
- miniF2F-Lean Revisited: Reviewing Limitations and Charting a Path Forward cites miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs cites Autoformalization with Large Language Models
- Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs cites miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Models cites Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
- Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Models cites LEGO-Prover: Neural Theorem Proving with Growing Libraries
- Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Models cites Autoformalization with Large Language Models
- Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Models cites miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- Reliable Fine-Grained Evaluation of Natural Language Math Proofs cites miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Data cites Don't Trust: Verify - Grounding LLM Quantitative Reasoning with Autoformalization
- ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Data cites Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
- ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Data cites LEGO-Prover: Neural Theorem Proving with Growing Libraries
- ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Data cites Autoformalization with Large Language Models
- ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Data cites miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- ProofBridge: Auto-Formalization of Natural Language Proofs in Lean via Joint Embeddings cites Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
- ProofBridge: Auto-Formalization of Natural Language Proofs in Lean via Joint Embeddings cites miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
- LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Autoformalization with Large Language Models
- LEGO-Prover: Neural Theorem Proving with Growing Libraries cites miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- Autoformalization with Large Language Models cites miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
Cited by top-tier papers14
- ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of DataXiaoyang Liu, Kangjie Bao, Jiashuo Zhang, Yunqi Liu et al.NeurIPS 2025 · 28 citations
- Reviving DSP for Advanced Theorem Proving in the Era of Reasoning ModelsChenrui Cao, Liangcheng Song, Zenan Li, Xinyi Le et al.NeurIPS 2025 · 23 citations
- ProofBridge: Auto-Formalization of Natural Language Proofs in Lean via Joint EmbeddingsPrithwish Jana, Kaan Kale, Ahmet Ege Tanriverdi, Cruise Song et al.ICLR 2026 · 19 citations
- miniF2F-Lean Revisited: Reviewing Limitations and Charting a Path ForwardAzim Ospanov, Farzan Farnia, Roozbeh MohitNeurIPS 2025 · 14 citations
- Reliable Fine-Grained Evaluation of Natural Language Math ProofsWenjie Ma, Andrei Cojocaru, Neel Kolhe, Haihan Zhang et al.ICLR 2026 · 14 citations
Builds on9
- Autoformalization with Large Language ModelsYuhuai Wu, Albert Qiaochu Jiang, Wenda Li, Markus N. Rabe et al.NeurIPS 2022 · 364 citations
- miniF2F: a cross-system benchmark for formal Olympiad-level mathematicsKunhao Zheng, Jesse Michael Han, Stanislas PoluICLR 2022 · 342 citations
- LEGO-Prover: Neural Theorem Proving with Growing LibrariesHaiming Wang, Huajian Xin, Chuanyang Zheng, Zhengying Liu et al.ICLR 2024 · 125 citations
- Don't Trust: Verify - Grounding LLM Quantitative Reasoning with AutoformalizationJin Peng Zhou, Charles Staats, Wenda Li, Christian Szegedy et al.ICLR 2024 · 72 citations
- Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal ProofsAlbert Qiaochu Jiang, Sean Welleck, Jin Peng Zhou, Timothée Lacroix et al.ICLR 2023 · 25 citations
Related papers
- TheoremLlama: Transforming General-Purpose LLMs into Lean4 ExpertsRuida Wang, Jipeng Zhang, Yizhen Jia, Rui Pan et al.EMNLP 2024 · 9 citations
- LoC-Decomp: LLM Autoformalization via Logical Concept Decomposition and Iterative Feedback CorrectionJiangze Shi, Zhiwei Zhang, Baoquan Ma, Shuai Zhao et al.ICLR 2026
- DRIFT: Decompose, Retrieve, Illustrate, then Formalize TheoremsMeiru Zhang, Philipp Borchert, Milan Gritta, Gerasimos LampourasICLR 2026 · 8 citations
- Automated Formalization via Conceptual Retrieval-Augmented LLMsWangyue Lu, Lun Du, Sirui Li, Ke Weng et al.ICLR 2026 · 8 citations
- CriticLean: Critic-Guided Reinforcement Learning for Mathematical FormalizationZhongyuan Peng, Yifan Yao, Kaijing Ma, Shuyue Guo et al.ACL 2026 · 15 citations
