{"id": "group-theory-hom-d1-t0000", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 1, "seed": 0, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be a group homomorphism and \\(x, y \\in G\\). Then \\(f(x) = f(y)\\) if and only if \\(x^{-1} y\\) lies in the kernel of \\(f\\).\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/-- Two elements have the same image exactly when x⁻¹ y is in the kernel. -/\ntheorem eq_iff_mem_ker {X Y : Type*} [Group X] [Group Y] (f : X →* Y) (x y : X) :\n f x = f y ↔ x⁻¹ * y ∈ f.ker := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d1-t0000"} {"id": "group-theory-inverse-d1-t0001", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 1, "seed": 1, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(M\\) be a monoid and \\(x, y, z \\in M\\) with \\(x y = 1\\) and \\(z x = 1\\). Then \\(y = z\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A left inverse and a right inverse of the same element are equal. -/\ntheorem inverses_agree {N : Type*} [Monoid N] (x y z : N)\n (h1 : x * y = 1) (h2 : z * x = 1) : y = z := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d1-t0001"} {"id": "group-theory-involution-d1-t0002", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 1, "seed": 2, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\(g^{-1} = g \\text{ for every } g\\). Then \\(G\\) is commutative: \\(ab = ba\\) for all \\(a, b \\in G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {Q : Type*} [Group Q] (h : ∀ g : Q, g⁻¹ = g) :\n ∀ g k : Q, g * k = k * g := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d1-t0002"} {"id": "group-theory-subgroup-d1-t0003", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 1, "seed": 3, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(L\\) be a subgroup of a group \\(G\\) and let \\(a\\), \\(b\\), \\(c\\) lie in \\(L\\). Then \\(a^{-1} b c^{-1} \\in L\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product of elements of a subgroup, with inverses and powers, lies in the subgroup. -/\ntheorem product_mem {Q : Type*} [Group Q] (L : Subgroup Q) {a b c : Q}\n (ha : a ∈ L) (hb : b ∈ L) (hc : c ∈ L) : a⁻¹ * b * c⁻¹ ∈ L := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d1-t0003"} {"id": "group-theory-hom-d2-t0004", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 2, "seed": 4, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) and \\(g : H \\to K\\) be group homomorphisms. Then every element of the kernel of \\(f\\) lies in the kernel of \\(g \\circ f\\).\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 kernel of f lies in the kernel of g after f. -/\ntheorem ker_le_ker_comp {G H Z : Type*} [Group G] [Group H] [Group Z] (f : G →* H) (g : H →* Z) :\n f.ker ≤ (g.comp f).ker := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d2-t0004"} {"id": "group-theory-inverse-d2-t0005", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 2, "seed": 5, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(G\\) be a group, \\(u, v \\in G\\) and \\(n \\in \\mathbb{N}\\). Then \\((u v u^{-1})^n = u v^n u^{-1}\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A fact about conjugation and powers. -/\ntheorem conjugate_fact {G : Type*} [Group G] (u v : G) (n : ℕ) :\n (u * v * u⁻¹) ^ n = u * v ^ n * u⁻¹ := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d2-t0005"} {"id": "group-theory-involution-d2-t0006", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 2, "seed": 6, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\(g^2 = e \\text{ for every } g\\). Then \\(a b a^{-1} = b\\) for all \\(a, b \\in G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {A : Type*} [Group A] (h : ∀ g : A, g ^ 2 = 1) :\n ∀ g k : A, g * k * g⁻¹ = k := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d2-t0006"} {"id": "group-theory-subgroup-d2-t0007", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 2, "seed": 7, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(G\\) be a group with \\(|G| = 10\\) and \\(K\\) a subgroup with \\(|K| = 2\\). Then \\(K\\) has index 5 in \\(G\\).\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/-- Lagrange: the cardinality is the product of subgroup order and index. -/\ntheorem subgroup_index {G : Type*} [Group G] (hG : Nat.card G = 10) (K : Subgroup G) (hH : Nat.card K = 2) :\n K.index = 5 := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d2-t0007"} {"id": "group-theory-hom-d3-t0008", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 3, "seed": 8, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be a group homomorphism whose kernel has exactly one element. Then \\(f\\) is injective.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A homomorphism whose kernel has one element is injective. -/\ntheorem injective_of_card_ker {G H : Type*} [Group G] [Group H] (f : G →* H)\n (h : Nat.card f.ker = 1) : Function.Injective f := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d3-t0008"} {"id": "group-theory-inverse-d3-t0009", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 3, "seed": 9, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(G\\) be a group and \\(x_{1}, x_{2}, x_{3}, x_{4}, x_{5}, x_{6}, x_{7} \\in G\\) with \\(x_{1} x_{2} x_{3} x_{4} x_{5} x_{6} x_{7} = e\\). Then \\(x_{2} x_{3} x_{4} x_{5} x_{6} x_{7} x_{1} = e\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product equal to the identity stays equal to the identity after a cyclic rotation. -/\ntheorem rotate_product {G : Type*} [Group G] (x₁ x₂ x₃ x₄ x₅ x₆ x₇ : G)\n (h : x₁ * x₂ * x₃ * x₄ * x₅ * x₆ * x₇ = 1) : x₂ * x₃ * x₄ * x₅ * x₆ * x₇ * x₁ = 1 := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d3-t0009"} {"id": "group-theory-involution-d3-t0010", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 3, "seed": 10, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\(g^2 = e \\text{ for every } g\\). Then every element of \\(G\\) lies in the center of \\(G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {Q : Type*} [Group Q] (h : ∀ g : Q, g ^ 2 = 1) :\n ∀ z : Q, z ∈ Subgroup.center Q := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d3-t0010"} {"id": "group-theory-subgroup-d3-t0011", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 3, "seed": 11, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(G\\) be a group with \\(|G| = 45\\) and \\(L\\) a subgroup with \\(|L| = 9\\). Then \\(L\\) has index 5 in \\(G\\).\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/-- Lagrange: the cardinality is the product of subgroup order and index. -/\ntheorem subgroup_index {G : Type*} [Group G] (hG : Nat.card G = 45) (L : Subgroup G) (hH : Nat.card L = 9) :\n L.index = 5 := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d3-t0011"} {"id": "group-theory-hom-d1-t0012", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 1, "seed": 12, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be a group homomorphism and \\(s\\) an element of \\(G\\) with \\(f(s) = e\\). Then \\(f(s^{3}) = e\\).\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/-- Powers of kernel elements are in the kernel. -/\ntheorem image_of_power {X Y : Type*} [Group X] [Group Y] (f : X →* Y) (s : X)\n (hx : f s = 1) : f (s ^ 3) = 1 := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d1-t0012"} {"id": "group-theory-inverse-d1-t0013", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 1, "seed": 13, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(G\\) be a group and \\(g_{1}, g_{2}, g_{3} \\in G\\) with \\(g_{1} g_{2} g_{3} = e\\). Then \\(g_{3} g_{1} g_{2} = e\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product equal to the identity stays equal to the identity after a cyclic rotation. -/\ntheorem rotate_product {G : Type*} [Group G] (g₁ g₂ g₃ : G)\n (h : g₁ * g₂ * g₃ = 1) : g₃ * g₁ * g₂ = 1 := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d1-t0013"} {"id": "group-theory-involution-d1-t0014", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 1, "seed": 14, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\(g \\cdot g = e \\text{ for every } g\\). Then \\(G\\) is commutative: \\(ab = ba\\) for all \\(a, b \\in G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {Q : Type*} [Group Q] (h : ∀ g : Q, g * g = 1) :\n ∀ g k : Q, g * k = k * g := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d1-t0014"} {"id": "group-theory-subgroup-d1-t0015", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 1, "seed": 15, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(L\\) be a subgroup of a group \\(G\\) and let \\(g\\), \\(k\\), \\(m\\) lie in \\(L\\). Then \\(g k^{-1} m^{-1} \\in L\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product of elements of a subgroup, with inverses and powers, lies in the subgroup. -/\ntheorem product_mem {G : Type*} [Group G] (L : Subgroup G) {g k m : G}\n (hg : g ∈ L) (hk : k ∈ L) (hm : m ∈ L) : g * k⁻¹ * m⁻¹ ∈ L := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d1-t0015"} {"id": "group-theory-hom-d2-t0016", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 2, "seed": 16, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) and \\(g : H \\to K\\) be group homomorphisms. Then every element of the kernel of \\(f\\) lies in the kernel of \\(g \\circ f\\).\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 kernel of f lies in the kernel of g after f. -/\ntheorem ker_le_ker_comp {G K Z : Type*} [Group G] [Group K] [Group Z] (f : G →* K) (g : K →* Z) :\n f.ker ≤ (g.comp f).ker := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d2-t0016"} {"id": "group-theory-inverse-d2-t0017", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 2, "seed": 17, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(G\\) be a group and \\(g_{1}, g_{2}, g_{3}, g_{4}, g_{5}, g_{6} \\in G\\) with \\(g_{1} g_{2} g_{3} g_{4} g_{5} g_{6} = e\\). Then \\(g_{2} g_{3} g_{4} g_{5} g_{6} g_{1} = e\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product equal to the identity stays equal to the identity after a cyclic rotation. -/\ntheorem rotate_product {A : Type*} [Group A] (g₁ g₂ g₃ g₄ g₅ g₆ : A)\n (h : g₁ * g₂ * g₃ * g₄ * g₅ * g₆ = 1) : g₂ * g₃ * g₄ * g₅ * g₆ * g₁ = 1 := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d2-t0017"} {"id": "group-theory-involution-d2-t0018", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 2, "seed": 18, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\((ab)^{-1} = a^{-1} b^{-1} \\text{ for all } a, b\\). Then every element of \\(G\\) lies in the center of \\(G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {Q : Type*} [Group Q] (h : ∀ p q : Q, (p * q)⁻¹ = p⁻¹ * q⁻¹) :\n ∀ z : Q, z ∈ Subgroup.center Q := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d2-t0018"} {"id": "group-theory-subgroup-d2-t0019", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 2, "seed": 19, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(G\\) be a group with \\(|G| = 6\\) and \\(H\\) a subgroup with \\(|H| = 3\\). Then \\(H\\) has index 2 in \\(G\\).\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/-- Lagrange: the cardinality is the product of subgroup order and index. -/\ntheorem subgroup_index {G : Type*} [Group G] (hG : Nat.card G = 6) (H : Subgroup G) (hH : Nat.card H = 3) :\n H.index = 2 := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d2-t0019"} {"id": "group-theory-hom-d3-t0020", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 3, "seed": 20, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be a group homomorphism whose kernel has exactly one element. Then \\(f\\) is injective.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A homomorphism whose kernel has one element is injective. -/\ntheorem injective_of_card_ker {G K : Type*} [Group G] [Group K] (f : G →* K)\n (h : Nat.card f.ker = 1) : Function.Injective f := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d3-t0020"} {"id": "group-theory-inverse-d3-t0021", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 3, "seed": 21, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(G\\) be a group and \\(g_{1}, g_{2}, g_{3}, g_{4}, g_{5}, g_{6}, g_{7} \\in G\\) with \\(g_{1} g_{2} g_{3} g_{4} g_{5} g_{6} g_{7} = e\\). Then \\(g_{6} g_{7} g_{1} g_{2} g_{3} g_{4} g_{5} = e\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product equal to the identity stays equal to the identity after a cyclic rotation. -/\ntheorem rotate_product {G : Type*} [Group G] (g₁ g₂ g₃ g₄ g₅ g₆ g₇ : G)\n (h : g₁ * g₂ * g₃ * g₄ * g₅ * g₆ * g₇ = 1) : g₆ * g₇ * g₁ * g₂ * g₃ * g₄ * g₅ = 1 := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d3-t0021"} {"id": "group-theory-involution-d3-t0022", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 3, "seed": 22, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\((ab)^2 = a^2 b^2 \\text{ for all } a, b\\). Then \\(a b a^{-1} = b\\) for all \\(a, b \\in G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {Q : Type*} [Group Q] (h : ∀ u v : Q, (u * v) ^ 2 = u ^ 2 * v ^ 2) :\n ∀ u v : Q, u * v * u⁻¹ = v := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d3-t0022"} {"id": "group-theory-subgroup-d3-t0023", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 3, "seed": 23, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(H\\) and \\(K\\) be subgroups of a group \\(G\\) such that for all \\(a \\in H\\) and \\(b \\in K\\) the product \\(ab\\) lies in \\(H\\) or in \\(K\\). Then \\(H \\subseteq K\\) or \\(K \\subseteq H\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product-closed union of two subgroups is one of them. -/\ntheorem subgroup_union {Q : Type*} [Group Q] (H K : Subgroup Q)\n (h : ∀ a ∈ H, ∀ b ∈ K, a * b ∈ H ∨ a * b ∈ K) : H ≤ K ∨ K ≤ H := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d3-t0023"} {"id": "group-theory-hom-d1-t0024", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 1, "seed": 24, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be a group homomorphism and \\(a\\) an element of \\(G\\) with \\(f(a) = e\\). Then \\(f(a^{11}) = e\\).\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/-- Powers of kernel elements are in the kernel. -/\ntheorem image_of_power {G K : Type*} [Group G] [Group K] (f : G →* K) (a : G)\n (hx : f a = 1) : f (a ^ 11) = 1 := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d1-t0024"} {"id": "group-theory-inverse-d1-t0025", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 1, "seed": 25, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(G\\) be a group and \\(x_{1}, x_{2}, x_{3} \\in G\\) with \\(x_{1} x_{2} x_{3} = e\\). Then \\(x_{2} x_{3} x_{1} = e\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product equal to the identity stays equal to the identity after a cyclic rotation. -/\ntheorem rotate_product {Q : Type*} [Group Q] (x₁ x₂ x₃ : Q)\n (h : x₁ * x₂ * x₃ = 1) : x₂ * x₃ * x₁ = 1 := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d1-t0025"} {"id": "group-theory-involution-d1-t0026", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 1, "seed": 26, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\(g \\cdot g = e \\text{ for every } g\\). Then \\(G\\) is commutative: \\(ab = ba\\) for all \\(a, b \\in G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {G : Type*} [Group G] (h : ∀ g : G, g * g = 1) :\n ∀ u v : G, u * v = v * u := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d1-t0026"} {"id": "group-theory-subgroup-d1-t0027", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 1, "seed": 27, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(H\\) be a subgroup of a group \\(G\\) and let \\(u\\), \\(v\\) lie in \\(H\\). Then \\(u^{-1} v \\in H\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product of elements of a subgroup, with inverses and powers, lies in the subgroup. -/\ntheorem product_mem {G : Type*} [Group G] (H : Subgroup G) {u v : G}\n (hu : u ∈ H) (hv : v ∈ H) : u⁻¹ * v ∈ H := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d1-t0027"} {"id": "group-theory-hom-d2-t0028", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 2, "seed": 28, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be a group homomorphism such that \\(f(p) = e\\) implies \\(p = e\\) for every \\(p \\in G\\). Then \\(f\\) is injective.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A homomorphism with trivial kernel is injective. -/\ntheorem injective_of_trivial_kernel {G K : Type*} [Group G] [Group K] (f : G →* K)\n (h : ∀ p : G, f p = 1 → p = 1) : Function.Injective f := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d2-t0028"} {"id": "group-theory-inverse-d2-t0029", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 2, "seed": 29, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(M\\) be a monoid and \\(u, v \\in M\\) with \\(u v = 1\\). Then \\(u^n v^n = 1\\) for every \\(n \\in \\mathbb{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/-- If xy = 1 then x^n y^n = 1. -/\ntheorem pow_pair_one {M : Type*} [Monoid M] (u v : M) (h : u * v = 1) (n : ℕ) :\n u ^ n * v ^ n = 1 := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d2-t0029"} {"id": "group-theory-involution-d2-t0030", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 2, "seed": 30, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\((ab)^2 = a^2 b^2 \\text{ for all } a, b\\). Then every element of \\(G\\) lies in the center of \\(G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {Q : Type*} [Group Q] (h : ∀ a b : Q, (a * b) ^ 2 = a ^ 2 * b ^ 2) :\n ∀ z : Q, z ∈ Subgroup.center Q := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d2-t0030"} {"id": "group-theory-subgroup-d2-t0031", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 2, "seed": 31, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(N\\) be a normal subgroup of a group \\(G\\), let \\(p \\in N\\) and \\(q \\in G\\). Then \\(q p q^{-1} p^{-1} \\in 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/-- Conjugates of elements of a normal subgroup stay in it. -/\ntheorem normal_conj {G : Type*} [Group G] (N : Subgroup G) (hN : N.Normal) {p : G} (hx : p ∈ N) (q : G) :\n q * p * q⁻¹ * p⁻¹ ∈ N := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d2-t0031"} {"id": "group-theory-hom-d3-t0032", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 3, "seed": 32, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be an injective group homomorphism of groups. Then \\(|G|\\) divides \\(|H|\\) (cardinalities are in \\(\\mathbb{N}\\), with 0 for an infinite group).\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/-- Lagrange for an injective homomorphism. -/\ntheorem card_dvd_of_injective {G K : Type*} [Group G] [Group K] (f : G →* K)\n (hf : Function.Injective f) : Nat.card G ∣ Nat.card K := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d3-t0032"} {"id": "group-theory-inverse-d3-t0033", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 3, "seed": 33, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(M\\) be a monoid in which every element \\(x\\) has some \\(y\\) with \\(xy = 1\\). Then \\(xy = 1\\) implies \\(yx = 1\\) for all \\(x, y \\in M\\). Under the same hypothesis, if \\(x y = 1\\) and \\(x z = 1\\) then \\(y = z\\).\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/-- One-sided inverses are two-sided. -/\ntheorem right_inverse_comm {M : Type*} [Monoid M] (h : ∀ x : M, ∃ y, x * y = 1) :\n ∀ x y : M, x * y = 1 → y * x = 1 := by\n sorry\n\n/-- The inverse is unique. -/\ntheorem inverse_unique {M : Type*} [Monoid M] (h : ∀ x : M, ∃ y, x * y = 1) (x y z : M)\n (h1 : x * y = 1) (h2 : x * z = 1) : y = z := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d3-t0033"} {"id": "group-theory-involution-d3-t0034", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 3, "seed": 34, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\((ab)^{-1} = a^{-1} b^{-1} \\text{ for all } a, b\\). Then \\(G\\) is commutative: \\(ab = ba\\) for all \\(a, b \\in G\\). Deduce that \\((ab)^{5} = a^{5} b^{5}\\) for all \\(a, b \\in G\\).\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 group is commutative. -/\ntheorem involution_comm {Q : Type*} [Group Q] (h : ∀ g k : Q, (g * k)⁻¹ = g⁻¹ * k⁻¹) :\n ∀ g k : Q, g * k = k * g := by\n sorry\n\n/-- In this group \\((ab)^5 = a^5 b^5\\). -/\ntheorem power_of_product {Q : Type*} [Group Q] (h : ∀ g k : Q, (g * k)⁻¹ = g⁻¹ * k⁻¹) (g k : Q) :\n (g * k) ^ 5 = g ^ 5 * k ^ 5 := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d3-t0034"} {"id": "group-theory-subgroup-d3-t0035", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 3, "seed": 35, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(G\\) be a group with \\(|G| = 20\\) and \\(N\\) a subgroup with \\(|N| = 10\\). Then \\(N\\) has index 2 in \\(G\\).\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/-- Lagrange: the cardinality is the product of subgroup order and index. -/\ntheorem subgroup_index {G : Type*} [Group G] (hG : Nat.card G = 20) (N : Subgroup G) (hH : Nat.card N = 10) :\n N.index = 2 := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d3-t0035"} {"id": "group-theory-hom-d1-t0036", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 1, "seed": 36, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be a group homomorphism and \\(p\\) an element of \\(G\\) with \\(f(p) = e\\). Then \\(f(p^{6}) = e\\).\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/-- Powers of kernel elements are in the kernel. -/\ntheorem image_of_power {X Y : Type*} [Group X] [Group Y] (f : X →* Y) (p : X)\n (hx : f p = 1) : f (p ^ 6) = 1 := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d1-t0036"} {"id": "group-theory-inverse-d1-t0037", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 1, "seed": 37, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(M\\) be a monoid and \\(p, q, r \\in M\\) with \\(p q = 1\\) and \\(r p = 1\\). Then \\(q = r\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A left inverse and a right inverse of the same element are equal. -/\ntheorem inverses_agree {M : Type*} [Monoid M] (p q r : M)\n (h1 : r * p = 1) (h2 : p * q = 1) : q = r := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d1-t0037"} {"id": "group-theory-involution-d1-t0038", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 1, "seed": 38, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\(g^{-1} = g \\text{ for every } g\\). Then \\(G\\) is commutative: \\(ab = ba\\) for all \\(a, b \\in G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {Q : Type*} [Group Q] (h : ∀ g : Q, g⁻¹ = g) :\n ∀ a b : Q, a * b = b * a := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d1-t0038"} {"id": "group-theory-subgroup-d1-t0039", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 1, "seed": 39, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(H\\) be a subgroup of a group \\(G\\) and let \\(g\\), \\(k\\) lie in \\(H\\). Then \\(g^{-1} k^{-1} \\in H\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product of elements of a subgroup, with inverses and powers, lies in the subgroup. -/\ntheorem product_mem {A : Type*} [Group A] (H : Subgroup A) {g k : A}\n (hg : g ∈ H) (hk : k ∈ H) : g⁻¹ * k⁻¹ ∈ H := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d1-t0039"} {"id": "group-theory-hom-d2-t0040", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 2, "seed": 40, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be a group homomorphism such that \\(f(x) = e\\) implies \\(x = e\\) for every \\(x \\in G\\). Then \\(f\\) is injective.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A homomorphism with trivial kernel is injective. -/\ntheorem injective_of_trivial_kernel {G H : Type*} [Group G] [Group H] (f : G →* H)\n (h : ∀ x : G, f x = 1 → x = 1) : Function.Injective f := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d2-t0040"} {"id": "group-theory-inverse-d2-t0041", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 2, "seed": 41, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(G\\) be a group, \\(a, b \\in G\\) and \\(n \\in \\mathbb{N}\\). Then \\((a^{-1} b a)^n = a^{-1} b^n a\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A fact about conjugation and powers. -/\ntheorem conjugate_fact {Q : Type*} [Group Q] (a b : Q) (n : ℕ) :\n (a⁻¹ * b * a) ^ n = a⁻¹ * b ^ n * a := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d2-t0041"} {"id": "group-theory-involution-d2-t0042", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 2, "seed": 42, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\(g^2 = e \\text{ for every } g\\). Then every element of \\(G\\) lies in the center of \\(G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {G : Type*} [Group G] (h : ∀ g : G, g ^ 2 = 1) :\n ∀ z : G, z ∈ Subgroup.center G := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d2-t0042"} {"id": "group-theory-subgroup-d2-t0043", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 2, "seed": 43, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(H\\) be a normal subgroup of a group \\(G\\), let \\(u \\in H\\) and \\(v \\in G\\). Then \\(v u^{3} v^{-1} \\in H\\).\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/-- Conjugates of elements of a normal subgroup stay in it. -/\ntheorem normal_conj {Q : Type*} [Group Q] (H : Subgroup Q) (hN : H.Normal) {u : Q} (hx : u ∈ H) (v : Q) :\n v * u ^ 3 * v⁻¹ ∈ H := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d2-t0043"} {"id": "group-theory-hom-d3-t0044", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 3, "seed": 44, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be an injective group homomorphism of groups. Then \\(|G|\\) divides \\(|H|\\) (cardinalities are in \\(\\mathbb{N}\\), with 0 for an infinite group).\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/-- Lagrange for an injective homomorphism. -/\ntheorem card_dvd_of_injective {X Y : Type*} [Group X] [Group Y] (f : X →* Y)\n (hf : Function.Injective f) : Nat.card X ∣ Nat.card Y := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d3-t0044"} {"id": "group-theory-inverse-d3-t0045", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 3, "seed": 45, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(M\\) be a monoid in which every element \\(x\\) has some \\(y\\) with \\(yx = 1\\). Then \\(yx = 1\\) implies \\(xy = 1\\) for all \\(x, y \\in M\\). Under the same hypothesis, if \\(k g = 1\\) and \\(m g = 1\\) then \\(k = m\\).\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/-- One-sided inverses are two-sided. -/\ntheorem right_inverse_comm {S : Type*} [Monoid S] (h : ∀ g : S, ∃ k, k * g = 1) :\n ∀ g k : S, k * g = 1 → g * k = 1 := by\n sorry\n\n/-- The inverse is unique. -/\ntheorem inverse_unique {S : Type*} [Monoid S] (h : ∀ g : S, ∃ k, k * g = 1) (g k m : S)\n (h1 : k * g = 1) (h2 : m * g = 1) : k = m := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d3-t0045"} {"id": "group-theory-involution-d3-t0046", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 3, "seed": 46, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\((ab)^2 = a^2 b^2 \\text{ for all } a, b\\). Then every element of \\(G\\) lies in the center of \\(G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {G : Type*} [Group G] (h : ∀ s t : G, (s * t) ^ 2 = s ^ 2 * t ^ 2) :\n ∀ z : G, z ∈ Subgroup.center G := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d3-t0046"} {"id": "group-theory-subgroup-d3-t0047", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 3, "seed": 47, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(G\\) be a group with \\(|G| = 7\\). Then \\(x^{7} = e\\) for every \\(x \\in G\\), and every element \\(u \\neq e\\) has order exactly 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/-- Every element satisfies x^|G| = 1. -/\ntheorem pow_card {G : Type*} [Group G] (hG : Nat.card G = 7) (x : G) :\n x ^ 7 = 1 := by\n sorry\n\n/-- In a group of prime order p, every non-identity element has order p. -/\ntheorem order_prime {G : Type*} [Group G] (hG : Nat.card G = 7) (u : G) (hne : u ≠ 1) :\n orderOf u = 7 := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d3-t0047"} {"id": "group-theory-hom-d1-t0048", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 1, "seed": 48, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be a group homomorphism and \\(s, t \\in G\\). Then \\(f(s) = f(t)\\) if and only if \\(s^{-1} t\\) lies in the kernel of \\(f\\).\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/-- Two elements have the same image exactly when x⁻¹ y is in the kernel. -/\ntheorem eq_iff_mem_ker {G K : Type*} [Group G] [Group K] (f : G →* K) (s t : G) :\n f s = f t ↔ s⁻¹ * t ∈ f.ker := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d1-t0048"} {"id": "group-theory-inverse-d1-t0049", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 1, "seed": 49, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(M\\) be a monoid and \\(x, y, z \\in M\\) with \\(x y = 1\\) and \\(z x = 1\\). Then \\(y = z\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A left inverse and a right inverse of the same element are equal. -/\ntheorem inverses_agree {N : Type*} [Monoid N] (x y z : N)\n (h1 : z * x = 1) (h2 : x * y = 1) : y = z := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d1-t0049"} {"id": "group-theory-involution-d1-t0050", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 1, "seed": 50, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\(g^{-1} = g \\text{ for every } g\\). Then \\(G\\) is commutative: \\(ab = ba\\) for all \\(a, b \\in G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {G : Type*} [Group G] (h : ∀ g : G, g⁻¹ = g) :\n ∀ s t : G, s * t = t * s := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d1-t0050"} {"id": "group-theory-subgroup-d1-t0051", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 1, "seed": 51, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(H\\) be a subgroup of a group \\(G\\) and let \\(g\\), \\(k\\) lie in \\(H\\). Then \\(g k^{-1} \\in H\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product of elements of a subgroup, with inverses and powers, lies in the subgroup. -/\ntheorem product_mem {A : Type*} [Group A] (H : Subgroup A) {g k : A}\n (hg : g ∈ H) (hk : k ∈ H) : g * k⁻¹ ∈ H := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d1-t0051"} {"id": "group-theory-hom-d2-t0052", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 2, "seed": 52, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be a group homomorphism such that \\(f(g) = e\\) implies \\(g = e\\) for every \\(g \\in G\\). Then \\(f\\) is injective.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A homomorphism with trivial kernel is injective. -/\ntheorem injective_of_trivial_kernel {G K : Type*} [Group G] [Group K] (f : G →* K)\n (h : ∀ g : G, f g = 1 → g = 1) : Function.Injective f := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d2-t0052"} {"id": "group-theory-inverse-d2-t0053", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 2, "seed": 53, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(M\\) be a monoid and \\(a, b \\in M\\) with \\(a b = 1\\). Then \\(a^n b^n = 1\\) for every \\(n \\in \\mathbb{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/-- If xy = 1 then x^n y^n = 1. -/\ntheorem pow_pair_one {S : Type*} [Monoid S] (a b : S) (h : a * b = 1) (n : ℕ) :\n a ^ n * b ^ n = 1 := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d2-t0053"} {"id": "group-theory-involution-d2-t0054", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 2, "seed": 54, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\((ab)^2 = a^2 b^2 \\text{ for all } a, b\\). Then every element of \\(G\\) lies in the center of \\(G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {Q : Type*} [Group Q] (h : ∀ s t : Q, (s * t) ^ 2 = s ^ 2 * t ^ 2) :\n ∀ z : Q, z ∈ Subgroup.center Q := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d2-t0054"} {"id": "group-theory-subgroup-d2-t0055", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 2, "seed": 55, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(N\\) be a normal subgroup of a group \\(G\\), let \\(g \\in N\\) and \\(k \\in G\\). Then \\(k g^{6} k^{-1} \\in 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/-- Conjugates of elements of a normal subgroup stay in it. -/\ntheorem normal_conj {Q : Type*} [Group Q] (N : Subgroup Q) (hN : N.Normal) {g : Q} (hx : g ∈ N) (k : Q) :\n k * g ^ 6 * k⁻¹ ∈ N := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d2-t0055"} {"id": "group-theory-hom-d3-t0056", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 3, "seed": 56, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be a group homomorphism whose kernel has exactly one element. Then \\(f\\) is injective.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A homomorphism whose kernel has one element is injective. -/\ntheorem injective_of_card_ker {A B : Type*} [Group A] [Group B] (f : A →* B)\n (h : Nat.card f.ker = 1) : Function.Injective f := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d3-t0056"} {"id": "group-theory-inverse-d3-t0057", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 3, "seed": 57, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(M\\) be a monoid in which every element \\(x\\) has some \\(y\\) with \\(xy = 1\\). Then \\(xy = 1\\) implies \\(yx = 1\\) for all \\(x, y \\in M\\). Under the same hypothesis, if \\(a b = 1\\) and \\(a c = 1\\) then \\(b = c\\).\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/-- One-sided inverses are two-sided. -/\ntheorem right_inverse_comm {N : Type*} [Monoid N] (h : ∀ a : N, ∃ b, a * b = 1) :\n ∀ a b : N, a * b = 1 → b * a = 1 := by\n sorry\n\n/-- The inverse is unique. -/\ntheorem inverse_unique {N : Type*} [Monoid N] (h : ∀ a : N, ∃ b, a * b = 1) (a b c : N)\n (h1 : a * b = 1) (h2 : a * c = 1) : b = c := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d3-t0057"} {"id": "group-theory-involution-d3-t0058", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 3, "seed": 58, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\(aba = b \\text{ for all } a, b\\). Then every element of \\(G\\) lies in the center of \\(G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {G : Type*} [Group G] (h : ∀ p q : G, p * q * p = q) :\n ∀ z : G, z ∈ Subgroup.center G := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d3-t0058"} {"id": "group-theory-subgroup-d3-t0059", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 3, "seed": 59, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(A\\) and \\(B\\) be subgroups of a group \\(G\\) such that for all \\(a \\in A\\) and \\(b \\in B\\) the product \\(ab\\) lies in \\(A\\) or in \\(B\\). Then \\(A \\subseteq B\\) or \\(B \\subseteq A\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product-closed union of two subgroups is one of them. -/\ntheorem subgroup_union {Q : Type*} [Group Q] (A B : Subgroup Q)\n (h : ∀ a ∈ A, ∀ b ∈ B, a * b ∈ A ∨ a * b ∈ B) : A ≤ B ∨ B ≤ A := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d3-t0059"} {"id": "group-theory-hom-d1-t0060", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 1, "seed": 60, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be a group homomorphism and \\(x, y \\in G\\). Then \\(f(x) = f(y)\\) if and only if \\(x^{-1} y\\) lies in the kernel of \\(f\\).\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/-- Two elements have the same image exactly when x⁻¹ y is in the kernel. -/\ntheorem eq_iff_mem_ker {X Y : Type*} [Group X] [Group Y] (f : X →* Y) (x y : X) :\n f x = f y ↔ x⁻¹ * y ∈ f.ker := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d1-t0060"} {"id": "group-theory-inverse-d1-t0061", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 1, "seed": 61, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(G\\) be a group and \\(t_{1}, t_{2}, t_{3} \\in G\\) with \\(t_{1} t_{2} t_{3} = e\\). Then \\(t_{3} t_{1} t_{2} = e\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product equal to the identity stays equal to the identity after a cyclic rotation. -/\ntheorem rotate_product {Q : Type*} [Group Q] (t₁ t₂ t₃ : Q)\n (h : t₁ * t₂ * t₃ = 1) : t₃ * t₁ * t₂ = 1 := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d1-t0061"} {"id": "group-theory-involution-d1-t0062", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 1, "seed": 62, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\(g^{-1} = g \\text{ for every } g\\). Then \\(G\\) is commutative: \\(ab = ba\\) for all \\(a, b \\in G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {G : Type*} [Group G] (h : ∀ g : G, g⁻¹ = g) :\n ∀ s t : G, s * t = t * s := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d1-t0062"} {"id": "group-theory-subgroup-d1-t0063", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 1, "seed": 63, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(L\\) be a subgroup of a group \\(G\\) and let \\(x\\), \\(y\\) lie in \\(L\\). Then \\(x^{-1} y \\in L\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product of elements of a subgroup, with inverses and powers, lies in the subgroup. -/\ntheorem product_mem {Q : Type*} [Group Q] (L : Subgroup Q) {x y : Q}\n (hx : x ∈ L) (hy : y ∈ L) : x⁻¹ * y ∈ L := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d1-t0063"} {"id": "group-theory-hom-d2-t0064", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 2, "seed": 64, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be a group homomorphism such that \\(f(s) = e\\) implies \\(s = e\\) for every \\(s \\in G\\). Then \\(f\\) is injective.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A homomorphism with trivial kernel is injective. -/\ntheorem injective_of_trivial_kernel {A B : Type*} [Group A] [Group B] (f : A →* B)\n (h : ∀ s : A, f s = 1 → s = 1) : Function.Injective f := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d2-t0064"} {"id": "group-theory-inverse-d2-t0065", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 2, "seed": 65, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(M\\) be a monoid and \\(x, y \\in M\\) with \\(x y = 1\\). Then \\(x^n y^n = 1\\) for every \\(n \\in \\mathbb{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/-- If xy = 1 then x^n y^n = 1. -/\ntheorem pow_pair_one {M : Type*} [Monoid M] (x y : M) (h : x * y = 1) (n : ℕ) :\n x ^ n * y ^ n = 1 := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d2-t0065"} {"id": "group-theory-involution-d2-t0066", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 2, "seed": 66, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\(g^2 = e \\text{ for every } g\\). Then \\(a b a^{-1} = b\\) for all \\(a, b \\in G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {Q : Type*} [Group Q] (h : ∀ g : Q, g ^ 2 = 1) :\n ∀ u v : Q, u * v * u⁻¹ = v := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d2-t0066"} {"id": "group-theory-subgroup-d2-t0067", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 2, "seed": 67, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(L\\) be a normal subgroup of a group \\(G\\), let \\(p \\in L\\) and \\(q \\in G\\). Then \\(q p q^{-1} p^{-1} \\in L\\).\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/-- Conjugates of elements of a normal subgroup stay in it. -/\ntheorem normal_conj {A : Type*} [Group A] (L : Subgroup A) (hN : L.Normal) {p : A} (hx : p ∈ L) (q : A) :\n q * p * q⁻¹ * p⁻¹ ∈ L := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d2-t0067"} {"id": "group-theory-hom-d3-t0068", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 3, "seed": 68, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) and \\(g : H \\to K\\) be group homomorphisms with \\(g\\) injective. Then \\(g \\circ f\\) and \\(f\\) have the same kernel. Show that \\(\\ker f \\subseteq \\ker(g \\circ f)\\) and then the equality.\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 kernel of f lies in the kernel of g after f. -/\ntheorem ker_le_ker_comp {X Y Z : Type*} [Group X] [Group Y] [Group Z] (f : X →* Y) (g : Y →* Z) :\n f.ker ≤ (g.comp f).ker := by\n sorry\n\n/-- If g is injective the kernels agree. -/\ntheorem ker_comp_eq {X Y Z : Type*} [Group X] [Group Y] [Group Z] (f : X →* Y) (g : Y →* Z)\n (hg : Function.Injective g) : (g.comp f).ker = f.ker := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d3-t0068"} {"id": "group-theory-inverse-d3-t0069", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 3, "seed": 69, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(M\\) be a monoid in which every element \\(x\\) has some \\(y\\) with \\(yx = 1\\). Then \\(yx = 1\\) implies \\(xy = 1\\) for all \\(x, y \\in M\\). Under the same hypothesis, if \\(y x = 1\\) and \\(z x = 1\\) then \\(y = z\\).\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/-- One-sided inverses are two-sided. -/\ntheorem right_inverse_comm {N : Type*} [Monoid N] (h : ∀ x : N, ∃ y, y * x = 1) :\n ∀ x y : N, y * x = 1 → x * y = 1 := by\n sorry\n\n/-- The inverse is unique. -/\ntheorem inverse_unique {N : Type*} [Monoid N] (h : ∀ x : N, ∃ y, y * x = 1) (x y z : N)\n (h1 : y * x = 1) (h2 : z * x = 1) : y = z := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d3-t0069"} {"id": "group-theory-involution-d3-t0070", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 3, "seed": 70, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\(aba = b \\text{ for all } a, b\\). Then every element of \\(G\\) lies in the center of \\(G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {Q : Type*} [Group Q] (h : ∀ g k : Q, g * k * g = k) :\n ∀ z : Q, z ∈ Subgroup.center Q := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d3-t0070"} {"id": "group-theory-subgroup-d3-t0071", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 3, "seed": 71, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(H\\) and \\(K\\) be subgroups of a group \\(G\\) such that whenever \\(a\\) and \\(b\\) each lie in \\(H\\) or in \\(K\\), the product \\(ab\\) lies in \\(H\\) or in \\(K\\). Then \\(H \\subseteq K\\) or \\(K \\subseteq H\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product-closed union of two subgroups is one of them. -/\ntheorem subgroup_union {G : Type*} [Group G] (H K : Subgroup G)\n (h : ∀ a b : G, (a ∈ H ∨ a ∈ K) → (b ∈ H ∨ b ∈ K) → (a * b ∈ H ∨ a * b ∈ K)) : H ≤ K ∨ K ≤ H := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d3-t0071"} {"id": "group-theory-hom-d1-t0072", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 1, "seed": 72, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be a group homomorphism and \\(p, q \\in G\\) with \\(f(p) = e\\). Then \\(q p q^{-1} p^{-1}\\) lies in the kernel of \\(f\\).\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/-- Commutators with a kernel element lie in the kernel. -/\ntheorem commutator_in_kernel {A B : Type*} [Group A] [Group B] (f : A →* B) (p q : A)\n (hx : f p = 1) : q * p * q⁻¹ * p⁻¹ ∈ f.ker := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d1-t0072"} {"id": "group-theory-inverse-d1-t0073", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 1, "seed": 73, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(G\\) be a group and \\(t_{1}, t_{2}, t_{3} \\in G\\) with \\(t_{1} t_{2} t_{3} = e\\). Then \\(t_{2} t_{3} t_{1} = e\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product equal to the identity stays equal to the identity after a cyclic rotation. -/\ntheorem rotate_product {A : Type*} [Group A] (t₁ t₂ t₃ : A)\n (h : t₁ * t₂ * t₃ = 1) : t₂ * t₃ * t₁ = 1 := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d1-t0073"} {"id": "group-theory-involution-d1-t0074", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 1, "seed": 74, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\(g \\cdot g = e \\text{ for every } g\\). Then \\(G\\) is commutative: \\(ab = ba\\) for all \\(a, b \\in G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {Q : Type*} [Group Q] (h : ∀ g : Q, g * g = 1) :\n ∀ p q : Q, p * q = q * p := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d1-t0074"} {"id": "group-theory-subgroup-d1-t0075", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 1, "seed": 75, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(H\\) be a subgroup of a group \\(G\\) and let \\(x\\), \\(y\\), \\(z\\) lie in \\(H\\). Then \\(x y^{-1} z \\in H\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product of elements of a subgroup, with inverses and powers, lies in the subgroup. -/\ntheorem product_mem {Q : Type*} [Group Q] (H : Subgroup Q) {x y z : Q}\n (hx : x ∈ H) (hy : y ∈ H) (hz : z ∈ H) : x * y⁻¹ * z ∈ H := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d1-t0075"} {"id": "group-theory-hom-d2-t0076", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 2, "seed": 76, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be a group homomorphism such that \\(f(s) = e\\) implies \\(s = e\\) for every \\(s \\in G\\). Then \\(f\\) is injective.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A homomorphism with trivial kernel is injective. -/\ntheorem injective_of_trivial_kernel {X Y : Type*} [Group X] [Group Y] (f : X →* Y)\n (h : ∀ s : X, f s = 1 → s = 1) : Function.Injective f := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d2-t0076"} {"id": "group-theory-inverse-d2-t0077", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 2, "seed": 77, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(G\\) be a group and \\(t_{1}, t_{2}, t_{3}, t_{4} \\in G\\) with \\(t_{1} t_{2} t_{3} t_{4} = e\\). Then \\(t_{4} t_{1} t_{2} t_{3} = e\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product equal to the identity stays equal to the identity after a cyclic rotation. -/\ntheorem rotate_product {Q : Type*} [Group Q] (t₁ t₂ t₃ t₄ : Q)\n (h : t₁ * t₂ * t₃ * t₄ = 1) : t₄ * t₁ * t₂ * t₃ = 1 := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d2-t0077"} {"id": "group-theory-involution-d2-t0078", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 2, "seed": 78, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\((ab)^{-1} = a^{-1} b^{-1} \\text{ for all } a, b\\). Then every element of \\(G\\) lies in the center of \\(G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {A : Type*} [Group A] (h : ∀ g k : A, (g * k)⁻¹ = g⁻¹ * k⁻¹) :\n ∀ z : A, z ∈ Subgroup.center A := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d2-t0078"} {"id": "group-theory-subgroup-d2-t0079", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 2, "seed": 79, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(G\\) be a group with \\(|G| = 16\\) and \\(L\\) a subgroup of \\(G\\). Then \\(|L|\\) divides 16.\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/-- Lagrange: the order of a subgroup divides the order of the group. -/\ntheorem subgroup_card_dvd {A : Type*} [Group A] (hG : Nat.card A = 16) (L : Subgroup A) :\n Nat.card L ∣ 16 := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d2-t0079"} {"id": "group-theory-hom-d3-t0080", "env": "group-theory", "msc": "20", "family": "hom", "difficulty": 3, "seed": 80, "kind": "prove", "instruction": "# Kernels of group homomorphisms\n\nProve the following statement.\n\nLet \\(f : G \\to H\\) be a group homomorphism such that \\(f(s) = e\\) implies \\(s = e\\) for every \\(s \\in G\\). Then \\(f\\) is injective.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A homomorphism with trivial kernel is injective. -/\ntheorem injective_of_trivial_kernel {G K : Type*} [Group G] [Group K] (f : G →* K)\n (h : ∀ s : G, f s = 1 → s = 1) : Function.Injective f := by\n sorry\n", "path": "tasks/group-theory/group-theory-hom-d3-t0080"} {"id": "group-theory-inverse-d3-t0081", "env": "group-theory", "msc": "20", "family": "inverse", "difficulty": 3, "seed": 81, "kind": "prove", "instruction": "# Inverses and cancellation\n\nProve the following statement.\n\nLet \\(G\\) be a group and \\(a_{1}, a_{2}, a_{3}, a_{4}, a_{5}, a_{6}, a_{7} \\in G\\) with \\(a_{1} a_{2} a_{3} a_{4} a_{5} a_{6} a_{7} = e\\). Then \\(a_{7} a_{1} a_{2} a_{3} a_{4} a_{5} a_{6} = e\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A product equal to the identity stays equal to the identity after a cyclic rotation. -/\ntheorem rotate_product {Q : Type*} [Group Q] (a₁ a₂ a₃ a₄ a₅ a₆ a₇ : Q)\n (h : a₁ * a₂ * a₃ * a₄ * a₅ * a₆ * a₇ = 1) : a₇ * a₁ * a₂ * a₃ * a₄ * a₅ * a₆ = 1 := by\n sorry\n", "path": "tasks/group-theory/group-theory-inverse-d3-t0081"} {"id": "group-theory-involution-d3-t0082", "env": "group-theory", "msc": "20", "family": "involution", "difficulty": 3, "seed": 82, "kind": "prove", "instruction": "# Commutativity from a group law\n\nProve the following statement.\n\nLet \\(G\\) be a group such that \\(g^2 = e \\text{ for every } g\\). Then every element of \\(G\\) lies in the center of \\(G\\).\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 stated consequence of the hypothesis on the group. -/\ntheorem group_commutes {A : Type*} [Group A] (h : ∀ g : A, g ^ 2 = 1) :\n ∀ z : A, z ∈ Subgroup.center A := by\n sorry\n", "path": "tasks/group-theory/group-theory-involution-d3-t0082"} {"id": "group-theory-subgroup-d3-t0083", "env": "group-theory", "msc": "20", "family": "subgroup", "difficulty": 3, "seed": 83, "kind": "prove", "instruction": "# Subgroups and their orders\n\nProve the following statement.\n\nLet \\(G\\) be a group with \\(|G| = 19\\). Then \\(x^{19} = e\\) for every \\(x \\in G\\), and every element \\(a \\neq e\\) has order exactly 19.\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/-- Every element satisfies x^|G| = 1. -/\ntheorem pow_card {G : Type*} [Group G] (hG : Nat.card G = 19) (x : G) :\n x ^ 19 = 1 := by\n sorry\n\n/-- In a group of prime order p, every non-identity element has order p. -/\ntheorem order_prime {G : Type*} [Group G] (hG : Nat.card G = 19) (a : G) (hne : a ≠ 1) :\n orderOf a = 19 := by\n sorry\n", "path": "tasks/group-theory/group-theory-subgroup-d3-t0083"}