atlas

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

Alchemy: Amplifying Theorem-Proving Capability Through Symbolic Mutation

ICLR 2025 · Large language models › Agents, code and math · approach: Retrieval-augmented formal theorem proving · 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.

Alchemy synthesizes ~6M new Mathlib theorems by symbolically mutating existing statements with rw/apply invocable theorems, then uses them for continual pretraining and SFT of Llama-3-8B and deepseek-coder-7B provers.

Problem

Neural theorem provers for Lean are limited by scarce formal training data, as Mathlib has only about 110k theorems compared with abundant natural text.

Approach

Synthesize new Lean theorems directly in symbolic space: for each Mathlib theorem, find invocable theorems via rw and apply tactics in the Lean environment, mutate the statement by replacing components with equivalent forms or antecedents, and build proofs with a `have` tactic that is verified by Lean.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add rw and apply synthetic dataLlama3-8b · Leandojo novel_premisesproving success: 38.52 -> 43.22Helped
Add rw and apply synthetic datadeepseek-coder-base-v1.5-7B · Leandojo novel_premisesproving success: 39.24 -> 43.46Helped
Add rw synthetic dataLlama3-8b · miniF2F-testproving success: 34.01 -> 35.24Helped
Add apply synthetic dataLlama3-8b · miniF2F-testproving success: 34.01 -> 36.07Helped
Add rw and apply synthetic dataLlama3-8b · miniF2F-testproving success: 34.01 -> 36.48Helped
Add continual pretraining on augmented corpus (ablation)Llama3-8b, SFT on Mathlib-train · Leandojo novel_premisesproving success: 38.52 -> 42.56Helped
Add continual pretraining on augmented corpus (ablation)Llama3-8b, SFT on Mathlib-train + rw + apply · Leandojo novel_premisesproving success: 41.95 -> 43.22Helped
Add have state-tactic pairs to Mathlib-train (ablation)Llama3-8b · Leandojo novel_premisesproving success: 38.52 -> 41.29Helped
Add have state-tactic pairs alongside apply data (ablation)Llama3-8b · Leandojo novel_premisesproving success: 40.02 -> 38.34Hurt
Increase single-tactic SFT data quantity (ablation)Llama-3-8B · Leandojoproving successNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: Mathlib4 LeanDojo Benchmark miniF2F

Benchmarks: LeanDojo Benchmark random split LeanDojo Benchmark novel_premises split miniF2F-test

Metrics: pass rate theorems proved count

Baselines: tidy GPT-4 ReProver llmstep deepseek-coder-base-7b-v1.5

Builds on: ReProver LeanDojo Mathlib Llama-Factory

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