phanerozoic commited on
Commit
96bf005
·
verified ·
1 Parent(s): 060f830

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

Browse files
Files changed (2) hide show
  1. README.md +10 -10
  2. data/train-00000-of-00001.parquet +2 -2
README.md CHANGED
@@ -19,7 +19,6 @@ dataset_info:
19
  - {name: statement, dtype: string}
20
  - {name: proof, dtype: string}
21
  - {name: type, dtype: string}
22
- - {name: kind, dtype: string}
23
  - {name: symbolic_name, dtype: string}
24
  - {name: library, dtype: string}
25
  - {name: filename, dtype: string}
@@ -31,7 +30,6 @@ dataset_info:
31
  - {name: has_proof, dtype: bool}
32
  - {name: source_url, dtype: string}
33
  - {name: commit, dtype: string}
34
- - {name: content_level, dtype: string}
35
  splits:
36
  - {name: train, num_examples: 15477}
37
  config_name: default
@@ -57,11 +55,10 @@ A structured dataset of lemmas, functions, and predicates from **Why3**, a platf
57
 
58
  | Column | Type | Description |
59
  |--------|------|-------------|
60
- | fact | string | Verbatim declaration: statement followed by proof where present |
61
- | statement | string | Verbatim statement (keyword through the closing period) |
62
- | proof | string | Verbatim proof block (`Proof. ... Qed.`/`Defined.`), empty if none |
63
- | type | string | Raw declaration keyword |
64
- | kind | string | Normalized kind |
65
  | symbolic_name | string | Declaration identifier |
66
  | library | string | Sub-library |
67
  | filename | string | Repository-relative source path |
@@ -73,7 +70,6 @@ A structured dataset of lemmas, functions, and predicates from **Why3**, a platf
73
  | has_proof | bool | Whether a proof block was captured |
74
  | source_url | string | Upstream repository |
75
  | commit | string | Upstream commit extracted |
76
- | content_level | string | `statement+proof` |
77
 
78
  ## Statistics
79
 
@@ -101,10 +97,14 @@ A structured dataset of lemmas, functions, and predicates from **Why3**, a platf
101
  ## Example
102
 
103
  ```coq
104
- function ([]) (a: array 'a) (i: int) : 'a = a.elts i
 
 
 
 
105
  ```
106
 
107
- - kind: definition | symbolic_name: `` | stdlib/array.mlw:20
108
 
109
  ## Use
110
 
 
19
  - {name: statement, dtype: string}
20
  - {name: proof, dtype: string}
21
  - {name: type, dtype: string}
 
22
  - {name: symbolic_name, dtype: string}
23
  - {name: library, dtype: string}
24
  - {name: filename, dtype: string}
 
30
  - {name: has_proof, dtype: bool}
31
  - {name: source_url, dtype: string}
32
  - {name: commit, dtype: string}
 
33
  splits:
34
  - {name: train, num_examples: 15477}
35
  config_name: default
 
55
 
56
  | Column | Type | Description |
57
  |--------|------|-------------|
58
+ | fact | string | Complete verbatim declaration (keyword, signature, and body/proof) |
59
+ | statement | string | Signature with the leading keyword removed (verbatim slice) |
60
+ | proof | string | Verbatim proof/body, empty if none |
61
+ | type | string | Declaration keyword |
 
62
  | symbolic_name | string | Declaration identifier |
63
  | library | string | Sub-library |
64
  | filename | string | Repository-relative source path |
 
70
  | has_proof | bool | Whether a proof block was captured |
71
  | source_url | string | Upstream repository |
72
  | commit | string | Upstream commit extracted |
 
73
 
74
  ## Statistics
75
 
 
97
  ## Example
98
 
99
  ```coq
100
+ let defensive_get (a: array 'a) (i: int)
101
+ ensures { 0 <= i < length a /\ result = a[i] }
102
+ raises { OutOfBounds -> i < 0 \/ i >= length a }
103
+ = if i < 0 || i >= length a then raise OutOfBounds;
104
+ a[i]
105
  ```
106
 
107
+ - type: let | symbolic_name: `defensive_get` | stdlib/array.mlw:39
108
 
109
  ## Use
110
 
data/train-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:cdaace011d486fc6d5c6aee6c3586dafccacb17016e77d708d10b7d29a69129a
3
- size 2429229
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9357337d37778215aa14e191fc1f6504f37e0d0eced7479b9ee6293f9208a3d
3
+ size 2208800