File size: 1,415 Bytes
7d49431
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---

license: cc-by-sa-3.0
task_categories:
- text-generation
language:
- en
tags:
- mathematics
- proof
- theorem-proving
size_categories:
- 10K<n<100K
---


# ProofWiki Math Problems and Solutions

This dataset pairs theorem statements (**problems**) with their formal proofs (**solutions**) extracted from [ProofWiki](https://proofwiki.org/wiki/Main_Page).

## Fields

| Column | Description |
| --- | --- |
| `id` | Stable row identifier |
| `title` | Theorem title |
| `problem` | Theorem statement with wikilinks resolved |
| `solution` | Proof text with wikilinks resolved |
| `problem_wikitext` | Raw MediaWiki wikitext for the theorem |
| `solution_wikitext` | Raw MediaWiki wikitext for the proof |
| `proof_title` | Proof page title |
| `theorem_url` | Source URL for the theorem |
| `proof_url` | Source URL for the proof |
| `categories` | ProofWiki categories |
| `theorem_references` | Linked pages referenced in the theorem |
| `proof_references` | Linked pages referenced in the proof |

## Source and license

- Source dump: `https://proofwiki.org/xmldump/latest.xml.gz`
- ProofWiki content is licensed under **CC BY-SA 3.0**
- Current build size: **23,640** theorem-proof pairs

## Usage

```python

from datasets import load_from_disk



ds = load_from_disk("data/proofwiki_hf")

print(ds["train"][0]["problem"])

print(ds["train"][0]["solution"])

```