potentialpaper

DAPS: Dependency-Aware Premise Selection for LLM Theorem Proving

Zixuan Chen, Wenyuan Jiang, Junling Wang, Mrinmaya Sachan, Yinya Huang

AI4Math @ ICML 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. DAPS is a dependency-aware premise retriever mining Lean Blueprint projects and Mathlib4, improves LLM theorem proving on research-level and OOD queries (+11.47 Recall@32 over LeanHammer) and boosts LLMs on IMO-ProofBench.

Abstract. LLM-based theorem proving in Lean 4 has advanced rapidly, but provers are difficult to leverage newly contributed lemmas, because retrieval skews toward popular foundational lemmas, leaving the right premises buried among hundreds of thousands of candidates. Existing neural selectors rank candidates by semantic similarity, with three intrinsic limitations: frequency-skewed retrieval, isolated pairwise ranking, and degradation on out-of-distribution queries such as competition problems and informal language. Given that mathematics is structured by dependencies rather than similarities, we restore this signal to both the training data and the model. We curate two underused dependency resources. We conduct the first systematic mining of 53 Lean Blueprint projects, a previously untapped corpus of 3,805 manually curated informal+formal nodes that capture rare, research-level premises absent from Mathlib4. We further pair it with the extraction of comprehensive, typed, multi-level Mathlib4 dependencies. We then introduce DAPS, a dependency-aware premise selector with a structural neighborhood encoder, a group-level contrastive objective, and a Mathlib-then-Blueprint adaptation procedure. DAPS reaches 78.74 Recall@16 on Mathlib4-Heldout (+11.41 over the strong selector LeanHammer) and widens the margin to 7×recall on competition-style queries. Downstream, its selected premises raise Goedel-Prover-V2-8B Pass@4 on miniF2F-test from 49.90 to 54.03 and improve all four general-purpose LLMs on the informal IMO-ProofBench (up to +11.4% relative). Project page: https://daps-eth.github.io/.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

FromAToBDateVersionSubmitted toPDFEvidence
30 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
13 May 2026AI4Math @ ICML 2026submittedAI4Math @ ICML 2026Accepted · Poster—[1]
Their titles, abstracts and, where both have a PDF, the text.Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:49 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper proposes DAPS, a dependency-aware premise selector for Lean 4 that augments text embeddings with dependency-graph structure (P1 frequency skew, P2 group-level relevance, P3 distribution shift). It contributes a mined corpus of 53 Lean Blueprint projects plus a typed Mathlib4 dependency graph, four retrieval benchmarks, and a model combining a structural neighborhood encoder, a group-level contrastive objective, and a Mathlib-then-Blueprint adaptation. It reports large Recall@32 gains (+11.47 over LeanHammer) and small IMO-ProofBench improvements.

The P1/P2/P3 diagnosis is clear and maps cleanly onto the design (cUuY, kEVu, Dkej). The Blueprint mining is a genuine, reusable data contribution (kEVu, Dkej). Retrieval gains are large, consistent, and fairly compared via re-trained baselines; ablations support the group-level objective (kEVu).

The gains stop at retrieval. Downstream IMO-ProofBench improvements are only +0.15 to +2.17, the paper's sole end-to-end evidence, and the retrieval-to-proving gap is never analyzed (all three reviewers). There is no end-to-end formal Lean proving loop. Precision/F1 is never reported, leaving kEVu's "high recall = more noise" concern unaddressed; Table 3 has no error bars; DAPS-Blueprint is thin (236 queries, 1.74 premises/query). Critically, kEVu's ByT5 ablation (DAPS-Collection 24.38→1.08) suggests the base encoder, not the dependency signal, may drive OOD gains — undermining the core narrative.

However, during the discussion period, the authors added end-to-end proving results, precision/F1 with error bars, and clarifications on the ByT5 ablation and DAPS-Blueprint scale. cUuY and Dkej confirmed their concerns were addressed and raised their scores (Dkej to direct acceptance); kEVu kept the original score citing an unspecified "limited contribution" and did not respond to a follow-up. On balance, I lean toward acceptance.

Final justification

The authors added end-to-end proving results, precision/F1 with error bars, and clarifications on the ByT5 ablation and DAPS-Blueprint scale. cUuY and Dkej confirmed their concerns were addressed and raised their scores (Dkej to direct acceptance); kEVu kept the original score citing an unspecified "limited contribution" and did not respond to a follow-up. On balance, I lean toward acceptance.

Area Chair TU5m · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper proposes DAPS, a dependency-aware premise selector for Lean 4 that augments text embeddings with dependency-graph structure (P1 frequency skew, P2 group-level relevance, P3 distribution shift). It contributes a mined corpus of 53 Lean Blueprint projects plus a typed Mathlib4 dependency graph, four retrieval benchmarks, and a model combining a structural neighborhood encoder, a group-level contrastive objective, and a Mathlib-then-Blueprint adaptation. It reports large Recall@32 gains (+11.47 over LeanHammer) and small IMO-ProofBench improvements.

The P1/P2/P3 diagnosis is clear and maps cleanly onto the design (cUuY, kEVu, Dkej). The Blueprint mining is a genuine, reusable data contribution (kEVu, Dkej). Retrieval gains are large, consistent, and fairly compared via re-trained baselines; ablations support the group-level objective (kEVu).

The gains stop at retrieval. Downstream IMO-ProofBench improvements are only +0.15 to +2.17, the paper's sole end-to-end evidence, and the retrieval-to-proving gap is never analyzed (all three reviewers). There is no end-to-end formal Lean proving loop. Precision/F1 is never reported, leaving kEVu's "high recall = more noise" concern unaddressed; Table 3 has no error bars; DAPS-Blueprint is thin (236 queries, 1.74 premises/query). Critically, kEVu's ByT5 ablation (DAPS-Collection 24.38→1.08) suggests the base encoder, not the dependency signal, may drive OOD gains — undermining the core narrative.

However, during the discussion period, the authors added end-to-end proving results, precision/F1 with error bars, and clarifications on the ByT5 ablation and DAPS-Blueprint scale. cUuY and Dkej confirmed their concerns were addressed and raised their scores (Dkej to direct acceptance); kEVu kept the original score citing an unspecified "limited contribution" and did not respond to a follow-up. On balance, I lean toward acceptance.

Final justification

The authors added end-to-end proving results, precision/F1 with error bars, and clarifications on the ByT5 ablation and DAPS-Blueprint scale. cUuY and Dkej confirmed their concerns were addressed and raised their scores (Dkej to direct acceptance); kEVu kept the original score citing an unspecified "limited contribution" and did not respond to a follow-up. On balance, I lean toward acceptance.

2 comments
Authors · CommentOpenReview ↗

Response to Area Chair

We thank the Area Chair and the reviewers for their time and valuable questions. We thank reviewers for recognizing the clarity and significance of the problem identification (cUuY, kEVu, Dkej), the novel and valuable data contribution (cUuY, kEVu), the justified model design (cUuY, Dkej), the credible experiments (kEVu), and the consistent performance gains (cUuY).

During the rebuttal we added substantial new evidence, which we summarize here, and the corresponding point-by-point details can be found in each reviewer's response thread.

W1. "The gains stop at retrieval. Downstream IMO-ProofBench improvements are only +0.15 to +2.17, the paper's sole end-to-end evidence, and the retrieval-to-proving gap is never analyzed (all three reviewers)."

