saikatc commited on
Commit
5abb449
1 Parent(s): 1c34a5c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +43 -7
README.md CHANGED
@@ -18,14 +18,10 @@ language:
18
 
19
  This dataset is the Version 2.0 of [`microsoft/FStarDataSet`](https://huggingface.co/datasets/microsoft/FStarDataSet).
20
 
21
- ## Data Source
22
- In addition to the eight projects in `microsoft/FStarDataSet`, data from four more projects are included in this version.
23
- 1. [Starmada](https://github.com/microsoft/Armada): a framework for doing proofs by stepwise refinement for concurrent programs in a weak memory model. Starmada is an experimental version of Armada implemented in F⋆, relying on various advanced features of F⋆’s dependent type system for more generic and abstract proofs.
24
- 2. [Zeta](https://github.com/project-everest/zeta): a high performance, concurrent monitor for stateful services proven correct in F⋆ and its Steel concurrent separation logic
25
- 3. [Dice-star](https://github.com/verified-HRoT/dice-star): a verified implementation of the DICE measured boot protocol for embedded devices
26
- 4. [Noise-star](https://github.com/Inria-Prosecco/noise-star): a verified compiler for implementations of Noise protocols, a family of key-exchange protocols
27
 
28
  ## Primary-Objective
 
 
29
 
30
  ## Data Format
31
  Each of the examples in this dataset are organized as dictionaries with the following schema
@@ -61,10 +57,29 @@ Each of the examples in this dataset are organized as dictionaries with the foll
61
  ```
62
 
63
  # Usage
 
 
 
 
 
 
 
 
 
 
 
 
64
 
65
  ## Input
 
 
 
 
66
 
67
  ## Output
 
 
 
68
 
69
  # Evaluation on this dataset
70
  Generated F* definitions should be evaluated the proof checker tool from
@@ -75,4 +90,25 @@ Download the source code and the `helpers.zip` file from the release.
75
  The attached binaries in the evaluator (i.e., `fstar.exe` and `z3`) are built on
76
  **`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`**.
77
  If any of the binaries do not work properly, build F* from [this commit (10183ea187da8e8c426b799df6c825e24c0767d3)](https://github.com/FStarLang/FStar/commit/10183ea187da8e8c426b799df6c825e24c0767d3)
78
- from the [F* repository](https://github.com/FStarLang/FStar), using their [installation guide](https://github.com/FStarLang/FStar/blob/master/INSTALL.md).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  This dataset is the Version 2.0 of [`microsoft/FStarDataSet`](https://huggingface.co/datasets/microsoft/FStarDataSet).
20
 
 
 
 
 
 
 
21
 
22
  ## Primary-Objective
23
+ 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*,
24
+ 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).
25
 
26
  ## Data Format
27
  Each of the examples in this dataset are organized as dictionaries with the following schema
 
57
  ```
58
 
59
  # Usage
60
+ To use this dataset with [`datasets`](https://pypi.org/project/datasets/),
61
+ ```python
62
+ from datasets import load_dataset
63
+
64
+ data = load_dataset("microsoft/FStarDataSet")
65
+ train_data = data["train"]
66
+ eval_data = data["validation"]
67
+ test_data = data["test"]
68
+
69
+ intra_project_test = test_data.filter(lambda x: x["isa_cross_project_example"] == False)
70
+ cross_project_test = test_data.filter(lambda x: x["isa_cross_project_example"] == True)
71
+ ```
72
 
73
  ## Input
74
+ The primary input for generating F* definition is **`source_type`**.
75
+ All other information in an example may be used directly or to derive an input except
76
+ **`source_definition`**, **`ideal_premises`**, and **`completed_definiton`**.
77
+
78
 
79
  ## Output
80
+ The primary output is **`source_definition`**, which is the ground truth definition, that can be evaluated with the [proof checker](#evaluation-on-this-dataset).
81
+ 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).
82
+ In addition, **`ideal_premises`** may be used for evaluating premise selection models.
83
 
84
  # Evaluation on this dataset
85
  Generated F* definitions should be evaluated the proof checker tool from
 
90
  The attached binaries in the evaluator (i.e., `fstar.exe` and `z3`) are built on
91
  **`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`**.
92
  If any of the binaries do not work properly, build F* from [this commit (10183ea187da8e8c426b799df6c825e24c0767d3)](https://github.com/FStarLang/FStar/commit/10183ea187da8e8c426b799df6c825e24c0767d3)
93
+ from the [F* repository](https://github.com/FStarLang/FStar), using their [installation guide](https://github.com/FStarLang/FStar/blob/master/INSTALL.md).
94
+
95
+ # Data Source
96
+ In addition to the eight projects in `microsoft/FStarDataSet`, data from four more projects are included in this version.
97
+ 1. [Starmada](https://github.com/microsoft/Armada): a framework for doing proofs by stepwise refinement for concurrent programs in a weak memory model. Starmada is an experimental version of Armada implemented in F⋆, relying on various advanced features of F⋆’s dependent type system for more generic and abstract proofs.
98
+ 2. [Zeta](https://github.com/project-everest/zeta): a high performance, concurrent monitor for stateful services proven correct in F⋆ and its Steel concurrent separation logic
99
+ 3. [Dice-star](https://github.com/verified-HRoT/dice-star): a verified implementation of the DICE measured boot protocol for embedded devices
100
+ 4. [Noise-star](https://github.com/Inria-Prosecco/noise-star): a verified compiler for implementations of Noise protocols, a family of key-exchange protocols
101
+
102
+ # Limitations
103
+ **TDB**
104
+
105
+ # Citation
106
+ ```
107
+ @inproceedings{chakraborty2024towards,
108
+ title={Towards Neural Synthesis for SMT-Assisted Proof-Oriented Programming},
109
+ author={Chakraborty, Saikat and Ebner, Gabriel and Bhat, Siddharth and Fakhoury, Sarah and Fatima, Sakina and Lahiri, Shuvendu and Swamy, Nikhil},
110
+ booktitle={Proceedings of the IEEE/ACM 47th International Conference on Software Engineering (To Appear)},
111
+ pages={1--12},
112
+ year={2025}
113
+ }
114
+ ```