{"id": "linear-algebra-det_trace-d1-t0000", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 1, "seed": 0, "kind": "prove", "instruction": "# Determinant and trace of 2x2 matrices\n\nProve the following statement.\n\nCompute the determinant of the product \\(\\begin{pmatrix} -2 & 3 \\\\ 3 & 0 \\end{pmatrix}\\) \\(\\begin{pmatrix} -2 & 4 \\\\ 3 & 0 \\end{pmatrix}\\) of integer matrices. Show that it equals 108.\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 (!![-2, 3; 3, 0] * !![-2, 4; 3, 0] : Matrix (Fin 2) (Fin 2) ℤ) = 108 := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d1-t0000"} {"id": "linear-algebra-independence-d1-t0001", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 1, "seed": 1, "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} 2 \\\\ 3 \\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 ℚ ![(![0, 2] : Fin 2 → ℚ), ![2, 3]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d1-t0001"} {"id": "linear-algebra-linear_map-d1-t0002", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 1, "seed": 2, "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}\\) and \\(x, y \\in V\\) with \\(f(x) = 0\\) and \\(f(y) = 0\\). Then \\(f(3x + 4y) = 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) {x y : V}\n (hx : f x = 0) (hy : f y = 0) : f ((3 : ℝ) • x + (4 : ℝ) • y) = 0 := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d1-t0002"} {"id": "linear-algebra-matrix_pow-d1-t0003", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 1, "seed": 3, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 1 & 0 \\\\ 6 & 1 \\end{pmatrix}^n = \\begin{pmatrix} 1 & 0 \\\\ 6n & 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 lower shear matrix. -/\ntheorem lower_shear_power (n : ℕ) :\n (!![1, 0; 6, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n = !![1, 0; (n : ℤ) * 6, 1] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d1-t0003"} {"id": "linear-algebra-det_trace-d2-t0004", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 2, "seed": 4, "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} -3 & 3 \\\\ -2 & 1 \\end{pmatrix}\\right) = x^2 - (-2)\\,x + (3),\\] 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) ℤ) - !![-3, 3; -2, 1]) = x ^ 2 - (-2 : ℤ) * x + 3 := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d2-t0004"} {"id": "linear-algebra-independence-d2-t0005", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 2, "seed": 5, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^2\\) consider the vectors \\(\\begin{pmatrix} -3 \\\\ 5 \\end{pmatrix}\\), \\(\\begin{pmatrix} -9 \\\\ 15 \\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, 5] : Fin 2 → ℚ), ![-9, 15]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d2-t0005"} {"id": "linear-algebra-linear_map-d2-t0006", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 2, "seed": 6, "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 range of \\(g \\circ f\\) is contained in the range of \\(g\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- range (g ∘ f) ≤ range g. -/\ntheorem range_comp_le {V W U : Type*} [AddCommGroup V] [Module ℝ V] [AddCommGroup W] [Module ℝ W] [AddCommGroup U] [Module ℝ U] (f : V →ₗ[ℝ] W) (g : W →ₗ[ℝ] U) :\n LinearMap.range (g ∘ₗ f) ≤ LinearMap.range g := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d2-t0006"} {"id": "linear-algebra-matrix_pow-d2-t0007", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 2, "seed": 7, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 6 & 1 \\\\ 0 & 6 \\end{pmatrix}^{n+1} = \\begin{pmatrix} (6)^{n+1} & (n+1)(6)^n \\\\ 0 & (6)^{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 (!![6, 1; 0, 6] : Matrix (Fin 2) (Fin 2) ℤ) ^ (n + 1) = !![6 ^ (n + 1), ((n : ℤ) + 1) * 6 ^ n; 0, 6 ^ (n + 1)] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d2-t0007"} {"id": "linear-algebra-det_trace-d3-t0008", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 3, "seed": 8, "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 -5. 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) = (-5 : ℤ) := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d3-t0008"} {"id": "linear-algebra-independence-d3-t0009", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 3, "seed": 9, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^3\\) consider the vectors \\(\\begin{pmatrix} 6 \\\\ -6 \\\\ 5 \\end{pmatrix}\\), \\(\\begin{pmatrix} -5 \\\\ 6 \\\\ 2 \\end{pmatrix}\\), \\(\\begin{pmatrix} -1 \\\\ -5 \\\\ 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 ℚ ![(![6, -6, 5] : Fin 3 → ℚ), ![-5, 6, 2], ![-1, -5, 0]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d3-t0009"} {"id": "linear-algebra-linear_map-d3-t0010", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 3, "seed": 10, "kind": "prove", "instruction": "# Kernels, ranges and projections\n\nProve the following statement.\n\nLet \\(e : V \\to V\\) be a linear map over \\(\\mathbb{Q}\\) with \\(e(e(x)) = e(x) for every vector x\\). Then the kernel of \\(\\mathrm{id} - e\\) equals the range of \\(e\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- For idempotent p, the kernel of id - p is the range of p. -/\ntheorem ker_id_sub {V : Type*} [AddCommGroup V] [Module ℚ V] (e : V →ₗ[ℚ] V) (hp : ∀ x, e (e x) = e x) :\n LinearMap.ker (LinearMap.id - e) = LinearMap.range e := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d3-t0010"} {"id": "linear-algebra-matrix_pow-d3-t0011", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 3, "seed": 11, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} -3 & -1 \\\\ 0 & 1 \\end{pmatrix}^n = \\begin{pmatrix} (-3)^n & -1 \\sum_{i=0}^{n-1} (-3)^i \\\\ 0 & 1 \\end{pmatrix}.\\] The sum is empty when \\(n = 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/-- Powers of an affine map matrix, with a geometric sum. -/\ntheorem affine_power (n : ℕ) :\n (!![(-3 : ℤ), (-1 : ℤ); 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n = !![(-3 : ℤ) ^ n, (-1 : ℤ) * ∑ i ∈ Finset.range n, (-3 : ℤ) ^ i; 0, 1] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d3-t0011"} {"id": "linear-algebra-det_trace-d1-t0012", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 1, "seed": 12, "kind": "prove", "instruction": "# Determinant and trace of 2x2 matrices\n\nProve the following statement.\n\nFor every integer \\(x\\), \\[\\begin{pmatrix} x+0 & 2 \\\\ -3 & x-3 \\end{pmatrix}\\begin{pmatrix} x-3 & -2 \\\\ 3 & x+0 \\end{pmatrix} = (x^2 -3 x +6) \\begin{pmatrix} 1 & 0 \\\\ 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/-- A matrix times its adjugate is its determinant times the identity. -/\ntheorem adjugate_product (x : ℤ) :\n !![x + 0, 2; -3, x - 3] * !![x - 3, -2; 3, x + 0] = (x ^ 2 + -3 * x + 6) • (1 : Matrix (Fin 2) (Fin 2) ℤ) := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d1-t0012"} {"id": "linear-algebra-independence-d1-t0013", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 1, "seed": 13, "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} 6 \\\\ -9 \\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 ℚ ![(![-2, 3] : Fin 2 → ℚ), ![6, -9]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d1-t0013"} {"id": "linear-algebra-linear_map-d1-t0014", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 1, "seed": 14, "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}\\) and \\(x, y \\in V\\) with \\(f(x) = 0\\) and \\(f(y) = 0\\). Then \\(f(-3x + 5y) = 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) {x y : V}\n (hx : f x = 0) (hy : f y = 0) : f ((-3 : ℝ) • x + (5 : ℝ) • y) = 0 := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d1-t0014"} {"id": "linear-algebra-matrix_pow-d1-t0015", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 1, "seed": 15, "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-t0015"} {"id": "linear-algebra-det_trace-d2-t0016", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 2, "seed": 16, "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} -3 & -2 \\\\ -3 & 3 \\end{pmatrix}\\right) = x^2 - (0)\\,x + (-15),\\] 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) ℤ) - !![-3, -2; -3, 3]) = x ^ 2 - 0 * x + (-15 : ℤ) := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d2-t0016"} {"id": "linear-algebra-independence-d2-t0017", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 2, "seed": 17, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^2\\) consider the vectors \\(\\begin{pmatrix} 4 \\\\ 4 \\end{pmatrix}\\), \\(\\begin{pmatrix} 4 \\\\ 4 \\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 ℚ ![(![4, 4] : Fin 2 → ℚ), ![4, 4]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d2-t0017"} {"id": "linear-algebra-linear_map-d2-t0018", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 2, "seed": 18, "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}\\). Then the kernel of \\(3f\\) 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 ((3 : ℚ) • f) = LinearMap.ker f := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d2-t0018"} {"id": "linear-algebra-matrix_pow-d2-t0019", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 2, "seed": 19, "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-t0019"} {"id": "linear-algebra-det_trace-d3-t0020", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 3, "seed": 20, "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 0 and determinant 1. Then the trace of \\(A^2\\) is -2. 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 = (0 : ℤ)) (hd : Matrix.det A = (1 : ℤ)) :\n Matrix.trace (A ^ 2) = (-2 : ℤ) := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d3-t0020"} {"id": "linear-algebra-independence-d3-t0021", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 3, "seed": 21, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^3\\) consider the vectors \\(\\begin{pmatrix} -6 \\\\ -5 \\\\ -1 \\end{pmatrix}\\), \\(\\begin{pmatrix} 5 \\\\ -4 \\\\ -2 \\end{pmatrix}\\), \\(\\begin{pmatrix} 2 \\\\ -6 \\\\ 5 \\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, -5, -1] : Fin 3 → ℚ), ![5, -4, -2], ![2, -6, 5]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d3-t0021"} {"id": "linear-algebra-linear_map-d3-t0022", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 3, "seed": 22, "kind": "prove", "instruction": "# Kernels, ranges and projections\n\nProve the following statement.\n\nLet \\(q : V \\to V\\) be a linear map over \\(\\mathbb{R}\\) with \\(q^2 = q\\). Show that \\(\\ker q\\) and \\(\\operatorname{range} q\\) 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] (q : V →ₗ[ℝ] V) (hp : q * q = q) :\n Disjoint (LinearMap.ker q) (LinearMap.range q) := 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] (q : V →ₗ[ℝ] V) (hp : q * q = q) :\n IsCompl (LinearMap.ker q) (LinearMap.range q) := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d3-t0022"} {"id": "linear-algebra-matrix_pow-d3-t0023", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 3, "seed": 23, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} -3 & -1 \\\\ 0 & 1 \\end{pmatrix}^n = \\begin{pmatrix} (-3)^n & -1 \\sum_{i=0}^{n-1} (-3)^i \\\\ 0 & 1 \\end{pmatrix}.\\] The sum is empty when \\(n = 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/-- Powers of an affine map matrix, with a geometric sum. -/\ntheorem affine_power (n : ℕ) :\n (!![(-3 : ℤ), (-1 : ℤ); 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n = !![(-3 : ℤ) ^ n, (-1 : ℤ) * ∑ i ∈ Finset.range n, (-3 : ℤ) ^ i; 0, 1] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d3-t0023"} {"id": "linear-algebra-det_trace-d1-t0024", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 1, "seed": 24, "kind": "prove", "instruction": "# Determinant and trace of 2x2 matrices\n\nProve the following statement.\n\nCompute the determinant of the product \\(\\begin{pmatrix} -2 & 0 \\\\ 1 & -3 \\end{pmatrix}\\) \\(\\begin{pmatrix} 3 & -2 \\\\ 4 & -1 \\end{pmatrix}\\) of integer matrices. Show that it equals 30.\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 (!![-2, 0; 1, -3] * !![3, -2; 4, -1] : Matrix (Fin 2) (Fin 2) ℤ) = 30 := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d1-t0024"} {"id": "linear-algebra-independence-d1-t0025", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 1, "seed": 25, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^2\\) consider the vectors \\(\\begin{pmatrix} -4 \\\\ -1 \\end{pmatrix}\\), \\(\\begin{pmatrix} 4 \\\\ 1 \\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 ℚ ![(![-4, -1] : Fin 2 → ℚ), ![4, 1]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d1-t0025"} {"id": "linear-algebra-linear_map-d1-t0026", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 1, "seed": 26, "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 + 3b) = 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 + (3 : ℚ) • b) = 0 := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d1-t0026"} {"id": "linear-algebra-matrix_pow-d1-t0027", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 1, "seed": 27, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 1 & 0 \\\\ -2 & 1 \\end{pmatrix}^n = \\begin{pmatrix} 1 & 0 \\\\ -2n & 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 lower shear matrix. -/\ntheorem lower_shear_power (n : ℕ) :\n (!![1, 0; -2, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n = !![1, 0; (n : ℤ) * (-2 : ℤ), 1] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d1-t0027"} {"id": "linear-algebra-det_trace-d2-t0028", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 2, "seed": 28, "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-2 & 2 \\\\ 0 & x-1 \\end{pmatrix}\\begin{pmatrix} x & 3 \\\\ -1 & x-1 \\end{pmatrix}\\] equals \\(x^4 - 4x^3 + 8x^2 - 11x + 6\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The determinant of a product of matrices with a variable entry. -/\ntheorem det_of_polynomial_product (x : ℤ) :\n Matrix.det (!![x - 2, 2; 0, x - 1] * !![x, 3; -1, x - 1] : Matrix (Fin 2) (Fin 2) ℤ) = x ^ 4 - 4 * x ^ 3 + 8 * x ^ 2 - 11 * x + 6 := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d2-t0028"} {"id": "linear-algebra-independence-d2-t0029", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 2, "seed": 29, "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} -3 \\\\ 3 \\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 → ℚ), ![-3, 3]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d2-t0029"} {"id": "linear-algebra-linear_map-d2-t0030", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 2, "seed": 30, "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-t0030"} {"id": "linear-algebra-matrix_pow-d2-t0031", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 2, "seed": 31, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 4 & 0 \\\\ 0 & 7 \\end{pmatrix}^n = \\begin{pmatrix} (4)^n & 0 \\\\ 0 & (7)^n \\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 diagonal matrix. -/\ntheorem diagonal_power (n : ℕ) :\n (!![4, 0; 0, 7] : Matrix (Fin 2) (Fin 2) ℤ) ^ n = !![4 ^ n, 0; 0, 7 ^ n] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d2-t0031"} {"id": "linear-algebra-det_trace-d3-t0032", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 3, "seed": 32, "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 3. Then \\(A^3 = 1 A - 6 I\\), where \\(I\\) is the identity matrix. 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/-- A^3 in terms of the trace and determinant. -/\ntheorem cube_of_matrix (A : Matrix (Fin 2) (Fin 2) ℤ) (ht : Matrix.trace A = (2 : ℤ)) (hd : Matrix.det A = (3 : ℤ)) :\n A ^ 3 = (1 : ℤ) • A - (6 : ℤ) • (1 : Matrix (Fin 2) (Fin 2) ℤ) := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d3-t0032"} {"id": "linear-algebra-independence-d3-t0033", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 3, "seed": 33, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^3\\) consider the vectors \\(\\begin{pmatrix} 6 \\\\ -4 \\\\ -1 \\end{pmatrix}\\), \\(\\begin{pmatrix} -3 \\\\ -1 \\\\ 4 \\end{pmatrix}\\), \\(\\begin{pmatrix} -24 \\\\ 10 \\\\ 11 \\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, -4, -1] : Fin 3 → ℚ), ![-3, -1, 4], ![-24, 10, 11]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d3-t0033"} {"id": "linear-algebra-linear_map-d3-t0034", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 3, "seed": 34, "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 the kernel of \\(\\mathrm{id} - p\\) equals the range of \\(p\\).\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/-- For idempotent p, the kernel of id - p is the range of p. -/\ntheorem ker_id_sub {V : Type*} [AddCommGroup V] [Module ℝ V] (p : V →ₗ[ℝ] V) (hp : p ∘ₗ p = p) :\n LinearMap.ker (LinearMap.id - p) = LinearMap.range p := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d3-t0034"} {"id": "linear-algebra-matrix_pow-d3-t0035", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 3, "seed": 35, "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 & -3 \\\\ 0 & 1 \\end{pmatrix}^n \\begin{pmatrix} 1 & -1 \\\\ 0 & 1 \\end{pmatrix}^m = \\begin{pmatrix} 1 & -3n + -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, (-3 : ℤ); 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n * (!![1, (-1 : ℤ); 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ m = !![1, (n : ℤ) * (-3 : ℤ) + (m : ℤ) * (-1 : ℤ); 0, 1] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d3-t0035"} {"id": "linear-algebra-det_trace-d1-t0036", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 1, "seed": 36, "kind": "prove", "instruction": "# Determinant and trace of 2x2 matrices\n\nProve the following statement.\n\nCompute the determinant of the product \\(\\begin{pmatrix} 4 & 0 \\\\ -2 & 3 \\end{pmatrix}\\) \\(\\begin{pmatrix} 1 & 4 \\\\ -1 & 3 \\end{pmatrix}\\) of integer matrices. Show that it equals 84.\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, 0; -2, 3] * !![1, 4; -1, 3] : Matrix (Fin 2) (Fin 2) ℤ) = 84 := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d1-t0036"} {"id": "linear-algebra-independence-d1-t0037", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 1, "seed": 37, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^2\\) consider the vectors \\(\\begin{pmatrix} -4 \\\\ -4 \\end{pmatrix}\\), \\(\\begin{pmatrix} 4 \\\\ 3 \\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 ℚ ![(![-4, -4] : Fin 2 → ℚ), ![4, 3]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d1-t0037"} {"id": "linear-algebra-linear_map-d1-t0038", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 1, "seed": 38, "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(v(v)) = v(v)\\) for every \\(v\\). Then \\(x - e(x)\\) lies in the kernel of \\(e\\) for every \\(x \\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] (e : V →ₗ[ℝ] V) (hp : ∀ x, e (e x) = e x) (x : V) :\n x - e x ∈ LinearMap.ker e := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d1-t0038"} {"id": "linear-algebra-matrix_pow-d1-t0039", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 1, "seed": 39, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 1 & 0 \\\\ 3 & 1 \\end{pmatrix}^n = \\begin{pmatrix} 1 & 0 \\\\ 3n & 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 lower shear matrix. -/\ntheorem lower_shear_power (n : ℕ) :\n (!![1, 0; 3, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n = !![1, 0; (n : ℤ) * 3, 1] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d1-t0039"} {"id": "linear-algebra-det_trace-d2-t0040", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 2, "seed": 40, "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} -2 & -1 \\\\ -3 & -2 \\end{pmatrix}\\right) = x^2 - (-4)\\,x + (1),\\] 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) ℤ) - !![-2, -1; -3, -2]) = x ^ 2 - (-4 : ℤ) * x + 1 := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d2-t0040"} {"id": "linear-algebra-independence-d2-t0041", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 2, "seed": 41, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^2\\) consider the vectors \\(\\begin{pmatrix} 3 \\\\ 6 \\end{pmatrix}\\), \\(\\begin{pmatrix} 5 \\\\ -5 \\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 ℚ ![(![3, 6] : Fin 2 → ℚ), ![5, -5]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d2-t0041"} {"id": "linear-algebra-linear_map-d2-t0042", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 2, "seed": 42, "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 range of \\(g \\circ f\\) is contained in the range of \\(g\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- range (g ∘ f) ≤ range g. -/\ntheorem range_comp_le {V W U : Type*} [AddCommGroup V] [Module ℝ V] [AddCommGroup W] [Module ℝ W] [AddCommGroup U] [Module ℝ U] (f : V →ₗ[ℝ] W) (g : W →ₗ[ℝ] U) :\n LinearMap.range (g ∘ₗ f) ≤ LinearMap.range g := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d2-t0042"} {"id": "linear-algebra-matrix_pow-d2-t0043", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 2, "seed": 43, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 6 & 1 \\\\ 0 & 6 \\end{pmatrix}^{n+1} = \\begin{pmatrix} (6)^{n+1} & (n+1)(6)^n \\\\ 0 & (6)^{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 (!![6, 1; 0, 6] : Matrix (Fin 2) (Fin 2) ℤ) ^ (n + 1) = !![6 ^ (n + 1), ((n : ℤ) + 1) * 6 ^ n; 0, 6 ^ (n + 1)] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d2-t0043"} {"id": "linear-algebra-det_trace-d3-t0044", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 3, "seed": 44, "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 -4. Then \\(A^3 = 8 A - -8 I\\), where \\(I\\) is the identity matrix. 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/-- A^3 in terms of the trace and determinant. -/\ntheorem cube_of_matrix (A : Matrix (Fin 2) (Fin 2) ℤ) (ht : Matrix.trace A = (2 : ℤ)) (hd : Matrix.det A = (-4 : ℤ)) :\n A ^ 3 = (8 : ℤ) • A - (-8 : ℤ) • (1 : Matrix (Fin 2) (Fin 2) ℤ) := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d3-t0044"} {"id": "linear-algebra-independence-d3-t0045", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 3, "seed": 45, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^3\\) consider the vectors \\(\\begin{pmatrix} -4 \\\\ 4 \\\\ -6 \\end{pmatrix}\\), \\(\\begin{pmatrix} -3 \\\\ -3 \\\\ 1 \\end{pmatrix}\\), \\(\\begin{pmatrix} 4 \\\\ -5 \\\\ 4 \\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 ℚ ![(![-4, 4, -6] : Fin 3 → ℚ), ![-3, -3, 1], ![4, -5, 4]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d3-t0045"} {"id": "linear-algebra-linear_map-d3-t0046", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 3, "seed": 46, "kind": "prove", "instruction": "# Kernels, ranges and projections\n\nProve the following statement.\n\nLet \\(e : V \\to V\\) be a linear map over \\(\\mathbb{Q}\\) 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-t0046"} {"id": "linear-algebra-matrix_pow-d3-t0047", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 3, "seed": 47, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 4 & 3 \\\\ 0 & 1 \\end{pmatrix}^n = \\begin{pmatrix} (4)^n & 3 \\sum_{i=0}^{n-1} (4)^i \\\\ 0 & 1 \\end{pmatrix}.\\] The sum is empty when \\(n = 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/-- Powers of an affine map matrix, with a geometric sum. -/\ntheorem affine_power (n : ℕ) :\n (!![4, 3; 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n = !![4 ^ n, 3 * ∑ i ∈ Finset.range n, 4 ^ i; 0, 1] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d3-t0047"} {"id": "linear-algebra-det_trace-d1-t0048", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 1, "seed": 48, "kind": "prove", "instruction": "# Determinant and trace of 2x2 matrices\n\nProve the following statement.\n\nCompute the determinant of the product \\(\\begin{pmatrix} -1 & 0 \\\\ 0 & 2 \\end{pmatrix}\\) \\(\\begin{pmatrix} 0 & -2 \\\\ 3 & 2 \\end{pmatrix}\\) of integer matrices. Show that it equals -12.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The determinant of the product is the product of the determinants. -/\ntheorem det_of_product : Matrix.det (!![-1, 0; 0, 2] * !![0, -2; 3, 2] : Matrix (Fin 2) (Fin 2) ℤ) = (-12 : ℤ) := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d1-t0048"} {"id": "linear-algebra-independence-d1-t0049", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 1, "seed": 49, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^2\\) consider the vectors \\(\\begin{pmatrix} 3 \\\\ 2 \\end{pmatrix}\\), \\(\\begin{pmatrix} -3 \\\\ -2 \\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, 2] : Fin 2 → ℚ), ![-3, -2]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d1-t0049"} {"id": "linear-algebra-linear_map-d1-t0050", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 1, "seed": 50, "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(v(v)) = v(v)\\) for every \\(v\\). Then \\(a - e(a)\\) lies in the kernel of \\(e\\) for every \\(a \\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] (e : V →ₗ[ℝ] V) (hp : ∀ x, e (e x) = e x) (a : V) :\n a - e a ∈ LinearMap.ker e := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d1-t0050"} {"id": "linear-algebra-matrix_pow-d1-t0051", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 1, "seed": 51, "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-t0051"} {"id": "linear-algebra-det_trace-d2-t0052", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 2, "seed": 52, "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} 2 & 0 \\\\ -2 & -1 \\end{pmatrix}\\right) = x^2 - (1)\\,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) ℤ) - !![2, 0; -2, -1]) = x ^ 2 - 1 * x + (-2 : ℤ) := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d2-t0052"} {"id": "linear-algebra-independence-d2-t0053", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 2, "seed": 53, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^2\\) consider the vectors \\(\\begin{pmatrix} 3 \\\\ -1 \\end{pmatrix}\\), \\(\\begin{pmatrix} -6 \\\\ 2 \\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, -1] : Fin 2 → ℚ), ![-6, 2]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d2-t0053"} {"id": "linear-algebra-linear_map-d2-t0054", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 2, "seed": 54, "kind": "prove", "instruction": "# Kernels, ranges and projections\n\nProve the following statement.\n\nLet \\(q : V \\to V\\) be a linear map over \\(\\mathbb{R}\\) with \\(q(q(x)) = q(x) for every vector x\\). Then the kernel of \\(\\mathrm{id} - q\\) equals the range of \\(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/-- For idempotent p, the kernel of id - p is the range of p. -/\ntheorem ker_id_sub {V : Type*} [AddCommGroup V] [Module ℝ V] (q : V →ₗ[ℝ] V) (hp : ∀ x, q (q x) = q x) :\n LinearMap.ker (LinearMap.id - q) = LinearMap.range q := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d2-t0054"} {"id": "linear-algebra-matrix_pow-d2-t0055", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 2, "seed": 55, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 4 & 1 \\\\ 0 & 4 \\end{pmatrix}^{n+1} = \\begin{pmatrix} (4)^{n+1} & (n+1)(4)^n \\\\ 0 & (4)^{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 (!![4, 1; 0, 4] : Matrix (Fin 2) (Fin 2) ℤ) ^ (n + 1) = !![4 ^ (n + 1), ((n : ℤ) + 1) * 4 ^ n; 0, 4 ^ (n + 1)] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d2-t0055"} {"id": "linear-algebra-det_trace-d3-t0056", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 3, "seed": 56, "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 1. Then \\(A^3 = 3 A - 2 I\\), where \\(I\\) is the identity matrix. 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/-- A^3 in terms of the trace and determinant. -/\ntheorem cube_of_matrix (A : Matrix (Fin 2) (Fin 2) ℤ) (ht : Matrix.trace A = (2 : ℤ)) (hd : Matrix.det A = (1 : ℤ)) :\n A ^ 3 = (3 : ℤ) • A - (2 : ℤ) • (1 : Matrix (Fin 2) (Fin 2) ℤ) := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d3-t0056"} {"id": "linear-algebra-independence-d3-t0057", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 3, "seed": 57, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^3\\) consider the vectors \\(\\begin{pmatrix} 1 \\\\ 6 \\\\ 3 \\end{pmatrix}\\), \\(\\begin{pmatrix} 3 \\\\ 1 \\\\ -6 \\end{pmatrix}\\), \\(\\begin{pmatrix} 1 \\\\ 2 \\\\ -5 \\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 ℚ ![(![1, 6, 3] : Fin 3 → ℚ), ![3, 1, -6], ![1, 2, -5]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d3-t0057"} {"id": "linear-algebra-linear_map-d3-t0058", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 3, "seed": 58, "kind": "prove", "instruction": "# Kernels, ranges and projections\n\nProve the following statement.\n\nLet \\(q : V \\to V\\) be a linear map over \\(\\mathbb{R}\\) with \\(q \\circ q = q\\). Then the kernel of \\(\\mathrm{id} - q\\) equals the range of \\(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/-- For idempotent p, the kernel of id - p is the range of p. -/\ntheorem ker_id_sub {V : Type*} [AddCommGroup V] [Module ℝ V] (q : V →ₗ[ℝ] V) (hp : q ∘ₗ q = q) :\n LinearMap.ker (LinearMap.id - q) = LinearMap.range q := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d3-t0058"} {"id": "linear-algebra-matrix_pow-d3-t0059", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 3, "seed": 59, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 5 & 6 \\\\ 0 & 1 \\end{pmatrix}^n = \\begin{pmatrix} (5)^n & 6 \\sum_{i=0}^{n-1} (5)^i \\\\ 0 & 1 \\end{pmatrix}.\\] The sum is empty when \\(n = 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/-- Powers of an affine map matrix, with a geometric sum. -/\ntheorem affine_power (n : ℕ) :\n (!![5, 6; 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n = !![5 ^ n, 6 * ∑ i ∈ Finset.range n, 5 ^ i; 0, 1] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d3-t0059"} {"id": "linear-algebra-det_trace-d1-t0060", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 1, "seed": 60, "kind": "prove", "instruction": "# Determinant and trace of 2x2 matrices\n\nProve the following statement.\n\nFor every integer \\(x\\), \\[\\begin{pmatrix} x+1 & -2 \\\\ -2 & x+3 \\end{pmatrix}\\begin{pmatrix} x+3 & 2 \\\\ 2 & x+1 \\end{pmatrix} = (x^2 +4 x -1) \\begin{pmatrix} 1 & 0 \\\\ 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/-- A matrix times its adjugate is its determinant times the identity. -/\ntheorem adjugate_product (x : ℤ) :\n !![x + 1, -2; -2, x + 3] * !![x + 3, 2; 2, x + 1] = (x ^ 2 + 4 * x + -1) • (1 : Matrix (Fin 2) (Fin 2) ℤ) := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d1-t0060"} {"id": "linear-algebra-independence-d1-t0061", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 1, "seed": 61, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^2\\) consider the vectors \\(\\begin{pmatrix} 2 \\\\ -1 \\end{pmatrix}\\), \\(\\begin{pmatrix} -2 \\\\ 1 \\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 ℚ ![(![2, -1] : Fin 2 → ℚ), ![-2, 1]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d1-t0061"} {"id": "linear-algebra-linear_map-d1-t0062", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 1, "seed": 62, "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(v(v)) = v(v)\\) for every \\(v\\). Then \\(u - e(u)\\) lies in the kernel of \\(e\\) 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] (e : V →ₗ[ℝ] V) (hp : ∀ x, e (e x) = e x) (u : V) :\n u - e u ∈ LinearMap.ker e := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d1-t0062"} {"id": "linear-algebra-matrix_pow-d1-t0063", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 1, "seed": 63, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 1 & 4 \\\\ 0 & 1 \\end{pmatrix}^n = \\begin{pmatrix} 1 & 4n \\\\ 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, 4; 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n = !![1, (n : ℤ) * 4; 0, 1] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d1-t0063"} {"id": "linear-algebra-det_trace-d2-t0064", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 2, "seed": 64, "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+1 & -1 \\\\ 1 & x+0 \\end{pmatrix}\\begin{pmatrix} x & -3 \\\\ 2 & x-1 \\end{pmatrix}\\] equals \\(x^4 + 6x^2 + 5x + 6\\).\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The determinant of a product of matrices with a variable entry. -/\ntheorem det_of_polynomial_product (x : ℤ) :\n Matrix.det (!![x + 1, -1; 1, x + 0] * !![x, -3; 2, x - 1] : Matrix (Fin 2) (Fin 2) ℤ) = x ^ 4 + 6 * x ^ 2 + 5 * x + 6 := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d2-t0064"} {"id": "linear-algebra-independence-d2-t0065", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 2, "seed": 65, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^2\\) consider the vectors \\(\\begin{pmatrix} 0 \\\\ 6 \\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, 6] : Fin 2 → ℚ), ![0, -6]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d2-t0065"} {"id": "linear-algebra-linear_map-d2-t0066", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 2, "seed": 66, "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-t0066"} {"id": "linear-algebra-matrix_pow-d2-t0067", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 2, "seed": 67, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 2 & 0 \\\\ 1 & 2 \\end{pmatrix}^{n+1} = \\begin{pmatrix} 2^{n+1} & 0 \\\\ (n+1)\\,2^{n} & 2^{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 lower 2x2 Jordan block. -/\ntheorem lower_jordan_power (n : ℕ) :\n (!![2, 0; 1, 2] : Matrix (Fin 2) (Fin 2) ℤ) ^ (n + 1) = !![(2 : ℤ) ^ (n + 1), 0; ((n : ℤ) + 1) * 2 ^ n, (2 : ℤ) ^ (n + 1)] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d2-t0067"} {"id": "linear-algebra-det_trace-d3-t0068", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 3, "seed": 68, "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 0 and determinant 4. Then \\(A^3 = -4 A - 0 I\\), where \\(I\\) is the identity matrix. 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/-- A^3 in terms of the trace and determinant. -/\ntheorem cube_of_matrix (A : Matrix (Fin 2) (Fin 2) ℤ) (ht : Matrix.trace A = (0 : ℤ)) (hd : Matrix.det A = (4 : ℤ)) :\n A ^ 3 = (-4 : ℤ) • A - (0 : ℤ) • (1 : Matrix (Fin 2) (Fin 2) ℤ) := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d3-t0068"} {"id": "linear-algebra-independence-d3-t0069", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 3, "seed": 69, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^3\\) consider the vectors \\(\\begin{pmatrix} 4 \\\\ -1 \\\\ -4 \\end{pmatrix}\\), \\(\\begin{pmatrix} -1 \\\\ -4 \\\\ 4 \\end{pmatrix}\\), \\(\\begin{pmatrix} 6 \\\\ 3 \\\\ 6 \\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 ℚ ![(![4, -1, -4] : Fin 3 → ℚ), ![-1, -4, 4], ![6, 3, 6]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d3-t0069"} {"id": "linear-algebra-linear_map-d3-t0070", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 3, "seed": 70, "kind": "prove", "instruction": "# Kernels, ranges and projections\n\nProve the following statement.\n\nLet \\(p : V \\to V\\) be a linear map over \\(\\mathbb{Q}\\) with \\(p(p(x)) = p(x) for every vector x\\). Show that \\(\\ker p\\) and \\(\\operatorname{range} p\\) 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] (p : V →ₗ[ℚ] V) (hp : ∀ x, p (p x) = p x) :\n Disjoint (LinearMap.ker p) (LinearMap.range p) := 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] (p : V →ₗ[ℚ] V) (hp : ∀ x, p (p x) = p x) :\n IsCompl (LinearMap.ker p) (LinearMap.range p) := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d3-t0070"} {"id": "linear-algebra-matrix_pow-d3-t0071", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 3, "seed": 71, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 3 & 3 \\\\ 0 & 1 \\end{pmatrix}^n = \\begin{pmatrix} (3)^n & 3 \\sum_{i=0}^{n-1} (3)^i \\\\ 0 & 1 \\end{pmatrix}.\\] The sum is empty when \\(n = 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/-- Powers of an affine map matrix, with a geometric sum. -/\ntheorem affine_power (n : ℕ) :\n (!![3, 3; 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n = !![3 ^ n, 3 * ∑ i ∈ Finset.range n, 3 ^ i; 0, 1] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d3-t0071"} {"id": "linear-algebra-det_trace-d1-t0072", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 1, "seed": 72, "kind": "prove", "instruction": "# Determinant and trace of 2x2 matrices\n\nProve the following statement.\n\nCompute the determinant of the product \\(\\begin{pmatrix} -2 & -3 \\\\ 4 & 4 \\end{pmatrix}\\) \\(\\begin{pmatrix} -1 & 0 \\\\ -2 & 2 \\end{pmatrix}\\) of integer matrices. Show that it equals -8.\n\n## What to do\n\n`Solution.lean` in the working directory states the theorem in Lean 4 with Mathlib, with `sorry` in place of the proof. Replace every `sorry` with a proof.\n\n- Do not change the statement of any theorem or any definition the file gives you. You may add your own lemmas and definitions.\n- Check your work with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file). It must compile without errors.\n- A theorem counts only if its proof is complete: no `sorry`, no new axioms, no `native_decide`.\n- The reward is 1 if the theorem is proved and 0 otherwise.\n", "start_file": "import Mathlib\n\n/-- The determinant of the product is the product of the determinants. -/\ntheorem det_of_product : Matrix.det (!![-2, -3; 4, 4] * !![-1, 0; -2, 2] : Matrix (Fin 2) (Fin 2) ℤ) = (-8 : ℤ) := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d1-t0072"} {"id": "linear-algebra-independence-d1-t0073", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 1, "seed": 73, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^2\\) consider the vectors \\(\\begin{pmatrix} -4 \\\\ 0 \\end{pmatrix}\\), \\(\\begin{pmatrix} 1 \\\\ -3 \\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 ℚ ![(![-4, 0] : Fin 2 → ℚ), ![1, -3]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d1-t0073"} {"id": "linear-algebra-linear_map-d1-t0074", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 1, "seed": 74, "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-t0074"} {"id": "linear-algebra-matrix_pow-d1-t0075", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 1, "seed": 75, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 1 & 1 \\\\ 0 & 1 \\end{pmatrix}^n = \\begin{pmatrix} 1 & 1n \\\\ 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, 1; 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n = !![1, (n : ℤ) * 1; 0, 1] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d1-t0075"} {"id": "linear-algebra-det_trace-d2-t0076", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 2, "seed": 76, "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 3 and determinant 1. Then \\(A^2 = 3 A - 1 I\\), where \\(I\\) is the 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/-- A^2 = tr(A) A - det(A) I with the given trace and determinant. -/\ntheorem square_of_matrix (A : Matrix (Fin 2) (Fin 2) ℤ) (ht : Matrix.trace A = (3 : ℤ)) (hd : Matrix.det A = (1 : ℤ)) :\n A ^ 2 = (3 : ℤ) • A - (1 : ℤ) • (1 : Matrix (Fin 2) (Fin 2) ℤ) := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d2-t0076"} {"id": "linear-algebra-independence-d2-t0077", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 2, "seed": 77, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^2\\) consider the vectors \\(\\begin{pmatrix} -2 \\\\ -1 \\end{pmatrix}\\), \\(\\begin{pmatrix} -6 \\\\ -6 \\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, -1] : Fin 2 → ℚ), ![-6, -6]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d2-t0077"} {"id": "linear-algebra-linear_map-d2-t0078", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 2, "seed": 78, "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(q(x)) = q(x) for every vector x\\). Then the kernel of \\(\\mathrm{id} - q\\) equals the range of \\(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/-- For idempotent p, the kernel of id - p is the range of p. -/\ntheorem ker_id_sub {V : Type*} [AddCommGroup V] [Module ℚ V] (q : V →ₗ[ℚ] V) (hp : ∀ x, q (q x) = q x) :\n LinearMap.ker (LinearMap.id - q) = LinearMap.range q := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d2-t0078"} {"id": "linear-algebra-matrix_pow-d2-t0079", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 2, "seed": 79, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 4 & 1 \\\\ 0 & 4 \\end{pmatrix}^{n+1} = \\begin{pmatrix} (4)^{n+1} & (n+1)(4)^n \\\\ 0 & (4)^{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 (!![4, 1; 0, 4] : Matrix (Fin 2) (Fin 2) ℤ) ^ (n + 1) = !![4 ^ (n + 1), ((n : ℤ) + 1) * 4 ^ n; 0, 4 ^ (n + 1)] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d2-t0079"} {"id": "linear-algebra-det_trace-d3-t0080", "env": "linear-algebra", "msc": "15", "family": "det_trace", "difficulty": 3, "seed": 80, "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 4. 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 = (4 : ℤ)) :\n Matrix.trace (A ^ 2) = (-7 : ℤ) := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-det_trace-d3-t0080"} {"id": "linear-algebra-independence-d3-t0081", "env": "linear-algebra", "msc": "15", "family": "independence", "difficulty": 3, "seed": 81, "kind": "prove", "instruction": "# Linear independence of explicit vectors\n\nProve the following statement.\n\nIn \\(\\mathbb{Q}^3\\) consider the vectors \\(\\begin{pmatrix} 5 \\\\ -4 \\\\ 1 \\end{pmatrix}\\), \\(\\begin{pmatrix} 4 \\\\ 2 \\\\ -1 \\end{pmatrix}\\), \\(\\begin{pmatrix} -9 \\\\ 2 \\\\ 0 \\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 ℚ ![(![5, -4, 1] : Fin 3 → ℚ), ![4, 2, -1], ![-9, 2, 0]] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-independence-d3-t0081"} {"id": "linear-algebra-linear_map-d3-t0082", "env": "linear-algebra", "msc": "15", "family": "linear_map", "difficulty": 3, "seed": 82, "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 \\circ e = e\\). Then \\(\\mathrm{id} - e\\) is also idempotent, and \\(e \\circ (\\mathrm{id} - e) = 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] (e : V →ₗ[ℝ] V) (hp : e ∘ₗ e = e) :\n (LinearMap.id - e) ∘ₗ (LinearMap.id - e) = LinearMap.id - e ∧ e ∘ₗ (LinearMap.id - e) = 0 := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-linear_map-d3-t0082"} {"id": "linear-algebra-matrix_pow-d3-t0083", "env": "linear-algebra", "msc": "15", "family": "matrix_pow", "difficulty": 3, "seed": 83, "kind": "prove", "instruction": "# Powers of 2x2 matrices\n\nProve the following statement.\n\nFor every natural number \\(n\\), \\[\\begin{pmatrix} 2 & 4 \\\\ 0 & 1 \\end{pmatrix}^n = \\begin{pmatrix} (2)^n & 4 \\sum_{i=0}^{n-1} (2)^i \\\\ 0 & 1 \\end{pmatrix}.\\] The sum is empty when \\(n = 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/-- Powers of an affine map matrix, with a geometric sum. -/\ntheorem affine_power (n : ℕ) :\n (!![2, 4; 0, 1] : Matrix (Fin 2) (Fin 2) ℤ) ^ n = !![2 ^ n, 4 * ∑ i ∈ Finset.range n, 2 ^ i; 0, 1] := by\n sorry\n", "path": "tasks/linear-algebra/linear-algebra-matrix_pow-d3-t0083"}