phanerozoic commited on
Commit
6bcd278
·
verified ·
1 Parent(s): ed9e9b7

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +66 -27
README.md CHANGED
@@ -1,29 +1,68 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: fact
5
- dtype: string
6
- - name: type
7
- dtype: string
8
- - name: library
9
- dtype: string
10
- - name: imports
11
- list: string
12
- - name: filename
13
- dtype: string
14
- - name: symbolic_name
15
- dtype: string
16
- - name: docstring
17
- dtype: string
18
- splits:
19
- - name: train
20
- num_bytes: 20232821
21
- num_examples: 40600
22
- download_size: 3888225
23
- dataset_size: 20232821
24
- configs:
25
- - config_name: default
26
- data_files:
27
- - split: train
28
- path: data/train-*
29
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - text-generation
5
+ - feature-extraction
6
+ language:
7
+ - en
8
+ tags:
9
+ - theorem-proving
10
+ - formal-methods
11
+ - lean4
12
+ - standard-library
13
+ size_categories:
14
+ - 10K<n<100K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  ---
16
+
17
+ # Lean4-Stdlib
18
+
19
+ Structured dataset of definitions and theorems from the Lean 4 standard library (Init + Std).
20
+
21
+ ## Dataset Description
22
+
23
+ - **Source:** [leanprover/lean4](https://github.com/leanprover/lean4) (src/Init + src/Std)
24
+ - **Entries:** 40,600
25
+ - **Files processed:** 900 (507 Init + 393 Std)
26
+ - **License:** Apache 2.0
27
+
28
+ ## Schema
29
+
30
+ | Column | Type | Description |
31
+ |--------|------|-------------|
32
+ | fact | string | Declaration body (without type keyword) |
33
+ | type | string | theorem, def, class, structure, instance, inductive, abbrev, axiom, opaque |
34
+ | library | string | Init.* or Std.* module |
35
+ | imports | list | Import statements |
36
+ | filename | string | Source file path |
37
+ | symbolic_name | string | Declaration identifier |
38
+ | docstring | string | Documentation comment (16% coverage) |
39
+
40
+ ## Statistics
41
+
42
+ ### By Type
43
+ | Type | Count |
44
+ |------|-------|
45
+ | theorem | 31,887 |
46
+ | def | 6,600 |
47
+ | instance | 426 |
48
+ | abbrev | 425 |
49
+ | opaque | 399 |
50
+ | structure | 382 |
51
+ | class | 302 |
52
+ | inductive | 163 |
53
+ | axiom | 16 |
54
+
55
+ ### Docstring Coverage
56
+ - 6,651 entries with docstrings (16%)
57
+
58
+ ## Use Cases
59
+
60
+ - Retrieval/RAG for Lean 4
61
+ - Learning core Lean 4 patterns
62
+ - Training embeddings for formal proofs
63
+ - API exploration
64
+
65
+ ## Related Datasets
66
+
67
+ - [Lean4-Mathlib](https://huggingface.co/datasets/phanerozoic/Lean4-Mathlib)
68
+ - [Lean4-Changelog](https://huggingface.co/datasets/phanerozoic/Lean4-Changelog)