Datasets:
Add dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- lean4
|
| 9 |
+
- theorem-proving
|
| 10 |
+
- code-generation
|
| 11 |
+
- benchmark
|
| 12 |
+
size_categories:
|
| 13 |
+
- n<1K
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# LeanBench Dataset
|
| 17 |
+
|
| 18 |
+
A benchmark dataset for evaluating AI systems on Lean 4 theorem proving tasks.
|
| 19 |
+
|
| 20 |
+
## Dataset Description
|
| 21 |
+
|
| 22 |
+
This dataset contains 190 tasks extracted from real Lean 4 pull requests.
|
| 23 |
+
|
| 24 |
+
### Task Format
|
| 25 |
+
|
| 26 |
+
Each row represents a single task with the following key fields:
|
| 27 |
+
|
| 28 |
+
| Field | Description |
|
| 29 |
+
|-------|-------------|
|
| 30 |
+
| `task_id` | Unique identifier (e.g., LB-0001) |
|
| 31 |
+
| `task_type` | Type of task (e.g., pr_completion) |
|
| 32 |
+
| `difficulty` | Difficulty level (easy/medium/hard) |
|
| 33 |
+
| `difficulty_score` | Numeric difficulty score |
|
| 34 |
+
| `repo` | Source GitHub repository |
|
| 35 |
+
| `pr_number` | Pull request number |
|
| 36 |
+
| `problem_statement` | Natural language description of the task |
|
| 37 |
+
| `golden_patch` | Expected solution (diff format) |
|
| 38 |
+
| `verification_command` | Command to verify the solution |
|
| 39 |
+
|
| 40 |
+
### Usage
|
| 41 |
+
|
| 42 |
+
```python
|
| 43 |
+
from datasets import load_dataset
|
| 44 |
+
|
| 45 |
+
dataset = load_dataset("foundry-ai/leanbench")
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
## License
|
| 49 |
+
|
| 50 |
+
Apache 2.0
|