metadata
license: other
task_categories:
- text-generation
- feature-extraction
language:
- en
tags:
- formal-methods
- alloy
- model-finding
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: 1132
config_name: default
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
Alloy
Declarations from Alloy.
Source
- Repository: https://github.com/AlloyTools/models
- Commit:
886447d3369a9036aa4c3b49a82d7c557ab2e5f9 - Files: 116
- 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: 1,132
- With proof: 915 (80.8%)
- With docstring: 0 (0.0%)
- Libraries: 44
By type
| Type | Count |
|---|---|
| pred | 338 |
| sig | 288 |
| fun | 165 |
| fact | 124 |
| assert | 80 |
| check | 73 |
| run | 64 |
Example
AVTree {
values: set Value,
attributes: set Attribute,
root: values - Wildcard,
av: attributes one -> some (values - root),
va: (values - Wildcard) one -> attributes
}
{
// values (and attributes) of tree are those reachable from root
values = root.*(va.av)
}
- type: sig | symbolic_name:
AVTree| algorithms/discovery/ins.als
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{alloy_dataset,
title = {Alloy},
author = {Norton, Charles},
year = {2026},
note = {Extracted from https://github.com/AlloyTools/models, commit 886447d3369a},
url = {https://huggingface.co/datasets/phanerozoic/Alloy}
}