Abstract
This paper explores the integration of deep neural networks into the internal search loop of the E automated theorem prover. By utilizing neural models to prioritize mathematical clauses, the researchers successfully navigated the combinatorial explosion inherent in proof search. The system proved 1,866 "hard" theorems from the Mizar Mathematical Library that had previously resisted automation, increasing the library's automated coverage from 56% to 59%.
Introduction
Automated Theorem Provers (ATPs) are essential for mathematical verification and software correctness. However, they face the "combinatorial explosion" problem: starting from axioms, they generate millions of intermediate clauses to find a proof. Traditional provers like E rely on hand-crafted heuristics to select which clauses to process next. While efficient, these heuristics often lack the depth required for complex proofs. This research introduces deep learning as an internal guidance mechanism to provide "intuition" during the search process.
Neural Guidance Architectures
The researchers evaluated three primary neural architectures for clause selection:
- Simple CNNs: 1D convolutional networks treating formulas as token sequences.
- WaveNets: Complex convolutional models using dilated layers to capture long-range dependencies within long mathematical formulas.
- Recursive Neural Networks: Models that process formulas based on their logical syntax tree structure.
The models were designed to predict the usefulness of a clause given the current conjecture. As shown in the architecture overview, clause and negated conjecture tokens are embedded and concatenated before passing through fully connected layers to produce a score.
The use of dilated convolutions in the WaveNet architecture (illustrated above) allows the model to have a much larger receptive field, which is crucial for understanding the global structure of complex mathematical expressions.
The Switched Search Strategy
A significant challenge is the inference latency of deep networks (milliseconds) compared to E's native heuristics (microseconds). To mitigate this, the authors implemented a "switched" two-phase approach:
- Phase 1 (20 minutes): A hybrid search where the neural network works alongside traditional heuristics to identify high-quality "stepping stone" clauses.
- Phase 2 (10 minutes): The prover switches entirely to its fastest traditional heuristics to attempt to "close" the proof using the clauses identified in Phase 1.
Experimental Results
The models were trained on 32,521 "easy" theorems with known proofs from the Mizar Mathematical Library (MML) and tested on a "hard" set of 25,361 theorems that had never been solved by an ATP.
Key findings include:
- New Proofs: The system solved 7.36% (1,866) of the hard theorems, a significant milestone for automated reasoning.
- Accuracy vs. Speed: While WaveNet was the most accurate (81.5% predictive accuracy), simpler CNNs often performed better in real-time search because their faster inference allowed for broader exploration.
- Hybridization: Neural guidance was most effective when interleaved with simple heuristics like FIFO, preventing the search from becoming trapped in local optima.
Conclusion
This work demonstrates that deep learning can provide effective internal guidance for automated theorem proving. While computational bottlenecks remain, the success in solving previously intractable theorems suggests that neural-guided search is a promising path toward more capable automated reasoning systems. Future work will focus on specialized hardware acceleration and moving toward semantic rather than purely syntactic representations of mathematics.
Summary updated