Compile to Compress: Boosting Formal Theorem Provers by Compiler Outputs

Guchan Li, Rui Tian, Hongning Wang
3/13/2026
cs.LGcs.AIcs.LO

No confident code implementation found for this paper.

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.

Show full abstract

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 $\sim$8B and $\sim$32B parameter models under comparable test-time budgets, offering a scalable paradigm for next-generation verifier-guided reasoning.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2026compile,
  title  = {Compile to Compress: Boosting Formal Theorem Provers by Compiler Outputs},
  author = {Guchan Li and Rui Tian and Hongning Wang},
  year   = {2026},
  eprint = {2604.18587},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.18587v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.18587.svg)](https://codeofpaper.com/paper/2604.18587)

Discussion