Skip to main content
QUICK REVIEW

[Paper Review] HOList: An Environment for Machine Learning of Higher-Order Theorem Proving

Kshitij Bansal, Sarah M. Loos|arXiv (Cornell University)|Apr 5, 2019
Logic, programming, and type systemsComputer Science46 references19 citations
TL;DR

HOList introduces a reinforcement learning environment and benchmark for higher-order theorem proving based on HOL Light, enabling deep learning-driven automated theorem proving. The system, DeepHOL, achieves strong performance on a large corpus of 29,462 theorems, proving 58% of training set theorems via deep reinforcement learning with tactic-level action spaces and curriculum learning.

ABSTRACT

We present an environment, benchmark, and deep learning driven automated theorem prover for higher-order logic. Higher-order interactive theorem provers enable the formalization of arbitrary mathematical theories and thereby present an interesting, open-ended challenge for deep learning. We provide an open-source framework based on the HOL Light theorem prover that can be used as a reinforcement learning environment. HOL Light comes with a broad coverage of basic mathematical theorems on calculus and the formal proof of the Kepler conjecture, from which we derive a challenging benchmark for automated reasoning. We also present a deep reinforcement learning driven automated theorem prover, DeepHOL, with strong initial results on this benchmark.

Motivation & Objective

  • To create a unified, open-source reinforcement learning environment for higher-order theorem proving to overcome fragmentation in existing theorem prover systems.
  • To establish a large-scale, practical benchmark based on HOL Light’s formalization of the Kepler conjecture and related mathematics.
  • To develop a deep learning-powered automated theorem prover, DeepHOL, capable of learning tactic selection and argument ranking through imitation and reinforcement learning.
  • To enable reproducible, scalable research in AI-driven formal reasoning by exposing modular APIs and proof management tools.
  • To demonstrate that neural networks can achieve competitive performance in complex, real-world formal mathematics without relying on handcrafted heuristics.

Proposed method

  • The framework is built as an instrumented version of the HOL Light theorem prover with a stable Python API for reinforcement learning integration.
  • Proofs are represented as sequences of tactic applications, with each action defined by a tactic and its arguments, enabling end-to-end learning of proof strategies.
  • A deep neural network, based on a WaveNet-like architecture with 128 filters per layer, is trained to predict the next tactic and its arguments using imitation learning and reinforcement learning.
  • The reinforcement learning loop uses a distributed proof search over 1,000 cores, with a timeout of 300 seconds and 100 explored proof states per theorem.
  • Argument ranking is explored in three variants: tactic-independent, tactic-dependent, and subgoal-level search to evaluate impact on proof coverage.
  • The system precomputes theorem embeddings for efficient proof search and uses randomized prover hyperparameters to increase proof diversity.

Experimental results

Research questions

  • RQ1Can a deep reinforcement learning agent learn to prove theorems in higher-order logic at scale using only tactic-level actions?
  • RQ2How does the choice of argument ranking strategy—tactic-independent vs. tactic-dependent—affect proof coverage and learning efficiency?
  • RQ3Can a neural network trained on human proofs generalize to prove new theorems in a large, real-world formalization like the Kepler conjecture?
  • RQ4To what extent can curriculum learning and distributed proof search improve the performance of a neural theorem prover?
  • RQ5Can a fully end-to-end learned prover achieve competitive performance compared to more complex state-of-the-art automated theorem provers?

Key findings

  • The 'Loop' reinforcement learning setup proved 5,679 out of 10,199 training set theorems (55.7%), demonstrating strong generalization on complex formal mathematics.
  • The 'Loop tactic dependent' variant achieved 5,518 proofs (54.1%), showing that tactic-aware argument selection improves learning efficiency.
  • The 'Loop on subgoals' variant proved 1,988 theorems (19.5%), but did not outperform the main loop, suggesting limited benefit from subgoal-level training in this setup.
  • The final model achieved 37.0% proof success rate on a held-out sample of 2,000 theorems from the Flyspeck dataset, indicating strong zero-shot generalization.
  • The system achieved 5,919 proofs on the union of core and complex corpora (58.0% of training set), showing scalability across diverse mathematical domains.
  • The use of precomputed theorem embeddings and randomized prover parameters significantly accelerated proof search and increased proof diversity.

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.