TL;DR for operators

An AI system can retrieve substantially more relevant knowledge without becoming proportionally better at completing its task. That distinction is central to DAPS, a dependency-aware premise selector for mathematical theorem proving developed by Chen and colleagues.1

On competition-style mathematical queries, DAPS achieves approximately seven times the premise recall of LeanHammer, a leading comparison system. Yet its absolute Recall@16 is only 13.84%. On more familiar mathematical queries, coverage is considerably higher.

DAPS improves retrieval by combining semantic search with typed relationships between mathematical declarations and training on groups of premises needed by the same proof. Its strongest downstream result raises verified proof success for Goedel-Prover-V2-8B from 49.90% to 54.03% at Pass@4. Another prover shows a smaller, less consistent benefit.

For operators building knowledge-intensive AI agents, the research supports testing dependency-aware retrieval when tasks require multiple interconnected pieces of evidence. It does not establish that adding a knowledge graph improves enterprise retrieval or that better search scores necessarily improve completed tasks.

A stronger retriever can still leave the task unsupported

Consider a technical assistant searching a large repository of procedures, definitions, and rules. It may retrieve documents discussing exactly the right subject while missing a prerequisite definition or exception that determines the correct answer.

The difficulty is not simply identifying relevant topics. It is recovering the particular collection of knowledge needed to complete the task.

Mathematical theorem proving makes this distinction measurable. A theorem may depend on previously established facts called premises. A retrieval system ranks candidate premises from a mathematical library, and Recall@16 measures the fraction of dependencies used in a reference proof that appear among its first 16 results.

The metric reveals how much supporting knowledge the system finds. It does not establish whether a model can construct a valid proof using that knowledge.

This distinction matters when evaluating richer retrieval architectures: relative improvements can be substantial while missing dependencies remain common.

Sevenfold improvement is not sevenfold coverage

DAPS was evaluated against MePo, ReProver, LeanHammer, and Qwen3-Embedding-8B across four retrieval benchmarks. The main results use a fixed budget of 16 premises and report means across three runs.

Retrieval benchmark DAPS Recall@16 LeanHammer Recall@16
Mathlib4-Random 66.01% 61.13%
Mathlib4-Heldout 78.74% 67.33%
DAPS-Collection 13.84% 1.98%
DAPS-Blueprint 42.21% 31.36%

Source: Section 5.2, Table 3. The Blueprint result uses DAPS after continual training on Blueprint data.

The strongest absolute result appears on Mathlib4-Heldout, where DAPS improves recall by 11.41 percentage points over LeanHammer. This benchmark holds out source files, providing a more demanding test than simply sampling familiar declarations.

DAPS-Collection presents a different challenge: competition-style queries drawn outside the main training distribution. DAPS achieves roughly seven times LeanHammer’s recall, but still misses approximately 86% of dependencies appearing in reference proofs within the top-16 retrieval budget.

The comparison demonstrates meaningful resistance to distribution shift, not comprehensive recovery of supporting knowledge.

A third setting extends the investigation toward research mathematics. The authors mine 53 Lean Blueprint projects containing 3,805 mathematical nodes, including 1,077 informal statements. After adaptation, DAPS reaches 42.21% recall on held-out Blueprint nodes.

These nodes come from projects represented in the mined corpus. The result therefore does not establish performance on entirely unseen research projects.

Dependency relationships supply information embeddings miss

DAPS treats mathematical relevance as more than textual resemblance.

Its foundation is a typed dependency graph constructed from Mathlib4, containing more than 275,000 declarations and approximately 6.5 million edges. These connections represent relationships involving proofs, definitions, typeclasses, instances, source-file containment, and imports.

A declaration’s neighbors can reveal its mathematical role even when its text differs considerably from the query.

DAPS combines three elements:

  1. Semantic representations. A text encoder, initialized from MGTE and warmed up through contrastive learning, represents mathematical statements.
  2. Structural neighborhood encoding. The system examines sampled one-hop and two-hop graph neighborhoods, incorporating declaration categories, dependency distances, graph positions, and directed connectivity.
  3. Group-level contrastive learning. Training encourages several premises associated with the same proof to rank above negative candidates, rather than treating relevance exclusively as independent query-premise pairs.

The third element is particularly significant. A proof can require several different declarations performing complementary functions. Training only on individual positive matches does not directly reflect that multi-premise retrieval objective.

DAPS also uses continual training to adapt structural representations from Mathlib4 toward Blueprint dependencies.

The graph supplies complementary evidence; it does not replace semantic understanding or verify logical compatibility among the returned premises.

Ablations show where the retrieval gains originate

The component ablations test whether DAPS benefits from its structural design rather than merely from a stronger text encoder.

On Mathlib4-Heldout, removing structural fusion reduces Recall@32 from 89.31% to 43.85%. Replacing group-level contrastive learning with single-positive InfoNCE reduces it to 56.00%.

On DAPS-Collection, removing structural fusion reduces Recall@32 from 24.38% to 5.53%.

These are substantial changes, especially under distribution shift. They support the paper’s explanation that structural dependencies and multi-positive training contribute materially to retrieval performance.

There are two important measurement qualifications.

First, these ablations use a single fixed seed, unlike the three-run main retrieval comparisons. Second, some neighborhood variants alter several architectural properties simultaneously, limiting attribution to any one component.

The ablation figures also use Recall@32, not the Recall@16 budget in the main results table. Their purpose is to investigate architectural contributions, not to provide an interchangeable second estimate of headline retrieval performance.

