3D-Prover: Diversity Driven Theorem Proving With Determinantal Point Processes

Sean Lamont, Christian Walder, Amir Dezfouli, Paul Montague, Michael Norrish

TL;DR

3D-Prover is a novel filtering mechanism designed to prune the massive search space of automated theorem proving by selecting a diverse and high-quality subset of candidate tactics. By leveraging Determinantal Point Processes (DPPs) and learned models that predict the "environmental effect" of a tactic, it significantly improves proof success rates and computational efficiency for state-of-the-art Large Language Model (LLM) provers.

The Challenge of Automated Theorem Proving

In the realm of Interactive Theorem Proving (ITP), an AI "prover" attempts to find a sequence of commands—called tactics—to verify a mathematical statement. This presents a "grand challenge" for AI due to the astronomical size of the search space. At every step, an LLM might generate dozens of candidate tactics, leading to an intractable branching factor.

Example of tactic branching and semantic redundancy in theorem proving.

The authors identify two major inefficiencies in current systems:

  1. Semantic Redundancy: Many tactics look different syntactically but lead to the exact same proof state semantically. Exploring both wastes valuable compute time.
  2. High Failure Rates: Approximately 75-85% of generated tactics result in execution errors.

Current search algorithms often expand the "Top-K" most likely tactics based purely on the LLM's internal confidence. However, this naive approach fails to account for whether those tactics are actually useful or just minor, redundant variations of one another. 3D-Prover aims to prune this search tree before expensive execution by picking a subset of tactics that are both likely to succeed and semantically distinct.

Methods: The 3D-Prover Approach

The 3D-Prover framework operates in two main stages:

1. Transition-Aware Representation Learning

The authors first train a "Transition Model" to predict what happens when a tactic is applied to a specific goal. This model takes a goal and a tactic as input and predicts three key outcomes:

  • Status ($\hat{s}$): Will the tactic succeed or fail?
  • Time ($\hat{\tau}$): How long will it take to execute?
  • Output ($\hat{o}$): What will the resulting proof state (or error message) look like?
Architecture for learning transition-aware tactic embeddings.

By training this model on synthetic data from previous proof attempts, the system learns semantic embeddings ($e$) that capture the actual effect of a tactic on the environment, rather than just its surface-level text.

2. Diversity-Driven Filtering with DPPs

To select the best $K$ tactics to actually execute, 3D-Prover uses Determinantal Point Processes (DPPs). DPPs are a probabilistic framework designed for subset selection that inherently balances two competing factors:

  • Quality ($q$): Derived from the LLM's original confidence, combined with the predicted success probability and execution time.
  • Diversity ($\phi$): Based on the similarity of the learned semantic embeddings.

The DPP selects a subset that maximizes the geometric "volume" spanned by these quality-scaled embeddings. This effectively favors a set of tactics that explore entirely different parts of the potential proof space, minimizing redundant work.

Datasets and Evaluation

The authors evaluated 3D-Prover by augmenting two popular open-source provers (ReProver and InternLM2.5-Step-Prover) on standard benchmarks:

  • miniF2F: A benchmark of 488 formal math problems ranging from high school competitions to undergraduate level.
  • LeanDojo: A large-scale environment for theorem proving in the Lean 4 language.
  • Synthetic Transitions: A dataset of ~500,000 tactic applications generated from ReProver's attempts on the miniF2F validation set, used to train the transition models.

Key Insights

  • Semantics > Syntax: Lexical similarity (how words look) is a poor proxy for proof state similarity. 3D-Prover's embeddings demonstrate that tactics with very different text can be semantically identical, and vice versa.
  • Learning from Failure: Most automated theorem proving research focuses only on successful proofs. 3D-Prover leverages the rich synthetic data of failed attempts to learn what not to do and how to recognize diverse error types.
  • Modular Augmentation: 3D-Prover is not a standalone prover; it is a lightweight "plugin" that can augment any existing tactic generator. It adds minimal overhead (~0.9% time overhead) while saving significant compute by avoiding useless tactic executions.
  • The "3D" in 3D-Prover: The name refers to the three dimensions of its filtering mechanism: Error likelihood, Execution time, and Semantic diversity.

Key Results

3D-Prover consistently outperformed standard "Top-K" and random baselines across multiple metrics:

  • Proof Success Rate: On the miniF2F-test benchmark, 3D-Prover improved ReProver's Pass@1 rate from 22.4% to 24.4% (an 8.9% relative gain). On LeanDojo, it improved the proof rate from 31.1% to 32.3%.
  • Tactic Success Rate: By filtering out likely errors before they run, the success rate of the tactics actually executed jumped dramatically from 39.0% to 56.5%.
  • Efficiency: Average execution time per tactic dropped significantly (e.g., from 206ms to 136ms), as the model learned to avoid computationally "heavy" tactics when they were unlikely to be productive.
  • Diversity: 3D-Prover resulted in a higher percentage of unique subgoals per node, confirming it successfully avoids redundant search paths.

Limitations and Future Work

While highly effective, the approach has limitations. The most extensive ablations were performed on the smaller ReProver (300M parameters) due to the high computational cost of running thousands of proof attempts on larger models. Additionally, performance is sensitive to the hyperparameters weighting error, time, and diversity, and a comprehensive sweep was prohibitively expensive. Finally, while the transition model showed some ability to handle out-of-distribution proofs, it remains fundamentally tied to the behavior of the underlying tactic generator it was trained on. Future work may explore more "universal" transition models that generalize across different provers.

Summary updated

BibTeX
@inproceedings{lamont2025d,
  author = {Sean Lamont and Christian Walder and Amir Dezfouli and Paul Montague and Michael Norrish},
  title = {{3D-Prover: Diversity Driven Theorem Proving With Determinantal Point Processes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=qTUZJUXt0J},
}
Figure