| ---
|
| license: other
|
| task_categories:
|
| - text-generation
|
| - feature-extraction
|
| language:
|
| - en
|
| tags:
|
| - theorem-proving
|
| - formal-methods
|
| - redprl
|
| - cubical-type-theory
|
| - computational-type-theory
|
| 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: 290}
|
| config_name: default
|
| configs:
|
| - config_name: default
|
| data_files:
|
| - split: train
|
| path: data/train-*
|
| ---
|
|
|
| # RedPRL
|
|
|
| Declarations from RedPRL, a cubical/computational type theory system.
|
|
|
| ## Source
|
|
|
| - Repository: https://github.com/RedPRL/sml-redprl
|
| - Commit: `c72190de76f7ed1cfbe1d2046c96e99ac5022b0c`
|
| - Files: 57
|
| - 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: 290
|
| - With proof: 289 (99.7%)
|
| - With docstring: 0 (0.0%)
|
| - Libraries: 3
|
|
|
| ### By type
|
|
|
| | Type | Count |
|
| |---|---|
|
| | theorem | 242 |
|
| | define | 35 |
|
| | tactic | 10 |
|
| | data | 3 |
|
|
|
| ## Example
|
|
|
| ```
|
| Test(#l:lvl) : (Category (++#l))
|
| by {
|
| { ob = `(U #l)
|
| , hom = lam ty/a ty/b => `(-> ty/a ty/b)
|
| , idn = lam ty/a x => `x
|
| , cmp = lam ty/a ty/b ty/a f g x => use f [use g [`x]]
|
| , idn/l = lam _ _ _ => auto
|
| , idn/r = lam _ _ _ => auto
|
| , assoc = lam _ _ _ _ _ _ _ => auto
|
| }
|
| }.
|
| ```
|
|
|
| - type: theorem | symbolic_name: `Test` | example/category.prl
|
|
|
| ## 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{redprl_dataset,
|
| title = {RedPRL},
|
| author = {Norton, Charles},
|
| year = {2026},
|
| note = {Extracted from https://github.com/RedPRL/sml-redprl, commit c72190de76f7},
|
| url = {https://huggingface.co/datasets/phanerozoic/RedPRL}
|
| }
|
| ```
|
| |