Automated theorem provers (ATPs) are essential tools in formal verification, yet they face a significant "needle in a haystack" challenge. To prove a new conjecture, these systems must select a small, relevant subset of premises from mathematical corpora containing millions of facts. While heuristic algorithms like the Sumo Inference Engine (SInE) are used to filter these premises, their performance is highly sensitive to parameters such as tolerance thresholds and search depth. Historically, tuning these parameters has required manual intervention or computationally expensive grid searches. This paper introduces a probabilistic framework using Bayesian Optimization (BO) with Gaussian Processes (GPs) to automate and optimize this process efficiently.
Methodology: Probabilistic Parameter Tuning
The authors frame parameter tuning as a black-box optimization problem. Instead of exhaustive testing, they employ a Gaussian Process with a Matérn kernel to build a probabilistic model of the objective function. To navigate the search space, the framework uses the Gaussian Process-Upper Confidence Bound (GP-UCB) acquisition function, which balances the exploitation of known high-performing regions with the exploration of uncertain areas.
Two key innovations facilitate this approach:
- Continuous Approximation: Although SInE includes discrete parameters (like search depth), the authors treat them as continuous variables within the GP, rounding to the nearest integer only during evaluation. This allows the use of standard gradient-based optimization within the BO loop.
- Custom Reward Metric: Optimizing for the raw number of theorems proved creates a sparse, "step-like" signal that is difficult for optimizers to follow. The authors developed a continuous metric based on precision and recall, rewarding the selection of necessary premises while exponentially penalizing the inclusion of irrelevant ones.
Experimental Results
The framework was evaluated using The Archive of Formal Proofs (AFP), targeting 10 distinct articles with varying complexity. Ground truth for the required premises was derived from historical Sledgehammer logs.
Key Findings
- Efficiency: The BO framework identified optimal parameter sets in under 9 minutes on average, significantly faster than the estimated 24+ hours required for a traditional grid search.
- Effectiveness: The optimized SInE parameters allowed the Sledgehammer prover to successfully solve 85.3% of test conjectures. As shown in the results table, success rates for individual articles reached as high as 95%.
- Corpus Sensitivity: The "Optimal parameters" column in the results table highlights that the best settings for $t$ (tolerance), $g$ (generality), and $k$ (depth) vary significantly across different mathematical theories. This confirms that dynamic, per-corpus tuning is superior to using static default values.
- Superiority over Baselines: In head-to-head comparisons, the BO approach vastly outperformed simpler strategies like $\epsilon$-greedy search, which struggled to move beyond initial random configurations within the same time constraints.
Conclusion and Future Work
By transforming heuristic tuning into a smooth optimization landscape, this research demonstrates that Bayesian Optimization can dramatically improve the efficiency and power of automated theorem provers. While the current metric relies on historical proof logs—potentially underestimating the prover's ability to find alternative proofs—the results are a strong proof of concept. Future work will focus on extending this framework to other provers like Vampire and larger libraries such as the TPTP (Thousands of Problems for Theorem Provers).
Summary updated