File size: 32,778 Bytes
7931c0c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{"id": "modular-arithmetic-congruence_chain-d1-e0000", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 1, "seed": 10000, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) be an integer with \\(x \\equiv 5 \\pmod{6}\\). Prove that \\(6x^2 + 3x + 5 \\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 ≡ 5 [ZMOD 6]) :\n    6 * x ^ 2 + 3 * x + 5 ≡ 2 [ZMOD 6] := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d1-e0000"}
{"id": "modular-arithmetic-divisibility-d1-e0001", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 1, "seed": 10001, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(6\\) divides \\(13n^3 - 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    (6 : ℤ) ∣ 13 * n ^ 3 - 19 * n := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d1-e0001"}
{"id": "modular-arithmetic-gcd_coprime-d1-e0002", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 1, "seed": 10002, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the integers \\(5n + 2\\) and \\(8n + 3\\) are coprime, in the sense that \\(u(5n + 2) + v(8n + 3) = 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 (5 * n + 2) (8 * n + 3) := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d1-e0002"}
{"id": "modular-arithmetic-power_residues-d1-e0003", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 1, "seed": 10003, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(7n^2\\) on division by \\(8\\) is one of \\(0, 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 ^ 2) % 8 = 0 ∨ (7 * n ^ 2) % 8 = 4 ∨ (7 * n ^ 2) % 8 = 7 := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d1-e0003"}
{"id": "modular-arithmetic-congruence_chain-d2-e0004", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 2, "seed": 10004, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 7 \\pmod{13}\\) and \\(y \\equiv 4 \\pmod{13}\\). Prove that \\(4xy + 3y^2 + 7x \\equiv 1 \\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 ≡ 7 [ZMOD 13]) (hy : y ≡ 4 [ZMOD 13]) :\n    4 * (x * y) + 3 * y ^ 2 + 7 * x ≡ 1 [ZMOD 13] := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d2-e0004"}
{"id": "modular-arithmetic-divisibility-d2-e0005", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 2, "seed": 10005, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(42\\) divides \\(25n^7 + 101n\\).\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 : ℤ) ∣ 25 * n ^ 7 + 101 * n := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d2-e0005"}
{"id": "modular-arithmetic-gcd_coprime-d2-e0006", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 2, "seed": 10006, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the numbers \\(3n + 1\\) and \\(7n + 2\\) 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) (7 * n + 2) := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d2-e0006"}
{"id": "modular-arithmetic-power_residues-d2-e0007", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 2, "seed": 10007, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(4n^3 + 4\\) on division by \\(9\\) is one of \\(0, 4, 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 ^ 3 + 4) % 9 = 0 ∨ (4 * n ^ 3 + 4) % 9 = 4 ∨ (4 * n ^ 3 + 4) % 9 = 8 := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d2-e0007"}
{"id": "modular-arithmetic-congruence_chain-d3-e0008", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 3, "seed": 10008, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 3 \\pmod{10}\\) and \\(y \\equiv 4 \\pmod{10}\\). Prove that \\(x^{18} \\equiv 9 \\pmod{10}\\), and then that \\(x^{18} y^{12} + 4 \\equiv 8 \\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 ≡ 3 [ZMOD 10]) :\n    x ^ 18 ≡ 9 [ZMOD 10] := by\n  sorry\n\n/-- The combined expression has the stated residue. -/\ntheorem congr_product (x y : ℤ) (hx : x ≡ 3 [ZMOD 10]) (hy : y ≡ 4 [ZMOD 10]) :\n    x ^ 18 * y ^ 12 + 4 ≡ 8 [ZMOD 10] := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d3-e0008"}
{"id": "modular-arithmetic-divisibility-d3-e0009", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 3, "seed": 10009, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(42\\) divides \\(29n^7 - 155n\\). 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 : ℤ) ∣ 29 * n ^ 7 - 155 * n := by\n  sorry\n\n/-- The prime 3 divides the polynomial value. -/\ntheorem dvd_by_3 (n : ℤ) :\n    (3 : ℤ) ∣ 29 * n ^ 7 - 155 * n := by\n  sorry\n\n/-- The prime 7 divides the polynomial value. -/\ntheorem dvd_by_7 (n : ℤ) :\n    (7 : ℤ) ∣ 29 * n ^ 7 - 155 * n := by\n  sorry\n\n/-- The product of the primes divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n    (42 : ℤ) ∣ 29 * n ^ 7 - 155 * n := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d3-e0009"}
{"id": "modular-arithmetic-gcd_coprime-d3-e0010", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 3, "seed": 10010, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(n\\) be a natural number and \\(g = \\gcd(5n + 7, 6n + 9)\\). 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 (5 * n + 7) (6 * n + 9) ∣ 3 := by\n  sorry\n\n/-- The gcd is 1 or the prime determinant. -/\ntheorem gcd_one_or_prime (n : ℕ) :\n    Nat.gcd (5 * n + 7) (6 * n + 9) = 1 ∨ Nat.gcd (5 * n + 7) (6 * n + 9) = 3 := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d3-e0010"}
{"id": "modular-arithmetic-power_residues-d3-e0011", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 3, "seed": 10011, "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 + 6\\) never leaves remainder \\(8\\) 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    (a ^ 2 + 3 * b ^ 2 + 6) % 9 ≠ 8 := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d3-e0011"}
{"id": "modular-arithmetic-congruence_chain-d1-e0012", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 1, "seed": 10012, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) be an integer with \\(x \\equiv 1 \\pmod{7}\\). Prove that \\(6x^2 + 7x + 4 \\equiv 3 \\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 ≡ 1 [ZMOD 7]) :\n    6 * x ^ 2 + 7 * x + 4 ≡ 3 [ZMOD 7] := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d1-e0012"}
{"id": "modular-arithmetic-divisibility-d1-e0013", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 1, "seed": 10013, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(30\\) divides \\(31n^5 + 29n\\).\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 + 29 * n := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d1-e0013"}
{"id": "modular-arithmetic-gcd_coprime-d1-e0014", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 1, "seed": 10014, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the integers \\(n + 8\\) and \\(3n + 23\\) are coprime, in the sense that \\(u(n + 8) + v(3n + 23) = 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 + 23) := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d1-e0014"}
{"id": "modular-arithmetic-power_residues-d1-e0015", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 1, "seed": 10015, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(4n^2 + 3\\) on division by \\(5\\) 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    (4 * n ^ 2 + 3) % 5 = 2 ∨ (4 * n ^ 2 + 3) % 5 = 3 ∨ (4 * n ^ 2 + 3) % 5 = 4 := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d1-e0015"}
{"id": "modular-arithmetic-congruence_chain-d2-e0016", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 2, "seed": 10016, "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 8 \\pmod{9}\\). Prove that \\(3xy + y^2 + 3x \\equiv 1 \\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 ≡ 2 [ZMOD 9]) (hy : y ≡ 8 [ZMOD 9]) :\n    3 * (x * y) + y ^ 2 + 3 * x ≡ 1 [ZMOD 9] := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d2-e0016"}
{"id": "modular-arithmetic-divisibility-d2-e0017", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 2, "seed": 10017, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(6\\) divides \\(29n^3 - 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    (6 : ℤ) ∣ 29 * n ^ 3 - 35 * n := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d2-e0017"}
{"id": "modular-arithmetic-gcd_coprime-d2-e0018", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 2, "seed": 10018, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the numbers \\(2n + 5\\) and \\(9n + 23\\) 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) (9 * n + 23) := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d2-e0018"}
{"id": "modular-arithmetic-power_residues-d2-e0019", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 2, "seed": 10019, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every natural number \\(n\\), the remainder of \\(2n^4 + 4\\) on division by \\(7\\) is one of \\(1, 4, 5, 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 ^ 4 + 4) % 7 = 1 ∨ (2 * n ^ 4 + 4) % 7 = 4 ∨ (2 * n ^ 4 + 4) % 7 = 5 ∨ (2 * n ^ 4 + 4) % 7 = 6 := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d2-e0019"}
{"id": "modular-arithmetic-congruence_chain-d3-e0020", "env": "modular-arithmetic", "msc": "11", "family": "congruence_chain", "difficulty": 3, "seed": 10020, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(x\\) and \\(y\\) be integers with \\(x \\equiv 5 \\pmod{12}\\) and \\(y \\equiv 11 \\pmod{12}\\). Prove that \\(x^{36} \\equiv 1 \\pmod{12}\\), and then that \\(x^{36} y^{39} + 6 \\equiv 5 \\pmod{12}\\).\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 12]) :\n    x ^ 36 ≡ 1 [ZMOD 12] := by\n  sorry\n\n/-- The combined expression has the stated residue. -/\ntheorem congr_product (x y : ℤ) (hx : x ≡ 5 [ZMOD 12]) (hy : y ≡ 11 [ZMOD 12]) :\n    x ^ 36 * y ^ 39 + 6 ≡ 5 [ZMOD 12] := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-congruence_chain-d3-e0020"}
{"id": "modular-arithmetic-divisibility-d3-e0021", "env": "modular-arithmetic", "msc": "11", "family": "divisibility", "difficulty": 3, "seed": 10021, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nProve that for every integer \\(n\\), the number \\(42\\) divides \\(n^7 - n\\). 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 : ℤ) ∣ n ^ 7 - n := by\n  sorry\n\n/-- The prime 3 divides the polynomial value. -/\ntheorem dvd_by_3 (n : ℤ) :\n    (3 : ℤ) ∣ n ^ 7 - n := by\n  sorry\n\n/-- The prime 7 divides the polynomial value. -/\ntheorem dvd_by_7 (n : ℤ) :\n    (7 : ℤ) ∣ n ^ 7 - n := by\n  sorry\n\n/-- The product of the primes divides the polynomial value. -/\ntheorem dvd_poly (n : ℤ) :\n    (42 : ℤ) ∣ n ^ 7 - n := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-divisibility-d3-e0021"}
{"id": "modular-arithmetic-gcd_coprime-d3-e0022", "env": "modular-arithmetic", "msc": "11", "family": "gcd_coprime", "difficulty": 3, "seed": 10022, "kind": "prove", "instruction": "# Prove a fact about divisibility and residues\n\nLet \\(n\\) be a natural number and \\(g = \\gcd(7n + 6, 8n + 5)\\). Prove that \\(g\\) divides \\(13\\), and conclude that \\(g = 1\\) or \\(g = 13\\).\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 (7 * n + 6) (8 * n + 5) ∣ 13 := by\n  sorry\n\n/-- The gcd is 1 or the prime determinant. -/\ntheorem gcd_one_or_prime (n : ℕ) :\n    Nat.gcd (7 * n + 6) (8 * n + 5) = 1 ∨ Nat.gcd (7 * n + 6) (8 * n + 5) = 13 := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-gcd_coprime-d3-e0022"}
{"id": "modular-arithmetic-power_residues-d3-e0023", "env": "modular-arithmetic", "msc": "11", "family": "power_residues", "difficulty": 3, "seed": 10023, "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 + 1\\) never leaves remainder \\(7\\) 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    (a ^ 2 + 3 * b ^ 2 + 1) % 8 ≠ 7 := by\n  sorry\n", "path": "tasks/modular-arithmetic/modular-arithmetic-power_residues-d3-e0023"}