PVS-NASALib
收藏资源简介:
PVS-NASALib数据集提取自美国国家航空航天局(NASA)的PVS库(NASALib),包含该形式化验证库中的声明。该数据集旨在支持与定理证明和形式化方法相关的研究与应用,例如证明项建模、自动形式化、检索以及依赖关系分析。数据集共包含37,110个条目,涵盖91个子库。每个条目代表一个PVS声明,其数据结构包含15个字段,核心字段包括:完整的声明内容(`fact`)、声明签名(`statement`)、证明/主体部分(`proof`)、声明类型(`type`,如引理、定义、定理等)、符号名称(`symbolic_name`)、所属子库(`library`)、源文件路径(`filename`)、文件级导入模块列表(`imports`)、引用的语料库内标识符列表(`deps`)、文档注释(`docstring`)、起止行号、是否包含证明的标志(`has_proof`)以及数据来源的仓库URL和提交哈希。在全部条目中,约30.6%(11,338条)包含证明部分,但均无文档注释。声明类型分布广泛,其中数量最多的是引理(lemma,19,984条)和定义(definition,10,061条),此外还包括定理、判断、函数、公理、推论等多种类型。数据来源于GitHub上的nasa/pvslib仓库的特定提交版本(59714e007f6acc7440fe014ae7ff83bfb2ef0696)。
The PVS-NASALib dataset is extracted from NASAs PVS library (NASALib) and contains declarations from this formal verification library. The dataset aims to support research and applications related to theorem proving and formal methods, such as proof term modeling, automated formalization, retrieval, and dependency analysis. It consists of 37,110 entries covering 91 sublibraries. Each entry represents a PVS declaration with a data structure comprising 15 fields, including core fields like the full declaration content (`fact`), declaration signature (`statement`), proof/body part (`proof`), declaration type (`type`, e.g., lemma, definition, theorem), symbolic name (`symbolic_name`), sublibrary (`library`), source file path (`filename`), file-level import module list (`imports`), referenced corpus identifier list (`deps`), documentation comment (`docstring`), start and end line numbers, flag indicating whether it contains proof (`has_proof`), and repository URL and commit hash of the data source. Among all entries, approximately 30.6% (11,338 entries) contain proof parts but have no documentation comments. The declaration types are widely distributed, with the most numerous being lemmas (19,984 entries) and definitions (10,061 entries), along with other types such as theorems, judgments, functions, axioms, and corollaries. The data is sourced from a specific commit version (59714e007f6acc7440fe014ae7ff83bfb2ef0696) of the nasa/pvslib repository on GitHub.
数据集概述:PVS-NASALib
- 数据集名称:PVS-NASALib
- 描述:来自 NASA PVS 库(NASALib)的声明数据,用于定理证明、形式化方法和 PVS 相关研究。
- 许可证:other
- 语言:英语(en)
- 任务类型:文本生成、特征提取
- 数据集规模:10,000 < 样本数 < 100,000
- 样本总数:33,871 条记录(均为训练集)
数据集结构
- 配置:
default - 数据拆分:
- train:33,871 个样本(数据文件路径:
data/train-*)
- train:33,871 个样本(数据文件路径:
数据特征(Schema)
| 列名 | 类型 | 描述 |
|---|---|---|
| statement | string | 声明签名/主张,去掉了前导关键字的完整声明(不含证明) |
| proof | string | 完整的证明/主体,若无则为空 |
| type | string | 声明关键词 |
| symbolic_name | string | 声明标识符 |
| library | string | 子库名称 |
| filename | string | 相对于仓库的源文件路径 |
| imports | list[string] | 文件级别的 Require/Import 模块列表 |
| deps | list[string] | 数据集中被引用的内部标识符列表 |
| docstring | string | 前的文档注释,若无则为空 |
| source_url | string | 上游仓库地址 |
| commit | string | 提取时的上游提交哈希 |
统计信息
- 含证明的记录:10,619 条(占比 31.4%)
- 含文档注释的记录:0 条(0.0%)
- 子库数量:91 个
按声明类型统计
| 类型 | 数量 |
|---|---|
| lemma | 18,703 |
| definition | 8,946 |
| theorem | 1,305 |
| judgement | 1,186 |
| type | 1,110 |
| function | 910 |
| macro | 764 |
| axiom | 457 |
| corollary | 239 |
| assumption | 179 |
| conjecture | 42 |
| proposition | 19 |
| formula | 10 |
| fact | 1 |
数据来源
- 仓库地址:https://github.com/nasa/pvslib
- 提取提交:
59714e007f6acc7440fe014ae7ff83bfb2ef0696 - 许可证:other
用途
每条声明被拆分为 statement(签名/主张)和 proof(证明/主体),两者互斥且共同构成完整的声明,适用于证明建模、自动形式化、检索以及通过 deps 进行依赖分析。
引用
bibtex @misc{pvs_nasalib_dataset, title = {PVS-NASALib}, author = {Norton, Charles}, year = {2026}, note = {Extracted from https://github.com/nasa/pvslib, commit 59714e007f6a}, url = {https://huggingface.co/datasets/phanerozoic/PVS-NASALib} }




