Datasets:
Add fiat-crypto git-history proof-engineering eval (fiat-crypto-curated-v3-dc0abd63): 11,131 curated challenges + dataset card
Browse files- .gitattributes +1 -0
- README.md +170 -0
- train.jsonl +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ 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 |
+
train.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pretty_name: fiat-crypto Proof-Engineering Eval (git-history-mined)
|
| 6 |
+
tags:
|
| 7 |
+
- formal-verification
|
| 8 |
+
- theorem-proving
|
| 9 |
+
- proof-synthesis
|
| 10 |
+
- coq
|
| 11 |
+
- fiat-crypto
|
| 12 |
+
- cryptography
|
| 13 |
+
- git-history
|
| 14 |
+
task_categories:
|
| 15 |
+
- text-generation
|
| 16 |
+
size_categories:
|
| 17 |
+
- 10K<n<100K
|
| 18 |
+
configs:
|
| 19 |
+
- config_name: default
|
| 20 |
+
data_files:
|
| 21 |
+
- split: train
|
| 22 |
+
path: train.jsonl
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
# fiat-crypto Proof-Engineering Eval
|
| 26 |
+
|
| 27 |
+
Proof-synthesis challenges **mined from the git history** of
|
| 28 |
+
[mit-plv/fiat-crypto](https://github.com/mit-plv/fiat-crypto), the Coq framework
|
| 29 |
+
that synthesises *correct-by-construction* field-arithmetic code for elliptic
|
| 30 |
+
curves — the verified crypto primitives behind Curve25519 and friends, shipped in
|
| 31 |
+
production (BoringSSL, Signal). Each challenge is a real proof-engineering edit a
|
| 32 |
+
human made in a single commit: the repository state *before* the commit is the
|
| 33 |
+
**challenge**, the state *after* is the ground-truth **solution**, and the model
|
| 34 |
+
must reconstruct the human's proof/spec work.
|
| 35 |
+
|
| 36 |
+
## How it was mined
|
| 37 |
+
|
| 38 |
+
One versioned cut produced by the
|
| 39 |
+
[git-history-evals](https://github.com/for-all-dev/git-history-evals) scaffold — a
|
| 40 |
+
profile-driven miner that walks a proof repo's history and extracts
|
| 41 |
+
`(commit, file)` challenges wherever a commit's diff to a Coq (`.v`) file fills a
|
| 42 |
+
"hole" (adds or changes a proof or specification).
|
| 43 |
+
|
| 44 |
+
- **Source repo:** `mit-plv/fiat-crypto` (Coq)
|
| 45 |
+
- **Dataset version:** `fiat-crypto-curated-v3-dc0abd63`
|
| 46 |
+
- **Miner:** agent-synthesised profile (`anthropic:claude-sonnet-4-6`)
|
| 47 |
+
- **Commits mined:** 4,798 (the SHA list in the manifest is the reproducibility source of truth)
|
| 48 |
+
- **Proof assistant:** Coq
|
| 49 |
+
|
| 50 |
+
### Curation
|
| 51 |
+
|
| 52 |
+
Every mined candidate passes an LLM curation gate (tiered cheap→decision models)
|
| 53 |
+
that asks *"is this a substantive proof-engineering edit, or noise?"* — rejecting
|
| 54 |
+
whitespace, comment, import-only, and copyright-header diffs while keeping
|
| 55 |
+
tactic-body edits, definition/lemma/theorem changes, and spec changes. **Only
|
| 56 |
+
rows that passed curation (`curation_verdict == "accept"`) are included here.**
|
| 57 |
+
The verdict, deciding model, and rationale are retained on each row for auditing.
|
| 58 |
+
|
| 59 |
+
## Statistics
|
| 60 |
+
|
| 61 |
+
| | |
|
| 62 |
+
|---|---|
|
| 63 |
+
| Challenges (rows) | **11,131** |
|
| 64 |
+
| Source commits | 4,798 |
|
| 65 |
+
| Distinct files | 2,152 |
|
| 66 |
+
| Curation verdict | 100% `accept` |
|
| 67 |
+
|
| 68 |
+
Challenge types: `proof_add` 11,125 · `spec_change` 6.
|
| 69 |
+
|
| 70 |
+
## Row schema
|
| 71 |
+
|
| 72 |
+
One JSON object per line in `train.jsonl`:
|
| 73 |
+
|
| 74 |
+
| field | description |
|
| 75 |
+
|---|---|
|
| 76 |
+
| `task_id` | stable id, `fiat-crypto_<commit8>_<file8>` |
|
| 77 |
+
| `repo` | `fiat-crypto` |
|
| 78 |
+
| `proof_assistant` | `coq` |
|
| 79 |
+
| `commit_hash` | the solving commit (state *after* = ground truth) |
|
| 80 |
+
| `parent_hash` | the parent commit (state *before* = challenge) |
|
| 81 |
+
| `commit_message` | upstream commit message (context; may describe a larger multi-file change) |
|
| 82 |
+
| `file_path` | path of the edited file within the repo |
|
| 83 |
+
| `challenge_type` | `proof_add` \| `spec_change` |
|
| 84 |
+
| `challenge_file_content` | the file **before** the edit — what the model is given |
|
| 85 |
+
| `solution_file_content` | the file **after** the edit — ground truth |
|
| 86 |
+
| `holes_filled` | structured list of the hole(s) the commit filled (JSON string) |
|
| 87 |
+
| `diff` | unified diff from challenge → solution |
|
| 88 |
+
| `instructions` | natural-language task statement for the solver |
|
| 89 |
+
| `curation_verdict` | `accept` (all retained rows) |
|
| 90 |
+
| `curation_model` | model that produced the verdict |
|
| 91 |
+
| `curation_rationale` | one-line justification |
|
| 92 |
+
|
| 93 |
+
See the [manifest schema](https://github.com/for-all-dev/git-history-evals/blob/master/artifacts/MANIFEST_SCHEMA.md)
|
| 94 |
+
for the full contract.
|
| 95 |
+
|
| 96 |
+
## Loading
|
| 97 |
+
|
| 98 |
+
```python
|
| 99 |
+
from datasets import load_dataset
|
| 100 |
+
|
| 101 |
+
ds = load_dataset("for-all-dev/fiat-crypto-eval", split="train")
|
| 102 |
+
print(ds)
|
| 103 |
+
ex = ds[0]
|
| 104 |
+
print(ex["instructions"])
|
| 105 |
+
print(ex["challenge_file_content"]) # give this to the model
|
| 106 |
+
print(ex["solution_file_content"]) # ground truth
|
| 107 |
+
```
|
| 108 |
+
|
| 109 |
+
Or pull the raw file directly:
|
| 110 |
+
|
| 111 |
+
```python
|
| 112 |
+
from huggingface_hub import hf_hub_download
|
| 113 |
+
path = hf_hub_download("for-all-dev/fiat-crypto-eval", "train.jsonl", repo_type="dataset")
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
### Minimal solver sketch
|
| 117 |
+
|
| 118 |
+
```python
|
| 119 |
+
from datasets import load_dataset
|
| 120 |
+
|
| 121 |
+
ds = load_dataset("for-all-dev/fiat-crypto-eval", split="train")
|
| 122 |
+
|
| 123 |
+
def solve(example, model):
|
| 124 |
+
prompt = f"{example['instructions']}\n\n--- file ---\n{example['challenge_file_content']}"
|
| 125 |
+
candidate = model.complete(prompt) # your model here
|
| 126 |
+
return candidate # a full proposed file
|
| 127 |
+
|
| 128 |
+
# Ground-truth scoring is exact (match against solution_file_content) or, better,
|
| 129 |
+
# behavioural: splice `candidate` into a fiat-crypto checkout at `parent_hash`
|
| 130 |
+
# and run `coqc`/`make` to see whether the proof compiles.
|
| 131 |
+
```
|
| 132 |
+
|
| 133 |
+
The behavioural scorer (splice → compile) is the faithful one; exact-match is a
|
| 134 |
+
cheap proxy. The
|
| 135 |
+
[`experiments/`](https://github.com/for-all-dev/git-history-evals/tree/master/experiments)
|
| 136 |
+
runner implements exactly this for fiat-crypto (layered Docker per-commit Coq
|
| 137 |
+
builds).
|
| 138 |
+
|
| 139 |
+
## Limitations
|
| 140 |
+
|
| 141 |
+
- **Heuristic mining + LLM curation.** Challenges are found by diff heuristics
|
| 142 |
+
and filtered by an LLM judge; both can mislabel. Verdicts are kept on-row so
|
| 143 |
+
you can re-filter.
|
| 144 |
+
- **Whole-file granularity.** A row is a `(commit, file)` pair; a single commit
|
| 145 |
+
touching several files becomes several rows that share a `commit_message`.
|
| 146 |
+
- **Training-set contamination.** fiat-crypto is public OSS and likely in
|
| 147 |
+
frontier-model pretraining corpora — prefer relative/ablation comparisons over
|
| 148 |
+
absolute scores.
|
| 149 |
+
- **Pre-canonical row shape** (`schema.row_version: 0`): the `(commit, file)` +
|
| 150 |
+
`holes_filled` layout predates the canonical per-theorem row; see the manifest.
|
| 151 |
+
|
| 152 |
+
## Attribution & citation
|
| 153 |
+
|
| 154 |
+
Derived from **fiat-crypto** © the fiat-crypto authors, which upstream is offered
|
| 155 |
+
under the **MIT**, **Apache-2.0**, and **BSD-1-Clause** licenses (your choice);
|
| 156 |
+
this dataset redistributes excerpts under MIT. Upstream:
|
| 157 |
+
[mit-plv/fiat-crypto](https://github.com/mit-plv/fiat-crypto).
|
| 158 |
+
|
| 159 |
+
Mining scaffold: [for-all-dev/git-history-evals](https://github.com/for-all-dev/git-history-evals)
|
| 160 |
+
(Forall R&D).
|
| 161 |
+
|
| 162 |
+
```bibtex
|
| 163 |
+
@misc{fiatcrypto-eval-githistory,
|
| 164 |
+
title = {fiat-crypto Proof-Engineering Eval (git-history-mined)},
|
| 165 |
+
author = {{Forall R&D}},
|
| 166 |
+
year = {2026},
|
| 167 |
+
howpublished = {\url{https://huggingface.co/datasets/for-all-dev/fiat-crypto-eval}},
|
| 168 |
+
note = {Derived from mit-plv/fiat-crypto (MIT/Apache-2.0/BSD-1-Clause)}
|
| 169 |
+
}
|
| 170 |
+
```
|
train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:287b126d41381c03d9da431ccb8cb09793193ffe8ee59a61b0cbd0866c65d548
|
| 3 |
+
size 718969603
|