ntp-mathlib / README.md
wellecks's picture
Update README.md
2ac0b5f verified
|
raw
history blame
1.32 kB
---
tags:
- theorem-proving
- math
- lean
---
Lean 4 tactic prediction examples extracted from Mathlib.
These examples have **not** been formatted for instruction tuning (including data splits).
Please see `l3lab/ntp-lean-mathlib-instruct-*` for datasets with instruction tuning examples.
### Version
Generated using `ntptutorial`'s `ntp-training-data` with the following config:
```json
{
"repo": "https://github.com/leanprover-community/mathlib4",
"commit": "cf8e23a62939ed7cc530fbb68e83539730f32f86",
"lean": "leanprover/lean4:v4.4.0",
"name": "mathlib",
"import_file": "Mathlib.lean",
"imports": ["Mathlib"]
}
```
### Example usage:
```bash
ds = datasets.load_dataset('wellecks/ntp-lean-mathlib-tactic')
print(len(ds['train']))
# ==> 337162
```
### Format:
```json
{
'state': 'proof state',
'srcUpToTactic': 'source up to tactic invocation',
'nextTactic': 'tactic',
'declUpToTactic': 'declariation up to tactic invocation',
'declId': 'unique ID for declaration',
'decl': 'declaration',
'file_tag': 'file ID'
}
```
### Citation
```
@misc{ntptutorial,
author = {Sean Welleck},
title = {Neural theorem proving tutorial},
year = {2023},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/wellecks/ntptutorial}},
}
```