Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -22,18 +22,6 @@ This dataset contains programs and proofs in [F* proof-oriented programming lang
|
|
22 |
The data, proposed in [Towards Neural Synthesis for SMT-Assisted Proof-Oriented Programming](https://arxiv.org/pdf/2405.01787).
|
23 |
is an archive of source code, build artifacts, and metadata assembled from eight different F⋆-based open source projects on GitHub.
|
24 |
|
25 |
-
|
26 |
-
## Data Source
|
27 |
-
The raw data in this project are collected from eight open-source F* reposiroties in GitHib
|
28 |
-
1. [FStar](https://github.com/FStarLang/FStar): The F⋆ compiler itself, including its standard libraries and examples.
|
29 |
-
2. [Karamel](https://github.com/FStarLang/karamel): A transpiler from a subset of F⋆ called Low* to C, including libraries to work with a model of C types and control structures, e.g., for- and while-loops.
|
30 |
-
3. [EverParse](https://github.com/project-everest/everparse): A parser generator for binary formats, used in various large scale systems, e.g., the Windows kernel.
|
31 |
-
4. [HACL*](https://github.com/hacl-star/hacl-star): A library of verified cryptographic algorithms, including ValeCrypt, a library of verified assembly code, as well as EverCrypt, a cryptographic provider, including code deployed in Linux, Firefox, and Python.
|
32 |
-
5. [Merkle-tree](https://github.com/hacl-star/merkle-tree): A verified, incremental Merkle tree, designed for use in Azure CCF, a confidential computing system.
|
33 |
-
6. [Steel](https://github.com/FStarLang/steel): A concurrent separation logic library, with proofs of data structures and concurrency primitives.
|
34 |
-
7. [miTLS-F*](https://github.com/project-everest/mitls-fstar): A partially verified reference implementation of the TLS protocol.
|
35 |
-
8. [EverQuic-Crypto](https://github.com/project-everest/everquic-crypto): A verified implementation of header and packet protection for the QUIC protocol.
|
36 |
-
|
37 |
## Primary-Objective
|
38 |
This dataset's primary objective is to train and evaluate Proof-oriented Programming with AI (PoPAI, in short). Given a specification of a program and proof is F*,
|
39 |
the objective of a AI model is to synthesize the implemantation (see [below](#usage) for details about the usage of this dataset, including the input and output).
|
@@ -73,10 +61,10 @@ Each of the examples in this dataset are organized as dictionaries with the foll
|
|
73 |
|
74 |
# Usage
|
75 |
To use this dataset with [`datasets`](https://pypi.org/project/datasets/),
|
76 |
-
```
|
77 |
from datasets import load_dataset
|
78 |
|
79 |
-
data =
|
80 |
train_data = data["train"]
|
81 |
eval_data = data["validation"]
|
82 |
test_data = data["test"]
|
@@ -86,8 +74,15 @@ cross_project_test = test_data.filter(lambda x: x["isa_cross_project_example"] =
|
|
86 |
```
|
87 |
|
88 |
## Input
|
|
|
|
|
|
|
|
|
89 |
|
90 |
## Output
|
|
|
|
|
|
|
91 |
|
92 |
# Evaluation on this dataset
|
93 |
Generated F* definitions should be evaluated the proof checker tool from [https://github.com/FStarLang/fstar_dataset/releases/tag/eval-v1.0](https://github.com/FStarLang/fstar_dataset/releases/tag/eval-v1.0).
|
@@ -97,4 +92,27 @@ Download the source code and the `helpers.zip` file from the release.
|
|
97 |
The attached binaries in the evaluator (i.e., `fstar.exe` and `z3`) are built on
|
98 |
**`Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-189-generic x86_64)`** **`gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2)`**, **`OCaml 4.12.0`**.
|
99 |
If any of the binaries do not work properly, build F* from [this commit (f3b4db2ebce90020acbbbe1b4ea0d05d3e69ad6c)](https://github.com/FStarLang/FStar/commit/f3b4db2ebce90020acbbbe1b4ea0d05d3e69ad6c)
|
100 |
-
from the [F* repository](https://github.com/FStarLang/FStar), using their [installation guide](https://github.com/FStarLang/FStar/blob/master/INSTALL.md).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
The data, proposed in [Towards Neural Synthesis for SMT-Assisted Proof-Oriented Programming](https://arxiv.org/pdf/2405.01787).
|
23 |
is an archive of source code, build artifacts, and metadata assembled from eight different F⋆-based open source projects on GitHub.
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
## Primary-Objective
|
26 |
This dataset's primary objective is to train and evaluate Proof-oriented Programming with AI (PoPAI, in short). Given a specification of a program and proof is F*,
|
27 |
the objective of a AI model is to synthesize the implemantation (see [below](#usage) for details about the usage of this dataset, including the input and output).
|
|
|
61 |
|
62 |
# Usage
|
63 |
To use this dataset with [`datasets`](https://pypi.org/project/datasets/),
|
64 |
+
```python
|
65 |
from datasets import load_dataset
|
66 |
|
67 |
+
data = load_dataset("microsoft/FStarDataSet")
|
68 |
train_data = data["train"]
|
69 |
eval_data = data["validation"]
|
70 |
test_data = data["test"]
|
|
|
74 |
```
|
75 |
|
76 |
## Input
|
77 |
+
The primary input for generating F* definition is **`source_type`**.
|
78 |
+
All other information in an example may be used directly or to derive an input except
|
79 |
+
**`source_definition`**, **`ideal_premises`**, and **`completed_definiton`**.
|
80 |
+
|
81 |
|
82 |
## Output
|
83 |
+
The primary output is **`source_definition`**, which is the ground truth definition, that can be evaluated with the [proof checker](#evaluation-on-this-dataset).
|
84 |
+
The **`completed_definiton`** may be used as ground truth when a model is used as a text completion setting (though the evaluator does not support evaluation in this setting).
|
85 |
+
In addition, **`ideal_premises`** may be used for evaluating premise selection models.
|
86 |
|
87 |
# Evaluation on this dataset
|
88 |
Generated F* definitions should be evaluated the proof checker tool from [https://github.com/FStarLang/fstar_dataset/releases/tag/eval-v1.0](https://github.com/FStarLang/fstar_dataset/releases/tag/eval-v1.0).
|
|
|
92 |
The attached binaries in the evaluator (i.e., `fstar.exe` and `z3`) are built on
|
93 |
**`Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-189-generic x86_64)`** **`gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2)`**, **`OCaml 4.12.0`**.
|
94 |
If any of the binaries do not work properly, build F* from [this commit (f3b4db2ebce90020acbbbe1b4ea0d05d3e69ad6c)](https://github.com/FStarLang/FStar/commit/f3b4db2ebce90020acbbbe1b4ea0d05d3e69ad6c)
|
95 |
+
from the [F* repository](https://github.com/FStarLang/FStar), using their [installation guide](https://github.com/FStarLang/FStar/blob/master/INSTALL.md).
|
96 |
+
|
97 |
+
|
98 |
+
# Data Source
|
99 |
+
The raw data in this project are collected from eight open-source F* reposiroties in GitHib
|
100 |
+
1. [FStar](https://github.com/FStarLang/FStar): The F⋆ compiler itself, including its standard libraries and examples.
|
101 |
+
2. [Karamel](https://github.com/FStarLang/karamel): A transpiler from a subset of F⋆ called Low* to C, including libraries to work with a model of C types and control structures, e.g., for- and while-loops.
|
102 |
+
3. [EverParse](https://github.com/project-everest/everparse): A parser generator for binary formats, used in various large scale systems, e.g., the Windows kernel.
|
103 |
+
4. [HACL*](https://github.com/hacl-star/hacl-star): A library of verified cryptographic algorithms, including ValeCrypt, a library of verified assembly code, as well as EverCrypt, a cryptographic provider, including code deployed in Linux, Firefox, and Python.
|
104 |
+
5. [Merkle-tree](https://github.com/hacl-star/merkle-tree): A verified, incremental Merkle tree, designed for use in Azure CCF, a confidential computing system.
|
105 |
+
6. [Steel](https://github.com/FStarLang/steel): A concurrent separation logic library, with proofs of data structures and concurrency primitives.
|
106 |
+
7. [miTLS-F*](https://github.com/project-everest/mitls-fstar): A partially verified reference implementation of the TLS protocol.
|
107 |
+
8. [EverQuic-Crypto](https://github.com/project-everest/everquic-crypto): A verified implementation of header and packet protection for the QUIC protocol.
|
108 |
+
|
109 |
+
# Limitations
|
110 |
+
**TDB**
|
111 |
+
|
112 |
+
# Citation
|
113 |
+
|
114 |
+
# Contributors
|
115 |
+
1. [Saikat Chakraborty](https://huggingface.co/saikatc)
|
116 |
+
2. [Gabriel Ebner]()
|
117 |
+
3. [Nikhil Swamy]()
|
118 |
+
4. [Siddharth Bhat]()
|