Pantograph: A Machine-to-Machine Interaction Interface for Advanced Theorem Proving, High Level Reasoning, and Data Extraction in Lean 4

Leni Aniva, Chuyue Sun, Brando Miranda, Clark Barrett, Sanmi Koyejo
10/21/2024
cs.LOcs.AIcs.LG

No official code found. Best implementation: stanford-centaur/PyPantograph (147 stars, Apache-2.0, last commit 2026-04-26).

Abstract

Machine-assisted theorem proving refers to the process of conducting structured reasoning to automatically generate proofs for mathematical theorems. Recently, there has been a surge of interest in using machine learning models in conjunction with proof assistants to perform this task. In this paper, we introduce Pantograph, a tool that provides a versatile interface to the Lean 4 proof assistant and enables efficient proof search via powerful search algorithms such as Monte Carlo Tree Search. In addition, Pantograph enables high-level reasoning by enabling a more robust handling of Lean 4's inference steps. We provide an overview of Pantograph's architecture and features. We also report on an illustrative use case: using machine learning models and proof sketches to prove Lean 4 theorems. Pantograph's innovative features pave the way for more advanced machine learning models to perform complex proof searches and high-level reasoning, equipping future researchers to design more versatile and powerful theorem provers.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A Machine-to-Machine Interaction System for Lean 4.

14736PythonApr 11, 20245 months agoApache-2.0
automated-reasoningautomated-theorem-provinglean4machine-learningpython+1 more

Similar Papers

Cite this paper

@article{aniva2024pantograph,
  title  = {Pantograph: A Machine-to-Machine Interaction Interface for Advanced Theorem Proving, High Level Reasoning, and Data Extraction in Lean 4},
  author = {Leni Aniva and Chuyue Sun and Brando Miranda and Clark Barrett and Sanmi Koyejo},
  year   = {2024},
  eprint = {2410.16429},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.16429v2}
}

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

Discussion