pripro luodian commited on
Commit
5ac5e86
·
0 Parent(s):

Duplicate from lmms-lab/imo-2025

Browse files

Co-authored-by: Bo Li <luodian@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mds filter=lfs diff=lfs merge=lfs -text
13
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
14
+ *.model filter=lfs diff=lfs merge=lfs -text
15
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
16
+ *.npy filter=lfs diff=lfs merge=lfs -text
17
+ *.npz filter=lfs diff=lfs merge=lfs -text
18
+ *.onnx filter=lfs diff=lfs merge=lfs -text
19
+ *.ot filter=lfs diff=lfs merge=lfs -text
20
+ *.parquet filter=lfs diff=lfs merge=lfs -text
21
+ *.pb filter=lfs diff=lfs merge=lfs -text
22
+ *.pickle filter=lfs diff=lfs merge=lfs -text
23
+ *.pkl filter=lfs diff=lfs merge=lfs -text
24
+ *.pt filter=lfs diff=lfs merge=lfs -text
25
+ *.pth filter=lfs diff=lfs merge=lfs -text
26
+ *.rar filter=lfs diff=lfs merge=lfs -text
27
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
28
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar filter=lfs diff=lfs merge=lfs -text
31
+ *.tflite filter=lfs diff=lfs merge=lfs -text
32
+ *.tgz filter=lfs diff=lfs merge=lfs -text
33
+ *.wasm filter=lfs diff=lfs merge=lfs -text
34
+ *.xz filter=lfs diff=lfs merge=lfs -text
35
+ *.zip filter=lfs diff=lfs merge=lfs -text
36
+ *.zst filter=lfs diff=lfs merge=lfs -text
37
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
38
+ # Audio files - uncompressed
39
+ *.pcm filter=lfs diff=lfs merge=lfs -text
40
+ *.sam filter=lfs diff=lfs merge=lfs -text
41
+ *.raw filter=lfs diff=lfs merge=lfs -text
42
+ # Audio files - compressed
43
+ *.aac filter=lfs diff=lfs merge=lfs -text
44
+ *.flac filter=lfs diff=lfs merge=lfs -text
45
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
46
+ *.ogg filter=lfs diff=lfs merge=lfs -text
47
+ *.wav filter=lfs diff=lfs merge=lfs -text
48
+ # Image files - uncompressed
49
+ *.bmp filter=lfs diff=lfs merge=lfs -text
50
+ *.gif filter=lfs diff=lfs merge=lfs -text
51
+ *.png filter=lfs diff=lfs merge=lfs -text
52
+ *.tiff filter=lfs diff=lfs merge=lfs -text
53
+ # Image files - compressed
54
+ *.jpg filter=lfs diff=lfs merge=lfs -text
55
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
56
+ *.webp filter=lfs diff=lfs merge=lfs -text
57
+ # Video files - compressed
58
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
59
+ *.webm filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ .venv/
2025_eng.pdf ADDED
Binary file (79.2 kB). View file
 
