LEAN-GitHub: Compiling GitHub LEAN repositories for a versatile LEAN prover

Zijian Wu, Jiayu Wang, Dahua Lin, Kai Chen
7/24/2024
cs.AIcs.CL

No official code found. Best implementation: InternLM/InternLM-Math (545 stars, Apache-2.0, last commit 2024-10-22).

Abstract

Recently, large language models have presented promising results in aiding formal mathematical reasoning. However, their performance is restricted due to the scarcity of formal theorem-proving data, which requires additional effort to be extracted from raw formal language corpora. Meanwhile, a significant amount of human-written formal language corpora remains underutilized. To address this issue, we propose LEAN-GitHub, a dataset consisting of large-scale formal data extracted from almost all Lean 4 repositories on GitHub. After fine-tuning InternLM-math-plus on this dataset, our model achieved accuracies of 48.8% with a single pass and 54.5% with 64 passes on the Lean 4 miniF2F test, surpassing state-of-the-art method at 52%. And it also achieves state-of-the-art on two other Lean 4 benchmarks (ProofNet and Putnam) targeting different fields/levels of math. These results demonstrate that our proposed dataset is beneficial for formal reasoning on a wide range of math topics. We open-source our model at https://GitHub. com/InternLM/InternLM-Math and our data at https://huggingface.co/ datasets/InternLM/Lean-GitHub

View on arXivView PDF

Code Implementations(1)

Apache-2.0

State-of-the-art bilingual open-sourced Math reasoning LLMs.

54537Lean, ShellJan 22, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{wu2024leangithub,
  title  = {LEAN-GitHub: Compiling GitHub LEAN repositories for a versatile LEAN prover},
  author = {Zijian Wu and Jiayu Wang and Dahua Lin and Kai Chen},
  year   = {2024},
  eprint = {2407.17227},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.17227v1}
}

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/2407.17227.svg)](https://codeofpaper.com/paper/2407.17227)

Discussion