[Paper Review] HolStep: A Machine Learning Dataset for Higher-order Logic Theorem Proving
This paper introduces HolStep, a large-scale machine learning dataset of 2.2 million higher-order logic (HOL) proof steps from formalized mathematics, including the Kepler conjecture and HOL Light's multivariate analysis library. The dataset enables training models to classify proof steps as useful or irrelevant, with baseline models achieving up to 83% accuracy in predicting usefulness without conjecture context, demonstrating the feasibility of machine learning for theorem proving beyond simple pattern matching.
Large computer-understandable proofs consist of millions of intermediate logical steps. The vast majority of such steps originate from manually selected and manually guided heuristics applied to intermediate goals. So far, machine learning has generally not been used to filter or generate these steps. In this paper, we introduce a new dataset based on Higher-Order Logic (HOL) proofs, for the purpose of developing new machine learning-based theorem-proving strategies. We make this dataset publicly available under the BSD license. We propose various machine learning tasks that can be performed on this dataset, and discuss their significance for theorem proving. We also benchmark a set of simple baseline machine learning models suited for the tasks (including logistic regression, convolutional neural networks and recurrent neural networks). The results of our baseline models show the promise of applying machine learning to HOL theorem proving.
Motivation & Objective
- To develop a large-scale, publicly available dataset of higher-order logic proof steps to enable machine learning research in automated theorem proving.
- To address the lack of machine learning application in filtering or generating intermediate proof steps in interactive theorem proving systems.
- To benchmark baseline models for proof step usefulness classification, focusing on character and token-level encodings.
- To explore the potential of deep learning in improving search efficiency and guidance in HOL-based theorem proving.
Proposed method
- The dataset is constructed from 11,400 proofs in HOL Light and the formal proof of the Kepler conjecture, containing 2,013,046 training and 196,030 testing examples.
- Each proof step is labeled as useful or non-useful based on its role in the final proof, with both human-authored and automated steps included.
- Input representations include raw character sequences and tokenized statements to evaluate encoding sensitivity.
- Three baseline models are trained: logistic regression, 1D convolutional neural networks (CNNs), and a CNN-LSTM architecture for sequence modeling.
- Models are evaluated on unconditioned (no conjecture) and conjecture-conditioned classification tasks to assess context utilization.
- Performance is measured via accuracy, with ablation studies on input encoding and conditioning to analyze model behavior.
Experimental results
Research questions
- RQ1Can machine learning models effectively classify proof steps as useful or non-useful in higher-order logic theorem proving?
- RQ2How do different input encodings (character vs. token) affect model performance in proof step usefulness prediction?
- RQ3To what extent can models leverage conjecture context to improve usefulness classification?
- RQ4Can deep learning models capture meaningful patterns in proof statements beyond simple n-gram features?
- RQ5Why do certain architectures fail to improve upon simpler models in the presence of conjecture conditioning?
Key findings
- The unconditioned 1D CNN model achieves 82–83% accuracy in classifying proof step usefulness, demonstrating that character-level or token-level n-gram patterns are highly informative.
- The logistic regression model performs comparably to deep learning models, indicating that simple pattern matching is already effective for this task.
- The inclusion of conjecture context does not improve model performance and leads to faster convergence and earlier overfitting, suggesting poor utilization of contextual information.
- The CNN-LSTM model does not outperform the 1D CNN, indicating that models fail to meaningfully exploit sequential order in the input sequences.
- Token encoding reduces sequence length and may diminish the benefit of recurrent layers, leading to a significant performance drop in the CNN-LSTM model.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.