The minif2f dataset is a collection of mathematical problems and their formal statements, designed for formal mathematics and theorem proving tasks.
The minif2f dataset contains mathematical problems from various sources (like AMC competitions) along with their formal statements in the Lean theorem prover format. Each example includes both informal mathematical statements and their corresponding formal representations.
The dataset supports the following tasks:
The dataset contains:
Each instance in the dataset contains the following fields:
{
'name': str, # Unique identifier for the problem
'split': str, # Dataset split (train/valid/test)
'informal_prefix': str, # Informal mathematical statement in LaTeX
'formal_statement': str, # Formal statement in Lean syntax
'goal': str, # The goal state to be proved
'header': str # Import statements and configuration
}
Example:
{
"name": "amc12a_2015_p10",
"split": "valid",
"informal_prefix": "/-- Integers $x$ and $y$ with $x>y>0$ satisfy $x+y+xy=80$. What is $x$? ...",
"formal_statement": "theorem amc12a_2015_p10 (x y : ℤ) (h₀ : 0 < y) (h₁ : y < x) (h₂ : x + y + x * y = 80) : x = 26 := by\n",
"goal": "x y : ℤ\nh₀ : 0 < y\nh₁ : y < x\nh₂ : x + y + x * y = 80\n⊢ x = 26",
"header": "import Mathlib\nimport Aesop\n..."
}
The dataset is divided into the following splits:
name: Unique identifier for the mathematical problemsplit: Indicates which split the example belongs toinformal_prefix: The informal mathematical statement in LaTeX formatformal_statement: The formal theorem statement in Lean theorem prover syntaxgoal: The goal state that needs to be provedheader: Required imports and configuration for the formal statementThe problems in this dataset are sourced from various mathematical competitions and problems, including the American Mathematics Competition (AMC).
The formal statements are manually created by experts in formal mathematics, translating informal mathematical problems into the Lean theorem prover format.
mit
@inproceedings{ 2210.12283, title={Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs}, author={Albert Q. Jiang and Sean Welleck and Jin Peng Zhou and Wenda Li and Jiacheng Liu and Mateja Jamnik and Timothée Lacroix and Yuhuai Wu and Guillaume Lample}, booktitle={Submitted to The Eleventh International Conference on Learning Representations}, year={2022}, url={https://arxiv.org/abs/2210.12283} }
@article{lin2024Goedelprover, title={Goedel-Prover: A New Frontier in Automated Theorem Proving}, author={Yong Lin and Shange Tang and Bohan Lyu and Jiayun Wu and Hongzhou Lin and Kaiyu Yang and Jia Li and Mengzhou Xia and Danqi Chen and Sanjeev Arora and Chi Jin}, }
Contributions to the dataset are welcome. Please submit a pull request or open an issue to discuss potential changes or additions.
You can load the dataset using the Hugging Face datasets library:
from datasets import load_dataset
dataset = load_dataset("minif2f")
use community tab
4 commits
The minif2f dataset is a collection of mathematical problems and their formal statements, designed for formal mathematics and theorem proving tasks.
The minif2f dataset contains mathematical problems from various sources (like AMC competitions) along with their formal statements in the Lean theorem prover format. Each example includes both informal mathematical statements and their corresponding formal representations.
The dataset supports the following tasks:
The dataset contains:
Each instance in the dataset contains the following fields:
{
'name': str, # Unique identifier for the problem
'split': str, # Dataset split (train/valid/test)
'informal_prefix': str, # Informal mathematical statement in LaTeX
'formal_statement': str, # Formal statement in Lean syntax
'goal': str, # The goal state to be proved
'header': str # Import statements and configuration
}
Example:
{
"name": "amc12a_2015_p10",
"split": "valid",
"informal_prefix": "/-- Integers $x$ and $y$ with $x>y>0$ satisfy $x+y+xy=80$. What is $x$? ...",
"formal_statement": "theorem amc12a_2015_p10 (x y : ℤ) (h₀ : 0 < y) (h₁ : y < x) (h₂ : x + y + x * y = 80) : x = 26 := by\n",
"goal": "x y : ℤ\nh₀ : 0 < y\nh₁ : y < x\nh₂ : x + y + x * y = 80\n⊢ x = 26",
"header": "import Mathlib\nimport Aesop\n..."
}
The dataset is divided into the following splits:
name: Unique identifier for the mathematical problemsplit: Indicates which split the example belongs toinformal_prefix: The informal mathematical statement in LaTeX formatformal_statement: The formal theorem statement in Lean theorem prover syntaxgoal: The goal state that needs to be provedheader: Required imports and configuration for the formal statementThe problems in this dataset are sourced from various mathematical competitions and problems, including the American Mathematics Competition (AMC).
The formal statements are manually created by experts in formal mathematics, translating informal mathematical problems into the Lean theorem prover format.
mit
@inproceedings{ 2210.12283, title={Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs}, author={Albert Q. Jiang and Sean Welleck and Jin Peng Zhou and Wenda Li and Jiacheng Liu and Mateja Jamnik and Timothée Lacroix and Yuhuai Wu and Guillaume Lample}, booktitle={Submitted to The Eleventh International Conference on Learning Representations}, year={2022}, url={https://arxiv.org/abs/2210.12283} }
@article{lin2024Goedelprover, title={Goedel-Prover: A New Frontier in Automated Theorem Proving}, author={Yong Lin and Shange Tang and Bohan Lyu and Jiayun Wu and Hongzhou Lin and Kaiyu Yang and Jia Li and Mengzhou Xia and Danqi Chen and Sanjeev Arora and Chi Jin}, }
Contributions to the dataset are welcome. Please submit a pull request or open an issue to discuss potential changes or additions.
You can load the dataset using the Hugging Face datasets library:
from datasets import load_dataset
dataset = load_dataset("minif2f")
use community tab
4 commits