Lune

ICLR2025Top-tier venue

Alchemy: Amplifying Theorem-Proving Capability Through Symbolic Mutation

Shaonan Wu, Shuai Lu, Yeyun Gong, Nan Duan, Ping Wei

Abstract

Formal proofs are challenging to write even for experienced experts. Recent progress in Neural Theorem Proving (NTP) shows promise in expediting this process. However, the formal corpora available on the Internet are limited compared to the general text, posing a significant data scarcity challenge for NTP. To address this issue, this work proposes Alchemy, a general framework for data synthesis that constructs formal theorems through symbolic mutation. Specifically, for each candidate theorem in Mathlib, we identify all invocable theorems that can be used to rewrite or apply to it. Subsequently, we mutate the candidate theorem by replacing the corresponding term in the statement with its equivalent form or antecedent. As a result, our method increases the number of theorems in Mathlib by an order of magnitude, from 110k to 6M. Furthermore, we perform continual pretraining and supervised finetuning on this augmented corpus for large language models. Experimental results demonstrate the effectiveness of our approach, achieving a 4.70% absolute performance improvement on Leandojo benchmark. Additionally, our approach achieves a 2.47% absolute performance gain on the out-of-distribution miniF2F benchmark based on the synthetic data. To provide further insights, we conduct a comprehensive analysis of synthetic data composition and the training paradigm, offering valuable guidance for developing a strong theorem prover. 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.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Llemma: An Open Language Model for Mathematics cites FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • Llemma: An Open Language Model for Mathematics cites Language Models are Few-Shot Learners
  • Llemma: An Open Language Model for Mathematics cites Autoformalization with Large Language Models
  • Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Models cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Models cites Autoformalization with Large Language Models
  • Efficient Memory Management for Large Language Model Serving with PagedAttention cites Language Models are Few-Shot Learners
  • Autoformalization with Large Language Models cites Language Models are Few-Shot Learners
  • Let's Explore Step by Step: Generating Provable Formal Statements with Deductive Exploration cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Bootstrapping Hierarchical Autoregressive Formal Reasoner with Chain-of-Proxy-Autoformalization cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Bootstrapping Hierarchical Autoregressive Formal Reasoner with Chain-of-Proxy-Autoformalization cites Autoformalization with Large Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. 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
  2. Bootstrapping Hierarchical Autoregressive Formal Reasoner with Chain-of-Proxy-AutoformalizationQi Liu, Xinhao Zheng, Renqiu Xia, Qinxiang Cao et al.NeurIPS 2025 · 3 citations
  3. Let's Explore Step by Step: Generating Provable Formal Statements with Deductive ExplorationQi Liu, Kangjie Bao, Yue Yang, Xinhao Zheng et al.ICLR 2026

Builds on18

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. FlashAttention-2: Faster Attention with Better Parallelism and Work PartitioningTri DaoICLR 2024 · 2,600 citations
  3. Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng et al.SOSP 2023 · 1,016 citations
  4. Llemma: An Open Language Model for MathematicsZhangir Azerbayev, Hailey Schoelkopf, Keiran Paster, Marco Dos Santos et al.ICLR 2024 · 433 citations
  5. Autoformalization with Large Language ModelsYuhuai Wu, Albert Qiaochu Jiang, Wenda Li, Markus N. Rabe et al.NeurIPS 2022 · 364 citations

Related papers

  1. MUSTARD: Mastering Uniform Synthesis of Theorem and Proof DataYinya Huang, Xiaohan Lin, Zhengying Liu, Qingxing Cao et al.ICLR 2024 · 50 citations
  2. TheoremLlama: Transforming General-Purpose LLMs into Lean4 ExpertsRuida Wang, Jipeng Zhang, Yizhen Jia, Rui Pan et al.EMNLP 2024 · 9 citations
  3. ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of DataXiaoyang Liu, Kangjie Bao, Jiashuo Zhang, Yunqi Liu et al.NeurIPS 2025 · 28 citations
  4. QDTSynth: Quality-Driven Formal Theorem Synthesis for Enhancing Proving Performance of LLMsLei Wang, Ruobing Zuo, Gaolei He, Jianlin Wang et al.ACL 2025 · 1 citation
  5. EvolProver: Advancing Automated theorem proving by Evolving Formalized Problems via Symmetry and DifficultyYuchen Tian, Ruiyuan Huang, Xuanwu Wang, Jing Ma et al.ICLR 2026 · 7 citations
Dusk over the sea between two cliffs drawn in fine vertical lines