LeanExplore Bench: A Benchmark for Lean 4 Declaration Search

We present LeanExplore Bench, a benchmark for search engines that index Lean 4 declarations. It consists of 3,200 queries about Mathlib, split evenly across four types of query: names and keywords; natural language; formal statements and proof states; and questions derived from Lean Zulip threads. Every query is paired with one or more Mathlib declarations that answer it. We report scores for four hosted engines, a BM25 baseline, and Lumen, the development version of LeanExplore. Among the hosted engines, Lean Finder leads with an MRR@10 of 83.4, ahead of LeanSearch at 73.6, Octo Search at 67.0, and LeanExplore at 48.4. Lumen, which we designed on the benchmark's development split and which searches the descriptions that the query writer saw, scores 92.5. A query often has correct answers beyond the declaration it was written for, and counting them raises the scores of the hosted engines by 8 to 12 points. The dataset and the code are public.

Authors

Publication Details

Journal
arXiv
Published
2026-11-30
Primary Topic
Mathematics, Computing, and Information Processing
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

LeanExplore Bench: A Benchmark for Lean 4 Declaration Search

Pietro Pellegrino, Justin Asher
arXiv
Mathematics, Computing, and Information Processing
preprint

LeanExplore Bench: A Benchmark for Lean 4 Declaration Search

Pietro Pellegrino, Justin Asher
preprint en

Abstract

We present LeanExplore Bench, a benchmark for search engines that index Lean 4 declarations. It consists of 3,200 queries about Mathlib, split evenly across four types of query: names and keywords; natural language; formal statements and proof states; and questions derived from Lean Zulip threads. Every query is paired with one or more Mathlib declarations that answer it. We report scores for four hosted engines, a BM25 baseline, and Lumen, the development version of LeanExplore. Among the hosted engines, Lean Finder leads with an MRR@10 of 83.4, ahead of LeanSearch at 73.6, Octo Search at 67.0, and LeanExplore at 48.4. Lumen, which we designed on the benchmark's development split and which searches the descriptions that the query writer saw, scores 92.5. A query often has correct answers beyond the declaration it was written for, and counting them raises the scores of the hosted engines by 8 to 12 points. The dataset and the code are public.

arXiv
Mathematics, Computing, and Information Processing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon