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.
翻译:暂无翻译