Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
102 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

LEGO-Prover: Neural Theorem Proving with Growing Libraries (2310.00656v3)

Published 1 Oct 2023 in cs.AI

Abstract: Despite the success of LLMs, the task of theorem proving still remains one of the hardest reasoning tasks that is far from being fully solved. Prior methods using LLMs have demonstrated promising results, but they still struggle to prove even middle school level theorems. One common limitation of these methods is that they assume a fixed theorem library during the whole theorem proving process. However, as we all know, creating new useful theorems or even new theories is not only helpful but crucial and necessary for advancing mathematics and proving harder and deeper results. In this work, we present LEGO-Prover, which employs a growing skill library containing verified lemmas as skills to augment the capability of LLMs used in theorem proving. By constructing the proof modularly, LEGO-Prover enables LLMs to utilize existing skills retrieved from the library and to create new skills during the proving process. These skills are further evolved (by prompting an LLM) to enrich the library on another scale. Modular and reusable skills are constantly added to the library to enable tackling increasingly intricate mathematical problems. Moreover, the learned library further bridges the gap between human proofs and formal proofs by making it easier to impute missing steps. LEGO-Prover advances the state-of-the-art pass rate on miniF2F-valid (48.0% to 57.0%) and miniF2F-test (45.5% to 47.1%). During the proving process, LEGO-Prover also manages to generate over 20,000 skills (theorems/lemmas) and adds them to the growing library. Our ablation study indicates that these newly added skills are indeed helpful for proving theorems, resulting in an improvement from a success rate of 47.1% to 50.4%. We also release our code and all the generated skills.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (14)
  1. Haiming Wang (21 papers)
  2. Huajian Xin (12 papers)
  3. Chuanyang Zheng (21 papers)
  4. Lin Li (329 papers)
  5. Zhengying Liu (26 papers)
  6. Qingxing Cao (16 papers)
  7. Yinya Huang (22 papers)
  8. Jing Xiong (30 papers)
  9. Han Shi (27 papers)
  10. Enze Xie (84 papers)
  11. Jian Yin (67 papers)
  12. Zhenguo Li (195 papers)
  13. Heng Liao (5 papers)
  14. Xiaodan Liang (318 papers)
Citations (33)
Github Logo Streamline Icon: https://streamlinehq.com