Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
christopherastone commited on
Commit
cfb4ccd
·
1 Parent(s): de14215

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +66 -1
README.md CHANGED
@@ -5,4 +5,69 @@ task_categories:
5
  language:
6
  - en
7
  pretty_name: ProofLang Corpus
8
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  language:
6
  - en
7
  pretty_name: ProofLang Corpus
8
+ ---
9
+ # Dataset Card for the ProofLang Corpus
10
+
11
+ ## Dataset Summary
12
+
13
+ The ProofLang Corpus includes 3.7M proofs (558 million words) mechanically extracted from papers that were posted on [arXiv.org](https://arXiv.org) between 1992 and 2020.
14
+ The focus of this corpus is proofs, rather than the explanatory text that surrounds them, and more specifically on the *language* used in such proofs.
15
+ Specific mathematical content is filtered out, resulting in sentences such as `Let MATH be the restriction of MATH to MATH.`
16
+
17
+ This dataset reflects how people prefer to write (non-formalized) proofs, and is also amenable to statistical analyses and experiments with Natural Language Processing (NLP) techniques.
18
+ We hope it can serve as an aid in the development of language-based proof assistants and proof checkers for professional and educational purposes.
19
+
20
+ ## Dataset Structure
21
+
22
+ There are two versions of the data: `proofs` divides up the data proof-by-proof, and `sentences` further divides up the same data sentence-by-sentence.
23
+
24
+ * The data in `proofs` consists of a `paperID` that specifies the paper where the proof was extracted, and the `proof` as a string.
25
+
26
+ * The data in `sentences` consists of a `paperID` that specifies the paper where the sentence occurred, and the `sentence` as a string.
27
+
28
+ ## Dataset usage
29
+
30
+ Data can be downloaded as TSV files. Accessing the data programmatically from Python is also possible using the `Datasets` library. For example, to print the first 10 proofs:
31
+
32
+ ```python
33
+ from datasets import load_dataset
34
+ dataset = load_dataset('proofcheck/prooflang', 'proofs', split='train', streaming=`True`)
35
+ for d in dataset.take(10):
36
+ print(d['fileID'], d['proof'])
37
+ ```
38
+
39
+ To look at individual sentences from the proofs, `'proofs'` and `d['proof']` by `sentences` and `d['sentence']` .
40
+
41
+
42
+ ### Data Splits
43
+
44
+ There is currently no train/test split; all the data is in `train`.
45
+
46
+ ## Dataset Creation
47
+
48
+ We started with the LaTeX source of 1.6M papers that were submitted to [arXiv.org](https://arXiv.org) between 1992 and April 2022.
49
+
50
+ The proofs were extracted using a Python script simulating parts of LaTeX (including defining and expanding macros).
51
+ It does no actual typesetting, throws away output not between `\begin{proof}...\end{proof}`, and skips math content. During extraction,
52
+
53
+ * Math-mode formulas (signalled by `$`, `\begin{equation}`, etc.) become `MATH`
54
+ * `\ref{...}` and variants (`autoref`, `\subref`, etc.) become `REF`
55
+ * `\cite{...}` and variants (`\Citet`, `\shortciteNP`, etc.) become `CITE`
56
+ * Words that appear to be proper names become `NAME`
57
+ * `\item` becomes `CASE:`
58
+
59
+ We then run a cleanup pass on the extracted proofs that includes
60
+
61
+ * Cleaning up common extraction errors (e.g., due to uninterpreted macros)
62
+ * Replacing more references by `REF`, e.g., `Theorem 2(a)` or `Postulate (*)`
63
+ * Replacing more citations with `CITE`, e.g., `Page 47 of CITE`
64
+ * Replacing more proof-case markers with `CASE:`, e.g., `Case (a).`
65
+ * Fixing a few common misspellings
66
+
67
+
68
+ ## Additional Information
69
+
70
+ This dataset is released under the Creative Commons Attribution 4.0 licence.
71
+
72
+ Copyright for the actual proofs remains with the authors of the papers on [arXiv.org](https://arXiv.org), but these simplified snippets are fair use under US copyright law.
73
+