We analyze this gap in both informal and formal theorem proving. We add an additional, latest API-based large reasoning model, Gemini-3.6-Flash, and DAPS remains the best selector across all provers, showing the improvement is consistent across models of different scales and architectures. Together with our new formal-proving results (please see W2), where DAPS-selected premises do raise proof success while prior high-recall selectors (e.g., LeanHammer) do not, this shows the gains do not stop at retrieval. The retrieval-to-proving gap is a general property of current provers, and DAPS is the selector that best converts retrieval quality into proving success.

W2. "There is no end-to-end formal Lean proving loop."

We add a whole-proof formal Lean evaluation with Goedel-Prover-V2-8B and DeepSeek-Prover-V2-7B (Table R1). DAPS-selected premises consistently improve proof success over the no-premise baseline, whereas a high-recall selector such as LeanHammer does not, showing that retrieval gains do translate into proving and that the remaining gap is a property of the prover, not of the selector.

W3. "Precision/F1 is never reported, leaving kEVu's "high recall = more noise" concern unaddressed; Table 3 has no error bars."

We extend Table 3 with Precision, Recall, and F1 at k = 16 and 32 over three seeds. DAPS attains the highest precision on every benchmark, i.e., less noise rather than more.

W4. "DAPS-Blueprint is thin (236 queries, 1.74 premises/query)."

(1) The rare-premise claim does not rest on DAPS-Blueprint alone. The per-frequency analysis over 2,000 queries (Mathlib4-Random/Heldout, Fig. 4b,c) shows DAPS leading in every frequency bucket, including the rarest. (2) The construction of DAPS-Blueprint is restricted by the limited number of open-source blueprint projects and our quality curation, but we are among the first to use Lean Blueprint as a testbed for rare-premise selection, a contribution Reviewer kEVu also recognized. (3) We will flag this in the limitations section, and the growing community corpus can extend it.

W5. "kEVu's ByT5 ablation (DAPS-Collection 24.38→1.08) suggests the base encoder, not the dependency signal, may drive OOD gains — undermining the core narrative."

A factorized ablation shows structural fusion contributes +18.85 on DAPS-Collection versus +8.75 for the encoder warm-up, and the ByT5 collapse is an undertraining artifact. The dependency signal, not the backbone, drives the out-of-distribution gains.

Authors · CommentOpenReview ↗

Summary of Rebuttal to Area Chair

Dear Area Chair,

We thank you for your time and effort in reviewing our paper. Based on your main concerns, we have addressed them point by point. Below is a summary with some highlights.

End-to-end evidence. To strengthen the end-to-end evidence in this paper, we have added: (1) extensive formal theorem proving experiments on miniF2F with two representative whole-proof generation LLM theorem provers, Goedel-Prover-V2-8B and DeepSeek-Prover-V2-7B, reporting pass@1, pass@2, pass@4, compared against 6 premise selectors and a no-premise baseline; and (2) an additional frontier LLM, Gemini-3.6-Flash, for informal theorem proving on IMO-ProofBench. DAPS achieves the best proving performance in nearly all settings, outperforming strong selectors such as LeanExplore (54.03 vs. 52.36) and LeanHammer (54.03 vs. 48.93) at pass@4 with Goedel-Prover-V2-8B.

The retrieval-to-proving gap. The informal and formal theorem-proving results also indicate that a non-negligible part of the gap between retrieval performance and proving performance stems from the generally weak in-context premise-use ability of current LLMs. The clue is shown in Table R1, where LeanHammer has strong retrieval performance yet underperforms the no-premise baseline on theorem proving (Goedel-Prover-V2-8B, pass@4: LeanHammer 48.93 vs. w/o premises 49.90). In contrast, premises selected by DAPS do translate the retrieval gain into a theorem-proving gain.

Precision/F1 and error bars. Moreover, we expand Table 3 with precision@32 and macro-F1@32, and precision@16, recall@16, and macro-F1@16 (recall@32 was already reported). We also add error bars by re-running each method for three independent trials with different global random seeds and report mean ± standard deviation. DAPS is consistently the strongest on precisions and F1s, so these metrics indicate that the premises selected by DAPS are not noisier but less noisy. Moreover, DAPS's lead holds at the tighter top-16 budget, indicating that the gold premises are ranked near the top of the selection rather than padding the tail.

DAPS-Blueprint. The scale of DAPS-Blueprint is currently limited by the small number of open-source Blueprint projects and our careful quality curation. Nevertheless, to our knowledge, DAPS-Blueprint is among the first to tackle premise selection with Blueprint projects, and the benchmark can be extended as the community corpus grows. Despite the limited data scale, the extended Table 3 shows that DAPS consistently outperforms the compared baselines on precision/recall/F1 at both @16 and @32, strong evidence that DAPS helps under distribution shift (P3). In addition, Fig. 4b,c demonstrate DAPS’s benefit under frequency skew (P1).

DAPS-Collection ablation. The 24.38 → 1.08 drop raised by Reviewer kEVu does not imply that the generalization comes from the base encoder. The factorized ablation in Table 14 shows that removing the encoder warm-up lowers 24.38 to 15.63, while removing the structural fusion (encoder only) lowers it to 5.53. That is, without DAPS’s structural fusion, performance drops by 18.85 points, severely harming out-of-distribution generalization on DAPS-Collection. The result is close to 4.07 obtained when replacing MGTE with frozen ByT5, showing the backbone is not the driver. The extremely low 1.08 from the warmed-up ByT5 is likely due to insufficient warm-up: we aligned its training time with MGTE, whereas ByT5 has an encoder-decoder architecture with roughly doubled parameters and is thus undertrained. Therefore, the ablation results also support frequency skew (P1) and distribution shift (P3).

We thank you and all reviewers for recognizing the paper’s contribution: a clear problem diagnosis and method design, genuine and reusable data, and credible, supportive experiments. We hope this paper offers useful insights for the growing community on premise selection as new theorems continue to be added.

Best regards,

The authors of submission #10016

Reviewer DkejOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
4/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes DAPS, a premise selector for Lean theorem proving that augments text-based premise retrieval with dependency-graph structure from Mathlib4 and mined Lean Blueprint projects. It has a well-motivated diagnosis of frequency skew, group-level premise relevance, and distribution shift in existing selectors. Its main empirical contribution is strong Recall@K performance across Mathlib and out-of-distribution retrieval benchmarks, with smaller but positive gains in downstream informal proving.

Strengths and weaknesses

Strengths

  1. The problem is important and timely. Helping theorem provers use newly contributed or rare lemmas is a real bottleneck for retrieval-augmented formal reasoning, and can in principle help provers evolve/adapt with a growing database, which connects to real-world theorem proving exercises in the current field.

  2. The structural neighborhood encoding, degree/type/hop features, and the group-level contrastive loss are well aligned with and flow naturally from the paper’s motivation. The retrieval results are strong, especially Recall@32 on Mathlib4-Heldout and DAPS-Collection. The ablations support the importance of the group-level objective and graph structure. It also includes qualitative failure analysis rather than only success cases.

Weaknesses

  1. The paper relies heavily on Recall@K as the main metric; stronger evidence would include more formal proof success rates or integration with actual Lean proof generation systems. The downstream theorem-proving gains are also modest compared with the retrieval gains.

  2. The role of the formalizer in informal-query adaptation is under-analyzed; errors from F(qnl)=q~F(q_{\mathrm{nl}})=\tilde q may strongly affect retrieval and downstream proof quality.

