marcusm117 commited on
Commit
225952c
·
1 Parent(s): 7b7e273
Files changed (2) hide show
  1. README.md +177 -3
  2. proofnet-verified.jsonl +0 -0
README.md CHANGED
@@ -1,3 +1,177 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ProofNet-Verified
2
+
3
+ **Resource Links:**
4
+ - Paper: https://openreview.net/forum?id=5c0RSYyIWW, https://openreview.net/forum?id=NjgaeXNit3
5
+ - GitHub: https://github.com/marcusm117/ProofNet-Verified
6
+ - HuggingFace: https://huggingface.co/datasets/marcusm117/ProofNet-Verified
7
+ - Visualization: https://marcusm117.github.io/ProofNet-Verified/
8
+
9
+ **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).
10
+
11
+ [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
12
+
13
+ [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).
14
+
15
+ We gratefully acknowledge the authors of these projects for their effort and making the data publicly available.
16
+
17
+ Based on ProofNet and ProofNet#, we made the following modifications:
18
+
19
+ 1. Filter out 4 non-proof problems that have inconsistent natural language statement and formal statements, resulting in **367** problems in total.
20
+
21
+ - Axler|exercise_1_6
22
+ - Axler|exercise_1_7
23
+ - Rudin|exercise_1_14
24
+ - Rudin|exercise_1_19
25
+
26
+ 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.
27
+
28
+ 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#**.
29
+
30
+ 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.
31
+
32
+ 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.
33
+
34
+ ## Citation
35
+
36
+ If you find the **ProofNet-Verified** benchmark useful for your research, please kindly cite:
37
+
38
+ ```bibtex
39
+ @inproceedings{
40
+ an2026ground,
41
+ title={Ground False: Dissecting Errors in Formal Mathematics Benchmarks},
42
+ author={One An$^{*}$ and Marcus J. Min$^{*}$ and Xujie Si and Osbert Bastani},
43
+ booktitle={3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents},
44
+ year={2026},
45
+ url={https://openreview.net/forum?id=5c0RSYyIWW}
46
+ }
47
+
48
+ @inproceedings{
49
+ min2026divide,
50
+ title={Divide and Abstract: Autoformalization via Decomposition and Abstraction Learning},
51
+ author={Marcus J. Min and Yeqi Gao and Wilson Sy and Zhaoyu Li and Xujie Si and Osbert Bastani},
52
+ booktitle={The Fourteenth International Conference on Learning Representations},
53
+ year={2026},
54
+ url={https://openreview.net/forum?id=NjgaeXNit3}
55
+ }
56
+ ```
57
+
58
+ ## Benchmark Audit Summary
59
+
60
+ | | ProofNet | ProofNet# |
61
+ |---|---|---|
62
+ | Faithful | 163 (44.4%) | 270 (73.6%) |
63
+ | Unfaithful | 194 (52.9%) | 88 (24.0%) |
64
+ | Ambiguous NL | 9 (2.5%) | 8 (2.2%) |
65
+ | Wrong NL | 1 (0.3%) | 1 (0.3%) |
66
+ | **Total Errors** | **204 (55.6%)** | **97 (26.4%)** |
67
+ | **Total** | **367** | **367** |
68
+
69
+ ### Unfaithful Error Type Breakdown
70
+
71
+ | Unfaithful Error Type | ProofNet | ProofNet# |
72
+ |---|---|---|
73
+ | Misunderstanding of informal statement | 94 (25.6%) | 27 (7.4%) |
74
+ | Missing premise | 30 (8.2%) | 3 (0.8%) |
75
+ | Misunderstanding of Mathlib | 26 (7.1%) | 31 (8.4%) |
76
+ | Missing implicit premise | 18 (4.9%) | 18 (4.9%) |
77
+ | Misunderstanding of Lean | 10 (2.7%) | 8 (2.2%) |
78
+ | Adding extra case | 9 (2.5%) | 0 (0.0%) |
79
+ | Adding extra conclusion | 7 (1.9%) | 1 (0.3%) |
80
+ | **Total Unfaithful** | **194 (52.9%)** | **88 (24.0%)** |
81
+
82
+
83
+ ## Dataset Format
84
+
85
+ Each entry in [proofnet-verified.jsonl](data/proofnet-verified.jsonl) contains:
86
+
87
+ | Field | Description |
88
+ |---|---|
89
+ | `index` | Problem number (1-367) |
90
+ | `name` | Identifier, e.g. `Artin_exercise_2_2_9` |
91
+ | `textbook` | Source textbook |
92
+ | `header` | Lean imports and `open` declarations |
93
+ | `helper` | Auxiliary definitions needed by some problems |
94
+ | `informal_stmt` | Natural language theorem statement |
95
+ | `formal_stmt` | Lean 4 formal statement (ends with `sorry`) |
96
+ | `informal_proof` | Natural language proof |
97
+ | `formal_proof` | [Zipped](data/proofnet-verified_gt.zip) to avoid data contamination |
98
+
99
+ ### Example Entry
100
+
101
+ ```lean
102
+ import Mathlib
103
+
104
+ open Function Fintype Subgroup Ideal Polynomial Submodule Zsqrtd
105
+ open scoped BigOperators
106
+
107
+ /-Informal Statement
108
+
109
+ Let $H$ be the subgroup generated by two elements $a, b$ of a group $G$.
110
+ Prove that if $a b=b a$, then $H$ is an abelian group.
111
+ -/
112
+
113
+ theorem Artin_exercise_2_2_9 {G : Type*} [Group G] {a b : G}
114
+ (h : a * b = b * a) :
115
+ ∀ x y : closure {x | x = a ∨ x = b}, x * y = y * x := by
116
+ sorry
117
+ ```
118
+
119
+ ## Getting Started
120
+
121
+ ### Prerequisites
122
+
123
+ - [Lean 4](https://lean-lang.org/lean4/doc/setup.html) (v4.28.0, managed via `elan`)
124
+ - [Lake](https://github.com/leanprover/lean4/tree/master/src/lake) (bundled with Lean)
125
+ - [uv](https://docs.astral.sh/uv/) (for Python scripts)
126
+
127
+ ### Building
128
+
129
+ ```bash
130
+ # Clone the repository
131
+ git clone https://github.com/marcusm117/ProofNet-Verified
132
+ cd ProofNet-Verified
133
+
134
+ # Fetch dependencies and pre-built Mathlib artifacts
135
+ lake update
136
+ ```
137
+
138
+ ### Compiling All Statements
139
+
140
+ To type-check all 367 formal statements in parallel:
141
+
142
+ ```bash
143
+ uv sync
144
+ uv run python scripts/verify_compilation.py
145
+ ```
146
+
147
+ This runs `lake env lean` on each file with 48 parallel workers (configurable via `--jobs`).
148
+
149
+ ### Python Environment
150
+
151
+ Python scripts (e.g. `scripts/verify_compilation.py`) are managed with [uv](https://docs.astral.sh/uv/):
152
+
153
+ ```bash
154
+ # Create .venv and install dependencies (joblib, tqdm)
155
+ uv sync
156
+
157
+ # Run a script through the managed environment
158
+ uv run python scripts/verify_compilation.py
159
+ ```
160
+
161
+ ## Using the Benchmark
162
+
163
+ ### For Theorem Proving Evaluation
164
+
165
+ 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.
166
+
167
+ ### For Autoformalization Evaluation
168
+
169
+ 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.
170
+
171
+ ### For Error Analysis
172
+
173
+ 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.).
174
+
175
+ ## License
176
+
177
+ This project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details.
proofnet-verified.jsonl ADDED
The diff for this file is too large to render. See raw diff