Download data/definitions/eval.jsonl from RenaissanceLabsEU/math: direct link, hf CLI and curl.
- Browser
- Download file 33.4 kB
-
https://huggingface.co/datasets/RenaissanceLabsEU/math/resolve/main/data/definitions/eval.jsonl
- Command line
-
hf download hf://datasets/RenaissanceLabsEU/math/data/definitions/eval.jsonl
-
curl -L -o eval.jsonl https://huggingface.co/datasets/RenaissanceLabsEU/math/resolve/main/data/definitions/eval.jsonl
33.4 kB
| {"id": "definitions-count-d1-e0000", "env": "definitions", "msc": "11", "family": "count", "difficulty": 1, "seed": 10000, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the number of integers \\(k\\) with \\(1 \\le k \\le n\\) such that the decimal digits of \\(k\\) read the same forwards and backwards.\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 3\\)\n- \\(f(10) = 9\\)\n- \\(f(17) = 10\\)\n- \\(f(24) = 11\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-count-d1-e0000"} | |
| {"id": "definitions-divisors-d1-e0001", "env": "definitions", "msc": "11", "family": "divisors", "difficulty": 1, "seed": 10001, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the number of positive divisors \\(d\\) of \\(n\\) such that the decimal digits of \\(d\\) read the same forwards and backwards. Take \\(f(0) = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 2\\)\n- \\(f(10) = 3\\)\n- \\(f(17) = 1\\)\n- \\(f(24) = 6\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-divisors-d1-e0001"} | |
| {"id": "definitions-extremum-d1-e0002", "env": "definitions", "msc": "11", "family": "extremum", "difficulty": 1, "seed": 10002, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the largest integer \\(k\\) with \\(1 \\le k \\le n\\) such that \\(k\\) leaves remainder 1 on division by 3. If there is no such \\(k\\), then \\(f(n) = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 1\\)\n- \\(f(10) = 10\\)\n- \\(f(17) = 16\\)\n- \\(f(24) = 22\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-extremum-d1-e0002"} | |
| {"id": "definitions-pairs-d1-e0003", "env": "definitions", "msc": "11", "family": "pairs", "difficulty": 1, "seed": 10003, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the number of ordered pairs \\((a, b)\\) of integers with \\(1 \\le a \\le n\\) and \\(1 \\le b \\le n\\) such that \\(a + b\\) is divisible by 5.\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 2\\)\n- \\(f(10) = 20\\)\n- \\(f(17) = 57\\)\n- \\(f(24) = 116\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-pairs-d1-e0003"} | |
| {"id": "definitions-sequence-d1-e0004", "env": "definitions", "msc": "11", "family": "sequence", "difficulty": 1, "seed": 10004, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\nLet \\(a(0) = 3\\), \\(a(1) = 2\\) and, for \\(n \\ge 0\\), let \\(a(n+2)\\) be the remainder of \\(2\\,a(n+1) + \\,a(n)\\) on division by 11. Then \\(f(n) = a(n)\\).\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 5\\)\n- \\(f(10) = 0\\)\n- \\(f(17) = 5\\)\n- \\(f(24) = 3\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-sequence-d1-e0004"} | |
| {"id": "definitions-sum-d1-e0005", "env": "definitions", "msc": "11", "family": "sum", "difficulty": 1, "seed": 10005, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the sum of \\(k\\) over all integers \\(k\\) with \\(1 \\le k \\le n\\) such that \\(k\\) leaves remainder 2 on division by 3. An empty sum is 0.\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 2\\)\n- \\(f(10) = 15\\)\n- \\(f(17) = 57\\)\n- \\(f(24) = 100\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-sum-d1-e0005"} | |
| {"id": "definitions-count-d2-e0006", "env": "definitions", "msc": "11", "family": "count", "difficulty": 2, "seed": 10006, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the number of integers \\(k\\) with \\(1 \\le k \\le n\\) such that the decimal digits of \\(k\\) read the same forwards and backwards but it is not the case that \\(k\\) leaves remainder 1 on division by 7.\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 2\\)\n- \\(f(10) = 7\\)\n- \\(f(17) = 8\\)\n- \\(f(24) = 8\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-count-d2-e0006"} | |
| {"id": "definitions-divisors-d2-e0007", "env": "definitions", "msc": "11", "family": "divisors", "difficulty": 2, "seed": 10007, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the sum of \\(d^2\\) over all positive divisors \\(d\\) of \\(n\\) such that the decimal digits of \\(d\\) read the same forwards and backwards. An empty sum is 0, and \\(f(0) = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 10\\)\n- \\(f(10) = 30\\)\n- \\(f(17) = 1\\)\n- \\(f(24) = 130\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-divisors-d2-e0007"} | |
| {"id": "definitions-extremum-d2-e0008", "env": "definitions", "msc": "11", "family": "extremum", "difficulty": 2, "seed": 10008, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the largest integer \\(k\\) with \\(1 \\le k \\le n\\) such that \\(k\\) is squarefree (no square larger than 1 divides it) or \\(k\\) is coprime to 12 (or both). If there is no such \\(k\\), then \\(f(n) = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 3\\)\n- \\(f(10) = 10\\)\n- \\(f(17) = 17\\)\n- \\(f(24) = 23\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-extremum-d2-e0008"} | |
| {"id": "definitions-pairs-d2-e0009", "env": "definitions", "msc": "11", "family": "pairs", "difficulty": 2, "seed": 10009, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the number of ordered pairs \\((a, b)\\) of integers with \\(1 \\le a \\le n\\) and \\(1 \\le b \\le n\\) such that \\(a\\) divides \\(b\\) and \\(a < b\\).\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 2\\)\n- \\(f(10) = 17\\)\n- \\(f(17) = 35\\)\n- \\(f(24) = 60\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-pairs-d2-e0009"} | |
| {"id": "definitions-sequence-d2-e0010", "env": "definitions", "msc": "11", "family": "sequence", "difficulty": 2, "seed": 10010, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\nLet \\(a(0) = 4\\), \\(a(1) = 2\\) and, for \\(n \\ge 0\\), let \\(a(n+2)\\) be the remainder of \\(3\\,a(n+1) + 4\\,a(n) + 3\\) on division by 17. Then \\(f(n) = a(0) + a(1) + \\dots + a(n)\\).\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 15\\)\n- \\(f(10) = 44\\)\n- \\(f(17) = 66\\)\n- \\(f(24) = 94\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-sequence-d2-e0010"} | |
| {"id": "definitions-sum-d2-e0011", "env": "definitions", "msc": "11", "family": "sum", "difficulty": 2, "seed": 10011, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the sum of the values \\(\\tau(k)\\), where \\(\\tau(m)\\) is the number of positive divisors of \\(m\\), over all integers \\(k\\) with \\(1 \\le k \\le n\\) such that the sum of the decimal digits of \\(k\\) leaves remainder 0 on division by 3. An empty sum is 0.\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 2\\)\n- \\(f(10) = 9\\)\n- \\(f(17) = 19\\)\n- \\(f(24) = 37\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-sum-d2-e0011"} | |
| {"id": "definitions-count-d3-e0012", "env": "definitions", "msc": "11", "family": "count", "difficulty": 3, "seed": 10012, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the number of integers \\(k\\) with \\(1 \\le k \\le n\\) such that \\(k\\) is divisible by 5 or \\(k\\) is squarefree (no square larger than 1 divides it) (or both).\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 3\\)\n- \\(f(10) = 7\\)\n- \\(f(17) = 12\\)\n- \\(f(24) = 17\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-count-d3-e0012"} | |
| {"id": "definitions-divisors-d3-e0013", "env": "definitions", "msc": "11", "family": "divisors", "difficulty": 3, "seed": 10013, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the sum of \\(d^2\\) over all positive divisors \\(d\\) of \\(n\\) such that \\(d\\) is divisible by 2 and \\(d\\) is coprime to 15. An empty sum is 0, and \\(f(0) = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 0\\)\n- \\(f(10) = 4\\)\n- \\(f(17) = 0\\)\n- \\(f(24) = 84\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-divisors-d3-e0013"} | |
| {"id": "definitions-extremum-d3-e0014", "env": "definitions", "msc": "11", "family": "extremum", "difficulty": 3, "seed": 10014, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the largest integer \\(k\\) with \\(1 \\le k \\le n\\) such that \\(k\\) is squarefree (no square larger than 1 divides it) but it is not the case that the sum of the decimal digits of \\(k\\) leaves remainder 0 on division by 5. If there is no such \\(k\\), then \\(f(n) = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 3\\)\n- \\(f(10) = 10\\)\n- \\(f(17) = 17\\)\n- \\(f(24) = 22\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-extremum-d3-e0014"} | |
| {"id": "definitions-pairs-d3-e0015", "env": "definitions", "msc": "11", "family": "pairs", "difficulty": 3, "seed": 10015, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the number of ordered pairs \\((a, b)\\) of integers with \\(1 \\le a \\le n\\) and \\(1 \\le b \\le n\\) such that \\(a + b\\) is prime, \\(a \\cdot b \\le n\\) and \\(a \\le b\\).\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 2\\)\n- \\(f(10) = 7\\)\n- \\(f(17) = 10\\)\n- \\(f(24) = 15\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-pairs-d3-e0015"} | |
| {"id": "definitions-sequence-d3-e0016", "env": "definitions", "msc": "11", "family": "sequence", "difficulty": 3, "seed": 10016, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\nLet \\(a(0) = 4\\), \\(a(1) = 3\\) and, for \\(n \\ge 0\\), let \\(a(n+2)\\) be the remainder of \\(3\\,a(n+1) + 4\\,a(n)\\) on division by 13. Then \\(f(n)\\) is the number of indices \\(i\\) with \\(0 \\le i < n\\) such that \\(a(i) < a(i+1)\\).\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 1\\)\n- \\(f(10) = 5\\)\n- \\(f(17) = 8\\)\n- \\(f(24) = 12\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-sequence-d3-e0016"} | |
| {"id": "definitions-sum-d3-e0017", "env": "definitions", "msc": "11", "family": "sum", "difficulty": 3, "seed": 10017, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the sum of the digit sums \\(s(k)\\), where \\(s(m)\\) is the sum of the decimal digits of \\(m\\), over all integers \\(k\\) with \\(1 \\le k \\le n\\) such that \\(k\\) is prime but it is not the case that \\(k\\) is divisible by 7. An empty sum is 0.\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 5\\)\n- \\(f(10) = 10\\)\n- \\(f(17) = 24\\)\n- \\(f(24) = 39\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-sum-d3-e0017"} | |
| {"id": "definitions-count-d1-e0018", "env": "definitions", "msc": "11", "family": "count", "difficulty": 1, "seed": 10018, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the number of integers \\(k\\) with \\(1 \\le k \\le n\\) such that \\(k\\) is a perfect square.\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 1\\)\n- \\(f(10) = 3\\)\n- \\(f(17) = 4\\)\n- \\(f(24) = 4\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-count-d1-e0018"} | |
| {"id": "definitions-divisors-d1-e0019", "env": "definitions", "msc": "11", "family": "divisors", "difficulty": 1, "seed": 10019, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the number of positive divisors \\(d\\) of \\(n\\) such that \\(d\\) is divisible by 3. Take \\(f(0) = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 1\\)\n- \\(f(10) = 0\\)\n- \\(f(17) = 0\\)\n- \\(f(24) = 4\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-divisors-d1-e0019"} | |
| {"id": "definitions-extremum-d1-e0020", "env": "definitions", "msc": "11", "family": "extremum", "difficulty": 1, "seed": 10020, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the largest integer \\(k\\) with \\(1 \\le k \\le n\\) such that \\(k\\) is prime. If there is no such \\(k\\), then \\(f(n) = 0\\).\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 3\\)\n- \\(f(10) = 7\\)\n- \\(f(17) = 17\\)\n- \\(f(24) = 23\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-extremum-d1-e0020"} | |
| {"id": "definitions-pairs-d1-e0021", "env": "definitions", "msc": "11", "family": "pairs", "difficulty": 1, "seed": 10021, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the number of ordered pairs \\((a, b)\\) of integers with \\(1 \\le a \\le n\\) and \\(1 \\le b \\le n\\) such that \\(a \\cdot b \\le n\\).\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 5\\)\n- \\(f(10) = 27\\)\n- \\(f(17) = 52\\)\n- \\(f(24) = 84\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-pairs-d1-e0021"} | |
| {"id": "definitions-sequence-d1-e0022", "env": "definitions", "msc": "11", "family": "sequence", "difficulty": 1, "seed": 10022, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\nLet \\(a(0) = 3\\), \\(a(1) = 5\\) and, for \\(n \\ge 0\\), let \\(a(n+2)\\) be the remainder of \\(4\\,a(n+1) + \\,a(n)\\) on division by 101. Then \\(f(n) = a(n)\\).\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 97\\)\n- \\(f(10) = 15\\)\n- \\(f(17) = 1\\)\n- \\(f(24) = 49\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-sequence-d1-e0022"} | |
| {"id": "definitions-sum-d1-e0023", "env": "definitions", "msc": "11", "family": "sum", "difficulty": 1, "seed": 10023, "kind": "define", "instruction": "# Define a function from its description\n\nDefine the function \\(f\\) from the natural numbers (including 0) to the natural numbers as follows.\n\n\\(f(n)\\) is the sum of \\(k\\) over all integers \\(k\\) with \\(1 \\le k \\le n\\) such that \\(k\\) is a perfect square. An empty sum is 0.\n\n## What to do\n\n`Solution.lean` in the working directory declares `f` with `sorry` as its body. Replace each `sorry` with a definition that matches the description above.\n\n- Keep the name and the type exactly as given. You may add helper definitions.\n- The definition must be computable: it is checked by running it on hidden inputs, so do not use `noncomputable` or classical choice.\n- Check that the file compiles with `lake env lean Solution.lean` (run it inside `/opt/arena/lean`, giving the full path to the file), and test your definition with `#eval`.\n- The reward is 1 if the definition agrees with the description on every hidden input, and 0 otherwise.\n\n## Examples\n\n- \\(f(3) = 1\\)\n- \\(f(10) = 14\\)\n- \\(f(17) = 30\\)\n- \\(f(24) = 30\\)\n", "start_file": "import Mathlib\n\ndef f (n : ℕ) : ℕ := sorry\n", "path": "tasks/definitions/definitions-sum-d1-e0023"} | |