Coq-ExtLib / README.md
phanerozoic's picture
Re-extract: full statement+proof, normalized schema, provenance
a28a9ef verified
|
Raw
History Blame Contribute Delete
3.05 kB
metadata
license: bsd-2-clause
task_categories:
  - text-generation
  - feature-extraction
language:
  - en
tags:
  - theorem-proving
  - formal-methods
  - coq
size_categories:
  - n<1K
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: 1019
  config_name: default
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*

Coq-ExtLib

Structured dataset from coq-ext-lib — Extended standard library with monads and data structures.

Source

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: 1,019
  • With proof: 1,005 (98.6%)
  • With docstring: 54 (5.3%)
  • Libraries: 15

By type

Type Count
Instance 251
Definition 238
Lemma 129
Fixpoint 114
Theorem 62
Class 60
Notation 57
Inductive 46
Ltac 37
Record 11
Hypothesis 11
Coercion 2
CoInductive 1

Example

exp : Type
:=
| ConstI : nat -> exp
| ConstB : bool -> exp
| Plus : exp -> exp -> exp
| If : exp -> exp -> exp -> exp.
  • type: Inductive | symbolic_name: exp | examples/EvalWithExc.v

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

@misc{coq_extlib_dataset,
  title  = {Coq-ExtLib},
  author = {Norton, Charles},
  year   = {2026},
  note   = {Extracted from https://github.com/coq-community/coq-ext-lib, commit ddd03d257f6b},
  url    = {https://huggingface.co/datasets/phanerozoic/Coq-ExtLib}
}