phanerozoic commited on
Commit
1450a31
·
verified ·
1 Parent(s): 8df256b

Add dataset Cryptol

Browse files
Files changed (2) hide show
  1. README.md +116 -0
  2. data/train-00000-of-00001.parquet +3 -0
README.md ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ task_categories:
4
+ - text-generation
5
+ - feature-extraction
6
+ language:
7
+ - en
8
+ tags:
9
+ - formal-methods
10
+ - cryptol
11
+ - cryptography
12
+ - domain-specific-language
13
+ size_categories:
14
+ - 10K<n<100K
15
+ dataset_info:
16
+ features:
17
+ - {name: fact, dtype: string}
18
+ - {name: statement, dtype: string}
19
+ - {name: proof, dtype: string}
20
+ - {name: type, dtype: string}
21
+ - {name: kind, dtype: string}
22
+ - {name: symbolic_name, dtype: string}
23
+ - {name: library, dtype: string}
24
+ - {name: filename, dtype: string}
25
+ - {name: imports, list: string}
26
+ - {name: deps, list: string}
27
+ - {name: docstring, dtype: string}
28
+ - {name: line_start, dtype: int64}
29
+ - {name: line_end, dtype: int64}
30
+ - {name: has_proof, dtype: bool}
31
+ - {name: source_url, dtype: string}
32
+ - {name: commit, dtype: string}
33
+ - {name: content_level, dtype: string}
34
+ splits:
35
+ - {name: train, num_examples: 2358}
36
+ config_name: default
37
+ configs:
38
+ - config_name: default
39
+ data_files:
40
+ - split: train
41
+ path: data/train-*
42
+ ---
43
+
44
+ # Cryptol
45
+
46
+ Cryptol declarations, each row carrying the statement and, where present, the proof.
47
+
48
+ ## Source
49
+
50
+ - Repository: https://github.com/GaloisInc/cryptol
51
+ - Commit: `a50cac6eb2c30a79503814f423f375f9476aaceb`
52
+ - Files: 573
53
+ - License: other
54
+
55
+ ## Schema
56
+
57
+ | Column | Type | Description |
58
+ |--------|------|-------------|
59
+ | fact | string | Verbatim declaration: statement followed by proof where present |
60
+ | statement | string | Verbatim statement (keyword through the closing period) |
61
+ | proof | string | Verbatim proof block (`Proof. ... Qed.`/`Defined.`), empty if none |
62
+ | type | string | Raw declaration keyword |
63
+ | kind | string | Normalized kind |
64
+ | symbolic_name | string | Declaration identifier |
65
+ | library | string | Sub-library |
66
+ | filename | string | Repository-relative source path |
67
+ | imports | list[string] | File-level `Require`/`Import` modules |
68
+ | deps | list[string] | Intra-corpus identifiers referenced |
69
+ | docstring | string | Preceding documentation comment, null if absent |
70
+ | line_start | int | First source line |
71
+ | line_end | int | Last source line |
72
+ | has_proof | bool | Whether a proof block was captured |
73
+ | source_url | string | Upstream repository |
74
+ | commit | string | Upstream commit extracted |
75
+ | content_level | string | `statement+proof` |
76
+
77
+ ## Statistics
78
+
79
+ - Entries: 2,358
80
+ - With proof: 1,424 (60.4%)
81
+ - With docstring: 0 (0.0%)
82
+ - Libraries: 73
83
+
84
+ ### By type
85
+
86
+ | Type | Count |
87
+ |---|---|
88
+ | function | 2,357 |
89
+ | record | 1 |
90
+
91
+ ## Example
92
+
93
+ ```coq
94
+ gf28Add : {n} (fin n) => [n]GF28 -> GF28
95
+ gf28Add ps = sums ! 0
96
+ where sums = [zero] # [ p ^ s | p <- ps | s <- sums ]
97
+ ```
98
+
99
+ - kind: function | symbolic_name: `gf28Add` | bench/data/AES.cry:37
100
+
101
+ ## Use
102
+
103
+ Statement and proof are available both joined (`fact`) and split (`statement`, `proof`) for
104
+ proof-term modeling, autoformalization, retrieval, and dependency analysis via `deps`.
105
+
106
+ ## Citation
107
+
108
+ ```bibtex
109
+ @misc{cryptol_dataset,
110
+ title = {Cryptol},
111
+ author = {Norton, Charles},
112
+ year = {2026},
113
+ note = {Extracted from https://github.com/GaloisInc/cryptol, commit a50cac6eb2c3},
114
+ url = {https://huggingface.co/datasets/phanerozoic/Cryptol}
115
+ }
116
+ ```
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f0e7048dda40b85da5366941360ba5591cdae54a0cc3b013c690eca71c79126
3
+ size 69984053