Introduction
Interactive Theorem Provers (ITPs) like Isabelle are essential tools for mathematicians and engineers to verify complex proofs and ensure the correctness of software and hardware systems. However, the manual effort required to construct these proofs is often prohibitive. To mitigate this, "hammers" like Sledgehammer are used to automate the process by exporting proof obligations to Automated Theorem Provers (ATPs).
Despite their utility, standard ATPs often struggle with the specific logical structures generated by Isabelle. While significant AI-driven ATP research has focused on datasets like Mizar, Isabelle presents unique challenges, including massive premise sets and complex type systems. "The Isabelle ENIGMA" represents a significant leap forward, tailoring the E automated theorem prover to the Isabelle environment through a combination of optimized search strategies, Graph Neural Networks (GNNs), and Gradient Boosted Decision Trees (GBDTs).
The Isabelle Sledgehammer Corpus
To address the lack of specialized benchmarks, the authors introduced the Isabelle Sledgehammer Corpus. This massive dataset consists of nearly 300,000 problems extracted from 1,902 Isabelle theory files. The problems are provided in both First-Order Formula (FOF) and Typed First-Order (TFF) formats.
Analysis of the corpus revealed that Isabelle problems are generally "flatter" than those found in Mizar, containing fewer variables but more ground terms. This structural difference suggests that Isabelle-specific problems are particularly amenable to instantiation-based proving methods, provided the prover can navigate the search space efficiently.
Methodology: The ENIGMA Architecture
The researchers implemented a multi-layered approach to enhance the E prover's intelligence:
1. ENIGMA Guidance
Internal search guidance is provided by LightGBM, a GBDT framework. This model learns to recognize "good" clauses—those likely to lead to a proof—based on features from previous successful proof searches. This allows the prover to prioritize the most promising logical paths.
2. Neural Premise Selection
With thousands of potential facts (premises) available for any given problem, selecting the most relevant ones is critical. The authors employed a 10-layer Graph Neural Network (GNN) to perform this filtering. A key innovation is the GNN's "property-invariant" nature; it analyzes the logical structure of formulas rather than relying on variable names, which are often inconsistent due to Isabelle's encoding process.
3. Strategy Optimization and Clausification
Using the BliStr/Tune system, the team evolved specific parameter sets (strategies) for the E prover. A major finding was that Isabelle problems benefit from more aggressive "clausification"—the process of breaking complex formulas into simpler logical units. By lowering the "definitional-cnf" threshold, the authors significantly reduced timeouts during the preprocessing phase.
4. Parental Guidance
To further prune the search space, a novel "fast rejection" filter was introduced. This system evaluates new clauses based on the features of their "parent" clauses, allowing the prover to discard low-quality inferences before they consume significant computational resources.
Key Insights: Anonymity and Iterative Learning
A central challenge in Isabelle is that constants are not named consistently across problems (e.g., the natural numbers might be represented by different symbols in different contexts). The ENIGMA models must therefore be anonymous, learning structural patterns—such as the relationship between a function and its inverse—regardless of the specific symbols used.
Furthermore, the system was developed using a "virtuous cycle" of training loops. The prover attempted to solve problems; successful proofs were used to retrain the ML models; and these improved models were then used to solve even more difficult problems in subsequent iterations.
Results and Performance
The final "Loop 10" ENIGMA system demonstrated a 25.3% performance improvement over the best previous version of E's auto-schedule. In holdout tests, it solved 7,395 problems within a 15-second limit. Notably, this single-strategy ENIGMA system outperformed established high-performance provers like CVC5 and Vampire, even when those systems were augmented with the authors' new neural premise selectors.
Limitations and Future Work
While the results are groundbreaking, several challenges remain:
- GNN Latency: Although GNNs are excellent for premise selection, they are currently too slow for internal clause guidance, which requires thousands of evaluations per second. Currently, the faster GBDTs handle this task.
- Type Generalization: The GNN currently learns embeddings for frequent types. Future iterations may incorporate a more structural approach by adding specific nodes to the graph to represent types, potentially improving generalization across different theories.
- Hardware Constraints: The sheer size of clause graphs can occasionally exceed GPU memory (32GB), leading the system to skip approximately 5% of the largest problems. Improving memory efficiency for these massive logical structures is a priority for future research.
Summary updated