LeanGraphSearch Uses Dependency Graphs to Find Formal Proofs

Paper / preprint arXiv cs.LG · Reported findings, not independently verified by us.

LeanGraphSearch aims to improve formal proving in Lean 4 by finding mathematical lemmas through dependencies between Mathlib declarations, not just textual similarity. In benchmarks, the method increased both retrieval recall and the success rate of automated proving.

Existing systems look for relevant statements for a target theorem or intermediate proof steps, but, according to the authors, make limited use of multi-step relationships between declarations. LeanGraphSearch instead builds a graph from Mathlib’s forward dependencies. It propagates relevance from semantically matched declarations to their premises, then reranks the expanded candidates against the original query.

On MathlibQR, recall was up to 12% higher than with the strongest comparison method, LeanSearch v2. On MathlibMPR, the method covered up to 3.7% more groups of complete, annotated proof routes. In three theorem-proving benchmarks, integrating it into an iterative process guided by Lean feedback improved pass rates at 8, 16, and 32 reflection turns by as much as 40% over a vanilla prover and by at most 10% over LeanSearch v2.

The results support using structural relationships in proof retrieval, but apply to the benchmarks named in the report. The original source gives further details on the method and evaluation. https://arxiv.org/abs/2610.22339v1

🇬🇧 https://arxiv.org/abs/2610.22339v1

Leave a Comment

The weekly brief: selected developments, projects and videos