| ---
|
| license: other
|
| task_categories:
|
| - text-generation
|
| - feature-extraction
|
| language:
|
| - en
|
| tags:
|
| - formal-methods
|
| - verification
|
| - viper
|
| 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: 5819}
|
| config_name: default
|
| configs:
|
| - config_name: default
|
| data_files:
|
| - split: train
|
| path: data/train-*
|
| ---
|
|
|
| # Viper
|
|
|
| Declarations from Viper.
|
|
|
| ## Source
|
|
|
| - Repository: https://github.com/viperproject/silver
|
| - Commit: `efc0caa6f46ad79d49f337d8d640460a49cfd757`
|
| - Files: 1459
|
| - 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: 5,819
|
| - With proof: 4,894 (84.1%)
|
| - With docstring: 0 (0.0%)
|
| - Libraries: 106
|
|
|
| ### By type
|
|
|
| | Type | Count |
|
| |---|---|
|
| | method | 3,328 |
|
| | function | 1,095 |
|
| | predicate | 551 |
|
| | field | 459 |
|
| | domain | 329 |
|
| | adt | 57 |
|
|
|
| ## Example
|
|
|
| ```
|
| BoolWellFoundedOrder
|
| {
|
| //Booleans
|
| axiom bool_ax_dec{
|
| decreasing(false, true)
|
| }
|
| axiom bool_ax_bound{
|
| forall bool1: Bool :: {bounded(bool1)}
|
| bounded(bool1)
|
| }
|
| }
|
| ```
|
|
|
| - type: domain | symbolic_name: `BoolWellFoundedOrder` | src/main/resources/import/decreases/bool.vpr
|
|
|
| ## 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{viper_dataset,
|
| title = {Viper},
|
| author = {Norton, Charles},
|
| year = {2026},
|
| note = {Extracted from https://github.com/viperproject/silver, commit efc0caa6f46a},
|
| url = {https://huggingface.co/datasets/phanerozoic/Viper}
|
| }
|
| ```
|
| |