File size: 8,150 Bytes
7328b84
 
 
 
 
 
 
 
 
 
 
 
 
225952c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
---
license: apache-2.0
language:
- en
pretty_name: ProofNet-Verified
tags:
- lean
- theorem-proving
- autoformalization
- ai4math
- mathematics
---

# ProofNet-Verified

**Resource Links:**
 - Paper: https://openreview.net/forum?id=5c0RSYyIWW, https://openreview.net/forum?id=NjgaeXNit3
 - GitHub: https://github.com/marcusm117/ProofNet-Verified
 - HuggingFace: https://huggingface.co/datasets/marcusm117/ProofNet-Verified
 - Visualization: https://marcusm117.github.io/ProofNet-Verified/

**ProofNet-Verified (ProofNet-V)** is an audited, corrected, and verified version of the [ProofNet](https://github.com/zhangir-azerbayev/ProofNet) dataset that is upgraded to be compatible with `Lean v4.28.0`. A visualization of all errors, error classifications, and our corrections can be found at [https://marcusm117.github.io/ProofNet-Verified](https://marcusm117.github.io/ProofNet-Verified).

[ProofNet](https://github.com/zhangir-azerbayev/ProofNet) is a benchmark for theorem proving and autoformalization of undergraduate-level mathematics. It originally consists of **371** data points, each consisting of a formal theorem statement in `Lean 3`, a natural language theorem statement, and a natural language proof. The problems are primarily drawn from popular undergraduate pure mathematics textbooks and cover topics such as real and complex analysis, linear algebra, abstract algebra, and topology. We intend for ProofNet to be a challenging benchmark that will drive progress in autoformalization and automatic theorem proving

[ProofNet#](https://huggingface.co/datasets/PAug/ProofNetSharp) is a cleaner version of ProofNet compatible with `Lean v4.7.0` to `Lean v4.16.0-rc2`, correcting 118 errors in previous Lean 4 implementations of ProofNet like [ProofNet-lean4](https://github.com/rahul3613/ProofNet-lean4).

We gratefully acknowledge the authors of these projects for their effort and making the data publicly available.

Based on ProofNet and ProofNet#, we made the following modifications:

1. Filter out 4 non-proof problems that have inconsistent natural language statement and formal statements, resulting in **367** problems in total.

- Axler|exercise_1_6
- Axler|exercise_1_7
- Rudin|exercise_1_14
- Rudin|exercise_1_19

2. Upgrade the formal statements to be compatible with `Lean v4.28.0`, so that more automated proof search tools like [Grind](https://lean-lang.org/doc/reference/latest/The--grind--tactic/), [Canonical](https://github.com/chasenorman/CanonicalLean), and [Lean-SMT](https://github.com/ufmg-smite/lean-smt) are available.

3. Audit the benchmark for both errors in the ground-truth formalizations and ambiguity in the informal statements, identifying **204/367 (55.6%)** errors in **ProofNet** and **97/367 (26.4%)** errors in **ProofNet#**.

4. Confirm each error by proving the negation of incorrect formalizations, providing trivialized proofs of formalization that are provably true but unfaithful to the informal statement, or giving detailed reasoning for why a formalization is unfaithful or an informal statement is ambiguous.

5. Correct these errors and **verify all 367** formal statements by providing **formal proofs** for each. Additionally, the faithfulness of these corrections is assessed by both human reviewers and an AI agent until they reach a consensus.

## Citation

If you find the **ProofNet-Verified** benchmark useful for your research, please kindly cite:

```bibtex
@inproceedings{
  an2026ground,
  title={Ground False: Dissecting Errors in Formal Mathematics Benchmarks},
  author={One An$^{*}$ and Marcus J. Min$^{*}$ and Xujie Si and Osbert Bastani},
  booktitle={3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents},
  year={2026},
  url={https://openreview.net/forum?id=5c0RSYyIWW}
}

@inproceedings{
  min2026divide,
  title={Divide and Abstract: Autoformalization via Decomposition and Abstraction Learning},
  author={Marcus J. Min and Yeqi Gao and Wilson Sy and Zhaoyu Li and Xujie Si and Osbert Bastani},
  booktitle={The Fourteenth International Conference on Learning Representations},
  year={2026},
  url={https://openreview.net/forum?id=NjgaeXNit3}
}
```

## Benchmark Audit Summary

| | ProofNet | ProofNet# |
|---|---|---|
| Faithful | 163 (44.4%) | 270 (73.6%) |
| Unfaithful | 194 (52.9%) | 88 (24.0%) |
| Ambiguous NL | 9 (2.5%) | 8 (2.2%) |
| Wrong NL | 1 (0.3%) | 1 (0.3%) |
| **Total Errors** | **204 (55.6%)** | **97 (26.4%)** |
| **Total** | **367** | **367** |

### Unfaithful Error Type Breakdown

| Unfaithful Error Type | ProofNet | ProofNet# |
|---|---|---|
| Misunderstanding of informal statement | 94 (25.6%) | 27 (7.4%) |
| Missing premise | 30 (8.2%) | 3 (0.8%) |
| Misunderstanding of Mathlib | 26 (7.1%) | 31 (8.4%) |
| Missing implicit premise | 18 (4.9%) | 18 (4.9%) |
| Misunderstanding of Lean | 10 (2.7%) | 8 (2.2%) |
| Adding extra case | 9 (2.5%) | 0 (0.0%) |
| Adding extra conclusion | 7 (1.9%) | 1 (0.3%) |
| **Total Unfaithful** | **194 (52.9%)** | **88 (24.0%)** |


## Dataset Format

Each entry in [proofnet-verified.jsonl](data/proofnet-verified.jsonl) contains:

| Field | Description |
|---|---|
| `index` | Problem number (1-367) |
| `name` | Identifier, e.g. `Artin_exercise_2_2_9` |
| `textbook` | Source textbook |
| `header` | Lean imports and `open` declarations |
| `helper` | Auxiliary definitions needed by some problems |
| `informal_stmt` | Natural language theorem statement |
| `formal_stmt` | Lean 4 formal statement (ends with `sorry`) |
| `informal_proof` | Natural language proof |
| `formal_proof` | [Zipped](data/proofnet-verified_gt.zip) to avoid data contamination |

### Example Entry

```lean
import Mathlib

open Function Fintype Subgroup Ideal Polynomial Submodule Zsqrtd
open scoped BigOperators

/-Informal Statement

Let $H$ be the subgroup generated by two elements $a, b$ of a group $G$.
Prove that if $a b=b a$, then $H$ is an abelian group.
-/

theorem Artin_exercise_2_2_9 {G : Type*} [Group G] {a b : G}
  (h : a * b = b * a) :
  ∀ x y : closure {x | x = a ∨ x = b}, x * y = y * x := by
  sorry
```

## Getting Started

### Prerequisites

- [Lean 4](https://lean-lang.org/lean4/doc/setup.html) (v4.28.0, managed via `elan`)
- [Lake](https://github.com/leanprover/lean4/tree/master/src/lake) (bundled with Lean)
- [uv](https://docs.astral.sh/uv/) (for Python scripts)

### Building

```bash
# Clone the repository
git clone https://github.com/marcusm117/ProofNet-Verified
cd ProofNet-Verified

# Fetch dependencies and pre-built Mathlib artifacts
lake update
```

### Compiling All Statements

To type-check all 367 formal statements in parallel:

```bash
uv sync
uv run python scripts/verify_compilation.py
```

This runs `lake env lean` on each file with 48 parallel workers (configurable via `--jobs`).

### Python Environment

Python scripts (e.g. `scripts/verify_compilation.py`) are managed with [uv](https://docs.astral.sh/uv/):

```bash
# Create .venv and install dependencies (joblib, tqdm)
uv sync

# Run a script through the managed environment
uv run python scripts/verify_compilation.py
```

## Using the Benchmark

### For Theorem Proving Evaluation

The `proofnet-verified/` directory contains 367 Lean files, each with a single theorem statement ending in `sorry`. Replace `sorry` with a valid proof to solve the problem. We recommend using [Lean Comparator](https://github.com/leanprover/comparator) as a rigorous proof checker.

### For Autoformalization Evaluation

Each entry in `proofnet-verified.jsonl` pairs an `informal_stmt` with a `formal_stmt`. We recommend using symbolic checkers like [BEq+](https://github.com/augustepoiroux/LeanInteract/blob/main/examples/beq_plus.py) over LLM-as-a-Judge to compare the ground truth `formal_stmt` with the generated candidate formalizations.

### For Error Analysis

The `error_taxonomy/` directory provides detailed per-problem error classifications, useful for studying common failure modes in mathematical formalization (Lean syntax misunderstandings, Mathlib API misuse, missing premises, etc.).

## License

This project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details.