jgcb00 commited on
Commit
35fb2d0
·
verified ·
1 Parent(s): 294eb16

Initial release: 185k active-reading artifacts over 18.5k ProofWiki theorems + 54k source docs

Browse files
README.md ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - text-generation
7
+ tags:
8
+ - mathematics
9
+ - theorem-proving
10
+ - lean4
11
+ - synthetic
12
+ - active-reading
13
+ - pretraining
14
+ - annealing
15
+ pretty_name: ProofWiki Active Reading
16
+ size_categories:
17
+ - 100K<n<1M
18
+ configs:
19
+ - config_name: active_reading
20
+ default: true
21
+ data_files:
22
+ - split: train
23
+ path: active_reading/train-*.parquet
24
+ - config_name: proofwiki
25
+ data_files:
26
+ - split: train
27
+ path: proofwiki/train-*.parquet
28
+ ---
29
+
30
+ # ProofWiki Active Reading
31
+
32
+ Synthetic mathematical study material produced by applying the **Active Reading** recipe
33
+ ([Meta, arXiv:2508.09494](https://arxiv.org/abs/2508.09494)) to the full [ProofWiki](https://proofwiki.org) corpus.
34
+
35
+ For every source theorem the generator first invents *document-specific study strategies*,
36
+ then executes each strategy against the source document to produce a **study artifact** —
37
+ a worked numerical verification, a proof-dependency tree, a blind reconstruction, a Lean 4
38
+ signature draft, a tactic-mode skeleton, and so on. The artifacts, not the strategies, are
39
+ the training data.
40
+
41
+ The corpus was built as the `Active-Reading-WikiProof` slice of the math bucket of a 2 T-token
42
+ annealing mix, and is released here as a companion asset to the accompanying tech report.
43
+
44
+ ## Contents
45
+
46
+ | Config | Rows | Description |
47
+ |---|---:|---|
48
+ | `active_reading` (default) | **185,319** | One row per study artifact. 18,532 source theorems × 10 artifacts (2 flavours × 5 strategies). **178.5 M Qwen2.5 tokens.** |
49
+ | `proofwiki` | **54,318** | The parsed ProofWiki source corpus: theorems, definitions, axioms and corollaries with all their proofs, in lightly-cleaned wikitext. |
50
+
51
+ ```python
52
+ from datasets import load_dataset
53
+
54
+ ar = load_dataset("OVHaiLLM/ProofWiki-ActiveReading", "active_reading", split="train")
55
+ pw = load_dataset("OVHaiLLM/ProofWiki-ActiveReading", "proofwiki", split="train")
56
+
57
+ # artifacts join back onto their source document
58
+ ar[0]["doc_id"] # 'proofwiki:Sine_of_Angle_plus_Full_Angle'
59
+ ```
60
+
61
+ ## How it was built
62
+
63
+ A two-stage vLLM pipeline, `google/gemma-4-31b-it` served as
64
+ [`RedHatAI/gemma-4-31B-it-FP8-Dynamic`](https://huggingface.co/RedHatAI/gemma-4-31B-it-FP8-Dynamic)
65
+ for both stages.
66
+
67
+ **Stage 1 — strategy generation.** Each source document is shown to the model twice, once per
68
+ *flavour*, and the model proposes 5 concrete, document-specific study strategies:
69
+
70
+ - **`agnostic`** — general mathematical mastery. The prompt asks for a spread of cognitive
71
+ modes (active recall, paraphrase, working a concrete example, weakening a hypothesis,
72
+ mapping lemma dependencies, comparing proof routes, contrasting with neighbouring theorems,
73
+ building a counter-example).
74
+ - **`lean`** — strategies aimed specifically at the downstream task of formalising the
75
+ statement in **Lean 4 / mathlib4**: drafting a theorem signature with the right typeclasses,
76
+ mapping each prose step to a mathlib lemma, restating the goal with `apply` / `refine`,
77
+ predicting tactics, building a minimal `import` list.
78
+
79
+ **Stage 2 — strategy application.** Each (document, strategy) pair is executed independently,
80
+ yielding one markdown study artifact (≤ 4096 generated tokens).
81
+
82
+ Source-document filter: `kind == theorem`, proof text ≥ 200 characters, document truncated to
83
+ 8000 characters. That selects 18,532 of the 23,936 ProofWiki theorems.
84
+
85
+ The pipeline code lives in the `math_lean.active_reading` package of the training repo
86
+ (`prompts.py`, `pipeline.py`, `client.py`).
87
+
88
+ ## `active_reading` schema
89
+
90
+ | Field | Type | Notes |
91
+ |---|---|---|
92
+ | `id` | string | `{doc_id}#aug{i}`, `i` ∈ 0–9 |
93
+ | `doc_id` | string | joins onto `proofwiki.id` |
94
+ | `title` | string | theorem title |
95
+ | `kind` | string | always `theorem` in this config |
96
+ | `source_url` | string | ProofWiki page |
97
+ | `flavour` | string | `agnostic` (92,660 rows) or `lean` (92,659) |
98
+ | `strategy_index` | int32 | 0–4, position within the flavour's 5 strategies |
99
+ | `strategy_name` | string | model-invented name, e.g. *Dependency Mapping*, *Typeclass and Signature Drafting* |
100
+ | `strategy_body` | string | the stage-1 strategy text that produced this artifact |
101
+ | `text` | string | **the study artifact** — the training text |
102
+ | `n_chars` | int32 | characters in `text` |
103
+ | `token_count` | int32 | Qwen2.5 tokens in `text` |
104
+
105
+ ## `proofwiki` schema
106
+
107
+ | Field | Type | Notes |
108
+ |---|---|---|
109
+ | `id`, `title`, `kind`, `source_url` | string | `kind` ∈ definition (29,079), theorem (23,936), corollary (936), axiom (367) |
110
+ | `statement` | string | wikitext, LaTeX preserved |
111
+ | `proofs` | list&lt;{name, text}&gt; | often several per theorem; empty for most definitions |
112
+ | `n_proofs` | int32 | |
113
+ | `categories`, `wikilinks`, `sources`, `also_known_as` | list&lt;string&gt; | ProofWiki metadata; `sources` holds `{{BookReference}}` citations |
114
+ | `used_for_active_reading` | bool | true for the 18,532 documents that passed the filter |
115
+ | `active_reading_chunk` | string | the exact rendered document text fed to the generator (null otherwise) |
116
+
117
+ ## Statistics
118
+
119
+ - **185,319 artifacts** over **18,532** distinct theorems (one generation failed and is dropped).
120
+ - **178,472,691 Qwen2.5 tokens** — 76.98 M `agnostic` + 101.49 M `lean`. Median artifact 958 tokens.
121
+ - **49,257 distinct strategy names** — strategies are re-invented per document, so the long tail
122
+ is enormous; the head is dominated by recurring shapes:
123
+
124
+ | Strategy | Count |
125
+ |---|---:|
126
+ | Dependency Mapping | 8,577 |
127
+ | Typeclass and Signature Drafting | 7,582 |
128
+ | Hypothesis Stress-Testing | 3,489 |
129
+ | Goal-First Refinement | 2,897 |
130
+ | Minimal Import Identification | 2,045 |
131
+ | Tactic-to-Step Mapping | 1,617 |
132
+ | Concrete Instantiation | 1,407 |
133
+ | Concrete Numerical Verification | 1,291 |
134
+
135
+ ## Known limitations
136
+
137
+ - **The Lean 4 code is mostly not compilable.** In a separate validation pass, 120,801 Lean
138
+ snippets were extracted from the `lean`-flavour artifacts and compiled against Mathlib:
139
+ **10,157 compiled cleanly (8.4 %)**, 7,955 compiled only with `sorry` (6.6 %), and 102,682
140
+ failed (85.0 %). A repair pass over every failing snippet with
141
+ [`Goedel-Prover-V2-32B`](https://huggingface.co/Goedel-LM/Goedel-Prover-V2-32B) recovered
142
+ **none** of them. Treat the `lean`-flavour artifacts as *pedagogical prose about
143
+ formalisation*, useful as pretraining signal, **not** as a verified formal corpus. The
144
+ verification and repair records are not included in this release.
145
+ - Artifacts are model-generated and **not fact-checked**; they can contain incorrect
146
+ mathematics, hallucinated mathlib lemma names, and misattributed dependencies.
147
+ - Only `theorem`-kind documents were augmented. Definitions, axioms and corollaries appear in
148
+ the `proofwiki` config only.
149
+ - Long documents were truncated to 8000 characters before generation, so artifacts for large
150
+ pages may reference only part of the source.
151
+ - The source wikitext is lightly cleaned but still contains ProofWiki markup
152
+ (`{{eqn}}`, `[[…]]`, `<onlyinclude>`), by design — that is what the generator saw.
153
+
154
+ ## Licensing
155
+
156
+ - The `proofwiki` config and all source text are derived from ProofWiki, licensed
157
+ **[CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)**. The whole dataset is
158
+ released under the same licence.
159
+ - The `active_reading` artifacts are outputs of a Gemma model and are additionally subject to
160
+ the [Gemma Terms of Use](https://ai.google.dev/gemma/terms) and Prohibited Use Policy.
161
+
162
+ ## Citation
163
+
164
+ Active Reading recipe:
165
+
166
+ ```bibtex
167
+ @article{activereading2025,
168
+ title = {Learning Facts at Scale with Active Reading},
169
+ journal = {arXiv preprint arXiv:2508.09494},
170
+ year = {2025},
171
+ url = {https://arxiv.org/abs/2508.09494}
172
+ }
173
+ ```
174
+
175
+ Please also credit ProofWiki as the source corpus.
active_reading/train-0000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54c18f48e250afad0e331dc939bb8e8893744614943e159065a9e51d55fdb8e6
3
+ size 18229022
active_reading/train-0001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:825ae36e6157490b611a978939473089ecd9e93e4724ba1bf95897c72ea2b41f
3
+ size 18206809
active_reading/train-0002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7e3a31160238562d00c59d063a01a5f39f56903c200ebf4c0e5934944336e8a
3
+ size 18254780
active_reading/train-0003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6605877514ee6e3d1dacba9158f38755a68ba799a335cade116eb73271df426a
3
+ size 18235908
active_reading/train-0004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14cd42b056aa00a8c3c1251b1932346b45c74405353fc9f08387ce46ebeaed8d
3
+ size 18240393
active_reading/train-0005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79365113008df390efcd65befbef3058cd69b80a2438d29e742e0774fa9c2e33
3
+ size 18151531
active_reading/train-0006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2726b4ac9ec807098af80aabbeb4797b32c5571eb721363660425b7214f764bd
3
+ size 18183880
active_reading/train-0007.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d04a6f52e1fc5cf3d9e747c2cabecf62ec55c5c05fbef8d9e690121755c6db64
3
+ size 18245427
active_reading/train-0008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08feaa73cc471f25a695440be6dc4b40434bb8decfb256950c569ce889ecd361
3
+ size 18199980
active_reading/train-0009.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f78f5b53d72632bbce145980be676ae72a8f63982ef1492a1c0ef533b42a820e
3
+ size 4855361
proofwiki/train-0000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfe5e26c829dc05e4234888c40922aff03452a60cd463e8f2c8bcaae490c6549
3
+ size 4763705
proofwiki/train-0001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9403d097a8b5a873cefee1b394807a02e298bb123cb187ea0ad296cfe774e937
3
+ size 3613478
proofwiki/train-0002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7941c74a67b45fd987100980087eb4b1bff89a33bf6cdd06065799ab9bdb915f
3
+ size 3801446
proofwiki/train-0003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ff894f62636fdd9f7cec620e856be944ddf635989d9f86cd2aef8838fc16a33
3
+ size 3689449
proofwiki/train-0004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cc0106c34feebbb85820d737fa9faf1e15cc2bdd2006b0309f789e44df2f015
3
+ size 2252915
proofwiki/train-0005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:573a7e678007f242a1ae02d902c63242de0c6523fa94565a64b288fce2a993ea
3
+ size 1129697