phanerozoic commited on
Commit
ccf6248
·
verified ·
1 Parent(s): ed33595

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

Browse files
Files changed (2) hide show
  1. README.md +144 -114
  2. data/train-00000-of-00001.parquet +2 -2
README.md CHANGED
@@ -1,114 +1,144 @@
1
- ---
2
- license: other
3
- license_name: cecill-b
4
- license_link: https://cecill.info/licences/Licence_CeCILL-B_V1-en.html
5
- task_categories:
6
- - text-generation
7
- - feature-extraction
8
- language:
9
- - en
10
- tags:
11
- - theorem-proving
12
- - formal-methods
13
- - coq
14
- - mathcomp
15
- - algebra
16
- - mathematics
17
- size_categories:
18
- - 10K<n<100K
19
- dataset_info:
20
- features:
21
- - name: fact
22
- dtype: string
23
- - name: type
24
- dtype: string
25
- - name: library
26
- dtype: string
27
- - name: imports
28
- list: string
29
- - name: filename
30
- dtype: string
31
- - name: symbolic_name
32
- dtype: string
33
- - name: docstring
34
- dtype: string
35
- splits:
36
- - name: train
37
- num_bytes: 10218663
38
- num_examples: 19924
39
- download_size: 1831894
40
- dataset_size: 10218663
41
- configs:
42
- - config_name: default
43
- data_files:
44
- - split: train
45
- path: data/train-*
46
- ---
47
-
48
- # Coq-MathComp
49
-
50
- Structured dataset from the Mathematical Components library (MathComp) for Coq.
51
-
52
- ## Dataset Description
53
-
54
- - **Source:** [math-comp/math-comp](https://github.com/math-comp/math-comp) (v2.5.0)
55
- - **Entries:** 19,924
56
- - **Files processed:** 115
57
- - **License:** CeCILL-B
58
-
59
- ## Schema
60
-
61
- | Column | Type | Description |
62
- |--------|------|-------------|
63
- | fact | string | Declaration body |
64
- | type | string | Lemma, Definition, HB.structure, HB.mixin, Canonical, etc. |
65
- | library | string | Module (algebra, boot, fingroup, character, etc.) |
66
- | imports | list | Require/Import statements |
67
- | filename | string | Source file path |
68
- | symbolic_name | string | Declaration identifier |
69
-
70
- ## Statistics
71
-
72
- ### By Type
73
- | Type | Count |
74
- |------|-------|
75
- | Lemma | 14,917 |
76
- | Definition | 2,850 |
77
- | Notation | 808 |
78
- | Canonical | 425 |
79
- | HB.instance | 247 |
80
- | Fixpoint | 138 |
81
- | Coercion | 116 |
82
- | Variant | 104 |
83
- | Theorem | 63 |
84
- | HB.structure | 51 |
85
- | HB.mixin | 50 |
86
-
87
- ### By Library
88
- | Library | Count |
89
- |---------|-------|
90
- | algebra | 7,455 |
91
- | boot | 4,591 |
92
- | fingroup | 1,995 |
93
- | character | 1,864 |
94
- | solvable | 1,747 |
95
- | order | 1,197 |
96
- | field | 1,048 |
97
-
98
- ## About MathComp
99
-
100
- Mathematical Components is a library of formalized mathematics for Coq, including algebra, number theory, and finite group theory. It uses the SSReflect proof language and Hierarchy Builder (HB) for structure definitions.
101
-
102
- ## Use Cases
103
-
104
- - Retrieval/RAG for Coq/MathComp
105
- - Learning SSReflect patterns
106
- - Algebraic formalization research
107
- - Training embeddings for formal proofs
108
-
109
- ## Related Datasets
110
-
111
- - [Coq-HoTT](https://huggingface.co/datasets/phanerozoic/Coq-HoTT)
112
- - [Coq-UniMath](https://huggingface.co/datasets/phanerozoic/Coq-UniMath)
113
- - [Coq-Stdlib](https://huggingface.co/datasets/phanerozoic/Coq-Stdlib)
114
- - [Coq-Iris](https://huggingface.co/datasets/phanerozoic/Coq-Iris)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: cecill-b
4
+ license_link: https://cecill.info/licences/Licence_CeCILL-B_V1-en.html
5
+ task_categories:
6
+ - text-generation
7
+ - feature-extraction
8
+ language:
9
+ - en
10
+ tags:
11
+ - theorem-proving
12
+ - formal-methods
13
+ - coq
14
+ - mathcomp
15
+ - algebra
16
+ - mathematics
17
+ size_categories:
18
+ - 10K<n<100K
19
+ dataset_info:
20
+ features:
21
+ - {name: fact, dtype: string}
22
+ - {name: statement, dtype: string}
23
+ - {name: proof, dtype: string}
24
+ - {name: type, dtype: string}
25
+ - {name: kind, dtype: string}
26
+ - {name: symbolic_name, dtype: string}
27
+ - {name: library, dtype: string}
28
+ - {name: filename, dtype: string}
29
+ - {name: imports, list: string}
30
+ - {name: deps, list: string}
31
+ - {name: docstring, dtype: string}
32
+ - {name: line_start, dtype: int64}
33
+ - {name: line_end, dtype: int64}
34
+ - {name: has_proof, dtype: bool}
35
+ - {name: source_url, dtype: string}
36
+ - {name: commit, dtype: string}
37
+ - {name: content_level, dtype: string}
38
+ splits:
39
+ - {name: train, num_examples: 24636}
40
+ config_name: default
41
+ configs:
42
+ - config_name: default
43
+ data_files:
44
+ - split: train
45
+ path: data/train-*
46
+ ---
47
+
48
+ # Coq-MathComp
49
+
50
+ Structured dataset from the Mathematical Components library (MathComp) for Coq.
51
+
52
+ ## Source
53
+
54
+ - Repository: https://github.com/math-comp/math-comp
55
+ - Commit: `91d97df9cf3204b4dab84f4e24bc633e84b6473d`
56
+ - Files: 139
57
+ - License: other
58
+
59
+ ## Schema
60
+
61
+ | Column | Type | Description |
62
+ |--------|------|-------------|
63
+ | fact | string | Verbatim declaration: statement followed by proof where present |
64
+ | statement | string | Verbatim statement (keyword through the closing period) |
65
+ | proof | string | Verbatim proof block (`Proof. ... Qed.`/`Defined.`), empty if none |
66
+ | type | string | Raw vernacular keyword |
67
+ | kind | string | Normalized kind |
68
+ | symbolic_name | string | Declaration identifier |
69
+ | library | string | Sub-library |
70
+ | filename | string | Repository-relative source path |
71
+ | imports | list[string] | File-level `Require`/`Import` modules |
72
+ | deps | list[string] | Intra-corpus identifiers referenced |
73
+ | docstring | string | Preceding documentation comment, null if absent |
74
+ | line_start | int | First source line |
75
+ | line_end | int | Last source line |
76
+ | has_proof | bool | Whether a proof block was captured |
77
+ | source_url | string | Upstream repository |
78
+ | commit | string | Upstream commit extracted |
79
+ | content_level | string | `statement+proof` |
80
+
81
+ ## Statistics
82
+
83
+ - Entries: 24,636
84
+ - With proof: 16,353 (66.4%)
85
+ - With docstring: 851 (3.5%)
86
+ - Libraries: 10
87
+
88
+ ### By type
89
+
90
+ | Type | Count |
91
+ |---|---|
92
+ | Lemma | 15,267 |
93
+ | Notation | 3,612 |
94
+ | Definition | 2,932 |
95
+ | Fact | 748 |
96
+ | Let | 680 |
97
+ | Canonical | 410 |
98
+ | Hypothesis | 293 |
99
+ | Fixpoint | 149 |
100
+ | Coercion | 147 |
101
+ | Variant | 116 |
102
+ | Theorem | 63 |
103
+ | Hypotheses | 57 |
104
+ | Inductive | 38 |
105
+ | Ltac | 29 |
106
+ | Structure | 24 |
107
+ | Record | 23 |
108
+ | Corollary | 18 |
109
+ | Example | 7 |
110
+ | Parameter | 5 |
111
+ | Proposition | 5 |
112
+ | Axiom | 4 |
113
+ | Instance | 3 |
114
+ | Remark | 3 |
115
+ | Class | 2 |
116
+ | Scheme | 1 |
117
+
118
+ ## Example
119
+
120
+ ```coq
121
+ Local Lemma floorP x :
122
+ if x \is real_num then (floor x)%:~R <= x < (floor x + 1)%:~R
123
+ else floor x == 0.
124
+ Proof. exact: floor_subproof. Qed.
125
+ ```
126
+
127
+ - kind: lemma | symbolic_name: `floorP` | algebra/archimedean.v:199
128
+
129
+ ## Use
130
+
131
+ Statement and proof are available both joined (`fact`) and split (`statement`, `proof`) for
132
+ proof-term modeling, autoformalization, retrieval, and dependency analysis via `deps`.
133
+
134
+ ## Citation
135
+
136
+ ```bibtex
137
+ @misc{coq_mathcomp_dataset,
138
+ title = {Coq-MathComp},
139
+ author = {Norton, Charles},
140
+ year = {2026},
141
+ note = {Extracted from https://github.com/math-comp/math-comp, commit 91d97df9cf32},
142
+ url = {https://huggingface.co/datasets/phanerozoic/Coq-MathComp}
143
+ }
144
+ ```
data/train-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:aa3cd3e3220ecae2a0882a212032de8b123984419a9f776d991af50353365b4f
3
- size 1831894
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce3cd74eb1a5f8bbaee39e903538630f5da0d31550a19c2cc194ceda2943e7ab
3
+ size 4693440