phanerozoic commited on
Commit
cb63a6d
·
verified ·
1 Parent(s): f1531c0

Update README for v2.0

Browse files
Files changed (1) hide show
  1. README.md +62 -69
README.md CHANGED
@@ -1,90 +1,83 @@
1
  ---
2
- language:
3
- - en
4
- pretty_name: Coq-HoTT Dataset
5
- tags:
6
- - theorem-proving
7
- - formal-methods
8
- - hott
9
- - coq
10
  license: bsd-2-clause
11
  task_categories:
12
- - text-generation
13
- - feature-extraction
14
- - other
15
- configs:
16
- - config_name: default
17
- data_files:
18
- - split: train
19
- path: data/train-*
20
- dataset_info:
21
- features:
22
- - name: fact
23
- dtype: string
24
- - name: type
25
- dtype: string
26
- - name: library
27
- dtype: string
28
- - name: imports
29
- list: string
30
- - name: filename
31
- dtype: string
32
- - name: symbolic_name
33
- dtype: string
34
- - name: docstring
35
- dtype: string
36
- splits:
37
- - name: train
38
- num_bytes: 3581192
39
- num_examples: 11533
40
- download_size: 919179
41
- dataset_size: 3581192
42
  ---
43
 
44
- # Coq-HoTT Dataset
 
 
45
 
46
  ## Dataset Description
47
 
48
- The Coq-HoTT Dataset is derived from the Coq-HoTT repository, focusing on the formalization of Homotopy Type Theory in the Coq proof assistant. This dataset processes `.v` files from the theories directory to extract mathematical content in a structured format.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
- This work builds upon the format established by Andreas Florath (@florath) in his Coq Facts, Propositions and Proofs dataset.
51
 
52
- ### Dataset Structure
 
 
 
 
 
 
 
 
 
 
 
 
53
 
54
- The dataset includes the following fields:
55
- - `fact`: The complete mathematical statement, including type (Definition/Lemma/Theorem), name, and body
56
- - `imports`: The Require Import statements from the source file
57
- - `filename`: The source file name within the theories directory
58
- - `symbolic_name`: The identifier of the mathematical object
59
- - `__index_level_0__`: Sequential index for the dataset
60
 
61
- ### Example Row
62
 
63
- ```
64
- fact: "Definition minimal(n : nat) : Type := forall m : nat, P m -> n <= m."
65
- imports: "Require Import HoTT.Basics HoTT.Types. Require Import HoTT.Truncations.Core. Require Import HoTT.Spaces.Nat.Core."
66
- filename: "BoundedSearch.v"
67
- symbolic_name: "minimal"
68
- __index_level_0__: 0
69
- ```
70
 
71
- ### Source Code
72
 
73
- The dataset was generated using a custom Python script that processes the Coq-HoTT repository's theories directory, extracting mathematical content while preserving the structure and relationships between definitions, imports, and their source files.
74
- ``` to clean and organize content. `.v` files were processed for mathematical content, while `.md` files were included to retain important documentation and context.
75
 
76
- ### Usage:
 
 
 
77
 
78
- This dataset is designed for:
79
- - Formal Methods Research: Analyzing formal proofs and definitions in Homotopy Type Theory.
80
- - Machine Learning Applications: Training models on formal verification, code completion, and theorem proving tasks.
81
- - Educational Purposes: Providing structured examples of Coq formalizations.
82
 
83
- ### License:
84
 
85
- This dataset is distributed under the BSD 2-clause licence, aligning with the license of the original Coq-HoTT repository.
86
 
87
- ### Acknowledgments:
88
 
89
- - Original repository: Coq-HoTT (https://github.com/HoTT/Coq-HoTT)
90
- - Inspiration: Hugging Face user Andreas Florath (@florath) and his dataset on Coq.
 
 
 
 
 
 
1
  ---
 
 
 
 
 
 
 
 
2
  license: bsd-2-clause
3
  task_categories:
4
+ - text-generation
5
+ - feature-extraction
6
+ language:
7
+ - en
8
+ tags:
9
+ - theorem-proving
10
+ - formal-methods
11
+ - coq
12
+ - hott
13
+ - homotopy-type-theory
14
+ size_categories:
15
+ - 10K<n<100K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  ---
17
 
18
+ # Coq-HoTT
19
+
20
+ Structured dataset of formalizations from the Coq-HoTT library (Homotopy Type Theory in Coq).
21
 
22
  ## Dataset Description
23
 
24
+ - **Source:** [HoTT/Coq-HoTT](https://github.com/HoTT/Coq-HoTT)
25
+ - **Entries:** 11,533
26
+ - **Files processed:** 583
27
+ - **License:** BSD 2-Clause
28
+
29
+ ## Schema
30
+
31
+ | Column | Type | Description |
32
+ |--------|------|-------------|
33
+ | fact | string | Full declaration (name, signature, body) |
34
+ | type | string | Definition, Lemma, Theorem, Class, Instance, etc. |
35
+ | library | string | Sub-library within HoTT (Basics, Types, Spaces, etc.) |
36
+ | imports | list | Require Import statements |
37
+ | filename | string | Source file path |
38
+ | symbolic_name | string | Declaration identifier |
39
+ | docstring | string | Documentation comment (41% coverage) |
40
 
41
+ ## Statistics
42
 
43
+ ### By Type
44
+ | Type | Count |
45
+ |------|-------|
46
+ | Definition | 6,726 |
47
+ | Instance | 2,355 |
48
+ | Lemma | 1,308 |
49
+ | Class | 363 |
50
+ | Fixpoint | 141 |
51
+ | Record | 139 |
52
+ | Theorem | 103 |
53
+ | Proposition | 67 |
54
+ | Inductive | 39 |
55
+ | Other | 292 |
56
 
57
+ ### Docstring Coverage
58
+ - **4,756 entries (41%)** have documentation
 
 
 
 
59
 
60
+ ## Example Entry
61
 
 
 
 
 
 
 
 
62
 
 
63
 
64
+ ## Use Cases
 
65
 
66
+ - Retrieval / RAG for Coq theorem proving
67
+ - Homotopy Type Theory research
68
+ - Training embeddings for formal mathematics
69
+ - Documentation generation
70
 
71
+ ## Citation
 
 
 
72
 
 
73
 
 
74
 
75
+ ## Changelog
76
 
77
+ - **v2.0** (Jan 2025): Re-extraction with improved schema
78
+ - 7,848 -> 11,533 entries (+47%)
79
+ - Added library and docstring columns
80
+ - Changed imports from string to list
81
+ - Removed index_level column
82
+ - fact now includes full signature
83
+ - **v1.0** (Dec 2024): Initial release