Twelf / README.md
phanerozoic's picture
Re-extract: full statement+proof, normalized schema, provenance
188734c verified
|
Raw
History Blame Contribute Delete
2.93 kB
---
license: other
task_categories:
- text-generation
- feature-extraction
language:
- en
tags:
- theorem-proving
- formal-methods
- twelf
- logical-framework
size_categories:
- 10K<n<100K
dataset_info:
features:
- {name: statement, dtype: string}
- {name: proof, dtype: string}
- {name: type, dtype: string}
- {name: symbolic_name, dtype: string}
- {name: library, dtype: string}
- {name: filename, dtype: string}
- {name: imports, list: string}
- {name: deps, list: string}
- {name: docstring, dtype: string}
- {name: source_url, dtype: string}
- {name: commit, dtype: string}
splits:
- {name: train, num_examples: 21193}
config_name: default
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
---
# Twelf
Twelf declarations, each row carrying the statement and, where present, the proof.
## Source
- Repository: https://github.com/standardml/twelf
- Commit: `b72cc28cd61c1114a79dcbb32f04ac6202fb379a`
- Files: 1004
- License: other
## Schema
| Column | Type | Description |
|--------|------|-------------|
| statement | string | Declaration signature/claim with the leading keyword removed (verbatim slice); the full declaration minus its proof |
| proof | string | Verbatim proof/body, empty if the declaration has none |
| type | string | Declaration keyword |
| symbolic_name | string | Declaration identifier |
| library | string | Sub-library |
| filename | string | Repository-relative source path |
| imports | list[string] | File-level `Require`/`Import` modules |
| deps | list[string] | Intra-corpus identifiers referenced |
| docstring | string | Preceding documentation comment, empty if absent |
| source_url | string | Upstream repository |
| commit | string | Upstream commit extracted |
## Statistics
- Entries: 21,193
- With proof: 380 (1.8%)
- With docstring: 0 (0.0%)
- Libraries: 66
### By type
| Type | Count |
|---|---|
| constant | 21,193 |
## Example
```
_ : nd (A imp A)
= (impe
(impe
(impi
([u:nd (A imp (B imp A) imp A)]
impi
([v:nd (A imp B imp A)]
impi ([w:nd A] impe (impe u w) (impe v w)))))
(impi ([u:nd A] impi ([v:nd (B imp A)] u))))
(impi ([u:nd A] impi ([v:nd B] u)))).
```
- type: constant | symbolic_name: `_` | examples/handbook/fol.elf
## Use
Each declaration is split into a `statement` (signature/claim) and a `proof` (body) that are disjoint
and together form the complete declaration, for proof modeling, autoformalization, retrieval, and
dependency analysis via `deps`.
## Citation
```bibtex
@misc{twelf_dataset,
title = {Twelf},
author = {Norton, Charles},
year = {2026},
note = {Extracted from https://github.com/standardml/twelf, commit b72cc28cd61c},
url = {https://huggingface.co/datasets/phanerozoic/Twelf}
}
```