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