A Semantic Search Engine for Mathlib4
Not on the map. Why?
Abstract (arXiv)
The interactive theorem prover Lean enables the verification of formal mathematical proofs and is backed by an expanding community. Central to this ecosystem is its mathematical library, mathlib4, which lays the groundwork for the formalization of an expanding range of mathematical theories. However, searching for theorems in mathlib4 can be challenging. To successfully search in mathlib4, users often need to be familiar with its naming conventions or documentation strings. Therefore, creating a semantic search engine that can be used easily by individuals with varying familiarity with mathlib4 is very important. In this paper, we present a semantic search engine (https://leansearch.net/) for mathlib4 that accepts informal queries and finds the relevant theorems. We also establish a benchmark for assessing the performance of various search engines for mathlib4.
Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Builds on 20 of its 42 references that are in the map. First posted on arXiv 20 Mar 2024.
Builds on
20 of 42 references.
References · 20
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
- 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,160
- 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 853
- 2019Latent Retrieval for Weakly Supervised Open Domain Question Answeringcited by 691
- 2021Sentence-T5: Scalable Sentence Encoders from Pre-trained Text-to-Text Modelscited by 462
- 2021Large Dual Encoders Are Generalizable Retrieverscited by 454
- 2020RocketQA: An Optimized Training Approach to Dense Passage Retrieval for Open-Domain Question Answeringcited by 410
- 2020Document Ranking with a Pretrained Sequence-to-Sequence Modelcited by 373
- 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 358
- 2022One Embedder, Any Task: Instruction-Finetuned Text Embeddingscited by 329
- 2023Improving Text Embeddings with Large Language Modelscited by 295
8 more
- 2020Pre-training Tasks for Embedding-based Large-scale Retrievalcited by 153
- 2023AnglE-optimized Text Embeddingscited by 98
- 2017End-to-End Neural Ad-hoc Ranking with Kernel Poolingcited by 85
- 2019Understanding the Behaviors of BERT in Rankingcited by 49
- 2023Multilingual Mathematical Autoformalizationcited by 38
- 2018Entity-Duet Neural Ranking: Understanding the Role of Knowledge Graph Semantics in Neural Information Retrievalcited by 33
- 2018Deep Relevance Ranking Using Enhanced Document-Query Interactionscited by 13
- 2022Evaluating Token-Level and Passage-Level Dense Retrieval Models for Math Information Retrievalcited by 9
Built on by
Citing papers per year: 2024: 1; 2025: 11; 2026: 18.
30 papers.
Sort:
By area:
- 2025Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correctioncited by 140
- 2024Formal Mathematical Reasoning: A New Frontier in AIcited by 80
- 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoningcited by 55
- 2026Automated Conjecture Resolution with Formal Verificationcited by 21
- 2025REAL-Prover: Retrieval Augmented Lean Prover for Mathematical Reasoningcited by 18
- 2025Aria: An Agent For Retrieval and Iterative Auto-Formalization via Dependency Graphcited by 18
- 2025ProofBridge: Auto-Formalization of Natural Language Proofs in Lean via Joint Embeddingscited by 16
- 2025LeanExplore: A search engine for Lean 4 declarationscited by 13
- 2026A Minimal Agent for Automated Theorem Provingcited by 13
- 2026LEAP: Supercharging LLMs for Formal Mathematics with Agentic Frameworkscited by 11
- 2025DRIFT: Decompose, Retrieve, Illustrate, then Formalize Theoremscited by 8
- 2025Lean Finder: Semantic Search for Mathlib That Understands User Intentscited by 7
18 more
- 2026Semantic Search over 9 Million Mathematical Theoremscited by 7
- 2026LeanSearch v2: Global Premise Retrieval for Lean 4 Theorem Provingcited by 7
- 2025MIRB: Mathematical Information Retrieval Benchmarkcited by 5
- 2025Automated Formalization via Conceptual Retrieval-Augmented LLMscited by 5
- 2025Learning an Effective Premise Retrieval Model for Efficient Mathematical Formalizationcited by 4
- 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?cited by 4
- 2026DreamProver: Evolving Transferable Lemma Libraries via a Wake-Sleep Theorem-Proving Agentcited by 4
- 2026TheoremGraph: Bridging Formal and Informal Mathematicscited by 4
- 2026Beyond Compilation: Evaluating Faithful Natural-Language-to-Lean Statement Formalizationcited by 4
- 2026Matlas: A Semantic Search Engine for Mathematicscited by 3
- 2026MathAtlas: A Benchmark for Autoformalization in the Wildcited by 2
- 2026COMPOSE: Composing Future Theorems from Citations and Formal Structurecited by 2
- 2026Proof-Refactor: Refactoring Generated Formal Proofs into Modular Artifactscited by 2
- 2026TheoremForge: Scaling up Formal Data Synthesis with Low-Budget Agentic Workflowcited by 1
- 2026Awakening the Sleeping Agent: Lean-Specific Agentic Data Reactivates General Tool Use in Goedel Provercited by 0
- 2026Re2Math: Benchmarking Theorem Retrieval in Research-Level Mathematicscited by 0
- 2026SABER-Math: Automated Benchmark for Information Retrieval Evaluation in Mathematicscited by 0
- 2026Fyan: A Human--AI Harness with Semantic Auditing for Document-Level Formalizationcited by 0
- 2026Fyan: A Human--AI Harness with Semantic Auditing for Document-Level Formalization30 Sep 2026
- 2026Beyond Compilation: Evaluating Faithful Natural-Language-to-Lean Statement Formalization30 Jun 2026
- 2026SABER-Math: Automated Benchmark for Information Retrieval Evaluation in Mathematics29 Jun 2026
- 2026TheoremGraph: Bridging Formal and Informal Mathematics24 Jun 2026
- 2026Proof-Refactor: Refactoring Generated Formal Proofs into Modular Artifacts2 Jun 2026
- 2026LEAP: Supercharging LLMs for Formal Mathematics with Agentic Frameworks2 Jun 2026
- 2026COMPOSE: Composing Future Theorems from Citations and Formal Structure28 May 2026
- 2026MathAtlas: A Benchmark for Autoformalization in the Wild13 May 2026
- 2026LeanSearch v2: Global Premise Retrieval for Lean 4 Theorem Proving13 May 2026
- 2026Re2Math: Benchmarking Theorem Retrieval in Research-Level Mathematics9 May 2026
- 2026DreamProver: Evolving Transferable Lemma Libraries via a Wake-Sleep Theorem-Proving Agent29 Apr 2026
- 2026Matlas: A Semantic Search Engine for Mathematics19 Apr 2026
18 more
- 2026Awakening the Sleeping Agent: Lean-Specific Agentic Data Reactivates General Tool Use in Goedel Prover9 Apr 2026
- 2026Automated Conjecture Resolution with Formal Verification4 Apr 2026
- 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?3 Mar 2026
- 2026A Minimal Agent for Automated Theorem Proving27 Feb 2026
- 2026Semantic Search over 9 Million Mathematical Theorems5 Feb 2026
- 2026TheoremForge: Scaling up Formal Data Synthesis with Low-Budget Agentic Workflow24 Jan 2026
- 2025ProofBridge: Auto-Formalization of Natural Language Proofs in Lean via Joint Embeddings17 Oct 2025
- 2025DRIFT: Decompose, Retrieve, Illustrate, then Formalize Theorems12 Oct 2025
- 2025Lean Finder: Semantic Search for Mathlib That Understands User Intents8 Oct 2025
- 2025Aria: An Agent For Retrieval and Iterative Auto-Formalization via Dependency Graph6 Oct 2025
- 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoning26 Sep 2025
- 2025Automated Formalization via Conceptual Retrieval-Augmented LLMs9 Aug 2025
- 2025Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correction5 Aug 2025
- 2025LeanExplore: A search engine for Lean 4 declarations4 Jun 2025
- 2025REAL-Prover: Retrieval Augmented Lean Prover for Mathematical Reasoning27 May 2025
- 2025MIRB: Mathematical Information Retrieval Benchmark21 May 2025
- 2025Learning an Effective Premise Retrieval Model for Efficient Mathematical Formalization21 Jan 2025
- 2024Formal Mathematical Reasoning: A New Frontier in AI20 Dec 2024
- 2025Aria: An Agent For Retrieval and Iterative Auto-Formalization via Dependency Graphcited by 18
- 2026A Minimal Agent for Automated Theorem Provingcited by 13
- 2026DreamProver: Evolving Transferable Lemma Libraries via a Wake-Sleep Theorem-Proving Agentcited by 4
- 2026TheoremForge: Scaling up Formal Data Synthesis with Low-Budget Agentic Workflowcited by 1
- 2026Awakening the Sleeping Agent: Lean-Specific Agentic Data Reactivates General Tool Use in Goedel Provercited by 0
- 2026SABER-Math: Automated Benchmark for Information Retrieval Evaluation in Mathematicscited by 0
- 2026SABER-Math: Automated Benchmark for Information Retrieval Evaluation in Mathematics29 Jun 2026
- 2026DreamProver: Evolving Transferable Lemma Libraries via a Wake-Sleep Theorem-Proving Agent29 Apr 2026
- 2026Awakening the Sleeping Agent: Lean-Specific Agentic Data Reactivates General Tool Use in Goedel Prover9 Apr 2026
- 2026A Minimal Agent for Automated Theorem Proving27 Feb 2026
- 2026TheoremForge: Scaling up Formal Data Synthesis with Low-Budget Agentic Workflow24 Jan 2026
- 2025Aria: An Agent For Retrieval and Iterative Auto-Formalization via Dependency Graph6 Oct 2025
- 2024Formal Mathematical Reasoning: A New Frontier in AIcited by 80
- 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoningcited by 55
- 2026Automated Conjecture Resolution with Formal Verificationcited by 21
- 2025REAL-Prover: Retrieval Augmented Lean Prover for Mathematical Reasoningcited by 18
- 2026LEAP: Supercharging LLMs for Formal Mathematics with Agentic Frameworkscited by 11
- 2026Re2Math: Benchmarking Theorem Retrieval in Research-Level Mathematicscited by 0
- 2026LEAP: Supercharging LLMs for Formal Mathematics with Agentic Frameworks2 Jun 2026
- 2026Re2Math: Benchmarking Theorem Retrieval in Research-Level Mathematics9 May 2026
- 2026Automated Conjecture Resolution with Formal Verification4 Apr 2026
- 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoning26 Sep 2025
- 2025REAL-Prover: Retrieval Augmented Lean Prover for Mathematical Reasoning27 May 2025
- 2024Formal Mathematical Reasoning: A New Frontier in AI20 Dec 2024
- 2025LeanExplore: A search engine for Lean 4 declarationscited by 13
- 2025DRIFT: Decompose, Retrieve, Illustrate, then Formalize Theoremscited by 8
- 2025Lean Finder: Semantic Search for Mathlib That Understands User Intentscited by 7
- 2026Semantic Search over 9 Million Mathematical Theoremscited by 7
- 2026LeanSearch v2: Global Premise Retrieval for Lean 4 Theorem Provingcited by 7
- 2025MIRB: Mathematical Information Retrieval Benchmarkcited by 5
- 2025Learning an Effective Premise Retrieval Model for Efficient Mathematical Formalizationcited by 4
- 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?cited by 4
- 2026TheoremGraph: Bridging Formal and Informal Mathematicscited by 4
- 2026Beyond Compilation: Evaluating Faithful Natural-Language-to-Lean Statement Formalizationcited by 4
- 2026Matlas: A Semantic Search Engine for Mathematicscited by 3
- 2026MathAtlas: A Benchmark for Autoformalization in the Wildcited by 2
12 most cited of 15 All 15 (JSON)
- 2026Fyan: A Human--AI Harness with Semantic Auditing for Document-Level Formalization30 Sep 2026
- 2026Beyond Compilation: Evaluating Faithful Natural-Language-to-Lean Statement Formalization30 Jun 2026
- 2026TheoremGraph: Bridging Formal and Informal Mathematics24 Jun 2026
- 2026Proof-Refactor: Refactoring Generated Formal Proofs into Modular Artifacts2 Jun 2026
- 2026COMPOSE: Composing Future Theorems from Citations and Formal Structure28 May 2026
- 2026MathAtlas: A Benchmark for Autoformalization in the Wild13 May 2026
- 2026LeanSearch v2: Global Premise Retrieval for Lean 4 Theorem Proving13 May 2026
- 2026Matlas: A Semantic Search Engine for Mathematics19 Apr 2026
- 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?3 Mar 2026
- 2026Semantic Search over 9 Million Mathematical Theorems5 Feb 2026
- 2025DRIFT: Decompose, Retrieve, Illustrate, then Formalize Theorems12 Oct 2025
- 2025Lean Finder: Semantic Search for Mathlib That Understands User Intents8 Oct 2025
12 newest of 15 All 15 (JSON)