Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers
Albert Qiaochu Jiang, Wenda Li, Szymon Tworkowski, Konrad Czechowski, Tomasz Odrzygózdz, Piotr Milos, Yuhuai Wu, Mateja Jamnik
Abstract
In theorem proving, the task of selecting useful premises from a large library to unlock the proof of a given conjecture is crucially important. This presents a challenge for all theorem provers, especially the ones based on language models, due to their relative inability to reason over huge volumes of premises in text form. This paper introduces Thor, a framework integrating language models and automated theorem provers to overcome this difficulty. In Thor, a class of methods called hammers that leverage the power of automated theorem provers are used for premise selection, while all other tasks are designated to language models. Thor increases a language model's success rate on the PISA dataset from to , while solving of problems neither language models nor automated theorem provers are able to solve on their own. Furthermore, with a significantly smaller computational budget, Thor can achieve a success rate on the MiniF2F dataset that is on par with the best existing methods. Thor can be instantiated for the majority of popular interactive theorem provers via a straightforward protocol we provide.
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.
32 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Llemma: An Open Language Model for Mathematics cites Formal Mathematics Statement Curriculum Learning
- Llemma: An Open Language Model for Mathematics cites Proof Artifact Co-Training for Theorem Proving with Language Models
- Llemma: An Open Language Model for Mathematics cites Solving Quantitative Reasoning Problems with Language Models
- Llemma: An Open Language Model for Mathematics cites Autoformalization with Large Language Models
- Llemma: An Open Language Model for Mathematics cites miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- Llemma: An Open Language Model for Mathematics cites Baldur: Whole-Proof Generation and Repair with Large Language Models
- Formal Mathematics Statement Curriculum Learning cites Proof Artifact Co-Training for Theorem Proving with Language Models
- Formal Mathematics Statement Curriculum Learning cites miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- Proof Artifact Co-Training for Theorem Proving with Language Models cites IsarStep: a Benchmark for High-level Mathematical Reasoning
- Solving Quantitative Reasoning Problems with Language Models cites Formal Mathematics Statement Curriculum Learning
- Solving Quantitative Reasoning Problems with Language Models cites Proof Artifact Co-Training for Theorem Proving with Language Models
- Solving Quantitative Reasoning Problems with Language Models cites Autoformalization with Large Language Models
- Solving Quantitative Reasoning Problems with Language Models cites IsarStep: a Benchmark for High-level Mathematical Reasoning
- LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Formal Mathematics Statement Curriculum Learning
- LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Proof Artifact Co-Training for Theorem Proving with Language Models
- LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Solving Quantitative Reasoning Problems with Language Models
- LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Autoformalization with Large Language Models
- LEGO-Prover: Neural Theorem Proving with Growing Libraries cites IsarStep: a Benchmark for High-level Mathematical Reasoning
- LEGO-Prover: Neural Theorem Proving with Growing Libraries cites miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Baldur: Whole-Proof Generation and Repair with Large Language Models
- Autoformalization with Large Language Models cites Formal Mathematics Statement Curriculum Learning
- Autoformalization with Large Language Models cites Proof Artifact Co-Training for Theorem Proving with Language Models
- Autoformalization with Large Language Models cites miniF2F: a cross-system benchmark for formal Olympiad-level mathematics
- miniF2F: a cross-system benchmark for formal Olympiad-level mathematics cites Proof Artifact Co-Training for Theorem Proving with Language Models
- Baldur: Whole-Proof Generation and Repair with Large Language Models cites Proof Artifact Co-Training for Theorem Proving with Language Models
- Baldur: Whole-Proof Generation and Repair with Large Language Models cites Solving Quantitative Reasoning Problems with Language Models
- Baldur: Whole-Proof Generation and Repair with Large Language Models cites Autoformalization with Large Language Models
Cited by top-tier papers32
- Solving Quantitative Reasoning Problems with Language ModelsAitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer et al.NeurIPS 2022 · 2,039 citations
- Llemma: An Open Language Model for MathematicsZhangir Azerbayev, Hailey Schoelkopf, Keiran Paster, Marco Dos Santos et al.ICLR 2024 · 433 citations
- Autoformalization with Large Language ModelsYuhuai Wu, Albert Qiaochu Jiang, Wenda Li, Markus N. Rabe et al.NeurIPS 2022 · 364 citations
- LEGO-Prover: Neural Theorem Proving with Growing LibrariesHaiming Wang, Huajian Xin, Chuanyang Zheng, Zhengying Liu et al.ICLR 2024 · 125 citations
- Baldur: Whole-Proof Generation and Repair with Large Language ModelsEmily First, Markus N. Rabe, Talia Ringer, Yuriy BrunFSE 2023 · 89 citations
Builds on4
- miniF2F: a cross-system benchmark for formal Olympiad-level mathematicsKunhao Zheng, Jesse Michael Han, Stanislas PoluICLR 2022 · 342 citations
- Proof Artifact Co-Training for Theorem Proving with Language ModelsJesse Michael Han, Jason Rute, Yuhuai Wu, Edward W. Ayers et al.ICLR 2022 · 149 citations
- IsarStep: a Benchmark for High-level Mathematical ReasoningWenda Li, Lei Yu, Yuhuai Wu, Lawrence C. PaulsonICLR 2021 · 69 citations
- Formal Mathematics Statement Curriculum LearningStanislas Polu, Jesse Michael Han, Kunhao Zheng, Mantas Baksys et al.ICLR 2023 · 24 citations
Related papers
- Magnushammer: A Transformer-Based Approach to Premise SelectionMaciej Mikula, Szymon Tworkowski, Szymon Antoniak, Bartosz Piotrowski et al.ICLR 2024 · 62 citations
- Premise Selection for a Lean HammerThomas Zhu, Joshua Clune, Jeremy Avigad, Albert Q. Jiang et al.ICLR 2026 · 13 citations
- Proving Theorems RecursivelyHaiming Wang, Huajian Xin, Zhengying Liu, Wenda Li et al.NeurIPS 2024 · 34 citations
- A Minimalist Proof Language for Neural Theorem Proving over Isabelle/HOLQiyuan Xu, Renxi Wang, Peixin Wang, Haonan Li et al.OOPSLA 2026
- TacticZero: Learning to Prove Theorems from Scratch with Deep Reinforcement LearningMinchao Wu, Michael Norrish, Christian Walder, Amir DezfouliNeurIPS 2021 · 56 citations
