math / data /logic-and-sets /train.jsonl
birgermoell's picture
Add files using upload-large-folder tool
7931c0c verified
Raw History Blame Contribute Delete
119 kB
{"id": "logic-and-sets-finset_card-d1-t0000", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 1, "seed": 0, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 8x + 1\\) on the natural numbers and let \\(s\\) be a finite set of natural numbers. Prove that the image \\(f(s)\\) has the same number of elements as \\(s\\).\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 cardinality fact about finite sets. -/\ntheorem card_fact (s : Finset ℕ) :\n (s.image (fun x : ℕ => 8 * x + 1)).card = s.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d1-t0000"}
{"id": "logic-and-sets-relations-d1-t0001", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 1, "seed": 1, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn the integers define \\(x \\sim y \\iff 7 \\mid x - y\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun x y : ℤ => 7 ∣ x - y) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d1-t0001"}
{"id": "logic-and-sets-set_identities-d1-t0002", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 1, "seed": 2, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(T, C, Y\\) be subsets of a type \\(\\alpha\\). Prove the set identity \\[(T \\cap C)^{c} = T^{c} \\cup C^{c}.\\]\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 identity between sets. -/\ntheorem set_identity {α : Type*} (T C Y : Set α) :\n (T ∩ C)ᶜ = Tᶜ ∪ Cᶜ := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d1-t0002"}
{"id": "logic-and-sets-finset_card-d2-t0003", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 2, "seed": 3, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 2x + 6\\) on the natural numbers and let \\(s, t\\) be finite sets of natural numbers. Prove that \\[|f(s \\cup t)| + |f(s \\cap t)| = |s| + |t|.\\]\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) :\n ((s ∪ t).image (fun x : ℕ => 2 * x + 6)).card + ((s ∩ t).image (fun x : ℕ => 2 * x + 6)).card = s.card + t.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d2-t0003"}
{"id": "logic-and-sets-relations-d2-t0004", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 2, "seed": 4, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn the integers define \\(x \\sim y \\iff 11 \\mid x^{3} - y^{3}\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun x y : ℤ => 11 ∣ x ^ 3 - y ^ 3) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d2-t0004"}
{"id": "logic-and-sets-set_identities-d2-t0005", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 2, "seed": 5, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(f : \\alpha \\to \\beta\\) be a function that is injective and let \\(S\\) be subsets of \\(\\alpha\\). Write \\(f(X)\\) for the image and \\(f^{-1}(X)\\) for the preimage of a set \\(X\\). Prove \\[f^{-1}(f(S)) = S.\\]\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 statement about images and preimages. -/\ntheorem image_identity {α β : Type*} (f : α → β) (S : Set α) (hf : Function.Injective f) :\n f ⁻¹' (f '' S) = S := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d2-t0005"}
{"id": "logic-and-sets-finset_card-d3-t0006", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 3, "seed": 6, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 4x + 6\\) on the natural numbers and let \\(s, t\\) be disjoint finite sets of natural numbers. Prove that \\(|f(s \\cup t)| = |s| + |t|\\).\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) (h : Disjoint s t) :\n ((s ∪ t).image (fun x : ℕ => 4 * x + 6)).card = s.card + t.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d3-t0006"}
{"id": "logic-and-sets-relations-d3-t0007", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 3, "seed": 7, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nFor an integer \\(n\\), define a relation on the integers by \\(x \\sim y \\iff x \\equiv y \\pmod{n}\\). Prove three things: (1) \\(\\sim\\) is an equivalence relation; (2) \\(\\sim\\) is compatible with addition: if \\(a \\equiv b \\pmod{n}\\) and \\(c \\equiv d \\pmod{n}\\) then \\(a+c \\equiv b+d \\pmod{n}\\); (3) \\(\\sim\\) is compatible with powers: if \\(a \\equiv b \\pmod{n}\\) then \\(a^k \\equiv b^k \\pmod{n}\\) for every natural number \\(k\\).\n\n## What to do\n\n`Solution.lean` in the working directory states 3 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 3 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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv (n : ℤ) :\n Equivalence (fun x y : ℤ => x ≡ y [ZMOD n]) := by\n sorry\n\n/-- The relation is compatible with addition. -/\ntheorem rel_add (n a b c d : ℤ) (h1 : a ≡ b [ZMOD n]) (h2 : c ≡ d [ZMOD n]) :\n a + c ≡ b + d [ZMOD n] := by\n sorry\n\n/-- The relation is compatible with taking powers. -/\ntheorem rel_pow (n a b : ℤ) (k : ℕ) (h : a ≡ b [ZMOD n]) :\n a ^ k ≡ b ^ k [ZMOD n] := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d3-t0007"}
{"id": "logic-and-sets-set_identities-d3-t0008", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 3, "seed": 8, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(g : \\alpha \\to \\beta\\) be a function that is injective and let \\(A, C\\) be subsets of \\(\\alpha\\). Write \\(g(X)\\) for the image and \\(g^{-1}(X)\\) for the preimage of a set \\(X\\). Prove \\[g(A \\setminus C) = g(A) \\setminus g(C).\\]\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 statement about images and preimages. -/\ntheorem image_identity {α β : Type*} (g : α → β) (A C : Set α) (hf : Function.Injective g) :\n g '' (A \\ C) = g '' A \\ g '' C := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d3-t0008"}
{"id": "logic-and-sets-finset_card-d1-t0009", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 1, "seed": 9, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 5x + 5\\) on the natural numbers and let \\(s, t\\) be finite sets of natural numbers. Prove that the product \\(f(s) \\times t\\) has \\(|s| \\cdot |t|\\) elements.\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) :\n ((s.image (fun x : ℕ => 5 * x + 5)) ×ˢ t).card = s.card * t.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d1-t0009"}
{"id": "logic-and-sets-relations-d1-t0010", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 1, "seed": 10, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn the integers define \\(x \\sim y \\iff x \\bmod 6 = y \\bmod 6\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun x y : ℤ => x % 6 = y % 6) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d1-t0010"}
{"id": "logic-and-sets-set_identities-d1-t0011", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 1, "seed": 11, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(A, X, S\\) be subsets of a type \\(\\alpha\\). Prove the set identity \\[(A \\setminus S) \\cap (A \\setminus X) = A \\setminus (S \\cup X).\\]\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 identity between sets. -/\ntheorem set_identity {α : Type*} (A X S : Set α) :\n (A \\ S) ∩ (A \\ X) = A \\ (S ∪ X) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d1-t0011"}
{"id": "logic-and-sets-finset_card-d2-t0012", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 2, "seed": 12, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 4x + 9\\) on the natural numbers and let \\(s, t\\) be finite sets of natural numbers. Prove that \\[|f(s \\setminus t)| + |s \\cap t| = |s|.\\]\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) :\n ((s \\ t).image (fun x : ℕ => 4 * x + 9)).card + (s ∩ t).card = s.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d2-t0012"}
{"id": "logic-and-sets-relations-d2-t0013", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 2, "seed": 13, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn the integers define \\(x \\sim y \\iff 7 \\mid x^{2} - y^{2}\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun x y : ℤ => 7 ∣ x ^ 2 - y ^ 2) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d2-t0013"}
{"id": "logic-and-sets-set_identities-d2-t0014", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 2, "seed": 14, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(g : \\alpha \\to \\beta\\) be a function that is injective and let \\(B\\) be subsets of \\(\\alpha\\). Write \\(g(X)\\) for the image and \\(g^{-1}(X)\\) for the preimage of a set \\(X\\). Prove \\[g^{-1}(g(B)) = B.\\]\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 statement about images and preimages. -/\ntheorem image_identity {α β : Type*} (g : α → β) (B : Set α) (hf : Function.Injective g) :\n g ⁻¹' (g '' B) = B := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d2-t0014"}
{"id": "logic-and-sets-finset_card-d3-t0015", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 3, "seed": 15, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 3x + 4\\) on the natural numbers and let \\(s, t\\) be disjoint finite sets of natural numbers. Prove that \\(|f(s \\cup t)| = |s| + |t|\\).\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) (h : Disjoint s t) :\n ((s ∪ t).image (fun x : ℕ => 3 * x + 4)).card = s.card + t.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d3-t0015"}
{"id": "logic-and-sets-relations-d3-t0016", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 3, "seed": 16, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nFor an integer \\(n\\), define a relation on the integers by \\(x \\sim y \\iff x \\equiv y \\pmod{n}\\). Prove three things: (1) \\(\\sim\\) is an equivalence relation; (2) \\(\\sim\\) is compatible with addition: if \\(a \\equiv b \\pmod{n}\\) and \\(c \\equiv d \\pmod{n}\\) then \\(a+c \\equiv b+d \\pmod{n}\\); (3) \\(\\sim\\) is compatible with multiplication: if \\(a \\equiv b \\pmod{n}\\) and \\(c \\equiv d \\pmod{n}\\) then \\(ac \\equiv bd \\pmod{n}\\).\n\n## What to do\n\n`Solution.lean` in the working directory states 3 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 3 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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv (n : ℤ) :\n Equivalence (fun x y : ℤ => x ≡ y [ZMOD n]) := by\n sorry\n\n/-- The relation is compatible with addition. -/\ntheorem rel_add (n a b c d : ℤ) (h1 : a ≡ b [ZMOD n]) (h2 : c ≡ d [ZMOD n]) :\n a + c ≡ b + d [ZMOD n] := by\n sorry\n\n/-- The relation is compatible with multiplication. -/\ntheorem rel_mul (n a b c d : ℤ) (h1 : a ≡ b [ZMOD n]) (h2 : c ≡ d [ZMOD n]) :\n a * c ≡ b * d [ZMOD n] := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d3-t0016"}
{"id": "logic-and-sets-set_identities-d3-t0017", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 3, "seed": 17, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(Z, S, A\\) be subsets of a type \\(\\alpha\\). Assume that \\(Z \\subseteq S\\). Prove the set identity \\[(A \\cup (Z \\cup S))^{c} = (A \\cup S)^{c}.\\]\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 identity between sets. -/\ntheorem set_identity {α : Type*} (Z S A : Set α) (h : Z ⊆ S) :\n (A ∪ (Z ∪ S))ᶜ = (A ∪ S)ᶜ := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d3-t0017"}
{"id": "logic-and-sets-finset_card-d1-t0018", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 1, "seed": 18, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 5x + 2\\) on the natural numbers and let \\(s\\) be a finite set of natural numbers. Prove that the image \\(f(s)\\) has the same number of elements as \\(s\\).\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 cardinality fact about finite sets. -/\ntheorem card_fact (s : Finset ℕ) :\n (s.image (fun x : ℕ => 5 * x + 2)).card = s.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d1-t0018"}
{"id": "logic-and-sets-relations-d1-t0019", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 1, "seed": 19, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn the integers define \\(x \\sim y \\iff x \\bmod 7 = y \\bmod 7\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun x y : ℤ => x % 7 = y % 7) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d1-t0019"}
{"id": "logic-and-sets-set_identities-d1-t0020", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 1, "seed": 20, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(T, U, Z\\) be subsets of a type \\(\\alpha\\). Prove the set identity \\[U \\cup (U \\cap T) = U.\\]\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 identity between sets. -/\ntheorem set_identity {α : Type*} (T U Z : Set α) :\n U ∪ (U ∩ T) = U := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d1-t0020"}
{"id": "logic-and-sets-finset_card-d2-t0021", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 2, "seed": 21, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 2x + 1\\) on the natural numbers and let \\(s, t\\) be finite sets of natural numbers. Prove that \\[|f(s \\cup t)| + |f(s \\cap t)| = |s| + |t|.\\]\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) :\n ((s ∪ t).image (fun x : ℕ => 2 * x + 1)).card + ((s ∩ t).image (fun x : ℕ => 2 * x + 1)).card = s.card + t.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d2-t0021"}
{"id": "logic-and-sets-relations-d2-t0022", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 2, "seed": 22, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn pairs of natural numbers define \\((x_1, y_1) \\sim (x_2, y_2) \\iff x_1 + 3 y_2 = x_2 + 3 y_1\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun p q : ℕ × ℕ => p.1 + 3 * q.2 = q.1 + 3 * p.2) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d2-t0022"}
{"id": "logic-and-sets-set_identities-d2-t0023", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 2, "seed": 23, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(h : \\alpha \\to \\beta\\) be a function and let \\(A, S\\) be subsets of \\(\\alpha\\). Write \\(h(X)\\) for the image and \\(h^{-1}(X)\\) for the preimage of a set \\(X\\). Prove \\[h(A) \\setminus h(S) \\subseteq h(A \\setminus S).\\]\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 statement about images and preimages. -/\ntheorem image_identity {α β : Type*} (h : α → β) (A S : Set α) :\n h '' A \\ h '' S ⊆ h '' (A \\ S) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d2-t0023"}
{"id": "logic-and-sets-finset_card-d3-t0024", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 3, "seed": 24, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(s, t, u\\) be finite sets of natural numbers. First prove the identity \\[|s \\cup t \\cup u| + |s \\cap t| + |s \\cap u| + |t \\cap u| = |s| + |t| + |u| + |s \\cap t \\cap u|.\\] Then use it to prove the following, where subtraction is truncated subtraction on the natural numbers: \\[|s \\cup t \\cup u| = |s| + |t| + |u| - |s \\cap t| - |s \\cap u| - |t \\cap u| + |s \\cap t \\cap u|.\\]\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/-- Inclusion and exclusion for three finite sets. -/\ntheorem incl_excl (s t u : Finset ℕ) :\n (s ∪ t ∪ u).card + (s ∩ t).card + (s ∩ u).card + (t ∩ u).card = s.card + t.card + u.card + (s ∩ t ∩ u).card := by\n sorry\n\n/-- The size of a union of three finite sets, in terms of the sizes of the intersections. -/\ntheorem card_union_three (s t u : Finset ℕ) :\n (s ∪ t ∪ u).card = s.card + t.card + u.card - (s ∩ t).card - (s ∩ u).card - (t ∩ u).card + (s ∩ t ∩ u).card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d3-t0024"}
{"id": "logic-and-sets-relations-d3-t0025", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 3, "seed": 25, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nFor an integer \\(n\\), define a relation on the integers by \\(x \\sim y \\iff x \\equiv y \\pmod{n}\\). Prove three things: (1) \\(\\sim\\) is an equivalence relation; (2) \\(\\sim\\) is compatible with addition: if \\(a \\equiv b \\pmod{n}\\) and \\(c \\equiv d \\pmod{n}\\) then \\(a+c \\equiv b+d \\pmod{n}\\); (3) \\(\\sim\\) is compatible with multiplication: if \\(a \\equiv b \\pmod{n}\\) and \\(c \\equiv d \\pmod{n}\\) then \\(ac \\equiv bd \\pmod{n}\\).\n\n## What to do\n\n`Solution.lean` in the working directory states 3 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 3 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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv (n : ℤ) :\n Equivalence (fun x y : ℤ => x ≡ y [ZMOD n]) := by\n sorry\n\n/-- The relation is compatible with addition. -/\ntheorem rel_add (n a b c d : ℤ) (h1 : a ≡ b [ZMOD n]) (h2 : c ≡ d [ZMOD n]) :\n a + c ≡ b + d [ZMOD n] := by\n sorry\n\n/-- The relation is compatible with multiplication. -/\ntheorem rel_mul (n a b c d : ℤ) (h1 : a ≡ b [ZMOD n]) (h2 : c ≡ d [ZMOD n]) :\n a * c ≡ b * d [ZMOD n] := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d3-t0025"}
{"id": "logic-and-sets-set_identities-d3-t0026", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 3, "seed": 26, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(Y, T, A\\) be subsets of a type \\(\\alpha\\). Assume that \\(T \\subseteq Y\\). Prove the set identity \\[((Y \\setminus A) \\cap Y) \\cap T = (Y^{c} \\cup (T \\setminus A)) \\cap T.\\]\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 identity between sets. -/\ntheorem set_identity {α : Type*} (Y T A : Set α) (h : T ⊆ Y) :\n ((Y \\ A) ∩ Y) ∩ T = (Yᶜ ∪ (T \\ A)) ∩ T := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d3-t0026"}
{"id": "logic-and-sets-finset_card-d1-t0027", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 1, "seed": 27, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 8x + 9\\) on the natural numbers and let \\(s\\) be a finite set of natural numbers. Prove that the image \\(f(s)\\) has the same number of elements as \\(s\\).\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 cardinality fact about finite sets. -/\ntheorem card_fact (s : Finset ℕ) :\n (s.image (fun x : ℕ => 8 * x + 9)).card = s.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d1-t0027"}
{"id": "logic-and-sets-relations-d1-t0028", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 1, "seed": 28, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn the integers define \\(x \\sim y \\iff x \\bmod 10 = y \\bmod 10\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun x y : ℤ => x % 10 = y % 10) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d1-t0028"}
{"id": "logic-and-sets-set_identities-d1-t0029", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 1, "seed": 29, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(Y, C, Z\\) be subsets of a type \\(\\alpha\\). Prove the set identity \\[(Z \\setminus Y) \\cup (Z \\setminus C) = Z \\setminus (Y \\cap C).\\]\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 identity between sets. -/\ntheorem set_identity {α : Type*} (Y C Z : Set α) :\n (Z \\ Y) ∪ (Z \\ C) = Z \\ (Y ∩ C) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d1-t0029"}
{"id": "logic-and-sets-finset_card-d2-t0030", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 2, "seed": 30, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 9x + 8\\) on the natural numbers and let \\(s, t\\) be finite sets of natural numbers. Prove that \\[|f(s \\setminus t)| + |s \\cap t| = |s|.\\]\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) :\n ((s \\ t).image (fun x : ℕ => 9 * x + 8)).card + (s ∩ t).card = s.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d2-t0030"}
{"id": "logic-and-sets-relations-d2-t0031", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 2, "seed": 31, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn pairs of natural numbers define \\((x_1, y_1) \\sim (x_2, y_2) \\iff x_1 + 6 y_2 = x_2 + 6 y_1\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun p q : ℕ × ℕ => p.1 + 6 * q.2 = q.1 + 6 * p.2) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d2-t0031"}
{"id": "logic-and-sets-set_identities-d2-t0032", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 2, "seed": 32, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(f : \\alpha \\to \\beta\\) be a function and let \\(B\\) be subsets of \\(\\beta\\). Write \\(f(X)\\) for the image and \\(f^{-1}(X)\\) for the preimage of a set \\(X\\). Prove \\[f(f^{-1}(B)) = B \\cap \\operatorname{range} 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 stated statement about images and preimages. -/\ntheorem image_identity {α β : Type*} (f : α → β) (B : Set β) :\n f '' (f ⁻¹' B) = B ∩ Set.range f := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d2-t0032"}
{"id": "logic-and-sets-finset_card-d3-t0033", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 3, "seed": 33, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(s, t, u\\) be finite sets of natural numbers. First prove the identity \\[|s \\cup t \\cup u| + |s \\cap t| + |s \\cap u| + |t \\cap u| = |s| + |t| + |u| + |s \\cap t \\cap u|.\\] Then use it to prove the following, where subtraction is truncated subtraction on the natural numbers: \\[|s \\cup t \\cup u| = |s| + |t| + |u| - |s \\cap t| - |s \\cap u| - |t \\cap u| + |s \\cap t \\cap u|.\\]\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/-- Inclusion and exclusion for three finite sets. -/\ntheorem incl_excl (s t u : Finset ℕ) :\n (s ∪ t ∪ u).card + (s ∩ t).card + (s ∩ u).card + (t ∩ u).card = s.card + t.card + u.card + (s ∩ t ∩ u).card := by\n sorry\n\n/-- The size of a union of three finite sets, in terms of the sizes of the intersections. -/\ntheorem card_union_three (s t u : Finset ℕ) :\n (s ∪ t ∪ u).card = s.card + t.card + u.card - (s ∩ t).card - (s ∩ u).card - (t ∩ u).card + (s ∩ t ∩ u).card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d3-t0033"}
{"id": "logic-and-sets-relations-d3-t0034", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 3, "seed": 34, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nFor an integer \\(m\\), define a relation on the integers by \\(x \\sim y \\iff m \\mid x - y\\). Prove three things: (1) \\(\\sim\\) is an equivalence relation; (2) \\(\\sim\\) is compatible with addition: if \\(m \\mid a - b\\) and \\(m \\mid c - d\\) then \\(m \\mid (a+c) - (b+d)\\); (3) \\(\\sim\\) is compatible with multiplication: if \\(m \\mid a - b\\) and \\(m \\mid c - d\\) then \\(m \\mid ac - bd\\).\n\n## What to do\n\n`Solution.lean` in the working directory states 3 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 3 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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv (m : ℤ) :\n Equivalence (fun x y : ℤ => m ∣ x - y) := by\n sorry\n\n/-- The relation is compatible with addition. -/\ntheorem rel_add (m a b c d : ℤ) (h1 : m ∣ a - b) (h2 : m ∣ c - d) :\n m ∣ (a + c) - (b + d) := by\n sorry\n\n/-- The relation is compatible with multiplication. -/\ntheorem rel_mul (m a b c d : ℤ) (h1 : m ∣ a - b) (h2 : m ∣ c - d) :\n m ∣ a * c - b * d := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d3-t0034"}
{"id": "logic-and-sets-set_identities-d3-t0035", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 3, "seed": 35, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(C, A, X\\) be subsets of a type \\(\\alpha\\). Assume that \\(C \\subseteq A\\). Prove the set identity \\[((C \\cup A) \\cup X)^{c} = ((C \\cap A) \\cup (X \\cup A))^{c}.\\]\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 identity between sets. -/\ntheorem set_identity {α : Type*} (C A X : Set α) (h : C ⊆ A) :\n ((C ∪ A) ∪ X)ᶜ = ((C ∩ A) ∪ (X ∪ A))ᶜ := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d3-t0035"}
{"id": "logic-and-sets-finset_card-d1-t0036", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 1, "seed": 36, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 6x + 6\\) on the natural numbers and let \\(s\\) be a finite set of natural numbers. Prove that the image \\(f(s)\\) has the same number of elements as \\(s\\).\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 cardinality fact about finite sets. -/\ntheorem card_fact (s : Finset ℕ) :\n (s.image (fun x : ℕ => 6 * x + 6)).card = s.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d1-t0036"}
{"id": "logic-and-sets-relations-d1-t0037", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 1, "seed": 37, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn the integers define \\(x \\sim y \\iff x \\bmod 9 = y \\bmod 9\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun x y : ℤ => x % 9 = y % 9) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d1-t0037"}
{"id": "logic-and-sets-set_identities-d1-t0038", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 1, "seed": 38, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(Y, B, X\\) be subsets of a type \\(\\alpha\\). Prove the set identity \\[X \\setminus (Y \\cap B) = (X \\setminus Y) \\cup (X \\setminus B).\\]\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 identity between sets. -/\ntheorem set_identity {α : Type*} (Y B X : Set α) :\n X \\ (Y ∩ B) = (X \\ Y) ∪ (X \\ B) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d1-t0038"}
{"id": "logic-and-sets-finset_card-d2-t0039", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 2, "seed": 39, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 3x + 7\\) on the natural numbers and let \\(s, t\\) be finite sets of natural numbers. Prove that \\[|f(s \\setminus t)| + |s \\cap t| = |s|.\\]\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) :\n ((s \\ t).image (fun x : ℕ => 3 * x + 7)).card + (s ∩ t).card = s.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d2-t0039"}
{"id": "logic-and-sets-relations-d2-t0040", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 2, "seed": 40, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn pairs of natural numbers define \\((x_1, y_1) \\sim (x_2, y_2) \\iff x_1 + 4 y_2 = x_2 + 4 y_1\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun p q : ℕ × ℕ => p.1 + 4 * q.2 = q.1 + 4 * p.2) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d2-t0040"}
{"id": "logic-and-sets-set_identities-d2-t0041", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 2, "seed": 41, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(f : \\alpha \\to \\beta\\) be a function and let \\(S\\) be subsets of \\(\\beta\\). Write \\(f(X)\\) for the image and \\(f^{-1}(X)\\) for the preimage of a set \\(X\\). Prove \\[f(f^{-1}(S)) = S \\cap \\operatorname{range} 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 stated statement about images and preimages. -/\ntheorem image_identity {α β : Type*} (f : α → β) (S : Set β) :\n f '' (f ⁻¹' S) = S ∩ Set.range f := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d2-t0041"}
{"id": "logic-and-sets-finset_card-d3-t0042", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 3, "seed": 42, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(s, t, u\\) be finite sets of natural numbers. First prove the identity \\[|s \\cup t \\cup u| + |s \\cap t| + |s \\cap u| + |t \\cap u| = |s| + |t| + |u| + |s \\cap t \\cap u|.\\] Then use it to prove the following, where subtraction is truncated subtraction on the natural numbers: \\[|s \\cup t \\cup u| = |s| + |t| + |u| - |s \\cap t| - |s \\cap u| - |t \\cap u| + |s \\cap t \\cap u|.\\]\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/-- Inclusion and exclusion for three finite sets. -/\ntheorem incl_excl (s t u : Finset ℕ) :\n (s ∪ t ∪ u).card + (s ∩ t).card + (s ∩ u).card + (t ∩ u).card = s.card + t.card + u.card + (s ∩ t ∩ u).card := by\n sorry\n\n/-- The size of a union of three finite sets, in terms of the sizes of the intersections. -/\ntheorem card_union_three (s t u : Finset ℕ) :\n (s ∪ t ∪ u).card = s.card + t.card + u.card - (s ∩ t).card - (s ∩ u).card - (t ∩ u).card + (s ∩ t ∩ u).card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d3-t0042"}
{"id": "logic-and-sets-relations-d3-t0043", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 3, "seed": 43, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nFor an integer \\(q\\), define a relation on the integers by \\(x \\sim y \\iff q \\mid x - y\\). Prove three things: (1) \\(\\sim\\) is an equivalence relation; (2) \\(\\sim\\) is compatible with addition: if \\(q \\mid a - b\\) and \\(q \\mid c - d\\) then \\(q \\mid (a+c) - (b+d)\\); (3) \\(\\sim\\) is compatible with powers: if \\(q \\mid a - b\\) then \\(q \\mid a^k - b^k\\) for every natural number \\(k\\).\n\n## What to do\n\n`Solution.lean` in the working directory states 3 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 3 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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv (q : ℤ) :\n Equivalence (fun x y : ℤ => q ∣ x - y) := by\n sorry\n\n/-- The relation is compatible with addition. -/\ntheorem rel_add (q a b c d : ℤ) (h1 : q ∣ a - b) (h2 : q ∣ c - d) :\n q ∣ (a + c) - (b + d) := by\n sorry\n\n/-- The relation is compatible with taking powers. -/\ntheorem rel_pow (q a b : ℤ) (k : ℕ) (h : q ∣ a - b) :\n q ∣ a ^ k - b ^ k := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d3-t0043"}
{"id": "logic-and-sets-set_identities-d3-t0044", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 3, "seed": 44, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(h : \\alpha \\to \\beta\\) be a function that is injective and let \\(A, C\\) be subsets of \\(\\alpha\\). Write \\(h(X)\\) for the image and \\(h^{-1}(X)\\) for the preimage of a set \\(X\\). Prove \\[h(A \\cap C) = h(A) \\cap h(C).\\]\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 statement about images and preimages. -/\ntheorem image_identity {α β : Type*} (h : α → β) (A C : Set α) (hf : Function.Injective h) :\n h '' (A ∩ C) = h '' A ∩ h '' C := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d3-t0044"}
{"id": "logic-and-sets-finset_card-d1-t0045", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 1, "seed": 45, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 7x + 8\\) on the natural numbers and let \\(s\\) be a finite set of natural numbers. Prove that the image \\(f(s)\\) has the same number of elements as \\(s\\).\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 cardinality fact about finite sets. -/\ntheorem card_fact (s : Finset ℕ) :\n (s.image (fun x : ℕ => 7 * x + 8)).card = s.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d1-t0045"}
{"id": "logic-and-sets-relations-d1-t0046", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 1, "seed": 46, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn the integers define \\(x \\sim y \\iff x \\bmod 7 = y \\bmod 7\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun x y : ℤ => x % 7 = y % 7) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d1-t0046"}
{"id": "logic-and-sets-set_identities-d1-t0047", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 1, "seed": 47, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(X, C, Y\\) be subsets of a type \\(\\alpha\\). Prove the set identity \\[C \\setminus (Y \\cup X) = (C \\setminus Y) \\cap (C \\setminus X).\\]\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 identity between sets. -/\ntheorem set_identity {α : Type*} (X C Y : Set α) :\n C \\ (Y ∪ X) = (C \\ Y) ∩ (C \\ X) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d1-t0047"}
{"id": "logic-and-sets-finset_card-d2-t0048", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 2, "seed": 48, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 4x + 8\\) on the natural numbers and let \\(s, t\\) be finite sets of natural numbers. Prove that \\[|f(s \\setminus t)| + |s \\cap t| = |s|.\\]\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) :\n ((s \\ t).image (fun x : ℕ => 4 * x + 8)).card + (s ∩ t).card = s.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d2-t0048"}
{"id": "logic-and-sets-relations-d2-t0049", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 2, "seed": 49, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn pairs of natural numbers define \\((x_1, y_1) \\sim (x_2, y_2) \\iff x_1 + 6 y_2 = x_2 + 6 y_1\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun p q : ℕ × ℕ => p.1 + 6 * q.2 = q.1 + 6 * p.2) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d2-t0049"}
{"id": "logic-and-sets-set_identities-d2-t0050", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 2, "seed": 50, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(g : \\alpha \\to \\beta\\) be a function and let \\(S\\) be subsets of \\(\\beta\\). Write \\(g(X)\\) for the image and \\(g^{-1}(X)\\) for the preimage of a set \\(X\\). Prove \\[g(g^{-1}(S)) = S \\cap \\operatorname{range} 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 statement about images and preimages. -/\ntheorem image_identity {α β : Type*} (g : α → β) (S : Set β) :\n g '' (g ⁻¹' S) = S ∩ Set.range g := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d2-t0050"}
{"id": "logic-and-sets-finset_card-d3-t0051", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 3, "seed": 51, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 5x + 2\\) on the natural numbers and let \\(s, t\\) be disjoint finite sets of natural numbers. Prove that \\(|f(s \\cup t)| = |s| + |t|\\).\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) (h : Disjoint s t) :\n ((s ∪ t).image (fun x : ℕ => 5 * x + 2)).card = s.card + t.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d3-t0051"}
{"id": "logic-and-sets-relations-d3-t0052", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 3, "seed": 52, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nFor an integer \\(n\\), define a relation on the integers by \\(x \\sim y \\iff x \\equiv y \\pmod{n}\\). Prove three things: (1) \\(\\sim\\) is an equivalence relation; (2) \\(\\sim\\) is compatible with addition: if \\(a \\equiv b \\pmod{n}\\) and \\(c \\equiv d \\pmod{n}\\) then \\(a+c \\equiv b+d \\pmod{n}\\); (3) \\(\\sim\\) is compatible with powers: if \\(a \\equiv b \\pmod{n}\\) then \\(a^k \\equiv b^k \\pmod{n}\\) for every natural number \\(k\\).\n\n## What to do\n\n`Solution.lean` in the working directory states 3 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 3 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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv (n : ℤ) :\n Equivalence (fun x y : ℤ => x ≡ y [ZMOD n]) := by\n sorry\n\n/-- The relation is compatible with addition. -/\ntheorem rel_add (n a b c d : ℤ) (h1 : a ≡ b [ZMOD n]) (h2 : c ≡ d [ZMOD n]) :\n a + c ≡ b + d [ZMOD n] := by\n sorry\n\n/-- The relation is compatible with taking powers. -/\ntheorem rel_pow (n a b : ℤ) (k : ℕ) (h : a ≡ b [ZMOD n]) :\n a ^ k ≡ b ^ k [ZMOD n] := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d3-t0052"}
{"id": "logic-and-sets-set_identities-d3-t0053", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 3, "seed": 53, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(S, A, C\\) be subsets of a type \\(\\alpha\\). Assume that \\(C \\cap A = \\emptyset\\). Prove the set identity \\[(S \\cap (A \\cap C)) \\cup C = C \\cap (C \\cap A)^{c}.\\]\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 identity between sets. -/\ntheorem set_identity {α : Type*} (S A C : Set α) (h : C ∩ A = ∅) :\n (S ∩ (A ∩ C)) ∪ C = C ∩ (C ∩ A)ᶜ := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d3-t0053"}
{"id": "logic-and-sets-finset_card-d1-t0054", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 1, "seed": 54, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 9x + 0\\) on the natural numbers and let \\(s, t\\) be finite sets of natural numbers. Prove that the product \\(f(s) \\times t\\) has \\(|s| \\cdot |t|\\) elements.\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) :\n ((s.image (fun x : ℕ => 9 * x + 0)) ×ˢ t).card = s.card * t.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d1-t0054"}
{"id": "logic-and-sets-relations-d1-t0055", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 1, "seed": 55, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn the integers define \\(x \\sim y \\iff x \\bmod 12 = y \\bmod 12\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun x y : ℤ => x % 12 = y % 12) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d1-t0055"}
{"id": "logic-and-sets-set_identities-d1-t0056", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 1, "seed": 56, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(X, Y, C\\) be subsets of a type \\(\\alpha\\). Prove the set identity \\[X \\cap C^{c} = X \\setminus C.\\]\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 identity between sets. -/\ntheorem set_identity {α : Type*} (X Y C : Set α) :\n X ∩ Cᶜ = X \\ C := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d1-t0056"}
{"id": "logic-and-sets-finset_card-d2-t0057", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 2, "seed": 57, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 8x + 4\\) on the natural numbers and let \\(s, t\\) be finite sets of natural numbers. Prove that \\[|f(s \\cup t)| + |f(s \\cap t)| = |s| + |t|.\\]\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) :\n ((s ∪ t).image (fun x : ℕ => 8 * x + 4)).card + ((s ∩ t).image (fun x : ℕ => 8 * x + 4)).card = s.card + t.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d2-t0057"}
{"id": "logic-and-sets-relations-d2-t0058", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 2, "seed": 58, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn the integers define \\(x \\sim y \\iff 5 \\mid x^{3} - y^{3}\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun x y : ℤ => 5 ∣ x ^ 3 - y ^ 3) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d2-t0058"}
{"id": "logic-and-sets-set_identities-d2-t0059", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 2, "seed": 59, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(g : \\alpha \\to \\beta\\) be a function and let \\(B, C\\) be subsets of \\(\\alpha\\). Write \\(g(X)\\) for the image and \\(g^{-1}(X)\\) for the preimage of a set \\(X\\). Prove \\[g(B) \\setminus g(C) \\subseteq g(B \\setminus C).\\]\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 statement about images and preimages. -/\ntheorem image_identity {α β : Type*} (g : α → β) (B C : Set α) :\n g '' B \\ g '' C ⊆ g '' (B \\ C) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d2-t0059"}
{"id": "logic-and-sets-finset_card-d3-t0060", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 3, "seed": 60, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 8x + 7\\) on the natural numbers and let \\(s, t\\) be disjoint finite sets of natural numbers. Prove that \\(|f(s \\cup t)| = |s| + |t|\\).\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) (h : Disjoint s t) :\n ((s ∪ t).image (fun x : ℕ => 8 * x + 7)).card = s.card + t.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d3-t0060"}
{"id": "logic-and-sets-relations-d3-t0061", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 3, "seed": 61, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nFor an integer \\(n\\), define a relation on the integers by \\(x \\sim y \\iff x \\equiv y \\pmod{n}\\). Prove three things: (1) \\(\\sim\\) is an equivalence relation; (2) \\(\\sim\\) is compatible with addition: if \\(a \\equiv b \\pmod{n}\\) and \\(c \\equiv d \\pmod{n}\\) then \\(a+c \\equiv b+d \\pmod{n}\\); (3) \\(\\sim\\) is compatible with multiplication: if \\(a \\equiv b \\pmod{n}\\) and \\(c \\equiv d \\pmod{n}\\) then \\(ac \\equiv bd \\pmod{n}\\).\n\n## What to do\n\n`Solution.lean` in the working directory states 3 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 3 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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv (n : ℤ) :\n Equivalence (fun x y : ℤ => x ≡ y [ZMOD n]) := by\n sorry\n\n/-- The relation is compatible with addition. -/\ntheorem rel_add (n a b c d : ℤ) (h1 : a ≡ b [ZMOD n]) (h2 : c ≡ d [ZMOD n]) :\n a + c ≡ b + d [ZMOD n] := by\n sorry\n\n/-- The relation is compatible with multiplication. -/\ntheorem rel_mul (n a b c d : ℤ) (h1 : a ≡ b [ZMOD n]) (h2 : c ≡ d [ZMOD n]) :\n a * c ≡ b * d [ZMOD n] := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d3-t0061"}
{"id": "logic-and-sets-set_identities-d3-t0062", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 3, "seed": 62, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(f : \\alpha \\to \\beta\\) be a function that is injective and let \\(B, T\\) be subsets of \\(\\alpha\\). Write \\(f(X)\\) for the image and \\(f^{-1}(X)\\) for the preimage of a set \\(X\\). Prove \\[f(B \\cap T) = f(B) \\cap f(T).\\]\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 statement about images and preimages. -/\ntheorem image_identity {α β : Type*} (f : α → β) (B T : Set α) (hf : Function.Injective f) :\n f '' (B ∩ T) = f '' B ∩ f '' T := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d3-t0062"}
{"id": "logic-and-sets-finset_card-d1-t0063", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 1, "seed": 63, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 2x + 8\\) on the natural numbers and let \\(s, t\\) be finite sets of natural numbers. Prove that the product \\(f(s) \\times t\\) has \\(|s| \\cdot |t|\\) elements.\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) :\n ((s.image (fun x : ℕ => 2 * x + 8)) ×ˢ t).card = s.card * t.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d1-t0063"}
{"id": "logic-and-sets-relations-d1-t0064", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 1, "seed": 64, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn the integers define \\(x \\sim y \\iff 7 \\mid x - y\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun x y : ℤ => 7 ∣ x - y) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d1-t0064"}
{"id": "logic-and-sets-set_identities-d1-t0065", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 1, "seed": 65, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(Z, A, U\\) be subsets of a type \\(\\alpha\\). Prove the set identity \\[(U \\setminus A) \\cup (U \\cap Z) = U \\setminus (A \\setminus 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/-- The stated identity between sets. -/\ntheorem set_identity {α : Type*} (Z A U : Set α) :\n (U \\ A) ∪ (U ∩ Z) = U \\ (A \\ Z) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d1-t0065"}
{"id": "logic-and-sets-finset_card-d2-t0066", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 2, "seed": 66, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 6x + 8\\) on the natural numbers and let \\(s, t\\) be finite sets of natural numbers. Prove that \\[|f(s \\setminus t)| + |s \\cap t| = |s|.\\]\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) :\n ((s \\ t).image (fun x : ℕ => 6 * x + 8)).card + (s ∩ t).card = s.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d2-t0066"}
{"id": "logic-and-sets-relations-d2-t0067", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 2, "seed": 67, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn pairs of natural numbers define \\((x_1, y_1) \\sim (x_2, y_2) \\iff x_1 + 3 y_2 = x_2 + 3 y_1\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun p q : ℕ × ℕ => p.1 + 3 * q.2 = q.1 + 3 * p.2) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d2-t0067"}
{"id": "logic-and-sets-set_identities-d2-t0068", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 2, "seed": 68, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(f : \\alpha \\to \\beta\\) be a function and let \\(A, T\\) be subsets of \\(\\alpha\\). Write \\(f(X)\\) for the image and \\(f^{-1}(X)\\) for the preimage of a set \\(X\\). Prove \\[f(A) \\setminus f(T) \\subseteq f(A \\setminus T).\\]\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 statement about images and preimages. -/\ntheorem image_identity {α β : Type*} (f : α → β) (A T : Set α) :\n f '' A \\ f '' T ⊆ f '' (A \\ T) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d2-t0068"}
{"id": "logic-and-sets-finset_card-d3-t0069", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 3, "seed": 69, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 9x + 7\\) on the natural numbers and let \\(s, t\\) be disjoint finite sets of natural numbers. Prove that \\(|f(s \\cup t)| = |s| + |t|\\).\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) (h : Disjoint s t) :\n ((s ∪ t).image (fun x : ℕ => 9 * x + 7)).card = s.card + t.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d3-t0069"}
{"id": "logic-and-sets-relations-d3-t0070", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 3, "seed": 70, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nFor an integer \\(m\\), define a relation on the integers by \\(x \\sim y \\iff m \\mid x - y\\). Prove three things: (1) \\(\\sim\\) is an equivalence relation; (2) \\(\\sim\\) is compatible with addition: if \\(m \\mid a - b\\) and \\(m \\mid c - d\\) then \\(m \\mid (a+c) - (b+d)\\); (3) \\(\\sim\\) is compatible with powers: if \\(m \\mid a - b\\) then \\(m \\mid a^k - b^k\\) for every natural number \\(k\\).\n\n## What to do\n\n`Solution.lean` in the working directory states 3 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 3 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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv (m : ℤ) :\n Equivalence (fun x y : ℤ => m ∣ x - y) := by\n sorry\n\n/-- The relation is compatible with addition. -/\ntheorem rel_add (m a b c d : ℤ) (h1 : m ∣ a - b) (h2 : m ∣ c - d) :\n m ∣ (a + c) - (b + d) := by\n sorry\n\n/-- The relation is compatible with taking powers. -/\ntheorem rel_pow (m a b : ℤ) (k : ℕ) (h : m ∣ a - b) :\n m ∣ a ^ k - b ^ k := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d3-t0070"}
{"id": "logic-and-sets-set_identities-d3-t0071", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 3, "seed": 71, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(Y, B, T\\) be subsets of a type \\(\\alpha\\). Assume that \\(T \\cap Y = \\emptyset\\). Prove the set identity \\[Y \\setminus (Y^{c} \\cap B) = Y \\cap T^{c}.\\]\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 identity between sets. -/\ntheorem set_identity {α : Type*} (Y B T : Set α) (h : T ∩ Y = ∅) :\n Y \\ (Yᶜ ∩ B) = Y ∩ Tᶜ := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d3-t0071"}
{"id": "logic-and-sets-finset_card-d1-t0072", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 1, "seed": 72, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 3x + 0\\) on the natural numbers and let \\(s\\) be a finite set of natural numbers. Prove that the image \\(f(s)\\) has the same number of elements as \\(s\\).\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 cardinality fact about finite sets. -/\ntheorem card_fact (s : Finset ℕ) :\n (s.image (fun x : ℕ => 3 * x + 0)).card = s.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d1-t0072"}
{"id": "logic-and-sets-relations-d1-t0073", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 1, "seed": 73, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn the integers define \\(x \\sim y \\iff x \\bmod 6 = y \\bmod 6\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun x y : ℤ => x % 6 = y % 6) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d1-t0073"}
{"id": "logic-and-sets-set_identities-d1-t0074", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 1, "seed": 74, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(U, S, Y\\) be subsets of a type \\(\\alpha\\). Prove the set identity \\[(Y \\setminus U)^{c} = Y^{c} \\cup U.\\]\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 identity between sets. -/\ntheorem set_identity {α : Type*} (U S Y : Set α) :\n (Y \\ U)ᶜ = Yᶜ ∪ U := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d1-t0074"}
{"id": "logic-and-sets-finset_card-d2-t0075", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 2, "seed": 75, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 5x + 3\\) on the natural numbers and let \\(s, t\\) be finite sets of natural numbers. Prove that \\[|f(s \\setminus t)| + |s \\cap t| = |s|.\\]\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 cardinality fact about finite sets. -/\ntheorem card_fact (s t : Finset ℕ) :\n ((s \\ t).image (fun x : ℕ => 5 * x + 3)).card + (s ∩ t).card = s.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d2-t0075"}
{"id": "logic-and-sets-relations-d2-t0076", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 2, "seed": 76, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn the integers define \\(x \\sim y \\iff 3 \\mid x^{2} - y^{2}\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun x y : ℤ => 3 ∣ x ^ 2 - y ^ 2) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d2-t0076"}
{"id": "logic-and-sets-set_identities-d2-t0077", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 2, "seed": 77, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(f : \\alpha \\to \\beta\\) be a function and let \\(B\\) be subsets of \\(\\beta\\). Write \\(f(X)\\) for the image and \\(f^{-1}(X)\\) for the preimage of a set \\(X\\). Prove \\[f(f^{-1}(B)) = B \\cap \\operatorname{range} 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 stated statement about images and preimages. -/\ntheorem image_identity {α β : Type*} (f : α → β) (B : Set β) :\n f '' (f ⁻¹' B) = B ∩ Set.range f := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d2-t0077"}
{"id": "logic-and-sets-finset_card-d3-t0078", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 3, "seed": 78, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(s, t, u\\) be finite sets of natural numbers. First prove the identity \\[|s \\cup t \\cup u| + |s \\cap t| + |s \\cap u| + |t \\cap u| = |s| + |t| + |u| + |s \\cap t \\cap u|.\\] Then use it to prove the following, where subtraction is truncated subtraction on the natural numbers: \\[|s \\cup t \\cup u| = |s| + |t| + |u| - |s \\cap t| - |s \\cap u| - |t \\cap u| + |s \\cap t \\cap u|.\\]\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/-- Inclusion and exclusion for three finite sets. -/\ntheorem incl_excl (s t u : Finset ℕ) :\n (s ∪ t ∪ u).card + (s ∩ t).card + (s ∩ u).card + (t ∩ u).card = s.card + t.card + u.card + (s ∩ t ∩ u).card := by\n sorry\n\n/-- The size of a union of three finite sets, in terms of the sizes of the intersections. -/\ntheorem card_union_three (s t u : Finset ℕ) :\n (s ∪ t ∪ u).card = s.card + t.card + u.card - (s ∩ t).card - (s ∩ u).card - (t ∩ u).card + (s ∩ t ∩ u).card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d3-t0078"}
{"id": "logic-and-sets-relations-d3-t0079", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 3, "seed": 79, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nFor an integer \\(m\\), define a relation on the integers by \\(x \\sim y \\iff x \\equiv y \\pmod{m}\\). Prove three things: (1) \\(\\sim\\) is an equivalence relation; (2) \\(\\sim\\) is compatible with addition: if \\(a \\equiv b \\pmod{m}\\) and \\(c \\equiv d \\pmod{m}\\) then \\(a+c \\equiv b+d \\pmod{m}\\); (3) \\(\\sim\\) is compatible with powers: if \\(a \\equiv b \\pmod{m}\\) then \\(a^k \\equiv b^k \\pmod{m}\\) for every natural number \\(k\\).\n\n## What to do\n\n`Solution.lean` in the working directory states 3 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 3 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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv (m : ℤ) :\n Equivalence (fun x y : ℤ => x ≡ y [ZMOD m]) := by\n sorry\n\n/-- The relation is compatible with addition. -/\ntheorem rel_add (m a b c d : ℤ) (h1 : a ≡ b [ZMOD m]) (h2 : c ≡ d [ZMOD m]) :\n a + c ≡ b + d [ZMOD m] := by\n sorry\n\n/-- The relation is compatible with taking powers. -/\ntheorem rel_pow (m a b : ℤ) (k : ℕ) (h : a ≡ b [ZMOD m]) :\n a ^ k ≡ b ^ k [ZMOD m] := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d3-t0079"}
{"id": "logic-and-sets-set_identities-d3-t0080", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 3, "seed": 80, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(Z, X, U\\) be subsets of a type \\(\\alpha\\). Assume that \\(Z \\subseteq X\\). Prove the set identity \\[(U \\setminus X)^{c} \\cap Z = X \\cap (Z \\cap (X \\cap 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/-- The stated identity between sets. -/\ntheorem set_identity {α : Type*} (Z X U : Set α) (h : Z ⊆ X) :\n (U \\ X)ᶜ ∩ Z = X ∩ (Z ∩ (X ∩ Z)) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d3-t0080"}
{"id": "logic-and-sets-finset_card-d1-t0081", "env": "logic-and-sets", "msc": "03", "family": "finset_card", "difficulty": 1, "seed": 81, "kind": "prove", "instruction": "# Prove a cardinality fact about finite sets\n\nProve the following.\n\nLet \\(f(x) = 2x + 7\\) on the natural numbers and let \\(s\\) be a finite set of natural numbers. Prove that the image \\(f(s)\\) has the same number of elements as \\(s\\).\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 cardinality fact about finite sets. -/\ntheorem card_fact (s : Finset ℕ) :\n (s.image (fun x : ℕ => 2 * x + 7)).card = s.card := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-finset_card-d1-t0081"}
{"id": "logic-and-sets-relations-d1-t0082", "env": "logic-and-sets", "msc": "03", "family": "relations", "difficulty": 1, "seed": 82, "kind": "prove", "instruction": "# Prove properties of a relation\n\nProve the following.\n\nOn the integers define \\(x \\sim y \\iff 3 \\mid x - y\\). Prove that \\(\\sim\\) is an equivalence relation.\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 relation is reflexive, symmetric and transitive. -/\ntheorem rel_equiv :\n Equivalence (fun x y : ℤ => 3 ∣ x - y) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-relations-d1-t0082"}
{"id": "logic-and-sets-set_identities-d1-t0083", "env": "logic-and-sets", "msc": "03", "family": "set_identities", "difficulty": 1, "seed": 83, "kind": "prove", "instruction": "# Prove an identity between sets\n\nProve the following.\n\nLet \\(Z, B, C\\) be subsets of a type \\(\\alpha\\). Prove the set identity \\[(B \\cup Z) \\setminus (B \\cap Z) = (B \\setminus Z) \\cup (Z \\setminus B).\\]\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 identity between sets. -/\ntheorem set_identity {α : Type*} (Z B C : Set α) :\n (B ∪ Z) \\ (B ∩ Z) = (B \\ Z) ∪ (Z \\ B) := by\n sorry\n", "path": "tasks/logic-and-sets/logic-and-sets-set_identities-d1-t0083"}