Tree-Based Premise Selection for Lean4

Zi-Chen Wang, An-Jie Dong, Zai-Wen Wen
1/1/2025

No confident code implementation found for this paper.

Abstract

Premise selection is a critical bottleneck in interactive theorem proving, particularly with large libraries. Existing methods, primarily relying on semantic embeddings, often fail to effectively leverage the rich structural information inherent in mathematical expressions.

Show full abstract

This paper proposes a novel framework for premise selection based on the structure of expression trees. The framework enhances premise selection ability by explicitly utilizing the structural information of Lean expressions and by means of the simplified tree representation obtained via common subexpression elimination. Our method employs a multi-stage filtering pipeline, incorporating structure-aware similarity measures including the Weisfeiler-Lehman kernel, tree edit distance, Const node Jaccard similarity, and collapse-match similarity. An adaptive fusion strategy combines these metrics for refined ranking. To handle large-scale data efficiently, we incorporate cluster-based search space optimization and structural compatibility constraints. Comprehensive evaluation on a large theorem library extracted from Mathlib4 demonstrates that our method significantly outperforms existing premise retrieval tools across various metrics. Experimental analysis, including ablation studies and parameter sensitivity analysis, validates the contribution of individual components and highlights the efficacy of our structure-aware approach and multi-metric fusion.

DOISemantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2025treebased,
  title  = {Tree-Based Premise Selection for Lean4},
  author = {Zi-Chen Wang and An-Jie Dong and Zai-Wen Wen},
  year   = {2025},
  doi    = {10.52202/085713-1094},
  url    = {https://doi.org/10.52202/085713-1094},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/3312e339b7e80c6c4b93af19568cc91462d1a0c7.svg)](https://codeofpaper.com/paper/3312e339b7e80c6c4b93af19568cc91462d1a0c7)

Discussion