File size: 1,789 Bytes
3dc4d37
2a79778
 
 
 
347c298
2a79778
347c298
2a79778
 
 
 
 
 
 
3dc4d37
 
2a79778
 
 
3dc4d37
 
2a79778
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: other
task_categories:
  - text-generation
  - feature-extraction
language:
  - en
tags:
  - theorem-proving
  - formal-methods
  - coq
  - unimath
  - univalent-mathematics
size_categories:
  - 10K<n<100K
---

# Coq-UniMath

Structured dataset of formalizations from the UniMath library (Univalent Mathematics in Coq).

## Dataset Description

- **Source:** [UniMath/UniMath](https://github.com/UniMath/UniMath)
- **Entries:** 48,240
- **Files processed:** 1,557
- **License:** UniMath License

## Schema

| Column | Type | Description |
|--------|------|-------------|
| fact | string | Full declaration (name, signature, body) |
| type | string | Definition, Lemma, Theorem, Proposition, etc. |
| library | string | Sub-library (Algebra, CategoryTheory, Foundations, etc.) |
| imports | list | Require Import statements |
| filename | string | Source file path |
| symbolic_name | string | Declaration identifier |
| docstring | string | Documentation comment (13% coverage) |

## Statistics

### By Type
| Type | Count |
|------|-------|
| Definition | 30,272 |
| Lemma | 10,231 |
| Proposition | 3,807 |
| Let | 2,878 |
| Theorem | 359 |
| Notation | 233 |
| Ltac | 229 |
| Corollary | 181 |
| Other | 50 |

### Docstring Coverage
- **6,648 entries (13%)** have documentation

## Example Entry



## Use Cases

- Retrieval / RAG for Coq theorem proving
- Univalent mathematics research
- Training embeddings for formal mathematics
- Documentation generation

## Citation



## Changelog

- **v2.0** (Jan 2025): Re-extraction with improved schema
  - 38,661 -> 48,240 entries (+25%)
  - Added docstring column (13% coverage)
  - Changed imports from string to list
  - Removed index_level column
  - fact now includes full signature
- **v1.0** (Dec 2024): Initial release