phanerozoic commited on
Commit
2b86aa9
·
verified ·
1 Parent(s): a2a895d

Re-extract: full statement+proof, normalized schema, provenance

Browse files
Files changed (2) hide show
  1. README.md +8 -33
  2. data/train-00000-of-00001.parquet +2 -2
README.md CHANGED
@@ -18,7 +18,6 @@ dataset_info:
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}
@@ -30,7 +29,6 @@ dataset_info:
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: 761}
36
  config_name: default
@@ -56,11 +54,10 @@ Cryptol declarations, each row carrying the statement and, where present, the pr
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 |
@@ -72,7 +69,6 @@ Cryptol declarations, each row carrying the statement and, where present, the pr
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
 
@@ -90,33 +86,12 @@ Cryptol declarations, each row carrying the statement and, where present, the pr
90
  ## Example
91
 
92
  ```coq
93
- encrypt :
94
- {m} fin m => K -> Nonce -> A -> [m * (p * n)] -> [m * (p * n) + tagAmount]
95
- encrypt key nonce state inputMsg = encMsg # tag
96
-
97
- where
98
- encMsg = join rest.0.message
99
-
100
- tag = take (Tag key (tweak (1 - final.1)) final.0.state)
101
-
102
- final = steps ! 0
103
-
104
- steps = [ ({ message = undefined, state = zero }, 1) ] # rest
105
- rest = [ (Enc key (tweak v) { message = m, state = prev.state }, v + Cost)
106
- | (prev,v) <- steps
107
- | m <- chunks
108
- ]
109
-
110
- // XXX: isn't v i just 1 + i * Cost
111
-
112
- chunks : [m] [p * n]
113
- chunks = split inputMsg
114
-
115
- tweak : Int -> Tweak
116
- tweak v = { nonce = nonce, state = state, z = v }
117
  ```
118
 
119
- - kind: definition | symbolic_name: `encrypt` | examples/AE.cry:61
120
 
121
  ## Use
122
 
 
18
  - {name: statement, dtype: string}
19
  - {name: proof, dtype: string}
20
  - {name: type, dtype: string}
 
21
  - {name: symbolic_name, dtype: string}
22
  - {name: library, dtype: string}
23
  - {name: filename, dtype: string}
 
29
  - {name: has_proof, dtype: bool}
30
  - {name: source_url, dtype: string}
31
  - {name: commit, dtype: string}
 
32
  splits:
33
  - {name: train, num_examples: 761}
34
  config_name: default
 
54
 
55
  | Column | Type | Description |
56
  |--------|------|-------------|
57
+ | fact | string | Complete verbatim declaration (keyword, signature, and body/proof) |
58
+ | statement | string | Signature with the leading keyword removed (verbatim slice) |
59
+ | proof | string | Verbatim proof/body, empty if none |
60
+ | type | string | Declaration keyword |
 
61
  | symbolic_name | string | Declaration identifier |
62
  | library | string | Sub-library |
63
  | filename | string | Repository-relative source path |
 
69
  | has_proof | bool | Whether a proof block was captured |
70
  | source_url | string | Upstream repository |
71
  | commit | string | Upstream commit extracted |
 
72
 
73
  ## Statistics
74
 
 
86
  ## Example
87
 
88
  ```coq
89
+ gf28Add : {n} (fin n) => [n]GF28 -> GF28
90
+ gf28Add ps = sums ! 0
91
+ where sums = [zero] # [ p ^ s | p <- ps | s <- sums ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  ```
93
 
94
+ - type: function | symbolic_name: `gf28Add` | examples/AES.cry:37
95
 
96
  ## Use
97
 
data/train-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:52d4c13b3ba8f4a0d1838c936fb09668fe44dc3f0adee2eb93145b468d069c37
3
- size 304826
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ec2afa836942de07e21a98c65e87795688093f23fb0a1bf397af267a8300df7
3
+ size 264525