paper-with-me

홈 › Papers

LeanSearch v2: Global Premise Retrieval for Lean 4 Theorem Proving

2026-05-13 · Guoxiong Gao, Zeming Sun, Jiedong Jiang, Yutong Wang, Jingda Xu, Peihao Wu, Bryan Dai, Bin Dong arxiv

Proving theorems in Lean 4 often requires identifying a scattered set of library lemmas whose joint use enables a concise proof -- a task we call global premise retrieval. Existing tools address adjacent problems: semantic search engines find individual declarations matching a query, while premise-selection systems predict useful lemmas one tactic step at a time. Neither recovers the full premise set an entire theorem requires. We present LeanSearch v2, a two-mode retrieval system for this task. Its standard mode applies a hierarchy-informalized Mathlib corpus with an embedding-reranker pipeline, achieving state-of-the-art single-query retrieval without domain-specific fine-tuning (nDCG@10 of 0.62 vs. 0.53 for the next-best system). Its reasoning mode builds on standard mode as its retrieval substrate, targeting global premise retrieval through iterative sketch-retrieve-reflect cycles. On a 69-query benchmark of research-level Mathlib theorems, reasoning mode recovers 46.1% of ground-truth premise groups within 10 retrieved candidates, outperforming strong reasoning retrieval systems (38.0%) and premise-selection baselines (9.3%) on the same benchmark. In a controlled downstream evaluation with a fixed prover loop, replacing alternative retrievers with LeanSearch v2 yields the highest proof success (20% vs. 16% for the next-best system and 4% without retrieval), confirming that retrieval quality propagates to proof generation. We have open-sourced all code, data, and benchmarks. Code and data: https://github.com/frenzymath/LeanSearch-v2 . The standard mode is publicly available with API access at https://leansearch.net/ .

📄 PDF Abstract BibTeX arXiv:2605.13137

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

LeanDojo: Theorem Proving with Retrieval-Augmented Language Models

2023-06-27 · NeurIPS 2023 11 · Kaiyu Yang, Aidan M. Swope, Alex Gu, Rahul Chalamala 외

Large language models (LLMs) have shown promise in proving formal theorems using proof assistants such as Lean. However, existing methods are difficult to reproduce or build on, due to private code, data, and large compu…

Automated Theorem ProvingGPUMathRetrieval

REAL-Prover: Retrieval Augmented Lean Prover for Mathematical Reasoning

2025-05-27 · Ziju Shen, Naohao Huang, Fanyi Yang, Yutong Wang 외

Nowadays, formal theorem provers have made monumental progress on high-school and competition-level mathematics, but few of them generalize to more advanced mathematics. In this paper, we present REAL-Prover, a new open-…

Language ModelingLanguage ModellingLarge Language ModelMath+2

TheoremGraph: Bridging Formal and Informal Mathematics

2026-06-24 · Simon Kurgan, Evan Wang, Eric Leonen, Sophie Szeto 외 arxiv

Mathematical knowledge is organized around statements and their dependencies, but this structure is exposed unevenly: informal papers cite mostly at the document level, while formal libraries record fine-grained dependen…

Combining Textual and Structural Information for Premise Selection in Lean

2025-10-24 · Job Petrovčič, David Eliecer Narvaez Denis, Ljupčo Todorovski arxiv

Premise selection is a key bottleneck for scaling theorem proving in large formal libraries. Yet existing language-based methods often treat premises in isolation, ignoring the web of dependencies that connects them. We …

DRIFT: Decompose, Retrieve, Illustrate, then Formalize Theorems

2025-10-12 · Meiru Zhang, Philipp Borchert, Milan Gritta, Gerasimos Lampouras arxiv

Automating the formalization of mathematical statements for theorem proving remains a major challenge for Large Language Models (LLMs). LLMs struggle to identify and utilize the prerequisite mathematical knowledge and it…