Proof Artifact Co-training for Theorem Proving with Language Models

Jesse Michael Han, Jason Rute, Yuhuai Wu, Edward W. Ayers, Stanislas Polu
2/11/2021
cs.AIcs.LGcs.LO

Official code: jesse-michael-han/lean-step-public (43 stars, Apache-2.0, last commit 2022-12-29). 1 more implementation below.

Abstract

Labeled data for imitation learning of theorem proving in large libraries of formalized mathematics is scarce as such libraries require years of concentrated effort by human specialists to be built. This is particularly challenging when applying large Transformer language models to tactic prediction, because the scaling of performance with respect to model size is quickly disrupted in the data-scarce, easily-overfitted regime. We propose PACT ({\bf P}roof {\bf A}rtifact {\bf C}o-{\bf T}raining), a general methodology for extracting abundant self-supervised data from kernel-level proof terms for co-training alongside the usual tactic prediction objective. We apply this methodology to Lean, an interactive proof assistant which hosts some of the most sophisticated formalized mathematics to date. We instrument Lean with a neural theorem prover driven by a Transformer language model and show that PACT improves theorem proving success rate on a held-out suite of test theorems from 32\% to 48\%.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

Proof artifact co-training for Lean

4311Lean, PythonFeb 11, 20213 years agoApache-2.0
Apache-2.0

Proof recording for Lean 3

278Lean, ShellOct 12, 20205 years agoApache-2.0

Similar Papers

Cite this paper

@article{han2021proof,
  title  = {Proof Artifact Co-training for Theorem Proving with Language Models},
  author = {Jesse Michael Han and Jason Rute and Yuhuai Wu and Edward W. Ayers and Stanislas Polu},
  year   = {2021},
  eprint = {2102.06203},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.06203}
}

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

Discussion