Datasets:
Re-extract: full statement+proof, normalized schema, provenance
Browse files- README.md +144 -114
- 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 |
-
|
| 23 |
-
- name:
|
| 24 |
-
|
| 25 |
-
- name:
|
| 26 |
-
|
| 27 |
-
- name:
|
| 28 |
-
|
| 29 |
-
- name:
|
| 30 |
-
|
| 31 |
-
- name:
|
| 32 |
-
|
| 33 |
-
- name:
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
- name:
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 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 |
-
##
|
| 53 |
-
|
| 54 |
-
-
|
| 55 |
-
-
|
| 56 |
-
-
|
| 57 |
-
-
|
| 58 |
-
|
| 59 |
-
## Schema
|
| 60 |
-
|
| 61 |
-
| Column | Type | Description |
|
| 62 |
-
|--------|------|-------------|
|
| 63 |
-
| fact | string |
|
| 64 |
-
|
|
| 65 |
-
|
|
| 66 |
-
|
|
| 67 |
-
|
|
| 68 |
-
| symbolic_name | string | Declaration identifier |
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
|
| 74 |
-
|
|
| 75 |
-
|
|
| 76 |
-
|
|
| 77 |
-
|
|
| 78 |
-
|
|
| 79 |
-
|
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
|
| 91 |
-
|
|
| 92 |
-
|
|
| 93 |
-
|
|
| 94 |
-
|
|
| 95 |
-
|
|
| 96 |
-
|
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce3cd74eb1a5f8bbaee39e903538630f5da0d31550a19c2cc194ceda2943e7ab
|
| 3 |
+
size 4693440
|