math / data /real-analysis /eval.jsonl
birgermoell's picture
Add files using upload-large-folder tool
7931c0c verified
Raw History Blame Contribute Delete
34.9 kB
{"id": "real-analysis-continuity-d1-e0000", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 1, "seed": 10000, "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 = 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 : ℝ)| < δ → |((-4 : ℝ) * x + (3 : ℝ)) - ((-4 : ℝ) * (0 : ℝ) + (3 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d1-e0000"}
{"id": "real-analysis-limit_sequence-d1-e0001", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 1, "seed": 10001, "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 + 3}\\) 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 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d1-e0001"}
{"id": "real-analysis-sequence_bounds-d1-e0002", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 1, "seed": 10002, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = \\frac{8}{3}\\) and \\(a_{n+1} = \\frac{a_n}{2} + \\frac{4}{3}\\). Prove that \\(0 \\le a_n \\le \\frac{8}{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 => (8 / 3 : ℝ)\n | (n + 1) => a n / 2 + (4 / 3 : ℝ)\n\n/-- The sequence stays between 0 and its upper bound. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (8 / 3 : ℝ) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d1-e0002"}
{"id": "real-analysis-uniform_bounds-d1-e0003", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 1, "seed": 10003, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that for every natural number \\(n\\) and every real \\(x\\) with \\(-\\frac{4}{5} \\le x \\le \\frac{4}{5}\\), \\[|3\\,x^{n+1}| \\le 3 \\cdot \\frac{4}{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 (-(4 / 5 : ℝ)) (4 / 5 : ℝ), |3 * x ^ (n + 1)| ≤ 3 * (4 / 5 : ℝ) ^ (n + 1) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d1-e0003"}
{"id": "real-analysis-continuity-d2-e0004", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 2, "seed": 10004, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = x^2 + 5\\) 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 : ℝ)| < δ → |((1 : ℝ) * x ^ 2 + (5 : ℝ)) - ((1 : ℝ) * (-4 : ℝ) ^ 2 + (5 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d2-e0004"}
{"id": "real-analysis-limit_sequence-d2-e0005", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 2, "seed": 10005, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{2n + 8}{2n + 3}\\) tends to \\(\\dfrac{2}{2}\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(\\left|u_n - \\frac{2}{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, |((2 : ℝ) * (n : ℝ) + (8 : ℝ)) / ((2 : ℝ) * (n : ℝ) + (3 : ℝ)) - (2 : ℝ) / (2 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d2-e0005"}
{"id": "real-analysis-sequence_bounds-d2-e0006", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 2, "seed": 10006, "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}{2}\\). Prove that \\(0 \\le a_n \\le 5\\) 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 / 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\n/-- The sequence is increasing. -/\ntheorem a_monotone :\n Monotone a := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-sequence_bounds-d2-e0006"}
{"id": "real-analysis-uniform_bounds-d2-e0007", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 2, "seed": 10007, "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-e0007"}
{"id": "real-analysis-continuity-d3-e0008", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 3, "seed": 10008, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = \\dfrac{2}{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 : ℝ)| < δ → |(2 : ℝ) / x - (2 : ℝ) / (5 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d3-e0008"}
{"id": "real-analysis-limit_sequence-d3-e0009", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 3, "seed": 10009, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{6n + 4}{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, |((6 : ℝ) * (n : ℝ) + (4 : ℝ)) / ((n : ℝ) ^ 2 + (6 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d3-e0009"}
{"id": "real-analysis-sequence_bounds-d3-e0010", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 3, "seed": 10010, "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{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 / 5 : ℝ)\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-e0010"}
{"id": "real-analysis-uniform_bounds-d3-e0011", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 3, "seed": 10011, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that \\(c\\,x^n\\) with \\(c = 5\\) tends to \\(0\\) uniformly on \\([-\\frac{1}{4}, \\frac{1}{4}]\\): 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{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 : ℝ) → |5 * x ^ n| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d3-e0011"}
{"id": "real-analysis-continuity-d1-e0012", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 1, "seed": 10012, "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 = -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 : ℝ)| < δ → |((-6 : ℝ) * x + (-1 : ℝ)) - ((-6 : ℝ) * (-3 : ℝ) + (-1 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d1-e0012"}
{"id": "real-analysis-limit_sequence-d1-e0013", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 1, "seed": 10013, "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 + 9}\\) 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 : ℝ) + (9 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d1-e0013"}
{"id": "real-analysis-sequence_bounds-d1-e0014", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 1, "seed": 10014, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = \\frac{7}{2}\\) 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 => (7 / 2 : ℝ)\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-e0014"}
{"id": "real-analysis-uniform_bounds-d1-e0015", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 1, "seed": 10015, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that for every natural number \\(n\\) and every real \\(x\\) with \\(-\\frac{4}{5} \\le x \\le \\frac{4}{5}\\), \\[|7\\,x^{n+1}| \\le 7 \\cdot \\frac{4}{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 (-(4 / 5 : ℝ)) (4 / 5 : ℝ), |7 * x ^ (n + 1)| ≤ 7 * (4 / 5 : ℝ) ^ (n + 1) := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d1-e0015"}
{"id": "real-analysis-continuity-d2-e0016", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 2, "seed": 10016, "kind": "prove", "instruction": "# Prove continuity from the epsilon-delta definition\n\nProve, from the epsilon-delta definition, that \\(f(x) = 2x^2 + 4\\) 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 : ℝ)| < δ → |((2 : ℝ) * x ^ 2 + (4 : ℝ)) - ((2 : ℝ) * (4 : ℝ) ^ 2 + (4 : ℝ))| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-continuity-d2-e0016"}
{"id": "real-analysis-limit_sequence-d2-e0017", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 2, "seed": 10017, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{-3n + 4}{2n + 5}\\) tends to \\(\\dfrac{-3}{2}\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(\\left|u_n - \\frac{-3}{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, |((-3 : ℝ) * (n : ℝ) + (4 : ℝ)) / ((2 : ℝ) * (n : ℝ) + (5 : ℝ)) - (-3 : ℝ) / (2 : ℝ)| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d2-e0017"}
{"id": "real-analysis-sequence_bounds-d2-e0018", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 2, "seed": 10018, "kind": "prove", "instruction": "# Bound a recursive sequence\n\nDefine a real sequence by \\(a_0 = 9\\) and \\(a_{n+1} = \\frac{a_n}{2} + 6\\). Prove that \\(0 \\le a_n \\le 12\\) 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 => (9 : ℝ)\n | (n + 1) => a n / 2 + (6 : ℝ)\n\n/-- The sequence stays between 0 and its upper bound. -/\ntheorem a_bounds :\n ∀ n : ℕ, 0 ≤ a n ∧ a n ≤ (12 : ℝ) := 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-e0018"}
{"id": "real-analysis-uniform_bounds-d2-e0019", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 2, "seed": 10019, "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-e0019"}
{"id": "real-analysis-continuity-d3-e0020", "env": "real-analysis", "msc": "26", "family": "continuity", "difficulty": 3, "seed": 10020, "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-e0020"}
{"id": "real-analysis-limit_sequence-d3-e0021", "env": "real-analysis", "msc": "26", "family": "limit_sequence", "difficulty": 3, "seed": 10021, "kind": "prove", "instruction": "# Prove a limit from the definition\n\nProve, directly from the definition of a limit, that \\(u_n = \\dfrac{n + 1}{n^2 + 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, |((1 : ℝ) * (n : ℝ) + (1 : ℝ)) / ((n : ℝ) ^ 2 + (1 : ℝ)) - 0| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-limit_sequence-d3-e0021"}
{"id": "real-analysis-sequence_bounds-d3-e0022", "env": "real-analysis", "msc": "26", "family": "sequence_bounds", "difficulty": 3, "seed": 10022, "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-e0022"}
{"id": "real-analysis-uniform_bounds-d3-e0023", "env": "real-analysis", "msc": "26", "family": "uniform_bounds", "difficulty": 3, "seed": 10023, "kind": "prove", "instruction": "# Prove a uniform bound\n\nProve that \\(c\\,x^n\\) with \\(c = 4\\) tends to \\(0\\) uniformly on \\([-\\frac{1}{3}, \\frac{1}{3}]\\): for every \\(\\varepsilon > 0\\) there is \\(N\\) such that \\(|4\\,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 : ℝ) → |4 * x ^ n| < ε := by\n sorry\n", "path": "tasks/real-analysis/real-analysis-uniform_bounds-d3-e0023"}