File size: 35,456 Bytes
7931c0c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{"id": "linear-algebra-det_trace-d1-e0000", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 1, "seed": 10000, "kind": "prove", "instruction": "# Determinant and trace of 2x2 matrices\n\nProve the following statement.\n\nCompute the determinant of the product \\(\\begin{pmatrix} 4 & 1 \\\\ 1 & -3 \\end{pmatrix}\\) \\(\\begin{pmatrix} 3 & 1 \\\\ 1 & 1 \\end{pmatrix}\\) of integer matrices. Show that it equals -26.\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 determinant of the product is the product of the determinants. -/\ntheorem det_of_product : Matrix.det (!![4, 1; 1, -3] * !![3, 1; 1, 1] : Matrix (Fin 2) (Fin 2) ℤ) = (-26 : ℤ) := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d1-e0000"}
{"id": "linear-algebra-independence-d1-e0001", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 1, "seed": 10001, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^2\\) consider the vectors \\(\\begin{pmatrix} 0 \\\\ -2 \\end{pmatrix}\\), \\(\\begin{pmatrix} 0 \\\\ 6 \\end{pmatrix}\\). Show that they are not linearly independent over \\(\\mathbb{Q}\\).\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 given vectors are linearly dependent over the rationals. -/\ntheorem vectors_dependent : ¬ LinearIndependent ℚ ![(![0, -2] : Fin 2 → ℚ), ![0, 6]] := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d1-e0001"}
{"id": "linear-algebra-linear_map-d1-e0002", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 1, "seed": 10002, "kind": "prove", "instruction": "# Kernels, ranges and projections\n\nProve the following statement.\n\nLet \\(q : V \\to V\\) be a linear map over \\(\\mathbb{Q}\\) with \\(q(v(v)) = v(v)\\) for every \\(v\\). Then \\(u - q(u)\\) lies in the kernel of \\(q\\) for every \\(u \\in V\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- x - p x lies in the kernel of an idempotent map p. -/\ntheorem sub_proj_mem_ker {V : Type*} [AddCommGroup V] [Module ℚ V] (q : V →ₗ[ℚ] V) (hp : ∀ x, q (q x) = q x) (u : V) :\n    u - q u ∈ LinearMap.ker q := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d1-e0002"}
{"id": "linear-algebra-matrix_pow-d1-e0003", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 1, "seed": 10003, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 1 & 2 \\\\ 0 & 1 \\end{pmatrix}^n = \\begin{pmatrix} 1 & 2n \\\\ 0 & 1 \\end{pmatrix}.\\]\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Powers of a shear matrix. -/\ntheorem shear_power (n : ℕ) :\n    (!![1, 2; 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n = !![1, (n : ℤ) * 2; 0, 1] := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d1-e0003"}
{"id": "linear-algebra-det_trace-d2-e0004", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 2, "seed": 10004, "kind": "prove", "instruction": "# Determinant and trace of 2x2 matrices\n\nProve the following statement.\n\nFor every integer \\(x\\), the determinant of \\[\\begin{pmatrix} x-3 & 2 \\\\ 2 & x-1 \\end{pmatrix}\\begin{pmatrix} x & -1 \\\\ -1 & x+0 \\end{pmatrix}\\] equals \\(x^4 - 4x^3 - 2x^2 + 4x + 1\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The determinant of a product of matrices with a variable entry. -/\ntheorem det_of_polynomial_product (x : ℤ) :\n    Matrix.det (!![x - 3, 2; 2, x - 1] * !![x, -1; -1, x + 0] : Matrix (Fin 2) (Fin 2) ℤ) = x ^ 4 - 4 * x ^ 3 - 2 * x ^ 2 + 4 * x + 1 := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d2-e0004"}
{"id": "linear-algebra-independence-d2-e0005", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 2, "seed": 10005, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^2\\) consider the vectors \\(\\begin{pmatrix} 3 \\\\ 3 \\end{pmatrix}\\), \\(\\begin{pmatrix} -3 \\\\ -3 \\end{pmatrix}\\). Show that they are not linearly independent over \\(\\mathbb{Q}\\).\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 given vectors are linearly dependent over the rationals. -/\ntheorem vectors_dependent : ¬ LinearIndependent ℚ ![(![3, 3] : Fin 2 → ℚ), ![-3, -3]] := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d2-e0005"}
{"id": "linear-algebra-linear_map-d2-e0006", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 2, "seed": 10006, "kind": "prove", "instruction": "# Kernels, ranges and projections\n\nProve the following statement.\n\nLet \\(f : V \\to W\\) and \\(g : W \\to U\\) be linear maps over \\(\\mathbb{R}\\). Then the kernel of \\(f\\) is contained in the kernel of \\(g \\circ f\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- ker f ≤ ker (g ∘ f). -/\ntheorem ker_le_comp {V W U : Type*} [AddCommGroup V] [Module ℝ V] [AddCommGroup W] [Module ℝ W] [AddCommGroup U] [Module ℝ U] (f : V →ₗ[ℝ] W) (g : W →ₗ[ℝ] U) :\n    LinearMap.ker f ≤ LinearMap.ker (g ∘ₗ f) := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d2-e0006"}
{"id": "linear-algebra-matrix_pow-d2-e0007", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 2, "seed": 10007, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 3 & 1 \\\\ 0 & 3 \\end{pmatrix}^{n+1} = \\begin{pmatrix} (3)^{n+1} & (n+1)(3)^n \\\\ 0 & (3)^{n+1} \\end{pmatrix}.\\]\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Powers of a 2x2 Jordan block. -/\ntheorem jordan_power (n : ℕ) :\n    (!![3, 1; 0, 3] : Matrix (Fin 2) (Fin 2) ℤ) ^ (n + 1) = !![3 ^ (n + 1), ((n : ℤ) + 1) * 3 ^ n; 0, 3 ^ (n + 1)] := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d2-e0007"}
{"id": "linear-algebra-det_trace-d3-e0008", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 3, "seed": 10008, "kind": "prove", "instruction": "# Determinant and trace of 2x2 matrices\n\nProve the following statement.\n\nLet \\(A\\) be a \\(2 \\times 2\\) integer matrix with trace -1 and determinant -3. Then the trace of \\(A^2\\) is 7. You may first prove \\(A^2 = (\\operatorname{tr} A) A - (\\det A) I\\) for every \\(2 \\times 2\\) integer matrix.\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/-- Cayley-Hamilton for 2x2 integer matrices. -/\ntheorem cayley_hamilton_two (A : Matrix (Fin 2) (Fin 2) ℤ) :\n    A ^ 2 = Matrix.trace A • A - Matrix.det A • (1 : Matrix (Fin 2) (Fin 2) ℤ) := by\n  sorry\n\n/-- The trace of A^2 from the trace and determinant of A. -/\ntheorem trace_of_square (A : Matrix (Fin 2) (Fin 2) ℤ) (ht : Matrix.trace A = (-1 : ℤ)) (hd : Matrix.det A = (-3 : ℤ)) :\n    Matrix.trace (A ^ 2) = 7 := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d3-e0008"}
{"id": "linear-algebra-independence-d3-e0009", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 3, "seed": 10009, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^3\\) consider the vectors \\(\\begin{pmatrix} 6 \\\\ 0 \\\\ -4 \\end{pmatrix}\\), \\(\\begin{pmatrix} 4 \\\\ 6 \\\\ 3 \\end{pmatrix}\\), \\(\\begin{pmatrix} -4 \\\\ 12 \\\\ 14 \\end{pmatrix}\\). Show that they are not linearly independent over \\(\\mathbb{Q}\\).\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 given vectors are linearly dependent over the rationals. -/\ntheorem vectors_dependent : ¬ LinearIndependent ℚ ![(![6, 0, -4] : Fin 3 → ℚ), ![4, 6, 3], ![-4, 12, 14]] := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d3-e0009"}
{"id": "linear-algebra-linear_map-d3-e0010", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 3, "seed": 10010, "kind": "prove", "instruction": "# Kernels, ranges and projections\n\nProve the following statement.\n\nLet \\(p : V \\to V\\) be a linear map over \\(\\mathbb{R}\\) with \\(p \\circ p = p\\). Then \\(\\mathrm{id} - p\\) is also idempotent, and \\(p \\circ (\\mathrm{id} - p) = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- If p is idempotent then so is id - p, and p kills its image. -/\ntheorem complement_idempotent {V : Type*} [AddCommGroup V] [Module ℝ V] (p : V →ₗ[ℝ] V) (hp : p ∘ₗ p = p) :\n    (LinearMap.id - p) ∘ₗ (LinearMap.id - p) = LinearMap.id - p ∧ p ∘ₗ (LinearMap.id - p) = 0 := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d3-e0010"}
{"id": "linear-algebra-matrix_pow-d3-e0011", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 3, "seed": 10011, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every integer \\(k\\) and natural number \\(n\\), \\[\\begin{pmatrix} 1 & k \\\\ 0 & 1 \\end{pmatrix}^n = \\begin{pmatrix} 1 & nk \\\\ 0 & 1 \\end{pmatrix}.\\] Deduce that for all natural numbers \\(n, m\\), \\[\\begin{pmatrix} 1 & 6 \\\\ 0 & 1 \\end{pmatrix}^n \\begin{pmatrix} 1 & -1 \\\\ 0 & 1 \\end{pmatrix}^m = \\begin{pmatrix} 1 & 6n + -1m \\\\ 0 & 1 \\end{pmatrix}.\\]\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/-- Powers of a shear matrix. -/\ntheorem shear_power (k : ℤ) (n : ℕ) :\n    (!![1, k; 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n = !![1, (n : ℤ) * k; 0, 1] := by\n  sorry\n\n/-- A product of powers of two shears. -/\ntheorem shear_product (n m : ℕ) :\n    (!![1, 6; 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n * (!![1, (-1 : ℤ); 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ m = !![1, (n : ℤ) * 6 + (m : ℤ) * (-1 : ℤ); 0, 1] := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d3-e0011"}
{"id": "linear-algebra-det_trace-d1-e0012", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 1, "seed": 10012, "kind": "prove", "instruction": "# Determinant and trace of 2x2 matrices\n\nProve the following statement.\n\nCompute the determinant of the product \\(\\begin{pmatrix} 3 & 1 \\\\ -2 & 2 \\end{pmatrix}\\) \\(\\begin{pmatrix} 4 & -1 \\\\ -3 & 2 \\end{pmatrix}\\) of integer matrices. Show that it equals 40.\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 determinant of the product is the product of the determinants. -/\ntheorem det_of_product : Matrix.det (!![3, 1; -2, 2] * !![4, -1; -3, 2] : Matrix (Fin 2) (Fin 2) ℤ) = 40 := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d1-e0012"}
{"id": "linear-algebra-independence-d1-e0013", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 1, "seed": 10013, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^2\\) consider the vectors \\(\\begin{pmatrix} 2 \\\\ -3 \\end{pmatrix}\\), \\(\\begin{pmatrix} 1 \\\\ -1 \\end{pmatrix}\\). Show that they are linearly independent over \\(\\mathbb{Q}\\).\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 given vectors are linearly independent over the rationals. -/\ntheorem vectors_independent : LinearIndependent ℚ ![(![2, -3] : Fin 2 → ℚ), ![1, -1]] := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d1-e0013"}
{"id": "linear-algebra-linear_map-d1-e0014", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 1, "seed": 10014, "kind": "prove", "instruction": "# Kernels, ranges and projections\n\nProve the following statement.\n\nLet \\(f : V \\to W\\) be a linear map of vector spaces over \\(\\mathbb{Q}\\) and \\(a, b \\in V\\) with \\(f(a) = 0\\) and \\(f(b) = 0\\). Then \\(f(7a + 2b) = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The kernel is closed under linear combinations. -/\ntheorem kernel_combination {V W : Type*} [AddCommGroup V] [Module ℚ V] [AddCommGroup W] [Module ℚ W] (f : V →ₗ[ℚ] W) {a b : V}\n    (hx : f a = 0) (hy : f b = 0) : f ((7 : ℚ) • a + (2 : ℚ) • b) = 0 := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d1-e0014"}
{"id": "linear-algebra-matrix_pow-d1-e0015", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 1, "seed": 10015, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 1 & 2 \\\\ 0 & 1 \\end{pmatrix}^n = \\begin{pmatrix} 1 & 2n \\\\ 0 & 1 \\end{pmatrix}.\\]\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Powers of a shear matrix. -/\ntheorem shear_power (n : ℕ) :\n    (!![1, 2; 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n = !![1, (n : ℤ) * 2; 0, 1] := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d1-e0015"}
{"id": "linear-algebra-det_trace-d2-e0016", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 2, "seed": 10016, "kind": "prove", "instruction": "# Determinant and trace of 2x2 matrices\n\nProve the following statement.\n\nFor every integer \\(x\\), \\[\\det\\left(x I - \\begin{pmatrix} 0 & 2 \\\\ -1 & -2 \\end{pmatrix}\\right) = x^2 - (-2)\\,x + (2),\\] where \\(I\\) is the \\(2 \\times 2\\) identity matrix.\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 characteristic polynomial of a 2x2 matrix is x^2 - tr x + det. -/\ntheorem char_poly_value (x : ℤ) :\n    Matrix.det (x • (1 : Matrix (Fin 2) (Fin 2) ℤ) - !![0, 2; -1, -2]) = x ^ 2 - (-2 : ℤ) * x + 2 := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d2-e0016"}
{"id": "linear-algebra-independence-d2-e0017", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 2, "seed": 10017, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^2\\) consider the vectors \\(\\begin{pmatrix} -6 \\\\ -6 \\end{pmatrix}\\), \\(\\begin{pmatrix} -3 \\\\ 2 \\end{pmatrix}\\). Show that they are linearly independent over \\(\\mathbb{Q}\\).\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 given vectors are linearly independent over the rationals. -/\ntheorem vectors_independent : LinearIndependent ℚ ![(![-6, -6] : Fin 2 → ℚ), ![-3, 2]] := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d2-e0017"}
{"id": "linear-algebra-linear_map-d2-e0018", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 2, "seed": 10018, "kind": "prove", "instruction": "# Kernels, ranges and projections\n\nProve the following statement.\n\nLet \\(f : V \\to W\\) be a linear map of vector spaces over \\(\\mathbb{R}\\). Then the kernel of \\(-1f\\) equals the kernel of \\(f\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- A nonzero scalar multiple has the same kernel. -/\ntheorem ker_smul_eq {V W : Type*} [AddCommGroup V] [Module ℝ V] [AddCommGroup W] [Module ℝ W] (f : V →ₗ[ℝ] W) :\n    LinearMap.ker ((-1 : ℝ) • f) = LinearMap.ker f := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d2-e0018"}
{"id": "linear-algebra-matrix_pow-d2-e0019", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 2, "seed": 10019, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 5 & 1 \\\\ 0 & 5 \\end{pmatrix}^{n+1} = \\begin{pmatrix} (5)^{n+1} & (n+1)(5)^n \\\\ 0 & (5)^{n+1} \\end{pmatrix}.\\]\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- Powers of a 2x2 Jordan block. -/\ntheorem jordan_power (n : ℕ) :\n    (!![5, 1; 0, 5] : Matrix (Fin 2) (Fin 2) ℤ) ^ (n + 1) = !![5 ^ (n + 1), ((n : ℤ) + 1) * 5 ^ n; 0, 5 ^ (n + 1)] := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d2-e0019"}
{"id": "linear-algebra-det_trace-d3-e0020", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 3, "seed": 10020, "kind": "prove", "instruction": "# Determinant and trace of 2x2 matrices\n\nProve the following statement.\n\nLet \\(A\\) be a \\(2 \\times 2\\) integer matrix with trace 2 and determinant -2. Then the trace of \\(A^2\\) is 8. You may first prove \\(A^2 = (\\operatorname{tr} A) A - (\\det A) I\\) for every \\(2 \\times 2\\) integer matrix.\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/-- Cayley-Hamilton for 2x2 integer matrices. -/\ntheorem cayley_hamilton_two (A : Matrix (Fin 2) (Fin 2) ℤ) :\n    A ^ 2 = Matrix.trace A • A - Matrix.det A • (1 : Matrix (Fin 2) (Fin 2) ℤ) := by\n  sorry\n\n/-- The trace of A^2 from the trace and determinant of A. -/\ntheorem trace_of_square (A : Matrix (Fin 2) (Fin 2) ℤ) (ht : Matrix.trace A = (2 : ℤ)) (hd : Matrix.det A = (-2 : ℤ)) :\n    Matrix.trace (A ^ 2) = 8 := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d3-e0020"}
{"id": "linear-algebra-independence-d3-e0021", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 3, "seed": 10021, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^3\\) consider the vectors \\(\\begin{pmatrix} -5 \\\\ 6 \\\\ -5 \\end{pmatrix}\\), \\(\\begin{pmatrix} 2 \\\\ 1 \\\\ 4 \\end{pmatrix}\\), \\(\\begin{pmatrix} -2 \\\\ 4 \\\\ 0 \\end{pmatrix}\\). Show that they are linearly independent over \\(\\mathbb{Q}\\).\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 given vectors are linearly independent over the rationals. -/\ntheorem vectors_independent : LinearIndependent ℚ ![(![-5, 6, -5] : Fin 3 → ℚ), ![2, 1, 4], ![-2, 4, 0]] := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d3-e0021"}
{"id": "linear-algebra-linear_map-d3-e0022", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 3, "seed": 10022, "kind": "prove", "instruction": "# Kernels, ranges and projections\n\nProve the following statement.\n\nLet \\(e : V \\to V\\) be a linear map over \\(\\mathbb{R}\\) with \\(e^2 = e\\). Show that \\(\\ker e\\) and \\(\\operatorname{range} e\\) are complementary subspaces: their intersection is \\(\\{0\\}\\) and together they span \\(V\\).\n\n## What to do\n\n`Solution.lean` in the working directory states 2 theorems in Lean 4 with Mathlib, with `sorry` in place of each proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is the share of the 2 theorems that are proved. If the file does not compile the reward is 0, so leave `sorry` on a theorem you cannot finish rather than a broken proof.\n", "start_file": "import Mathlib\n\n/-- The kernel and the range of an idempotent map meet only in 0. -/\ntheorem disjoint_ker_range {V : Type*} [AddCommGroup V] [Module ℝ V] (e : V →ₗ[ℝ] V) (hp : e * e = e) :\n    Disjoint (LinearMap.ker e) (LinearMap.range e) := by\n  sorry\n\n/-- The kernel and the range of an idempotent map are complements. -/\ntheorem ker_range_isCompl {V : Type*} [AddCommGroup V] [Module ℝ V] (e : V →ₗ[ℝ] V) (hp : e * e = e) :\n    IsCompl (LinearMap.ker e) (LinearMap.range e) := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d3-e0022"}
{"id": "linear-algebra-matrix_pow-d3-e0023", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 3, "seed": 10023, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every integer \\(k\\) and natural number \\(n\\), \\[\\begin{pmatrix} 1 & k \\\\ 0 & 1 \\end{pmatrix}^n = \\begin{pmatrix} 1 & nk \\\\ 0 & 1 \\end{pmatrix}.\\] Deduce that for all natural numbers \\(n, m\\), \\[\\begin{pmatrix} 1 & 5 \\\\ 0 & 1 \\end{pmatrix}^n \\begin{pmatrix} 1 & 1 \\\\ 0 & 1 \\end{pmatrix}^m = \\begin{pmatrix} 1 & 5n + 1m \\\\ 0 & 1 \\end{pmatrix}.\\]\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/-- Powers of a shear matrix. -/\ntheorem shear_power (k : ℤ) (n : ℕ) :\n    (!![1, k; 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n = !![1, (n : ℤ) * k; 0, 1] := by\n  sorry\n\n/-- A product of powers of two shears. -/\ntheorem shear_product (n m : ℕ) :\n    (!![1, 5; 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n * (!![1, 1; 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ m = !![1, (n : ℤ) * 5 + (m : ℤ) * 1; 0, 1] := by\n  sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d3-e0023"}