paper-with-me

홈 › Papers

LeanDojo: Theorem Proving with Retrieval-Augmented Language Models

2023-06-27 · NeurIPS 2023 11 · Kaiyu Yang, Aidan M. Swope, Alex Gu, Rahul Chalamala, Peiyang Song, Shixing Yu, Saad Godil, Ryan Prenger, Anima Anandkumar

Large language models (LLMs) have shown promise in proving formal theorems using proof assistants such as Lean. However, existing methods are difficult to reproduce or build on, due to private code, data, and large compute requirements. This has created substantial barriers to research on machine learning methods for theorem proving. This paper removes these barriers by introducing LeanDojo: an open-source Lean playground consisting of toolkits, data, models, and benchmarks. LeanDojo extracts data from Lean and enables interaction with the proof environment programmatically. It contains fine-grained annotations of premises in proofs, providing valuable data for premise selection: a key bottleneck in theorem proving. Using this data, we develop ReProver (Retrieval-Augmented Prover): an LLM-based prover augmented with retrieval for selecting premises from a vast math library. It is inexpensive and needs only one GPU week of training. Our retriever leverages LeanDojo's program analysis capability to identify accessible premises and hard negative examples, which makes retrieval much more effective. Furthermore, we construct a new benchmark consisting of 98,734 theorems and proofs extracted from Lean's math library. It features challenging data split requiring the prover to generalize to theorems relying on novel premises that are never used in training. We use this benchmark for training and evaluation, and experimental results demonstrate the effectiveness of ReProver over non-retrieval baselines and GPT-4. We thus provide the first set of open-source LLM-based theorem provers without any proprietary datasets and release it under a permissive MIT license to facilitate further research.

📄 PDF Abstract BibTeX arXiv:2306.15626

Code (3)

lean-dojo/leandojo 공식 구현
lean-dojo/leandojochatgpt 공식 구현
lean-dojo/reprover 공식 구현 pytorch

Tasks

Automated Theorem ProvingGPUMathRetrieval

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Position-Wise Feed-Forward Layer 설명 없음

Similar Papers 제목 키워드 기반

Combining Textual and Structural Information for Premise Selection in Lean

2025-10-24 · Job Petrovčič, David Eliecer Narvaez Denis, Ljupčo Todorovski arxiv

Premise selection is a key bottleneck for scaling theorem proving in large formal libraries. Yet existing language-based methods often treat premises in isolation, ignoring the web of dependencies that connects them. We …

Alchemy: Amplifying Theorem-Proving Capability through Symbolic Mutation

2024-10-21 · Shaonan Wu, Shuai Lu, Yeyun Gong, Nan Duan 외

Formal proofs are challenging to write even for experienced experts. Recent progress in Neural Theorem Proving (NTP) shows promise in expediting this process. However, the formal corpora available on the Internet are lim…

Automated Theorem ProvingContinual Pretraining

ProofBridge: Auto-Formalization of Natural Language Proofs in Lean via Joint Embeddings

2025-10-17 · Prithwish Jana, Kaan Kale, Ahmet Ege Tanriverdi, Cruise Song 외 arxiv

Translating human-written mathematical theorems and proofs from natural language (NL) into formal languages (FLs) like Lean 4 has long been a significant challenge for AI. Most state-of-the-art methods either focus on th…

Cross-Modal Retrieval

DRIFT: Decompose, Retrieve, Illustrate, then Formalize Theorems

2025-10-12 · Meiru Zhang, Philipp Borchert, Milan Gritta, Gerasimos Lampouras arxiv

Automating the formalization of mathematical statements for theorem proving remains a major challenge for Large Language Models (LLMs). LLMs struggle to identify and utilize the prerequisite mathematical knowledge and it…

IsabeLLM: Automated Theorem Proving Applied to Formally Verifying Consensus

2026-06-16 · Elliot Jones, William Knottenbelt arxiv

Advances in Artificial Intelligence (AI) have led AI for Theorem Proving to become a promising means of formally verifying computer systems. Whilst formal verification is traditionally reserved for safety-critical system…

Automated Theorem Proving