File size: 3,277 Bytes
0a2161a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7a06224
0a2161a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0c09fed
 
3c98229
0a2161a
 
 
 
 
0c09fed
0a2161a
 
 
 
 
7a06224
 
 
0a2161a
 
 
 
 
 
7a06224
 
 
 
 
 
 
 
 
 
 
 
0a2161a
 
 
 
 
7a06224
0a2161a
7a06224
0a2161a
 
 
 
 
 
 
 
 
0c09fed
 
 
0a2161a
 
99c32ed
0a2161a
 
 
0c09fed
 
 
0a2161a
 
 
 
 
 
 
 
 
 
 
 
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---

license: lgpl-2.1
task_categories:
  - text-generation
  - feature-extraction
language:
  - en
tags:
  - theorem-proving
  - formal-methods
  - coq
  - standard-library
size_categories:
  - 1K<n<10K
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: 18419}
  config_name: default
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
---


# Coq-Stdlib

Structured dataset of definitions and theorems from the Coq standard library.

## Source

- Repository: https://github.com/rocq-prover/stdlib
- Commit: `f76a666b0b2c28c671d4fdf6dd25bcab865b9c36`
- Files: 583
- License: lgpl-2.1

## 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: 18,419
- With proof: 17,842 (96.9%)
- With docstring: 2,948 (16.0%)
- Libraries: 44

### By type

| Type | Count |
|---|---|
| Lemma | 10,045 |
| Definition | 2,527 |
| Notation | 1,550 |
| Theorem | 1,386 |
| Instance | 736 |
| Ltac | 597 |
| Fixpoint | 512 |
| Parameter | 305 |
| Inductive | 182 |
| Axiom | 127 |
| Hypothesis | 107 |
| Let | 105 |
| Record | 60 |
| Class | 45 |
| Example | 42 |
| Corollary | 24 |
| Fact | 17 |
| Coercion | 12 |
| Remark | 11 |
| Scheme | 10 |
| Parameters | 6 |
| CoFixpoint | 5 |
| Variant | 3 |
| CoInductive | 3 |
| Proposition | 1 |
| Structure | 1 |

## Example

```

gt_pred_stt : forall n m, m > S n -> pred m > n

:= fun n m Hgt => proj1 (Nat.lt_succ_lt_pred n m) Hgt.

```

- type: Definition | symbolic_name: `gt_pred_stt` | theories/Arith/Arith_base.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

```bibtex

@misc{coq_stdlib_dataset,

  title  = {Coq-Stdlib},

  author = {Norton, Charles},

  year   = {2026},

  note   = {Extracted from https://github.com/rocq-prover/stdlib, commit f76a666b0b2c},

  url    = {https://huggingface.co/datasets/phanerozoic/Coq-Stdlib}

}

```