Download data/real-analysis/train.jsonl from RenaissanceLabsEU/math: direct link, hf CLI and curl.
- Browser
- Download file 122 kB
-
https://huggingface.co/datasets/RenaissanceLabsEU/math/resolve/main/data/real-analysis/train.jsonl
- Command line
-
hf download hf://datasets/RenaissanceLabsEU/math/data/real-analysis/train.jsonl
-
curl -L -o train.jsonl https://huggingface.co/datasets/RenaissanceLabsEU/math/resolve/main/data/real-analysis/train.jsonl
122 kB
| {"id": "real-analysis-continuity-d1-t0000", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 1, "seed": 0, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = 7x - 5\\) is continuous at \\(x_0 = -2\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of a linear function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (-2 : ℝ)| < δ → |((7 : ℝ) * x + (-5 : ℝ)) - ((7 : ℝ) * (-2 : ℝ) + (-5 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d1-t0000"} | |
| {"id": "real-analysis-limit_sequence-d1-t0001", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 1, "seed": 1, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that the sequence \\(u_n = \\dfrac{7}{n + 8}\\) tends to \\(0\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|u_n - 0| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence tends to 0 (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |(7 : ℝ) / ((n : ℝ) + (8 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d1-t0001"} | |
| {"id": "real-analysis-sequence_bounds-d1-t0002", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 1, "seed": 2, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = \\frac{3}{2}\\) and \\(a_{n+1} = \\frac{a_n}{2} + 1\\). Prove that \\(0 \\le a_n \\le 2\\) for every \\(n\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (3 / 2 : ℝ)\n | (n + 1) => a n / 2 + (1 : ℝ)\n\n/-- The sequence stays between 0 and its upper bound. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (2 : ℝ) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d1-t0002"} | |
| {"id": "real-analysis-uniform_bounds-d1-t0003", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 1, "seed": 3, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that for every natural number \\(n\\) and every real \\(x\\) with \\(-\\frac{2}{3} \\le x \\le \\frac{2}{3}\\), \\[|8\\,x^{n+1}| \\le 8 \\cdot \\frac{2}{3}^{n+1}.\\]\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A bound that does not depend on the point x. -/\ntheorem uniform_bound :\n ∀ n : ℕ, ∀ x ∈ Set.Icc (-(2 / 3 : ℝ)) (2 / 3 : ℝ), |8 * x ^ (n + 1)| ≤ 8 * (2 / 3 : ℝ) ^ (n + 1) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d1-t0003"} | |
| {"id": "real-analysis-continuity-d2-t0004", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 2, "seed": 4, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = 2x^2 - 2\\) is continuous at \\(x_0 = 2\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\). Do not use any continuity lemma from the library.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of a quadratic function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (2 : ℝ)| < δ → |((2 : ℝ) * x ^ 2 + (-2 : ℝ)) - ((2 : ℝ) * (2 : ℝ) ^ 2 + (-2 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d2-t0004"} | |
| {"id": "real-analysis-limit_sequence-d2-t0005", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 2, "seed": 5, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{-5n + 2}{2n + 9}\\) tends to \\(\\dfrac{-5}{2}\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(\\left|u_n - \\frac{-5}{2}\\right| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence converges to a/c (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |((-5 : ℝ) * (n : ℝ) + (2 : ℝ)) / ((2 : ℝ) * (n : ℝ) + (9 : ℝ)) - (-5 : ℝ) / (2 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d2-t0005"} | |
| {"id": "real-analysis-sequence_bounds-d2-t0006", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 2, "seed": 6, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = \\frac{21}{4}\\) and \\(a_{n+1} = \\frac{a_n}{2} + \\frac{7}{2}\\). Prove that \\(0 \\le a_n \\le 7\\) for every \\(n\\), and then that the sequence is monotone (non-decreasing).\n\n## What to do\n\n`Solution.lean` in the working directory states 2 theorems in Lean 4 with Mathlib, with `sorry` in place of each proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is the share of the 2 theorems that are proved. If the file does not compile the reward is 0, so leave `sorry` on a theorem you cannot finish rather than a broken proof.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (21 / 4 : ℝ)\n | (n + 1) => a n / 2 + (7 / 2 : ℝ)\n\n/-- The sequence stays between 0 and its upper bound. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (7 : ℝ) := by\n sorry\n\n/-- The sequence is increasing. -/\ntheorem a_monotone :\n Monotone a := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d2-t0006"} | |
| {"id": "real-analysis-uniform_bounds-d2-t0007", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 2, "seed": 7, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that for every natural number \\(n\\) and every real \\(x\\) with \\(0 \\le x \\le \\frac{1}{2}\\), \\[\\sum_{i=0}^{n-1} x^{i} \\le \\frac{1}{1 - \\frac{1}{2}}.\\] The sum is empty when \\(n = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A bound on partial geometric sums that does not depend on n or x. -/\ntheorem uniform_bound :\n ∀ n : ℕ, ∀ x ∈ Set.Icc (0 : ℝ) (1 / 2 : ℝ), ∑ i ∈ Finset.range n, x ^ i ≤ 1 / (1 - (1 / 2 : ℝ)) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d2-t0007"} | |
| {"id": "real-analysis-continuity-d3-t0008", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 3, "seed": 8, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = \\dfrac{3}{x}\\) is continuous at \\(x_0 = 1\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\). Here \\(x\\) ranges over all real numbers (in Lean, division by 0 gives 0, which does not matter for small \\(\\delta\\)).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of the reciprocal function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (1 : ℝ)| < δ → |(3 : ℝ) / x - (3 : ℝ) / (1 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d3-t0008"} | |
| {"id": "real-analysis-limit_sequence-d3-t0009", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 3, "seed": 9, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{5n + 5}{n^2 + 5}\\) tends to \\(0\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|u_n - 0| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence tends to 0 (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |((5 : ℝ) * (n : ℝ) + (5 : ℝ)) / ((n : ℝ) ^ 2 + (5 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d3-t0009"} | |
| {"id": "real-analysis-sequence_bounds-d3-t0010", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 3, "seed": 10, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = \\frac{2}{5}\\) and \\(a_{n+1} = \\dfrac{a_n^2 + \\frac{24}{25}}{2}\\). Prove that \\(0 \\le a_n \\le \\frac{4}{5}\\) for every \\(n\\) (note that \\(\\frac{4}{5}\\) is a fixed point of the recursion), and then that the sequence is monotone (non-decreasing).\n\n## What to do\n\n`Solution.lean` in the working directory states 2 theorems in Lean 4 with Mathlib, with `sorry` in place of each proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is the share of the 2 theorems that are proved. If the file does not compile the reward is 0, so leave `sorry` on a theorem you cannot finish rather than a broken proof.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (2 / 5 : ℝ)\n | (n + 1) => (a n ^ 2 + (24 / 25 : ℝ)) / 2\n\n/-- The sequence stays between 0 and the smaller fixed point. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (4 / 5 : ℝ) := by\n sorry\n\n/-- The sequence is increasing. -/\ntheorem a_monotone :\n Monotone a := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d3-t0010"} | |
| {"id": "real-analysis-uniform_bounds-d3-t0011", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 3, "seed": 11, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that \\(c\\,x^n\\) with \\(c = 1\\) tends to \\(0\\) uniformly on \\([-\\frac{1}{3}, \\frac{1}{3}]\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|1\\,x^n| < \\varepsilon\\) for all \\(n \\ge N\\) and all real \\(x\\) with \\(|x| \\le \\frac{1}{3}\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Uniform convergence of a geometric sequence on an interval. -/\ntheorem uniform_convergence :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, ∀ x : ℝ, |x| ≤ (1 / 3 : ℝ) → |1 * x ^ n| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d3-t0011"} | |
| {"id": "real-analysis-continuity-d1-t0012", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 1, "seed": 12, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = -x + 5\\) is continuous at \\(x_0 = 0\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of a linear function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (0 : ℝ)| < δ → |((-1 : ℝ) * x + (5 : ℝ)) - ((-1 : ℝ) * (0 : ℝ) + (5 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d1-t0012"} | |
| {"id": "real-analysis-limit_sequence-d1-t0013", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 1, "seed": 13, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that the sequence \\(u_n = \\dfrac{4}{n + 2}\\) tends to \\(0\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|u_n - 0| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence tends to 0 (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |(4 : ℝ) / ((n : ℝ) + (2 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d1-t0013"} | |
| {"id": "real-analysis-sequence_bounds-d1-t0014", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 1, "seed": 14, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = 0\\) and \\(a_{n+1} = \\frac{a_n}{2} + \\frac{5}{2}\\). Prove that \\(0 \\le a_n \\le 5\\) for every \\(n\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (0 : ℝ)\n | (n + 1) => a n / 2 + (5 / 2 : ℝ)\n\n/-- The sequence stays between 0 and its upper bound. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (5 : ℝ) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d1-t0014"} | |
| {"id": "real-analysis-uniform_bounds-d1-t0015", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 1, "seed": 15, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that for every natural number \\(n\\) and every real \\(x\\) with \\(-\\frac{2}{5} \\le x \\le \\frac{2}{5}\\), \\[|3\\,x^{n+1}| \\le 3 \\cdot \\frac{2}{5}^{n+1}.\\]\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A bound that does not depend on the point x. -/\ntheorem uniform_bound :\n ∀ n : ℕ, ∀ x ∈ Set.Icc (-(2 / 5 : ℝ)) (2 / 5 : ℝ), |3 * x ^ (n + 1)| ≤ 3 * (2 / 5 : ℝ) ^ (n + 1) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d1-t0015"} | |
| {"id": "real-analysis-continuity-d2-t0016", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 2, "seed": 16, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = -3x^2 + 2\\) is continuous at \\(x_0 = 3\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\). Do not use any continuity lemma from the library.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of a quadratic function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (3 : ℝ)| < δ → |((-3 : ℝ) * x ^ 2 + (2 : ℝ)) - ((-3 : ℝ) * (3 : ℝ) ^ 2 + (2 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d2-t0016"} | |
| {"id": "real-analysis-limit_sequence-d2-t0017", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 2, "seed": 17, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{3n + 2}{n + 7}\\) tends to \\(\\dfrac{3}{1}\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(\\left|u_n - \\frac{3}{1}\\right| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence converges to a/c (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |((3 : ℝ) * (n : ℝ) + (2 : ℝ)) / ((1 : ℝ) * (n : ℝ) + (7 : ℝ)) - (3 : ℝ) / (1 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d2-t0017"} | |
| {"id": "real-analysis-sequence_bounds-d2-t0018", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 2, "seed": 18, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = \\frac{3}{2}\\) and \\(a_{n+1} = \\frac{a_n}{2} + 3\\). Prove that \\(0 \\le a_n \\le 6\\) for every \\(n\\), and then that the sequence is monotone (non-decreasing).\n\n## What to do\n\n`Solution.lean` in the working directory states 2 theorems in Lean 4 with Mathlib, with `sorry` in place of each proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is the share of the 2 theorems that are proved. If the file does not compile the reward is 0, so leave `sorry` on a theorem you cannot finish rather than a broken proof.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (3 / 2 : ℝ)\n | (n + 1) => a n / 2 + (3 : ℝ)\n\n/-- The sequence stays between 0 and its upper bound. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (6 : ℝ) := by\n sorry\n\n/-- The sequence is increasing. -/\ntheorem a_monotone :\n Monotone a := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d2-t0018"} | |
| {"id": "real-analysis-uniform_bounds-d2-t0019", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 2, "seed": 19, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that for every natural number \\(n\\) and every real \\(x\\) with \\(0 \\le x \\le \\frac{1}{4}\\), \\[\\sum_{i=0}^{n-1} x^{i} \\le \\frac{1}{1 - \\frac{1}{4}}.\\] The sum is empty when \\(n = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A bound on partial geometric sums that does not depend on n or x. -/\ntheorem uniform_bound :\n ∀ n : ℕ, ∀ x ∈ Set.Icc (0 : ℝ) (1 / 4 : ℝ), ∑ i ∈ Finset.range n, x ^ i ≤ 1 / (1 - (1 / 4 : ℝ)) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d2-t0019"} | |
| {"id": "real-analysis-continuity-d3-t0020", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 3, "seed": 20, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = \\dfrac{6}{x}\\) is continuous at \\(x_0 = 4\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\). Here \\(x\\) ranges over all real numbers (in Lean, division by 0 gives 0, which does not matter for small \\(\\delta\\)).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of the reciprocal function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (4 : ℝ)| < δ → |(6 : ℝ) / x - (6 : ℝ) / (4 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d3-t0020"} | |
| {"id": "real-analysis-limit_sequence-d3-t0021", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 3, "seed": 21, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{3n + 2}{n^2 + 5}\\) tends to \\(0\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|u_n - 0| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence tends to 0 (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |((3 : ℝ) * (n : ℝ) + (2 : ℝ)) / ((n : ℝ) ^ 2 + (5 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d3-t0021"} | |
| {"id": "real-analysis-sequence_bounds-d3-t0022", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 3, "seed": 22, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = \\frac{2}{15}\\) and \\(a_{n+1} = \\dfrac{a_n^2 + \\frac{16}{25}}{2}\\). Prove that \\(0 \\le a_n \\le \\frac{2}{5}\\) for every \\(n\\) (note that \\(\\frac{2}{5}\\) is a fixed point of the recursion), and then that the sequence is monotone (non-decreasing).\n\n## What to do\n\n`Solution.lean` in the working directory states 2 theorems in Lean 4 with Mathlib, with `sorry` in place of each proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is the share of the 2 theorems that are proved. If the file does not compile the reward is 0, so leave `sorry` on a theorem you cannot finish rather than a broken proof.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (2 / 15 : ℝ)\n | (n + 1) => (a n ^ 2 + (16 / 25 : ℝ)) / 2\n\n/-- The sequence stays between 0 and the smaller fixed point. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (2 / 5 : ℝ) := by\n sorry\n\n/-- The sequence is increasing. -/\ntheorem a_monotone :\n Monotone a := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d3-t0022"} | |
| {"id": "real-analysis-uniform_bounds-d3-t0023", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 3, "seed": 23, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that \\(c\\,x^n\\) with \\(c = 2\\) tends to \\(0\\) uniformly on \\([-\\frac{1}{2}, \\frac{1}{2}]\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|2\\,x^n| < \\varepsilon\\) for all \\(n \\ge N\\) and all real \\(x\\) with \\(|x| \\le \\frac{1}{2}\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Uniform convergence of a geometric sequence on an interval. -/\ntheorem uniform_convergence :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, ∀ x : ℝ, |x| ≤ (1 / 2 : ℝ) → |2 * x ^ n| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d3-t0023"} | |
| {"id": "real-analysis-continuity-d1-t0024", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 1, "seed": 24, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = 7x - 1\\) is continuous at \\(x_0 = -4\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of a linear function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (-4 : ℝ)| < δ → |((7 : ℝ) * x + (-1 : ℝ)) - ((7 : ℝ) * (-4 : ℝ) + (-1 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d1-t0024"} | |
| {"id": "real-analysis-limit_sequence-d1-t0025", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 1, "seed": 25, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that the sequence \\(u_n = \\dfrac{6}{n + 4}\\) tends to \\(0\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|u_n - 0| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence tends to 0 (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |(6 : ℝ) / ((n : ℝ) + (4 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d1-t0025"} | |
| {"id": "real-analysis-sequence_bounds-d1-t0026", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 1, "seed": 26, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = 3\\) and \\(a_{n+1} = \\frac{a_n}{2} + 3\\). Prove that \\(0 \\le a_n \\le 6\\) for every \\(n\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (3 : ℝ)\n | (n + 1) => a n / 2 + (3 : ℝ)\n\n/-- The sequence stays between 0 and its upper bound. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (6 : ℝ) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d1-t0026"} | |
| {"id": "real-analysis-uniform_bounds-d1-t0027", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 1, "seed": 27, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that for every natural number \\(n\\) and every real \\(x\\) with \\(-\\frac{2}{3} \\le x \\le \\frac{2}{3}\\), \\[|9\\,x^{n+1}| \\le 9 \\cdot \\frac{2}{3}^{n+1}.\\]\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A bound that does not depend on the point x. -/\ntheorem uniform_bound :\n ∀ n : ℕ, ∀ x ∈ Set.Icc (-(2 / 3 : ℝ)) (2 / 3 : ℝ), |9 * x ^ (n + 1)| ≤ 9 * (2 / 3 : ℝ) ^ (n + 1) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d1-t0027"} | |
| {"id": "real-analysis-continuity-d2-t0028", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 2, "seed": 28, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = 6x^2 + 4\\) is continuous at \\(x_0 = 2\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\). Do not use any continuity lemma from the library.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of a quadratic function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (2 : ℝ)| < δ → |((6 : ℝ) * x ^ 2 + (4 : ℝ)) - ((6 : ℝ) * (2 : ℝ) ^ 2 + (4 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d2-t0028"} | |
| {"id": "real-analysis-limit_sequence-d2-t0029", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 2, "seed": 29, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{4n + 9}{4n + 2}\\) tends to \\(\\dfrac{4}{4}\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(\\left|u_n - \\frac{4}{4}\\right| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence converges to a/c (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |((4 : ℝ) * (n : ℝ) + (9 : ℝ)) / ((4 : ℝ) * (n : ℝ) + (2 : ℝ)) - (4 : ℝ) / (4 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d2-t0029"} | |
| {"id": "real-analysis-sequence_bounds-d2-t0030", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 2, "seed": 30, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = \\frac{5}{2}\\) and \\(a_{n+1} = \\frac{a_n}{2} + \\frac{5}{3}\\). Prove that \\(0 \\le a_n \\le \\frac{10}{3}\\) for every \\(n\\), and then that the sequence is monotone (non-decreasing).\n\n## What to do\n\n`Solution.lean` in the working directory states 2 theorems in Lean 4 with Mathlib, with `sorry` in place of each proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is the share of the 2 theorems that are proved. If the file does not compile the reward is 0, so leave `sorry` on a theorem you cannot finish rather than a broken proof.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (5 / 2 : ℝ)\n | (n + 1) => a n / 2 + (5 / 3 : ℝ)\n\n/-- The sequence stays between 0 and its upper bound. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (10 / 3 : ℝ) := by\n sorry\n\n/-- The sequence is increasing. -/\ntheorem a_monotone :\n Monotone a := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d2-t0030"} | |
| {"id": "real-analysis-uniform_bounds-d2-t0031", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 2, "seed": 31, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that for every natural number \\(n\\) and every real \\(x\\) with \\(0 \\le x \\le \\frac{2}{5}\\), \\[\\sum_{i=0}^{n-1} x^{i} \\le \\frac{1}{1 - \\frac{2}{5}}.\\] The sum is empty when \\(n = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A bound on partial geometric sums that does not depend on n or x. -/\ntheorem uniform_bound :\n ∀ n : ℕ, ∀ x ∈ Set.Icc (0 : ℝ) (2 / 5 : ℝ), ∑ i ∈ Finset.range n, x ^ i ≤ 1 / (1 - (2 / 5 : ℝ)) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d2-t0031"} | |
| {"id": "real-analysis-continuity-d3-t0032", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 3, "seed": 32, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = \\dfrac{3}{x}\\) is continuous at \\(x_0 = 2\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\). Here \\(x\\) ranges over all real numbers (in Lean, division by 0 gives 0, which does not matter for small \\(\\delta\\)).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of the reciprocal function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (2 : ℝ)| < δ → |(3 : ℝ) / x - (3 : ℝ) / (2 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d3-t0032"} | |
| {"id": "real-analysis-limit_sequence-d3-t0033", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 3, "seed": 33, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{2n + 2}{n^2 + 6}\\) tends to \\(0\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|u_n - 0| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence tends to 0 (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |((2 : ℝ) * (n : ℝ) + (2 : ℝ)) / ((n : ℝ) ^ 2 + (6 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d3-t0033"} | |
| {"id": "real-analysis-sequence_bounds-d3-t0034", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 3, "seed": 34, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = \\frac{1}{8}\\) and \\(a_{n+1} = \\dfrac{a_n^2 + \\frac{7}{16}}{2}\\). Prove that \\(0 \\le a_n \\le \\frac{1}{4}\\) for every \\(n\\) (note that \\(\\frac{1}{4}\\) is a fixed point of the recursion), and then that the sequence is monotone (non-decreasing).\n\n## What to do\n\n`Solution.lean` in the working directory states 2 theorems in Lean 4 with Mathlib, with `sorry` in place of each proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is the share of the 2 theorems that are proved. If the file does not compile the reward is 0, so leave `sorry` on a theorem you cannot finish rather than a broken proof.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (1 / 8 : ℝ)\n | (n + 1) => (a n ^ 2 + (7 / 16 : ℝ)) / 2\n\n/-- The sequence stays between 0 and the smaller fixed point. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (1 / 4 : ℝ) := by\n sorry\n\n/-- The sequence is increasing. -/\ntheorem a_monotone :\n Monotone a := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d3-t0034"} | |
| {"id": "real-analysis-uniform_bounds-d3-t0035", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 3, "seed": 35, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that \\(c\\,x^n\\) with \\(c = 8\\) tends to \\(0\\) uniformly on \\([-\\frac{4}{5}, \\frac{4}{5}]\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|8\\,x^n| < \\varepsilon\\) for all \\(n \\ge N\\) and all real \\(x\\) with \\(|x| \\le \\frac{4}{5}\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Uniform convergence of a geometric sequence on an interval. -/\ntheorem uniform_convergence :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, ∀ x : ℝ, |x| ≤ (4 / 5 : ℝ) → |8 * x ^ n| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d3-t0035"} | |
| {"id": "real-analysis-continuity-d1-t0036", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 1, "seed": 36, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = -5x - 2\\) is continuous at \\(x_0 = 3\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of a linear function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (3 : ℝ)| < δ → |((-5 : ℝ) * x + (-2 : ℝ)) - ((-5 : ℝ) * (3 : ℝ) + (-2 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d1-t0036"} | |
| {"id": "real-analysis-limit_sequence-d1-t0037", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 1, "seed": 37, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that the sequence \\(u_n = \\dfrac{3}{n + 2}\\) tends to \\(0\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|u_n - 0| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence tends to 0 (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |(3 : ℝ) / ((n : ℝ) + (2 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d1-t0037"} | |
| {"id": "real-analysis-sequence_bounds-d1-t0038", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 1, "seed": 38, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = \\frac{1}{6}\\) and \\(a_{n+1} = \\frac{a_n}{2} + \\frac{1}{3}\\). Prove that \\(0 \\le a_n \\le \\frac{2}{3}\\) for every \\(n\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (1 / 6 : ℝ)\n | (n + 1) => a n / 2 + (1 / 3 : ℝ)\n\n/-- The sequence stays between 0 and its upper bound. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (2 / 3 : ℝ) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d1-t0038"} | |
| {"id": "real-analysis-uniform_bounds-d1-t0039", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 1, "seed": 39, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that for every natural number \\(n\\) and every real \\(x\\) with \\(-\\frac{3}{5} \\le x \\le \\frac{3}{5}\\), \\[|3\\,x^{n+1}| \\le 3 \\cdot \\frac{3}{5}^{n+1}.\\]\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A bound that does not depend on the point x. -/\ntheorem uniform_bound :\n ∀ n : ℕ, ∀ x ∈ Set.Icc (-(3 / 5 : ℝ)) (3 / 5 : ℝ), |3 * x ^ (n + 1)| ≤ 3 * (3 / 5 : ℝ) ^ (n + 1) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d1-t0039"} | |
| {"id": "real-analysis-continuity-d2-t0040", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 2, "seed": 40, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = -4x^2 + 3\\) is continuous at \\(x_0 = 0\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\). Do not use any continuity lemma from the library.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of a quadratic function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (0 : ℝ)| < δ → |((-4 : ℝ) * x ^ 2 + (3 : ℝ)) - ((-4 : ℝ) * (0 : ℝ) ^ 2 + (3 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d2-t0040"} | |
| {"id": "real-analysis-limit_sequence-d2-t0041", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 2, "seed": 41, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{-3n + 3}{4n + 7}\\) tends to \\(\\dfrac{-3}{4}\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(\\left|u_n - \\frac{-3}{4}\\right| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence converges to a/c (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |((-3 : ℝ) * (n : ℝ) + (3 : ℝ)) / ((4 : ℝ) * (n : ℝ) + (7 : ℝ)) - (-3 : ℝ) / (4 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d2-t0041"} | |
| {"id": "real-analysis-sequence_bounds-d2-t0042", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 2, "seed": 42, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = 2\\) and \\(a_{n+1} = \\frac{a_n}{2} + 1\\). Prove that \\(0 \\le a_n \\le 2\\) for every \\(n\\), and then that the sequence is monotone (non-decreasing).\n\n## What to do\n\n`Solution.lean` in the working directory states 2 theorems in Lean 4 with Mathlib, with `sorry` in place of each proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is the share of the 2 theorems that are proved. If the file does not compile the reward is 0, so leave `sorry` on a theorem you cannot finish rather than a broken proof.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (2 : ℝ)\n | (n + 1) => a n / 2 + (1 : ℝ)\n\n/-- The sequence stays between 0 and its upper bound. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (2 : ℝ) := by\n sorry\n\n/-- The sequence is increasing. -/\ntheorem a_monotone :\n Monotone a := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d2-t0042"} | |
| {"id": "real-analysis-uniform_bounds-d2-t0043", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 2, "seed": 43, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that for every natural number \\(n\\) and every real \\(x\\) with \\(0 \\le x \\le \\frac{3}{4}\\), \\[\\sum_{i=0}^{n-1} x^{i} \\le \\frac{1}{1 - \\frac{3}{4}}.\\] The sum is empty when \\(n = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A bound on partial geometric sums that does not depend on n or x. -/\ntheorem uniform_bound :\n ∀ n : ℕ, ∀ x ∈ Set.Icc (0 : ℝ) (3 / 4 : ℝ), ∑ i ∈ Finset.range n, x ^ i ≤ 1 / (1 - (3 / 4 : ℝ)) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d2-t0043"} | |
| {"id": "real-analysis-continuity-d3-t0044", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 3, "seed": 44, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = \\dfrac{3}{x}\\) is continuous at \\(x_0 = 5\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\). Here \\(x\\) ranges over all real numbers (in Lean, division by 0 gives 0, which does not matter for small \\(\\delta\\)).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of the reciprocal function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (5 : ℝ)| < δ → |(3 : ℝ) / x - (3 : ℝ) / (5 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d3-t0044"} | |
| {"id": "real-analysis-limit_sequence-d3-t0045", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 3, "seed": 45, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{4n + 3}{n^2 + 6}\\) tends to \\(0\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|u_n - 0| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence tends to 0 (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |((4 : ℝ) * (n : ℝ) + (3 : ℝ)) / ((n : ℝ) ^ 2 + (6 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d3-t0045"} | |
| {"id": "real-analysis-sequence_bounds-d3-t0046", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 3, "seed": 46, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = 0\\) and \\(a_{n+1} = \\dfrac{a_n^2 + \\frac{7}{16}}{2}\\). Prove that \\(0 \\le a_n \\le \\frac{1}{4}\\) for every \\(n\\) (note that \\(\\frac{1}{4}\\) is a fixed point of the recursion), and then that the sequence is monotone (non-decreasing).\n\n## What to do\n\n`Solution.lean` in the working directory states 2 theorems in Lean 4 with Mathlib, with `sorry` in place of each proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is the share of the 2 theorems that are proved. If the file does not compile the reward is 0, so leave `sorry` on a theorem you cannot finish rather than a broken proof.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (0 : ℝ)\n | (n + 1) => (a n ^ 2 + (7 / 16 : ℝ)) / 2\n\n/-- The sequence stays between 0 and the smaller fixed point. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (1 / 4 : ℝ) := by\n sorry\n\n/-- The sequence is increasing. -/\ntheorem a_monotone :\n Monotone a := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d3-t0046"} | |
| {"id": "real-analysis-uniform_bounds-d3-t0047", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 3, "seed": 47, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that \\(c\\,x^n\\) with \\(c = 3\\) tends to \\(0\\) uniformly on \\([-\\frac{2}{3}, \\frac{2}{3}]\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|3\\,x^n| < \\varepsilon\\) for all \\(n \\ge N\\) and all real \\(x\\) with \\(|x| \\le \\frac{2}{3}\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Uniform convergence of a geometric sequence on an interval. -/\ntheorem uniform_convergence :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, ∀ x : ℝ, |x| ≤ (2 / 3 : ℝ) → |3 * x ^ n| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d3-t0047"} | |
| {"id": "real-analysis-continuity-d1-t0048", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 1, "seed": 48, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = 4x + 3\\) is continuous at \\(x_0 = -4\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of a linear function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (-4 : ℝ)| < δ → |((4 : ℝ) * x + (3 : ℝ)) - ((4 : ℝ) * (-4 : ℝ) + (3 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d1-t0048"} | |
| {"id": "real-analysis-limit_sequence-d1-t0049", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 1, "seed": 49, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that the sequence \\(u_n = \\dfrac{3}{n + 6}\\) tends to \\(0\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|u_n - 0| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence tends to 0 (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |(3 : ℝ) / ((n : ℝ) + (6 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d1-t0049"} | |
| {"id": "real-analysis-sequence_bounds-d1-t0050", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 1, "seed": 50, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = 3\\) and \\(a_{n+1} = \\frac{a_n}{2} + 2\\). Prove that \\(0 \\le a_n \\le 4\\) for every \\(n\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (3 : ℝ)\n | (n + 1) => a n / 2 + (2 : ℝ)\n\n/-- The sequence stays between 0 and its upper bound. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (4 : ℝ) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d1-t0050"} | |
| {"id": "real-analysis-uniform_bounds-d1-t0051", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 1, "seed": 51, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that for every natural number \\(n\\) and every real \\(x\\) with \\(-\\frac{2}{3} \\le x \\le \\frac{2}{3}\\), \\[|8\\,x^{n+1}| \\le 8 \\cdot \\frac{2}{3}^{n+1}.\\]\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A bound that does not depend on the point x. -/\ntheorem uniform_bound :\n ∀ n : ℕ, ∀ x ∈ Set.Icc (-(2 / 3 : ℝ)) (2 / 3 : ℝ), |8 * x ^ (n + 1)| ≤ 8 * (2 / 3 : ℝ) ^ (n + 1) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d1-t0051"} | |
| {"id": "real-analysis-continuity-d2-t0052", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 2, "seed": 52, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = -3x^2 - 1\\) is continuous at \\(x_0 = -2\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\). Do not use any continuity lemma from the library.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of a quadratic function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (-2 : ℝ)| < δ → |((-3 : ℝ) * x ^ 2 + (-1 : ℝ)) - ((-3 : ℝ) * (-2 : ℝ) ^ 2 + (-1 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d2-t0052"} | |
| {"id": "real-analysis-limit_sequence-d2-t0053", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 2, "seed": 53, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{5n - 5}{6n + 2}\\) tends to \\(\\dfrac{5}{6}\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(\\left|u_n - \\frac{5}{6}\\right| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence converges to a/c (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |((5 : ℝ) * (n : ℝ) + (-5 : ℝ)) / ((6 : ℝ) * (n : ℝ) + (2 : ℝ)) - (5 : ℝ) / (6 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d2-t0053"} | |
| {"id": "real-analysis-sequence_bounds-d2-t0054", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 2, "seed": 54, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = 2\\) and \\(a_{n+1} = \\frac{a_n}{2} + 2\\). Prove that \\(0 \\le a_n \\le 4\\) for every \\(n\\), and then that the sequence is monotone (non-decreasing).\n\n## What to do\n\n`Solution.lean` in the working directory states 2 theorems in Lean 4 with Mathlib, with `sorry` in place of each proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is the share of the 2 theorems that are proved. If the file does not compile the reward is 0, so leave `sorry` on a theorem you cannot finish rather than a broken proof.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (2 : ℝ)\n | (n + 1) => a n / 2 + (2 : ℝ)\n\n/-- The sequence stays between 0 and its upper bound. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (4 : ℝ) := by\n sorry\n\n/-- The sequence is increasing. -/\ntheorem a_monotone :\n Monotone a := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d2-t0054"} | |
| {"id": "real-analysis-uniform_bounds-d2-t0055", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 2, "seed": 55, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that for every natural number \\(n\\) and every real \\(x\\) with \\(0 \\le x \\le \\frac{1}{4}\\), \\[\\sum_{i=0}^{n-1} x^{i} \\le \\frac{1}{1 - \\frac{1}{4}}.\\] The sum is empty when \\(n = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A bound on partial geometric sums that does not depend on n or x. -/\ntheorem uniform_bound :\n ∀ n : ℕ, ∀ x ∈ Set.Icc (0 : ℝ) (1 / 4 : ℝ), ∑ i ∈ Finset.range n, x ^ i ≤ 1 / (1 - (1 / 4 : ℝ)) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d2-t0055"} | |
| {"id": "real-analysis-continuity-d3-t0056", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 3, "seed": 56, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = \\dfrac{3}{x}\\) is continuous at \\(x_0 = 2\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\). Here \\(x\\) ranges over all real numbers (in Lean, division by 0 gives 0, which does not matter for small \\(\\delta\\)).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of the reciprocal function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (2 : ℝ)| < δ → |(3 : ℝ) / x - (3 : ℝ) / (2 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d3-t0056"} | |
| {"id": "real-analysis-limit_sequence-d3-t0057", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 3, "seed": 57, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{4n + 2}{n^2 + 2}\\) tends to \\(0\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|u_n - 0| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence tends to 0 (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |((4 : ℝ) * (n : ℝ) + (2 : ℝ)) / ((n : ℝ) ^ 2 + (2 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d3-t0057"} | |
| {"id": "real-analysis-sequence_bounds-d3-t0058", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 3, "seed": 58, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = \\frac{4}{5}\\) and \\(a_{n+1} = \\dfrac{a_n^2 + \\frac{24}{25}}{2}\\). Prove that \\(0 \\le a_n \\le \\frac{4}{5}\\) for every \\(n\\) (note that \\(\\frac{4}{5}\\) is a fixed point of the recursion), and then that the sequence is monotone (non-decreasing).\n\n## What to do\n\n`Solution.lean` in the working directory states 2 theorems in Lean 4 with Mathlib, with `sorry` in place of each proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is the share of the 2 theorems that are proved. If the file does not compile the reward is 0, so leave `sorry` on a theorem you cannot finish rather than a broken proof.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (4 / 5 : ℝ)\n | (n + 1) => (a n ^ 2 + (24 / 25 : ℝ)) / 2\n\n/-- The sequence stays between 0 and the smaller fixed point. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (4 / 5 : ℝ) := by\n sorry\n\n/-- The sequence is increasing. -/\ntheorem a_monotone :\n Monotone a := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d3-t0058"} | |
| {"id": "real-analysis-uniform_bounds-d3-t0059", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 3, "seed": 59, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that \\(c\\,x^n\\) with \\(c = 3\\) tends to \\(0\\) uniformly on \\([-\\frac{1}{2}, \\frac{1}{2}]\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|3\\,x^n| < \\varepsilon\\) for all \\(n \\ge N\\) and all real \\(x\\) with \\(|x| \\le \\frac{1}{2}\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Uniform convergence of a geometric sequence on an interval. -/\ntheorem uniform_convergence :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, ∀ x : ℝ, |x| ≤ (1 / 2 : ℝ) → |3 * x ^ n| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d3-t0059"} | |
| {"id": "real-analysis-continuity-d1-t0060", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 1, "seed": 60, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = 6x - 1\\) is continuous at \\(x_0 = 0\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of a linear function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (0 : ℝ)| < δ → |((6 : ℝ) * x + (-1 : ℝ)) - ((6 : ℝ) * (0 : ℝ) + (-1 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d1-t0060"} | |
| {"id": "real-analysis-limit_sequence-d1-t0061", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 1, "seed": 61, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that the sequence \\(u_n = \\dfrac{3}{n + 1}\\) tends to \\(0\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|u_n - 0| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence tends to 0 (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |(3 : ℝ) / ((n : ℝ) + (1 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d1-t0061"} | |
| {"id": "real-analysis-sequence_bounds-d1-t0062", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 1, "seed": 62, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = 0\\) and \\(a_{n+1} = \\frac{a_n}{2} + \\frac{7}{2}\\). Prove that \\(0 \\le a_n \\le 7\\) for every \\(n\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (0 : ℝ)\n | (n + 1) => a n / 2 + (7 / 2 : ℝ)\n\n/-- The sequence stays between 0 and its upper bound. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (7 : ℝ) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d1-t0062"} | |
| {"id": "real-analysis-uniform_bounds-d1-t0063", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 1, "seed": 63, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that for every natural number \\(n\\) and every real \\(x\\) with \\(-\\frac{3}{5} \\le x \\le \\frac{3}{5}\\), \\[|8\\,x^{n+1}| \\le 8 \\cdot \\frac{3}{5}^{n+1}.\\]\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A bound that does not depend on the point x. -/\ntheorem uniform_bound :\n ∀ n : ℕ, ∀ x ∈ Set.Icc (-(3 / 5 : ℝ)) (3 / 5 : ℝ), |8 * x ^ (n + 1)| ≤ 8 * (3 / 5 : ℝ) ^ (n + 1) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d1-t0063"} | |
| {"id": "real-analysis-continuity-d2-t0064", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 2, "seed": 64, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = 5x^2 - 6\\) is continuous at \\(x_0 = 4\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\). Do not use any continuity lemma from the library.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of a quadratic function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (4 : ℝ)| < δ → |((5 : ℝ) * x ^ 2 + (-6 : ℝ)) - ((5 : ℝ) * (4 : ℝ) ^ 2 + (-6 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d2-t0064"} | |
| {"id": "real-analysis-limit_sequence-d2-t0065", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 2, "seed": 65, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{-2n - 3}{3n + 1}\\) tends to \\(\\dfrac{-2}{3}\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(\\left|u_n - \\frac{-2}{3}\\right| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence converges to a/c (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |((-2 : ℝ) * (n : ℝ) + (-3 : ℝ)) / ((3 : ℝ) * (n : ℝ) + (1 : ℝ)) - (-2 : ℝ) / (3 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d2-t0065"} | |
| {"id": "real-analysis-sequence_bounds-d2-t0066", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 2, "seed": 66, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = \\frac{1}{2}\\) and \\(a_{n+1} = \\frac{a_n}{2} + \\frac{1}{2}\\). Prove that \\(0 \\le a_n \\le 1\\) for every \\(n\\), and then that the sequence is monotone (non-decreasing).\n\n## What to do\n\n`Solution.lean` in the working directory states 2 theorems in Lean 4 with Mathlib, with `sorry` in place of each proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is the share of the 2 theorems that are proved. If the file does not compile the reward is 0, so leave `sorry` on a theorem you cannot finish rather than a broken proof.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (1 / 2 : ℝ)\n | (n + 1) => a n / 2 + (1 / 2 : ℝ)\n\n/-- The sequence stays between 0 and its upper bound. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (1 : ℝ) := by\n sorry\n\n/-- The sequence is increasing. -/\ntheorem a_monotone :\n Monotone a := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d2-t0066"} | |
| {"id": "real-analysis-uniform_bounds-d2-t0067", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 2, "seed": 67, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that for every natural number \\(n\\) and every real \\(x\\) with \\(0 \\le x \\le \\frac{3}{4}\\), \\[\\sum_{i=0}^{n-1} x^{i} \\le \\frac{1}{1 - \\frac{3}{4}}.\\] The sum is empty when \\(n = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A bound on partial geometric sums that does not depend on n or x. -/\ntheorem uniform_bound :\n ∀ n : ℕ, ∀ x ∈ Set.Icc (0 : ℝ) (3 / 4 : ℝ), ∑ i ∈ Finset.range n, x ^ i ≤ 1 / (1 - (3 / 4 : ℝ)) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d2-t0067"} | |
| {"id": "real-analysis-continuity-d3-t0068", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 3, "seed": 68, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = \\dfrac{4}{x}\\) is continuous at \\(x_0 = 2\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\). Here \\(x\\) ranges over all real numbers (in Lean, division by 0 gives 0, which does not matter for small \\(\\delta\\)).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of the reciprocal function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (2 : ℝ)| < δ → |(4 : ℝ) / x - (4 : ℝ) / (2 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d3-t0068"} | |
| {"id": "real-analysis-limit_sequence-d3-t0069", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 3, "seed": 69, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{5n + 6}{n^2 + 8}\\) tends to \\(0\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|u_n - 0| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence tends to 0 (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |((5 : ℝ) * (n : ℝ) + (6 : ℝ)) / ((n : ℝ) ^ 2 + (8 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d3-t0069"} | |
| {"id": "real-analysis-sequence_bounds-d3-t0070", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 3, "seed": 70, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = \\frac{1}{2}\\) and \\(a_{n+1} = \\dfrac{a_n^2 + \\frac{8}{9}}{2}\\). Prove that \\(0 \\le a_n \\le \\frac{2}{3}\\) for every \\(n\\) (note that \\(\\frac{2}{3}\\) is a fixed point of the recursion), and then that the sequence is monotone (non-decreasing).\n\n## What to do\n\n`Solution.lean` in the working directory states 2 theorems in Lean 4 with Mathlib, with `sorry` in place of each proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is the share of the 2 theorems that are proved. If the file does not compile the reward is 0, so leave `sorry` on a theorem you cannot finish rather than a broken proof.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (1 / 2 : ℝ)\n | (n + 1) => (a n ^ 2 + (8 / 9 : ℝ)) / 2\n\n/-- The sequence stays between 0 and the smaller fixed point. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (2 / 3 : ℝ) := by\n sorry\n\n/-- The sequence is increasing. -/\ntheorem a_monotone :\n Monotone a := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d3-t0070"} | |
| {"id": "real-analysis-uniform_bounds-d3-t0071", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 3, "seed": 71, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that \\(c\\,x^n\\) with \\(c = 3\\) tends to \\(0\\) uniformly on \\([-\\frac{1}{4}, \\frac{1}{4}]\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|3\\,x^n| < \\varepsilon\\) for all \\(n \\ge N\\) and all real \\(x\\) with \\(|x| \\le \\frac{1}{4}\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Uniform convergence of a geometric sequence on an interval. -/\ntheorem uniform_convergence :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, ∀ x : ℝ, |x| ≤ (1 / 4 : ℝ) → |3 * x ^ n| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d3-t0071"} | |
| {"id": "real-analysis-continuity-d1-t0072", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 1, "seed": 72, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = -3x + 2\\) is continuous at \\(x_0 = 0\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of a linear function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (0 : ℝ)| < δ → |((-3 : ℝ) * x + (2 : ℝ)) - ((-3 : ℝ) * (0 : ℝ) + (2 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d1-t0072"} | |
| {"id": "real-analysis-limit_sequence-d1-t0073", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 1, "seed": 73, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that the sequence \\(u_n = \\dfrac{1}{n + 6}\\) tends to \\(0\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|u_n - 0| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence tends to 0 (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |(1 : ℝ) / ((n : ℝ) + (6 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d1-t0073"} | |
| {"id": "real-analysis-sequence_bounds-d1-t0074", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 1, "seed": 74, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = 6\\) and \\(a_{n+1} = \\frac{a_n}{2} + 3\\). Prove that \\(0 \\le a_n \\le 6\\) for every \\(n\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (6 : ℝ)\n | (n + 1) => a n / 2 + (3 : ℝ)\n\n/-- The sequence stays between 0 and its upper bound. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (6 : ℝ) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d1-t0074"} | |
| {"id": "real-analysis-uniform_bounds-d1-t0075", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 1, "seed": 75, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that for every natural number \\(n\\) and every real \\(x\\) with \\(-\\frac{1}{3} \\le x \\le \\frac{1}{3}\\), \\[|5\\,x^{n+1}| \\le 5 \\cdot \\frac{1}{3}^{n+1}.\\]\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A bound that does not depend on the point x. -/\ntheorem uniform_bound :\n ∀ n : ℕ, ∀ x ∈ Set.Icc (-(1 / 3 : ℝ)) (1 / 3 : ℝ), |5 * x ^ (n + 1)| ≤ 5 * (1 / 3 : ℝ) ^ (n + 1) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d1-t0075"} | |
| {"id": "real-analysis-continuity-d2-t0076", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 2, "seed": 76, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = 4x^2 + 4\\) is continuous at \\(x_0 = 3\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\). Do not use any continuity lemma from the library.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of a quadratic function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (3 : ℝ)| < δ → |((4 : ℝ) * x ^ 2 + (4 : ℝ)) - ((4 : ℝ) * (3 : ℝ) ^ 2 + (4 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d2-t0076"} | |
| {"id": "real-analysis-limit_sequence-d2-t0077", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 2, "seed": 77, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{6n}{6n + 5}\\) tends to \\(\\dfrac{6}{6}\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(\\left|u_n - \\frac{6}{6}\\right| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence converges to a/c (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |((6 : ℝ) * (n : ℝ) + (0 : ℝ)) / ((6 : ℝ) * (n : ℝ) + (5 : ℝ)) - (6 : ℝ) / (6 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d2-t0077"} | |
| {"id": "real-analysis-sequence_bounds-d2-t0078", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 2, "seed": 78, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = 4\\) and \\(a_{n+1} = \\frac{a_n}{2} + 8\\). Prove that \\(0 \\le a_n \\le 16\\) for every \\(n\\), and then that the sequence is monotone (non-decreasing).\n\n## What to do\n\n`Solution.lean` in the working directory states 2 theorems in Lean 4 with Mathlib, with `sorry` in place of each proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is the share of the 2 theorems that are proved. If the file does not compile the reward is 0, so leave `sorry` on a theorem you cannot finish rather than a broken proof.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (4 : ℝ)\n | (n + 1) => a n / 2 + (8 : ℝ)\n\n/-- The sequence stays between 0 and its upper bound. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (16 : ℝ) := by\n sorry\n\n/-- The sequence is increasing. -/\ntheorem a_monotone :\n Monotone a := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d2-t0078"} | |
| {"id": "real-analysis-uniform_bounds-d2-t0079", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 2, "seed": 79, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that for every natural number \\(n\\) and every real \\(x\\) with \\(0 \\le x \\le \\frac{2}{3}\\), \\[\\sum_{i=0}^{n-1} x^{i} \\le \\frac{1}{1 - \\frac{2}{3}}.\\] The sum is empty when \\(n = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A bound on partial geometric sums that does not depend on n or x. -/\ntheorem uniform_bound :\n ∀ n : ℕ, ∀ x ∈ Set.Icc (0 : ℝ) (2 / 3 : ℝ), ∑ i ∈ Finset.range n, x ^ i ≤ 1 / (1 - (2 / 3 : ℝ)) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d2-t0079"} | |
| {"id": "real-analysis-continuity-d3-t0080", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 3, "seed": 80, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = \\dfrac{1}{x}\\) is continuous at \\(x_0 = 1\\): for every \\(\\varepsilon > 0\\) there is \\(\\delta > 0\\) such that \\(|f(x) - f(x_0)| < \\varepsilon\\) whenever \\(|x - x_0| < \\delta\\). Here \\(x\\) ranges over all real numbers (in Lean, division by 0 gives 0, which does not matter for small \\(\\delta\\)).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Epsilon-delta continuity of the reciprocal function at a point. -/\ntheorem continuous_at :\n ∀ ε > 0, ∃ δ > 0, ∀ x : ℝ, |x - (1 : ℝ)| < δ → |(1 : ℝ) / x - (1 : ℝ) / (1 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d3-t0080"} | |
| {"id": "real-analysis-limit_sequence-d3-t0081", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 3, "seed": 81, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{6n}{n^2 + 4}\\) tends to \\(0\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|u_n - 0| < \\varepsilon\\) for all \\(n \\ge N\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The sequence tends to 0 (epsilon-N definition). -/\ntheorem seq_limit :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, |((6 : ℝ) * (n : ℝ) + (0 : ℝ)) / ((n : ℝ) ^ 2 + (4 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d3-t0081"} | |
| {"id": "real-analysis-sequence_bounds-d3-t0082", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 3, "seed": 82, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = \\frac{1}{4}\\) and \\(a_{n+1} = \\dfrac{a_n^2 + \\frac{7}{16}}{2}\\). Prove that \\(0 \\le a_n \\le \\frac{1}{4}\\) for every \\(n\\) (note that \\(\\frac{1}{4}\\) is a fixed point of the recursion), and then that the sequence is monotone (non-decreasing).\n\n## What to do\n\n`Solution.lean` in the working directory states 2 theorems in Lean 4 with Mathlib, with `sorry` in place of each proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is the share of the 2 theorems that are proved. If the file does not compile the reward is 0, so leave `sorry` on a theorem you cannot finish rather than a broken proof.\n", "start_file": "import Mathlib\n\nnoncomputable def a : ℕ → ℝ\n | 0 => (1 / 4 : ℝ)\n | (n + 1) => (a n ^ 2 + (7 / 16 : ℝ)) / 2\n\n/-- The sequence stays between 0 and the smaller fixed point. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (1 / 4 : ℝ) := by\n sorry\n\n/-- The sequence is increasing. -/\ntheorem a_monotone :\n Monotone a := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d3-t0082"} | |
| {"id": "real-analysis-uniform_bounds-d3-t0083", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 3, "seed": 83, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that \\(c\\,x^n\\) with \\(c = 5\\) tends to \\(0\\) uniformly on \\([-\\frac{3}{5}, \\frac{3}{5}]\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|5\\,x^n| < \\varepsilon\\) for all \\(n \\ge N\\) and all real \\(x\\) with \\(|x| \\le \\frac{3}{5}\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Uniform convergence of a geometric sequence on an interval. -/\ntheorem uniform_convergence :\n ∀ ε > 0, ∃ N : ℕ, ∀ n ≥ N, ∀ x : ℝ, |x| ≤ (3 / 5 : ℝ) → |5 * x ^ n| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d3-t0083"} | |