Cryptol / README.md
phanerozoic's picture
Re-extract: full statement+proof, normalized schema, provenance
66ef76b verified
---
license: other
task_categories:
- text-generation
- feature-extraction
language:
- en
tags:
- formal-methods
- cryptol
- cryptography
- domain-specific-language
size_categories:
- 10K<n<100K
dataset_info:
features:
- {name: fact, dtype: string}
- {name: statement, dtype: string}
- {name: proof, dtype: string}
- {name: type, dtype: string}
- {name: symbolic_name, dtype: string}
- {name: library, dtype: string}
- {name: filename, dtype: string}
- {name: imports, list: string}
- {name: deps, list: string}
- {name: docstring, dtype: string}
- {name: line_start, dtype: int64}
- {name: line_end, dtype: int64}
- {name: has_proof, dtype: bool}
- {name: source_url, dtype: string}
- {name: commit, dtype: string}
splits:
- {name: train, num_examples: 1045}
config_name: default
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
---
# Cryptol
Cryptol declarations, each row carrying the statement and, where present, the proof.
## Source
- Repository: https://github.com/GaloisInc/cryptol
- Commit: `a50cac6eb2c30a79503814f423f375f9476aaceb`
- Files: 72
- License: other
## Schema
| Column | Type | Description |
|--------|------|-------------|
| fact | string | Verbatim declaration with the leading keyword removed: signature and body/proof joined |
| statement | string | Signature with the leading keyword removed (verbatim slice) |
| proof | string | Verbatim proof/body, empty if none |
| type | string | Declaration keyword |
| symbolic_name | string | Declaration identifier |
| library | string | Sub-library |
| filename | string | Repository-relative source path |
| imports | list[string] | File-level `Require`/`Import` modules |
| deps | list[string] | Intra-corpus identifiers referenced |
| docstring | string | Preceding documentation comment, null if absent |
| line_start | int | First source line |
| line_end | int | Last source line |
| has_proof | bool | Whether a proof block was captured |
| source_url | string | Upstream repository |
| commit | string | Upstream commit extracted |
## Statistics
- Entries: 1,045
- With proof: 438 (41.9%)
- With docstring: 0 (0.0%)
- Libraries: 13
### By type
| Type | Count |
|---|---|
| function | 639 |
| property | 147 |
| primitive | 109 |
| type | 98 |
| primitive type | 37 |
| type constraint | 14 |
| newtype | 1 |
## Example
```coq
gf28Add : {n} (fin n) => [n]GF28 -> GF28
gf28Add ps = sums ! 0
where sums = [zero] # [ p ^ s | p <- ps | s <- sums ]
```
- type: function | symbolic_name: `gf28Add` | examples/AES.cry:37
## Use
Statement and proof are available both joined (`fact`) and split (`statement`, `proof`) for
proof-term modeling, autoformalization, retrieval, and dependency analysis via `deps`.
## Citation
```bibtex
@misc{cryptol_dataset,
title = {Cryptol},
author = {Norton, Charles},
year = {2026},
note = {Extracted from https://github.com/GaloisInc/cryptol, commit a50cac6eb2c3},
url = {https://huggingface.co/datasets/phanerozoic/Cryptol}
}
```