Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
Zhangir Azerbayev commited on
Commit
231bd79
1 Parent(s): f34a2b4

Moved build scripts to github

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
.gitattributes CHANGED
@@ -50,3 +50,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
50
  *.jpeg filter=lfs diff=lfs merge=lfs -text
51
  *.webp filter=lfs diff=lfs merge=lfs -text
52
  formal/setmm/set.mm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
50
  *.jpeg filter=lfs diff=lfs merge=lfs -text
51
  *.webp filter=lfs diff=lfs merge=lfs -text
52
  formal/setmm/set.mm filter=lfs diff=lfs merge=lfs -text
53
+ train filter=lfs diff=lfs merge=lfs -text
54
+ test filter=lfs diff=lfs merge=lfs -text
55
+ dev filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -22,8 +22,8 @@ task_ids:
22
  ---
23
 
24
  # Dataset Description
25
- The `proof-pile` is a 40GB pre-training dataset of mathematical text that comprises roughly 15 billion tokens. The dataset is composed of diverse sources of both informal and formal mathematics, namely
26
- - ArXiv.math (37GB)
27
  - Open-source math textbooks (50MB)
28
  - Formal mathematics libraries (500MB)
29
  - Lean mathlib and other Lean repositories
@@ -38,22 +38,60 @@ The `proof-pile` is a 40GB pre-training dataset of mathematical text that compri
38
  - Wikipedia math articles
39
  - MATH dataset (6MB)
40
 
 
 
 
41
  # Supported Tasks
42
- This dataset is intended to be used for pre-training language models. We envision models pre-trained on the `proof-pile` will have many downstream applications, including informal quantitative reasoning, formal theorem proving, semantic search for formal mathematics, and autoformalization.
43
 
44
  # Languages
45
  All informal mathematics in the `proof-pile` is written in English and LaTeX (arXiv articles in other languages are filtered out using [languagedetect](https://github.com/shuyo/language-detection/blob/wiki/ProjectHome.md)). Formal theorem proving languages represented in this dataset are Lean 3, Isabelle, Coq, HOL Light, Metamath, and Mizar.
46
-
47
- # Configurations
48
- The data is sorted into `"arxiv", "books", "formal", "stack-exchange", "wiki",` and `"math-dataset"` configurations. This is so that it is easy to upsample particular configurations during pre-training with the `datasets.interleave_datasets()` function.
49
 
50
  # Evaluation
51
  The version of `set.mm` in this dataset has 10% of proofs replaced with the `?` character in order to preserve a validation and test set for Metamath provers pre-trained on the `proof-pile`. The precise split can be found here: [validation](https://github.com/zhangir-azerbayev/mm-extract/blob/main/valid_decls.json) and [test](https://github.com/zhangir-azerbayev/mm-extract/blob/main/test_decls.json).
52
-
53
  The Lean mathlib commit used in this dataset is `6313863`. Theorems created in subsequent commits can be used for evaluating Lean theorem provers.
54
 
55
  This dataset contains only the training set of the [MATH dataset](https://github.com/hendrycks/math). However, because this dataset contains ProofWiki, the Stacks Project, Trench's Analysis, and Stein's Number Theory, models trained on it cannot be evaluated on the [NaturalProofs dataset](https://github.com/wellecks/naturalproofs).
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  ## Contributions
58
  Authors: Zhangir Azerbayev, Edward Ayers, Bartosz Piotrowski.
59
 
 
22
  ---
23
 
24
  # Dataset Description
25
+ The `proof-pile` is a 36GB pre-training dataset of mathematical text that comprises roughly 15 billion tokens. The dataset is composed of diverse sources of both informal and formal mathematics, namely
26
+ - ArXiv.math (35GB)
27
  - Open-source math textbooks (50MB)
28
  - Formal mathematics libraries (500MB)
29
  - Lean mathlib and other Lean repositories
 
38
  - Wikipedia math articles
39
  - MATH dataset (6MB)
40
 
41
+ The construction of the dataset is reproducible using the code and instructions in the [proof-pile Github
42
+ repo](https://github.com/zhangir-azerbayev/proof-pile).
43
+
44
  # Supported Tasks
45
+ This dataset is intended to be used for pre-training and fine-tuning language models. We envision models trained on the `proof-pile` will have many downstream applications, including informal quantitative reasoning, formal theorem proving, semantic search for formal mathematics, and autoformalization.
46
 
47
  # Languages
48
  All informal mathematics in the `proof-pile` is written in English and LaTeX (arXiv articles in other languages are filtered out using [languagedetect](https://github.com/shuyo/language-detection/blob/wiki/ProjectHome.md)). Formal theorem proving languages represented in this dataset are Lean 3, Isabelle, Coq, HOL Light, Metamath, and Mizar.
 
 
 
49
 
50
  # Evaluation
51
  The version of `set.mm` in this dataset has 10% of proofs replaced with the `?` character in order to preserve a validation and test set for Metamath provers pre-trained on the `proof-pile`. The precise split can be found here: [validation](https://github.com/zhangir-azerbayev/mm-extract/blob/main/valid_decls.json) and [test](https://github.com/zhangir-azerbayev/mm-extract/blob/main/test_decls.json).
 
52
  The Lean mathlib commit used in this dataset is `6313863`. Theorems created in subsequent commits can be used for evaluating Lean theorem provers.
53
 
54
  This dataset contains only the training set of the [MATH dataset](https://github.com/hendrycks/math). However, because this dataset contains ProofWiki, the Stacks Project, Trench's Analysis, and Stein's Number Theory, models trained on it cannot be evaluated on the [NaturalProofs dataset](https://github.com/wellecks/naturalproofs).
55
 
56
+ # Data Preprocessing
57
+ This section describes any significant filtering and transformations made to various subsets of the data.
58
+
59
+ ### arXiv.math
60
+ The arXiv.math dataset is large, heterogeneous, and contains a great deal of noise. We used the following heuristics
61
+ when choosing which files from arXiv.math source folders to include in the dataset:
62
+ - Keep only files with a `.tex` extension.
63
+ - Only include files that use either a `utf-8/16/32` or `latin-1` text encoding.
64
+ - Discard files that do not contain a part, chapter, section, sub...section, paragraph, or subparagraph heading.
65
+ - Delete files that contain the keyword `gnuplot`. Gnuplot-latex is an old command line utility that generates blocks
66
+ of entirely unintelligible source.
67
+ - Include only articles in English, as determined by the [langdetect library](https://pypi.org/project/langdetect/). \n",
68
+ "\n",
69
+ - Exclude files shorter than 280 characters (characters counted after substring removal described below).
70
+ In addition, we apply the following transformations to arXiv.math texts:
71
+ - Delete everything outside of `\begin{document}` and `\end{document}`.
72
+ - Delete everything including or after `\Refs`, `\begin{thebibliography}`, or `\begin{bibdiv}`
73
+ - Delete comments.
74
+ - Any more than three consecutive newlines are replaced by three consecutive newlines.
75
+ In [this notebook](https://github.com/zhangir-azerbayev/proof-pile/blob/main/analysis/arxiv_noisedetection.ipynb), we provide an analysis of the prevalence of noisy documents in the arXiv.math subset of the
76
+ proof-pile.
77
+
78
+ ### Stack Exchange
79
+ We only include questions that have at least 5 upvotes and an answer. We format Stack Exchange posts as follows
80
+ ```
81
+ QUESTION [{num_upvotes} upvotes]: {text of question}
82
+
83
+ REPLY [{num_upvotes} votes]: {text of reply}
84
+
85
+ REPLY [{num_upvotes} votes]: {text of reply}
86
+
87
+ .
88
+ .
89
+ .
90
+ ```
91
+
92
+ ### set.mm
93
+ We converted `set.mm` into human-readable form by following the instructions in the [mm-extract repo](https://github.com/zhangir-azerbayev/mm-extract)
94
+
95
  ## Contributions
96
  Authors: Zhangir Azerbayev, Edward Ayers, Bartosz Piotrowski.
97
 
arxiv/0005.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3fa9d6637db3d02b4bcd53644d47873f84e455838bfbcf883cbc450ee55a233c
3
- size 6297457
 
 
 
 
arxiv/0006.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:da8f1258ea77cab44c00cd074f65ac251a2c40795e35969167641a485ae96a2b
3
- size 5030042
 
 
 
 
arxiv/0007.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b5e641db5dec6ada31a9b9d4fefdac382a66efd58069b03a3de0a03aba72cadf
3
- size 4297957
 
 
 
 
arxiv/0008.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:cb93723995dcc25af2dd36e0e5879638e56f2ed9958da25b8d6c7464a83cc196
3
- size 5009609
 
 
 
 
arxiv/0009.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:51031b1b99f606be46f7aaa5089f7b434957a446a60f1032a03428178d5ca079
3
- size 4505207
 
 
 
 
arxiv/0010.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:37949482d1d4744b1e643274daf3c9562cb738a89f0e7d3f725876c5683b6c8e
3
- size 6599193
 
 
 
 
arxiv/0011.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3083cabadf16e68e33e1f6c4ed89bdf861d3c2a2601afe9fd00b71a1e53e48b8
3
- size 5943655
 
 
 
 
arxiv/0012.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:af5c5dd987d317308869091e4664037ba65df3fa3c165292a416157ddf023fc9
3
- size 5850984
 
 
 
 
arxiv/0101.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f294f4ddb6283d27e197caa7789528715fa090aba2f7d04044fc154074a86920
3
- size 5438313
 
 
 
 
arxiv/0102.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b6448060f3588978c4246091ef75c9ceaf16b96bbe99dcc80eab8da14b93d6a1
3
- size 4609964
 
 
 
 
arxiv/0103.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:98e3280536dcb98c0fb55150b4b1ca89accba310645b8aa4053f82f23c73b55e
3
- size 5173885
 
 
 
 
arxiv/0104.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5c50d765f2383ff4188953117084478b21c61e015f10da58ff2c8ae07de70b68
3
- size 5940912
 
 
 
 
arxiv/0105.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:26cfd6673bde636012cb1407181b3b7d0015081599023d350a48e4837a288a9c
3
- size 5472958
 
 
 
 
arxiv/0106.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b408463c19712a892dd56c20bf473a5cbf868c1f9b3798b22633084c1544d257
3
- size 5197709
 
 
 
 
arxiv/0107.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:35534d6882b6e5bfccf2cc7d3023db1da9bb264f9a2cc401adc7d500f9094ce2
3
- size 4765938
 
 
 
 
arxiv/0108.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d744ff9fbb42a0c9cfad109fcdd5985f99329d8dac547ee9141a180151cc23ff
3
- size 4985016
 
 
 
 
arxiv/0109.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:a0285470750f7849364e41e2f507288f6c89d9fab8b702625ec7f307c8d77ac1
3
- size 4547380
 
 
 
 
arxiv/0110.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e5758ee6436697218f04018caa3415b39f5a65d5b959aed2bc7d62ce66506f58
3
- size 7068163
 
 
 
 
arxiv/0111.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:66b7e2d0116d29a0af8cc30c0f887cf519bfe682f890410a74f4e0374b822368
3
- size 7879027
 
 
 
 
arxiv/0112.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:15a6a0dac00bb61d38da4ba800f3bc38a4c2ea27d09e71696a4ee5688ee23b06
3
- size 5936310
 
 
 
 
arxiv/0201.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d50eda6c87edfe6639fae52ae6f7c94be85561c7ccd9a0502ee2bdc3957159e3
3
- size 6783307
 
 
 
 
arxiv/0202.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:677e99ace8476f0bae49f6a7f18f695d2701b20a723025320ba326231d29ccae
3
- size 5664048
 
 
 
 
arxiv/0203.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:68d43ba9116ea84fd702a67d28180e292cb8f204b41f5ce6f9026d3ad7c7e199
3
- size 6351776
 
 
 
 
arxiv/0204.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:2a734117cdef39f1e70aa5d2be2f5310320d044aa2b8b30c0f5303d73fc26688
3
- size 6810959
 
 
 
 
arxiv/0205.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1de6229e56baf101b1d0f7b7990cde67131c65fcd47b4824d9a5afeafcb9f579
3
- size 6534461
 
 
 
 
arxiv/0206.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f146d0fe96af52c297f014b204789403c6e3d0626c359f18e73769346fb9ca23
3
- size 5876759
 
 
 
 
arxiv/0207.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:397a3d72c0e8629d1d43a672e01248c0ba2589a75fa33aabac71235479de4634
3
- size 6297404
 
 
 
 
arxiv/0208.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f88d7518a00d39da8603b03a0c912d20f324d84bdf88b427a136ef9c39a7a2fe
3
- size 5310956
 
 
 
 
arxiv/0209.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ca7a5be1477f60d86fd2c953795bc1033c42792870f3e550e418f5ebc7ca4d6a
3
- size 8501748
 
 
 
 
arxiv/0210.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d53478d80e33b0160fd725584c6b1644ad47809efc7c47a74eace45195b71dc9
3
- size 9502140
 
 
 
 
arxiv/0211.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:16d4feca7436cef569071ea3585174422bb84334275b8c131340d272d223d7e9
3
- size 10025344
 
 
 
 
arxiv/0212.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e2ce05505646bcb58cffb00257d4da4077fbae0df0f713bcacdef44472b3acac
3
- size 8283892
 
 
 
 
arxiv/0301.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5110150efcb60a3f402cdeeaf97f0485007084ae84ed6df889c38a9712538570
3
- size 7498335
 
 
 
 
arxiv/0302.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:743ad88554b0c110632b4f5bf4d150931ffca243f890013f704b83abd8b791ba
3
- size 7053799
 
 
 
 
arxiv/0303.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:69d7aac495143d5a9e31a27a444c441d46f93f3c7fabd0375f4e6d9d2ceb85c0
3
- size 7649426
 
 
 
 
arxiv/0304.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:55edd88a20121ce671de39c697e68761875bb96a03c4b93f473eef2f1fa599cf
3
- size 8800791
 
 
 
 
arxiv/0305.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b57c6c9eca7f5648ef587152a0c6dcf8cb8446c37791bb2c4df840ee20869317
3
- size 8513410
 
 
 
 
arxiv/0306.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:eb061fe509e890993de457fd7fa432bd54da34216ba3feba0152e760f48b2285
3
- size 9239475
 
 
 
 
arxiv/0307.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:77478820d37d42ff7b0f0ff39a4f91da871f9583d0193e23232200e71151d4cb
3
- size 7948662
 
 
 
 
arxiv/0308.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:bf5dfb9ea726af65dd486a4dc657511235a17c60b20114ab48ad678dbf4eac09
3
- size 5958916
 
 
 
 
arxiv/0309.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:85f24dee9dc530b26596447a71e9bf9d41400981b570d2875c24dea3805154f1
3
- size 9336472
 
 
 
 
arxiv/0310.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ebe6de19ef9a46ceab94d6b3a65673a1e9acacc49882145c7372c8e3d6a40799
3
- size 9817064
 
 
 
 
arxiv/0311.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3c56ae685b29088df2f6dc1dab8d6bad365402348e5049382ddbad6e83ec2a42
3
- size 10125149
 
 
 
 
arxiv/0312.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:af08a7f89dca533313e2c718b6b6546bea0761cadb45afe2e579c382e8b7047f
3
- size 11562393
 
 
 
 
arxiv/0401.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:be369cbcf0ff6f4c383e87e7a75dc773ef7b4daba66a73449434b2b8c81fa8a5
3
- size 9201354
 
 
 
 
arxiv/0402.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7951246c28c886e3508b4a5004a98bd2143dee985904f42cbbb81dc7dfc0e9fd
3
- size 9504480
 
 
 
 
arxiv/0403.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:31439971d32f56801b970b5f3fc71d81a4158f4755d2b8ff445312dba58bcba6
3
- size 10060651
 
 
 
 
arxiv/0404.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ca420077fde98a8bca3ef79dc69588e14aeaecc1bb8c6e92248b0db16911df46
3
- size 12173458