README.md ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ dataset_info:
3
+ features:
4
+ - name: id
5
+ dtype: string
6
+ - name: problem
7
+ dtype: string
8
+ - name: solution
9
+ dtype: string
10
+ splits:
11
+ - name: train
12
+ num_examples: 6
13
+ license: mit
14
+ language:
15
+ - en
16
+ tags:
17
+ - mathematics
18
+ - olympiad
19
+ - problem-solving
20
+ - competition-math
21
+ ---
22
+
23
+ # IMO 2025 Problems Dataset
24
+
25
+ This dataset contains the 6 problems from the 2025 International Mathematical Olympiad (IMO). The problems are formatted with proper LaTeX notation for mathematical expressions.
26
+
27
+ ## Dataset Structure
28
+
29
+ Each example contains:
30
+ - `id`: Problem identifier (e.g., "2025-imo-p1")
31
+ - `problem`: The problem statement with LaTeX mathematical notation
32
+ - `solution`: The solution (currently set to null)
33
+
34
+ ## Problem Types
35
+
36
+ The dataset includes problems covering various mathematical areas:
37
+
38
+ 1. **Problem 1**: Combinatorial geometry (sunny lines)
39
+ 2. **Problem 2**: Euclidean geometry (circles and triangles)
40
+ 3. **Problem 3**: Number theory (bonza functions)
41
+ 4. **Problem 4**: Number theory (proper divisors and sequences)
42
+ 5. **Problem 5**: Game theory (inekoalaty game)
43
+ 6. **Problem 6**: Combinatorial geometry (grid tiling)
44
+
45
+ ## Mathematical Notation
46
+
47
+ Mathematical expressions are formatted using LaTeX:
48
+ - Variables and expressions: `$x$`, `$n \geq 3$`
49
+ - Display equations: `$$f(a) \text{ divides } b^a - f(b)^{f(a)}$$`
50
+ - Sets: `$\mathbb{N}$`, `$\mathbb{R}$`
51
+ - Special formatting: *sunny*, *bonza*, *proper divisor*, *inekoalaty game*
52
+
53
+ ## Files
54
+
55
+ - `imo_2025.json`: Full dataset in JSON format
56
+ - `README.md`: This file
57
+
58
+ ## Usage
59
+
60
+ ```python
61
+ from datasets import load_dataset
62
+
63
+ # Load the dataset
64
+ dataset = load_dataset("lmms-lab/imo-2025")
65
+
66
+ # Access individual problems
67
+ for problem in dataset['train']:
68
+ print(f"Problem: {problem['id']}")
69
+ print(f"Statement: {problem['problem']}")
70
+ print()
71
+ ```
72
+
73
+ Or load directly from JSON:
74
+
75
+ ```python
76
+ import json
77
+
78
+ # Load from JSON
79
+ with open("imo_2025.json", "r") as f:
80
+ problems = json.load(f)
81
+
82
+ # Access problems
83
+ for problem in problems:
84
+ print(f"ID: {problem['id']}")
85
+ print(f"Problem: {problem['problem']}")
86
+ print(f"Solution: {problem['solution']}")
87
+ print()
88
+ ```
89
+
90
+ ## Citation
91
+
92
+ If you use this dataset in your research, please cite:
93
+
94
+ ```bibtex
95
+ @dataset{imo2025,
96
+ title={IMO 2025 Problems Dataset},
97
+ author={LMMS Lab},
98
+ year={2025},
99
+ url={https://huggingface.co/datasets/lmms-lab/imo-2025}
100
+ }
101
+ ```
102
+
103
+ ## Source
104
+
105
+ Problems are from the 2025 International Mathematical Olympiad.
106
+ Original source: https://www.imo-official.org/problems.aspx
107
+
108
+ ## License
109
+
110
+ This dataset is released under the MIT License.
convert.py ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pathlib import Path
2
+ from pydantic import BaseModel
3
+ import json
4
+
5
+ MARKDOWN_DIR = Path("markdown")
6
+
7
+ class Problem(BaseModel):
8
+ year: str
9
+ problem_id: str
10
+ problem: str
11
+ solution: str | None
12
+
13
+ def to_dict(self):
14
+ return {
15
+ "id": f"{self.year}-imo-{self.problem_id}",
16
+ "problem": self.problem,
17
+ "solution": self.solution
18
+ }
19
+
20
+ def get_problem(year: str, problem_id: str, problem_dir: Path):
21
+ problem_file = problem_dir / "problem.md"
22
+ solution_file = problem_dir / "solution.md"
23
+ with open(problem_file, "r", encoding="utf-8") as f:
24
+ problem = f.read()
25
+ if solution_file.exists():
26
+ with open(solution_file, "r", encoding="utf-8") as f:
27
+ solution = f.read()
28
+ else:
29
+ solution = None
30
+ return Problem(year=year, problem_id=problem_id, problem=problem, solution=solution)
31
+
32
+ def convert_problems():
33
+ result = []
34
+ for year_dir in MARKDOWN_DIR.iterdir():
35
+ if not year_dir.is_dir():
36
+ continue
37
+ year = year_dir.name
38
+ for problem_dir in year_dir.iterdir():
39
+ if not problem_dir.is_dir():
40
+ continue
41
+ problem_number = problem_dir.name
42
+ result.append(get_problem(year, problem_number, problem_dir).to_dict())
43
+ result.sort(key=lambda x: x["id"])
44
+ return result
45
+
46
+ if __name__ == "__main__":
47
+ result = convert_problems()
48
+ with open("imo_2025.json", "w", encoding="utf-8") as f:
49
+ json.dump(result, f)
imo_2025.json ADDED
@@ -0,0 +1 @@
 
 
1
+ [{"id": "2025-imo-p1", "problem": "A line in the plane is called *sunny* if it is **not** parallel to any of the $x$-axis, the $y$-axis, and the line $x + y = 0$.\n\nLet $n \\geq 3$ be a given integer. Determine all nonnegative integers $k$ such that there exist $n$ distinct lines in the plane satisfying both of the following:\n\n* for all positive integers $a$ and $b$ with $a + b \\leq n + 1$, the point $(a, b)$ is on at least one of the lines; and\n* exactly $k$ of the $n$ lines are sunny.\n", "solution": null}, {"id": "2025-imo-p2", "problem": "Let $\\Omega$ and $\\Gamma$ be circles with centres $M$ and $N$, respectively, such that the radius of $\\Omega$ is less than the radius of $\\Gamma$. Suppose circles $\\Omega$ and $\\Gamma$ intersect at two distinct points $A$ and $B$. Line $MN$ intersects $\\Omega$ at $C$ and $\\Gamma$ at $D$, such that points $C, M, N$ and $D$ lie on the line in that order. Let $P$ be the circumcentre of triangle $ACD$. Line $AP$ intersects $\\Omega$ again at $E \\neq A$. Line $AP$ intersects $\\Gamma$ again at $F \\neq A$. Let $H$ be the orthocentre of triangle $PMN$.\n\nProve that the line through $H$ parallel to $AP$ is tangent to the circumcircle of triangle $BEF$.\n\n(The *orthocentre* of a triangle is the point of intersection of its altitudes.)\n", "solution": null}, {"id": "2025-imo-p3", "problem": "Let $\\mathbb{N}$ denote the set of positive integers. A function $f: \\mathbb{N} \\to \\mathbb{N}$ is said to be *bonza* if\n\n$$f(a) \\text{ divides } b^a - f(b)^{f(a)}$$\n\nfor all positive integers $a$ and $b$.\n\nDetermine the smallest real constant $c$ such that $f(n) \\leq cn$ for all bonza functions $f$ and all positive integers $n$.\n", "solution": null}, {"id": "2025-imo-p4", "problem": "A *proper divisor* of a positive integer $N$ is a positive divisor of $N$ other than $N$ itself.\n\nThe infinite sequence $a_1, a_2, \\ldots$ consists of positive integers, each of which has at least three proper divisors.\n\nFor each $n \\geq 1$, the integer $a_{n+1}$ is the sum of the three largest proper divisors of $a_n$.\n\nDetermine all possible values of $a_1$.\n", "solution": null}, {"id": "2025-imo-p5", "problem": "Alice and Bazza are playing the *inekoalaty game*, a two-player game whose rules depend on a positive real number $\\lambda$ which is known to both players. On the $n^{\\text{th}}$ turn of the game (starting with $n = 1$) the following happens:\n\n- If $n$ is odd, Alice chooses a nonnegative real number $x_n$ such that\n\n$$x_1 + x_2 + \\cdots + x_n \\leq \\lambda n.$$\n\n- If $n$ is even, Bazza chooses a nonnegative real number $x_n$ such that\n\n$$x_1^2 + x_2^2 + \\cdots + x_n^2 \\leq n.$$\n\nIf a player cannot choose a suitable number $x_n$, the game ends and the other player wins. If the game goes on forever, neither player wins. All chosen numbers are known to both players.\n\nDetermine all values of $\\lambda$ for which Alice has a winning strategy and all those for which Bazza has a winning strategy.\n", "solution": null}, {"id": "2025-imo-p6", "problem": "Consider a $2025 \\times 2025$ grid of unit squares. Matilda wishes to place on the grid some rectangular tiles, possibly of different sizes, such that each side of every tile lies on a grid line and every unit square is covered by at most one tile.\n\nDetermine the minimum number of tiles Matilda needs to place to satisfy these conditions.", "solution": null}]
markdown/2025/p1/problem.md ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ A line in the plane is called *sunny* if it is **not** parallel to any of the $x$-axis, the $y$-axis, and the line $x + y = 0$.
2
+
3
+ Let $n \geq 3$ be a given integer. Determine all nonnegative integers $k$ such that there exist $n$ distinct lines in the plane satisfying both of the following:
4
+
5
+ * for all positive integers $a$ and $b$ with $a + b \leq n + 1$, the point $(a, b)$ is on at least one of the lines; and
6
+ * exactly $k$ of the $n$ lines are sunny.
markdown/2025/p2/problem.md ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Let $\Omega$ and $\Gamma$ be circles with centres $M$ and $N$, respectively, such that the radius of $\Omega$ is less than the radius of $\Gamma$. Suppose circles $\Omega$ and $\Gamma$ intersect at two distinct points $A$ and $B$. Line $MN$ intersects $\Omega$ at $C$ and $\Gamma$ at $D$, such that points $C, M, N$ and $D$ lie on the line in that order. Let $P$ be the circumcentre of triangle $ACD$. Line $AP$ intersects $\Omega$ again at $E \neq A$. Line $AP$ intersects $\Gamma$ again at $F \neq A$. Let $H$ be the orthocentre of triangle $PMN$.
2
+
3
+ Prove that the line through $H$ parallel to $AP$ is tangent to the circumcircle of triangle $BEF$.
4
+
5
+ (The *orthocentre* of a triangle is the point of intersection of its altitudes.)
markdown/2025/p3/problem.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ Let $\mathbb{N}$ denote the set of positive integers. A function $f: \mathbb{N} \to \mathbb{N}$ is said to be *bonza* if
2
+
3
+ $$f(a) \text{ divides } b^a - f(b)^{f(a)}$$
4
+
5
+ for all positive integers $a$ and $b$.
6
+
7
+ Determine the smallest real constant $c$ such that $f(n) \leq cn$ for all bonza functions $f$ and all positive integers $n$.
markdown/2025/p4/problem.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ A *proper divisor* of a positive integer $N$ is a positive divisor of $N$ other than $N$ itself.
2
+
3
+ The infinite sequence $a_1, a_2, \ldots$ consists of positive integers, each of which has at least three proper divisors.
4
+
5
+ For each $n \geq 1$, the integer $a_{n+1}$ is the sum of the three largest proper divisors of $a_n$.
6
+
7
+ Determine all possible values of $a_1$.
markdown/2025/p5/problem.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Alice and Bazza are playing the *inekoalaty game*, a two-player game whose rules depend on a positive real number $\lambda$ which is known to both players. On the $n^{\text{th}}$ turn of the game (starting with $n = 1$) the following happens:
2
+
3
+ - If $n$ is odd, Alice chooses a nonnegative real number $x_n$ such that
4
+
5
+ $$x_1 + x_2 + \cdots + x_n \leq \lambda n.$$
6
+
7
+ - If $n$ is even, Bazza chooses a nonnegative real number $x_n$ such that
8
+
9
+ $$x_1^2 + x_2^2 + \cdots + x_n^2 \leq n.$$
10
+
11
+ If a player cannot choose a suitable number $x_n$, the game ends and the other player wins. If the game goes on forever, neither player wins. All chosen numbers are known to both players.
12
+
13
+ Determine all values of $\lambda$ for which Alice has a winning strategy and all those for which Bazza has a winning strategy.
markdown/2025/p6/problem.md ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ Consider a $2025 \times 2025$ grid of unit squares. Matilda wishes to place on the grid some rectangular tiles, possibly of different sizes, such that each side of every tile lies on a grid line and every unit square is covered by at most one tile.
2
+
3
+ Determine the minimum number of tiles Matilda needs to place to satisfy these conditions.
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ pydantic>=2.11.7