Dataset Viewer
Auto-converted to Parquet Duplicate
task_id
stringlengths
29
29
repo
stringclasses
1 value
proof_assistant
stringclasses
1 value
commit_hash
stringlengths
40
40
parent_hash
stringlengths
40
40
commit_message
stringlengths
3
561
file_path
stringlengths
8
145
challenge_type
stringclasses
2 values
challenge_file_content
stringlengths
0
1.02M
solution_file_content
stringlengths
51
1.08M
holes_filled
listlengths
0
0
diff
stringlengths
233
1.69M
instructions
stringlengths
57
194
curation_verdict
stringclasses
1 value
curation_model
stringclasses
2 values
curation_rationale
stringlengths
95
745
fiat-crypto_cf28fc70_f69a180a
fiat-crypto
coq
cf28fc705ab3d6f79badcb59b7a3598ef69c4521
580c5b0f9d70c2d1de4804d6b03e1b2d2278ebf8
Br prefix and p256 affine (#2271)
src/Bedrock/P256.v
proof_add
From Crypto.Bedrock.P256 Require Import Specs Platform Coord Jacobian. Import Specs.NotationsCustomEntry Specs.coord Specs.point. Import bedrock2.Syntax bedrock2.NotationsCustomEntry LittleEndianList ZArith.BinInt BinInt BinNat Init.Byte PrimeFieldTheorems ModInv micromega.Lia coqutil.Byte Lists.List micromega.Lia Ja...
From Crypto.Bedrock.P256 Require Import Specs Platform Coord Jacobian JacobianAffine. Import Specs.NotationsCustomEntry Specs.coord Specs.point. Import bedrock2.Syntax bedrock2.NotationsCustomEntry LittleEndianList ZArith.BinInt BinInt BinNat Init.Byte PrimeFieldTheorems ModInv micromega.Lia coqutil.Byte Lists.List m...
[]
diff --git a/src/Bedrock/P256.v b/src/Bedrock/P256.v index 5490327fb..331b3705f 100644 --- a/src/Bedrock/P256.v +++ b/src/Bedrock/P256.v @@ -1,4 +1,4 @@ -From Crypto.Bedrock.P256 Require Import Specs Platform Coord Jacobian. +From Crypto.Bedrock.P256 Require Import Specs Platform Coord Jacobian JacobianAffine. Impor...
Write or extend the proof(s) in src/Bedrock/P256.v. Complete any unfinished proofs or add missing proof content.
accept
claude-haiku-4-5
This diff adds new imports (`JacobianAffine`), updates function names in a platform definition (`full_add` → `br_full_add`, etc.), adds two new function references to a jacobian list, and adds two `pose_correctness` tactic calls in a proof—all substantive proof engineering changes that extend functionality and proof co...
fiat-crypto_cf28fc70_f33a0be4
fiat-crypto
coq
cf28fc705ab3d6f79badcb59b7a3598ef69c4521
580c5b0f9d70c2d1de4804d6b03e1b2d2278ebf8
Br prefix and p256 affine (#2271)
src/Bedrock/P256/Coord.v
proof_add
Require Import coqutil.Datatypes.List Coq.Lists.List. Require Import Curves.Weierstrass.P256. Require Import Bedrock.P256.Specs. Require Import Bedrock.P256.Platform. Import Specs.NotationsCustomEntry Specs.coord Specs.point. Import bedrock2.Syntax bedrock2.NotationsCustomEntry LittleEndianList ZArith.BinInt BinInt B...
Require Import coqutil.Datatypes.List Coq.Lists.List. Require Import Curves.Weierstrass.P256. Require Import Bedrock.P256.Specs. Require Import Bedrock.P256.Platform. Import Specs.NotationsCustomEntry Specs.coord Specs.point. Import bedrock2.Syntax bedrock2.NotationsCustomEntry LittleEndianList ZArith.BinInt BinInt B...
[]
diff --git a/src/Bedrock/P256/Coord.v b/src/Bedrock/P256/Coord.v index e76b97d25..6e3cc6048 100644 --- a/src/Bedrock/P256/Coord.v +++ b/src/Bedrock/P256/Coord.v @@ -48,15 +48,15 @@ Definition p256_coord_nonzero := func! (p_x) ~> nz { }. Definition p256_coord_sub := func!(out, x, y) { - unpack! t0, borrow = full_su...
Write or extend the proof(s) in src/Bedrock/P256/Coord.v. Complete any unfinished proofs or add missing proof content.
accept
claude-sonnet-4-6
This diff changes function call identifiers inside definition bodies (renaming `full_sub`/`full_add` to `br_full_sub`/`br_full_add`), which constitutes a substantive identifier rename within definition bodies affecting the produced terms.
fiat-crypto_cf28fc70_8528d37a
fiat-crypto
coq
cf28fc705ab3d6f79badcb59b7a3598ef69c4521
580c5b0f9d70c2d1de4804d6b03e1b2d2278ebf8
Br prefix and p256 affine (#2271)
src/Bedrock/P256/Jacobian.v
proof_add
Require Import coqutil.Datatypes.List Coq.Lists.List. Require Import Bedrock.P256.Specs. Import Specs.NotationsCustomEntry Specs.coord Specs.point. Import Curves.Weierstrass.P256. Import bedrock2.Syntax bedrock2.NotationsCustomEntry LittleEndianList Crypto.Util.ZUtil.Modulo Zdiv ZArith BinInt BinInt BinNat Init.Byte ...
Require Import coqutil.Datatypes.List Coq.Lists.List. Require Import Bedrock.P256.Specs. Import Specs.NotationsCustomEntry Specs.coord Specs.point. Import Curves.Weierstrass.P256. Import bedrock2.Syntax bedrock2.NotationsCustomEntry LittleEndianList Crypto.Util.ZUtil.Modulo Zdiv ZArith BinInt BinInt BinNat Init.Byte ...
[]
diff --git a/src/Bedrock/P256/Jacobian.v b/src/Bedrock/P256/Jacobian.v index a5b45b9eb..bcbafb994 100644 --- a/src/Bedrock/P256/Jacobian.v +++ b/src/Bedrock/P256/Jacobian.v @@ -340,8 +340,6 @@ Proof. { rewrite ?repeat_length; trivial. } { rewrite length_point; trivial. } - rewrite ?word.and_xorm1_l, ?word.and_...
Write or extend the proof(s) in src/Bedrock/P256/Jacobian.v. Complete any unfinished proofs or add missing proof content.
accept
claude-haiku-4-5
The diff removes two lines of low-level tactic manipulation (`rewrite ?word.and_xorm1_l, ?word.and_xorm1_r in *.`) from an existing proof and deletes ~90 lines of function definitions (`fe_set_1`, `p256_point_add_affine_nz_nz_neq`, `p256_point_add_affine_conditional`, `sc_halve`, `sc_sub`); while the deleted functions ...
fiat-crypto_cf28fc70_ac5dddcc
fiat-crypto
coq
cf28fc705ab3d6f79badcb59b7a3598ef69c4521
580c5b0f9d70c2d1de4804d6b03e1b2d2278ebf8
Br prefix and p256 affine (#2271)
src/Bedrock/P256/JacobianAffine.v
proof_add
Require Import coqutil.Datatypes.List Coq.Lists.List. Require Import Bedrock.P256.Specs. Import Specs.NotationsCustomEntry Specs.coord Specs.point. Import Curves.Weierstrass.P256. Import bedrock2.Syntax bedrock2.NotationsCustomEntry LittleEndianList Crypto.Util.ZUtil.Modulo Zdiv ZArith BinInt BinInt BinNat Init.Byte ...
[]
diff --git a/src/Bedrock/P256/JacobianAffine.v b/src/Bedrock/P256/JacobianAffine.v new file mode 100644 index 000000000..3441a3b36 --- /dev/null +++ b/src/Bedrock/P256/JacobianAffine.v @@ -0,0 +1,389 @@ +Require Import coqutil.Datatypes.List Coq.Lists.List. +Require Import Bedrock.P256.Specs. + +Import Specs.NotationsC...
Write the proof content for the declarations in src/Bedrock/P256/JacobianAffine.v.
accept
claude-haiku-4-5
This is a new file with substantive proof engineering content—multiple non-trivial Coq definitions (including `fe_set_1`, `p256_point_add_affine_nz_nz_neq` bedrock2 functions), custom Ltac tactics (`length_tac`, `symex_call`, etc.), and a complex proof of `p256_point_add_affine_nz_nz_neq_ok` with real symbolic executio...
fiat-crypto_cf28fc70_cfc2ebce
fiat-crypto
coq
cf28fc705ab3d6f79badcb59b7a3598ef69c4521
580c5b0f9d70c2d1de4804d6b03e1b2d2278ebf8
Br prefix and p256 affine (#2271)
src/Bedrock/P256/Specs.v
proof_add
Require Import coqutil.Datatypes.List Coq.Lists.List. From bedrock2 Require Import Syntax NotationsCustomEntry. From coqutil Require Import LittleEndianList. Import BinInt. Local Open Scope Z_scope. Module Import List. Import Lists.List ListNotations PeanoNat micromega.Lia. Local Open Scope nat_scope. Lemma c...
Require Import coqutil.Datatypes.List Coq.Lists.List. From bedrock2 Require Import Syntax NotationsCustomEntry. From coqutil Require Import LittleEndianList. Import BinInt. Local Open Scope Z_scope. Module Import List. Import Lists.List ListNotations PeanoNat micromega.Lia. Local Open Scope nat_scope. Lemma c...
[]
diff --git a/src/Bedrock/P256/Specs.v b/src/Bedrock/P256/Specs.v index 3c7aa394b..df787a88d 100644 --- a/src/Bedrock/P256/Specs.v +++ b/src/Bedrock/P256/Specs.v @@ -151,10 +151,16 @@ End coord. From Crypto.Curves Require Import Jacobian. Import Coq.Lists.List. +Notation affine_point := (@WeierstrassCurve.W.point co...
Write or extend the proof(s) in src/Bedrock/P256/Specs.v. Complete any unfinished proofs or add missing proof content.
accept
claude-haiku-4-5
The diff adds substantive new definitions (affine_point notation and module with iszero), a coercion (of_affine), and completely rewrites two function specifications with complex proof obligations involving Jacobian arithmetic and affine point conversions — all core proof-engineering content for verifying cryptographic...
fiat-crypto_39ef2d7e_34ef1f80
fiat-crypto
coq
39ef2d7ecf1b62c77862d0f99cb7205dbc2904a4
441a5f0b4aa751118992cc80a96c88561212be69
Havoc flags after imul in Semantics.v (#2263)
src/Assembly/WithBedrock/Semantics.v
proof_add
"From Coq Require Import ZArith.\nFrom Coq Require Import NArith.\nFrom Coq Require Import FMapPosit(...TRUNCATED)
"From Coq Require Import ZArith.\nFrom Coq Require Import NArith.\nFrom Coq Require Import FMapPosit(...TRUNCATED)
[]
"diff --git a/src/Assembly/WithBedrock/Semantics.v b/src/Assembly/WithBedrock/Semantics.v\nindex f8b(...TRUNCATED)
"Write or extend the proof(s) in src/Assembly/WithBedrock/Semantics.v. Complete any unfinished proof(...TRUNCATED)
accept
claude-haiku-4-5
"This diff substantively changes the proof/semantic specification of the `imul` instruction by repla(...TRUNCATED)
fiat-crypto_71d6c520_5283c0fb
fiat-crypto
coq
71d6c520fa6f50fd283a84f028a720752a07842c
9da5e2e2e9ea82b684b2a473b32b76ac4a0de091
Add P256 curve file (#2256)
src/Bedrock/P256/Coord.v
proof_add
"Require Import coqutil.Datatypes.List Coq.Lists.List.\nRequire Import Bedrock.P256.Specs.\nRequire (...TRUNCATED)
"Require Import coqutil.Datatypes.List Coq.Lists.List.\nRequire Import Curves.Weierstrass.P256.\nReq(...TRUNCATED)
[]
"diff --git a/src/Bedrock/P256/Coord.v b/src/Bedrock/P256/Coord.v\nindex 54ba4dba5..e76b97d25 100644(...TRUNCATED)
"Write or extend the proof(s) in src/Bedrock/P256/Coord.v. Complete any unfinished proofs or add mis(...TRUNCATED)
accept
claude-haiku-4-5
"This diff is primarily whitespace cleanup (trailing spaces removed on lines 186, 210, 251, 326, 369(...TRUNCATED)
fiat-crypto_71d6c520_898daa18
fiat-crypto
coq
71d6c520fa6f50fd283a84f028a720752a07842c
9da5e2e2e9ea82b684b2a473b32b76ac4a0de091
Add P256 curve file (#2256)
src/Bedrock/P256/Coord32.v
proof_add
"Require Import coqutil.Datatypes.List Coq.Lists.List.\nRequire Import Bedrock.P256.Specs.\nRequire (...TRUNCATED)
"Require Import coqutil.Datatypes.List Coq.Lists.List.\nRequire Import Curves.Weierstrass.P256.\nReq(...TRUNCATED)
[]
"diff --git a/src/Bedrock/P256/Coord32.v b/src/Bedrock/P256/Coord32.v\nindex eff7d880a..cd5627285 10(...TRUNCATED)
"Write or extend the proof(s) in src/Bedrock/P256/Coord32.v. Complete any unfinished proofs or add m(...TRUNCATED)
accept
claude-haiku-4-5
"The diff is primarily whitespace normalization (trailing spaces removed on several lines) and adds (...TRUNCATED)
fiat-crypto_71d6c520_40d2c31b
fiat-crypto
coq
71d6c520fa6f50fd283a84f028a720752a07842c
9da5e2e2e9ea82b684b2a473b32b76ac4a0de091
Add P256 curve file (#2256)
src/Bedrock/P256/Jacobian.v
proof_add
"Require Import coqutil.Datatypes.List Coq.Lists.List.\nRequire Import Bedrock.P256.Specs.\n\nImport(...TRUNCATED)
"Require Import coqutil.Datatypes.List Coq.Lists.List.\nRequire Import Bedrock.P256.Specs.\n\nImport(...TRUNCATED)
[]
"diff --git a/src/Bedrock/P256/Jacobian.v b/src/Bedrock/P256/Jacobian.v\nindex 0d077a883..b02d1c40c (...TRUNCATED)
"Write or extend the proof(s) in src/Bedrock/P256/Jacobian.v. Complete any unfinished proofs or add (...TRUNCATED)
accept
claude-haiku-4-5
"This diff is substantive proof engineering that includes a semantic tactic change (simplifying `uns(...TRUNCATED)
fiat-crypto_71d6c520_9b969305
fiat-crypto
coq
71d6c520fa6f50fd283a84f028a720752a07842c
9da5e2e2e9ea82b684b2a473b32b76ac4a0de091
Add P256 curve file (#2256)
src/Bedrock/P256/Specs.v
proof_add
"Require Import coqutil.Datatypes.List Coq.Lists.List.\nFrom bedrock2 Require Import Syntax Notation(...TRUNCATED)
"Require Import coqutil.Datatypes.List Coq.Lists.List.\nFrom bedrock2 Require Import Syntax Notation(...TRUNCATED)
[]
"diff --git a/src/Bedrock/P256/Specs.v b/src/Bedrock/P256/Specs.v\nindex 200aff92b..3c7aa394b 100644(...TRUNCATED)
"Write or extend the proof(s) in src/Bedrock/P256/Specs.v. Complete any unfinished proofs or add mis(...TRUNCATED)
accept
claude-haiku-4-5
"This diff contains substantive changes to definitions and imports in a hand-written Bedrock specifi(...TRUNCATED)
End of preview. Expand in Data Studio

fiat-crypto Proof-Engineering Eval

Proof-synthesis challenges mined from the git history of mit-plv/fiat-crypto, the Coq framework that synthesises correct-by-construction field-arithmetic code for elliptic curves — the verified crypto primitives behind Curve25519 and friends, shipped in production (BoringSSL, Signal). Each challenge is a real proof-engineering edit a human made in a single commit: the repository state before the commit is the challenge, the state after is the ground-truth solution, and the model must reconstruct the human's proof/spec work.

How it was mined

One versioned cut produced by the git-history-evals scaffold — a profile-driven miner that walks a proof repo's history and extracts (commit, file) challenges wherever a commit's diff to a Coq (.v) file fills a "hole" (adds or changes a proof or specification).

  • Source repo: mit-plv/fiat-crypto (Coq)
  • Dataset version: fiat-crypto-curated-v3-dc0abd63
  • Miner: agent-synthesised profile (anthropic:claude-sonnet-4-6)
  • Commits mined: 4,798 (the SHA list in the manifest is the reproducibility source of truth)
  • Proof assistant: Coq

Curation

Every mined candidate passes an LLM curation gate (tiered cheap→decision models) that asks "is this a substantive proof-engineering edit, or noise?" — rejecting whitespace, comment, import-only, and copyright-header diffs while keeping tactic-body edits, definition/lemma/theorem changes, and spec changes. Only rows that passed curation (curation_verdict == "accept") are included here. The verdict, deciding model, and rationale are retained on each row for auditing.

Statistics

Challenges (rows) 11,131
Source commits 4,798
Distinct files 2,152
Curation verdict 100% accept

Challenge types: proof_add 11,125 · spec_change 6.

Row schema

One JSON object per line in train.jsonl:

field description
task_id stable id, fiat-crypto_<commit8>_<file8>
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 for the full contract.

Loading

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:

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

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/ 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.

Mining scaffold: for-all-dev/git-history-evals (Forall R&D).

@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)}
}
Downloads last month
-