phanerozoic commited on
Commit
0863157
·
verified ·
1 Parent(s): a0e4c64

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +124 -0
README.md ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - text-generation
5
+ - feature-extraction
6
+ language:
7
+ - en
8
+ tags:
9
+ - theorem-proving
10
+ - formal-methods
11
+ - tla+
12
+ - distributed-systems
13
+ - model-checking
14
+ size_categories:
15
+ - 1K<n<10K
16
+ dataset_info:
17
+ features:
18
+ - name: fact
19
+ dtype: string
20
+ - name: type
21
+ dtype: string
22
+ - name: library
23
+ dtype: string
24
+ - name: imports
25
+ list: string
26
+ - name: filename
27
+ dtype: string
28
+ - name: symbolic_name
29
+ dtype: string
30
+ - name: docstring
31
+ dtype: string
32
+ splits:
33
+ - name: train
34
+ num_examples: 5083
35
+ configs:
36
+ - config_name: default
37
+ data_files:
38
+ - split: train
39
+ path: data/train-*
40
+ ---
41
+
42
+ # TLA+
43
+
44
+ Structured dataset of TLA+ specifications from the official TLA+ Examples repository.
45
+
46
+ ## Dataset Description
47
+
48
+ - **Source:** [tlaplus/Examples](https://github.com/tlaplus/Examples)
49
+ - **Entries:** 5,083
50
+ - **Files processed:** 304
51
+ - **License:** MIT
52
+
53
+ ## Schema
54
+
55
+ | Column | Type | Description |
56
+ |--------|------|-------------|
57
+ | fact | string | Declaration body |
58
+ | type | string | definition, VARIABLE, CONSTANT, theorem, lemma, assume |
59
+ | library | string | Specification name (Paxos, DieHard, etc.) |
60
+ | imports | list | EXTENDS statements |
61
+ | filename | string | Source file path |
62
+ | symbolic_name | string | Declaration identifier |
63
+ | docstring | string | Documentation comment (where available) |
64
+
65
+ ## Statistics
66
+
67
+ ### By Type
68
+ | Type | Count |
69
+ |------|-------|
70
+ | definition | 3,170 |
71
+ | VARIABLE | 1,079 |
72
+ | CONSTANT | 436 |
73
+ | theorem | 228 |
74
+ | lemma | 128 |
75
+ | assume | 42 |
76
+
77
+ ### By Library (Top 15)
78
+ | Library | Count |
79
+ |---------|-------|
80
+ | SpecifyingSystems | 631 |
81
+ | ewd998 | 290 |
82
+ | SDP_Verification | 222 |
83
+ | byzpaxos | 170 |
84
+ | dijkstra-mutex | 165 |
85
+ | byihive | 125 |
86
+ | FiniteMonotonic | 112 |
87
+ | Paxos | 109 |
88
+ | KeyValueStore | 104 |
89
+ | PaxosHowToWinATuringAward | 102 |
90
+
91
+ ## About TLA+
92
+
93
+ TLA+ is a formal specification language developed by Leslie Lamport for designing, modeling, and verifying concurrent and distributed systems. It is widely used in industry (Amazon, Microsoft, Oracle) to verify critical system designs before implementation.
94
+
95
+ Key features:
96
+ - Based on set theory and temporal logic
97
+ - Model checking via TLC
98
+ - Proof system via TLAPS
99
+ - Used for consensus protocols, distributed databases, and concurrent algorithms
100
+
101
+ ## Use Cases
102
+
103
+ - Retrieval/RAG for TLA+ specifications
104
+ - Learning distributed systems patterns
105
+ - Training embeddings for formal specifications
106
+ - Semantic search over protocol designs
107
+
108
+ ## Related Datasets
109
+
110
+ - [Coq-Verdi](https://huggingface.co/datasets/phanerozoic/Coq-Verdi) - Verified distributed systems in Coq
111
+ - [Coq-Iris](https://huggingface.co/datasets/phanerozoic/Coq-Iris) - Concurrent separation logic
112
+ - [Lean4-Mathlib](https://huggingface.co/datasets/phanerozoic/Lean4-Mathlib) - Mathematical formalizations
113
+
114
+ ## Citation
115
+
116
+ If you use this dataset, please cite the TLA+ Examples repository:
117
+
118
+ ```bibtex
119
+ @software{tlaplus_examples,
120
+ title={TLA+ Examples},
121
+ url={https://github.com/tlaplus/Examples},
122
+ publisher={TLA+ Foundation}
123
+ }
124
+ ```