Better premises produce smaller, prover-dependent gains

The more consequential test is whether retrieved premises improve completed proofs.

On miniF2F-test, the authors supply up to 16 retrieved Mathlib premises to existing whole-proof LLM provers. Generated Lean proofs are independently checked using Kimina-Lean-Server.

Formal proof condition Pass@1 Pass@4
Goedel-Prover-V2-8B, no premises 36.48% 49.90%
Goedel-Prover-V2-8B, DAPS 39.96% 54.03%
DeepSeek-Prover-V2-7B, no premises 34.07% 48.23%
DeepSeek-Prover-V2-7B, LeanHammer 34.89% 49.19%
DeepSeek-Prover-V2-7B, DAPS 38.11% 49.06%

Source: Section 5.3, formal theorem proving comparison. Pass@4 measures success within four generated proof attempts.

For Goedel-Prover-V2-8B, DAPS increases Pass@4 by 4.13 percentage points compared with providing no retrieved premises.

For DeepSeek-Prover-V2-7B, DAPS produces the strongest Pass@1 result among compared selectors. But its Pass@4 of 49.06% is slightly below LeanHammer’s 49.19%.

The retrieval ranking therefore does not determine the downstream ranking. The prover must still identify, combine, and correctly use the supplied facts. Neither model was specifically trained to consume these retrieved premise lists.

An additional experiment evaluates informal mathematical proof generation using IMO-ProofBench. DAPS supplies the highest-scoring premise sets for four evaluated general-purpose LLMs, with relative improvements over their strongest alternative selectors ranging from 1.09% to 11.37%.

Here, natural-language problems are first converted into Lean statements for premise retrieval. The generated informal proofs are then assessed by an automated grader, not verified by the Lean kernel. The 0.15-point advantage for DeepSeek-V3.1 is sufficiently small that grading noise remains a concern.

As discussed in A Proof Can Pass and Still Mean the Wrong Thing, formal verification establishes correctness relative to a formalized statement; it does not independently establish that the statement captures the original task. The intermediate formalization step consequently matters when assessing an informal reasoning pipeline.

What knowledge-intensive AI systems can test

The business implication is a design hypothesis rather than a demonstrated deployment result.

For an enterprise assistant handling compliance questions, engineering documentation, or specialized research, the DAPS approach suggests representing relationships between evidence items explicitly: which policy depends on which definition, which procedure supersedes another, or which technical requirement depends on a prerequisite.

A retrieval team could then compare conventional semantic search with a hybrid retriever using typed relationships and jointly relevant evidence sets.

Three evaluation requirements follow from the paper:

  • Measure evidence coverage by difficulty. Rare or recently introduced knowledge deserves separate evaluation. DAPS improves the rarest-bucket premise hit rate on Mathlib4-Heldout from 39.4% to 50.1%, but the result is specific to mathematical declarations.
  • Test complete evidence sets. For tasks requiring multiple supporting items, assess whether the full necessary collection is retrieved rather than relying exclusively on individual-document relevance.
  • Evaluate validated task completion. An agent that retrieves more relevant policies or technical documents must still demonstrate more accurate final decisions, answers, or executable outputs under the same test conditions.

For an engineering support team, for example, adding graph-aware retrieval becomes an investment worth considering when missing prerequisites demonstrably cause failed resolutions. The acceptance criterion should be improved resolution accuracy on representative cases, not merely higher retrieval recall.

The study does not provide engineering-cost estimates, commercial return-on-investment measurements, or evidence that such gains transfer directly beyond Lean mathematical reasoning.

Structural retrieval has its own failure modes

The authors identify three recurring qualitative failure mechanisms in Appendix H.5.

Type over-generalization occurs when structural relationships lead to declarations sharing a typeclass but belonging to the wrong mathematical type. Lexical sibling drift favors thematically related premises over a more precisely matching sibling lemma. Topical subgraph drift identifies the appropriate research project but retrieves from the wrong nearby topic cluster.

These cases show that graph proximity can introduce errors alongside its benefits. The failure analysis illustrates mechanisms; it does not estimate their population frequencies.

Other boundaries remain material. Reference-premise recall is based on one available proof, although alternative valid proofs may use different dependencies. The experiments are confined to Lean 4 resources, two downstream formal provers, and selected mathematical benchmarks. Transfer to other proof assistants, unfamiliar knowledge domains, or iterative agent workflows is untested.

The evaluation standard must extend beyond retrieval

DAPS makes a strong empirical case that mathematical dependency structure and group-level relevance can improve premise selection. Its largest advantages arise where ordinary retrieval struggles with unfamiliar or structurally specialized knowledge.

Its downstream results are more qualified. Better premises sometimes improve verified proof success, but the magnitude depends on the prover and evaluation budget.

For AI-agent operators, the resulting standard is concrete: test whether richer evidence relationships improve retrieval, then separately establish whether that improvement changes validated task outcomes. DAPS advances the first requirement convincingly within its evaluated setting and provides bounded evidence for the second.


Cognaptus: Automate the Present, Incubate the Future.


  1. Zixuan Chen and Wenyuan Jiang and Junling Wang and Mrinmaya Sachan and Yinya Huang (2026). DAPS: Dependency-Aware Premise Selection for LLM Theorem Proving. arXiv:2610.41536. https://arxiv.org/abs/2610.41536 ↩︎