Automating Mathematical Proof Generation Using Large Language Model Agents and Knowledge Graphs

Vincent Li, Tim Knappe, Yule Fu, Kevin Han, Kevin Zhu
2/4/2025
cs.CL

No official code found. Best implementation: KG-Prover/KG-Prover (0 stars, MIT, last commit 2025-06-10).

Abstract

Large language models have demonstrated remarkable capabilities in natural language processing tasks requiring multi-step logical reasoning capabilities, such as automated theorem proving. However, challenges persist within theorem proving, such as the identification of key mathematical concepts, understanding their interrelationships, and formalizing proofs correctly within natural language. We present KG-prover, a novel framework that leverages knowledge graphs mined from reputable mathematical texts to augment general-purpose LLMs to construct and formalize mathematical proofs. We also study the effects of scaling graph-based, test-time compute using KG-Prover, demonstrating significant performance improvements over baselines across multiple datasets. General-purpose LLMs improve up to 21\% on miniF2F-test when combined with KG-Prover, with consistent improvements ranging from 2-11\% on the ProofNet, miniF2F-test, and MUSTARD datasets without additional scaling. Furthermore, KG-Prover with o4-mini achieves over 50% miniF2F-test. This work provides a promising approach for augmenting natural language proof reasoning with knowledge graphs without the need for additional finetuning.

View on arXivView PDF

Code Implementations(1)

MIT

KG-Prover: Automating Mathematical Proof Generation Using Large Language Model Agents and Knowledge Graphs

01PythonMar 26, 20251 years agoMIT

Similar Papers

Cite this paper

@article{li2025automating,
  title  = {Automating Mathematical Proof Generation Using Large Language Model Agents and Knowledge Graphs},
  author = {Vincent Li and Tim Knappe and Yule Fu and Kevin Han and Kevin Zhu},
  year   = {2025},
  eprint = {2503.11657},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.11657v2}
}

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/2503.11657.svg)](https://codeofpaper.com/paper/2503.11657)

Discussion