--- license: mit language: - en pretty_name: fiat-crypto Proof-Engineering Eval (git-history-mined) tags: - formal-verification - theorem-proving - proof-synthesis - coq - fiat-crypto - cryptography - git-history task_categories: - text-generation size_categories: - 10K_` | | `repo` | `fiat-crypto` | | `proof_assistant` | `coq` | | `commit_hash` | the solving commit (state *after* = ground truth) | | `parent_hash` | the parent commit (state *before* = challenge) | | `commit_message` | upstream commit message (context; may describe a larger multi-file change) | | `file_path` | path of the edited file within the repo | | `challenge_type` | `proof_add` \| `spec_change` | | `challenge_file_content` | the file **before** the edit — what the model is given | | `solution_file_content` | the file **after** the edit — ground truth | | `holes_filled` | structured list of the hole(s) the commit filled (JSON string) | | `diff` | unified diff from challenge → solution | | `instructions` | natural-language task statement for the solver | | `curation_verdict` | `accept` (all retained rows) | | `curation_model` | model that produced the verdict | | `curation_rationale` | one-line justification | See the [manifest schema](https://github.com/for-all-dev/git-history-evals/blob/master/artifacts/MANIFEST_SCHEMA.md) for the full contract. ## Loading ```python from datasets import load_dataset ds = load_dataset("for-all-dev/fiat-crypto-eval", split="train") print(ds) ex = ds[0] print(ex["instructions"]) print(ex["challenge_file_content"]) # give this to the model print(ex["solution_file_content"]) # ground truth ``` Or pull the raw file directly: ```python from huggingface_hub import hf_hub_download path = hf_hub_download("for-all-dev/fiat-crypto-eval", "train.jsonl", repo_type="dataset") ``` ### Minimal solver sketch ```python from datasets import load_dataset ds = load_dataset("for-all-dev/fiat-crypto-eval", split="train") def solve(example, model): prompt = f"{example['instructions']}\n\n--- file ---\n{example['challenge_file_content']}" candidate = model.complete(prompt) # your model here return candidate # a full proposed file # Ground-truth scoring is exact (match against solution_file_content) or, better, # behavioural: splice `candidate` into a fiat-crypto checkout at `parent_hash` # and run `coqc`/`make` to see whether the proof compiles. ``` The behavioural scorer (splice → compile) is the faithful one; exact-match is a cheap proxy. The [`experiments/`](https://github.com/for-all-dev/git-history-evals/tree/master/experiments) runner implements exactly this for fiat-crypto (layered Docker per-commit Coq builds). ## Limitations - **Heuristic mining + LLM curation.** Challenges are found by diff heuristics and filtered by an LLM judge; both can mislabel. Verdicts are kept on-row so you can re-filter. - **Whole-file granularity.** A row is a `(commit, file)` pair; a single commit touching several files becomes several rows that share a `commit_message`. - **Training-set contamination.** fiat-crypto is public OSS and likely in frontier-model pretraining corpora — prefer relative/ablation comparisons over absolute scores. - **Pre-canonical row shape** (`schema.row_version: 0`): the `(commit, file)` + `holes_filled` layout predates the canonical per-theorem row; see the manifest. ## Attribution & citation Derived from **fiat-crypto** © the fiat-crypto authors, which upstream is offered under the **MIT**, **Apache-2.0**, and **BSD-1-Clause** licenses (your choice); this dataset redistributes excerpts under MIT. Upstream: [mit-plv/fiat-crypto](https://github.com/mit-plv/fiat-crypto). Mining scaffold: [for-all-dev/git-history-evals](https://github.com/for-all-dev/git-history-evals) (Forall R&D). ```bibtex @misc{fiatcrypto-eval-githistory, title = {fiat-crypto Proof-Engineering Eval (git-history-mined)}, author = {Dougherty, Quinn and Hoeppner, Ella and Abid, Taiba}, year = {2026}, howpublished = {\url{https://huggingface.co/datasets/for-all-dev/fiat-crypto-eval}}, note = {Derived from mit-plv/fiat-crypto (MIT/Apache-2.0/BSD-1-Clause)} } ```