Skip to main content
QUICK REVIEW

[Paper Review] Holophrasm: a neural Automated Theorem Prover for higher-order logic

Daniel Whalen|arXiv (Cornell University)|Aug 8, 2016
Natural Language Processing TechniquesComputer Science11 references24 citations
TL;DR

Holophrasm is a novel neural automated theorem prover for higher-order logic that uses deep learning and tree-based bandit search to prove theorems in Metamath's set.mm library without hand-crafted features. It achieves 14.3% success on test theorems by combining sequence-to-sequence models for action enumeration, neural networks for relevance and payoff prediction, and a UCT-inspired search algorithm.

ABSTRACT

I propose a system for Automated Theorem Proving in higher order logic using deep learning and eschewing hand-constructed features. Holophrasm exploits the formalism of the Metamath language and explores partial proof trees using a neural-network-augmented bandit algorithm and a sequence-to-sequence model for action enumeration. The system proves 14% of its test theorems from Metamath's set.mm module.

Motivation & Objective

  • To develop a complete, non-interactive automated theorem prover for higher-order logic that avoids hand-constructed features.
  • To explore whether deep learning can effectively model proof search in the structured, hierarchical proof trees of Metamath.
  • To demonstrate the feasibility of end-to-end neural methods in automated theorem proving by integrating sequence-to-sequence models, neural relevance estimation, and tree-based bandit search.
  • To evaluate the system on a large-scale formal mathematics corpus, specifically Metamath's set.mm module, to assess performance and generalization.

Proposed method

  • Uses a neural-network-augmented bandit algorithm (variant of UCT) to explore partial proof trees in Metamath's higher-order logic formalism.
  • Employs a sequence-to-sequence model to enumerate actions from an infinite set of possible theorems and substitutions.
  • Applies a relevance network to estimate the likelihood of a theorem being useful in proving a given goal, based on context and expression similarity.
  • Uses a generative network to predict correct substitutions for unconstrained variables in theorems, with beam search for improved accuracy.
  • Trains a payoff network to classify whether a proposed proof step is valid or invalid, using positive and negative examples from search.
  • Integrates tree reduction during exploration to allow actions to have multiple subtrees, improving search efficiency and coverage.

Experimental results

Research questions

  • RQ1Can a deep learning-based system effectively explore proof trees in higher-order logic without relying on hand-engineered features?
  • RQ2To what extent can sequence-to-sequence models generate valid and useful theorems and substitutions in automated theorem proving?
  • RQ3How well can neural networks estimate the relevance and payoff of potential proof steps in a formal proof context?
  • RQ4Can a tree-based bandit algorithm guided by neural networks achieve competitive proof search performance in a large formal mathematics corpus?
  • RQ5Is it feasible to train a complete, end-to-end neural automated theorem prover that generalizes across diverse mathematical domains?

Key findings

  • Holophrasm proves 14.3% of the 2,720 test theorems in Metamath's set.mm module, achieving a 14.3% success rate on unseen propositions.
  • The relevance network achieves 55.3% top-1 accuracy, 72.8% top-5 accuracy, and 87.4% top-20 accuracy in selecting relevant theorems.
  • The generative network achieves 57.5% accuracy in predicting correct substitutions for all unconstrained variables when using a beam width of 20.
  • The payoff network achieves 77.6% classification accuracy on test examples, significantly outperforming a baseline negative prediction of 62.1%.
  • The system discovers proofs with a median of 17 search passes, indicating efficient convergence when successful.
  • Performance is strongest on early theorems, with 45.1% success on the first 457 test theorems in the database, suggesting a learning bias toward simpler or earlier proofs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.