Magnushammer: A Transformer-Based Approach to Premise Selection
Not on the map. Why?
Abstract (arXiv)
This paper presents a novel approach to premise selection, a crucial reasoning task in automated theorem proving. Traditionally, symbolic methods that rely on extensive domain knowledge and engineering effort are applied to this task. In contrast, this work demonstrates that contrastive training with the transformer architecture can achieve higher-quality retrieval of relevant premises, without the engineering overhead. Our method, Magnushammer, outperforms the most advanced and widely used automation tool in interactive theorem proving called Sledgehammer. On the PISA and miniF2F benchmarks Magnushammer achieves 59.5% (against 38.3%) and 34.0% (against 20.9%) success rates, respectively. By combining method with a language-model-based automated theorem prover, we further improve the state-of-the-art proof success rate from 57.0% to 71.0% on the PISA benchmark using 4x fewer parameters. Moreover, we develop and open source a novel dataset for premise selection, containing textual representations of (proof state, relevant premise) pairs. To the best of our knowledge, this is the largest available premise selection dataset, and the first one for the Isabelle proof assistant.
Key facts. Cited by 50 papers in the map (data through 7 Oct 2026). Builds on 37 of its 92 references that are in the map. First posted on arXiv 8 Mar 2023.
Builds on
37 of 92 references.
References · 37
- 2017Attention Is All You Needcited by 59,932
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
25 more
- 2019Cross-lingual Language Model Pretrainingcited by 1,088
- 2019Passage Re-ranking with BERTcited by 629
- 2020Contrastive Learning with Hard Negative Samplescited by 619
- 2021MiniF2F: a cross-system benchmark for formal Olympiad-level mathematicscited by 380
- 2020Generative Language Modeling for Automated Theorem Provingcited by 379
- 2022Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofscited by 278
- 2022Autoformalization with Large Language Modelscited by 252
- 2022Memorizing Transformerscited by 219
- 2022HyperTree Proof Search for Neural Theorem Provingcited by 192
- 2022Formal Mathematics Statement Curriculum Learningcited by 141
- 2021Proof Artifact Co-training for Theorem Proving with Language Modelscited by 130
- 2019Learning to Prove Theorems via Interacting with Proof Assistantscited by 107
- 2022Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Proverscited by 97
- 2016DeepMath - Deep Sequence Models for Premise Selectioncited by 80
- 2019Graph Representations for Higher-Order Logic and Theorem Provingcited by 55
- 2017Premise Selection for Theorem Proving by Deep Graph Embeddingcited by 44
- 2017HolStep: A Machine Learning Dataset for Higher-order Logic Theorem Provingcited by 26
- 2020First Neural Conjecturing Datasets and Experimentscited by 26
- 2013MizAR 40 for Mizar 40cited by 23
- 2018ATPboost: Learning Premise Selection in Binary Setting with ATP Feedbackcited by 12
- 2020Stateful Premise Selection by Recurrent Neural Networkscited by 11
- 2013HOL(y)Hammer: Online ATP Service for HOL Lightcited by 8
- 2022The Isabelle ENIGMAcited by 8
- 2015Premise Selection and External Provers for HOL4cited by 7
- 2018PaMpeR: Proof Method Recommendation System for Isabelle/HOLcited by 7
Built on by
Citing papers per year: 2023: 6; 2024: 21; 2025: 14; 2026: 9.
50 papers.
Sort:
By area:
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
- 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
- 2025Goedel-Prover: A Frontier Model for Open-Source Automated Theorem Provingcited by 126
- 2023LEGO-Prover: Neural Theorem Proving with Growing Librariescited by 108
- 2024A Survey on Deep Learning for Theorem Provingcited by 55
- 2024Lean Copilot: Large Language Models as Copilots for Theorem Proving in Leancited by 52
- 2024Process-Driven Autoformalization in Lean 4cited by 45
- 2023Decomposing the Enigma: Subgoal-based Demonstration Learning for Formal Theorem Provingcited by 37
- 2024miniCTX: Neural Theorem Proving with (Long-)Contextscited by 35
- 2025Solving Formal Math Problems by Decomposition and Iterative Reflectioncited by 35
- 2024LeanAgent: Lifelong Learning for Formal Theorem Provingcited by 34
- 2024Proving Theorems Recursivelycited by 25
38 more
- 2023Lyra: Orchestrating Dual Correction in Automated Theorem Provingcited by 24
- 2024Formal Theorem Proving by Rewarding LLMs to Decompose Proofs Hierarchicallycited by 22
- 2024Towards Neural Synthesis for SMT-Assisted Proof-Oriented Programmingcited by 19
- 2024Graph2Tac: Online Representation Learning of Formal Math Conceptscited by 15
- 2024Learn from Failure: Fine-Tuning LLMs with Trial-and-Error Data for Intuitionistic Propositional Logic Provingcited by 11
- 2024SubgoalXL: Subgoal-based Expert Learning for Theorem Provingcited by 11
- 2024Data for Mathematical Copilots: Better Ways of Presenting Proofs for Machine Learningcited by 11
- 2024Can Transformers Do Enumerative Geometry?cited by 8
- 2024Cobblestone: A Divide-and-Conquer Approach for Automating Formal Verificationcited by 8
- 2025Lean Finder: Semantic Search for Mathlib That Understands User Intentscited by 7
- 20243D-Prover: Diversity Driven Theorem Proving With Determinantal Point Processescited by 6
- 2025HybridProver: Augmenting Theorem Proving with LLM-Driven Proof Synthesis and Refinementcited by 6
- 2025Premise Selection for a Lean Hammercited by 6
- 2024Smart Vision-Language Reasonerscited by 5
- 2025MiniF2F in Rocq: Automatic Translation Between Proof Assistants -- A Case Studycited by 5
- 2025MIRB: Mathematical Information Retrieval Benchmarkcited by 5
- 2025Agentic Verification of Software Systemscited by 5
- 2025Learning an Effective Premise Retrieval Model for Efficient Mathematical Formalizationcited by 4
- 2024Alchemy: Amplifying Theorem-Proving Capability through Symbolic Mutationcited by 3
- 2025Verifying LLM-Generated Code in the Context of Software Verification with Ada/SPARKcited by 3
- 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repaircited by 3
- 2023Enhancing Neural Theorem Proving through Data Augmentation and Dynamic Sampling Methodcited by 2
- 2024Learning Structure-Aware Representations of Dependent Typescited by 2
- 2024Next-Token Prediction Task Assumes Optimal Data Ordering for LLM Training in Proof Generationcited by 2
- 2025Local Look-Ahead Guidance via Verifier-in-the-Loop for Automated Theorem Provingcited by 2
- 2024Learning Better Representations From Less Data For Propositional Satisfiabilitycited by 1
- 2024tsGT: Stochastic Time Series Modeling With Transformercited by 1
- 2025Hierarchical Attention Generates Better Proofscited by 1
- 2025Clarifying Before Reasoning: A Coq Prover with Structural Contextcited by 1
- 2026TheoremBench: Evaluating LLMs on Theorem Proving in Formal Mathematicscited by 1
- 2025Learning Representations Through Contrastive Neural Model Checkingcited by 0
- 2026Re2Math: Benchmarking Theorem Retrieval in Research-Level Mathematicscited by 0
- 2026An Empirical Study of LLM-Generated Specifications for VeriFastcited by 0
- 2026Geometric Measurements of the Axiom of Choice in Neural Proof Embeddingscited by 0
- 2026PPDL: LLM-Based Flows as Probabilistic Programscited by 0
- 2026Beyond Correctness: Toward Automated Novelty Verification with Lean 4cited by 0
- 2026Governed Deduction: Policy-Grounded Premise Authorization Beyond Relevancecited by 0
- 2026When Does Structured Knowledge Help Neural Theorem Proving?cited by 0
- 2026When Does Structured Knowledge Help Neural Theorem Proving?28 Sep 2026
- 2026Governed Deduction: Policy-Grounded Premise Authorization Beyond Relevance25 Sep 2026
- 2026PPDL: LLM-Based Flows as Probabilistic Programs5 Aug 2026
- 2026Beyond Correctness: Toward Automated Novelty Verification with Lean 42 Aug 2026
- 2026Geometric Measurements of the Axiom of Choice in Neural Proof Embeddings26 Jun 2026
- 2026An Empirical Study of LLM-Generated Specifications for VeriFast25 Jun 2026
- 2026TheoremBench: Evaluating LLMs on Theorem Proving in Formal Mathematics8 Jun 2026
- 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repair17 May 2026
- 2026Re2Math: Benchmarking Theorem Retrieval in Research-Level Mathematics9 May 2026
- 2025Agentic Verification of Software Systems21 Nov 2025
- 2025Lean Finder: Semantic Search for Mathlib That Understands User Intents8 Oct 2025
- 2025Learning Representations Through Contrastive Neural Model Checking2 Oct 2025
38 more
- 2025Solving Formal Math Problems by Decomposition and Iterative Reflection21 Jul 2025
- 2025Clarifying Before Reasoning: A Coq Prover with Structural Context3 Jul 2025
- 2025Premise Selection for a Lean Hammer9 Jun 2025
- 2025HybridProver: Augmenting Theorem Proving with LLM-Driven Proof Synthesis and Refinement21 May 2025
- 2025MIRB: Mathematical Information Retrieval Benchmark21 May 2025
- 2025Hierarchical Attention Generates Better Proofs27 Apr 2025
- 2025Local Look-Ahead Guidance via Verifier-in-the-Loop for Automated Theorem Proving12 Mar 2025
- 2025MiniF2F in Rocq: Automatic Translation Between Proof Assistants -- A Case Study11 Feb 2025
- 2025Verifying LLM-Generated Code in the Context of Software Verification with Ada/SPARK11 Feb 2025
- 2025Goedel-Prover: A Frontier Model for Open-Source Automated Theorem Proving11 Feb 2025
- 2025Learning an Effective Premise Retrieval Model for Efficient Mathematical Formalization21 Jan 2025
- 2024Data for Mathematical Copilots: Better Ways of Presenting Proofs for Machine Learning19 Dec 2024
- 2024Formal Theorem Proving by Rewarding LLMs to Decompose Proofs Hierarchically4 Nov 2024
- 2024Next-Token Prediction Task Assumes Optimal Data Ordering for LLM Training in Proof Generation30 Oct 2024
- 2024Cobblestone: A Divide-and-Conquer Approach for Automating Formal Verification25 Oct 2024
- 2024Alchemy: Amplifying Theorem-Proving Capability through Symbolic Mutation21 Oct 2024
- 20243D-Prover: Diversity Driven Theorem Proving With Determinantal Point Processes14 Oct 2024
- 2024LeanAgent: Lifelong Learning for Formal Theorem Proving8 Oct 2024
- 2024Can Transformers Do Enumerative Geometry?27 Aug 2024
- 2024SubgoalXL: Subgoal-based Expert Learning for Theorem Proving20 Aug 2024
- 2024miniCTX: Neural Theorem Proving with (Long-)Contexts5 Aug 2024
- 2024Smart Vision-Language Reasoners5 Jul 2024
- 2024Process-Driven Autoformalization in Lean 44 Jun 2024
- 2024Proving Theorems Recursively23 May 2024
- 2024Towards Neural Synthesis for SMT-Assisted Proof-Oriented Programming3 May 2024
- 2024Lean Copilot: Large Language Models as Copilots for Theorem Proving in Lean18 Apr 2024
- 2024A Survey on Deep Learning for Theorem Proving15 Apr 2024
- 2024Learn from Failure: Fine-Tuning LLMs with Trial-and-Error Data for Intuitionistic Propositional Logic Proving10 Apr 2024
- 2024tsGT: Stochastic Time Series Modeling With Transformer8 Mar 2024
- 2024Learning Better Representations From Less Data For Propositional Satisfiability13 Feb 2024
- 2024Learning Structure-Aware Representations of Dependent Types3 Feb 2024
- 2024Graph2Tac: Online Representation Learning of Formal Math Concepts5 Jan 2024
- 2023Enhancing Neural Theorem Proving through Data Augmentation and Dynamic Sampling Method20 Dec 2023
- 2023LEGO-Prover: Neural Theorem Proving with Growing Libraries1 Oct 2023
- 2023Lyra: Orchestrating Dual Correction in Automated Theorem Proving27 Sep 2023
- 2023Focused Transformer: Contrastive Training for Context Scaling6 Jul 2023
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Models27 Jun 2023
- 2023Decomposing the Enigma: Subgoal-based Demonstration Learning for Formal Theorem Proving25 May 2023
- 2024Process-Driven Autoformalization in Lean 4cited by 45
- 2025Solving Formal Math Problems by Decomposition and Iterative Reflectioncited by 35
- 2024LeanAgent: Lifelong Learning for Formal Theorem Provingcited by 34
- 2024Formal Theorem Proving by Rewarding LLMs to Decompose Proofs Hierarchicallycited by 22
- 2024Smart Vision-Language Reasonerscited by 5
- 2025Clarifying Before Reasoning: A Coq Prover with Structural Contextcited by 1
- 2026Re2Math: Benchmarking Theorem Retrieval in Research-Level Mathematicscited by 0
- 2026Re2Math: Benchmarking Theorem Retrieval in Research-Level Mathematics9 May 2026
- 2025Solving Formal Math Problems by Decomposition and Iterative Reflection21 Jul 2025
- 2025Clarifying Before Reasoning: A Coq Prover with Structural Context3 Jul 2025
- 2024Formal Theorem Proving by Rewarding LLMs to Decompose Proofs Hierarchically4 Nov 2024
- 2024LeanAgent: Lifelong Learning for Formal Theorem Proving8 Oct 2024
- 2024Smart Vision-Language Reasoners5 Jul 2024
- 2024Process-Driven Autoformalization in Lean 44 Jun 2024
- 2025Agentic Verification of Software Systemscited by 5
- 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repaircited by 3
- 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repair17 May 2026
- 2025Agentic Verification of Software Systems21 Nov 2025
- 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
- 2025Goedel-Prover: A Frontier Model for Open-Source Automated Theorem Provingcited by 126
- 2023LEGO-Prover: Neural Theorem Proving with Growing Librariescited by 108
- 2024A Survey on Deep Learning for Theorem Provingcited by 55
- 2024Lean Copilot: Large Language Models as Copilots for Theorem Proving in Leancited by 52
- 2024miniCTX: Neural Theorem Proving with (Long-)Contextscited by 35
- 2024Proving Theorems Recursivelycited by 25
- 2023Lyra: Orchestrating Dual Correction in Automated Theorem Provingcited by 24
- 2024Towards Neural Synthesis for SMT-Assisted Proof-Oriented Programmingcited by 19
- 2024Graph2Tac: Online Representation Learning of Formal Math Conceptscited by 15
- 2024Learn from Failure: Fine-Tuning LLMs with Trial-and-Error Data for Intuitionistic Propositional Logic Provingcited by 11
- 2024SubgoalXL: Subgoal-based Expert Learning for Theorem Provingcited by 11
12 most cited of 39 All 39 (JSON)
- 2026When Does Structured Knowledge Help Neural Theorem Proving?28 Sep 2026
- 2026Governed Deduction: Policy-Grounded Premise Authorization Beyond Relevance25 Sep 2026
- 2026PPDL: LLM-Based Flows as Probabilistic Programs5 Aug 2026
- 2026Beyond Correctness: Toward Automated Novelty Verification with Lean 42 Aug 2026
- 2026Geometric Measurements of the Axiom of Choice in Neural Proof Embeddings26 Jun 2026
- 2026An Empirical Study of LLM-Generated Specifications for VeriFast25 Jun 2026
- 2026TheoremBench: Evaluating LLMs on Theorem Proving in Formal Mathematics8 Jun 2026
- 2025Lean Finder: Semantic Search for Mathlib That Understands User Intents8 Oct 2025
- 2025Learning Representations Through Contrastive Neural Model Checking2 Oct 2025
- 2025Premise Selection for a Lean Hammer9 Jun 2025
- 2025HybridProver: Augmenting Theorem Proving with LLM-Driven Proof Synthesis and Refinement21 May 2025
- 2025MIRB: Mathematical Information Retrieval Benchmark21 May 2025
12 newest of 39 All 39 (JSON)