Lune

ICML2024Top-tier venue

Graph2Tac: Online Representation Learning of Formal Math Concepts

Lasse Blaauwbroek, Mirek Olsák, Jason Rute, Fidel Ivan Schaposnik Massolo, Jelle Piepenbrock, Vasily Pestun

Abstract

In proof assistants, the physical proximity between two formal mathematical concepts is a strong predictor of their mutual relevance. Furthermore, lemmas with close proximity regularly exhibit similar proof structures. We show that this locality property can be exploited through online learning techniques to obtain solving agents that far surpass offline learners when asked to prove theorems in an unseen mathematical setting. We extensively benchmark two such online solvers implemented in the Tactician platform for the Coq proof assistant: First, Tactician's online kk-nearest neighbor solver, which can learn from recent proofs, shows a 1.72×1.72\times improvement in theorems proved over an offline equivalent. Second, we introduce a graph neural network, Graph2Tac, with a novel approach to build hierarchical representations for new definitions. Graph2Tac's online definition task realizes a 1.5×1.5\times improvement in theorems solved over an offline baseline. The kk-NN and Graph2Tac solvers rely on orthogonal online data, making them highly complementary. Their combination improves 1.27×1.27\times over their individual performances. Both solvers outperform all other general-purpose provers for Coq, including CoqHammer, Proverbot9001, and a transformer baseline by at least 1.48×1.48\times and are available for practical use by end-users.

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.

8 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

  • Magnushammer: A Transformer-Based Approach to Premise Selection cites Proof Artifact Co-Training for Theorem Proving with Language Models
  • Magnushammer: A Transformer-Based Approach to Premise Selection cites Graph Representations for Higher-Order Logic and Theorem Proving
  • Magnushammer: A Transformer-Based Approach to Premise Selection cites HyperTree Proof Search for Neural Theorem Proving
  • Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers cites Proof Artifact Co-Training for Theorem Proving with Language Models
  • Proof Artifact Co-Training for Theorem Proving with Language Models cites Graph Representations for Higher-Order Logic and Theorem Proving
  • Premise Selection for a Lean Hammer cites Magnushammer: A Transformer-Based Approach to Premise Selection
  • Premise Selection for a Lean Hammer cites Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers
  • Premise Selection for a Lean Hammer cites HyperTree Proof Search for Neural Theorem Proving
  • Cobblestone: A Divide-and-Conquer Approach for Automating Formal Verification cites Magnushammer: A Transformer-Based Approach to Premise Selection
  • Cobblestone: A Divide-and-Conquer Approach for Automating Formal Verification cites Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers
  • Cobblestone: A Divide-and-Conquer Approach for Automating Formal Verification cites Graph Representations for Higher-Order Logic and Theorem Proving
  • Cobblestone: A Divide-and-Conquer Approach for Automating Formal Verification cites Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification
  • HyperTree Proof Search for Neural Theorem Proving cites Proof Artifact Co-Training for Theorem Proving with Language Models
  • Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification cites Magnushammer: A Transformer-Based Approach to Premise Selection
  • Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification cites Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers
  • Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification cites Proof Artifact Co-Training for Theorem Proving with Language Models
  • Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification cites Graph Representations for Higher-Order Logic and Theorem Proving
  • Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification cites HyperTree Proof Search for Neural Theorem Proving
  • Learning Structure-Aware Representations of Dependent Types cites Magnushammer: A Transformer-Based Approach to Premise Selection
  • Learning Structure-Aware Representations of Dependent Types cites Proof Artifact Co-Training for Theorem Proving with Language Models
  • Learning Structure-Aware Representations of Dependent Types cites Graph Representations for Higher-Order Logic and Theorem Proving
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Premise Selection for a Lean HammerThomas Zhu, Joshua Clune, Jeremy Avigad, Albert Q. Jiang et al.ICLR 2026 · 13 citations
  2. Learning Structure-Aware Representations of Dependent TypesKonstantinos Kogkalidis, Orestis Melkonian, Jean-Philippe BernardyNeurIPS 2024 · 6 citations
  3. Rango: Adaptive Retrieval-Augmented Proving for Automated Software VerificationKyle Thompson, Nuno Saavedra, Pedro Carrott, Kevin Fisher et al.ICSE 2025 · 4 citations
  4. Cobblestone: A Divide-and-Conquer Approach for Automating Formal VerificationSaketh Ram Kasibatla, Arpan Agrawal, Yuriy Brun, Sorin Lerner et al.ICSE 2026 · 3 citations
  5. Hashing Modulo Context-Sensitive 𝛼-EquivalenceLasse Blaauwbroek, Miroslav Olsák, Herman GeuversPLDI 2024 · 1 citation

Builds on8

  1. HyperTree Proof Search for Neural Theorem ProvingGuillaume Lample, Timothée Lacroix, Marie-Anne Lachaux, Aurélien Rodriguez et al.NeurIPS 2022 · 271 citations
  2. Thor: Wielding Hammers to Integrate Language Models and Automated Theorem ProversAlbert Qiaochu Jiang, Wenda Li, Szymon Tworkowski, Konrad Czechowski et al.NeurIPS 2022 · 154 citations
  3. 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
  4. Graph Representations for Higher-Order Logic and Theorem ProvingAditya Paliwal, Sarah M. Loos, Markus N. Rabe, Kshitij Bansal et al.AAAI 2020 · 110 citations
  5. Magnushammer: A Transformer-Based Approach to Premise SelectionMaciej Mikula, Szymon Tworkowski, Szymon Antoniak, Bartosz Piotrowski et al.ICLR 2024 · 62 citations

Related papers

  1. TacTok: semantics-aware proof synthesisEmily First, Yuriy Brun, Arjun GuhaOOPSLA 2020 · 39 citations
  2. ProofCoop: Collaborative Automated Formal VerificationZhanna Kaufman, Emily First, Alex Sanchez-Stern, Kyle Thompson et al.ICSE 2026
  3. QEDCartographer: Automating Formal Verification Using Reward-Free Reinforcement LearningAlex Sanchez-Stern, Abhishek Varghese, Zhanna Kaufman, Shizhuo Dylan Zhang et al.ICSE 2025 · 2 citations
  4. Diversity-Driven Automated Formal VerificationEmily First, Yuriy BrunICSE 2022 · 28 citations
  5. Gpass: A Goal-Adaptive Neural Theorem Prover Based on Coq for Automated Formal VerificationYizhou Chen, Zeyu Sun, Guoqing Wang, Dan HaoICSE 2025 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines