math / data /modular-arithmetic /train.jsonl
birgermoell's picture
Add files using upload-large-folder tool
7931c0c verified
Raw History Blame Contribute Delete
115 kB
{"id": "modular-arithmetic-congruence_chain-d1-t0000", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 1, "seed": 0, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) be an integer with \\(x \\equiv 0 \\pmod{8}\\). Prove that \\(x^2 + 5x + 1 \\equiv 1 \\pmod{8}\\).\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 polynomial is congruent to the stated residue. -/\ntheorem congr_poly (x : ℤ) (h : x ≡ 0 [ZMOD 8]) :\n x ^ 2 + 5 * x + 1 ≡ 1 [ZMOD 8] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d1-t0000"}
{"id": "modular-arithmetic-divisibility-d1-t0001", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 1, "seed": 1, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(2\\) divides \\(13n^5 - 9n\\).\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 integer divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (2 : ℤ) ∣ 13 * n ^ 5 - 9 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d1-t0001"}
{"id": "modular-arithmetic-gcd_coprime-d1-t0002", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 1, "seed": 2, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the integers \\(n + 8\\) and \\(3n + 25\\) are coprime, in the sense that \\(u(n + 8) + v(3n + 25) = 1\\) for some integers \\(u, v\\).\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 two linear forms are coprime. -/\ntheorem coprime_int (n : ℤ) :\n IsCoprime (n + 8) (3 * n + 25) := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d1-t0002"}
{"id": "modular-arithmetic-power_residues-d1-t0003", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 1, "seed": 3, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(n^2 + 6\\) on division by \\(7\\) is one of \\(0, 1, 3, 6\\).\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 remainder of the expression is one of the listed values. -/\ntheorem residues_of_power (n : ℕ) :\n (n ^ 2 + 6) % 7 = 0 ∨ (n ^ 2 + 6) % 7 = 1 ∨ (n ^ 2 + 6) % 7 = 3 ∨ (n ^ 2 + 6) % 7 = 6 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d1-t0003"}
{"id": "modular-arithmetic-congruence_chain-d2-t0004", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 2, "seed": 4, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 1 \\pmod{6}\\) and \\(y \\equiv 1 \\pmod{6}\\). Prove that \\(4xy + 7y^2 + 5x \\equiv 4 \\pmod{6}\\).\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 expression is congruent to the stated residue. -/\ntheorem congr_poly2 (x y : ℤ) (hx : x ≡ 1 [ZMOD 6]) (hy : y ≡ 1 [ZMOD 6]) :\n 4 * (x * y) + 7 * y ^ 2 + 5 * x ≡ 4 [ZMOD 6] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d2-t0004"}
{"id": "modular-arithmetic-divisibility-d2-t0005", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 2, "seed": 5, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(6\\) divides \\(19n^3 - 7n\\).\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 integer divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (6 : ℤ) ∣ 19 * n ^ 3 - 7 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d2-t0005"}
{"id": "modular-arithmetic-gcd_coprime-d2-t0006", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 2, "seed": 6, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the numbers \\(3n + 1\\) and \\(4n + 1\\) are coprime.\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 two linear forms are coprime. -/\ntheorem coprime_nat (n : ℕ) :\n Nat.Coprime (3 * n + 1) (4 * n + 1) := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d2-t0006"}
{"id": "modular-arithmetic-power_residues-d2-t0007", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 2, "seed": 7, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(7n^3 + 7\\) on division by \\(13\\) is one of \\(0, 1, 3, 7, 11\\).\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 remainder of the expression is one of the listed values. -/\ntheorem residues_of_power (n : ℕ) :\n (7 * n ^ 3 + 7) % 13 = 0 ∨ (7 * n ^ 3 + 7) % 13 = 1 ∨ (7 * n ^ 3 + 7) % 13 = 3 ∨ (7 * n ^ 3 + 7) % 13 = 7 ∨ (7 * n ^ 3 + 7) % 13 = 11 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d2-t0007"}
{"id": "modular-arithmetic-congruence_chain-d3-t0008", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 3, "seed": 8, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 6 \\pmod{8}\\) and \\(y \\equiv 7 \\pmod{8}\\). Prove that \\(x^{38} \\equiv 0 \\pmod{8}\\), and then that \\(x^{38} y^{13} + 3 \\equiv 3 \\pmod{8}\\).\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\n/-- A large power of x has the stated residue. -/\ntheorem congr_pow (x : ℤ) (h : x ≡ 6 [ZMOD 8]) :\n x ^ 38 ≡ 0 [ZMOD 8] := by\n sorry\n\n/-- The combined expression has the stated residue. -/\ntheorem congr_product (x y : ℤ) (hx : x ≡ 6 [ZMOD 8]) (hy : y ≡ 7 [ZMOD 8]) :\n x ^ 38 * y ^ 13 + 3 ≡ 3 [ZMOD 8] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d3-t0008"}
{"id": "modular-arithmetic-divisibility-d3-t0009", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 3, "seed": 9, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(42\\) divides \\(5n^7 - 89n\\). Prove it first for each prime factor of \\(42\\), then combine.\n\n## What to do\n\n`Solution.lean` in the working directory states 4 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 4 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\n/-- The prime 2 divides the polynomial value. -/\ntheorem dvd_by_2 (n : ℤ) :\n (2 : ℤ) ∣ 5 * n ^ 7 - 89 * n := by\n sorry\n\n/-- The prime 3 divides the polynomial value. -/\ntheorem dvd_by_3 (n : ℤ) :\n (3 : ℤ) ∣ 5 * n ^ 7 - 89 * n := by\n sorry\n\n/-- The prime 7 divides the polynomial value. -/\ntheorem dvd_by_7 (n : ℤ) :\n (7 : ℤ) ∣ 5 * n ^ 7 - 89 * n := by\n sorry\n\n/-- The product of the primes divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (42 : ℤ) ∣ 5 * n ^ 7 - 89 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d3-t0009"}
{"id": "modular-arithmetic-gcd_coprime-d3-t0010", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 3, "seed": 10, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(n\\) be a natural number and \\(g = \\gcd(2n + 4, 3n + 7)\\). Prove that \\(g\\) divides \\(2\\), and conclude that \\(g = 1\\) or \\(g = 2\\).\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\n/-- The gcd divides the determinant. -/\ntheorem gcd_dvd_det (n : ℕ) :\n Nat.gcd (2 * n + 4) (3 * n + 7) ∣ 2 := by\n sorry\n\n/-- The gcd is 1 or the prime determinant. -/\ntheorem gcd_one_or_prime (n : ℕ) :\n Nat.gcd (2 * n + 4) (3 * n + 7) = 1 ∨ Nat.gcd (2 * n + 4) (3 * n + 7) = 2 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d3-t0010"}
{"id": "modular-arithmetic-power_residues-d3-t0011", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 3, "seed": 11, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for all natural numbers \\(a\\) and \\(b\\), the number \\(2a^3 + b^3\\) never leaves remainder \\(4\\) on division by \\(8\\).\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 expression never leaves the stated remainder. -/\ntheorem residue_never_attained (a b : ℕ) :\n (2 * a ^ 3 + b ^ 3) % 8 ≠ 4 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d3-t0011"}
{"id": "modular-arithmetic-congruence_chain-d1-t0012", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 1, "seed": 12, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) be an integer with \\(x \\equiv 0 \\pmod{10}\\). Prove that \\(5x^2 + x + 6 \\equiv 6 \\pmod{10}\\).\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 polynomial is congruent to the stated residue. -/\ntheorem congr_poly (x : ℤ) (h : x ≡ 0 [ZMOD 10]) :\n 5 * x ^ 2 + x + 6 ≡ 6 [ZMOD 10] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d1-t0012"}
{"id": "modular-arithmetic-divisibility-d1-t0013", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 1, "seed": 13, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(2\\) divides \\(29n^7 - 35n\\).\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 integer divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (2 : ℤ) ∣ 29 * n ^ 7 - 35 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d1-t0013"}
{"id": "modular-arithmetic-gcd_coprime-d1-t0014", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 1, "seed": 14, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the integers \\(3n + 1\\) and \\(5n + 2\\) are coprime, in the sense that \\(u(3n + 1) + v(5n + 2) = 1\\) for some integers \\(u, v\\).\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 two linear forms are coprime. -/\ntheorem coprime_int (n : ℤ) :\n IsCoprime (3 * n + 1) (5 * n + 2) := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d1-t0014"}
{"id": "modular-arithmetic-power_residues-d1-t0015", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 1, "seed": 15, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(2n^2 + 4\\) on division by \\(8\\) is one of \\(4, 6\\).\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 remainder of the expression is one of the listed values. -/\ntheorem residues_of_power (n : ℕ) :\n (2 * n ^ 2 + 4) % 8 = 4 ∨ (2 * n ^ 2 + 4) % 8 = 6 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d1-t0015"}
{"id": "modular-arithmetic-congruence_chain-d2-t0016", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 2, "seed": 16, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 1 \\pmod{13}\\) and \\(y \\equiv 2 \\pmod{13}\\). Prove that \\(7xy + 5y^2 + 5x \\equiv 0 \\pmod{13}\\).\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 expression is congruent to the stated residue. -/\ntheorem congr_poly2 (x y : ℤ) (hx : x ≡ 1 [ZMOD 13]) (hy : y ≡ 2 [ZMOD 13]) :\n 7 * (x * y) + 5 * y ^ 2 + 5 * x ≡ 0 [ZMOD 13] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d2-t0016"}
{"id": "modular-arithmetic-divisibility-d2-t0017", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 2, "seed": 17, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(6\\) divides \\(13n^3 - 25n\\).\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 integer divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (6 : ℤ) ∣ 13 * n ^ 3 - 25 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d2-t0017"}
{"id": "modular-arithmetic-gcd_coprime-d2-t0018", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 2, "seed": 18, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the numbers \\(n + 5\\) and \\(9n + 46\\) are coprime.\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 two linear forms are coprime. -/\ntheorem coprime_nat (n : ℕ) :\n Nat.Coprime (n + 5) (9 * n + 46) := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d2-t0018"}
{"id": "modular-arithmetic-power_residues-d2-t0019", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 2, "seed": 19, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(12n^3 + 3\\) on division by \\(16\\) is one of \\(3, 7, 15\\).\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 remainder of the expression is one of the listed values. -/\ntheorem residues_of_power (n : ℕ) :\n (12 * n ^ 3 + 3) % 16 = 3 ∨ (12 * n ^ 3 + 3) % 16 = 7 ∨ (12 * n ^ 3 + 3) % 16 = 15 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d2-t0019"}
{"id": "modular-arithmetic-congruence_chain-d3-t0020", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 3, "seed": 20, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 9 \\pmod{11}\\) and \\(y \\equiv 4 \\pmod{11}\\). Prove that \\(x^{27} \\equiv 4 \\pmod{11}\\), and then that \\(x^{27} y^{13} + 1 \\equiv 4 \\pmod{11}\\).\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\n/-- A large power of x has the stated residue. -/\ntheorem congr_pow (x : ℤ) (h : x ≡ 9 [ZMOD 11]) :\n x ^ 27 ≡ 4 [ZMOD 11] := by\n sorry\n\n/-- The combined expression has the stated residue. -/\ntheorem congr_product (x y : ℤ) (hx : x ≡ 9 [ZMOD 11]) (hy : y ≡ 4 [ZMOD 11]) :\n x ^ 27 * y ^ 13 + 1 ≡ 4 [ZMOD 11] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d3-t0020"}
{"id": "modular-arithmetic-divisibility-d3-t0021", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 3, "seed": 21, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(42\\) divides \\(17n^7 - 143n\\). Prove it first for each prime factor of \\(42\\), then combine.\n\n## What to do\n\n`Solution.lean` in the working directory states 4 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 4 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\n/-- The prime 2 divides the polynomial value. -/\ntheorem dvd_by_2 (n : ℤ) :\n (2 : ℤ) ∣ 17 * n ^ 7 - 143 * n := by\n sorry\n\n/-- The prime 3 divides the polynomial value. -/\ntheorem dvd_by_3 (n : ℤ) :\n (3 : ℤ) ∣ 17 * n ^ 7 - 143 * n := by\n sorry\n\n/-- The prime 7 divides the polynomial value. -/\ntheorem dvd_by_7 (n : ℤ) :\n (7 : ℤ) ∣ 17 * n ^ 7 - 143 * n := by\n sorry\n\n/-- The product of the primes divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (42 : ℤ) ∣ 17 * n ^ 7 - 143 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d3-t0021"}
{"id": "modular-arithmetic-gcd_coprime-d3-t0022", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 3, "seed": 22, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(n\\) be a natural number and \\(g = \\gcd(3n + 5, 4n + 6)\\). Prove that \\(g\\) divides \\(2\\), and conclude that \\(g = 1\\) or \\(g = 2\\).\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\n/-- The gcd divides the determinant. -/\ntheorem gcd_dvd_det (n : ℕ) :\n Nat.gcd (3 * n + 5) (4 * n + 6) ∣ 2 := by\n sorry\n\n/-- The gcd is 1 or the prime determinant. -/\ntheorem gcd_one_or_prime (n : ℕ) :\n Nat.gcd (3 * n + 5) (4 * n + 6) = 1 ∨ Nat.gcd (3 * n + 5) (4 * n + 6) = 2 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d3-t0022"}
{"id": "modular-arithmetic-power_residues-d3-t0023", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 3, "seed": 23, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for all natural numbers \\(a\\) and \\(b\\), the number \\(3a^2 + b^2 + 2\\) never leaves remainder \\(0\\) on division by \\(8\\).\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 expression never leaves the stated remainder. -/\ntheorem residue_never_attained (a b : ℕ) :\n (3 * a ^ 2 + b ^ 2 + 2) % 8 ≠ 0 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d3-t0023"}
{"id": "modular-arithmetic-congruence_chain-d1-t0024", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 1, "seed": 24, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) be an integer with \\(x \\equiv 2 \\pmod{6}\\). Prove that \\(x^2 + 4x + 2 \\equiv 2 \\pmod{6}\\).\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 polynomial is congruent to the stated residue. -/\ntheorem congr_poly (x : ℤ) (h : x ≡ 2 [ZMOD 6]) :\n x ^ 2 + 4 * x + 2 ≡ 2 [ZMOD 6] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d1-t0024"}
{"id": "modular-arithmetic-divisibility-d1-t0025", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 1, "seed": 25, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(7\\) divides \\(19n^7 - 19n\\).\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 integer divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (7 : ℤ) ∣ 19 * n ^ 7 - 19 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d1-t0025"}
{"id": "modular-arithmetic-gcd_coprime-d1-t0026", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 1, "seed": 26, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the integers \\(2n + 3\\) and \\(5n + 7\\) are coprime, in the sense that \\(u(2n + 3) + v(5n + 7) = 1\\) for some integers \\(u, v\\).\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 two linear forms are coprime. -/\ntheorem coprime_int (n : ℤ) :\n IsCoprime (2 * n + 3) (5 * n + 7) := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d1-t0026"}
{"id": "modular-arithmetic-power_residues-d1-t0027", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 1, "seed": 27, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(2n^2 + 1\\) on division by \\(3\\) is one of \\(0, 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/-- The remainder of the expression is one of the listed values. -/\ntheorem residues_of_power (n : ℕ) :\n (2 * n ^ 2 + 1) % 3 = 0 ∨ (2 * n ^ 2 + 1) % 3 = 1 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d1-t0027"}
{"id": "modular-arithmetic-congruence_chain-d2-t0028", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 2, "seed": 28, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 3 \\pmod{6}\\) and \\(y \\equiv 5 \\pmod{6}\\). Prove that \\(4xy + 3y^2 + 5x \\equiv 0 \\pmod{6}\\).\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 expression is congruent to the stated residue. -/\ntheorem congr_poly2 (x y : ℤ) (hx : x ≡ 3 [ZMOD 6]) (hy : y ≡ 5 [ZMOD 6]) :\n 4 * (x * y) + 3 * y ^ 2 + 5 * x ≡ 0 [ZMOD 6] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d2-t0028"}
{"id": "modular-arithmetic-divisibility-d2-t0029", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 2, "seed": 29, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(30\\) divides \\(29n^5 + 31n\\).\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 integer divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (30 : ℤ) ∣ 29 * n ^ 5 + 31 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d2-t0029"}
{"id": "modular-arithmetic-gcd_coprime-d2-t0030", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 2, "seed": 30, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the numbers \\(3n + 5\\) and \\(2n + 3\\) are coprime.\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 two linear forms are coprime. -/\ntheorem coprime_nat (n : ℕ) :\n Nat.Coprime (3 * n + 5) (2 * n + 3) := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d2-t0030"}
{"id": "modular-arithmetic-power_residues-d2-t0031", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 2, "seed": 31, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(4n^4 + 8\\) on division by \\(9\\) is one of \\(0, 3, 6, 8\\).\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 remainder of the expression is one of the listed values. -/\ntheorem residues_of_power (n : ℕ) :\n (4 * n ^ 4 + 8) % 9 = 0 ∨ (4 * n ^ 4 + 8) % 9 = 3 ∨ (4 * n ^ 4 + 8) % 9 = 6 ∨ (4 * n ^ 4 + 8) % 9 = 8 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d2-t0031"}
{"id": "modular-arithmetic-congruence_chain-d3-t0032", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 3, "seed": 32, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 2 \\pmod{9}\\) and \\(y \\equiv 2 \\pmod{9}\\). Prove that \\(x^{14} \\equiv 4 \\pmod{9}\\), and then that \\(x^{14} y^{11} + 4 \\equiv 6 \\pmod{9}\\).\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\n/-- A large power of x has the stated residue. -/\ntheorem congr_pow (x : ℤ) (h : x ≡ 2 [ZMOD 9]) :\n x ^ 14 ≡ 4 [ZMOD 9] := by\n sorry\n\n/-- The combined expression has the stated residue. -/\ntheorem congr_product (x y : ℤ) (hx : x ≡ 2 [ZMOD 9]) (hy : y ≡ 2 [ZMOD 9]) :\n x ^ 14 * y ^ 11 + 4 ≡ 6 [ZMOD 9] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d3-t0032"}
{"id": "modular-arithmetic-divisibility-d3-t0033", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 3, "seed": 33, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(30\\) divides \\(11n^5 - 71n\\). Prove it first for each prime factor of \\(30\\), then combine.\n\n## What to do\n\n`Solution.lean` in the working directory states 4 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 4 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\n/-- The prime 2 divides the polynomial value. -/\ntheorem dvd_by_2 (n : ℤ) :\n (2 : ℤ) ∣ 11 * n ^ 5 - 71 * n := by\n sorry\n\n/-- The prime 3 divides the polynomial value. -/\ntheorem dvd_by_3 (n : ℤ) :\n (3 : ℤ) ∣ 11 * n ^ 5 - 71 * n := by\n sorry\n\n/-- The prime 5 divides the polynomial value. -/\ntheorem dvd_by_5 (n : ℤ) :\n (5 : ℤ) ∣ 11 * n ^ 5 - 71 * n := by\n sorry\n\n/-- The product of the primes divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (30 : ℤ) ∣ 11 * n ^ 5 - 71 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d3-t0033"}
{"id": "modular-arithmetic-gcd_coprime-d3-t0034", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 3, "seed": 34, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(n\\) be a natural number and \\(g = \\gcd(n + 5, 3n + 4)\\). Prove that \\(g\\) divides \\(11\\), and conclude that \\(g = 1\\) or \\(g = 11\\).\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\n/-- The gcd divides the determinant. -/\ntheorem gcd_dvd_det (n : ℕ) :\n Nat.gcd (n + 5) (3 * n + 4) ∣ 11 := by\n sorry\n\n/-- The gcd is 1 or the prime determinant. -/\ntheorem gcd_one_or_prime (n : ℕ) :\n Nat.gcd (n + 5) (3 * n + 4) = 1 ∨ Nat.gcd (n + 5) (3 * n + 4) = 11 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d3-t0034"}
{"id": "modular-arithmetic-power_residues-d3-t0035", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 3, "seed": 35, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for all natural numbers \\(a\\) and \\(b\\), the number \\(3a^2 + 3b^2\\) never leaves remainder \\(1\\) on division by \\(8\\).\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 expression never leaves the stated remainder. -/\ntheorem residue_never_attained (a b : ℕ) :\n (3 * a ^ 2 + 3 * b ^ 2) % 8 ≠ 1 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d3-t0035"}
{"id": "modular-arithmetic-congruence_chain-d1-t0036", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 1, "seed": 36, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) be an integer with \\(x \\equiv 3 \\pmod{5}\\). Prove that \\(x^2 + 2x + 5 \\equiv 0 \\pmod{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/-- The polynomial is congruent to the stated residue. -/\ntheorem congr_poly (x : ℤ) (h : x ≡ 3 [ZMOD 5]) :\n x ^ 2 + 2 * x + 5 ≡ 0 [ZMOD 5] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d1-t0036"}
{"id": "modular-arithmetic-divisibility-d1-t0037", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 1, "seed": 37, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(6\\) divides \\(19n^3 - 37n\\).\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 integer divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (6 : ℤ) ∣ 19 * n ^ 3 - 37 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d1-t0037"}
{"id": "modular-arithmetic-gcd_coprime-d1-t0038", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 1, "seed": 38, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the integers \\(n + 4\\) and \\(5n + 19\\) are coprime, in the sense that \\(u(n + 4) + v(5n + 19) = 1\\) for some integers \\(u, v\\).\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 two linear forms are coprime. -/\ntheorem coprime_int (n : ℤ) :\n IsCoprime (n + 4) (5 * n + 19) := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d1-t0038"}
{"id": "modular-arithmetic-power_residues-d1-t0039", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 1, "seed": 39, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(3n^2 + 2\\) on division by \\(7\\) is one of \\(0, 1, 2, 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/-- The remainder of the expression is one of the listed values. -/\ntheorem residues_of_power (n : ℕ) :\n (3 * n ^ 2 + 2) % 7 = 0 ∨ (3 * n ^ 2 + 2) % 7 = 1 ∨ (3 * n ^ 2 + 2) % 7 = 2 ∨ (3 * n ^ 2 + 2) % 7 = 5 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d1-t0039"}
{"id": "modular-arithmetic-congruence_chain-d2-t0040", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 2, "seed": 40, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 5 \\pmod{8}\\) and \\(y \\equiv 0 \\pmod{8}\\). Prove that \\(2xy + 6y^2 + 4x \\equiv 4 \\pmod{8}\\).\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 expression is congruent to the stated residue. -/\ntheorem congr_poly2 (x y : ℤ) (hx : x ≡ 5 [ZMOD 8]) (hy : y ≡ 0 [ZMOD 8]) :\n 2 * (x * y) + 6 * y ^ 2 + 4 * x ≡ 4 [ZMOD 8] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d2-t0040"}
{"id": "modular-arithmetic-divisibility-d2-t0041", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 2, "seed": 41, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(30\\) divides \\(31n^5 - 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 integer divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (30 : ℤ) ∣ 31 * n ^ 5 - n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d2-t0041"}
{"id": "modular-arithmetic-gcd_coprime-d2-t0042", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 2, "seed": 42, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the numbers \\(3n + 7\\) and \\(4n + 9\\) are coprime.\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 two linear forms are coprime. -/\ntheorem coprime_nat (n : ℕ) :\n Nat.Coprime (3 * n + 7) (4 * n + 9) := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d2-t0042"}
{"id": "modular-arithmetic-power_residues-d2-t0043", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 2, "seed": 43, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(7n^4 + 3\\) on division by \\(9\\) is one of \\(1, 3, 4, 7\\).\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 remainder of the expression is one of the listed values. -/\ntheorem residues_of_power (n : ℕ) :\n (7 * n ^ 4 + 3) % 9 = 1 ∨ (7 * n ^ 4 + 3) % 9 = 3 ∨ (7 * n ^ 4 + 3) % 9 = 4 ∨ (7 * n ^ 4 + 3) % 9 = 7 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d2-t0043"}
{"id": "modular-arithmetic-congruence_chain-d3-t0044", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 3, "seed": 44, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 7 \\pmod{9}\\) and \\(y \\equiv 5 \\pmod{9}\\). Prove that \\(x^{31} \\equiv 7 \\pmod{9}\\), and then that \\(x^{31} y^{23} + 2 \\equiv 7 \\pmod{9}\\).\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\n/-- A large power of x has the stated residue. -/\ntheorem congr_pow (x : ℤ) (h : x ≡ 7 [ZMOD 9]) :\n x ^ 31 ≡ 7 [ZMOD 9] := by\n sorry\n\n/-- The combined expression has the stated residue. -/\ntheorem congr_product (x y : ℤ) (hx : x ≡ 7 [ZMOD 9]) (hy : y ≡ 5 [ZMOD 9]) :\n x ^ 31 * y ^ 23 + 2 ≡ 7 [ZMOD 9] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d3-t0044"}
{"id": "modular-arithmetic-divisibility-d3-t0045", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 3, "seed": 45, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(30\\) divides \\(31n^5 - 121n\\). Prove it first for each prime factor of \\(30\\), then combine.\n\n## What to do\n\n`Solution.lean` in the working directory states 4 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 4 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\n/-- The prime 2 divides the polynomial value. -/\ntheorem dvd_by_2 (n : ℤ) :\n (2 : ℤ) ∣ 31 * n ^ 5 - 121 * n := by\n sorry\n\n/-- The prime 3 divides the polynomial value. -/\ntheorem dvd_by_3 (n : ℤ) :\n (3 : ℤ) ∣ 31 * n ^ 5 - 121 * n := by\n sorry\n\n/-- The prime 5 divides the polynomial value. -/\ntheorem dvd_by_5 (n : ℤ) :\n (5 : ℤ) ∣ 31 * n ^ 5 - 121 * n := by\n sorry\n\n/-- The product of the primes divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (30 : ℤ) ∣ 31 * n ^ 5 - 121 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d3-t0045"}
{"id": "modular-arithmetic-gcd_coprime-d3-t0046", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 3, "seed": 46, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(n\\) be a natural number and \\(g = \\gcd(n + 7, 2n + 7)\\). Prove that \\(g\\) divides \\(7\\), and conclude that \\(g = 1\\) or \\(g = 7\\).\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\n/-- The gcd divides the determinant. -/\ntheorem gcd_dvd_det (n : ℕ) :\n Nat.gcd (n + 7) (2 * n + 7) ∣ 7 := by\n sorry\n\n/-- The gcd is 1 or the prime determinant. -/\ntheorem gcd_one_or_prime (n : ℕ) :\n Nat.gcd (n + 7) (2 * n + 7) = 1 ∨ Nat.gcd (n + 7) (2 * n + 7) = 7 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d3-t0046"}
{"id": "modular-arithmetic-power_residues-d3-t0047", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 3, "seed": 47, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for all natural numbers \\(a\\) and \\(b\\), the number \\(a^2 + 3b^2 + 3\\) never leaves remainder \\(1\\) on division by \\(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/-- The expression never leaves the stated remainder. -/\ntheorem residue_never_attained (a b : ℕ) :\n (a ^ 2 + 3 * b ^ 2 + 3) % 4 ≠ 1 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d3-t0047"}
{"id": "modular-arithmetic-congruence_chain-d1-t0048", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 1, "seed": 48, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) be an integer with \\(x \\equiv 4 \\pmod{12}\\). Prove that \\(5x^2 + 3x + 3 \\equiv 11 \\pmod{12}\\).\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 polynomial is congruent to the stated residue. -/\ntheorem congr_poly (x : ℤ) (h : x ≡ 4 [ZMOD 12]) :\n 5 * x ^ 2 + 3 * x + 3 ≡ 11 [ZMOD 12] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d1-t0048"}
{"id": "modular-arithmetic-divisibility-d1-t0049", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 1, "seed": 49, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(3\\) divides \\(22n^3 - 22n\\).\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 integer divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (3 : ℤ) ∣ 22 * n ^ 3 - 22 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d1-t0049"}
{"id": "modular-arithmetic-gcd_coprime-d1-t0050", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 1, "seed": 50, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the integers \\(2n + 7\\) and \\(9n + 31\\) are coprime, in the sense that \\(u(2n + 7) + v(9n + 31) = 1\\) for some integers \\(u, v\\).\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 two linear forms are coprime. -/\ntheorem coprime_int (n : ℤ) :\n IsCoprime (2 * n + 7) (9 * n + 31) := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d1-t0050"}
{"id": "modular-arithmetic-power_residues-d1-t0051", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 1, "seed": 51, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(n^2\\) on division by \\(7\\) is one of \\(0, 1, 2, 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/-- The remainder of the expression is one of the listed values. -/\ntheorem residues_of_power (n : ℕ) :\n (n ^ 2) % 7 = 0 ∨ (n ^ 2) % 7 = 1 ∨ (n ^ 2) % 7 = 2 ∨ (n ^ 2) % 7 = 4 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d1-t0051"}
{"id": "modular-arithmetic-congruence_chain-d2-t0052", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 2, "seed": 52, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 6 \\pmod{9}\\) and \\(y \\equiv 1 \\pmod{9}\\). Prove that \\(xy + 5y^2 + 3x \\equiv 2 \\pmod{9}\\).\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 expression is congruent to the stated residue. -/\ntheorem congr_poly2 (x y : ℤ) (hx : x ≡ 6 [ZMOD 9]) (hy : y ≡ 1 [ZMOD 9]) :\n (x * y) + 5 * y ^ 2 + 3 * x ≡ 2 [ZMOD 9] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d2-t0052"}
{"id": "modular-arithmetic-divisibility-d2-t0053", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 2, "seed": 53, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(42\\) divides \\(n^7 - 127n\\).\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 integer divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (42 : ℤ) ∣ n ^ 7 - 127 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d2-t0053"}
{"id": "modular-arithmetic-gcd_coprime-d2-t0054", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 2, "seed": 54, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the numbers \\(5n + 2\\) and \\(2n + 1\\) are coprime.\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 two linear forms are coprime. -/\ntheorem coprime_nat (n : ℕ) :\n Nat.Coprime (5 * n + 2) (2 * n + 1) := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d2-t0054"}
{"id": "modular-arithmetic-power_residues-d2-t0055", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 2, "seed": 55, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(7n^4 + 3\\) on division by \\(11\\) is one of \\(0, 2, 3, 5, 9, 10\\).\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 remainder of the expression is one of the listed values. -/\ntheorem residues_of_power (n : ℕ) :\n (7 * n ^ 4 + 3) % 11 = 0 ∨ (7 * n ^ 4 + 3) % 11 = 2 ∨ (7 * n ^ 4 + 3) % 11 = 3 ∨ (7 * n ^ 4 + 3) % 11 = 5 ∨ (7 * n ^ 4 + 3) % 11 = 9 ∨ (7 * n ^ 4 + 3) % 11 = 10 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d2-t0055"}
{"id": "modular-arithmetic-congruence_chain-d3-t0056", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 3, "seed": 56, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 3 \\pmod{11}\\) and \\(y \\equiv 8 \\pmod{11}\\). Prove that \\(x^{37} \\equiv 9 \\pmod{11}\\), and then that \\(x^{37} y^{10} + 6 \\equiv 4 \\pmod{11}\\).\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\n/-- A large power of x has the stated residue. -/\ntheorem congr_pow (x : ℤ) (h : x ≡ 3 [ZMOD 11]) :\n x ^ 37 ≡ 9 [ZMOD 11] := by\n sorry\n\n/-- The combined expression has the stated residue. -/\ntheorem congr_product (x y : ℤ) (hx : x ≡ 3 [ZMOD 11]) (hy : y ≡ 8 [ZMOD 11]) :\n x ^ 37 * y ^ 10 + 6 ≡ 4 [ZMOD 11] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d3-t0056"}
{"id": "modular-arithmetic-divisibility-d3-t0057", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 3, "seed": 57, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(42\\) divides \\(23n^7 + 61n\\). Prove it first for each prime factor of \\(42\\), then combine.\n\n## What to do\n\n`Solution.lean` in the working directory states 4 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 4 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\n/-- The prime 2 divides the polynomial value. -/\ntheorem dvd_by_2 (n : ℤ) :\n (2 : ℤ) ∣ 23 * n ^ 7 + 61 * n := by\n sorry\n\n/-- The prime 3 divides the polynomial value. -/\ntheorem dvd_by_3 (n : ℤ) :\n (3 : ℤ) ∣ 23 * n ^ 7 + 61 * n := by\n sorry\n\n/-- The prime 7 divides the polynomial value. -/\ntheorem dvd_by_7 (n : ℤ) :\n (7 : ℤ) ∣ 23 * n ^ 7 + 61 * n := by\n sorry\n\n/-- The product of the primes divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (42 : ℤ) ∣ 23 * n ^ 7 + 61 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d3-t0057"}
{"id": "modular-arithmetic-gcd_coprime-d3-t0058", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 3, "seed": 58, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(n\\) be a natural number and \\(g = \\gcd(5n + 6, 3n + 4)\\). Prove that \\(g\\) divides \\(2\\), and conclude that \\(g = 1\\) or \\(g = 2\\).\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\n/-- The gcd divides the determinant. -/\ntheorem gcd_dvd_det (n : ℕ) :\n Nat.gcd (5 * n + 6) (3 * n + 4) ∣ 2 := by\n sorry\n\n/-- The gcd is 1 or the prime determinant. -/\ntheorem gcd_one_or_prime (n : ℕ) :\n Nat.gcd (5 * n + 6) (3 * n + 4) = 1 ∨ Nat.gcd (5 * n + 6) (3 * n + 4) = 2 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d3-t0058"}
{"id": "modular-arithmetic-power_residues-d3-t0059", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 3, "seed": 59, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for all natural numbers \\(a\\) and \\(b\\), the number \\(2a^3 + 2b^3 + 6\\) never leaves remainder \\(0\\) on division by \\(7\\).\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 expression never leaves the stated remainder. -/\ntheorem residue_never_attained (a b : ℕ) :\n (2 * a ^ 3 + 2 * b ^ 3 + 6) % 7 ≠ 0 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d3-t0059"}
{"id": "modular-arithmetic-congruence_chain-d1-t0060", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 1, "seed": 60, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) be an integer with \\(x \\equiv 4 \\pmod{9}\\). Prove that \\(7x^2 + x + 1 \\equiv 0 \\pmod{9}\\).\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 polynomial is congruent to the stated residue. -/\ntheorem congr_poly (x : ℤ) (h : x ≡ 4 [ZMOD 9]) :\n 7 * x ^ 2 + x + 1 ≡ 0 [ZMOD 9] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d1-t0060"}
{"id": "modular-arithmetic-divisibility-d1-t0061", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 1, "seed": 61, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(3\\) divides \\(31n^7 - 28n\\).\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 integer divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (3 : ℤ) ∣ 31 * n ^ 7 - 28 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d1-t0061"}
{"id": "modular-arithmetic-gcd_coprime-d1-t0062", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 1, "seed": 62, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the integers \\(n + 1\\) and \\(5n + 6\\) are coprime, in the sense that \\(u(n + 1) + v(5n + 6) = 1\\) for some integers \\(u, v\\).\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 two linear forms are coprime. -/\ntheorem coprime_int (n : ℤ) :\n IsCoprime (n + 1) (5 * n + 6) := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d1-t0062"}
{"id": "modular-arithmetic-power_residues-d1-t0063", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 1, "seed": 63, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(n^2 + 2\\) on division by \\(9\\) is one of \\(0, 2, 3, 6\\).\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 remainder of the expression is one of the listed values. -/\ntheorem residues_of_power (n : ℕ) :\n (n ^ 2 + 2) % 9 = 0 ∨ (n ^ 2 + 2) % 9 = 2 ∨ (n ^ 2 + 2) % 9 = 3 ∨ (n ^ 2 + 2) % 9 = 6 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d1-t0063"}
{"id": "modular-arithmetic-congruence_chain-d2-t0064", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 2, "seed": 64, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 0 \\pmod{10}\\) and \\(y \\equiv 6 \\pmod{10}\\). Prove that \\(2xy + y^2 + 7x \\equiv 6 \\pmod{10}\\).\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 expression is congruent to the stated residue. -/\ntheorem congr_poly2 (x y : ℤ) (hx : x ≡ 0 [ZMOD 10]) (hy : y ≡ 6 [ZMOD 10]) :\n 2 * (x * y) + y ^ 2 + 7 * x ≡ 6 [ZMOD 10] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d2-t0064"}
{"id": "modular-arithmetic-divisibility-d2-t0065", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 2, "seed": 65, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(42\\) divides \\(29n^7 - 71n\\).\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 integer divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (42 : ℤ) ∣ 29 * n ^ 7 - 71 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d2-t0065"}
{"id": "modular-arithmetic-gcd_coprime-d2-t0066", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 2, "seed": 66, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the numbers \\(4n + 5\\) and \\(n + 1\\) are coprime.\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 two linear forms are coprime. -/\ntheorem coprime_nat (n : ℕ) :\n Nat.Coprime (4 * n + 5) (n + 1) := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d2-t0066"}
{"id": "modular-arithmetic-power_residues-d2-t0067", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 2, "seed": 67, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(8n^3 + 3\\) on division by \\(9\\) is one of \\(2, 3, 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/-- The remainder of the expression is one of the listed values. -/\ntheorem residues_of_power (n : ℕ) :\n (8 * n ^ 3 + 3) % 9 = 2 ∨ (8 * n ^ 3 + 3) % 9 = 3 ∨ (8 * n ^ 3 + 3) % 9 = 4 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d2-t0067"}
{"id": "modular-arithmetic-congruence_chain-d3-t0068", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 3, "seed": 68, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 5 \\pmod{8}\\) and \\(y \\equiv 4 \\pmod{8}\\). Prove that \\(x^{28} \\equiv 1 \\pmod{8}\\), and then that \\(x^{28} y^{11} + 6 \\equiv 6 \\pmod{8}\\).\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\n/-- A large power of x has the stated residue. -/\ntheorem congr_pow (x : ℤ) (h : x ≡ 5 [ZMOD 8]) :\n x ^ 28 ≡ 1 [ZMOD 8] := by\n sorry\n\n/-- The combined expression has the stated residue. -/\ntheorem congr_product (x y : ℤ) (hx : x ≡ 5 [ZMOD 8]) (hy : y ≡ 4 [ZMOD 8]) :\n x ^ 28 * y ^ 11 + 6 ≡ 6 [ZMOD 8] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d3-t0068"}
{"id": "modular-arithmetic-divisibility-d3-t0069", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 3, "seed": 69, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(42\\) divides \\(17n^7 + 109n\\). Prove it first for each prime factor of \\(42\\), then combine.\n\n## What to do\n\n`Solution.lean` in the working directory states 4 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 4 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\n/-- The prime 2 divides the polynomial value. -/\ntheorem dvd_by_2 (n : ℤ) :\n (2 : ℤ) ∣ 17 * n ^ 7 + 109 * n := by\n sorry\n\n/-- The prime 3 divides the polynomial value. -/\ntheorem dvd_by_3 (n : ℤ) :\n (3 : ℤ) ∣ 17 * n ^ 7 + 109 * n := by\n sorry\n\n/-- The prime 7 divides the polynomial value. -/\ntheorem dvd_by_7 (n : ℤ) :\n (7 : ℤ) ∣ 17 * n ^ 7 + 109 * n := by\n sorry\n\n/-- The product of the primes divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (42 : ℤ) ∣ 17 * n ^ 7 + 109 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d3-t0069"}
{"id": "modular-arithmetic-gcd_coprime-d3-t0070", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 3, "seed": 70, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(n\\) be a natural number and \\(g = \\gcd(3n + 9, 3n + 8)\\). Prove that \\(g\\) divides \\(3\\), and conclude that \\(g = 1\\) or \\(g = 3\\).\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\n/-- The gcd divides the determinant. -/\ntheorem gcd_dvd_det (n : ℕ) :\n Nat.gcd (3 * n + 9) (3 * n + 8) ∣ 3 := by\n sorry\n\n/-- The gcd is 1 or the prime determinant. -/\ntheorem gcd_one_or_prime (n : ℕ) :\n Nat.gcd (3 * n + 9) (3 * n + 8) = 1 ∨ Nat.gcd (3 * n + 9) (3 * n + 8) = 3 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d3-t0070"}
{"id": "modular-arithmetic-power_residues-d3-t0071", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 3, "seed": 71, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for all natural numbers \\(a\\) and \\(b\\), the number \\(3a^2 + 2b^2 + 5\\) never leaves remainder \\(0\\) on division by \\(9\\).\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 expression never leaves the stated remainder. -/\ntheorem residue_never_attained (a b : ℕ) :\n (3 * a ^ 2 + 2 * b ^ 2 + 5) % 9 ≠ 0 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d3-t0071"}
{"id": "modular-arithmetic-congruence_chain-d1-t0072", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 1, "seed": 72, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) be an integer with \\(x \\equiv 4 \\pmod{7}\\). Prove that \\(3x^2 + 2x + 4 \\equiv 4 \\pmod{7}\\).\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 polynomial is congruent to the stated residue. -/\ntheorem congr_poly (x : ℤ) (h : x ≡ 4 [ZMOD 7]) :\n 3 * x ^ 2 + 2 * x + 4 ≡ 4 [ZMOD 7] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d1-t0072"}
{"id": "modular-arithmetic-divisibility-d1-t0073", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 1, "seed": 73, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(6\\) divides \\(n^3 + 17n\\).\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 integer divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (6 : ℤ) ∣ n ^ 3 + 17 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d1-t0073"}
{"id": "modular-arithmetic-gcd_coprime-d1-t0074", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 1, "seed": 74, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the integers \\(2n + 9\\) and \\(3n + 14\\) are coprime, in the sense that \\(u(2n + 9) + v(3n + 14) = 1\\) for some integers \\(u, v\\).\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 two linear forms are coprime. -/\ntheorem coprime_int (n : ℤ) :\n IsCoprime (2 * n + 9) (3 * n + 14) := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d1-t0074"}
{"id": "modular-arithmetic-power_residues-d1-t0075", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 1, "seed": 75, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(2n^2\\) on division by \\(5\\) is one of \\(0, 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/-- The remainder of the expression is one of the listed values. -/\ntheorem residues_of_power (n : ℕ) :\n (2 * n ^ 2) % 5 = 0 ∨ (2 * n ^ 2) % 5 = 2 ∨ (2 * n ^ 2) % 5 = 3 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d1-t0075"}
{"id": "modular-arithmetic-congruence_chain-d2-t0076", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 2, "seed": 76, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 0 \\pmod{13}\\) and \\(y \\equiv 9 \\pmod{13}\\). Prove that \\(5xy + 2y^2 + 2x \\equiv 6 \\pmod{13}\\).\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 expression is congruent to the stated residue. -/\ntheorem congr_poly2 (x y : ℤ) (hx : x ≡ 0 [ZMOD 13]) (hy : y ≡ 9 [ZMOD 13]) :\n 5 * (x * y) + 2 * y ^ 2 + 2 * x ≡ 6 [ZMOD 13] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d2-t0076"}
{"id": "modular-arithmetic-divisibility-d2-t0077", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 2, "seed": 77, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(30\\) divides \\(31n^5 - 61n\\).\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 integer divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (30 : ℤ) ∣ 31 * n ^ 5 - 61 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d2-t0077"}
{"id": "modular-arithmetic-gcd_coprime-d2-t0078", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 2, "seed": 78, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the numbers \\(2n + 5\\) and \\(3n + 7\\) are coprime.\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 two linear forms are coprime. -/\ntheorem coprime_nat (n : ℕ) :\n Nat.Coprime (2 * n + 5) (3 * n + 7) := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d2-t0078"}
{"id": "modular-arithmetic-power_residues-d2-t0079", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 2, "seed": 79, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(9n^4 + 5\\) on division by \\(11\\) is one of \\(3, 5, 6, 8, 9, 10\\).\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 remainder of the expression is one of the listed values. -/\ntheorem residues_of_power (n : ℕ) :\n (9 * n ^ 4 + 5) % 11 = 3 ∨ (9 * n ^ 4 + 5) % 11 = 5 ∨ (9 * n ^ 4 + 5) % 11 = 6 ∨ (9 * n ^ 4 + 5) % 11 = 8 ∨ (9 * n ^ 4 + 5) % 11 = 9 ∨ (9 * n ^ 4 + 5) % 11 = 10 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d2-t0079"}
{"id": "modular-arithmetic-congruence_chain-d3-t0080", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 3, "seed": 80, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 2 \\pmod{10}\\) and \\(y \\equiv 8 \\pmod{10}\\). Prove that \\(x^{8} \\equiv 6 \\pmod{10}\\), and then that \\(x^{8} y^{25} + 8 \\equiv 6 \\pmod{10}\\).\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\n/-- A large power of x has the stated residue. -/\ntheorem congr_pow (x : ℤ) (h : x ≡ 2 [ZMOD 10]) :\n x ^ 8 ≡ 6 [ZMOD 10] := by\n sorry\n\n/-- The combined expression has the stated residue. -/\ntheorem congr_product (x y : ℤ) (hx : x ≡ 2 [ZMOD 10]) (hy : y ≡ 8 [ZMOD 10]) :\n x ^ 8 * y ^ 25 + 8 ≡ 6 [ZMOD 10] := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d3-t0080"}
{"id": "modular-arithmetic-divisibility-d3-t0081", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 3, "seed": 81, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(42\\) divides \\(19n^7 - 19n\\). Prove it first for each prime factor of \\(42\\), then combine.\n\n## What to do\n\n`Solution.lean` in the working directory states 4 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 4 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\n/-- The prime 2 divides the polynomial value. -/\ntheorem dvd_by_2 (n : ℤ) :\n (2 : ℤ) ∣ 19 * n ^ 7 - 19 * n := by\n sorry\n\n/-- The prime 3 divides the polynomial value. -/\ntheorem dvd_by_3 (n : ℤ) :\n (3 : ℤ) ∣ 19 * n ^ 7 - 19 * n := by\n sorry\n\n/-- The prime 7 divides the polynomial value. -/\ntheorem dvd_by_7 (n : ℤ) :\n (7 : ℤ) ∣ 19 * n ^ 7 - 19 * n := by\n sorry\n\n/-- The product of the primes divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n (42 : ℤ) ∣ 19 * n ^ 7 - 19 * n := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d3-t0081"}
{"id": "modular-arithmetic-gcd_coprime-d3-t0082", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 3, "seed": 82, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(n\\) be a natural number and \\(g = \\gcd(n + 6, n + 1)\\). Prove that \\(g\\) divides \\(5\\), and conclude that \\(g = 1\\) or \\(g = 5\\).\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\n/-- The gcd divides the determinant. -/\ntheorem gcd_dvd_det (n : ℕ) :\n Nat.gcd (n + 6) (n + 1) ∣ 5 := by\n sorry\n\n/-- The gcd is 1 or the prime determinant. -/\ntheorem gcd_one_or_prime (n : ℕ) :\n Nat.gcd (n + 6) (n + 1) = 1 ∨ Nat.gcd (n + 6) (n + 1) = 5 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d3-t0082"}
{"id": "modular-arithmetic-power_residues-d3-t0083", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 3, "seed": 83, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for all natural numbers \\(a\\) and \\(b\\), the number \\(2a^2 + 2b^2 + 2\\) never leaves remainder \\(5\\) on division by \\(9\\).\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 expression never leaves the stated remainder. -/\ntheorem residue_never_attained (a b : ℕ) :\n (2 * a ^ 2 + 2 * b ^ 2 + 2) % 9 ≠ 5 := by\n sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d3-t0083"}