Learning to Prove Theorems via Interacting with Proof Assistants

Kaiyu Yang, Jia Deng
5/21/2019
cs.LOcs.AIcs.LG

Official code: princeton-vl/CoqGym (422 stars, Coq, LGPL-2.1, last commit 2023-06-30).

Abstract

Humans prove theorems by relying on substantial high-level reasoning and problem-specific insights. Proof assistants offer a formalism that resembles human mathematical reasoning, representing theorems in higher-order logic and proofs as high-level tactics.

Show full abstract

However, human experts have to construct proofs manually by entering tactics into the proof assistant. In this paper, we study the problem of using machine learning to automate the interaction with proof assistants. We construct CoqGym, a large-scale dataset and learning environment containing 71K human-written proofs from 123 projects developed with the Coq proof assistant. We develop ASTactic, a deep learning-based model that generates tactics as programs in the form of abstract syntax trees (ASTs). Experiments show that ASTactic trained on CoqGym can generate effective tactics and can be used to prove new theorems not previously provable by automated methods. Code is available at https://github.com/princeton-vl/CoqGym.

View on arXivView PDF

Code Implementations(1)

LGPL-2.1

A Learning Environment for Theorem Proving with the Coq proof assistant

42254Coq, HTMLMay 24, 20193 years agoLGPL-2.1
icml-2019machine-learningtheorem-proving

Similar Papers

Cite this paper

@article{yang2019learning,
  title  = {Learning to Prove Theorems via Interacting with Proof Assistants},
  author = {Kaiyu Yang and Jia Deng},
  year   = {2019},
  eprint = {1905.09381},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1905.09381}
}

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

Discussion