Questions
  1. Can you clarify whether Blueprint projects are split by node or by project? Seems that a project-level split might better test generalization to unseen research areas.

  2. I particularly liked the paper's emphasis on retrieving newly introduced and infrequently used lemmas. This direction appears highly relevant for emerging self-evolving or agentic theorem-proving systems, where verified lemmas are continuously added to a growing library (e.g., LEGO-Prover and more recent agentic proving frameworks [1] [2]). The authors may consider citing and/or discussing some works along this line in their related work section.

[1] Liu, Junqi, et al. "Numina-Lean-Agent: An Open and General Agentic Reasoning System for Formal Mathematics." arXiv preprint arXiv:2601.14027 (2026).

[2] Kumarappan, Adarsh, et al. "Leanagent: Lifelong learning for formal theorem proving." International Conference on Learning Representations. Vol. 2025. 2025.

Limitations

yes

Final justification

The authors have provided a very comprehensive rebuttal that sufficiently addressed most of my concerns. I appreciate the new results and clarifications. Specifically:

  • W1 and W2 have been addressed. The authors promised to add the new experiments and analyses into the paper, which I believe will strengthen it a lot.
  • Q1 and Q2 were originally just questions anyways, yet the authors also provided clarifications and promised to follow the suggestions. I think that would be beneficial as well.

While the downstream gains are still not that impressive, I believe this work already meets the bar of acceptance. and its publication can advise and inspire future works along this line. I have raised my original scores and subscores correspondingly, to directly recommend acceptance.

Formatting concerns

no

7 comments
Authors · CommentOpenReview ↗

Response to Reviewer Dkej

W1. "The paper relies heavily on Recall@K as the main metric; stronger evidence would include more formal proof success rates or integration with actual Lean proof generation systems. The downstream theorem-proving gains are also modest compared with the retrieval gains."

Response to W1. Thank you for raising the concerns. We address them point by point as follows.

(1) Reliance on Recall@K metric.

We re-run each method for three independent trials with different global random seeds and report mean ± standard deviation, and we extend Table 3 with precision (P@k), recall (R@k), and Macro-F1 (F1@k) at both k = 16 and k = 32 across all four benchmarks. ReProver, LeanHammer, and Qwen3-Embedding-8B are deterministic at inference given their retrained checkpoints, so repeated runs are identical (std = 0). MePo's variance comes from its internal traversal ordering, and DAPS's from dynamic subgraph sampling. We report the results in the extended Table 3 below, split into four per-dataset tables.

  • Across every benchmark and budget, DAPS attains the best precision, recall, and F1, and its margins far exceed the standard deviations (e.g., on Mathlib4-Random, R@32 = 80.68 ± 0.67 vs. 73.99 for LeanHammer), so the gains are robust to random variation rather than artifacts of a single run.
  • The added precision numbers directly address the noise concern. DAPS achieves the highest precision of any selector on every benchmark and budget, so for a fixed context it feeds the prover fewer irrelevant premises, as DAPS improves precision and recall simultaneously rather than trading one for the other. Precision also increases as the budget tightens from k = 32 to k = 16 (e.g., P@16 = 37.60 vs. P@32 = 25.71 on Mathlib4-Random), so a smaller budget yields even less noise while preserving the recall lead.
  • On the choice of k = 32, the budget is operationally motivated by deployment: a downstream prover consumes only a bounded premise list within its context window, and our downstream experiments (Table 4 and the formal-proving results) use 16 in-context premises. We therefore report both k = 16 and k = 32. Statistically, 32 is also on the order of the average number of gold premises per query (≈ 12.2 on Mathlib4-Random, ≈ 8.1 on Mathlib4-Heldout, ≈ 27.3 on DAPS-Collection, and ≈ 1.7 on DAPS-Blueprint), so a budget of 32 is large enough for Recall@k to meaningfully measure coverage. The higher recall on DAPS-Blueprint than on DAPS-Collection follows from its much smaller gold set (≈ 1.7 vs. ≈ 27 premises per query). The correspondingly low absolute precision on Blueprint (P@32 ≈ 2.4%) is a direct consequence of this small gold set, since precision@32 is upper-bounded by ≈ |gold|/32, and does not indicate excessive noise.

We will include these results and analyses in our revised manuscript.

Table 3 - Mathlib4-Random.

P@16 R@16 F1@16 P@32 R@32 F1@32
MePo 8.02±0.014 14.14±0.025 8.95±0.017 5.72±0.011 18.84±0.044 7.93±0.018
ReProver 13.01±0.000 26.97±0.000 15.68±0.000 9.58±0.000 36.97±0.000 13.99±0.000
LeanHammer 35.56±0.000 61.13±0.000 40.57±0.000 23.45±0.000 73.99±0.000 32.81±0.000
Qwen3-Embedding-8B 5.84±0.000 11.54±0.000 6.87±0.000 3.91±0.000 15.25±0.000 5.68±0.000
DAPS (Ours) 37.60±0.506 66.01±0.883 43.49±0.615 25.71±0.254 80.68±0.668 36.01±0.352

Table 3 - Mathlib4-Heldout.

P@16 R@16 F1@16 P@32 R@32 F1@32
MePo 4.30±0.007 7.98±0.006 5.12±0.006 2.98±0.005 11.06±0.006 4.37±0.005
ReProver 12.13±0.000 32.32±0.000 16.70±0.000 8.49±0.000 43.48±0.000 13.64±0.000
LeanHammer 28.02±0.000 67.33±0.000 37.41±0.000 16.98±0.000 77.84±0.000 26.59±0.000
Qwen3-Embedding-8B 3.21±0.000 6.74±0.000 4.03±0.000 2.34±0.000 9.92±0.000 3.58±0.000
DAPS (Ours) 32.47±0.061 78.74±0.187 43.67±0.103 19.67±0.047 89.25±0.170 30.79±0.070

Table 3 - DAPS-Collection.

P@16 R@16 F1@16 P@32 R@32 F1@32
MePo 0.74±0.000 0.53±0.000 0.60±0.000 0.53±0.000 0.75±0.000 0.60±0.000
ReProver 1.05±0.000 0.75±0.000 0.85±0.000 0.92±0.000 1.24±0.000 1.03±0.000
LeanHammer 2.94±0.000 1.98±0.000 2.32±0.000 2.51±0.000 3.19±0.000 2.76±0.000
Qwen3-Embedding-8B 0.34±0.000 0.24±0.000 0.27±0.000 0.26±0.000 0.36±0.000 0.29±0.000
DAPS (Ours) 26.28±0.482 13.84±0.236 18.00±0.320 22.52±0.726 23.53±0.757 22.88±0.738
Authors · CommentOpenReview ↗

Response to W1 (continue)

Table 3 - DAPS-Blueprint.

P@16 R@16 F1@16 P@32 R@32 F1@32
MePo -- -- -- -- -- --
ReProver 2.44±0.000 25.37±0.000 4.36±0.000 1.55±0.000 32.04±0.000 2.93±0.000
LeanHammer 2.97±0.000 31.36±0.000 5.32±0.000 1.96±0.000 40.42±0.000 3.70±0.000
Qwen3-Embedding-8B 1.11±0.000 11.02±0.000 1.97±0.000 0.65±0.000 13.07±0.000 1.219±0.000
DAPS (Ours) 3.83±0.031 42.21±0.747 6.87±0.062 2.42±0.054 50.08±0.889 4.55±0.097

(2) Integration with Lean proof generation systems.

