Datasets:
Lean proof-ablation eval: 57 repos, easy (corollary-leaves) + hard (corollary-whole) splits
Browse files- .gitattributes +2 -0
- README.md +145 -0
- ablation-eval/easy.jsonl +3 -0
- ablation-eval/hard.jsonl +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
ablation-eval/easy.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
ablation-eval/hard.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: multiple-upstream-licenses
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
pretty_name: Lean Proof-Ablation Eval (57 repos, compile-validated)
|
| 7 |
+
tags:
|
| 8 |
+
- formal-verification
|
| 9 |
+
- theorem-proving
|
| 10 |
+
- proof-synthesis
|
| 11 |
+
- lean
|
| 12 |
+
- lean4
|
| 13 |
+
- ablation
|
| 14 |
+
task_categories:
|
| 15 |
+
- text-generation
|
| 16 |
+
size_categories:
|
| 17 |
+
- 10K<n<100K
|
| 18 |
+
configs:
|
| 19 |
+
- config_name: default
|
| 20 |
+
data_files:
|
| 21 |
+
- split: easy
|
| 22 |
+
path: "ablation-eval/easy.jsonl"
|
| 23 |
+
- split: hard
|
| 24 |
+
path: "ablation-eval/hard.jsonl"
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
# Lean Proof-Ablation Eval
|
| 28 |
+
|
| 29 |
+
Syntactic proof-ablation challenges from **57 real Lean 4 repositories**
|
| 30 |
+
(compilers, cryptography, distributed protocols, zk circuits, program logics —
|
| 31 |
+
see the repo list below). Each record is a `(challenge, solution)` pair: the
|
| 32 |
+
challenge is a real source file with one or more lemmas **deleted** and their
|
| 33 |
+
in-file users **holed** (`sorry`); the solution is the original file. A solver
|
| 34 |
+
must re-derive the deleted lemma(s) and close the holes so the file compiles.
|
| 35 |
+
|
| 36 |
+
Every record is **compile-validated**: the challenge compiles with its holes
|
| 37 |
+
AND the ground-truth solution compiles hole-free, against the repo's own built
|
| 38 |
+
`.olean` closure at the pinned revision. Records whose challenge does not
|
| 39 |
+
compile (`malformed`) or whose ground truth already contained a `sorry`/axiom
|
| 40 |
+
(`sol_bad`) are excluded — only confirmed records ship here.
|
| 41 |
+
|
| 42 |
+
## Splits
|
| 43 |
+
|
| 44 |
+
Both splits pick the same anchor theorems (the "corollary") and delete the same
|
| 45 |
+
lemmas from its transitive in-file dependency closure (same seed, 42); they
|
| 46 |
+
differ only in how the *users* of a deleted lemma are holed:
|
| 47 |
+
|
| 48 |
+
| split | mode | what gets holed | rows | repos |
|
| 49 |
+
|---|---|---|---|---|
|
| 50 |
+
| `easy` | corollary-leaves | only the **leaf tactic steps** citing the deleted lemma; the rest of each user's proof survives | 21,692 | 57 |
|
| 51 |
+
| `hard` | corollary-whole | each user's **entire proof body** — solve from the statement alone | 21,718 | 57 |
|
| 52 |
+
|
| 53 |
+
Ablator flags: `--corollary-delete-lemmas-leaves-all` (easy) /
|
| 54 |
+
`--corollary-delete-lemmas-all` (hard), both with `--shrink-solution-minimal
|
| 55 |
+
--seed 42`.
|
| 56 |
+
|
| 57 |
+
## Row schema
|
| 58 |
+
|
| 59 |
+
Uniform across both splits (missing values are explicit nulls):
|
| 60 |
+
|
| 61 |
+
- **Task identity**: `task_id`, `challenge_id` (stable join key), `repo`,
|
| 62 |
+
`revision`, `file_path`, `theory`, `proof_assistant`, `session`, `variant`
|
| 63 |
+
- **The challenge**: `challenge_file_content` (the file with deletions + holes),
|
| 64 |
+
`solution_file_content` (ground truth), `solution_diff`
|
| 65 |
+
- **Ablation parameters**: `challenge_type`, `ablation_prob`, `seed`,
|
| 66 |
+
`leaves_only`, depth/size/centrality bounds, `n_proofs`, `n_ablated`,
|
| 67 |
+
`closure_size`
|
| 68 |
+
- **Proof-complexity features** (computed by the ablator's parser, per item):
|
| 69 |
+
`holes_filled[]` (each holed user: `proof_text`, `n_tactics`, `cyclomatic`,
|
| 70 |
+
`n_automation`, `max_nesting`, …), `deleted_lemmas[]` (each deleted lemma:
|
| 71 |
+
`text`, `fan_in`, …), `corollaries[]` (the anchor theorem: `n_deps_direct`,
|
| 72 |
+
`n_deps_transitive`, …)
|
| 73 |
+
- **`manifest`**: the provenance record of the per-repo ablation run this row
|
| 74 |
+
came from — `git_repo`, `revision`, `lean_toolchain`, `ablator`,
|
| 75 |
+
`ablator_flags`, `seed`, `validation`, and `counts`
|
| 76 |
+
(`mined_total`/`good_kept`/`well_formed`/`malformed`/`sol_bad`; the last two
|
| 77 |
+
are 0 when no record was rejected for that reason). All rows of one repo in
|
| 78 |
+
one split share a manifest.
|
| 79 |
+
|
| 80 |
+
## Loading
|
| 81 |
+
|
| 82 |
+
```python
|
| 83 |
+
from datasets import load_dataset
|
| 84 |
+
|
| 85 |
+
ds = load_dataset("for-all-dev/ablation-eval")
|
| 86 |
+
easy, hard = ds["easy"], ds["hard"]
|
| 87 |
+
|
| 88 |
+
# one repo's worth
|
| 89 |
+
ryu = easy.filter(lambda r: r["manifest"]["repo"] == "ryu-lean4")
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
## Scoring a solver
|
| 93 |
+
|
| 94 |
+
Scoring is real compilation, not string match. The
|
| 95 |
+
[git-history-evals](https://github.com/for-all-dev/git-history-evals) scaffold's
|
| 96 |
+
`ablate-baseline` harness (in `baselines/`) consumes these JSONL files directly:
|
| 97 |
+
it splices each `challenge_file_content` into a checkout of the source repo at
|
| 98 |
+
`manifest.revision` (built with `manifest.lean_toolchain`), runs a ReAct agent
|
| 99 |
+
to close the holes, and PASSes a record only when the finished file compiles
|
| 100 |
+
hole-free. Repo pins for all 57 sources are in `pipeline/repos.tsv`;
|
| 101 |
+
`pipeline/clone_repos.sh` materialises and builds them.
|
| 102 |
+
|
| 103 |
+
```bash
|
| 104 |
+
uv run ablate-baseline easy.jsonl data/lean/<repo> --model <model> [--repo <name>]
|
| 105 |
+
# the harness runs the one repo slice matching --repo (default: the src
|
| 106 |
+
# directory's name), selected via each row's embedded manifest
|
| 107 |
+
```
|
| 108 |
+
|
| 109 |
+
## Caveat for anyone re-validating
|
| 110 |
+
|
| 111 |
+
Most *apparent* `malformed` challenges in re-runs are an artifact of an
|
| 112 |
+
**incomplete build** of the source tree, not of the data: `lake build` only
|
| 113 |
+
builds a lakefile's default target, so sibling modules can be left uncompiled
|
| 114 |
+
and every challenge importing one fails with `object file ... does not exist`.
|
| 115 |
+
Build the full closure before trusting a malformed count.
|
| 116 |
+
|
| 117 |
+
## Contamination note
|
| 118 |
+
|
| 119 |
+
All 57 upstream repos are public OSS and likely present in frontier-model
|
| 120 |
+
pretraining corpora. The ablations are *syntactic* and freshly generated
|
| 121 |
+
(deleted lemmas + holed users at a pinned revision), which makes verbatim
|
| 122 |
+
recall less useful than for git-history data, but prefer relative comparisons
|
| 123 |
+
(easy vs hard, across models) over absolute scores.
|
| 124 |
+
|
| 125 |
+
## Attribution & licenses
|
| 126 |
+
|
| 127 |
+
Each row carries its upstream provenance in `manifest.git_repo` +
|
| 128 |
+
`manifest.revision`. The 57 upstream repositories are distributed under their
|
| 129 |
+
own licenses (Apache-2.0, MIT, BSD, and others — see each repo); rows
|
| 130 |
+
redistribute excerpts of upstream source and are bound by the corresponding
|
| 131 |
+
upstream terms. Use for research/evaluation.
|
| 132 |
+
|
| 133 |
+
Mining scaffold:
|
| 134 |
+
[for-all-dev/git-history-evals](https://github.com/for-all-dev/git-history-evals)
|
| 135 |
+
(Forall R&D).
|
| 136 |
+
|
| 137 |
+
```bibtex
|
| 138 |
+
@misc{lean-ablation-eval,
|
| 139 |
+
title = {Lean Proof-Ablation Eval (57 repos, compile-validated)},
|
| 140 |
+
author = {Dougherty, Quinn and Doty, Matthew},
|
| 141 |
+
year = {2026},
|
| 142 |
+
howpublished = {\url{https://huggingface.co/datasets/for-all-dev/ablation-eval}},
|
| 143 |
+
note = {Syntactic corollary-anchored ablations over 57 Lean 4 repositories}
|
| 144 |
+
}
|
| 145 |
+
```
|
ablation-eval/easy.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa6ba59d7fd288e62b24ab5f0818a84bd37c37d428e280d97f6c55122f86019e
|
| 3 |
+
size 941861514
|
ablation-eval/hard.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bbf619febd3e26ac025c2deb21f11ea51e8dbfa91705f0a7506590ef3dd46f42
|
| 3 |
+
size 942565731
|