[Paper Review] Hammering Mizar by Learning Clause Guidance
This paper presents a 70% improvement in real-time proof performance of the E automated theorem prover on the entire Mizar Mathematical Library by integrating machine learning for internal clause selection guidance. Using iterative learning from proof traces—via XGBoost on hashed clause features—the system evolves increasingly effective proof strategies, demonstrating that end-to-end learned internal guidance outperforms hand-tuned strategies in large-theory formalization.
We describe a very large improvement of existing hammer-style proof automation over large ITP libraries by combining learning and theorem proving. In particular, we have integrated state-of-the-art machine learners into the E automated theorem prover, and developed methods that allow learning and efficient internal guidance of E over the whole Mizar library. The resulting trained system improves the real-time performance of E on the Mizar library by 70% in a single-strategy setting.
Motivation & Objective
- To improve real-time performance of automated theorem provers on large interactive theorem proving (ITP) libraries.
- To address the limitation of existing hammers, which focus only on premise selection and not on internal proof search guidance.
- To develop a scalable, efficient method for learning internal clause selection in saturation-based ATPs like E over massive libraries such as Mizar.
- To evaluate whether end-to-end machine learning can surpass human-engineered strategies in large-theory proof search.
Proposed method
- Integrates XGBoost gradient boosted trees into the E theorem prover to guide given clause selection using learned weights.
- Uses feature hashing to reduce high-dimensional, handcrafted clause features to a manageable 65,536-dimensional space, preserving model performance while improving efficiency.
- Applies a MaLARea-style feedback loop: run E on the Mizar library, extract positive/negative training examples from successful proofs, retrain the classifier, and reapply the improved strategy.
- Trains models on 63 million proof search examples from 26,107 problems, with increasing tree depth (9, 12, 16) to assess impact on performance.
- Employs a portfolio strategy combining baseline E strategy with learned models (denoted ⊕) to improve robustness and solution coverage.
- Measures inference speed, model size, and training time to evaluate scalability and efficiency of the learned guidance system.
Experimental results
Research questions
- RQ1Can machine learning-based internal clause selection significantly improve the real-time performance of saturation-based ATPs on large ITP libraries like Mizar?
- RQ2Does end-to-end learning of clause selection, without handcrafted features, outperform traditional feature engineering in large-scale proof search?
- RQ3How does iterative learning from proof traces affect the cumulative performance of an ATP over multiple rounds of strategy refinement?
- RQ4Can feature hashing maintain high model accuracy while enabling scalable training on millions of proof examples?
- RQ5What is the performance gain of a learned strategy compared to a human-tuned baseline strategy in terms of problems solved under strict time limits?
Key findings
- The best learned strategy, E ⊕ M₁₆³, solved 26,107 problems in 60 seconds, a 70% improvement over the baseline strategy in real-time performance.
- The strategy trained with tree depth 16 outperformed the baseline by 70% in a single 10-second time limit, solving significantly more problems than any prior E strategy.
- The portfolio strategy (E ⊕ M₁₆³) solved 18.3% more problems than a 6-strategy portfolio of previously evolved E strategies, each run for 10 seconds.
- Despite a 15% drop in inference speed with deeper trees, the higher accuracy of deeper models led to better real-time performance, indicating that model complexity is justified.
- The model trained with 200 trees and a hash base of 2¹⁵ achieved high performance with 40GB of data and 12 CPU days of training, demonstrating scalability on large-scale proof corpora.
- Iterative learning continued to yield improvements beyond the first iteration, with each subsequent loop adding new solvable problems and refining the strategy.
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.