Theorem-Neighborhood Pipeline
- theorem-disjoint Lean proof split
- 127,561 train-side premise pool
- LLM theorem enrichment
- weighted RRF fusion
Lean premise retrieval research system
A midterm report on theorem-neighborhood evidence for Lean premise retrieval
ProofAtlas builds a theorem-neighborhood retrieval pipeline, evaluates LLM-enriched theorem profiles as a source of premise evidence, and exposes interpretable retrieval evidence for inspection.
Midterm progress is best read as a capability build-out first, then a hard challenge benchmark. ProofAtlas now has theorem-neighborhood retrieval infrastructure, interpretable retrieval evidence views, and an initial proof-state premise retrieval result.
Task: given a held-out proof state, retrieve useful premises from 127,561 train-side candidate premises.
| Split | Theorems | Proof states | Premises | Positive edges |
|---|---|---|---|---|
| train | 8000 | 23723 | 127561 | 54897 |
| test | 1000 | 3053 | 38332 | 7054 |
The system has two retrieval evidence paths and one explanation layer. LLM enrichment turns theorem metadata plus proof-state context into profiles for retrieving similar train theorems. Those neighbors produce premise evidence for the challenge fusion, and they also feed an interpretable evidence view for inspection.
LLM enrichment is retrieval text only; it does not use gold premise labels or proof scripts as target answers.
The challenge evaluation fuses proof-state evidence with neighbor-derived premise evidence by weighted RRF. BGE fusion is reported separately as an auxiliary recall-maximizing variant.
Short definitions for the main abbreviations and proof-retrieval terms used below.
This capability answers: can ProofAtlas retrieve useful similar theorems? Given a held-out theorem profile, the system uses LLM-enriched theorem text to find similar train-side theorems, then checks whether premises from those neighbors are useful evidence. The LLM-enriched TF-IDF profile improves neighbor-premise Recall@100 from 0.3185 to 0.3774 and nDCG@10 from 0.1499 to 0.1717.
Evaluation expands retrieved theorem neighbors into the premises used in their proof states, then measures whether held-out gold premises appear in the resulting neighbor-derived premise candidates. Neighbor-premise Recall@100 is a premise-evidence metric, not direct theorem-name matching.
LLM-enriched TF-IDF theorem profiles produce the strongest theorem-neighborhood premise retrieval.
This capability answers: what evidence did those similar theorems provide? It is the explanation layer for the retrieval system, not a separate performance benchmark. For a query theorem, ProofAtlas exposes similar train theorems, neighbor-derived premise suggestions, strategy facets, difficulty signals, and retrieval methods that contributed evidence. The example illustrates visible evidence for inspection, not an aggregate claim.
ProofAtlas uses 15 broad strategy facets as interpretable labels. They summarize recurring proof patterns; they are not final tactic predictions.
These qualitative views list concrete evidence exposed by ProofAtlas for two held-out theorems. They are examples, not aggregate performance claims.
Emphasizes scheme-local reasoning, localization, prime spectra, and morphism-property transport.
Emphasizes polynomial evaluation, ideals, span membership, and relations vanishing under evaluation.
This is the hard benchmark: retrieve useful train-side premises for 3,053 held-out proof states from a 127,561-premise pool. The challenge result shows that the pipeline improves top-100 candidate generation, while top-rank precision remains the next-stage bottleneck.
Primary method: weighted_rrf_llm_theorem_tuned. MAP remains in the full report and ablation chart.
Most gain over dense comes from multi-source fusion and proof-state expansion; theorem-neighborhood evidence adds a further incremental lift.
The held-out result suggests theorem-theorem retrieval can provide useful auxiliary premise evidence when fused with proof-state retrieval signals. The next bottleneck is top-rank precision, where a learned reranker over the fused candidate pool is the natural follow-up.