cs.LGMar 13, 2026

Compile to Compress: Boosting Formal Theorem Provers by Compiler Outputs

Authors: Guchan Li, Rui Tian, Hongning Wang

Organizations: Department of Computer Science and Technology, Tsinghua University, Beijing, China.

Abstract

Large language models (LLMs) have demonstrated significant potential in formal theorem proving, yet state-of-the-art performance often necessitates prohibitive test-time compute via massive roll-outs or extended context windows. In this work, we address this scalability bottleneck by exploiting an informative structure in formal verification: the observation that compilers map a vast space of diverse proof attempts to a compact set of structured failure modes. We introduce a learning-to-refine framework that leverages this compression to perform efficient learning and proof exploration. We perform tree search that corrects errors locally conditioned on explicit verifier feedback, thereby circumventing the costs associated with accumulating a long history of proof attempts. Extensive evaluations show that our method consistently amplifies the reasoning capabilities of base provers across varying scales. Notably, our approach achieves state-of-the-art performance on PutnamBench among publicly reported ∼\sim8B and ∼\sim32B parameter models under comparable test-time budgets, offering a scalable paradigm for next-generation verifier-guided reasoning.

Figures & tables

Appendix figures & tables10 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Pythagoras-Prover: Advancing Efficient Formal Proving via Augmented Lean Formalisation

    Jun 10, 2026Joshua Ong Jun Leang, Zheng Zhao, Mihaela Cătălina Stoian +5Automated Theorem ProvingEfficient Language Model Training

  2. VERITAS: Verifier-Guided Proof Search for Zero-Shot Formal Theorem Proving

    Jun 17, 2026Manish Acharya, Zhenyu Liao, Yueke Zhang +3Automated Theorem ProvingMonte Carlo Tree Search

  3. TheoremBench: Evaluating LLMs on Theorem Proving in Formal Mathematics

    Jun 8, 2026QuocViet Pham, Elvir Karimov, Andrey Galichin +1Mathematical Reasoning BenchmarksLLM Evaluation