We conduct end-to-end formal theorem proving in Lean 4. In addition to LeanExplore, LeanSearch, and Qwen3-Embedding-8B, we further add MePo, ReProver, and LeanHammer as compared premise selectors, together with a no-premise setting (w/o premise). For each target theorem, we use its statement as the query and call each selector to retrieve the top-16 premises from Mathlib4. We then provide these retrieved premises as in-context premises to two whole-proof formal provers, Goedel-Prover-V2-8B [1] and DeepSeek-Prover-V2-7B [2], using the prompts shown in the code block below. For Goedel-Prover-V2-8B, we set temperature=0.7, top_p=0.95, max_token=16,384; and for DeepSeek-Prover-V2-7B, we set temperature=0.93, top_p=1, max_token=16,384. We evaluate on miniF2F-test [3], and verify the generated Lean 4 proofs with Kimina-Lean-Server [4]. We report pass@k for k ∈\in {1, 2, 4}.

(a) Prompt for in-context premise use

You are an expert in Lean 4 theorem proving. Complete the Lean 4 proof for the statement below.

# Formal statement
```lean4
{formal_statement}
```

# Hints — lemmas that may be related to this goal
These retrieved Lean 4 / Mathlib lemmas may hint at the concepts and dependencies your proof involves. Use them as inspiration rather than a checklist. When one of them is actually the lemma you need, reference it by its full name; otherwise use whatever works (a different lemma or a tactic).
<premise>
[name_1]: [signature_1]
[name_2]: [signature_2]
[name_3]: [signature_3]
...
[name_16]: [signature_16]
</premise>

# Instructions
- Do not use `sorry`. Output only the complete Lean 4 code, no explanation.

# Proof
```lean4

(b) Prompt for "w/o premise"

You are an expert in Lean 4 theorem proving.

# Formal statement
```lean4
{formal_statement}
```

# Task
Write a complete Lean 4 proof for the formal statement. Output only the Lean 4 code.

The results are demonstrated in the following Table R1.

  • Supplying DAPS-selected premises improves proof success over the no-premise baseline in all six settings. For example, Goedel-Prover-V2-8B rises from 49.90 to 54.03 at Pass@4 (+4.13 points, ~8% relative), showing that dependency-aware selection benefits formal proving, not only the informal setting. Among all compared selectors, DAPS is the best in four of the six settings and a close second (within 0.5 points) in the other two.
  • Several strong selectors, in contrast, do not consistently help. For instance, LeanHammer falls below the no-premise baseline at Pass@4 on Goedel-Prover-V2-8B (48.93 vs. 49.90).
  • We report Pass@k (k=1,2,4) rather than Pass@1 alone because these provers perform whole-proof generation. The retrieved premises are supplied once, up front, rather than queried step by step as in tactic-level search, so a single sample is high-variance. Larger k reflects the multiple proof strategies a fixed premise set can support and gives a more stable estimate of whether the selected premises enable a successful proof.
  • The gains may be limited in part because these provers were not trained to make use of premises provided in context, i.e., to follow instructions conditioned on a supplied premise list. Strengthening this premise-use ability is a promising but orthogonal direction that we leave to future work.

We will include these results and analyses in our revised manuscript.

Authors · CommentOpenReview ↗

Response to W1 (continue)

Table R1. Bold\mathbf{Bold} and underline‾\underline{\text{underline}} are the best and the second-best results, respectively.

Model pass@k w/o premises LeanExplore LeanSearch Qwen3-Embedding-8B MePo ReProver LeanHammer DAPS
Goedel-Prover-V2-8B pass@1 36.4836.48 40.37\mathbf{40.37} 39.1939.19 39.8639.86 37.9237.92 38.4238.42 37.4537.45 39.96‾\underline{39.96}
Goedel-Prover-V2-8B pass@2 43.6243.62 47.18‾\underline{47.18} 46.0546.05 46.4146.41 44.7444.74 44.6944.69 43.9043.90 47.51\mathbf{47.51}
Goedel-Prover-V2-8B pass@4 49.9049.90 52.36‾\underline{52.36} 51.4351.43 51.8451.84 50.6050.60 50.0150.01 48.9348.93 54.03\mathbf{54.03}
DeepSeek-Prover-V2-7B pass@1 34.0734.07 36.73‾\underline{36.73} 34.3234.32 35.0935.09 35.6035.60 35.1935.19 34.8934.89 38.11\mathbf{38.11}
DeepSeek-Prover-V2-7B pass@2 42.2342.23 44.29‾\underline{44.29} 42.2142.21 42.8642.86 43.0643.06 43.4143.41 43.5743.57 44.70\mathbf{44.70}
DeepSeek-Prover-V2-7B pass@4 48.2348.23 48.7248.72 47.3247.32 47.6847.68 47.7547.75 48.6648.66 49.19\mathbf{49.19} 49.06‾\underline{49.06}

[1] Lin, Y., Tang, S., Lyu, B., Yang, Z., Chung, J. H., Zhao, H., ... & Jin, C. (2025). Goedel-prover-v2: Scaling formal theorem proving with scaffolded data synthesis and self-correction. ICLR 2026.

[2] Ren, Z. Z., Shao, Z., Song, J., Xin, H., Wang, H., Zhao, W., ... & Ruan, C. (2025). Deepseek-prover-v2: Advancing formal mathematical reasoning via reinforcement learning for subgoal decomposition. arXiv preprint arXiv:2504.21801.

[3] Zheng, K., Han, J. M., & Polu, S. (2021). Minif2f: a cross-system benchmark for formal olympiad-level mathematics. ICLR 2022.

[4] Santos, M. D., de Saxcé, H., Wang, H., Wang, R., Baksys, M., Unsal, M., ... & Li, J. (2025). Kimina Lean Server: A High-Performance Lean Server for Large-Scale Verification. arXiv preprint arXiv:2504.21230.

(3) Gap between downstream theorem-proving gains and retrieval gain.

  • We agree the end-to-end results deserve more emphasis. We expand Table 4 (shown below) with an additional recent model, Gemini-3.6-Flash, and DAPS remains the best selector across all provers, showing the improvement is consistent across models of different scales and architectures. Additionally, we add a formal theorem-proving experiment in Lean as another demonstration of the effectiveness of DAPS, and the details are presented in Response to W2 .
  • One cause of the gap between retrieval gains and proving gains is LLMs' limited ability of in-context premise use, which leads to a general improvement bottleneck on downstream theorem proving in both informal and formal settings. Within this bottleneck, premise quality still determines how much a selector helps. For example, in our formal proving results (Table R1), LeanHammer achieves very high retrieval scores (e.g., P@16/R@16/F1@16 = 35.56 / 61.13 / 40.57 on Mathlib4-Random), yet with Goedel-Prover-V2-8B its premises do not help downstream and even fall below the no-premise baseline (pass@1=37.45, pass@2=43.90, pass@4=48.93, versus 36.48 / 43.62 / 49.90 without premises). Under the same prover, premises from DAPS are more helpful (36.48 → 39.96, 43.62 → 47.51, 49.90 → 54.03 at pass@1/2/4), consistently above the no-premise baseline.
  • We also want to highlight the core contributions of this paper. First, a dependency-aware formulation and method that tackle the important problems of frequency-skewed premise retrieval and distribution shift. Second, a novel data contribution, the mined Lean Blueprint projects together with multiple curated dependency resources. Third, consistent premise-selection gains that are helpful for both formal and informal theorem proving.

We will include these results and analyses in our revised manuscript.

Table 4.

Model LeanExplore LeanSearch Qwen3-Embedding-8B DAPS Δ% vs best baseline
Qwen3-235b 18.45 17.01 19.08 21.25 11.37
DeepSeek-V3.1 11.96 12.38 13.75 13.90 1.09
kimi-k2-instruct 8.66 8.26 8.27 9.08 4.85
Gemini-3.6-Flash 46.13 44.04 45.51 48.69 5.55
Reviewer kEVuOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
2/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes a dependency-aware premise selector for Lean4 theorem proving. It was motivated by the observation that currently selectors see premise selection as semantic similarity retrieval, and by the fact that popular and unrelated foundational lemmas generally overwhelm and swamp rare and unpublished ones in the top K results, pairwise ranking misses whether a set of premises can be utilized as a useful proof toolkit, and Mathlib trained features perform poorly on out-of-distribution queries, such as competition problems and informal language. The authors believe that these are problems with the current selectors because math is structured by dependencies rather than by similarities, and allowing selectors to take this into account is needed to improve premise selection. In order to accomplish this, the authors first compile two dependent resources: a mined corpus of 53 open-source Lean Blueprint projects and a typed multi-level dependency tree taken from Mathlib4. Four evaluation benchmarks of increasing distribution shift are derived from these: DAPS-Collection for query-side shift to Olympiad and synthetic problems, Mathlib4-Random and Mathlib4-Heldout for in-distribution retrieval, and DAPS-Blueprint for retrieval against infrequent and informal premises from research projects. Their proposed framework, called DAPS, has three components targeting the three problems respectively. For the frequency problem, DAPS uses a structural neighborhood encoder that augments each candidate’s text representation with features from its 2-hop dependency subgraph, including node type, hop distance, positional encoding, and in/out degree embeddings that capture the directional asymmetry of the dependency graph. For the group relevance problem, DAPS uses a group-level contrastive objective where all gold premises of a query are pulled toward the query as a group relative to negatives sampled through temporal, global, and cross-batch strategies, rather than ranking each premise in isolation. For the distribution shift problem, DAPS uses a two-stage adaptation procedure that first pretrains on the Mathlib4 dependency data, then continually adapts on the Blueprint corpus. For informal queries, DAPS is paired with a formalizer that converts a natural language statement into Lean before retrieval. The authors evaluate DAPS on their four benchmarks using Recall@32 as the primary retrieval metric and Pass@8 on IMO-ProofBench as a downstream proving metric. It does quite well on their benchmarks compared to LeanHammer and others, and moderately outperforms other selectors on IMO-ProofBench.

Strengths and weaknesses

The observation of the three problems of frequency-skewed retrieval, group-level relevance, and distribution shift is intuitive and reasonable and DAPS is designed accordingly, which makes the paper easy to follow and the ablations easy to interpret. The decision to mine Lean Blueprint projects is a novel data contribution and it is potentially quite important since Mathlib-only training data structurally does not contain the rare, research-level premises that Blueprint projects capture. The retraining of baselines on the same Mathlib dependency data is smart and helps strengthen the comparison. The ablation in Table 14 is also credible and validates the problem hypotheses, especially the group-level contrastive objective ablation which drops a lot of points when switching to standard InfoNCE, which is convincing. For weaknesses, the biggest concern is that the downstream gains on IMO-ProofBench in Table 4 are very small. These are the only end-to-end proving numbers in the paper and they are the thing that actually matters for practical impact, yet they feel like an afterthought in the presentation relative to the Recall@32 headline. The paper also never evaluates DAPS in an end-to-end formal Lean proving loop, which is the natural and most important application and is explicitly listed as a limitation in Appendix A. This makes it hard to assess whether the retrieval gains actually translate to the proof success rates much in practice. On evaluation design, there are no error bars in Table 3, which the authors acknowledge in the checklist as single-run point estimates, and the DAPS-Blueprint benchmark has only 236 queries with an average of 1.74 premises per query, which is a pretty thin basis for the claims about rare premise retrieval. The choice of Recall@32 as the headline metric also is not justified in terms of why 32 is the operationally meaningful budget, and precision is never discussed, meaning there isn’t an idea of how much noise DAPS is feeding into the prover context alongside the correct premises.

Questions
  • The Recall@32 gains over LeanHammer are large and consistent across benchmarks, but the IMO-ProofBench improvements in Table 4 are modest at +0.15 to +2.17 absolute points. This is the only end-to-end evaluation in the paper and the gap between the retrieval gains and the proving gains is never explained. Can the authors provide any analysis of why strong retrieval improvements do not translate into larger downstream gains?
  • The paper uses Recall@32 as the headline metric but never justifies why 32 is the right retrieval budget, and precision is never reported anywhere. If DAPS retrieves the correct premises but also surfaces significantly more irrelevant ones than LeanHammer within the top-32, the net effect on a prover with a limited context window could be neutral or negative. Can the authors report precision or F1 at K=32, or show that the higher recall does not come at the cost of lower precision relative to the baselines?
  • Table 14 shows that swapping the MGTE encoder for ByT5 collapses DAPS-Collection performance from 24.38 to 1.08, a drop much larger than removing the structural fusion entirely costs on that benchmark. This suggests the base encoder’s generalization capacity might be the dominant driver of out-of-distribution performance rather than the dependency graph signal. Can the authors clarify what the structural neighborhood encoder contributes specifically on DAPS-Collection relative to the encoder backbone, and whether the out-of-distribution gains would disappear similarly with a weaker encoder regardless of the graph signal?
Limitations

The authors do a reasonable job addressing limitations. The appendix is upfront about the three main issues: compiled dependencies are treated as ground truth even though alternative valid proof paths exist, the pipeline is Lean 4 specific, and the downstream evaluation is restricted to informal proving on IMO-ProofBench. The failure analysis in Appendix G.3 also adds substance by documenting three concrete failure types with case studies. However, the most important limitation is that the paper never acknowledges the disconnect between the strong retrieval gains and the tiny downstream proving improvements in Table 4, which is an important limitation of the work. The lack of end-to-end formal Lean prover integration is listed as future work but the authors do not discuss what the weak IMO-ProofBench numbers actually imply about whether premise selection is even the bottleneck for LLM-based proving. The thin DAPS-Blueprint benchmark at only 236 queries with 1.74 premises per query on average is also not flagged as a limitation despite being a real constraint on how much to trust those results.

Final justification

Even though I feel the authors have made substantial improvements, I still feel it does not cross the acceptance threshold for me, so I am maintaining my score.

Formatting concerns

None

9 comments
Authors · CommentOpenReview ↗

Response to Reviewer kEVu

W1. "For weaknesses, the biggest concern is that the downstream gains on IMO-ProofBench in Table 4 are very small. These are the only end-to-end proving numbers in the paper and they are the thing that actually matters for practical impact, yet they feel like an afterthought in the presentation relative to the Recall@32 headline."

Q1. "The Recall@32 gains over LeanHammer are large and consistent across benchmarks, but the IMO-ProofBench improvements in Table 4 are modest at +0.15 to +2.17 absolute points. This is the only end-to-end evaluation in the paper and the gap between the retrieval gains and the proving gains is never explained. Can the authors provide any analysis of why strong retrieval improvements do not translate into larger downstream gains?"

Response to W1 & Q1. Thanks for the important question.

  • We agree the end-to-end results deserve more emphasis. We expand Table 4 (shown below) with an additional recent model, Gemini-3.6-Flash, and DAPS remains the best selector across all provers, showing the improvement is consistent across models of different scales and architectures. Additionally, we add a formal theorem-proving experiment in Lean as another demonstration of the effectiveness of DAPS, and the details are presented in Response to W2 .
  • One cause of the gap between retrieval gains and proving gains is LLMs' limited ability of in-context premise use, which leads to a general improvement bottleneck on downstream theorem proving in both informal and formal settings. Within this bottleneck, premise quality still determines how much a selector helps. For example, in our formal proving results (Table R1), LeanHammer achieves very high retrieval scores (e.g., P@16/R@16/F1@16 = 35.56 / 61.13 / 40.57 on Mathlib4-Random), yet with Goedel-Prover-V2-8B its premises do not help downstream and even fall below the no-premise baseline (pass@1=37.45, pass@2=43.90, pass@4=48.93, versus 36.48 / 43.62 / 49.90 without premises). Under the same prover, premises from DAPS are more helpful (36.48 → 39.96, 43.62 → 47.51, 49.90 → 54.03 at pass@1/2/4), consistently above the no-premise baseline.
  • We also want to highlight the core contributions of this paper. First, a dependency-aware formulation and method that tackle the important problems of frequency-skewed premise retrieval and distribution shift. Second, a novel data contribution, the mined Lean Blueprint projects together with multiple curated dependency resources. Third, consistent premise-selection gains that are helpful for both formal and informal theorem proving.

We will include these results and analyses in our revised manuscript.

Table 4.

Model LeanExplore LeanSearch Qwen3-Embedding-8B DAPS Δ% vs best baseline
Qwen3-235b 18.45 17.01 19.08 21.25 11.37
DeepSeek-V3.1 11.96 12.38 13.75 13.90 1.09
kimi-k2-instruct 8.66 8.26 8.27 9.08 4.85
Gemini-3.6-Flash 46.13 44.04 45.51 48.69 5.55
Authors · CommentOpenReview ↗

Response to Reviewer kEVu

W3. "On evaluation design, there are no error bars in Table 3, which the authors acknowledge in the checklist as single-run point estimates "

"The choice of Recall@32 as the headline metric also is not justified in terms of why 32 is the operationally meaningful budget, and precision is never discussed, meaning there isn’t an idea of how much noise DAPS is feeding into the prover context alongside the correct premises."

Q2. "The paper uses Recall@32 as the headline metric but never justifies why 32 is the right retrieval budget, and precision is never reported anywhere. If DAPS retrieves the correct premises but also surfaces significantly more irrelevant ones than LeanHammer within the top-32, the net effect on a prover with a limited context window could be neutral or negative. Can the authors report precision or F1 at K=32, or show that the higher recall does not come at the cost of lower precision relative to the baselines?"

Response to W3 & Q2. We thank the reviewer for this suggestion. To address the single-run concern, we re-run each method for three independent trials with different global random seeds and report mean ± standard deviation, and we extend Table 3 with precision (P@k), recall (R@k), and Macro-F1 (F1@k) at both k = 16 and k = 32 across all four benchmarks. ReProver, LeanHammer, and Qwen3-Embedding-8B are deterministic at inference given their retrained checkpoints, so repeated runs are identical (std = 0). MePo's variance comes from its internal traversal ordering, and DAPS's from dynamic subgraph sampling. We report the results in the extended Table 3 below, split into four per-dataset tables.

  • Across every benchmark and budget, DAPS attains the best precision, recall, and F1, and its margins far exceed the standard deviations (e.g., on Mathlib4-Random, R@32 = 80.68 ± 0.67 vs. 73.99 for LeanHammer), so the gains are robust to random variation rather than artifacts of a single run.
  • The added precision numbers directly address the noise concern. DAPS achieves the highest precision of any selector on every benchmark and budget, so for a fixed context it feeds the prover fewer irrelevant premises, as DAPS improves precision and recall simultaneously rather than trading one for the other. Precision also increases as the budget tightens from k = 32 to k = 16 (e.g., P@16 = 37.60 vs. P@32 = 25.71 on Mathlib4-Random), so a smaller budget yields even less noise while preserving the recall lead.
  • On the choice of k = 32, the budget is operationally motivated by deployment: a downstream prover consumes only a bounded premise list within its context window, and our downstream experiments (Table 4 and the formal-proving results) use 16 in-context premises. We therefore report both k = 16 and k = 32. Statistically, 32 is also on the order of the average number of gold premises per query (≈ 12.2 on Mathlib4-Random, ≈ 8.1 on Mathlib4-Heldout, ≈ 27.3 on DAPS-Collection, and ≈ 1.7 on DAPS-Blueprint), so a budget of 32 is large enough for Recall@k to meaningfully measure coverage. The higher recall on DAPS-Blueprint than on DAPS-Collection follows from its much smaller gold set (≈ 1.7 vs. ≈ 27 premises per query). The correspondingly low absolute precision on Blueprint (P@32 ≈ 2.4%) is a direct consequence of this small gold set, since precision@32 is upper-bounded by ≈ |gold|/32, and does not indicate excessive noise.

We will include these results and analyses in our revised manuscript.

Authors · CommentOpenReview ↗

Response to W3 & Q2 (continue)

Table 3 - Mathlib4-Random.

P@16 R@16 F1@16 P@32 R@32 F1@32
MePo 8.02±0.014 14.14±0.025 8.95±0.017 5.72±0.011 18.84±0.044 7.93±0.018
ReProver 13.01±0.000 26.97±0.000 15.68±0.000 9.58±0.000 36.97±0.000 13.99±0.000
LeanHammer 35.56±0.000 61.13±0.000 40.57±0.000 23.45±0.000 73.99±0.000 32.81±0.000
Qwen3-Embedding-8B 5.84±0.000 11.54±0.000 6.87±0.000 3.91±0.000 15.25±0.000 5.68±0.000
DAPS (Ours) 37.60±0.506 66.01±0.883 43.49±0.615 25.71±0.254 80.68±0.668 36.01±0.352

Table 3 - Mathlib4-Heldout.

P@16 R@16 F1@16 P@32 R@32 F1@32
MePo 4.30±0.007 7.98±0.006 5.12±0.006 2.98±0.005 11.06±0.006 4.37±0.005
ReProver 12.13±0.000 32.32±0.000 16.70±0.000 8.49±0.000 43.48±0.000 13.64±0.000
LeanHammer 28.02±0.000 67.33±0.000 37.41±0.000 16.98±0.000 77.84±0.000 26.59±0.000
Qwen3-Embedding-8B 3.21±0.000 6.74±0.000 4.03±0.000 2.34±0.000 9.92±0.000 3.58±0.000
DAPS (Ours) 32.47±0.061 78.74±0.187 43.67±0.103 19.67±0.047 89.25±0.170 30.79±0.070

Table 3 - DAPS-Collection.

P@16 R@16 F1@16 P@32 R@32 F1@32
MePo 0.74±0.000 0.53±0.000 0.60±0.000 0.53±0.000 0.75±0.000 0.60±0.000
ReProver 1.05±0.000 0.75±0.000 0.85±0.000 0.92±0.000 1.24±0.000 1.03±0.000
LeanHammer 2.94±0.000 1.98±0.000 2.32±0.000 2.51±0.000 3.19±0.000 2.76±0.000
Qwen3-Embedding-8B 0.34±0.000 0.24±0.000 0.27±0.000 0.26±0.000 0.36±0.000 0.29±0.000
DAPS (Ours) 26.28±0.482 13.84±0.236 18.00±0.320 22.52±0.726 23.53±0.757 22.88±0.738

Table 3 - DAPS-Blueprint.

P@16 R@16 F1@16 P@32 R@32 F1@32
MePo -- -- -- -- -- --
ReProver 2.44±0.000 25.37±0.000 4.36±0.000 1.55±0.000 32.04±0.000 2.93±0.000
LeanHammer 2.97±0.000 31.36±0.000 5.32±0.000 1.96±0.000 40.42±0.000 3.70±0.000
Qwen3-Embedding-8B 1.11±0.000 11.02±0.000 1.97±0.000 0.65±0.000 13.07±0.000 1.219±0.000
DAPS (Ours) 3.83±0.031 42.21±0.747 6.87±0.062 2.42±0.054 50.08±0.889 4.55±0.097
Reviewer cUuYOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
4/4
Clarity
4/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies the problem of premise selection for automated theorem proving in Lean 4 using LLMs.

The main claim of the paper is that a lemma's usefulness comes from its position in the dependency graph, not just from its semantic retrievability. The authors identify three main problems for retrieval-based premise selection: (P1) long-tail collapse for rare and recently added premises with weak text signals, (P2) group-level relevance of lemmas commonly used together, and (P3) distribution shift between the strongly formalized and typed Mathlib4 and competition problems or high-level research blueprints written in informal language, which may not be fully formalized.

The authors analyze Mathlib4 and 53 open-source Lean blueprint projects to create a large typed DAG that serves as both training data and a testing framework. From these, they derive four benchmarks with different types of distribution shift (Mathlib4-Random, Mathlib4-Heldout, DAPS-Collection,DAPS-Blueprint).

Finally, the authors propose a new model (DAPS) that addresses the three problems using these data: a structural neighborhood encoder that augments each candidate's frozen text embedding with 2-hop subgraph features, including a new in/out-degree embedding (P1); a group-level contrastive objective in which all correct premises of a query share one softmax denominator, so the positive set is pulled toward the query jointly (P2); and a two-step Mathlib-then-Blueprint adaptation, plus a formalizer front-end for informal queries (P3).

Empirically, DAPS outperforms the baseline methods (including, LeanHammer) on Pass@K across all four benchmarks. Substituting DAPS premises into three general-purpose LLMs also shows improvements on IMO-ProofBench over premises from LeanExplore, LeanSearch, and Qwen3-Embedding.

Strengths and weaknesses

Strengths

  • Clear and well-motivated problem identification. The P1/P2/P3 decomposition is straightforward and stated upfront, making the design easy to follow and to evaluate, with each part of the design addressing one of the problems.
  • Justified design choices. Each part of the design either answers one of the problems mentioned early on (for example, the group-level objective for P2) or is based on observed features in the graph (encoding in/out-degree separately is motivated by the measured directional asymmetry of the dependency graph in Mathlib4).
  • Valuable new resources. The tools for creating the DAG are useful for other projects targeting premise selection for Lean. The systematic mining of Lean blueprint projects also provides rare, research-level, and informal premises absent from Mathlib.
  • Consistent retrieval gains on all benchmarks. The retrieval improvements are consistent across all four benchmarks. The surprising improvement on DAPS-Collection shows that dependency structure helps precisely where semantic retrieval struggles.
  • Honest, specific limitations. The authors provide an honest discussion of limitations in the Appendix and include ablations for their design choices.

Weaknesses

  • Modest downstream gains. The end-to-end Pass@8 improvements on IMO-ProofBench are small, so the large retrieval-recall margins do not yet translate into comparably large proving gains.
  • Recall@K vs. ground truth. The authors mention this in the limitations as well, but treating a theorem's compiled proof's dependencies as the gold set penalizes premises that would support a valid alternative proof.
  • Limited downstream evaluation. The grading is done using the IMO-ProofBench autograder and is not formally verified or reported (unless I missed it). In addition, the list of models used to generate the informal proofs is fairly small and does not include the state-of-the-art, API-based large reasoning models frequently used in Lean4 autoformalization.
Questions
  • Heldout > Random. The Recall@32 reported for Mathlib4-Heldout is higher than for Mathlib4-Random, not just for DAPS but for LeanHammer and ReProver as well. What explains this? For example, do random per-declaration holdouts more often remove a query's own gold premises from training than file-level holdouts do?
  • Downstream gains. Given the very large recall margins, why are the Pass@8 gains so modest? Is the bottleneck the formalizer F\mathcal{F} (Gemini 3 Pro), the prover's ability to use the retrieved premises, or the autograder?
  • Formalizer sensitivity. (Related to the previous question.) How sensitive is informal-query performance to the choice and quality of the formalizer F\mathcal{F}?
Limitations

yes

Final justification

I have read the authors' rebuttal and the discussion. The authors have provided clear and detailed responses to the questions. Specifically, the additional results provided during the discussion make the paper stronger, particularly the new ablation results (answer to Q3) and the additional results on the downstream gains (answers to W3 and Q2).

I believe the strengths mentioned in my original review still hold, and I therefore maintain my Accept recommendation.

Formatting concerns

None.

7 comments
Authors · CommentOpenReview ↗

Response to Reviewer cUuY

W1. "Modest downstream gains. The end-to-end Pass@8 improvements on IMO-ProofBench are small, so the large retrieval-recall margins do not yet translate into comparably large proving gains."

W3. "Limited downstream evaluation. The grading is done using the IMO-ProofBench autograder and is not formally verified or reported (unless I missed it). In addition, the list of models used to generate the informal proofs is fairly small and does not include the state-of-the-art, API-based large reasoning models frequently used in Lean4 autoformalization."

Q2. "Downstream gains. Given the very large recall margins, why are the Pass@8 gains so modest? Is the bottleneck the formalizer F (Gemini 3 Pro), the prover's ability to use the retrieved premises, or the autograder?"

Response to W1, W3, & Q2. Thanks for raising the valuable concerns.

(1) On the gap between retrieval gain and downstream gain.

  • We expand Table 4 (shown below) with an additional recent model, Gemini-3.6-Flash, and DAPS remains the best selector across all provers, showing the improvement is consistent across models of different scales and architectures. Additionally, we add a formal theorem-proving experiment in Lean as another demonstration of the effectiveness of DAPS, and the details are presented in (2) On formal downstream evaluation below.
  • One cause of the gap between retrieval gains and proving gains is LLMs' limited ability of in-context premise use, which leads to a general improvement bottleneck on downstream theorem proving in both informal and formal settings. Within this bottleneck, premise quality still determines how much a selector helps. For example, in our formal proving results (Table R1), LeanHammer achieves very high retrieval scores (e.g., P@16/R@16/F1@16 = 35.56 / 61.13 / 40.57 on Mathlib4-Random), yet with Goedel-Prover-V2-8B its premises do not help downstream and even fall below the no-premise baseline (pass@1=37.45, pass@2=43.90, pass@4=48.93, versus 36.48 / 43.62 / 49.90 without premises). Under the same prover, premises from DAPS are more helpful (36.48 → 39.96, 43.62 → 47.51, 49.90 → 54.03 at pass@1/2/4), consistently above the no-premise baseline.
  • We also want to highlight the core contributions of this paper. First, a dependency-aware formulation and method that tackle the important problems of frequency-skewed premise retrieval and distribution shift. Second, a novel data contribution, the mined Lean Blueprint projects together with multiple curated dependency resources. Third, consistent premise-selection gains that are helpful for both formal and informal theorem proving.

We will include these results and analyses in our revised manuscript.

Table 4.

Model LeanExplore LeanSearch Qwen3-Embedding-8B DAPS Δ% vs best baseline
Qwen3-235b 18.45 17.01 19.08 21.25 11.37
DeepSeek-V3.1 11.96 12.38 13.75 13.90 1.09
kimi-k2-instruct 8.66 8.26 8.27 9.08 4.85
Gemini-3.6-Flash 46.13 44.04 45.51 48.69 5.55
Authors · CommentOpenReview ↗

Response to W1, W3, & Q2 (continue)

(2) On formal downstream evaluation.

We conduct end-to-end formal theorem proving in Lean 4. In addition to LeanExplore, LeanSearch, and Qwen3-Embedding-8B, we further add MePo, ReProver, and LeanHammer as compared premise selectors, together with a no-premise setting (w/o premise). For each target theorem, we use its statement as the query and call each selector to retrieve the top-16 premises from Mathlib4. We then provide these retrieved premises as in-context premises to two whole-proof formal provers, Goedel-Prover-V2-8B [1] and DeepSeek-Prover-V2-7B [2], using the prompts shown in the code block below. For Goedel-Prover-V2-8B, we set temperature=0.7, top_p=0.95, max_token=16,384; and for DeepSeek-Prover-V2-7B, we set temperature=0.93, top_p=1, max_token=16,384. We evaluate on miniF2F-test [3], and verify the generated Lean 4 proofs with Kimina-Lean-Server [4]. We report pass@k for k ∈\in {1, 2, 4}.

(a) Prompt for in-context premise use

You are an expert in Lean 4 theorem proving. Complete the Lean 4 proof for the statement below.

# Formal statement
```lean4
{formal_statement}
```

# Hints — lemmas that may be related to this goal
These retrieved Lean 4 / Mathlib lemmas may hint at the concepts and dependencies your proof involves. Use them as inspiration rather than a checklist. When one of them is actually the lemma you need, reference it by its full name; otherwise use whatever works (a different lemma or a tactic).
<premise>
[name_1]: [signature_1]
[name_2]: [signature_2]
[name_3]: [signature_3]
...
[name_16]: [signature_16]
</premise>

# Instructions
- Do not use `sorry`. Output only the complete Lean 4 code, no explanation.

# Proof
```lean4

(b) Prompt for "w/o premise"

You are an expert in Lean 4 theorem proving.

# Formal statement
```lean4
{formal_statement}
```

# Task
Write a complete Lean 4 proof for the formal statement. Output only the Lean 4 code.

The results are demonstrated in the following Table R1.

  • Supplying DAPS-selected premises improves proof success over the no-premise baseline in all six settings. For example, Goedel-Prover-V2-8B rises from 49.90 to 54.03 at Pass@4 (+4.13 points, ~8% relative), showing that dependency-aware selection benefits formal proving, not only the informal setting. Among all compared selectors, DAPS is the best in four of the six settings and a close second (within 0.5 points) in the other two.
  • Several strong selectors, in contrast, do not consistently help. For instance, LeanHammer falls below the no-premise baseline at Pass@4 on Goedel-Prover-V2-8B (48.93 vs. 49.90).
  • We report Pass@k (k=1,2,4) rather than Pass@1 alone because these provers perform whole-proof generation. The retrieved premises are supplied once, up front, rather than queried step by step as in tactic-level search, so a single sample is high-variance. Larger k reflects the multiple proof strategies a fixed premise set can support and gives a more stable estimate of whether the selected premises enable a successful proof.
  • The gains may be limited in part because these provers were not trained to make use of premises provided in context, i.e., to follow instructions conditioned on a supplied premise list. Strengthening this premise-use ability is a promising but orthogonal direction that we leave to future work.

We will include these results and analyses in our revised manuscript.

Table R1. Bold\mathbf{Bold} and underline‾\underline{\text{underline}} are the best and the second-best results, respectively.

Model pass@k w/o premises LeanExplore LeanSearch Qwen3-Embedding-8B MePo ReProver LeanHammer DAPS
Goedel-Prover-V2-8B pass@1 36.4836.48 40.37\mathbf{40.37} 39.1939.19 39.8639.86 37.9237.92 38.4238.42 37.4537.45 39.96‾\underline{39.96}
Goedel-Prover-V2-8B pass@2 43.6243.62 47.18‾\underline{47.18} 46.0546.05 46.4146.41 44.7444.74 44.6944.69 43.9043.90 47.51\mathbf{47.51}
Goedel-Prover-V2-8B pass@4 49.9049.90 52.36‾\underline{52.36} 51.4351.43 51.8451.84 50.6050.60 50.0150.01 48.9348.93 54.03\mathbf{54.03}
DeepSeek-Prover-V2-7B pass@1 34.0734.07 36.73‾\underline{36.73} 34.3234.32 35.0935.09 35.6035.60 35.1935.19 34.8934.89 38.11\mathbf{38.11}
DeepSeek-Prover-V2-7B pass@2 42.2342.23 44.29‾\underline{44.29} 42.2142.21 42.8642.86 43.0643.06 43.4143.41 43.5743.57 44.70\mathbf{44.70}
DeepSeek-Prover-V2-7B pass@4 48.2348.23 48.7248.72 47.3247.32 47.6847.68 47.7547.75 48.6648.66 49.19\mathbf{49.19} 49.06‾\underline{49.06}
Authors · CommentOpenReview ↗

Response to Reviewer cUuY

W2. "Recall@K vs. ground truth. The authors mention this in the limitations as well, but treating a theorem's compiled proof's dependencies as the gold set penalizes premises that would support a valid alternative proof."

Response to W2. The proper measure of a selector is end-to-end proof success, which does not use the reference dependency set at all: a retrieved premise counts as useful whenever it helps produce a valid proof, verified by the Lean compiler (formal) or the autograder (informal). Since pass@k treats a query as solved if any of the k sampled attempts yields a valid proof, alternative proof paths are accepted rather than penalized. DAPS's advantage holds under this measure and stays above the no-premise baseline in the formal setting (39.96 / 47.51 / 54.03 vs. 36.48 / 43.62 / 49.90 with Goedel-Prover-V2-8B), showing that its gains are not an artifact of the reference-based metric and that its premises aid rather than restrict the search.

Q1. "Heldout > Random. The Recall@32 reported for Mathlib4-Heldout is higher than for Mathlib4-Random, not just for DAPS but for LeanHammer and ReProver as well. What explains this? For example, do random per-declaration holdouts more often remove a query's own gold premises from training than file-level holdouts do?"

Response to Q1. Thanks for the question. This is because Mathlib-Heldout has fewer gold premises per query than Mathlib-Random (8.12 vs 12.20). At a fixed top-32 budget, a smaller gold set mechanically raises Recall (fewer targets to cover) and lowers Precision (fewer slots can be correct). The extended Table 3 in our response confirms this: on Mathlib-Heldout, precision is lower than on Mathlib-Random at both budgets (Precision@16 and Precision@32), as is F1@32, even though Recall@32 is higher.

Q3. "Formalizer sensitivity. (Related to the previous question.) How sensitive is informal-query performance to the choice and quality of the formalizer F?"

Response to Q3. Thank you for the question. To investigate the formalizer sensitivity, we are running a small ablation on variant formalizers. As the IMO-ProofBench ProofAutoGrader is time-consuming, we will do our best to report these results, possibly from a small-scale experiment, within the discussion period.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…