atlas

Research map / Large language models / Agents, code and math

Herald: A Natural Language Annotated Lean 4 Dataset

ICLR 2025 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Builds Herald, a Lean 4 Mathlib4 natural-language-annotated dataset via structure-aware (Lean-Jixia) hierarchical RAG informalization plus tactic-based and LLM-based augmentation, and fine-tunes the Herald translator (DeepSeek-Prover-V1.5-Base 7B) for statement autoformalization.

Problem

Parallel natural language–Lean 4 data is scarce, limiting LLM autoformalization of mathematics; existing NL-FL pair generation suffers from LLM errors and ignores Lean's structural information.

Approach

Provide the LLM with structural Lean context (head statements, kind, docstrings, neighbor statements, dependent theorems), informalize in dependency-level order, retrieve similar annotated examples, and augment data by decomposing tactic proof states and by LLM-based informal rewriting, then SFT a statement formalizer on the result.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Fine-tune on Herald rather than use InternLM2-Math-Plus-7BStatement formalization · miniF2F-testaccuracy: 73.0\% -> 96.7\%Helped
Fine-tune on Herald rather than use InternLM2-Math-Plus-7BStatement formalization · miniF2F-validaccuracy: 80.1\% -> 96.3\%Helped
Fine-tune on Herald rather than use InternLM2-Math-Plus-7BStatement formalization · Extract Theoremaccuracy: 7.5\% -> 23.5\%Helped
Fine-tune on Herald rather than use InternLM2-Math-Plus-7BStatement formalization · College CoTaccuracy: 6.5\% -> 16.0\%Helped
Add tactic-based and informal augmentation to original pairs (ablation)Herald translator · MiniF2F-testaccuracy: 86.8\% -> 91.4\%Helped
Add tactic-based and informal augmentation to original pairs (ablation)Herald translator · ProofNet-validaccuracy: 50.0\% -> 68.3\%Helped
Add tactic-based and informal augmentation to original pairs (ablation)Herald translator · Extract-Theoremaccuracy: 15.0\% -> 17.5\%Helped
Use more tactic-based augmentation and omit informal augmentation (ablation)Herald translator · MiniF2F-testaccuracy: 91.4\% -> 95.1\%Helped
Use more tactic-based augmentation and omit informal augmentation (ablation)Herald translator · ProofNet-validaccuracy: 68.3\% -> 74.7\%Helped
Use more tactic-based augmentation and omit informal augmentation (ablation)Herald translator · Extract-Theoremaccuracy: 17.5\% -> 19.0\%Helped
Add informal augmentation to the 1:2:0 tactic-augmentation mixture (ablation)Herald translator · MiniF2F-testaccuracy: 95.1\% -> 93.2\%Hurt
Add informal augmentation to the 1:2:0 tactic-augmentation mixture (ablation)Herald translator · ProofNet-validaccuracy: 74.7\% -> 78.6\%Helped

Surprising findings

Limitations

Experimental setup

Datasets: Mathlib4 OpenHermes2.5 miniF2F ProofNet

Benchmarks: miniF2F-test miniF2F-valid Extract Theorem College CoT ProofNet-valid

Metrics: pass@128 accuracy (compiler check plus back-translation NLI human-evaluated correct/minor/major error rates

Baselines: TheoremLlama InternLM2-Math-Plus-7B Llama3-instruct

Builds on: Lean Workbook Lean-Jixia DeepSeek-Prover-V1.5 TheoremLlama Lean-STaR

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy