diff --git a/tasks/construct-ae-p38-factorial-factors-l5-s3/environment/Dockerfile b/tasks/construct-ae-p38-factorial-factors-l5-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l5-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-ae-p38-factorial-factors-l5-s3/environment/instance.json b/tasks/construct-ae-p38-factorial-factors-l5-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..37f6703fa6d57ff8a7a0691c4bc350163846504c --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l5-s3/environment/instance.json @@ -0,0 +1 @@ +{"N": 1893, "t": 599, "family": "ae_p38_factorial_factors", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p38-factorial-factors-l5-s3/solution/solve.sh b/tasks/construct-ae-p38-factorial-factors-l5-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd2146d86bf8784ee0de2b73001278278f60a8f9 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l5-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"factors": [1797, 599, 599, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 601, 601, 601, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 604, 604, 604, 604, 604, 604, 604, 604, 604, 604, 604, 604, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 607, 607, 607, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 613, 613, 613, 614, 614, 614, 614, 614, 614, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 617, 617, 617, 618, 618, 618, 618, 618, 618, 618, 618, 618, 618, 618, 618, 618, 618, 618, 618, 618, 618, 619, 619, 619, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 622, 622, 622, 622, 622, 622, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 626, 626, 626, 626, 626, 626, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 631, 631, 631, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 633, 633, 633, 633, 633, 633, 633, 633, 634, 634, 634, 634, 634, 635, 635, 635, 635, 635, 635, 635, 635, 635, 635, 635, 635, 635, 635, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 641, 641, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 643, 643, 644, 644, 644, 644, 644, 644, 644, 644, 644, 644, 644, 644, 647, 647, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 653, 653, 654, 654, 654, 654, 654, 654, 654, 654, 654, 654, 654, 654, 654, 654, 654, 654, 654, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 656, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 659, 659, 661, 661, 662, 662, 662, 662, 662, 664, 664, 664, 664, 664, 664, 664, 664, 664, 664, 664, 664, 664, 664, 664, 664, 664, 664, 664, 664, 664, 664, 668, 668, 668, 668, 668, 668, 668, 668, 668, 668, 668, 669, 669, 669, 669, 669, 669, 669, 669, 673, 673, 674, 674, 674, 674, 674, 677, 677, 678, 678, 678, 678, 678, 678, 678, 678, 678, 678, 678, 678, 678, 678, 678, 678, 679, 679, 679, 679, 679, 679, 679, 679, 679, 679, 679, 679, 679, 679, 679, 679, 679, 679, 679, 681, 681, 681, 681, 681, 681, 681, 681, 683, 683, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 687, 687, 687, 687, 687, 687, 687, 687, 691, 691, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 694, 694, 694, 694, 694, 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, 698, 698, 698, 698, 698, 699, 699, 699, 699, 699, 699, 699, 699, 701, 701, 706, 706, 706, 706, 706, 709, 709, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, 717, 717, 717, 717, 717, 717, 717, 718, 718, 718, 718, 718, 719, 719, 723, 723, 723, 723, 723, 723, 723, 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, 727, 727, 733, 733, 734, 734, 734, 734, 734, 739, 739, 743, 743, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 746, 746, 746, 746, 746, 749, 751, 751, 753, 753, 753, 753, 753, 753, 753, 757, 757, 758, 758, 758, 758, 761, 761, 764, 764, 764, 764, 764, 764, 764, 764, 764, 766, 766, 766, 766, 769, 769, 771, 771, 771, 771, 771, 771, 771, 772, 772, 772, 772, 772, 772, 772, 772, 772, 773, 773, 778, 778, 778, 778, 787, 787, 788, 788, 788, 788, 788, 788, 788, 788, 788, 789, 789, 789, 789, 789, 789, 789, 794, 794, 794, 794, 796, 796, 796, 796, 796, 796, 796, 796, 796, 797, 797, 802, 802, 802, 802, 807, 807, 807, 807, 807, 807, 807, 809, 809, 811, 811, 813, 813, 813, 813, 813, 813, 818, 818, 818, 818, 821, 821, 823, 823, 827, 827, 829, 829, 831, 831, 831, 831, 831, 831, 838, 838, 838, 838, 839, 839, 842, 842, 842, 842, 843, 843, 843, 843, 843, 843, 849, 849, 849, 849, 849, 849, 853, 853, 857, 857, 859, 859, 862, 862, 862, 862, 863, 863, 866, 866, 866, 866, 877, 877, 878, 878, 878, 878, 879, 879, 879, 879, 879, 879, 881, 881, 883, 883, 886, 886, 886, 886, 887, 887, 898, 898, 898, 898, 907, 907, 911, 911, 914, 914, 914, 914, 919, 919, 922, 922, 922, 922, 926, 926, 926, 926, 929, 929, 934, 934, 934, 934, 937, 937, 941, 941, 947, 953, 958, 958, 958, 967, 971, 974, 974, 974, 977, 982, 982, 982, 983, 991, 997, 998, 998, 998, 1006, 1006, 1006, 1009, 1013, 1018, 1018, 1018, 1019, 1021, 1031, 1033, 1039, 1042, 1042, 1042, 1046, 1046, 1046, 1049, 1051, 1061, 1063, 1069, 1082, 1082, 1082, 1087, 1091, 1093, 1094, 1094, 1094, 1097, 1103, 1109, 1114, 1114, 1114, 1117, 1123, 1126, 1126, 1126, 1129, 1138, 1138, 1138, 1142, 1142, 1142, 1151, 1153, 1154, 1154, 1154, 1163, 1171, 1174, 1174, 1174, 1181, 1186, 1186, 1186, 1187, 1193, 1201, 1213, 1217, 1223, 1229, 1231, 1237, 1249, 1259, 1277, 1279, 1283, 1289, 1291, 1297, 1301, 1303, 1307, 1319, 1321, 1327, 1361, 1367, 1373, 1381, 1399, 1409, 1423, 1427, 1429, 1433, 1439, 1447, 1451, 1453, 1459, 1471, 1481, 1483, 1487, 1489, 1493, 1499, 1511, 1523, 1531, 1543, 1549, 1553, 1559, 1567, 1571, 1579, 1583, 1597, 1601, 1607, 1609, 1613, 1619, 1621, 1627, 1637, 1657, 1663, 1667, 1669, 1693, 1697, 1699, 1709, 1721, 1723, 1733, 1741, 1747, 1753, 1759, 1777, 1783, 1787, 1789, 1801, 1811, 1823, 1831, 1847, 1861, 1867, 1871, 1873, 1877, 1879, 1889]} +RLMATH_EOF diff --git a/tasks/construct-ae-p38-factorial-factors-l5-s3/tests/check.py b/tasks/construct-ae-p38-factorial-factors-l5-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..93ec67a19039afa8b4ce6e39811691b802132562 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l5-s3/tests/check.py @@ -0,0 +1,12 @@ +"""Factor N! into N factors, each >= t (AlphaEvolve problem 38 / OEIS A034258). Exact big-integer check.""" +import math + +from run import Invalid, int_list + + +def check(inst, ans): + n, t = inst["N"], inst["t"] + f = int_list(ans.get("factors"), n, t, None, "factors") + if math.prod(f) != math.factorial(n): + raise Invalid(f"the product of the factors is not {n}!") + return None, {"min_factor": min(f)} diff --git a/tasks/construct-ae-p38-factorial-factors-l5-s3/tests/instance.json b/tasks/construct-ae-p38-factorial-factors-l5-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..37f6703fa6d57ff8a7a0691c4bc350163846504c --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l5-s3/tests/instance.json @@ -0,0 +1 @@ +{"N": 1893, "t": 599, "family": "ae_p38_factorial_factors", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p38-factorial-factors-l5-s3/tests/run.py b/tasks/construct-ae-p38-factorial-factors-l5-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l5-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-ae-p38-factorial-factors-l5-s3/tests/test.sh b/tasks/construct-ae-p38-factorial-factors-l5-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l5-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-ae-p38-factorial-factors-l5-s4/environment/Dockerfile b/tasks/construct-ae-p38-factorial-factors-l5-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l5-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-ae-p38-factorial-factors-l5-s4/environment/instance.json b/tasks/construct-ae-p38-factorial-factors-l5-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a231b999452509da720055dbeecdd6f0320f581b --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l5-s4/environment/instance.json @@ -0,0 +1 @@ +{"N": 2295, "t": 732, "family": "ae_p38_factorial_factors", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p38-factorial-factors-l5-s4/solution/solve.sh b/tasks/construct-ae-p38-factorial-factors-l5-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..befb32c2de1c42a5bd0675239f79933f52c836b3 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l5-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"factors": [1464, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 733, 733, 733, 734, 734, 734, 734, 734, 734, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 739, 739, 739, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 743, 743, 743, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 746, 746, 746, 746, 746, 746, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 751, 751, 751, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 753, 753, 753, 753, 753, 753, 753, 753, 753, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 757, 757, 757, 758, 758, 758, 758, 758, 758, 759, 759, 759, 759, 759, 759, 761, 761, 761, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 766, 766, 766, 766, 766, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 769, 769, 771, 771, 771, 771, 771, 771, 771, 771, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 773, 773, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 778, 778, 778, 778, 778, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 785, 785, 785, 785, 785, 785, 785, 785, 785, 785, 785, 785, 785, 785, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 787, 787, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 789, 789, 789, 789, 789, 789, 789, 789, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 791, 791, 791, 791, 791, 791, 791, 791, 791, 791, 791, 791, 791, 791, 791, 791, 791, 791, 791, 791, 794, 794, 794, 794, 794, 796, 796, 796, 796, 796, 796, 796, 796, 796, 796, 796, 797, 797, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 802, 802, 802, 802, 802, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 807, 807, 807, 807, 807, 807, 807, 807, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 809, 809, 811, 811, 813, 813, 813, 813, 813, 813, 813, 813, 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, 818, 818, 818, 818, 818, 821, 821, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 823, 823, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 827, 827, 829, 829, 831, 831, 831, 831, 831, 831, 831, 831, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 838, 838, 838, 838, 838, 839, 839, 841, 842, 842, 842, 842, 842, 843, 843, 843, 843, 843, 843, 843, 843, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 849, 849, 849, 849, 849, 849, 849, 849, 853, 853, 857, 857, 859, 859, 862, 862, 862, 862, 862, 863, 863, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 866, 866, 866, 866, 866, 877, 877, 878, 878, 878, 878, 878, 879, 879, 879, 879, 879, 879, 879, 881, 881, 883, 883, 886, 886, 886, 886, 886, 887, 887, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 895, 895, 895, 895, 895, 895, 895, 895, 895, 895, 895, 895, 898, 898, 898, 898, 898, 905, 905, 905, 905, 905, 905, 905, 905, 905, 905, 905, 905, 907, 907, 908, 908, 908, 908, 908, 908, 908, 908, 908, 908, 911, 911, 914, 914, 914, 914, 914, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 919, 919, 921, 921, 921, 921, 921, 921, 921, 922, 922, 922, 922, 926, 926, 926, 926, 929, 929, 932, 932, 932, 932, 932, 932, 932, 932, 932, 933, 933, 933, 933, 933, 933, 933, 934, 934, 934, 934, 937, 937, 939, 939, 939, 939, 939, 939, 939, 941, 941, 947, 947, 951, 951, 951, 951, 951, 951, 951, 953, 953, 956, 956, 956, 956, 956, 956, 956, 956, 956, 958, 958, 958, 958, 964, 964, 964, 964, 964, 964, 964, 964, 964, 967, 967, 971, 971, 974, 974, 974, 974, 977, 977, 982, 982, 982, 982, 983, 983, 991, 991, 993, 993, 993, 993, 993, 993, 997, 997, 998, 998, 998, 998, 1006, 1006, 1006, 1006, 1009, 1009, 1011, 1011, 1011, 1011, 1011, 1011, 1013, 1013, 1018, 1018, 1018, 1018, 1019, 1019, 1021, 1021, 1031, 1031, 1033, 1033, 1039, 1039, 1041, 1041, 1041, 1041, 1041, 1041, 1042, 1042, 1042, 1042, 1046, 1046, 1046, 1046, 1047, 1047, 1047, 1047, 1047, 1047, 1049, 1049, 1051, 1051, 1059, 1059, 1059, 1059, 1059, 1059, 1061, 1061, 1063, 1063, 1069, 1069, 1077, 1077, 1077, 1077, 1077, 1077, 1082, 1082, 1082, 1082, 1087, 1087, 1091, 1091, 1093, 1093, 1094, 1094, 1094, 1094, 1097, 1097, 1103, 1103, 1109, 1109, 1114, 1114, 1114, 1114, 1117, 1117, 1123, 1123, 1126, 1126, 1126, 1126, 1129, 1129, 1138, 1138, 1138, 1138, 1142, 1142, 1142, 1142, 1151, 1153, 1154, 1154, 1154, 1163, 1171, 1174, 1174, 1174, 1181, 1186, 1186, 1186, 1187, 1193, 1198, 1198, 1198, 1201, 1202, 1202, 1202, 1213, 1214, 1214, 1214, 1217, 1223, 1226, 1226, 1226, 1229, 1231, 1234, 1234, 1234, 1237, 1238, 1238, 1238, 1249, 1259, 1262, 1262, 1262, 1277, 1279, 1282, 1282, 1282, 1283, 1286, 1286, 1286, 1289, 1291, 1294, 1294, 1294, 1297, 1301, 1303, 1306, 1306, 1306, 1307, 1318, 1318, 1318, 1319, 1321, 1322, 1322, 1322, 1327, 1346, 1346, 1346, 1354, 1354, 1354, 1361, 1366, 1366, 1366, 1367, 1373, 1381, 1382, 1382, 1382, 1399, 1402, 1402, 1402, 1409, 1418, 1418, 1418, 1423, 1427, 1429, 1433, 1438, 1438, 1438, 1439, 1447, 1451, 1453, 1454, 1454, 1454, 1459, 1471, 1481, 1483, 1487, 1489, 1493, 1499, 1511, 1523, 1531, 1543, 1549, 1553, 1559, 1567, 1571, 1579, 1583, 1597, 1601, 1607, 1609, 1613, 1619, 1621, 1627, 1637, 1657, 1663, 1667, 1669, 1693, 1697, 1699, 1709, 1721, 1723, 1733, 1741, 1747, 1753, 1759, 1777, 1783, 1787, 1789, 1801, 1811, 1823, 1831, 1847, 1861, 1867, 1871, 1873, 1877, 1879, 1889, 1901, 1907, 1913, 1931, 1933, 1949, 1951, 1973, 1979, 1987, 1993, 1997, 1999, 2003, 2011, 2017, 2027, 2029, 2039, 2053, 2063, 2069, 2081, 2083, 2087, 2089, 2099, 2111, 2113, 2129, 2131, 2137, 2141, 2143, 2153, 2161, 2179, 2203, 2207, 2213, 2221, 2237, 2239, 2243, 2251, 2267, 2269, 2273, 2281, 2287, 2293]} +RLMATH_EOF diff --git a/tasks/construct-ae-p38-factorial-factors-l5-s4/tests/check.py b/tasks/construct-ae-p38-factorial-factors-l5-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..93ec67a19039afa8b4ce6e39811691b802132562 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l5-s4/tests/check.py @@ -0,0 +1,12 @@ +"""Factor N! into N factors, each >= t (AlphaEvolve problem 38 / OEIS A034258). Exact big-integer check.""" +import math + +from run import Invalid, int_list + + +def check(inst, ans): + n, t = inst["N"], inst["t"] + f = int_list(ans.get("factors"), n, t, None, "factors") + if math.prod(f) != math.factorial(n): + raise Invalid(f"the product of the factors is not {n}!") + return None, {"min_factor": min(f)} diff --git a/tasks/construct-ae-p38-factorial-factors-l5-s4/tests/instance.json b/tasks/construct-ae-p38-factorial-factors-l5-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a231b999452509da720055dbeecdd6f0320f581b --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l5-s4/tests/instance.json @@ -0,0 +1 @@ +{"N": 2295, "t": 732, "family": "ae_p38_factorial_factors", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p38-factorial-factors-l5-s4/tests/run.py b/tasks/construct-ae-p38-factorial-factors-l5-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l5-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-ae-p38-factorial-factors-l5-s4/tests/test.sh b/tasks/construct-ae-p38-factorial-factors-l5-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l5-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-ae-p52-erdos-squarefree-l1-s0/environment/Dockerfile b/tasks/construct-ae-p52-erdos-squarefree-l1-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l1-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-ae-p52-erdos-squarefree-l1-s0/environment/instance.json b/tasks/construct-ae-p52-erdos-squarefree-l1-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..17fc1ad6b2ca4c552ad2e1e699da735f25b2b4ff --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l1-s0/environment/instance.json @@ -0,0 +1 @@ +{"N": 71, "t": 3, "family": "ae_p52_erdos_squarefree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p52-erdos-squarefree-l1-s0/solution/solve.sh b/tasks/construct-ae-p52-erdos-squarefree-l1-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..50f3f4974dadd8b33f98b78aaa992c9a3457fa09 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l1-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"A": [7, 32, 57]} +RLMATH_EOF diff --git a/tasks/construct-ae-p52-erdos-squarefree-l1-s0/tests/check.py b/tasks/construct-ae-p52-erdos-squarefree-l1-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..87e15b242f211059193ba122baecdee9add99130 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l1-s0/tests/check.py @@ -0,0 +1,38 @@ +"""Erdos squarefree problem (AlphaEvolve problem 52): A in [1, N], |A| >= t, ab+1 NOT squarefree for all a, b in A +(a = b included). The repo's problem page says "square-free"; the notebook and the Erdos problem ask for +"never squarefree", which is what we check. Exact: for every pair we find a prime p with p^2 | ab+1.""" +import numpy as np + +from run import Invalid, int_list + + +def _primes(n): + s = np.ones(n + 1, dtype=bool) + s[:2] = False + for i in range(2, int(n ** .5) + 1): + if s[i]: + s[i * i::i] = False + return np.nonzero(s)[0] + + +def check(inst, ans): + n, t = inst["N"], inst["t"] + a = ans.get("A") + if not isinstance(a, list) or not (t <= len(a) <= 2 * t + 20): + raise Invalid(f"A must be a list of {t}..{2 * t + 20} integers") + int_list(a, None, 1, n, "A") + if len(set(a)) != len(a): + raise Invalid("A must consist of distinct integers") + x = np.array(sorted(a), dtype=np.int64) + iu, ju = np.triu_indices(len(x)) + va, vb = x[iu], x[ju] + left = np.ones(len(iu), dtype=bool) # pairs without a square divisor found yet + for p in _primes(int((n * n + 1) ** .5) + 1): + q = int(p) * int(p) + idx = np.nonzero(left)[0] + hit = ((va[idx] % q) * (vb[idx] % q) + 1) % q == 0 + left[idx[hit]] = False + if not left.any(): + return None, {"size": len(a)} + k = int(np.nonzero(left)[0][0]) + raise Invalid(f"{int(va[k])}*{int(vb[k])}+1 = {int(va[k]) * int(vb[k]) + 1} is squarefree") diff --git a/tasks/construct-ae-p52-erdos-squarefree-l1-s0/tests/instance.json b/tasks/construct-ae-p52-erdos-squarefree-l1-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..17fc1ad6b2ca4c552ad2e1e699da735f25b2b4ff --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l1-s0/tests/instance.json @@ -0,0 +1 @@ +{"N": 71, "t": 3, "family": "ae_p52_erdos_squarefree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p52-erdos-squarefree-l1-s0/tests/run.py b/tasks/construct-ae-p52-erdos-squarefree-l1-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l1-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-ae-p52-erdos-squarefree-l1-s0/tests/test.sh b/tasks/construct-ae-p52-erdos-squarefree-l1-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l1-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-ae-p52-erdos-squarefree-l1-s7/environment/Dockerfile b/tasks/construct-ae-p52-erdos-squarefree-l1-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l1-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-ae-p52-erdos-squarefree-l1-s7/environment/instance.json b/tasks/construct-ae-p52-erdos-squarefree-l1-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4d8c72ccd38236ec8b12ab4da4c0f6c62ebc6200 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l1-s7/environment/instance.json @@ -0,0 +1 @@ +{"N": 40, "t": 2, "family": "ae_p52_erdos_squarefree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p52-erdos-squarefree-l1-s7/solution/solve.sh b/tasks/construct-ae-p52-erdos-squarefree-l1-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..64edc60b2777c8ab206ef2453c453061679e49f0 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l1-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"A": [7, 32]} +RLMATH_EOF diff --git a/tasks/construct-ae-p52-erdos-squarefree-l1-s7/tests/check.py b/tasks/construct-ae-p52-erdos-squarefree-l1-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..87e15b242f211059193ba122baecdee9add99130 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l1-s7/tests/check.py @@ -0,0 +1,38 @@ +"""Erdos squarefree problem (AlphaEvolve problem 52): A in [1, N], |A| >= t, ab+1 NOT squarefree for all a, b in A +(a = b included). The repo's problem page says "square-free"; the notebook and the Erdos problem ask for +"never squarefree", which is what we check. Exact: for every pair we find a prime p with p^2 | ab+1.""" +import numpy as np + +from run import Invalid, int_list + + +def _primes(n): + s = np.ones(n + 1, dtype=bool) + s[:2] = False + for i in range(2, int(n ** .5) + 1): + if s[i]: + s[i * i::i] = False + return np.nonzero(s)[0] + + +def check(inst, ans): + n, t = inst["N"], inst["t"] + a = ans.get("A") + if not isinstance(a, list) or not (t <= len(a) <= 2 * t + 20): + raise Invalid(f"A must be a list of {t}..{2 * t + 20} integers") + int_list(a, None, 1, n, "A") + if len(set(a)) != len(a): + raise Invalid("A must consist of distinct integers") + x = np.array(sorted(a), dtype=np.int64) + iu, ju = np.triu_indices(len(x)) + va, vb = x[iu], x[ju] + left = np.ones(len(iu), dtype=bool) # pairs without a square divisor found yet + for p in _primes(int((n * n + 1) ** .5) + 1): + q = int(p) * int(p) + idx = np.nonzero(left)[0] + hit = ((va[idx] % q) * (vb[idx] % q) + 1) % q == 0 + left[idx[hit]] = False + if not left.any(): + return None, {"size": len(a)} + k = int(np.nonzero(left)[0][0]) + raise Invalid(f"{int(va[k])}*{int(vb[k])}+1 = {int(va[k]) * int(vb[k]) + 1} is squarefree") diff --git a/tasks/construct-ae-p52-erdos-squarefree-l1-s7/tests/instance.json b/tasks/construct-ae-p52-erdos-squarefree-l1-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4d8c72ccd38236ec8b12ab4da4c0f6c62ebc6200 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l1-s7/tests/instance.json @@ -0,0 +1 @@ +{"N": 40, "t": 2, "family": "ae_p52_erdos_squarefree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p52-erdos-squarefree-l1-s7/tests/run.py b/tasks/construct-ae-p52-erdos-squarefree-l1-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l1-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-ae-p52-erdos-squarefree-l1-s7/tests/test.sh b/tasks/construct-ae-p52-erdos-squarefree-l1-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l1-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-ae-p52-erdos-squarefree-l5-s6/environment/Dockerfile b/tasks/construct-ae-p52-erdos-squarefree-l5-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l5-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-ae-p52-erdos-squarefree-l5-s6/environment/instance.json b/tasks/construct-ae-p52-erdos-squarefree-l5-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..078abf4b442c72c97e182dadff2fca650e15c012 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l5-s6/environment/instance.json @@ -0,0 +1 @@ +{"N": 4172, "t": 167, "family": "ae_p52_erdos_squarefree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p52-erdos-squarefree-l5-s6/solution/solve.sh b/tasks/construct-ae-p52-erdos-squarefree-l5-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..25da729d54a2dccf3fbccba22fcb6776f0de5508 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l5-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"A": [7, 32, 57, 82, 107, 132, 157, 182, 207, 232, 257, 282, 307, 332, 357, 382, 407, 432, 457, 482, 507, 532, 557, 582, 607, 632, 657, 682, 707, 732, 757, 782, 807, 832, 857, 882, 907, 932, 957, 982, 1007, 1032, 1057, 1082, 1107, 1132, 1157, 1182, 1207, 1232, 1257, 1282, 1307, 1332, 1357, 1382, 1407, 1432, 1457, 1482, 1507, 1532, 1557, 1582, 1607, 1632, 1657, 1682, 1707, 1732, 1757, 1782, 1807, 1832, 1857, 1882, 1907, 1932, 1957, 1982, 2007, 2032, 2057, 2082, 2107, 2132, 2157, 2182, 2207, 2232, 2257, 2282, 2307, 2332, 2357, 2382, 2407, 2432, 2457, 2482, 2507, 2532, 2557, 2582, 2607, 2632, 2657, 2682, 2707, 2732, 2757, 2782, 2807, 2832, 2857, 2882, 2907, 2932, 2957, 2982, 3007, 3032, 3057, 3082, 3107, 3132, 3157, 3182, 3207, 3232, 3257, 3282, 3307, 3332, 3357, 3382, 3407, 3432, 3457, 3482, 3507, 3532, 3557, 3582, 3607, 3632, 3657, 3682, 3707, 3732, 3757, 3782, 3807, 3832, 3857, 3882, 3907, 3932, 3957, 3982, 4007, 4032, 4057, 4082, 4107, 4132, 4157]} +RLMATH_EOF diff --git a/tasks/construct-ae-p52-erdos-squarefree-l5-s6/tests/check.py b/tasks/construct-ae-p52-erdos-squarefree-l5-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..87e15b242f211059193ba122baecdee9add99130 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l5-s6/tests/check.py @@ -0,0 +1,38 @@ +"""Erdos squarefree problem (AlphaEvolve problem 52): A in [1, N], |A| >= t, ab+1 NOT squarefree for all a, b in A +(a = b included). The repo's problem page says "square-free"; the notebook and the Erdos problem ask for +"never squarefree", which is what we check. Exact: for every pair we find a prime p with p^2 | ab+1.""" +import numpy as np + +from run import Invalid, int_list + + +def _primes(n): + s = np.ones(n + 1, dtype=bool) + s[:2] = False + for i in range(2, int(n ** .5) + 1): + if s[i]: + s[i * i::i] = False + return np.nonzero(s)[0] + + +def check(inst, ans): + n, t = inst["N"], inst["t"] + a = ans.get("A") + if not isinstance(a, list) or not (t <= len(a) <= 2 * t + 20): + raise Invalid(f"A must be a list of {t}..{2 * t + 20} integers") + int_list(a, None, 1, n, "A") + if len(set(a)) != len(a): + raise Invalid("A must consist of distinct integers") + x = np.array(sorted(a), dtype=np.int64) + iu, ju = np.triu_indices(len(x)) + va, vb = x[iu], x[ju] + left = np.ones(len(iu), dtype=bool) # pairs without a square divisor found yet + for p in _primes(int((n * n + 1) ** .5) + 1): + q = int(p) * int(p) + idx = np.nonzero(left)[0] + hit = ((va[idx] % q) * (vb[idx] % q) + 1) % q == 0 + left[idx[hit]] = False + if not left.any(): + return None, {"size": len(a)} + k = int(np.nonzero(left)[0][0]) + raise Invalid(f"{int(va[k])}*{int(vb[k])}+1 = {int(va[k]) * int(vb[k]) + 1} is squarefree") diff --git a/tasks/construct-ae-p52-erdos-squarefree-l5-s6/tests/instance.json b/tasks/construct-ae-p52-erdos-squarefree-l5-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..078abf4b442c72c97e182dadff2fca650e15c012 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l5-s6/tests/instance.json @@ -0,0 +1 @@ +{"N": 4172, "t": 167, "family": "ae_p52_erdos_squarefree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p52-erdos-squarefree-l5-s6/tests/run.py b/tasks/construct-ae-p52-erdos-squarefree-l5-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l5-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-ae-p52-erdos-squarefree-l5-s6/tests/test.sh b/tasks/construct-ae-p52-erdos-squarefree-l5-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l5-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-ae-p52-erdos-squarefree-l5-s8/environment/Dockerfile b/tasks/construct-ae-p52-erdos-squarefree-l5-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l5-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-ae-p52-erdos-squarefree-l5-s8/environment/instance.json b/tasks/construct-ae-p52-erdos-squarefree-l5-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..eea1f50aaa2477ca3ce02970d4ff756889f75ebd --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l5-s8/environment/instance.json @@ -0,0 +1 @@ +{"N": 5020, "t": 201, "family": "ae_p52_erdos_squarefree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p52-erdos-squarefree-l5-s8/solution/solve.sh b/tasks/construct-ae-p52-erdos-squarefree-l5-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..452a7f9055081b8ab9e0a6c5c8897822809254fe --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l5-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"A": [7, 32, 57, 82, 107, 132, 157, 182, 207, 232, 257, 282, 307, 332, 357, 382, 407, 432, 457, 482, 507, 532, 557, 582, 607, 632, 657, 682, 707, 732, 757, 782, 807, 832, 857, 882, 907, 932, 957, 982, 1007, 1032, 1057, 1082, 1107, 1132, 1157, 1182, 1207, 1232, 1257, 1282, 1307, 1332, 1357, 1382, 1407, 1432, 1457, 1482, 1507, 1532, 1557, 1582, 1607, 1632, 1657, 1682, 1707, 1732, 1757, 1782, 1807, 1832, 1857, 1882, 1907, 1932, 1957, 1982, 2007, 2032, 2057, 2082, 2107, 2132, 2157, 2182, 2207, 2232, 2257, 2282, 2307, 2332, 2357, 2382, 2407, 2432, 2457, 2482, 2507, 2532, 2557, 2582, 2607, 2632, 2657, 2682, 2707, 2732, 2757, 2782, 2807, 2832, 2857, 2882, 2907, 2932, 2957, 2982, 3007, 3032, 3057, 3082, 3107, 3132, 3157, 3182, 3207, 3232, 3257, 3282, 3307, 3332, 3357, 3382, 3407, 3432, 3457, 3482, 3507, 3532, 3557, 3582, 3607, 3632, 3657, 3682, 3707, 3732, 3757, 3782, 3807, 3832, 3857, 3882, 3907, 3932, 3957, 3982, 4007, 4032, 4057, 4082, 4107, 4132, 4157, 4182, 4207, 4232, 4257, 4282, 4307, 4332, 4357, 4382, 4407, 4432, 4457, 4482, 4507, 4532, 4557, 4582, 4607, 4632, 4657, 4682, 4707, 4732, 4757, 4782, 4807, 4832, 4857, 4882, 4907, 4932, 4957, 4982, 5007]} +RLMATH_EOF diff --git a/tasks/construct-ae-p52-erdos-squarefree-l5-s8/tests/check.py b/tasks/construct-ae-p52-erdos-squarefree-l5-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..87e15b242f211059193ba122baecdee9add99130 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l5-s8/tests/check.py @@ -0,0 +1,38 @@ +"""Erdos squarefree problem (AlphaEvolve problem 52): A in [1, N], |A| >= t, ab+1 NOT squarefree for all a, b in A +(a = b included). The repo's problem page says "square-free"; the notebook and the Erdos problem ask for +"never squarefree", which is what we check. Exact: for every pair we find a prime p with p^2 | ab+1.""" +import numpy as np + +from run import Invalid, int_list + + +def _primes(n): + s = np.ones(n + 1, dtype=bool) + s[:2] = False + for i in range(2, int(n ** .5) + 1): + if s[i]: + s[i * i::i] = False + return np.nonzero(s)[0] + + +def check(inst, ans): + n, t = inst["N"], inst["t"] + a = ans.get("A") + if not isinstance(a, list) or not (t <= len(a) <= 2 * t + 20): + raise Invalid(f"A must be a list of {t}..{2 * t + 20} integers") + int_list(a, None, 1, n, "A") + if len(set(a)) != len(a): + raise Invalid("A must consist of distinct integers") + x = np.array(sorted(a), dtype=np.int64) + iu, ju = np.triu_indices(len(x)) + va, vb = x[iu], x[ju] + left = np.ones(len(iu), dtype=bool) # pairs without a square divisor found yet + for p in _primes(int((n * n + 1) ** .5) + 1): + q = int(p) * int(p) + idx = np.nonzero(left)[0] + hit = ((va[idx] % q) * (vb[idx] % q) + 1) % q == 0 + left[idx[hit]] = False + if not left.any(): + return None, {"size": len(a)} + k = int(np.nonzero(left)[0][0]) + raise Invalid(f"{int(va[k])}*{int(vb[k])}+1 = {int(va[k]) * int(vb[k]) + 1} is squarefree") diff --git a/tasks/construct-ae-p52-erdos-squarefree-l5-s8/tests/instance.json b/tasks/construct-ae-p52-erdos-squarefree-l5-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..eea1f50aaa2477ca3ce02970d4ff756889f75ebd --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l5-s8/tests/instance.json @@ -0,0 +1 @@ +{"N": 5020, "t": 201, "family": "ae_p52_erdos_squarefree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p52-erdos-squarefree-l5-s8/tests/run.py b/tasks/construct-ae-p52-erdos-squarefree-l5-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l5-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-ae-p52-erdos-squarefree-l5-s8/tests/test.sh b/tasks/construct-ae-p52-erdos-squarefree-l5-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l5-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/environment/Dockerfile b/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/environment/instance.json b/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..50ba9b337ec1e69fd44548d7da845e903c84694a --- /dev/null +++ b/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 2025, "max_tiles": 2112, "family": "ae_p65_imo2025_p6_tiling", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/solution/solve.sh b/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..229c4091e49b4d3e2dc12e815eb259310947a6a0 --- /dev/null +++ b/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"tiles": [[0, 0, 45, 44], [0, 45, 1, 1980], [1, 44, 45, 45], [1, 90, 1, 1935], [2, 89, 45, 45], [2, 135, 1, 1890], [3, 134, 45, 45], [3, 180, 1, 1845], [4, 179, 45, 45], [4, 225, 1, 1800], [5, 224, 45, 45], [5, 270, 1, 1755], [6, 269, 45, 45], [6, 315, 1, 1710], [7, 314, 45, 45], [7, 360, 1, 1665], [8, 359, 45, 45], [8, 405, 1, 1620], [9, 404, 45, 45], [9, 450, 1, 1575], [10, 449, 45, 45], [10, 495, 1, 1530], [11, 494, 45, 45], [11, 540, 1, 1485], [12, 539, 45, 45], [12, 585, 1, 1440], [13, 584, 45, 45], [13, 630, 1, 1395], [14, 629, 45, 45], [14, 675, 1, 1350], [15, 674, 45, 45], [15, 720, 1, 1305], [16, 719, 45, 45], [16, 765, 1, 1260], [17, 764, 45, 45], [17, 810, 1, 1215], [18, 809, 45, 45], [18, 855, 1, 1170], [19, 854, 45, 45], [19, 900, 1, 1125], [20, 899, 45, 45], [20, 945, 1, 1080], [21, 944, 45, 45], [21, 990, 1, 1035], [22, 989, 45, 45], [22, 1035, 1, 990], [23, 1034, 45, 45], [23, 1080, 1, 945], [24, 1079, 45, 45], [24, 1125, 1, 900], [25, 1124, 45, 45], [25, 1170, 1, 855], [26, 1169, 45, 45], [26, 1215, 1, 810], [27, 1214, 45, 45], [27, 1260, 1, 765], [28, 1259, 45, 45], [28, 1305, 1, 720], [29, 1304, 45, 45], [29, 1350, 1, 675], [30, 1349, 45, 45], [30, 1395, 1, 630], [31, 1394, 45, 45], [31, 1440, 1, 585], [32, 1439, 45, 45], [32, 1485, 1, 540], [33, 1484, 45, 45], [33, 1530, 1, 495], [34, 1529, 45, 45], [34, 1575, 1, 450], [35, 1574, 45, 45], [35, 1620, 1, 405], [36, 1619, 45, 45], [36, 1665, 1, 360], [37, 1664, 45, 45], [37, 1710, 1, 315], [38, 1709, 45, 45], [38, 1755, 1, 270], [39, 1754, 45, 45], [39, 1800, 1, 225], [40, 1799, 45, 45], [40, 1845, 1, 180], [41, 1844, 45, 45], [41, 1890, 1, 135], [42, 1889, 45, 45], [42, 1935, 1, 90], [43, 1934, 45, 45], [43, 1980, 1, 45], [44, 1979, 45, 45], [45, 0, 45, 43], [45, 2024, 1980, 1], [46, 43, 45, 45], [47, 88, 45, 45], [48, 133, 45, 45], [49, 178, 45, 45], [50, 223, 45, 45], [51, 268, 45, 45], [52, 313, 45, 45], [53, 358, 45, 45], [54, 403, 45, 45], [55, 448, 45, 45], [56, 493, 45, 45], [57, 538, 45, 45], [58, 583, 45, 45], [59, 628, 45, 45], [60, 673, 45, 45], [61, 718, 45, 45], [62, 763, 45, 45], [63, 808, 45, 45], [64, 853, 45, 45], [65, 898, 45, 45], [66, 943, 45, 45], [67, 988, 45, 45], [68, 1033, 45, 45], [69, 1078, 45, 45], [70, 1123, 45, 45], [71, 1168, 45, 45], [72, 1213, 45, 45], [73, 1258, 45, 45], [74, 1303, 45, 45], [75, 1348, 45, 45], [76, 1393, 45, 45], [77, 1438, 45, 45], [78, 1483, 45, 45], [79, 1528, 45, 45], [80, 1573, 45, 45], [81, 1618, 45, 45], [82, 1663, 45, 45], [83, 1708, 45, 45], [84, 1753, 45, 45], [85, 1798, 45, 45], [86, 1843, 45, 45], [87, 1888, 45, 45], [88, 1933, 45, 45], [89, 1978, 45, 45], [90, 0, 45, 42], [90, 2023, 1935, 1], [91, 42, 45, 45], [92, 87, 45, 45], [93, 132, 45, 45], [94, 177, 45, 45], [95, 222, 45, 45], [96, 267, 45, 45], [97, 312, 45, 45], [98, 357, 45, 45], [99, 402, 45, 45], [100, 447, 45, 45], [101, 492, 45, 45], [102, 537, 45, 45], [103, 582, 45, 45], [104, 627, 45, 45], [105, 672, 45, 45], [106, 717, 45, 45], [107, 762, 45, 45], [108, 807, 45, 45], [109, 852, 45, 45], [110, 897, 45, 45], [111, 942, 45, 45], [112, 987, 45, 45], [113, 1032, 45, 45], [114, 1077, 45, 45], [115, 1122, 45, 45], [116, 1167, 45, 45], [117, 1212, 45, 45], [118, 1257, 45, 45], [119, 1302, 45, 45], [120, 1347, 45, 45], [121, 1392, 45, 45], [122, 1437, 45, 45], [123, 1482, 45, 45], [124, 1527, 45, 45], [125, 1572, 45, 45], [126, 1617, 45, 45], [127, 1662, 45, 45], [128, 1707, 45, 45], [129, 1752, 45, 45], [130, 1797, 45, 45], [131, 1842, 45, 45], [132, 1887, 45, 45], [133, 1932, 45, 45], [134, 1977, 45, 45], [135, 0, 45, 41], [135, 2022, 1890, 1], [136, 41, 45, 45], [137, 86, 45, 45], [138, 131, 45, 45], [139, 176, 45, 45], [140, 221, 45, 45], [141, 266, 45, 45], [142, 311, 45, 45], [143, 356, 45, 45], [144, 401, 45, 45], [145, 446, 45, 45], [146, 491, 45, 45], [147, 536, 45, 45], [148, 581, 45, 45], [149, 626, 45, 45], [150, 671, 45, 45], [151, 716, 45, 45], [152, 761, 45, 45], [153, 806, 45, 45], [154, 851, 45, 45], [155, 896, 45, 45], [156, 941, 45, 45], [157, 986, 45, 45], [158, 1031, 45, 45], [159, 1076, 45, 45], [160, 1121, 45, 45], [161, 1166, 45, 45], [162, 1211, 45, 45], [163, 1256, 45, 45], [164, 1301, 45, 45], [165, 1346, 45, 45], [166, 1391, 45, 45], [167, 1436, 45, 45], [168, 1481, 45, 45], [169, 1526, 45, 45], [170, 1571, 45, 45], [171, 1616, 45, 45], [172, 1661, 45, 45], [173, 1706, 45, 45], [174, 1751, 45, 45], [175, 1796, 45, 45], [176, 1841, 45, 45], [177, 1886, 45, 45], [178, 1931, 45, 45], [179, 1976, 45, 45], [180, 0, 45, 40], [180, 2021, 1845, 1], [181, 40, 45, 45], [182, 85, 45, 45], [183, 130, 45, 45], [184, 175, 45, 45], [185, 220, 45, 45], [186, 265, 45, 45], [187, 310, 45, 45], [188, 355, 45, 45], [189, 400, 45, 45], [190, 445, 45, 45], [191, 490, 45, 45], [192, 535, 45, 45], [193, 580, 45, 45], [194, 625, 45, 45], [195, 670, 45, 45], [196, 715, 45, 45], [197, 760, 45, 45], [198, 805, 45, 45], [199, 850, 45, 45], [200, 895, 45, 45], [201, 940, 45, 45], [202, 985, 45, 45], [203, 1030, 45, 45], [204, 1075, 45, 45], [205, 1120, 45, 45], [206, 1165, 45, 45], [207, 1210, 45, 45], [208, 1255, 45, 45], [209, 1300, 45, 45], [210, 1345, 45, 45], [211, 1390, 45, 45], [212, 1435, 45, 45], [213, 1480, 45, 45], [214, 1525, 45, 45], [215, 1570, 45, 45], [216, 1615, 45, 45], [217, 1660, 45, 45], [218, 1705, 45, 45], [219, 1750, 45, 45], [220, 1795, 45, 45], [221, 1840, 45, 45], [222, 1885, 45, 45], [223, 1930, 45, 45], [224, 1975, 45, 45], [225, 0, 45, 39], [225, 2020, 1800, 1], [226, 39, 45, 45], [227, 84, 45, 45], [228, 129, 45, 45], [229, 174, 45, 45], [230, 219, 45, 45], [231, 264, 45, 45], [232, 309, 45, 45], [233, 354, 45, 45], [234, 399, 45, 45], [235, 444, 45, 45], [236, 489, 45, 45], [237, 534, 45, 45], [238, 579, 45, 45], [239, 624, 45, 45], [240, 669, 45, 45], [241, 714, 45, 45], [242, 759, 45, 45], [243, 804, 45, 45], [244, 849, 45, 45], [245, 894, 45, 45], [246, 939, 45, 45], [247, 984, 45, 45], [248, 1029, 45, 45], [249, 1074, 45, 45], [250, 1119, 45, 45], [251, 1164, 45, 45], [252, 1209, 45, 45], [253, 1254, 45, 45], [254, 1299, 45, 45], [255, 1344, 45, 45], [256, 1389, 45, 45], [257, 1434, 45, 45], [258, 1479, 45, 45], [259, 1524, 45, 45], [260, 1569, 45, 45], [261, 1614, 45, 45], [262, 1659, 45, 45], [263, 1704, 45, 45], [264, 1749, 45, 45], [265, 1794, 45, 45], [266, 1839, 45, 45], [267, 1884, 45, 45], [268, 1929, 45, 45], [269, 1974, 45, 45], [270, 0, 45, 38], [270, 2019, 1755, 1], [271, 38, 45, 45], [272, 83, 45, 45], [273, 128, 45, 45], [274, 173, 45, 45], [275, 218, 45, 45], [276, 263, 45, 45], [277, 308, 45, 45], [278, 353, 45, 45], [279, 398, 45, 45], [280, 443, 45, 45], [281, 488, 45, 45], [282, 533, 45, 45], [283, 578, 45, 45], [284, 623, 45, 45], [285, 668, 45, 45], [286, 713, 45, 45], [287, 758, 45, 45], [288, 803, 45, 45], [289, 848, 45, 45], [290, 893, 45, 45], [291, 938, 45, 45], [292, 983, 45, 45], [293, 1028, 45, 45], [294, 1073, 45, 45], [295, 1118, 45, 45], [296, 1163, 45, 45], [297, 1208, 45, 45], [298, 1253, 45, 45], [299, 1298, 45, 45], [300, 1343, 45, 45], [301, 1388, 45, 45], [302, 1433, 45, 45], [303, 1478, 45, 45], [304, 1523, 45, 45], [305, 1568, 45, 45], [306, 1613, 45, 45], [307, 1658, 45, 45], [308, 1703, 45, 45], [309, 1748, 45, 45], [310, 1793, 45, 45], [311, 1838, 45, 45], [312, 1883, 45, 45], [313, 1928, 45, 45], [314, 1973, 45, 45], [315, 0, 45, 37], [315, 2018, 1710, 1], [316, 37, 45, 45], [317, 82, 45, 45], [318, 127, 45, 45], [319, 172, 45, 45], [320, 217, 45, 45], [321, 262, 45, 45], [322, 307, 45, 45], [323, 352, 45, 45], [324, 397, 45, 45], [325, 442, 45, 45], [326, 487, 45, 45], [327, 532, 45, 45], [328, 577, 45, 45], [329, 622, 45, 45], [330, 667, 45, 45], [331, 712, 45, 45], [332, 757, 45, 45], [333, 802, 45, 45], [334, 847, 45, 45], [335, 892, 45, 45], [336, 937, 45, 45], [337, 982, 45, 45], [338, 1027, 45, 45], [339, 1072, 45, 45], [340, 1117, 45, 45], [341, 1162, 45, 45], [342, 1207, 45, 45], [343, 1252, 45, 45], [344, 1297, 45, 45], [345, 1342, 45, 45], [346, 1387, 45, 45], [347, 1432, 45, 45], [348, 1477, 45, 45], [349, 1522, 45, 45], [350, 1567, 45, 45], [351, 1612, 45, 45], [352, 1657, 45, 45], [353, 1702, 45, 45], [354, 1747, 45, 45], [355, 1792, 45, 45], [356, 1837, 45, 45], [357, 1882, 45, 45], [358, 1927, 45, 45], [359, 1972, 45, 45], [360, 0, 45, 36], [360, 2017, 1665, 1], [361, 36, 45, 45], [362, 81, 45, 45], [363, 126, 45, 45], [364, 171, 45, 45], [365, 216, 45, 45], [366, 261, 45, 45], [367, 306, 45, 45], [368, 351, 45, 45], [369, 396, 45, 45], [370, 441, 45, 45], [371, 486, 45, 45], [372, 531, 45, 45], [373, 576, 45, 45], [374, 621, 45, 45], [375, 666, 45, 45], [376, 711, 45, 45], [377, 756, 45, 45], [378, 801, 45, 45], [379, 846, 45, 45], [380, 891, 45, 45], [381, 936, 45, 45], [382, 981, 45, 45], [383, 1026, 45, 45], [384, 1071, 45, 45], [385, 1116, 45, 45], [386, 1161, 45, 45], [387, 1206, 45, 45], [388, 1251, 45, 45], [389, 1296, 45, 45], [390, 1341, 45, 45], [391, 1386, 45, 45], [392, 1431, 45, 45], [393, 1476, 45, 45], [394, 1521, 45, 45], [395, 1566, 45, 45], [396, 1611, 45, 45], [397, 1656, 45, 45], [398, 1701, 45, 45], [399, 1746, 45, 45], [400, 1791, 45, 45], [401, 1836, 45, 45], [402, 1881, 45, 45], [403, 1926, 45, 45], [404, 1971, 45, 45], [405, 0, 45, 35], [405, 2016, 1620, 1], [406, 35, 45, 45], [407, 80, 45, 45], [408, 125, 45, 45], [409, 170, 45, 45], [410, 215, 45, 45], [411, 260, 45, 45], [412, 305, 45, 45], [413, 350, 45, 45], [414, 395, 45, 45], [415, 440, 45, 45], [416, 485, 45, 45], [417, 530, 45, 45], [418, 575, 45, 45], [419, 620, 45, 45], [420, 665, 45, 45], [421, 710, 45, 45], [422, 755, 45, 45], [423, 800, 45, 45], [424, 845, 45, 45], [425, 890, 45, 45], [426, 935, 45, 45], [427, 980, 45, 45], [428, 1025, 45, 45], [429, 1070, 45, 45], [430, 1115, 45, 45], [431, 1160, 45, 45], [432, 1205, 45, 45], [433, 1250, 45, 45], [434, 1295, 45, 45], [435, 1340, 45, 45], [436, 1385, 45, 45], [437, 1430, 45, 45], [438, 1475, 45, 45], [439, 1520, 45, 45], [440, 1565, 45, 45], [441, 1610, 45, 45], [442, 1655, 45, 45], [443, 1700, 45, 45], [444, 1745, 45, 45], [445, 1790, 45, 45], [446, 1835, 45, 45], [447, 1880, 45, 45], [448, 1925, 45, 45], [449, 1970, 45, 45], [450, 0, 45, 34], [450, 2015, 1575, 1], [451, 34, 45, 45], [452, 79, 45, 45], [453, 124, 45, 45], [454, 169, 45, 45], [455, 214, 45, 45], [456, 259, 45, 45], [457, 304, 45, 45], [458, 349, 45, 45], [459, 394, 45, 45], [460, 439, 45, 45], [461, 484, 45, 45], [462, 529, 45, 45], [463, 574, 45, 45], [464, 619, 45, 45], [465, 664, 45, 45], [466, 709, 45, 45], [467, 754, 45, 45], [468, 799, 45, 45], [469, 844, 45, 45], [470, 889, 45, 45], [471, 934, 45, 45], [472, 979, 45, 45], [473, 1024, 45, 45], [474, 1069, 45, 45], [475, 1114, 45, 45], [476, 1159, 45, 45], [477, 1204, 45, 45], [478, 1249, 45, 45], [479, 1294, 45, 45], [480, 1339, 45, 45], [481, 1384, 45, 45], [482, 1429, 45, 45], [483, 1474, 45, 45], [484, 1519, 45, 45], [485, 1564, 45, 45], [486, 1609, 45, 45], [487, 1654, 45, 45], [488, 1699, 45, 45], [489, 1744, 45, 45], [490, 1789, 45, 45], [491, 1834, 45, 45], [492, 1879, 45, 45], [493, 1924, 45, 45], [494, 1969, 45, 45], [495, 0, 45, 33], [495, 2014, 1530, 1], [496, 33, 45, 45], [497, 78, 45, 45], [498, 123, 45, 45], [499, 168, 45, 45], [500, 213, 45, 45], [501, 258, 45, 45], [502, 303, 45, 45], [503, 348, 45, 45], [504, 393, 45, 45], [505, 438, 45, 45], [506, 483, 45, 45], [507, 528, 45, 45], [508, 573, 45, 45], [509, 618, 45, 45], [510, 663, 45, 45], [511, 708, 45, 45], [512, 753, 45, 45], [513, 798, 45, 45], [514, 843, 45, 45], [515, 888, 45, 45], [516, 933, 45, 45], [517, 978, 45, 45], [518, 1023, 45, 45], [519, 1068, 45, 45], [520, 1113, 45, 45], [521, 1158, 45, 45], [522, 1203, 45, 45], [523, 1248, 45, 45], [524, 1293, 45, 45], [525, 1338, 45, 45], [526, 1383, 45, 45], [527, 1428, 45, 45], [528, 1473, 45, 45], [529, 1518, 45, 45], [530, 1563, 45, 45], [531, 1608, 45, 45], [532, 1653, 45, 45], [533, 1698, 45, 45], [534, 1743, 45, 45], [535, 1788, 45, 45], [536, 1833, 45, 45], [537, 1878, 45, 45], [538, 1923, 45, 45], [539, 1968, 45, 45], [540, 0, 45, 32], [540, 2013, 1485, 1], [541, 32, 45, 45], [542, 77, 45, 45], [543, 122, 45, 45], [544, 167, 45, 45], [545, 212, 45, 45], [546, 257, 45, 45], [547, 302, 45, 45], [548, 347, 45, 45], [549, 392, 45, 45], [550, 437, 45, 45], [551, 482, 45, 45], [552, 527, 45, 45], [553, 572, 45, 45], [554, 617, 45, 45], [555, 662, 45, 45], [556, 707, 45, 45], [557, 752, 45, 45], [558, 797, 45, 45], [559, 842, 45, 45], [560, 887, 45, 45], [561, 932, 45, 45], [562, 977, 45, 45], [563, 1022, 45, 45], [564, 1067, 45, 45], [565, 1112, 45, 45], [566, 1157, 45, 45], [567, 1202, 45, 45], [568, 1247, 45, 45], [569, 1292, 45, 45], [570, 1337, 45, 45], [571, 1382, 45, 45], [572, 1427, 45, 45], [573, 1472, 45, 45], [574, 1517, 45, 45], [575, 1562, 45, 45], [576, 1607, 45, 45], [577, 1652, 45, 45], [578, 1697, 45, 45], [579, 1742, 45, 45], [580, 1787, 45, 45], [581, 1832, 45, 45], [582, 1877, 45, 45], [583, 1922, 45, 45], [584, 1967, 45, 45], [585, 0, 45, 31], [585, 2012, 1440, 1], [586, 31, 45, 45], [587, 76, 45, 45], [588, 121, 45, 45], [589, 166, 45, 45], [590, 211, 45, 45], [591, 256, 45, 45], [592, 301, 45, 45], [593, 346, 45, 45], [594, 391, 45, 45], [595, 436, 45, 45], [596, 481, 45, 45], [597, 526, 45, 45], [598, 571, 45, 45], [599, 616, 45, 45], [600, 661, 45, 45], [601, 706, 45, 45], [602, 751, 45, 45], [603, 796, 45, 45], [604, 841, 45, 45], [605, 886, 45, 45], [606, 931, 45, 45], [607, 976, 45, 45], [608, 1021, 45, 45], [609, 1066, 45, 45], [610, 1111, 45, 45], [611, 1156, 45, 45], [612, 1201, 45, 45], [613, 1246, 45, 45], [614, 1291, 45, 45], [615, 1336, 45, 45], [616, 1381, 45, 45], [617, 1426, 45, 45], [618, 1471, 45, 45], [619, 1516, 45, 45], [620, 1561, 45, 45], [621, 1606, 45, 45], [622, 1651, 45, 45], [623, 1696, 45, 45], [624, 1741, 45, 45], [625, 1786, 45, 45], [626, 1831, 45, 45], [627, 1876, 45, 45], [628, 1921, 45, 45], [629, 1966, 45, 45], [630, 0, 45, 30], [630, 2011, 1395, 1], [631, 30, 45, 45], [632, 75, 45, 45], [633, 120, 45, 45], [634, 165, 45, 45], [635, 210, 45, 45], [636, 255, 45, 45], [637, 300, 45, 45], [638, 345, 45, 45], [639, 390, 45, 45], [640, 435, 45, 45], [641, 480, 45, 45], [642, 525, 45, 45], [643, 570, 45, 45], [644, 615, 45, 45], [645, 660, 45, 45], [646, 705, 45, 45], [647, 750, 45, 45], [648, 795, 45, 45], [649, 840, 45, 45], [650, 885, 45, 45], [651, 930, 45, 45], [652, 975, 45, 45], [653, 1020, 45, 45], [654, 1065, 45, 45], [655, 1110, 45, 45], [656, 1155, 45, 45], [657, 1200, 45, 45], [658, 1245, 45, 45], [659, 1290, 45, 45], [660, 1335, 45, 45], [661, 1380, 45, 45], [662, 1425, 45, 45], [663, 1470, 45, 45], [664, 1515, 45, 45], [665, 1560, 45, 45], [666, 1605, 45, 45], [667, 1650, 45, 45], [668, 1695, 45, 45], [669, 1740, 45, 45], [670, 1785, 45, 45], [671, 1830, 45, 45], [672, 1875, 45, 45], [673, 1920, 45, 45], [674, 1965, 45, 45], [675, 0, 45, 29], [675, 2010, 1350, 1], [676, 29, 45, 45], [677, 74, 45, 45], [678, 119, 45, 45], [679, 164, 45, 45], [680, 209, 45, 45], [681, 254, 45, 45], [682, 299, 45, 45], [683, 344, 45, 45], [684, 389, 45, 45], [685, 434, 45, 45], [686, 479, 45, 45], [687, 524, 45, 45], [688, 569, 45, 45], [689, 614, 45, 45], [690, 659, 45, 45], [691, 704, 45, 45], [692, 749, 45, 45], [693, 794, 45, 45], [694, 839, 45, 45], [695, 884, 45, 45], [696, 929, 45, 45], [697, 974, 45, 45], [698, 1019, 45, 45], [699, 1064, 45, 45], [700, 1109, 45, 45], [701, 1154, 45, 45], [702, 1199, 45, 45], [703, 1244, 45, 45], [704, 1289, 45, 45], [705, 1334, 45, 45], [706, 1379, 45, 45], [707, 1424, 45, 45], [708, 1469, 45, 45], [709, 1514, 45, 45], [710, 1559, 45, 45], [711, 1604, 45, 45], [712, 1649, 45, 45], [713, 1694, 45, 45], [714, 1739, 45, 45], [715, 1784, 45, 45], [716, 1829, 45, 45], [717, 1874, 45, 45], [718, 1919, 45, 45], [719, 1964, 45, 45], [720, 0, 45, 28], [720, 2009, 1305, 1], [721, 28, 45, 45], [722, 73, 45, 45], [723, 118, 45, 45], [724, 163, 45, 45], [725, 208, 45, 45], [726, 253, 45, 45], [727, 298, 45, 45], [728, 343, 45, 45], [729, 388, 45, 45], [730, 433, 45, 45], [731, 478, 45, 45], [732, 523, 45, 45], [733, 568, 45, 45], [734, 613, 45, 45], [735, 658, 45, 45], [736, 703, 45, 45], [737, 748, 45, 45], [738, 793, 45, 45], [739, 838, 45, 45], [740, 883, 45, 45], [741, 928, 45, 45], [742, 973, 45, 45], [743, 1018, 45, 45], [744, 1063, 45, 45], [745, 1108, 45, 45], [746, 1153, 45, 45], [747, 1198, 45, 45], [748, 1243, 45, 45], [749, 1288, 45, 45], [750, 1333, 45, 45], [751, 1378, 45, 45], [752, 1423, 45, 45], [753, 1468, 45, 45], [754, 1513, 45, 45], [755, 1558, 45, 45], [756, 1603, 45, 45], [757, 1648, 45, 45], [758, 1693, 45, 45], [759, 1738, 45, 45], [760, 1783, 45, 45], [761, 1828, 45, 45], [762, 1873, 45, 45], [763, 1918, 45, 45], [764, 1963, 45, 45], [765, 0, 45, 27], [765, 2008, 1260, 1], [766, 27, 45, 45], [767, 72, 45, 45], [768, 117, 45, 45], [769, 162, 45, 45], [770, 207, 45, 45], [771, 252, 45, 45], [772, 297, 45, 45], [773, 342, 45, 45], [774, 387, 45, 45], [775, 432, 45, 45], [776, 477, 45, 45], [777, 522, 45, 45], [778, 567, 45, 45], [779, 612, 45, 45], [780, 657, 45, 45], [781, 702, 45, 45], [782, 747, 45, 45], [783, 792, 45, 45], [784, 837, 45, 45], [785, 882, 45, 45], [786, 927, 45, 45], [787, 972, 45, 45], [788, 1017, 45, 45], [789, 1062, 45, 45], [790, 1107, 45, 45], [791, 1152, 45, 45], [792, 1197, 45, 45], [793, 1242, 45, 45], [794, 1287, 45, 45], [795, 1332, 45, 45], [796, 1377, 45, 45], [797, 1422, 45, 45], [798, 1467, 45, 45], [799, 1512, 45, 45], [800, 1557, 45, 45], [801, 1602, 45, 45], [802, 1647, 45, 45], [803, 1692, 45, 45], [804, 1737, 45, 45], [805, 1782, 45, 45], [806, 1827, 45, 45], [807, 1872, 45, 45], [808, 1917, 45, 45], [809, 1962, 45, 45], [810, 0, 45, 26], [810, 2007, 1215, 1], [811, 26, 45, 45], [812, 71, 45, 45], [813, 116, 45, 45], [814, 161, 45, 45], [815, 206, 45, 45], [816, 251, 45, 45], [817, 296, 45, 45], [818, 341, 45, 45], [819, 386, 45, 45], [820, 431, 45, 45], [821, 476, 45, 45], [822, 521, 45, 45], [823, 566, 45, 45], [824, 611, 45, 45], [825, 656, 45, 45], [826, 701, 45, 45], [827, 746, 45, 45], [828, 791, 45, 45], [829, 836, 45, 45], [830, 881, 45, 45], [831, 926, 45, 45], [832, 971, 45, 45], [833, 1016, 45, 45], [834, 1061, 45, 45], [835, 1106, 45, 45], [836, 1151, 45, 45], [837, 1196, 45, 45], [838, 1241, 45, 45], [839, 1286, 45, 45], [840, 1331, 45, 45], [841, 1376, 45, 45], [842, 1421, 45, 45], [843, 1466, 45, 45], [844, 1511, 45, 45], [845, 1556, 45, 45], [846, 1601, 45, 45], [847, 1646, 45, 45], [848, 1691, 45, 45], [849, 1736, 45, 45], [850, 1781, 45, 45], [851, 1826, 45, 45], [852, 1871, 45, 45], [853, 1916, 45, 45], [854, 1961, 45, 45], [855, 0, 45, 25], [855, 2006, 1170, 1], [856, 25, 45, 45], [857, 70, 45, 45], [858, 115, 45, 45], [859, 160, 45, 45], [860, 205, 45, 45], [861, 250, 45, 45], [862, 295, 45, 45], [863, 340, 45, 45], [864, 385, 45, 45], [865, 430, 45, 45], [866, 475, 45, 45], [867, 520, 45, 45], [868, 565, 45, 45], [869, 610, 45, 45], [870, 655, 45, 45], [871, 700, 45, 45], [872, 745, 45, 45], [873, 790, 45, 45], [874, 835, 45, 45], [875, 880, 45, 45], [876, 925, 45, 45], [877, 970, 45, 45], [878, 1015, 45, 45], [879, 1060, 45, 45], [880, 1105, 45, 45], [881, 1150, 45, 45], [882, 1195, 45, 45], [883, 1240, 45, 45], [884, 1285, 45, 45], [885, 1330, 45, 45], [886, 1375, 45, 45], [887, 1420, 45, 45], [888, 1465, 45, 45], [889, 1510, 45, 45], [890, 1555, 45, 45], [891, 1600, 45, 45], [892, 1645, 45, 45], [893, 1690, 45, 45], [894, 1735, 45, 45], [895, 1780, 45, 45], [896, 1825, 45, 45], [897, 1870, 45, 45], [898, 1915, 45, 45], [899, 1960, 45, 45], [900, 0, 45, 24], [900, 2005, 1125, 1], [901, 24, 45, 45], [902, 69, 45, 45], [903, 114, 45, 45], [904, 159, 45, 45], [905, 204, 45, 45], [906, 249, 45, 45], [907, 294, 45, 45], [908, 339, 45, 45], [909, 384, 45, 45], [910, 429, 45, 45], [911, 474, 45, 45], [912, 519, 45, 45], [913, 564, 45, 45], [914, 609, 45, 45], [915, 654, 45, 45], [916, 699, 45, 45], [917, 744, 45, 45], [918, 789, 45, 45], [919, 834, 45, 45], [920, 879, 45, 45], [921, 924, 45, 45], [922, 969, 45, 45], [923, 1014, 45, 45], [924, 1059, 45, 45], [925, 1104, 45, 45], [926, 1149, 45, 45], [927, 1194, 45, 45], [928, 1239, 45, 45], [929, 1284, 45, 45], [930, 1329, 45, 45], [931, 1374, 45, 45], [932, 1419, 45, 45], [933, 1464, 45, 45], [934, 1509, 45, 45], [935, 1554, 45, 45], [936, 1599, 45, 45], [937, 1644, 45, 45], [938, 1689, 45, 45], [939, 1734, 45, 45], [940, 1779, 45, 45], [941, 1824, 45, 45], [942, 1869, 45, 45], [943, 1914, 45, 45], [944, 1959, 45, 45], [945, 0, 45, 23], [945, 2004, 1080, 1], [946, 23, 45, 45], [947, 68, 45, 45], [948, 113, 45, 45], [949, 158, 45, 45], [950, 203, 45, 45], [951, 248, 45, 45], [952, 293, 45, 45], [953, 338, 45, 45], [954, 383, 45, 45], [955, 428, 45, 45], [956, 473, 45, 45], [957, 518, 45, 45], [958, 563, 45, 45], [959, 608, 45, 45], [960, 653, 45, 45], [961, 698, 45, 45], [962, 743, 45, 45], [963, 788, 45, 45], [964, 833, 45, 45], [965, 878, 45, 45], [966, 923, 45, 45], [967, 968, 45, 45], [968, 1013, 45, 45], [969, 1058, 45, 45], [970, 1103, 45, 45], [971, 1148, 45, 45], [972, 1193, 45, 45], [973, 1238, 45, 45], [974, 1283, 45, 45], [975, 1328, 45, 45], [976, 1373, 45, 45], [977, 1418, 45, 45], [978, 1463, 45, 45], [979, 1508, 45, 45], [980, 1553, 45, 45], [981, 1598, 45, 45], [982, 1643, 45, 45], [983, 1688, 45, 45], [984, 1733, 45, 45], [985, 1778, 45, 45], [986, 1823, 45, 45], [987, 1868, 45, 45], [988, 1913, 45, 45], [989, 1958, 45, 45], [990, 0, 45, 22], [990, 2003, 1035, 1], [991, 22, 45, 45], [992, 67, 45, 45], [993, 112, 45, 45], [994, 157, 45, 45], [995, 202, 45, 45], [996, 247, 45, 45], [997, 292, 45, 45], [998, 337, 45, 45], [999, 382, 45, 45], [1000, 427, 45, 45], [1001, 472, 45, 45], [1002, 517, 45, 45], [1003, 562, 45, 45], [1004, 607, 45, 45], [1005, 652, 45, 45], [1006, 697, 45, 45], [1007, 742, 45, 45], [1008, 787, 45, 45], [1009, 832, 45, 45], [1010, 877, 45, 45], [1011, 922, 45, 45], [1012, 967, 45, 45], [1013, 1012, 45, 45], [1014, 1057, 45, 45], [1015, 1102, 45, 45], [1016, 1147, 45, 45], [1017, 1192, 45, 45], [1018, 1237, 45, 45], [1019, 1282, 45, 45], [1020, 1327, 45, 45], [1021, 1372, 45, 45], [1022, 1417, 45, 45], [1023, 1462, 45, 45], [1024, 1507, 45, 45], [1025, 1552, 45, 45], [1026, 1597, 45, 45], [1027, 1642, 45, 45], [1028, 1687, 45, 45], [1029, 1732, 45, 45], [1030, 1777, 45, 45], [1031, 1822, 45, 45], [1032, 1867, 45, 45], [1033, 1912, 45, 45], [1034, 1957, 45, 45], [1035, 0, 45, 21], [1035, 2002, 990, 1], [1036, 21, 45, 45], [1037, 66, 45, 45], [1038, 111, 45, 45], [1039, 156, 45, 45], [1040, 201, 45, 45], [1041, 246, 45, 45], [1042, 291, 45, 45], [1043, 336, 45, 45], [1044, 381, 45, 45], [1045, 426, 45, 45], [1046, 471, 45, 45], [1047, 516, 45, 45], [1048, 561, 45, 45], [1049, 606, 45, 45], [1050, 651, 45, 45], [1051, 696, 45, 45], [1052, 741, 45, 45], [1053, 786, 45, 45], [1054, 831, 45, 45], [1055, 876, 45, 45], [1056, 921, 45, 45], [1057, 966, 45, 45], [1058, 1011, 45, 45], [1059, 1056, 45, 45], [1060, 1101, 45, 45], [1061, 1146, 45, 45], [1062, 1191, 45, 45], [1063, 1236, 45, 45], [1064, 1281, 45, 45], [1065, 1326, 45, 45], [1066, 1371, 45, 45], [1067, 1416, 45, 45], [1068, 1461, 45, 45], [1069, 1506, 45, 45], [1070, 1551, 45, 45], [1071, 1596, 45, 45], [1072, 1641, 45, 45], [1073, 1686, 45, 45], [1074, 1731, 45, 45], [1075, 1776, 45, 45], [1076, 1821, 45, 45], [1077, 1866, 45, 45], [1078, 1911, 45, 45], [1079, 1956, 45, 45], [1080, 0, 45, 20], [1080, 2001, 945, 1], [1081, 20, 45, 45], [1082, 65, 45, 45], [1083, 110, 45, 45], [1084, 155, 45, 45], [1085, 200, 45, 45], [1086, 245, 45, 45], [1087, 290, 45, 45], [1088, 335, 45, 45], [1089, 380, 45, 45], [1090, 425, 45, 45], [1091, 470, 45, 45], [1092, 515, 45, 45], [1093, 560, 45, 45], [1094, 605, 45, 45], [1095, 650, 45, 45], [1096, 695, 45, 45], [1097, 740, 45, 45], [1098, 785, 45, 45], [1099, 830, 45, 45], [1100, 875, 45, 45], [1101, 920, 45, 45], [1102, 965, 45, 45], [1103, 1010, 45, 45], [1104, 1055, 45, 45], [1105, 1100, 45, 45], [1106, 1145, 45, 45], [1107, 1190, 45, 45], [1108, 1235, 45, 45], [1109, 1280, 45, 45], [1110, 1325, 45, 45], [1111, 1370, 45, 45], [1112, 1415, 45, 45], [1113, 1460, 45, 45], [1114, 1505, 45, 45], [1115, 1550, 45, 45], [1116, 1595, 45, 45], [1117, 1640, 45, 45], [1118, 1685, 45, 45], [1119, 1730, 45, 45], [1120, 1775, 45, 45], [1121, 1820, 45, 45], [1122, 1865, 45, 45], [1123, 1910, 45, 45], [1124, 1955, 45, 45], [1125, 0, 45, 19], [1125, 2000, 900, 1], [1126, 19, 45, 45], [1127, 64, 45, 45], [1128, 109, 45, 45], [1129, 154, 45, 45], [1130, 199, 45, 45], [1131, 244, 45, 45], [1132, 289, 45, 45], [1133, 334, 45, 45], [1134, 379, 45, 45], [1135, 424, 45, 45], [1136, 469, 45, 45], [1137, 514, 45, 45], [1138, 559, 45, 45], [1139, 604, 45, 45], [1140, 649, 45, 45], [1141, 694, 45, 45], [1142, 739, 45, 45], [1143, 784, 45, 45], [1144, 829, 45, 45], [1145, 874, 45, 45], [1146, 919, 45, 45], [1147, 964, 45, 45], [1148, 1009, 45, 45], [1149, 1054, 45, 45], [1150, 1099, 45, 45], [1151, 1144, 45, 45], [1152, 1189, 45, 45], [1153, 1234, 45, 45], [1154, 1279, 45, 45], [1155, 1324, 45, 45], [1156, 1369, 45, 45], [1157, 1414, 45, 45], [1158, 1459, 45, 45], [1159, 1504, 45, 45], [1160, 1549, 45, 45], [1161, 1594, 45, 45], [1162, 1639, 45, 45], [1163, 1684, 45, 45], [1164, 1729, 45, 45], [1165, 1774, 45, 45], [1166, 1819, 45, 45], [1167, 1864, 45, 45], [1168, 1909, 45, 45], [1169, 1954, 45, 45], [1170, 0, 45, 18], [1170, 1999, 855, 1], [1171, 18, 45, 45], [1172, 63, 45, 45], [1173, 108, 45, 45], [1174, 153, 45, 45], [1175, 198, 45, 45], [1176, 243, 45, 45], [1177, 288, 45, 45], [1178, 333, 45, 45], [1179, 378, 45, 45], [1180, 423, 45, 45], [1181, 468, 45, 45], [1182, 513, 45, 45], [1183, 558, 45, 45], [1184, 603, 45, 45], [1185, 648, 45, 45], [1186, 693, 45, 45], [1187, 738, 45, 45], [1188, 783, 45, 45], [1189, 828, 45, 45], [1190, 873, 45, 45], [1191, 918, 45, 45], [1192, 963, 45, 45], [1193, 1008, 45, 45], [1194, 1053, 45, 45], [1195, 1098, 45, 45], [1196, 1143, 45, 45], [1197, 1188, 45, 45], [1198, 1233, 45, 45], [1199, 1278, 45, 45], [1200, 1323, 45, 45], [1201, 1368, 45, 45], [1202, 1413, 45, 45], [1203, 1458, 45, 45], [1204, 1503, 45, 45], [1205, 1548, 45, 45], [1206, 1593, 45, 45], [1207, 1638, 45, 45], [1208, 1683, 45, 45], [1209, 1728, 45, 45], [1210, 1773, 45, 45], [1211, 1818, 45, 45], [1212, 1863, 45, 45], [1213, 1908, 45, 45], [1214, 1953, 45, 45], [1215, 0, 45, 17], [1215, 1998, 810, 1], [1216, 17, 45, 45], [1217, 62, 45, 45], [1218, 107, 45, 45], [1219, 152, 45, 45], [1220, 197, 45, 45], [1221, 242, 45, 45], [1222, 287, 45, 45], [1223, 332, 45, 45], [1224, 377, 45, 45], [1225, 422, 45, 45], [1226, 467, 45, 45], [1227, 512, 45, 45], [1228, 557, 45, 45], [1229, 602, 45, 45], [1230, 647, 45, 45], [1231, 692, 45, 45], [1232, 737, 45, 45], [1233, 782, 45, 45], [1234, 827, 45, 45], [1235, 872, 45, 45], [1236, 917, 45, 45], [1237, 962, 45, 45], [1238, 1007, 45, 45], [1239, 1052, 45, 45], [1240, 1097, 45, 45], [1241, 1142, 45, 45], [1242, 1187, 45, 45], [1243, 1232, 45, 45], [1244, 1277, 45, 45], [1245, 1322, 45, 45], [1246, 1367, 45, 45], [1247, 1412, 45, 45], [1248, 1457, 45, 45], [1249, 1502, 45, 45], [1250, 1547, 45, 45], [1251, 1592, 45, 45], [1252, 1637, 45, 45], [1253, 1682, 45, 45], [1254, 1727, 45, 45], [1255, 1772, 45, 45], [1256, 1817, 45, 45], [1257, 1862, 45, 45], [1258, 1907, 45, 45], [1259, 1952, 45, 45], [1260, 0, 45, 16], [1260, 1997, 765, 1], [1261, 16, 45, 45], [1262, 61, 45, 45], [1263, 106, 45, 45], [1264, 151, 45, 45], [1265, 196, 45, 45], [1266, 241, 45, 45], [1267, 286, 45, 45], [1268, 331, 45, 45], [1269, 376, 45, 45], [1270, 421, 45, 45], [1271, 466, 45, 45], [1272, 511, 45, 45], [1273, 556, 45, 45], [1274, 601, 45, 45], [1275, 646, 45, 45], [1276, 691, 45, 45], [1277, 736, 45, 45], [1278, 781, 45, 45], [1279, 826, 45, 45], [1280, 871, 45, 45], [1281, 916, 45, 45], [1282, 961, 45, 45], [1283, 1006, 45, 45], [1284, 1051, 45, 45], [1285, 1096, 45, 45], [1286, 1141, 45, 45], [1287, 1186, 45, 45], [1288, 1231, 45, 45], [1289, 1276, 45, 45], [1290, 1321, 45, 45], [1291, 1366, 45, 45], [1292, 1411, 45, 45], [1293, 1456, 45, 45], [1294, 1501, 45, 45], [1295, 1546, 45, 45], [1296, 1591, 45, 45], [1297, 1636, 45, 45], [1298, 1681, 45, 45], [1299, 1726, 45, 45], [1300, 1771, 45, 45], [1301, 1816, 45, 45], [1302, 1861, 45, 45], [1303, 1906, 45, 45], [1304, 1951, 45, 45], [1305, 0, 45, 15], [1305, 1996, 720, 1], [1306, 15, 45, 45], [1307, 60, 45, 45], [1308, 105, 45, 45], [1309, 150, 45, 45], [1310, 195, 45, 45], [1311, 240, 45, 45], [1312, 285, 45, 45], [1313, 330, 45, 45], [1314, 375, 45, 45], [1315, 420, 45, 45], [1316, 465, 45, 45], [1317, 510, 45, 45], [1318, 555, 45, 45], [1319, 600, 45, 45], [1320, 645, 45, 45], [1321, 690, 45, 45], [1322, 735, 45, 45], [1323, 780, 45, 45], [1324, 825, 45, 45], [1325, 870, 45, 45], [1326, 915, 45, 45], [1327, 960, 45, 45], [1328, 1005, 45, 45], [1329, 1050, 45, 45], [1330, 1095, 45, 45], [1331, 1140, 45, 45], [1332, 1185, 45, 45], [1333, 1230, 45, 45], [1334, 1275, 45, 45], [1335, 1320, 45, 45], [1336, 1365, 45, 45], [1337, 1410, 45, 45], [1338, 1455, 45, 45], [1339, 1500, 45, 45], [1340, 1545, 45, 45], [1341, 1590, 45, 45], [1342, 1635, 45, 45], [1343, 1680, 45, 45], [1344, 1725, 45, 45], [1345, 1770, 45, 45], [1346, 1815, 45, 45], [1347, 1860, 45, 45], [1348, 1905, 45, 45], [1349, 1950, 45, 45], [1350, 0, 45, 14], [1350, 1995, 675, 1], [1351, 14, 45, 45], [1352, 59, 45, 45], [1353, 104, 45, 45], [1354, 149, 45, 45], [1355, 194, 45, 45], [1356, 239, 45, 45], [1357, 284, 45, 45], [1358, 329, 45, 45], [1359, 374, 45, 45], [1360, 419, 45, 45], [1361, 464, 45, 45], [1362, 509, 45, 45], [1363, 554, 45, 45], [1364, 599, 45, 45], [1365, 644, 45, 45], [1366, 689, 45, 45], [1367, 734, 45, 45], [1368, 779, 45, 45], [1369, 824, 45, 45], [1370, 869, 45, 45], [1371, 914, 45, 45], [1372, 959, 45, 45], [1373, 1004, 45, 45], [1374, 1049, 45, 45], [1375, 1094, 45, 45], [1376, 1139, 45, 45], [1377, 1184, 45, 45], [1378, 1229, 45, 45], [1379, 1274, 45, 45], [1380, 1319, 45, 45], [1381, 1364, 45, 45], [1382, 1409, 45, 45], [1383, 1454, 45, 45], [1384, 1499, 45, 45], [1385, 1544, 45, 45], [1386, 1589, 45, 45], [1387, 1634, 45, 45], [1388, 1679, 45, 45], [1389, 1724, 45, 45], [1390, 1769, 45, 45], [1391, 1814, 45, 45], [1392, 1859, 45, 45], [1393, 1904, 45, 45], [1394, 1949, 45, 45], [1395, 0, 45, 13], [1395, 1994, 630, 1], [1396, 13, 45, 45], [1397, 58, 45, 45], [1398, 103, 45, 45], [1399, 148, 45, 45], [1400, 193, 45, 45], [1401, 238, 45, 45], [1402, 283, 45, 45], [1403, 328, 45, 45], [1404, 373, 45, 45], [1405, 418, 45, 45], [1406, 463, 45, 45], [1407, 508, 45, 45], [1408, 553, 45, 45], [1409, 598, 45, 45], [1410, 643, 45, 45], [1411, 688, 45, 45], [1412, 733, 45, 45], [1413, 778, 45, 45], [1414, 823, 45, 45], [1415, 868, 45, 45], [1416, 913, 45, 45], [1417, 958, 45, 45], [1418, 1003, 45, 45], [1419, 1048, 45, 45], [1420, 1093, 45, 45], [1421, 1138, 45, 45], [1422, 1183, 45, 45], [1423, 1228, 45, 45], [1424, 1273, 45, 45], [1425, 1318, 45, 45], [1426, 1363, 45, 45], [1427, 1408, 45, 45], [1428, 1453, 45, 45], [1429, 1498, 45, 45], [1430, 1543, 45, 45], [1431, 1588, 45, 45], [1432, 1633, 45, 45], [1433, 1678, 45, 45], [1434, 1723, 45, 45], [1435, 1768, 45, 45], [1436, 1813, 45, 45], [1437, 1858, 45, 45], [1438, 1903, 45, 45], [1439, 1948, 45, 45], [1440, 0, 45, 12], [1440, 1993, 585, 1], [1441, 12, 45, 45], [1442, 57, 45, 45], [1443, 102, 45, 45], [1444, 147, 45, 45], [1445, 192, 45, 45], [1446, 237, 45, 45], [1447, 282, 45, 45], [1448, 327, 45, 45], [1449, 372, 45, 45], [1450, 417, 45, 45], [1451, 462, 45, 45], [1452, 507, 45, 45], [1453, 552, 45, 45], [1454, 597, 45, 45], [1455, 642, 45, 45], [1456, 687, 45, 45], [1457, 732, 45, 45], [1458, 777, 45, 45], [1459, 822, 45, 45], [1460, 867, 45, 45], [1461, 912, 45, 45], [1462, 957, 45, 45], [1463, 1002, 45, 45], [1464, 1047, 45, 45], [1465, 1092, 45, 45], [1466, 1137, 45, 45], [1467, 1182, 45, 45], [1468, 1227, 45, 45], [1469, 1272, 45, 45], [1470, 1317, 45, 45], [1471, 1362, 45, 45], [1472, 1407, 45, 45], [1473, 1452, 45, 45], [1474, 1497, 45, 45], [1475, 1542, 45, 45], [1476, 1587, 45, 45], [1477, 1632, 45, 45], [1478, 1677, 45, 45], [1479, 1722, 45, 45], [1480, 1767, 45, 45], [1481, 1812, 45, 45], [1482, 1857, 45, 45], [1483, 1902, 45, 45], [1484, 1947, 45, 45], [1485, 0, 45, 11], [1485, 1992, 540, 1], [1486, 11, 45, 45], [1487, 56, 45, 45], [1488, 101, 45, 45], [1489, 146, 45, 45], [1490, 191, 45, 45], [1491, 236, 45, 45], [1492, 281, 45, 45], [1493, 326, 45, 45], [1494, 371, 45, 45], [1495, 416, 45, 45], [1496, 461, 45, 45], [1497, 506, 45, 45], [1498, 551, 45, 45], [1499, 596, 45, 45], [1500, 641, 45, 45], [1501, 686, 45, 45], [1502, 731, 45, 45], [1503, 776, 45, 45], [1504, 821, 45, 45], [1505, 866, 45, 45], [1506, 911, 45, 45], [1507, 956, 45, 45], [1508, 1001, 45, 45], [1509, 1046, 45, 45], [1510, 1091, 45, 45], [1511, 1136, 45, 45], [1512, 1181, 45, 45], [1513, 1226, 45, 45], [1514, 1271, 45, 45], [1515, 1316, 45, 45], [1516, 1361, 45, 45], [1517, 1406, 45, 45], [1518, 1451, 45, 45], [1519, 1496, 45, 45], [1520, 1541, 45, 45], [1521, 1586, 45, 45], [1522, 1631, 45, 45], [1523, 1676, 45, 45], [1524, 1721, 45, 45], [1525, 1766, 45, 45], [1526, 1811, 45, 45], [1527, 1856, 45, 45], [1528, 1901, 45, 45], [1529, 1946, 45, 45], [1530, 0, 45, 10], [1530, 1991, 495, 1], [1531, 10, 45, 45], [1532, 55, 45, 45], [1533, 100, 45, 45], [1534, 145, 45, 45], [1535, 190, 45, 45], [1536, 235, 45, 45], [1537, 280, 45, 45], [1538, 325, 45, 45], [1539, 370, 45, 45], [1540, 415, 45, 45], [1541, 460, 45, 45], [1542, 505, 45, 45], [1543, 550, 45, 45], [1544, 595, 45, 45], [1545, 640, 45, 45], [1546, 685, 45, 45], [1547, 730, 45, 45], [1548, 775, 45, 45], [1549, 820, 45, 45], [1550, 865, 45, 45], [1551, 910, 45, 45], [1552, 955, 45, 45], [1553, 1000, 45, 45], [1554, 1045, 45, 45], [1555, 1090, 45, 45], [1556, 1135, 45, 45], [1557, 1180, 45, 45], [1558, 1225, 45, 45], [1559, 1270, 45, 45], [1560, 1315, 45, 45], [1561, 1360, 45, 45], [1562, 1405, 45, 45], [1563, 1450, 45, 45], [1564, 1495, 45, 45], [1565, 1540, 45, 45], [1566, 1585, 45, 45], [1567, 1630, 45, 45], [1568, 1675, 45, 45], [1569, 1720, 45, 45], [1570, 1765, 45, 45], [1571, 1810, 45, 45], [1572, 1855, 45, 45], [1573, 1900, 45, 45], [1574, 1945, 45, 45], [1575, 0, 45, 9], [1575, 1990, 450, 1], [1576, 9, 45, 45], [1577, 54, 45, 45], [1578, 99, 45, 45], [1579, 144, 45, 45], [1580, 189, 45, 45], [1581, 234, 45, 45], [1582, 279, 45, 45], [1583, 324, 45, 45], [1584, 369, 45, 45], [1585, 414, 45, 45], [1586, 459, 45, 45], [1587, 504, 45, 45], [1588, 549, 45, 45], [1589, 594, 45, 45], [1590, 639, 45, 45], [1591, 684, 45, 45], [1592, 729, 45, 45], [1593, 774, 45, 45], [1594, 819, 45, 45], [1595, 864, 45, 45], [1596, 909, 45, 45], [1597, 954, 45, 45], [1598, 999, 45, 45], [1599, 1044, 45, 45], [1600, 1089, 45, 45], [1601, 1134, 45, 45], [1602, 1179, 45, 45], [1603, 1224, 45, 45], [1604, 1269, 45, 45], [1605, 1314, 45, 45], [1606, 1359, 45, 45], [1607, 1404, 45, 45], [1608, 1449, 45, 45], [1609, 1494, 45, 45], [1610, 1539, 45, 45], [1611, 1584, 45, 45], [1612, 1629, 45, 45], [1613, 1674, 45, 45], [1614, 1719, 45, 45], [1615, 1764, 45, 45], [1616, 1809, 45, 45], [1617, 1854, 45, 45], [1618, 1899, 45, 45], [1619, 1944, 45, 45], [1620, 0, 45, 8], [1620, 1989, 405, 1], [1621, 8, 45, 45], [1622, 53, 45, 45], [1623, 98, 45, 45], [1624, 143, 45, 45], [1625, 188, 45, 45], [1626, 233, 45, 45], [1627, 278, 45, 45], [1628, 323, 45, 45], [1629, 368, 45, 45], [1630, 413, 45, 45], [1631, 458, 45, 45], [1632, 503, 45, 45], [1633, 548, 45, 45], [1634, 593, 45, 45], [1635, 638, 45, 45], [1636, 683, 45, 45], [1637, 728, 45, 45], [1638, 773, 45, 45], [1639, 818, 45, 45], [1640, 863, 45, 45], [1641, 908, 45, 45], [1642, 953, 45, 45], [1643, 998, 45, 45], [1644, 1043, 45, 45], [1645, 1088, 45, 45], [1646, 1133, 45, 45], [1647, 1178, 45, 45], [1648, 1223, 45, 45], [1649, 1268, 45, 45], [1650, 1313, 45, 45], [1651, 1358, 45, 45], [1652, 1403, 45, 45], [1653, 1448, 45, 45], [1654, 1493, 45, 45], [1655, 1538, 45, 45], [1656, 1583, 45, 45], [1657, 1628, 45, 45], [1658, 1673, 45, 45], [1659, 1718, 45, 45], [1660, 1763, 45, 45], [1661, 1808, 45, 45], [1662, 1853, 45, 45], [1663, 1898, 45, 45], [1664, 1943, 45, 45], [1665, 0, 45, 7], [1665, 1988, 360, 1], [1666, 7, 45, 45], [1667, 52, 45, 45], [1668, 97, 45, 45], [1669, 142, 45, 45], [1670, 187, 45, 45], [1671, 232, 45, 45], [1672, 277, 45, 45], [1673, 322, 45, 45], [1674, 367, 45, 45], [1675, 412, 45, 45], [1676, 457, 45, 45], [1677, 502, 45, 45], [1678, 547, 45, 45], [1679, 592, 45, 45], [1680, 637, 45, 45], [1681, 682, 45, 45], [1682, 727, 45, 45], [1683, 772, 45, 45], [1684, 817, 45, 45], [1685, 862, 45, 45], [1686, 907, 45, 45], [1687, 952, 45, 45], [1688, 997, 45, 45], [1689, 1042, 45, 45], [1690, 1087, 45, 45], [1691, 1132, 45, 45], [1692, 1177, 45, 45], [1693, 1222, 45, 45], [1694, 1267, 45, 45], [1695, 1312, 45, 45], [1696, 1357, 45, 45], [1697, 1402, 45, 45], [1698, 1447, 45, 45], [1699, 1492, 45, 45], [1700, 1537, 45, 45], [1701, 1582, 45, 45], [1702, 1627, 45, 45], [1703, 1672, 45, 45], [1704, 1717, 45, 45], [1705, 1762, 45, 45], [1706, 1807, 45, 45], [1707, 1852, 45, 45], [1708, 1897, 45, 45], [1709, 1942, 45, 45], [1710, 0, 45, 6], [1710, 1987, 315, 1], [1711, 6, 45, 45], [1712, 51, 45, 45], [1713, 96, 45, 45], [1714, 141, 45, 45], [1715, 186, 45, 45], [1716, 231, 45, 45], [1717, 276, 45, 45], [1718, 321, 45, 45], [1719, 366, 45, 45], [1720, 411, 45, 45], [1721, 456, 45, 45], [1722, 501, 45, 45], [1723, 546, 45, 45], [1724, 591, 45, 45], [1725, 636, 45, 45], [1726, 681, 45, 45], [1727, 726, 45, 45], [1728, 771, 45, 45], [1729, 816, 45, 45], [1730, 861, 45, 45], [1731, 906, 45, 45], [1732, 951, 45, 45], [1733, 996, 45, 45], [1734, 1041, 45, 45], [1735, 1086, 45, 45], [1736, 1131, 45, 45], [1737, 1176, 45, 45], [1738, 1221, 45, 45], [1739, 1266, 45, 45], [1740, 1311, 45, 45], [1741, 1356, 45, 45], [1742, 1401, 45, 45], [1743, 1446, 45, 45], [1744, 1491, 45, 45], [1745, 1536, 45, 45], [1746, 1581, 45, 45], [1747, 1626, 45, 45], [1748, 1671, 45, 45], [1749, 1716, 45, 45], [1750, 1761, 45, 45], [1751, 1806, 45, 45], [1752, 1851, 45, 45], [1753, 1896, 45, 45], [1754, 1941, 45, 45], [1755, 0, 45, 5], [1755, 1986, 270, 1], [1756, 5, 45, 45], [1757, 50, 45, 45], [1758, 95, 45, 45], [1759, 140, 45, 45], [1760, 185, 45, 45], [1761, 230, 45, 45], [1762, 275, 45, 45], [1763, 320, 45, 45], [1764, 365, 45, 45], [1765, 410, 45, 45], [1766, 455, 45, 45], [1767, 500, 45, 45], [1768, 545, 45, 45], [1769, 590, 45, 45], [1770, 635, 45, 45], [1771, 680, 45, 45], [1772, 725, 45, 45], [1773, 770, 45, 45], [1774, 815, 45, 45], [1775, 860, 45, 45], [1776, 905, 45, 45], [1777, 950, 45, 45], [1778, 995, 45, 45], [1779, 1040, 45, 45], [1780, 1085, 45, 45], [1781, 1130, 45, 45], [1782, 1175, 45, 45], [1783, 1220, 45, 45], [1784, 1265, 45, 45], [1785, 1310, 45, 45], [1786, 1355, 45, 45], [1787, 1400, 45, 45], [1788, 1445, 45, 45], [1789, 1490, 45, 45], [1790, 1535, 45, 45], [1791, 1580, 45, 45], [1792, 1625, 45, 45], [1793, 1670, 45, 45], [1794, 1715, 45, 45], [1795, 1760, 45, 45], [1796, 1805, 45, 45], [1797, 1850, 45, 45], [1798, 1895, 45, 45], [1799, 1940, 45, 45], [1800, 0, 45, 4], [1800, 1985, 225, 1], [1801, 4, 45, 45], [1802, 49, 45, 45], [1803, 94, 45, 45], [1804, 139, 45, 45], [1805, 184, 45, 45], [1806, 229, 45, 45], [1807, 274, 45, 45], [1808, 319, 45, 45], [1809, 364, 45, 45], [1810, 409, 45, 45], [1811, 454, 45, 45], [1812, 499, 45, 45], [1813, 544, 45, 45], [1814, 589, 45, 45], [1815, 634, 45, 45], [1816, 679, 45, 45], [1817, 724, 45, 45], [1818, 769, 45, 45], [1819, 814, 45, 45], [1820, 859, 45, 45], [1821, 904, 45, 45], [1822, 949, 45, 45], [1823, 994, 45, 45], [1824, 1039, 45, 45], [1825, 1084, 45, 45], [1826, 1129, 45, 45], [1827, 1174, 45, 45], [1828, 1219, 45, 45], [1829, 1264, 45, 45], [1830, 1309, 45, 45], [1831, 1354, 45, 45], [1832, 1399, 45, 45], [1833, 1444, 45, 45], [1834, 1489, 45, 45], [1835, 1534, 45, 45], [1836, 1579, 45, 45], [1837, 1624, 45, 45], [1838, 1669, 45, 45], [1839, 1714, 45, 45], [1840, 1759, 45, 45], [1841, 1804, 45, 45], [1842, 1849, 45, 45], [1843, 1894, 45, 45], [1844, 1939, 45, 45], [1845, 0, 45, 3], [1845, 1984, 180, 1], [1846, 3, 45, 45], [1847, 48, 45, 45], [1848, 93, 45, 45], [1849, 138, 45, 45], [1850, 183, 45, 45], [1851, 228, 45, 45], [1852, 273, 45, 45], [1853, 318, 45, 45], [1854, 363, 45, 45], [1855, 408, 45, 45], [1856, 453, 45, 45], [1857, 498, 45, 45], [1858, 543, 45, 45], [1859, 588, 45, 45], [1860, 633, 45, 45], [1861, 678, 45, 45], [1862, 723, 45, 45], [1863, 768, 45, 45], [1864, 813, 45, 45], [1865, 858, 45, 45], [1866, 903, 45, 45], [1867, 948, 45, 45], [1868, 993, 45, 45], [1869, 1038, 45, 45], [1870, 1083, 45, 45], [1871, 1128, 45, 45], [1872, 1173, 45, 45], [1873, 1218, 45, 45], [1874, 1263, 45, 45], [1875, 1308, 45, 45], [1876, 1353, 45, 45], [1877, 1398, 45, 45], [1878, 1443, 45, 45], [1879, 1488, 45, 45], [1880, 1533, 45, 45], [1881, 1578, 45, 45], [1882, 1623, 45, 45], [1883, 1668, 45, 45], [1884, 1713, 45, 45], [1885, 1758, 45, 45], [1886, 1803, 45, 45], [1887, 1848, 45, 45], [1888, 1893, 45, 45], [1889, 1938, 45, 45], [1890, 0, 45, 2], [1890, 1983, 135, 1], [1891, 2, 45, 45], [1892, 47, 45, 45], [1893, 92, 45, 45], [1894, 137, 45, 45], [1895, 182, 45, 45], [1896, 227, 45, 45], [1897, 272, 45, 45], [1898, 317, 45, 45], [1899, 362, 45, 45], [1900, 407, 45, 45], [1901, 452, 45, 45], [1902, 497, 45, 45], [1903, 542, 45, 45], [1904, 587, 45, 45], [1905, 632, 45, 45], [1906, 677, 45, 45], [1907, 722, 45, 45], [1908, 767, 45, 45], [1909, 812, 45, 45], [1910, 857, 45, 45], [1911, 902, 45, 45], [1912, 947, 45, 45], [1913, 992, 45, 45], [1914, 1037, 45, 45], [1915, 1082, 45, 45], [1916, 1127, 45, 45], [1917, 1172, 45, 45], [1918, 1217, 45, 45], [1919, 1262, 45, 45], [1920, 1307, 45, 45], [1921, 1352, 45, 45], [1922, 1397, 45, 45], [1923, 1442, 45, 45], [1924, 1487, 45, 45], [1925, 1532, 45, 45], [1926, 1577, 45, 45], [1927, 1622, 45, 45], [1928, 1667, 45, 45], [1929, 1712, 45, 45], [1930, 1757, 45, 45], [1931, 1802, 45, 45], [1932, 1847, 45, 45], [1933, 1892, 45, 45], [1934, 1937, 45, 45], [1935, 0, 45, 1], [1935, 1982, 90, 1], [1936, 1, 45, 45], [1937, 46, 45, 45], [1938, 91, 45, 45], [1939, 136, 45, 45], [1940, 181, 45, 45], [1941, 226, 45, 45], [1942, 271, 45, 45], [1943, 316, 45, 45], [1944, 361, 45, 45], [1945, 406, 45, 45], [1946, 451, 45, 45], [1947, 496, 45, 45], [1948, 541, 45, 45], [1949, 586, 45, 45], [1950, 631, 45, 45], [1951, 676, 45, 45], [1952, 721, 45, 45], [1953, 766, 45, 45], [1954, 811, 45, 45], [1955, 856, 45, 45], [1956, 901, 45, 45], [1957, 946, 45, 45], [1958, 991, 45, 45], [1959, 1036, 45, 45], [1960, 1081, 45, 45], [1961, 1126, 45, 45], [1962, 1171, 45, 45], [1963, 1216, 45, 45], [1964, 1261, 45, 45], [1965, 1306, 45, 45], [1966, 1351, 45, 45], [1967, 1396, 45, 45], [1968, 1441, 45, 45], [1969, 1486, 45, 45], [1970, 1531, 45, 45], [1971, 1576, 45, 45], [1972, 1621, 45, 45], [1973, 1666, 45, 45], [1974, 1711, 45, 45], [1975, 1756, 45, 45], [1976, 1801, 45, 45], [1977, 1846, 45, 45], [1978, 1891, 45, 45], [1979, 1936, 45, 45], [1980, 1981, 45, 1], [1981, 0, 44, 45], [1982, 45, 43, 45], [1983, 90, 42, 45], [1984, 135, 41, 45], [1985, 180, 40, 45], [1986, 225, 39, 45], [1987, 270, 38, 45], [1988, 315, 37, 45], [1989, 360, 36, 45], [1990, 405, 35, 45], [1991, 450, 34, 45], [1992, 495, 33, 45], [1993, 540, 32, 45], [1994, 585, 31, 45], [1995, 630, 30, 45], [1996, 675, 29, 45], [1997, 720, 28, 45], [1998, 765, 27, 45], [1999, 810, 26, 45], [2000, 855, 25, 45], [2001, 900, 24, 45], [2002, 945, 23, 45], [2003, 990, 22, 45], [2004, 1035, 21, 45], [2005, 1080, 20, 45], [2006, 1125, 19, 45], [2007, 1170, 18, 45], [2008, 1215, 17, 45], [2009, 1260, 16, 45], [2010, 1305, 15, 45], [2011, 1350, 14, 45], [2012, 1395, 13, 45], [2013, 1440, 12, 45], [2014, 1485, 11, 45], [2015, 1530, 10, 45], [2016, 1575, 9, 45], [2017, 1620, 8, 45], [2018, 1665, 7, 45], [2019, 1710, 6, 45], [2020, 1755, 5, 45], [2021, 1800, 4, 45], [2022, 1845, 3, 45], [2023, 1890, 2, 45], [2024, 1935, 1, 45]]} +RLMATH_EOF diff --git a/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/tests/check.py b/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..401de49cfa895e6f1c47b996fa5e8bdc8fc609e4 --- /dev/null +++ b/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/tests/check.py @@ -0,0 +1,24 @@ +"""IMO 2025 Problem 6 variant (AlphaEvolve problem 65): at most T rectangular tiles on an n x n grid, no overlaps, +every row and every column has exactly one uncovered unit square.""" +import numpy as np + +from run import Invalid, int_list + + +def check(inst, ans): + n, cap = inst["n"], inst["max_tiles"] + tiles = ans.get("tiles") + if not isinstance(tiles, list) or not (1 <= len(tiles) <= cap): + raise Invalid(f"tiles must be a list of 1..{cap} [row, col, height, width] entries") + cover = np.zeros((n, n), dtype=np.int32) + for t in tiles: + r, c, h, w = int_list(t, 4, 0, n, "tile") + if h < 1 or w < 1 or r + h > n or c + w > n: + raise Invalid(f"tile {t} is empty or leaves the grid") + cover[r:r + h, c:c + w] += 1 + if cover.max() > 1: + raise Invalid("tiles overlap") + free = cover == 0 + if not (free.sum(axis=1) == 1).all() or not (free.sum(axis=0) == 1).all(): + raise Invalid("some row or column does not have exactly one uncovered square") + return None, {"tiles": len(tiles)} diff --git a/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/tests/instance.json b/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..50ba9b337ec1e69fd44548d7da845e903c84694a --- /dev/null +++ b/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 2025, "max_tiles": 2112, "family": "ae_p65_imo2025_p6_tiling", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/tests/run.py b/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/tests/test.sh b/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-ae-p65-imo2025-p6-tiling-l6-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-all-interval-l1-s2/environment/Dockerfile b/tasks/construct-mc-all-interval-l1-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-all-interval-l1-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-all-interval-l1-s2/environment/instance.json b/tasks/construct-mc-all-interval-l1-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..10ba49e847ce0c7a1b9a5ff0b8a976bc39554410 --- /dev/null +++ b/tasks/construct-mc-all-interval-l1-s2/environment/instance.json @@ -0,0 +1 @@ +{"n": 5, "fixed": [], "family": "mc_all_interval", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-all-interval-l1-s2/solution/solve.sh b/tasks/construct-mc-all-interval-l1-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4ceb25a00a833309f525401390f596032f7852f --- /dev/null +++ b/tasks/construct-mc-all-interval-l1-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [0, 4, 1, 3, 2]} +RLMATH_EOF diff --git a/tasks/construct-mc-all-interval-l1-s2/tests/check.py b/tasks/construct-mc-all-interval-l1-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2e39eec264b6422a47e35921b8cdbe1fa1748307 --- /dev/null +++ b/tasks/construct-mc-all-interval-l1-s2/tests/check.py @@ -0,0 +1,17 @@ +"""All-interval series of size n (MathConstraint all_interval, CC-BY-4.0). Accepts any valid series.""" +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + x = int_list(ans.get("x"), n, 0, n - 1, "x") + if sorted(x) != list(range(n)): + raise Invalid("x is not a permutation of 0..n-1") + d = [abs(x[i + 1] - x[i]) for i in range(n - 1)] + if sorted(d) != list(range(1, n)): + raise Invalid("consecutive differences are not a permutation of 1..n-1") + seqs = {"x": x, "d": d} + for name, i, v in inst.get("fixed", []): + if seqs[name][i] != v: + raise Invalid(f"fixed value {name}[{i}] = {v} not respected") + return None, {} diff --git a/tasks/construct-mc-all-interval-l1-s2/tests/instance.json b/tasks/construct-mc-all-interval-l1-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..10ba49e847ce0c7a1b9a5ff0b8a976bc39554410 --- /dev/null +++ b/tasks/construct-mc-all-interval-l1-s2/tests/instance.json @@ -0,0 +1 @@ +{"n": 5, "fixed": [], "family": "mc_all_interval", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-all-interval-l1-s2/tests/run.py b/tasks/construct-mc-all-interval-l1-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-all-interval-l1-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-all-interval-l1-s2/tests/test.sh b/tasks/construct-mc-all-interval-l1-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-all-interval-l1-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-antimagic-square-l1-s0/environment/Dockerfile b/tasks/construct-mc-antimagic-square-l1-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-antimagic-square-l1-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-antimagic-square-l1-s0/environment/instance.json b/tasks/construct-mc-antimagic-square-l1-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..497a6a3ddc63b9d9d7bd2708107a81b29e096e6e --- /dev/null +++ b/tasks/construct-mc-antimagic-square-l1-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 4, "family": "mc_antimagic_square", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-antimagic-square-l1-s0/solution/solve.sh b/tasks/construct-mc-antimagic-square-l1-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d34f8b26c3252adc02d24202eecf48c019f0ef5e --- /dev/null +++ b/tasks/construct-mc-antimagic-square-l1-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"grid": [[14, 4, 2, 10], [1, 11, 16, 7], [13, 8, 6, 12], [3, 15, 9, 5]]} +RLMATH_EOF diff --git a/tasks/construct-mc-antimagic-square-l1-s0/tests/check.py b/tasks/construct-mc-antimagic-square-l1-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..9c86a40bef203632c61a8ba237cae03eb53251a6 --- /dev/null +++ b/tasks/construct-mc-antimagic-square-l1-s0/tests/check.py @@ -0,0 +1,20 @@ +"""Antimagic square of order n (MathConstraint antimagic_square, CC-BY-4.0): the numbers 1..n^2 in an +n x n grid whose 2n+2 line sums (rows, columns, both main diagonals) are 2n+2 consecutive integers.""" +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + g = ans.get("grid") + if not isinstance(g, list) or len(g) != n: + raise Invalid(f"grid must be a list of {n} rows") + g = [int_list(r, n, 1, n * n, "grid row") for r in g] + flat = [v for r in g for v in r] + if sorted(flat) != list(range(1, n * n + 1)): + raise Invalid(f"grid must contain each of 1..{n * n} exactly once") + sums = [sum(r) for r in g] + [sum(g[i][j] for i in range(n)) for j in range(n)] + sums += [sum(g[i][i] for i in range(n)), sum(g[i][n - 1 - i] for i in range(n))] + s = sorted(sums) + if any(s[i + 1] != s[i] + 1 for i in range(len(s) - 1)): + raise Invalid(f"line sums {sums} are not {2 * n + 2} consecutive integers") + return None, {} diff --git a/tasks/construct-mc-antimagic-square-l1-s0/tests/instance.json b/tasks/construct-mc-antimagic-square-l1-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..497a6a3ddc63b9d9d7bd2708107a81b29e096e6e --- /dev/null +++ b/tasks/construct-mc-antimagic-square-l1-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 4, "family": "mc_antimagic_square", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-antimagic-square-l1-s0/tests/run.py b/tasks/construct-mc-antimagic-square-l1-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-antimagic-square-l1-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-antimagic-square-l1-s0/tests/test.sh b/tasks/construct-mc-antimagic-square-l1-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-antimagic-square-l1-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-bibd-l6-s0/environment/Dockerfile b/tasks/construct-mc-bibd-l6-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-bibd-l6-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-bibd-l6-s0/environment/instance.json b/tasks/construct-mc-bibd-l6-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..8033f13a21f7585c132f37c0b4581988f60711dc --- /dev/null +++ b/tasks/construct-mc-bibd-l6-s0/environment/instance.json @@ -0,0 +1 @@ +{"v": 31, "k": 6, "lambda": 1, "b": 31, "family": "mc_bibd", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-bibd-l6-s0/solution/solve.sh b/tasks/construct-mc-bibd-l6-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..8dcd33209e12cdb46b42d476ad5819f7e0cfe36f --- /dev/null +++ b/tasks/construct-mc-bibd-l6-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"blocks": [[0, 1, 3, 8, 12, 18], [1, 2, 4, 9, 13, 19], [2, 3, 5, 10, 14, 20], [3, 4, 6, 11, 15, 21], [4, 5, 7, 12, 16, 22], [5, 6, 8, 13, 17, 23], [6, 7, 9, 14, 18, 24], [7, 8, 10, 15, 19, 25], [8, 9, 11, 16, 20, 26], [9, 10, 12, 17, 21, 27], [10, 11, 13, 18, 22, 28], [11, 12, 14, 19, 23, 29], [12, 13, 15, 20, 24, 30], [0, 13, 14, 16, 21, 25], [1, 14, 15, 17, 22, 26], [2, 15, 16, 18, 23, 27], [3, 16, 17, 19, 24, 28], [4, 17, 18, 20, 25, 29], [5, 18, 19, 21, 26, 30], [0, 6, 19, 20, 22, 27], [1, 7, 20, 21, 23, 28], [2, 8, 21, 22, 24, 29], [3, 9, 22, 23, 25, 30], [0, 4, 10, 23, 24, 26], [1, 5, 11, 24, 25, 27], [2, 6, 12, 25, 26, 28], [3, 7, 13, 26, 27, 29], [4, 8, 14, 27, 28, 30], [0, 5, 9, 15, 28, 29], [1, 6, 10, 16, 29, 30], [0, 2, 7, 11, 17, 30]]} +RLMATH_EOF diff --git a/tasks/construct-mc-bibd-l6-s0/tests/check.py b/tasks/construct-mc-bibd-l6-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..c4b5da62477026f27ff9869fe33602fcc41e2ea9 --- /dev/null +++ b/tasks/construct-mc-bibd-l6-s0/tests/check.py @@ -0,0 +1,25 @@ +"""Balanced incomplete block design BIBD(v, k, lambda) (MathConstraint bibd, CC-BY-4.0). +Answer = list of b blocks; every block is a k-subset of {0..v-1}, every pair of points lies in exactly +lambda blocks (which forces every point to lie in r blocks). Repeated blocks are allowed, as upstream +(its 0/1 incidence-matrix model does not forbid equal columns).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + v, k, lam, b = inst["v"], inst["k"], inst["lambda"], inst["b"] + blocks = ans.get("blocks") + if not isinstance(blocks, list) or len(blocks) != b: + raise Invalid(f"blocks must be a list of exactly {b} blocks") + pair = {} + for B in blocks: + B = int_list(B, k, 0, v - 1, "block") + if len(set(B)) != k: + raise Invalid("a block contains a repeated point") + for p in itertools.combinations(sorted(B), 2): + pair[p] = pair.get(p, 0) + 1 + for p in itertools.combinations(range(v), 2): + if pair.get(p, 0) != lam: + raise Invalid(f"points {p} lie together in {pair.get(p, 0)} blocks, need {lam}") + return None, {} diff --git a/tasks/construct-mc-bibd-l6-s0/tests/instance.json b/tasks/construct-mc-bibd-l6-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..8033f13a21f7585c132f37c0b4581988f60711dc --- /dev/null +++ b/tasks/construct-mc-bibd-l6-s0/tests/instance.json @@ -0,0 +1 @@ +{"v": 31, "k": 6, "lambda": 1, "b": 31, "family": "mc_bibd", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-bibd-l6-s0/tests/run.py b/tasks/construct-mc-bibd-l6-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-bibd-l6-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-bibd-l6-s0/tests/test.sh b/tasks/construct-mc-bibd-l6-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-bibd-l6-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-debruijn-l6-s1/environment/Dockerfile b/tasks/construct-mc-debruijn-l6-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-debruijn-l6-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-debruijn-l6-s1/environment/instance.json b/tasks/construct-mc-debruijn-l6-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3404f13f5d3070c3e96e132141c8e966693184c7 --- /dev/null +++ b/tasks/construct-mc-debruijn-l6-s1/environment/instance.json @@ -0,0 +1 @@ +{"b": 2, "n": 12, "family": "mc_debruijn", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-debruijn-l6-s1/solution/solve.sh b/tasks/construct-mc-debruijn-l6-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..637b396319a2cb81ecaa527638075755024ee6a7 --- /dev/null +++ b/tasks/construct-mc-debruijn-l6-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"seq": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0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1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]} +RLMATH_EOF diff --git a/tasks/construct-mc-debruijn-l6-s1/tests/check.py b/tasks/construct-mc-debruijn-l6-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..c9d6f0177d2b3bde8306d74939ee9704c1501a23 --- /dev/null +++ b/tasks/construct-mc-debruijn-l6-s1/tests/check.py @@ -0,0 +1,15 @@ +"""De Bruijn sequence B(b, n) (MathConstraint debruijn, CC-BY-4.0). Accepts any valid cyclic sequence.""" +from run import Invalid, int_list + + +def check(inst, ans): + b, n = inst["b"], inst["n"] + m = b ** n + x = int_list(ans.get("seq"), m, 0, b - 1, "seq") + seen = set() + for i in range(m): + w = tuple(x[(i + k) % m] for k in range(n)) + if w in seen: + raise Invalid(f"window {w} occurs twice") + seen.add(w) + return None, {} diff --git a/tasks/construct-mc-debruijn-l6-s1/tests/instance.json b/tasks/construct-mc-debruijn-l6-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3404f13f5d3070c3e96e132141c8e966693184c7 --- /dev/null +++ b/tasks/construct-mc-debruijn-l6-s1/tests/instance.json @@ -0,0 +1 @@ +{"b": 2, "n": 12, "family": "mc_debruijn", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-debruijn-l6-s1/tests/run.py b/tasks/construct-mc-debruijn-l6-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-debruijn-l6-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-debruijn-l6-s1/tests/test.sh b/tasks/construct-mc-debruijn-l6-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-debruijn-l6-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-graph-k-coloring-l2-s2/environment/Dockerfile b/tasks/construct-mc-graph-k-coloring-l2-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l2-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-graph-k-coloring-l2-s2/environment/instance.json b/tasks/construct-mc-graph-k-coloring-l2-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..41fd822ec521c84623a7bef625d7f20ef1e7cca9 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l2-s2/environment/instance.json @@ -0,0 +1 @@ +{"n": 32, "k": 3, "edges": [[0, 5], [0, 12], [0, 14], [1, 3], [1, 6], [1, 12], [1, 14], [1, 23], [2, 19], [2, 25], [3, 14], [3, 18], [4, 21], [4, 22], [6, 11], [6, 26], [7, 9], [7, 24], [8, 12], [8, 25], [9, 11], [9, 13], [9, 19], [9, 20], [9, 31], [10, 18], [10, 19], [11, 21], [12, 16], [12, 18], [12, 28], [13, 14], [13, 24], [14, 15], [14, 18], [14, 24], [15, 16], [15, 19], [17, 22], [18, 24], [19, 27], [20, 23], [21, 27], [22, 27], [23, 31], [24, 25], [25, 31], [27, 29], [27, 30], [28, 30]], "family": "mc_graph_k_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-graph-k-coloring-l2-s2/solution/solve.sh b/tasks/construct-mc-graph-k-coloring-l2-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9b0e2774e6834da83d87024137599ead257ad91 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l2-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"coloring": [0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 2, 0, 2, 0, 0, 2, 0, 1, 1, 1, 1, 2, 0, 0, 0, 1, 1, 0]} +RLMATH_EOF diff --git a/tasks/construct-mc-graph-k-coloring-l2-s2/tests/check.py b/tasks/construct-mc-graph-k-coloring-l2-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2b5f38cd0c22ac1b4ba37c0d3ff0a34635f08854 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l2-s2/tests/check.py @@ -0,0 +1,11 @@ +"""Proper k-colouring of a given graph (MathConstraint graph_k_coloring, CC-BY-4.0). Any valid colouring.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("coloring"), n, 0, k - 1, "coloring") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + return None, {} diff --git a/tasks/construct-mc-graph-k-coloring-l2-s2/tests/instance.json b/tasks/construct-mc-graph-k-coloring-l2-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..41fd822ec521c84623a7bef625d7f20ef1e7cca9 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l2-s2/tests/instance.json @@ -0,0 +1 @@ +{"n": 32, "k": 3, "edges": [[0, 5], [0, 12], [0, 14], [1, 3], [1, 6], [1, 12], [1, 14], [1, 23], [2, 19], [2, 25], [3, 14], [3, 18], [4, 21], [4, 22], [6, 11], [6, 26], [7, 9], [7, 24], [8, 12], [8, 25], [9, 11], [9, 13], [9, 19], [9, 20], [9, 31], [10, 18], [10, 19], [11, 21], [12, 16], [12, 18], [12, 28], [13, 14], [13, 24], [14, 15], [14, 18], [14, 24], [15, 16], [15, 19], [17, 22], [18, 24], [19, 27], [20, 23], [21, 27], [22, 27], [23, 31], [24, 25], [25, 31], [27, 29], [27, 30], [28, 30]], "family": "mc_graph_k_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-graph-k-coloring-l2-s2/tests/run.py b/tasks/construct-mc-graph-k-coloring-l2-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l2-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-graph-k-coloring-l2-s2/tests/test.sh b/tasks/construct-mc-graph-k-coloring-l2-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l2-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-graph-k-coloring-l2-s5/environment/Dockerfile b/tasks/construct-mc-graph-k-coloring-l2-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l2-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-graph-k-coloring-l2-s5/environment/instance.json b/tasks/construct-mc-graph-k-coloring-l2-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..be127de42c115918c274a1f30d07a2acfa119072 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l2-s5/environment/instance.json @@ -0,0 +1 @@ +{"n": 27, "k": 3, "edges": [[0, 3], [0, 9], [0, 12], [0, 21], [1, 6], [1, 11], [1, 14], [1, 16], [1, 17], [1, 20], [2, 16], [2, 17], [3, 14], [3, 22], [4, 5], [4, 8], [5, 6], [5, 11], [5, 14], [5, 20], [6, 18], [6, 24], [7, 8], [7, 11], [7, 16], [7, 22], [8, 12], [8, 14], [9, 10], [9, 11], [9, 18], [9, 25], [9, 26], [10, 13], [10, 15], [11, 14], [11, 20], [13, 15], [13, 19], [13, 25], [14, 25], [15, 22], [15, 26], [16, 20], [16, 25], [17, 25], [17, 26], [18, 23], [19, 20], [21, 22], [24, 26]], "family": "mc_graph_k_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-graph-k-coloring-l2-s5/solution/solve.sh b/tasks/construct-mc-graph-k-coloring-l2-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..0116a5e0fb21d94e4497274ffa07a16171494a87 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l2-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"coloring": [0, 0, 0, 1, 1, 0, 1, 2, 0, 2, 0, 1, 1, 1, 2, 2, 1, 1, 0, 0, 2, 1, 0, 1, 2, 0, 0]} +RLMATH_EOF diff --git a/tasks/construct-mc-graph-k-coloring-l2-s5/tests/check.py b/tasks/construct-mc-graph-k-coloring-l2-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2b5f38cd0c22ac1b4ba37c0d3ff0a34635f08854 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l2-s5/tests/check.py @@ -0,0 +1,11 @@ +"""Proper k-colouring of a given graph (MathConstraint graph_k_coloring, CC-BY-4.0). Any valid colouring.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("coloring"), n, 0, k - 1, "coloring") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + return None, {} diff --git a/tasks/construct-mc-graph-k-coloring-l2-s5/tests/instance.json b/tasks/construct-mc-graph-k-coloring-l2-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..be127de42c115918c274a1f30d07a2acfa119072 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l2-s5/tests/instance.json @@ -0,0 +1 @@ +{"n": 27, "k": 3, "edges": [[0, 3], [0, 9], [0, 12], [0, 21], [1, 6], [1, 11], [1, 14], [1, 16], [1, 17], [1, 20], [2, 16], [2, 17], [3, 14], [3, 22], [4, 5], [4, 8], [5, 6], [5, 11], [5, 14], [5, 20], [6, 18], [6, 24], [7, 8], [7, 11], [7, 16], [7, 22], [8, 12], [8, 14], [9, 10], [9, 11], [9, 18], [9, 25], [9, 26], [10, 13], [10, 15], [11, 14], [11, 20], [13, 15], [13, 19], [13, 25], [14, 25], [15, 22], [15, 26], [16, 20], [16, 25], [17, 25], [17, 26], [18, 23], [19, 20], [21, 22], [24, 26]], "family": "mc_graph_k_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-graph-k-coloring-l2-s5/tests/run.py b/tasks/construct-mc-graph-k-coloring-l2-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l2-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-graph-k-coloring-l2-s5/tests/test.sh b/tasks/construct-mc-graph-k-coloring-l2-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l2-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-graph-k-coloring-l6-s3/environment/Dockerfile b/tasks/construct-mc-graph-k-coloring-l6-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l6-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-graph-k-coloring-l6-s3/environment/instance.json b/tasks/construct-mc-graph-k-coloring-l6-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ac555a0be5c005eacadbb549d830426760358523 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l6-s3/environment/instance.json @@ -0,0 +1 @@ +{"n": 250, "k": 4, "edges": [[0, 31], [0, 37], [0, 60], [0, 162], [0, 181], [0, 214], [1, 15], [1, 30], [1, 60], [1, 117], [1, 126], [1, 136], [1, 142], [1, 159], [1, 178], [1, 181], [1, 199], [1, 242], [2, 4], [2, 17], [2, 64], [2, 108], [2, 210], [2, 224], [2, 228], [3, 12], [3, 15], [3, 21], [3, 35], [3, 46], [3, 83], [3, 151], [3, 152], [3, 188], [3, 201], [3, 235], [4, 8], [4, 31], [4, 39], [4, 83], [4, 179], [4, 192], [4, 197], [4, 214], [4, 222], [4, 230], [5, 24], [5, 64], [5, 84], [5, 111], [5, 167], [5, 176], [5, 215], [6, 7], [6, 45], [6, 60], [6, 81], [6, 111], [6, 124], [6, 129], [6, 135], [6, 153], [6, 198], [6, 208], [6, 244], [7, 19], [7, 60], [7, 70], [7, 110], [7, 132], [7, 141], [7, 174], [8, 25], [8, 52], [8, 72], [8, 89], [8, 125], [8, 143], [8, 207], [8, 214], [8, 231], [8, 232], [8, 233], [9, 12], [9, 34], [9, 58], [9, 67], [9, 84], [9, 201], [9, 205], [9, 207], [10, 26], [10, 39], [10, 44], [10, 49], [10, 51], [10, 137], [10, 151], [10, 196], [11, 46], [11, 53], [11, 98], [11, 106], [11, 134], [11, 224], [11, 234], [12, 22], [12, 23], [12, 45], [12, 54], [12, 57], [12, 85], [12, 148], [12, 202], [12, 228], [12, 248], [13, 43], [13, 64], [13, 110], [13, 179], [13, 189], [13, 203], [13, 228], [13, 246], [14, 32], [14, 61], [14, 117], [14, 147], [15, 25], [15, 74], [15, 84], [15, 124], [15, 133], [15, 159], [15, 160], [15, 184], [15, 189], [15, 190], [15, 199], [16, 30], [16, 40], [16, 54], [16, 96], [16, 114], [16, 134], [16, 206], [16, 227], [17, 118], [17, 128], [17, 156], [17, 172], [17, 181], [17, 190], [17, 219], [17, 237], [18, 40], [18, 43], [18, 54], [18, 62], [18, 93], [18, 112], [18, 140], [18, 147], [18, 155], [18, 156], [18, 203], [18, 220], [18, 236], [19, 20], [19, 77], [19, 106], [19, 126], [19, 154], [19, 156], [19, 163], [19, 173], [19, 176], [19, 215], [20, 42], [20, 67], [20, 73], [20, 102], [20, 110], [20, 126], [20, 195], [20, 200], [20, 240], [20, 243], [21, 32], [21, 207], [22, 23], [22, 29], [22, 136], [22, 248], [23, 208], [23, 215], [23, 217], [23, 225], [23, 248], [24, 41], [24, 53], [24, 64], [24, 162], [24, 178], [24, 181], [24, 208], [25, 29], [25, 32], [25, 34], [25, 57], [25, 62], [25, 64], [25, 114], [25, 121], [25, 232], [25, 244], [25, 245], [26, 112], [26, 129], [26, 141], [26, 179], [26, 191], [27, 92], [27, 176], [27, 183], [27, 193], [27, 198], [27, 211], [27, 243], [28, 35], [28, 59], [28, 129], [28, 197], [28, 210], [29, 32], [29, 60], [29, 87], [29, 121], [29, 153], [29, 156], [29, 165], [29, 172], [29, 181], [29, 231], [29, 238], [30, 34], [30, 72], [30, 73], [30, 84], [30, 92], [30, 120], [30, 224], [30, 238], [31, 37], [31, 152], [31, 176], [32, 44], [32, 145], [32, 163], [32, 165], [32, 180], [32, 185], [33, 43], [33, 84], [33, 129], [33, 155], [33, 161], [33, 167], [33, 178], [33, 237], [34, 93], [34, 248], [35, 66], [35, 75], [35, 102], [35, 107], [35, 135], [35, 209], [35, 246], [36, 58], [36, 92], [36, 100], [36, 127], [36, 155], [36, 245], [37, 59], [37, 67], [37, 70], [37, 78], [37, 139], [37, 148], [37, 166], [37, 174], [37, 224], [37, 226], [37, 230], [38, 41], [38, 69], [38, 136], [38, 150], [38, 180], [38, 209], [38, 227], [38, 249], [39, 80], [39, 96], [39, 158], [39, 163], [39, 202], [40, 43], [40, 66], [40, 97], [40, 155], [40, 180], [40, 221], [40, 230], [40, 238], [41, 55], [41, 90], [41, 103], [41, 122], [41, 127], [41, 133], [41, 139], [41, 149], [41, 153], [41, 194], [41, 206], [41, 235], [42, 43], [42, 51], [42, 65], [42, 99], [42, 118], [42, 129], [42, 135], [42, 147], [42, 224], [42, 229], [42, 246], [43, 104], [43, 108], [43, 112], [43, 138], [44, 94], [44, 123], [44, 126], [44, 154], [44, 156], [44, 157], [44, 159], [44, 172], [44, 184], [44, 196], [44, 205], [44, 214], [44, 232], [45, 48], [45, 85], [45, 94], [45, 113], [45, 123], [45, 199], [45, 209], [46, 48], [46, 49], [46, 115], [46, 163], [46, 190], [46, 232], [46, 243], [47, 53], [47, 107], [47, 148], [47, 157], [47, 178], [47, 243], [48, 60], [48, 65], [48, 67], [48, 82], [48, 106], [48, 126], [48, 193], [48, 194], [48, 211], [49, 58], [49, 171], [49, 205], [50, 140], [50, 145], [50, 156], [50, 171], [50, 192], [50, 206], [50, 211], [51, 53], [51, 70], [51, 73], [51, 113], [51, 127], [51, 138], [51, 193], [52, 145], [52, 169], [52, 225], [53, 55], [53, 61], [53, 69], [53, 72], [53, 107], [53, 161], [53, 205], [54, 84], [54, 132], [54, 163], [54, 200], [54, 212], [54, 219], [54, 228], [54, 239], [55, 99], [55, 123], [55, 149], [55, 194], [55, 213], [55, 228], [56, 66], [56, 118], [56, 132], [56, 147], [56, 154], [56, 155], [56, 161], [56, 174], [56, 190], [56, 212], [57, 81], [57, 104], [57, 134], [57, 153], [57, 176], [57, 178], [57, 233], [57, 236], [57, 247], [58, 60], [58, 89], [58, 108], [58, 115], [58, 126], [58, 183], [58, 222], [59, 93], [59, 190], [59, 212], [59, 219], [59, 221], [60, 117], [60, 134], [60, 156], [60, 170], [60, 174], [60, 179], [60, 228], [60, 230], [61, 75], [61, 122], [61, 123], [61, 127], [61, 130], [61, 152], [61, 175], [62, 131], [62, 169], [62, 225], [62, 234], [63, 66], [63, 68], [63, 71], [63, 87], [63, 196], [63, 217], [63, 239], [64, 69], [64, 88], [64, 93], [64, 126], [64, 144], [64, 153], [64, 187], [64, 201], [64, 205], [64, 248], [65, 145], [66, 89], [66, 116], [66, 120], [66, 188], [66, 198], [66, 245], [67, 80], [67, 126], [67, 130], [67, 137], [67, 150], [67, 168], [67, 218], [67, 221], [67, 237], [67, 247], [68, 145], [68, 150], [68, 161], [68, 172], [68, 193], [68, 208], [68, 216], [68, 228], [68, 238], [69, 126], [69, 130], [69, 136], [69, 155], [69, 191], [70, 80], [70, 85], [70, 166], [70, 167], [70, 213], [70, 222], [70, 230], [71, 100], [71, 138], [71, 215], [72, 107], [72, 108], [72, 125], [72, 136], [72, 173], [73, 90], [73, 124], [73, 131], [74, 76], [74, 106], [74, 112], [74, 193], [75, 153], [75, 154], [75, 156], [75, 171], [75, 176], [75, 183], [75, 218], [76, 160], [76, 164], [76, 196], [76, 210], [77, 80], [77, 132], [77, 172], [78, 109], [78, 122], [78, 132], [78, 147], [78, 211], [78, 217], [78, 237], [78, 239], [79, 181], [79, 215], [79, 235], [80, 106], [80, 140], [80, 150], [80, 192], [80, 208], [80, 226], [81, 109], [81, 114], [81, 133], [81, 162], [81, 214], [81, 238], [81, 246], [82, 110], [82, 223], [83, 92], [83, 105], [83, 120], [83, 193], [83, 198], [83, 234], [84, 100], [84, 134], [84, 208], [84, 227], [85, 115], [85, 164], [85, 171], [86, 103], [86, 113], [86, 133], [86, 175], [86, 178], [86, 207], [86, 247], [87, 151], [87, 166], [87, 170], [87, 184], [87, 201], [88, 100], [88, 122], [88, 138], [88, 155], [88, 162], [88, 171], [88, 218], [88, 231], [88, 234], [88, 244], [89, 125], [89, 128], [89, 164], [89, 171], [90, 91], [90, 120], [90, 134], [90, 197], [90, 230], [91, 155], [91, 173], [91, 239], [91, 247], [92, 115], [92, 141], [92, 142], [92, 160], [92, 176], [92, 183], [93, 174], [93, 203], [93, 226], [93, 230], [93, 235], [93, 242], [94, 115], [94, 130], [94, 150], [94, 152], [94, 216], [94, 218], [95, 179], [95, 189], [95, 235], [96, 112], [96, 143], [96, 145], [96, 148], [96, 159], [96, 201], [96, 218], [97, 127], [97, 142], [98, 99], [98, 114], [98, 155], [98, 189], [98, 217], [98, 227], [98, 229], [99, 160], [99, 181], [99, 186], [99, 221], [100, 119], [100, 144], [100, 216], [100, 219], [100, 227], [100, 232], [100, 239], [101, 108], [101, 113], [101, 130], [101, 141], [101, 145], [101, 188], [101, 194], [101, 207], [101, 228], [102, 118], [102, 164], [102, 171], [102, 216], [102, 229], [102, 231], [102, 234], [103, 124], [103, 136], [103, 190], [103, 238], [104, 161], [104, 213], [105, 113], [105, 142], [105, 157], [105, 170], [105, 187], [105, 200], [105, 201], [106, 119], [106, 163], [106, 168], [106, 181], [106, 189], [106, 190], [106, 191], [107, 134], [107, 151], [107, 167], [107, 176], [107, 202], [107, 244], [108, 159], [108, 166], [108, 181], [108, 246], [109, 129], [109, 190], [109, 207], [109, 215], [109, 220], [110, 126], [110, 171], [110, 198], [110, 228], [111, 114], [111, 122], [111, 123], [111, 132], [111, 158], [111, 195], [111, 241], [111, 242], [112, 220], [112, 239], [113, 118], [113, 147], [113, 183], [113, 186], [113, 197], [113, 221], [113, 224], [114, 135], [114, 155], [114, 210], [114, 219], [114, 248], [115, 135], [115, 172], [115, 181], [115, 201], [115, 243], [116, 117], [116, 143], [116, 174], [116, 183], [116, 221], [116, 223], [116, 243], [117, 127], [117, 205], [117, 223], [117, 248], [118, 131], [118, 132], [118, 169], [119, 125], [119, 198], [119, 247], [120, 149], [120, 181], [121, 128], [121, 163], [121, 184], [121, 227], [122, 143], [122, 146], [122, 212], [122, 234], [122, 237], [122, 249], [123, 136], [123, 154], [124, 146], [124, 212], [124, 214], [124, 231], [124, 234], [124, 248], [125, 162], [125, 168], [125, 213], [125, 225], [126, 137], [126, 153], [126, 189], [126, 213], [126, 220], [126, 229], [127, 163], [127, 168], [127, 218], [127, 219], [128, 147], [128, 152], [128, 171], [128, 195], [128, 231], [128, 241], [129, 151], [129, 218], [130, 142], [130, 148], [130, 234], [130, 247], [131, 166], [131, 202], [131, 212], [131, 249], [132, 214], [132, 232], [133, 143], [133, 144], [134, 143], [134, 202], [135, 146], [135, 161], [135, 162], [135, 222], [135, 224], [135, 226], [136, 168], [136, 183], [136, 201], [137, 142], [137, 149], [137, 179], [137, 181], [137, 194], [137, 219], [138, 176], [138, 214], [139, 167], [139, 174], [139, 183], [139, 209], [140, 170], [140, 182], [140, 205], [140, 210], [140, 214], [140, 243], [141, 152], [141, 163], [141, 169], [141, 182], [141, 183], [141, 186], [141, 213], [141, 226], [142, 156], [142, 178], [143, 221], [144, 148], [144, 188], [144, 189], [144, 245], [145, 233], [146, 149], [146, 195], [146, 201], [146, 206], [146, 221], [147, 171], [147, 211], [147, 229], [147, 235], [148, 192], [148, 221], [148, 249], [149, 200], [149, 204], [149, 220], [149, 237], [150, 153], [150, 163], [150, 229], [150, 238], [150, 243], [151, 215], [151, 237], [151, 242], [152, 159], [152, 181], [152, 198], [152, 201], [152, 233], [152, 237], [152, 238], [152, 241], [153, 161], [153, 200], [153, 216], [153, 243], [154, 172], [154, 173], [154, 214], [155, 206], [156, 158], [156, 189], [156, 220], [156, 222], [157, 192], [157, 228], [158, 165], [158, 189], [158, 226], [159, 173], [159, 215], [159, 225], [159, 234], [160, 167], [160, 180], [160, 191], [160, 195], [160, 197], [160, 199], [160, 202], [160, 203], [160, 210], [160, 228], [161, 209], [161, 244], [162, 228], [163, 198], [163, 216], [164, 167], [164, 212], [164, 228], [164, 239], [164, 242], [165, 171], [165, 196], [165, 217], [165, 228], [166, 201], [166, 215], [167, 188], [168, 174], [168, 187], [168, 193], [168, 212], [168, 213], [168, 220], [168, 234], [169, 186], [169, 202], [169, 236], [169, 237], [170, 179], [170, 184], [170, 238], [171, 179], [171, 194], [171, 229], [171, 239], [172, 173], [172, 198], [172, 232], [172, 239], [172, 244], [173, 239], [174, 215], [174, 242], [175, 198], [175, 204], [175, 215], [175, 226], [175, 236], [176, 197], [176, 217], [177, 219], [178, 207], [178, 234], [180, 214], [180, 242], [181, 208], [181, 223], [182, 187], [182, 188], [182, 198], [182, 231], [182, 243], [183, 188], [183, 190], [183, 216], [183, 248], [184, 220], [184, 235], [185, 249], [186, 206], [186, 208], [187, 190], [188, 220], [188, 240], [188, 249], [189, 237], [191, 214], [192, 212], [193, 196], [193, 207], [193, 238], [194, 197], [194, 209], [194, 238], [195, 228], [196, 198], [196, 234], [197, 201], [197, 209], [198, 223], [199, 208], [199, 227], [201, 211], [201, 236], [201, 239], [203, 209], [203, 212], [203, 218], [203, 221], [203, 224], [203, 229], [204, 238], [207, 224], [207, 245], [209, 235], [209, 240], [210, 235], [213, 234], [214, 229], [216, 241], [217, 233], [217, 244], [218, 230], [220, 232], [220, 235], [221, 245], [221, 247], [225, 231], [230, 244], [230, 248], [231, 238], [232, 238], [232, 247], [233, 239], [233, 245], [235, 247], [237, 242], [237, 243], [237, 244], [243, 245], [244, 249]], "family": "mc_graph_k_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-graph-k-coloring-l6-s3/solution/solve.sh b/tasks/construct-mc-graph-k-coloring-l6-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba6235bbe1ebbfd5907f1c361389b9a52d6f537b --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l6-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"coloring": [3, 1, 0, 1, 2, 0, 3, 1, 3, 2, 2, 1, 3, 2, 1, 3, 1, 3, 1, 0, 1, 3, 1, 0, 1, 1, 0, 0, 3, 3, 2, 0, 2, 2, 0, 2, 2, 1, 1, 0, 0, 3, 0, 3, 3, 2, 0, 1, 3, 3, 3, 1, 2, 3, 0, 2, 2, 0, 1, 0, 0, 2, 0, 0, 3, 2, 1, 0, 3, 0, 0, 3, 1, 3, 1, 0, 0, 2, 2, 3, 3, 2, 2, 0, 1, 1, 2, 1, 1, 0, 2, 0, 1, 2, 0, 3, 3, 3, 2, 3, 0, 3, 3, 0, 2, 1, 2, 0, 2, 0, 3, 2, 2, 0, 0, 2, 0, 3, 1, 1, 3, 0, 0, 0, 1, 2, 2, 0, 1, 1, 1, 2, 3, 0, 3, 1, 2, 3, 2, 2, 2, 2, 0, 2, 1, 1, 2, 3, 2, 0, 2, 3, 3, 1, 1, 3, 2, 2, 3, 0, 2, 0, 0, 1, 2, 0, 3, 3, 1, 3, 3, 2, 0, 3, 3, 1, 3, 1, 3, 1, 3, 0, 1, 3, 2, 1, 1, 0, 0, 0, 1, 1, 0, 2, 0, 3, 1, 1, 2, 0, 3, 0, 1, 0, 2, 1, 0, 1, 2, 3, 1, 1, 3, 3, 0, 2, 2, 1, 2, 2, 3, 1, 3, 1, 3, 1, 0, 3, 1, 1, 3, 0, 2, 2, 2, 0, 2, 1, 1, 1, 2, 0, 0, 3, 2, 0, 1, 3, 2, 3]} +RLMATH_EOF diff --git a/tasks/construct-mc-graph-k-coloring-l6-s3/tests/check.py b/tasks/construct-mc-graph-k-coloring-l6-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2b5f38cd0c22ac1b4ba37c0d3ff0a34635f08854 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l6-s3/tests/check.py @@ -0,0 +1,11 @@ +"""Proper k-colouring of a given graph (MathConstraint graph_k_coloring, CC-BY-4.0). Any valid colouring.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("coloring"), n, 0, k - 1, "coloring") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + return None, {} diff --git a/tasks/construct-mc-graph-k-coloring-l6-s3/tests/instance.json b/tasks/construct-mc-graph-k-coloring-l6-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ac555a0be5c005eacadbb549d830426760358523 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l6-s3/tests/instance.json @@ -0,0 +1 @@ +{"n": 250, "k": 4, "edges": [[0, 31], [0, 37], [0, 60], [0, 162], [0, 181], [0, 214], [1, 15], [1, 30], [1, 60], [1, 117], [1, 126], [1, 136], [1, 142], [1, 159], [1, 178], [1, 181], [1, 199], [1, 242], [2, 4], [2, 17], [2, 64], [2, 108], [2, 210], [2, 224], [2, 228], [3, 12], [3, 15], [3, 21], [3, 35], [3, 46], [3, 83], [3, 151], [3, 152], [3, 188], [3, 201], [3, 235], [4, 8], [4, 31], [4, 39], [4, 83], [4, 179], [4, 192], [4, 197], [4, 214], [4, 222], [4, 230], [5, 24], [5, 64], [5, 84], [5, 111], [5, 167], [5, 176], [5, 215], [6, 7], [6, 45], [6, 60], [6, 81], [6, 111], [6, 124], [6, 129], [6, 135], [6, 153], [6, 198], [6, 208], [6, 244], [7, 19], [7, 60], [7, 70], [7, 110], [7, 132], [7, 141], [7, 174], [8, 25], [8, 52], [8, 72], [8, 89], [8, 125], [8, 143], [8, 207], [8, 214], [8, 231], [8, 232], [8, 233], [9, 12], [9, 34], [9, 58], [9, 67], [9, 84], [9, 201], [9, 205], [9, 207], [10, 26], [10, 39], [10, 44], [10, 49], [10, 51], [10, 137], [10, 151], [10, 196], [11, 46], [11, 53], [11, 98], [11, 106], [11, 134], [11, 224], [11, 234], [12, 22], [12, 23], [12, 45], [12, 54], [12, 57], [12, 85], [12, 148], [12, 202], [12, 228], [12, 248], [13, 43], [13, 64], [13, 110], [13, 179], [13, 189], [13, 203], [13, 228], [13, 246], [14, 32], [14, 61], [14, 117], [14, 147], [15, 25], [15, 74], [15, 84], [15, 124], [15, 133], [15, 159], [15, 160], [15, 184], [15, 189], [15, 190], [15, 199], [16, 30], [16, 40], [16, 54], [16, 96], [16, 114], [16, 134], [16, 206], [16, 227], [17, 118], [17, 128], [17, 156], [17, 172], [17, 181], [17, 190], [17, 219], [17, 237], [18, 40], [18, 43], [18, 54], [18, 62], [18, 93], [18, 112], [18, 140], [18, 147], [18, 155], [18, 156], [18, 203], [18, 220], [18, 236], [19, 20], [19, 77], [19, 106], [19, 126], [19, 154], [19, 156], [19, 163], [19, 173], [19, 176], [19, 215], [20, 42], [20, 67], [20, 73], [20, 102], [20, 110], [20, 126], [20, 195], [20, 200], [20, 240], [20, 243], [21, 32], [21, 207], [22, 23], [22, 29], [22, 136], [22, 248], [23, 208], [23, 215], [23, 217], [23, 225], [23, 248], [24, 41], [24, 53], [24, 64], [24, 162], [24, 178], [24, 181], [24, 208], [25, 29], [25, 32], [25, 34], [25, 57], [25, 62], [25, 64], [25, 114], [25, 121], [25, 232], [25, 244], [25, 245], [26, 112], [26, 129], [26, 141], [26, 179], [26, 191], [27, 92], [27, 176], [27, 183], [27, 193], [27, 198], [27, 211], [27, 243], [28, 35], [28, 59], [28, 129], [28, 197], [28, 210], [29, 32], [29, 60], [29, 87], [29, 121], [29, 153], [29, 156], [29, 165], [29, 172], [29, 181], [29, 231], [29, 238], [30, 34], [30, 72], [30, 73], [30, 84], [30, 92], [30, 120], [30, 224], [30, 238], [31, 37], [31, 152], [31, 176], [32, 44], [32, 145], [32, 163], [32, 165], [32, 180], [32, 185], [33, 43], [33, 84], [33, 129], [33, 155], [33, 161], [33, 167], [33, 178], [33, 237], [34, 93], [34, 248], [35, 66], [35, 75], [35, 102], [35, 107], [35, 135], [35, 209], [35, 246], [36, 58], [36, 92], [36, 100], [36, 127], [36, 155], [36, 245], [37, 59], [37, 67], [37, 70], [37, 78], [37, 139], [37, 148], [37, 166], [37, 174], [37, 224], [37, 226], [37, 230], [38, 41], [38, 69], [38, 136], [38, 150], [38, 180], [38, 209], [38, 227], [38, 249], [39, 80], [39, 96], [39, 158], [39, 163], [39, 202], [40, 43], [40, 66], [40, 97], [40, 155], [40, 180], [40, 221], [40, 230], [40, 238], [41, 55], [41, 90], [41, 103], [41, 122], [41, 127], [41, 133], [41, 139], [41, 149], [41, 153], [41, 194], [41, 206], [41, 235], [42, 43], [42, 51], [42, 65], [42, 99], [42, 118], [42, 129], [42, 135], [42, 147], [42, 224], [42, 229], [42, 246], [43, 104], [43, 108], [43, 112], [43, 138], [44, 94], [44, 123], [44, 126], [44, 154], [44, 156], [44, 157], [44, 159], [44, 172], [44, 184], [44, 196], [44, 205], [44, 214], [44, 232], [45, 48], [45, 85], [45, 94], [45, 113], [45, 123], [45, 199], [45, 209], [46, 48], [46, 49], [46, 115], [46, 163], [46, 190], [46, 232], [46, 243], [47, 53], [47, 107], [47, 148], [47, 157], [47, 178], [47, 243], [48, 60], [48, 65], [48, 67], [48, 82], [48, 106], [48, 126], [48, 193], [48, 194], [48, 211], [49, 58], [49, 171], [49, 205], [50, 140], [50, 145], [50, 156], [50, 171], [50, 192], [50, 206], [50, 211], [51, 53], [51, 70], [51, 73], [51, 113], [51, 127], [51, 138], [51, 193], [52, 145], [52, 169], [52, 225], [53, 55], [53, 61], [53, 69], [53, 72], [53, 107], [53, 161], [53, 205], [54, 84], [54, 132], [54, 163], [54, 200], [54, 212], [54, 219], [54, 228], [54, 239], [55, 99], [55, 123], [55, 149], [55, 194], [55, 213], [55, 228], [56, 66], [56, 118], [56, 132], [56, 147], [56, 154], [56, 155], [56, 161], [56, 174], [56, 190], [56, 212], [57, 81], [57, 104], [57, 134], [57, 153], [57, 176], [57, 178], [57, 233], [57, 236], [57, 247], [58, 60], [58, 89], [58, 108], [58, 115], [58, 126], [58, 183], [58, 222], [59, 93], [59, 190], [59, 212], [59, 219], [59, 221], [60, 117], [60, 134], [60, 156], [60, 170], [60, 174], [60, 179], [60, 228], [60, 230], [61, 75], [61, 122], [61, 123], [61, 127], [61, 130], [61, 152], [61, 175], [62, 131], [62, 169], [62, 225], [62, 234], [63, 66], [63, 68], [63, 71], [63, 87], [63, 196], [63, 217], [63, 239], [64, 69], [64, 88], [64, 93], [64, 126], [64, 144], [64, 153], [64, 187], [64, 201], [64, 205], [64, 248], [65, 145], [66, 89], [66, 116], [66, 120], [66, 188], [66, 198], [66, 245], [67, 80], [67, 126], [67, 130], [67, 137], [67, 150], [67, 168], [67, 218], [67, 221], [67, 237], [67, 247], [68, 145], [68, 150], [68, 161], [68, 172], [68, 193], [68, 208], [68, 216], [68, 228], [68, 238], [69, 126], [69, 130], [69, 136], [69, 155], [69, 191], [70, 80], [70, 85], [70, 166], [70, 167], [70, 213], [70, 222], [70, 230], [71, 100], [71, 138], [71, 215], [72, 107], [72, 108], [72, 125], [72, 136], [72, 173], [73, 90], [73, 124], [73, 131], [74, 76], [74, 106], [74, 112], [74, 193], [75, 153], [75, 154], [75, 156], [75, 171], [75, 176], [75, 183], [75, 218], [76, 160], [76, 164], [76, 196], [76, 210], [77, 80], [77, 132], [77, 172], [78, 109], [78, 122], [78, 132], [78, 147], [78, 211], [78, 217], [78, 237], [78, 239], [79, 181], [79, 215], [79, 235], [80, 106], [80, 140], [80, 150], [80, 192], [80, 208], [80, 226], [81, 109], [81, 114], [81, 133], [81, 162], [81, 214], [81, 238], [81, 246], [82, 110], [82, 223], [83, 92], [83, 105], [83, 120], [83, 193], [83, 198], [83, 234], [84, 100], [84, 134], [84, 208], [84, 227], [85, 115], [85, 164], [85, 171], [86, 103], [86, 113], [86, 133], [86, 175], [86, 178], [86, 207], [86, 247], [87, 151], [87, 166], [87, 170], [87, 184], [87, 201], [88, 100], [88, 122], [88, 138], [88, 155], [88, 162], [88, 171], [88, 218], [88, 231], [88, 234], [88, 244], [89, 125], [89, 128], [89, 164], [89, 171], [90, 91], [90, 120], [90, 134], [90, 197], [90, 230], [91, 155], [91, 173], [91, 239], [91, 247], [92, 115], [92, 141], [92, 142], [92, 160], [92, 176], [92, 183], [93, 174], [93, 203], [93, 226], [93, 230], [93, 235], [93, 242], [94, 115], [94, 130], [94, 150], [94, 152], [94, 216], [94, 218], [95, 179], [95, 189], [95, 235], [96, 112], [96, 143], [96, 145], [96, 148], [96, 159], [96, 201], [96, 218], [97, 127], [97, 142], [98, 99], [98, 114], [98, 155], [98, 189], [98, 217], [98, 227], [98, 229], [99, 160], [99, 181], [99, 186], [99, 221], [100, 119], [100, 144], [100, 216], [100, 219], [100, 227], [100, 232], [100, 239], [101, 108], [101, 113], [101, 130], [101, 141], [101, 145], [101, 188], [101, 194], [101, 207], [101, 228], [102, 118], [102, 164], [102, 171], [102, 216], [102, 229], [102, 231], [102, 234], [103, 124], [103, 136], [103, 190], [103, 238], [104, 161], [104, 213], [105, 113], [105, 142], [105, 157], [105, 170], [105, 187], [105, 200], [105, 201], [106, 119], [106, 163], [106, 168], [106, 181], [106, 189], [106, 190], [106, 191], [107, 134], [107, 151], [107, 167], [107, 176], [107, 202], [107, 244], [108, 159], [108, 166], [108, 181], [108, 246], [109, 129], [109, 190], [109, 207], [109, 215], [109, 220], [110, 126], [110, 171], [110, 198], [110, 228], [111, 114], [111, 122], [111, 123], [111, 132], [111, 158], [111, 195], [111, 241], [111, 242], [112, 220], [112, 239], [113, 118], [113, 147], [113, 183], [113, 186], [113, 197], [113, 221], [113, 224], [114, 135], [114, 155], [114, 210], [114, 219], [114, 248], [115, 135], [115, 172], [115, 181], [115, 201], [115, 243], [116, 117], [116, 143], [116, 174], [116, 183], [116, 221], [116, 223], [116, 243], [117, 127], [117, 205], [117, 223], [117, 248], [118, 131], [118, 132], [118, 169], [119, 125], [119, 198], [119, 247], [120, 149], [120, 181], [121, 128], [121, 163], [121, 184], [121, 227], [122, 143], [122, 146], [122, 212], [122, 234], [122, 237], [122, 249], [123, 136], [123, 154], [124, 146], [124, 212], [124, 214], [124, 231], [124, 234], [124, 248], [125, 162], [125, 168], [125, 213], [125, 225], [126, 137], [126, 153], [126, 189], [126, 213], [126, 220], [126, 229], [127, 163], [127, 168], [127, 218], [127, 219], [128, 147], [128, 152], [128, 171], [128, 195], [128, 231], [128, 241], [129, 151], [129, 218], [130, 142], [130, 148], [130, 234], [130, 247], [131, 166], [131, 202], [131, 212], [131, 249], [132, 214], [132, 232], [133, 143], [133, 144], [134, 143], [134, 202], [135, 146], [135, 161], [135, 162], [135, 222], [135, 224], [135, 226], [136, 168], [136, 183], [136, 201], [137, 142], [137, 149], [137, 179], [137, 181], [137, 194], [137, 219], [138, 176], [138, 214], [139, 167], [139, 174], [139, 183], [139, 209], [140, 170], [140, 182], [140, 205], [140, 210], [140, 214], [140, 243], [141, 152], [141, 163], [141, 169], [141, 182], [141, 183], [141, 186], [141, 213], [141, 226], [142, 156], [142, 178], [143, 221], [144, 148], [144, 188], [144, 189], [144, 245], [145, 233], [146, 149], [146, 195], [146, 201], [146, 206], [146, 221], [147, 171], [147, 211], [147, 229], [147, 235], [148, 192], [148, 221], [148, 249], [149, 200], [149, 204], [149, 220], [149, 237], [150, 153], [150, 163], [150, 229], [150, 238], [150, 243], [151, 215], [151, 237], [151, 242], [152, 159], [152, 181], [152, 198], [152, 201], [152, 233], [152, 237], [152, 238], [152, 241], [153, 161], [153, 200], [153, 216], [153, 243], [154, 172], [154, 173], [154, 214], [155, 206], [156, 158], [156, 189], [156, 220], [156, 222], [157, 192], [157, 228], [158, 165], [158, 189], [158, 226], [159, 173], [159, 215], [159, 225], [159, 234], [160, 167], [160, 180], [160, 191], [160, 195], [160, 197], [160, 199], [160, 202], [160, 203], [160, 210], [160, 228], [161, 209], [161, 244], [162, 228], [163, 198], [163, 216], [164, 167], [164, 212], [164, 228], [164, 239], [164, 242], [165, 171], [165, 196], [165, 217], [165, 228], [166, 201], [166, 215], [167, 188], [168, 174], [168, 187], [168, 193], [168, 212], [168, 213], [168, 220], [168, 234], [169, 186], [169, 202], [169, 236], [169, 237], [170, 179], [170, 184], [170, 238], [171, 179], [171, 194], [171, 229], [171, 239], [172, 173], [172, 198], [172, 232], [172, 239], [172, 244], [173, 239], [174, 215], [174, 242], [175, 198], [175, 204], [175, 215], [175, 226], [175, 236], [176, 197], [176, 217], [177, 219], [178, 207], [178, 234], [180, 214], [180, 242], [181, 208], [181, 223], [182, 187], [182, 188], [182, 198], [182, 231], [182, 243], [183, 188], [183, 190], [183, 216], [183, 248], [184, 220], [184, 235], [185, 249], [186, 206], [186, 208], [187, 190], [188, 220], [188, 240], [188, 249], [189, 237], [191, 214], [192, 212], [193, 196], [193, 207], [193, 238], [194, 197], [194, 209], [194, 238], [195, 228], [196, 198], [196, 234], [197, 201], [197, 209], [198, 223], [199, 208], [199, 227], [201, 211], [201, 236], [201, 239], [203, 209], [203, 212], [203, 218], [203, 221], [203, 224], [203, 229], [204, 238], [207, 224], [207, 245], [209, 235], [209, 240], [210, 235], [213, 234], [214, 229], [216, 241], [217, 233], [217, 244], [218, 230], [220, 232], [220, 235], [221, 245], [221, 247], [225, 231], [230, 244], [230, 248], [231, 238], [232, 238], [232, 247], [233, 239], [233, 245], [235, 247], [237, 242], [237, 243], [237, 244], [243, 245], [244, 249]], "family": "mc_graph_k_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-graph-k-coloring-l6-s3/tests/run.py b/tasks/construct-mc-graph-k-coloring-l6-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l6-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-graph-k-coloring-l6-s3/tests/test.sh b/tasks/construct-mc-graph-k-coloring-l6-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l6-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-langford-l6-s3/environment/Dockerfile b/tasks/construct-mc-langford-l6-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-langford-l6-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-langford-l6-s3/environment/instance.json b/tasks/construct-mc-langford-l6-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f21485c2faefb9bd97f8eb798499a506e3e773f3 --- /dev/null +++ b/tasks/construct-mc-langford-l6-s3/environment/instance.json @@ -0,0 +1 @@ +{"n": 44, "fixed": [], "family": "mc_langford", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-langford-l6-s3/solution/solve.sh b/tasks/construct-mc-langford-l6-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ff6cedf0ba95fcb78b1debdbc5d06d75ae54620 --- /dev/null +++ b/tasks/construct-mc-langford-l6-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"seq": [35, 24, 4, 10, 30, 9, 23, 4, 38, 21, 1, 43, 1, 19, 10, 9, 33, 20, 26, 39, 16, 42, 34, 29, 3, 6, 24, 44, 3, 28, 23, 21, 6, 19, 40, 30, 35, 16, 20, 22, 13, 41, 31, 17, 32, 26, 37, 38, 36, 15, 33, 14, 27, 29, 13, 43, 12, 34, 28, 39, 25, 17, 22, 7, 42, 15, 14, 8, 18, 12, 11, 7, 44, 5, 31, 40, 8, 32, 2, 5, 27, 2, 11, 41, 37, 36, 25, 18]} +RLMATH_EOF diff --git a/tasks/construct-mc-langford-l6-s3/tests/check.py b/tasks/construct-mc-langford-l6-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..4672d7eacf321991933cb280d6c940f1c4a67935 --- /dev/null +++ b/tasks/construct-mc-langford-l6-s3/tests/check.py @@ -0,0 +1,17 @@ +"""Langford sequence L(2, n) (MathConstraint langford, CC-BY-4.0). Accepts any valid sequence.""" +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + seq = int_list(ans.get("seq"), 2 * n, 1, n, "seq") + for v in range(1, n + 1): + pos = [i for i, s in enumerate(seq) if s == v] + if len(pos) != 2: + raise Invalid(f"value {v} occurs {len(pos)} times (need exactly 2)") + if pos[1] - pos[0] != v + 1: + raise Invalid(f"the two copies of {v} are {pos[1] - pos[0]} positions apart (need {v + 1})") + for name, i, v in inst.get("fixed", []): + if seq[i] != v: + raise Invalid(f"fixed value {name}[{i}] = {v} not respected") + return None, {} diff --git a/tasks/construct-mc-langford-l6-s3/tests/instance.json b/tasks/construct-mc-langford-l6-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f21485c2faefb9bd97f8eb798499a506e3e773f3 --- /dev/null +++ b/tasks/construct-mc-langford-l6-s3/tests/instance.json @@ -0,0 +1 @@ +{"n": 44, "fixed": [], "family": "mc_langford", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-langford-l6-s3/tests/run.py b/tasks/construct-mc-langford-l6-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-langford-l6-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-langford-l6-s3/tests/test.sh b/tasks/construct-mc-langford-l6-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-langford-l6-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-langford-l6-s4/environment/Dockerfile b/tasks/construct-mc-langford-l6-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-langford-l6-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-langford-l6-s4/environment/instance.json b/tasks/construct-mc-langford-l6-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ad0eba50c0789f364b82b05cbc6a0d7d5247da94 --- /dev/null +++ b/tasks/construct-mc-langford-l6-s4/environment/instance.json @@ -0,0 +1 @@ +{"n": 47, "fixed": [], "family": "mc_langford", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-langford-l6-s4/solution/solve.sh b/tasks/construct-mc-langford-l6-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..21122aee605e201c7fa8aa67842ba26352b352b4 --- /dev/null +++ b/tasks/construct-mc-langford-l6-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"seq": [20, 33, 28, 46, 21, 35, 1, 36, 1, 23, 4, 22, 19, 42, 2, 4, 5, 2, 26, 7, 3, 20, 5, 24, 3, 27, 21, 7, 25, 34, 32, 28, 19, 23, 22, 33, 41, 38, 44, 47, 40, 35, 43, 45, 36, 26, 37, 18, 24, 17, 46, 39, 16, 27, 25, 15, 42, 14, 29, 30, 13, 31, 12, 32, 34, 11, 18, 17, 10, 16, 9, 15, 14, 8, 13, 12, 38, 11, 41, 10, 9, 40, 8, 44, 37, 6, 43, 47, 29, 45, 30, 39, 6, 31]} +RLMATH_EOF diff --git a/tasks/construct-mc-langford-l6-s4/tests/check.py b/tasks/construct-mc-langford-l6-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..4672d7eacf321991933cb280d6c940f1c4a67935 --- /dev/null +++ b/tasks/construct-mc-langford-l6-s4/tests/check.py @@ -0,0 +1,17 @@ +"""Langford sequence L(2, n) (MathConstraint langford, CC-BY-4.0). Accepts any valid sequence.""" +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + seq = int_list(ans.get("seq"), 2 * n, 1, n, "seq") + for v in range(1, n + 1): + pos = [i for i, s in enumerate(seq) if s == v] + if len(pos) != 2: + raise Invalid(f"value {v} occurs {len(pos)} times (need exactly 2)") + if pos[1] - pos[0] != v + 1: + raise Invalid(f"the two copies of {v} are {pos[1] - pos[0]} positions apart (need {v + 1})") + for name, i, v in inst.get("fixed", []): + if seq[i] != v: + raise Invalid(f"fixed value {name}[{i}] = {v} not respected") + return None, {} diff --git a/tasks/construct-mc-langford-l6-s4/tests/instance.json b/tasks/construct-mc-langford-l6-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ad0eba50c0789f364b82b05cbc6a0d7d5247da94 --- /dev/null +++ b/tasks/construct-mc-langford-l6-s4/tests/instance.json @@ -0,0 +1 @@ +{"n": 47, "fixed": [], "family": "mc_langford", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-langford-l6-s4/tests/run.py b/tasks/construct-mc-langford-l6-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-langford-l6-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-langford-l6-s4/tests/test.sh b/tasks/construct-mc-langford-l6-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-langford-l6-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-magic-sequence-l3-s0/environment/Dockerfile b/tasks/construct-mc-magic-sequence-l3-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-magic-sequence-l3-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-magic-sequence-l3-s0/environment/instance.json b/tasks/construct-mc-magic-sequence-l3-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..d12a1db26e151fbea8affc17a1f3cd7dfd7ccae1 --- /dev/null +++ b/tasks/construct-mc-magic-sequence-l3-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 13, "fixed": [["x", 7, 0], ["x", 11, 0]], "family": "mc_magic_sequence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-magic-sequence-l3-s0/solution/solve.sh b/tasks/construct-mc-magic-sequence-l3-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..039900bc73f4d37fd703b6f4e80ea36e43b95452 --- /dev/null +++ b/tasks/construct-mc-magic-sequence-l3-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [9, 2, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]} +RLMATH_EOF diff --git a/tasks/construct-mc-magic-sequence-l3-s0/tests/check.py b/tasks/construct-mc-magic-sequence-l3-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..27f636ddd6cfe523924ae01c6b9f37ee392f0332 --- /dev/null +++ b/tasks/construct-mc-magic-sequence-l3-s0/tests/check.py @@ -0,0 +1,18 @@ +"""Magic sequence of length n: x[i] = number of occurrences of i in x (MathConstraint magic_sequence, +CC-BY-4.0). The property itself is checked (no stored answer).""" +from collections import Counter + +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + x = int_list(ans.get("x"), n, 0, n, "x") + cnt = Counter(x) + for i in range(n): + if x[i] != cnt.get(i, 0): + raise Invalid(f"x[{i}] = {x[i]} but {i} occurs {cnt.get(i, 0)} times") + for name, i, v in inst.get("fixed", []): + if x[i] != v: + raise Invalid(f"fixed value {name}[{i}] = {v} not respected") + return None, {} diff --git a/tasks/construct-mc-magic-sequence-l3-s0/tests/instance.json b/tasks/construct-mc-magic-sequence-l3-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..d12a1db26e151fbea8affc17a1f3cd7dfd7ccae1 --- /dev/null +++ b/tasks/construct-mc-magic-sequence-l3-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 13, "fixed": [["x", 7, 0], ["x", 11, 0]], "family": "mc_magic_sequence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-magic-sequence-l3-s0/tests/run.py b/tasks/construct-mc-magic-sequence-l3-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-magic-sequence-l3-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-magic-sequence-l3-s0/tests/test.sh b/tasks/construct-mc-magic-sequence-l3-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-magic-sequence-l3-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-max-clique-l4-s1/environment/Dockerfile b/tasks/construct-mc-max-clique-l4-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-max-clique-l4-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-max-clique-l4-s1/environment/instance.json b/tasks/construct-mc-max-clique-l4-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ca76bbfd9663ea77ae8a5c65783cc41e18b64666 --- /dev/null +++ b/tasks/construct-mc-max-clique-l4-s1/environment/instance.json @@ -0,0 +1 @@ +{"n": 57, "k": 10, "edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 13], [0, 15], [0, 17], [0, 18], [0, 19], [0, 23], [0, 26], [0, 28], [0, 29], [0, 30], [0, 32], [0, 33], [0, 34], [0, 36], [0, 38], [0, 39], [0, 41], [0, 42], [0, 43], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 54], [0, 55], [0, 56], [1, 2], [1, 7], [1, 9], [1, 10], [1, 11], [1, 13], [1, 14], [1, 19], [1, 21], [1, 22], [1, 23], [1, 25], [1, 26], [1, 27], [1, 29], [1, 32], [1, 35], [1, 36], [1, 37], [1, 38], [1, 41], [1, 42], [1, 43], [1, 44], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 54], [1, 55], [1, 56], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 11], [2, 12], [2, 19], [2, 21], [2, 23], [2, 25], [2, 27], [2, 28], [2, 29], [2, 31], [2, 33], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 48], [2, 50], [2, 51], [2, 52], [2, 53], [2, 56], [3, 5], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 12], [3, 14], [3, 15], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 25], [3, 26], [3, 28], [3, 29], [3, 33], [3, 36], [3, 40], [3, 43], [3, 47], [3, 48], [3, 49], [3, 50], [3, 51], [3, 52], [3, 53], [3, 54], [3, 55], [3, 56], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 14], [4, 16], [4, 17], [4, 19], [4, 20], [4, 25], [4, 26], [4, 27], [4, 28], [4, 32], [4, 33], [4, 34], [4, 36], [4, 37], [4, 38], [4, 39], [4, 41], [4, 44], [4, 45], [4, 46], [4, 49], [4, 50], [4, 51], [4, 56], [5, 7], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [5, 21], [5, 22], [5, 23], [5, 24], [5, 25], [5, 26], [5, 27], [5, 29], [5, 30], [5, 32], [5, 33], [5, 34], [5, 35], [5, 36], [5, 38], [5, 39], [5, 41], [5, 42], [5, 43], [5, 44], [5, 47], [5, 48], [5, 49], [5, 51], [5, 52], [5, 54], [5, 56], [6, 7], [6, 10], [6, 12], [6, 13], [6, 16], [6, 22], [6, 23], [6, 24], [6, 25], [6, 26], [6, 27], [6, 28], [6, 29], [6, 31], [6, 33], [6, 34], [6, 35], [6, 36], [6, 40], [6, 41], [6, 42], [6, 43], [6, 45], [6, 47], [6, 48], [6, 49], [6, 50], [6, 53], [6, 54], [7, 8], [7, 10], [7, 11], [7, 12], [7, 14], [7, 15], [7, 16], [7, 21], [7, 22], [7, 25], [7, 26], [7, 27], [7, 28], [7, 31], [7, 34], [7, 35], [7, 36], [7, 37], [7, 38], [7, 39], [7, 41], [7, 43], [7, 44], [7, 45], [7, 47], [7, 48], [7, 49], [7, 51], [7, 52], [7, 53], [7, 55], [7, 56], [8, 9], [8, 10], [8, 11], [8, 13], [8, 14], [8, 17], [8, 19], [8, 24], [8, 28], [8, 29], [8, 30], [8, 31], [8, 32], [8, 34], [8, 35], [8, 36], [8, 37], [8, 38], [8, 40], [8, 43], [8, 45], [8, 46], [8, 48], [8, 50], [8, 51], [8, 52], [8, 53], [8, 54], [8, 55], [8, 56], [9, 10], [9, 11], [9, 12], [9, 13], [9, 17], [9, 20], [9, 21], [9, 23], [9, 24], [9, 25], [9, 26], [9, 27], [9, 31], [9, 33], [9, 34], [9, 36], [9, 43], [9, 44], [9, 45], [9, 46], [9, 51], [9, 52], [9, 53], [9, 56], [10, 13], [10, 14], [10, 15], [10, 17], [10, 18], [10, 19], [10, 20], [10, 21], [10, 22], [10, 23], [10, 24], [10, 25], [10, 27], [10, 28], [10, 30], [10, 31], [10, 35], [10, 36], [10, 37], [10, 38], [10, 39], [10, 40], [10, 41], [10, 42], [10, 44], [10, 45], [10, 47], [10, 48], [10, 49], [10, 50], [10, 51], [10, 52], [10, 53], [10, 54], [10, 55], [10, 56], [11, 15], [11, 16], [11, 20], [11, 22], [11, 23], [11, 24], [11, 27], [11, 28], [11, 32], [11, 34], [11, 35], [11, 36], [11, 38], [11, 40], [11, 41], [11, 42], [11, 43], [11, 44], [11, 47], [11, 48], [11, 49], [11, 51], [11, 52], [11, 53], [11, 54], [11, 55], [11, 56], [12, 14], [12, 15], [12, 16], [12, 17], [12, 18], [12, 19], [12, 20], [12, 21], [12, 22], [12, 23], [12, 25], [12, 28], [12, 31], [12, 33], [12, 34], [12, 35], [12, 37], [12, 40], [12, 41], [12, 42], [12, 43], [12, 44], [12, 47], [12, 48], [12, 49], [12, 51], [12, 52], [12, 53], [12, 54], [12, 55], [12, 56], [13, 14], [13, 15], [13, 16], [13, 17], [13, 18], [13, 19], [13, 20], [13, 22], [13, 23], [13, 27], [13, 28], [13, 29], [13, 30], [13, 31], [13, 32], [13, 33], [13, 35], [13, 37], [13, 38], [13, 41], [13, 42], [13, 43], [13, 45], [13, 46], [13, 47], [13, 50], [13, 52], [13, 54], [13, 55], [14, 15], [14, 16], [14, 19], [14, 20], [14, 21], [14, 22], [14, 28], [14, 31], [14, 32], [14, 33], [14, 35], [14, 37], [14, 38], [14, 40], [14, 43], [14, 44], [14, 47], [14, 48], [14, 50], [14, 51], [14, 52], [14, 53], [14, 54], [14, 55], [14, 56], [15, 16], [15, 20], [15, 21], [15, 22], [15, 24], [15, 27], [15, 28], [15, 29], [15, 30], [15, 31], [15, 32], [15, 34], [15, 35], [15, 36], [15, 37], [15, 38], [15, 39], [15, 42], [15, 43], [15, 45], [15, 47], [15, 49], [15, 51], [15, 53], [15, 55], [16, 17], [16, 19], [16, 20], [16, 22], [16, 23], [16, 24], [16, 25], [16, 26], [16, 27], [16, 28], [16, 29], [16, 30], [16, 31], [16, 33], [16, 35], [16, 37], [16, 39], [16, 40], [16, 42], [16, 43], [16, 44], [16, 45], [16, 46], [16, 47], [16, 48], [16, 49], [16, 50], [16, 51], [16, 53], [16, 54], [16, 55], [16, 56], [17, 18], [17, 19], [17, 20], [17, 22], [17, 24], [17, 25], [17, 26], [17, 27], [17, 28], [17, 29], [17, 30], [17, 31], [17, 35], [17, 36], [17, 37], [17, 39], [17, 40], [17, 43], [17, 47], [17, 49], [17, 50], [17, 51], [17, 52], [17, 53], [17, 54], [17, 55], [17, 56], [18, 19], [18, 20], [18, 21], [18, 23], [18, 25], [18, 26], [18, 28], [18, 29], [18, 31], [18, 32], [18, 33], [18, 34], [18, 36], [18, 38], [18, 40], [18, 41], [18, 42], [18, 43], [18, 44], [18, 45], [18, 47], [18, 49], [18, 50], [18, 51], [18, 52], [18, 53], [18, 55], [18, 56], [19, 20], [19, 21], [19, 22], [19, 23], [19, 25], [19, 27], [19, 29], [19, 31], [19, 32], [19, 35], [19, 38], [19, 40], [19, 41], [19, 42], [19, 43], [19, 44], [19, 45], [19, 48], [19, 49], [19, 50], [19, 54], [19, 55], [20, 21], [20, 22], [20, 23], [20, 25], [20, 27], [20, 28], [20, 29], [20, 31], [20, 33], [20, 34], [20, 35], [20, 36], [20, 37], [20, 38], [20, 40], [20, 41], [20, 42], [20, 43], [20, 44], [20, 46], [20, 47], [20, 48], [20, 49], [20, 50], [20, 52], [20, 53], [20, 55], [21, 22], [21, 23], [21, 29], [21, 30], [21, 31], [21, 36], [21, 37], [21, 39], [21, 40], [21, 42], [21, 43], [21, 44], [21, 47], [21, 48], [21, 49], [21, 51], [21, 52], [21, 53], [21, 54], [21, 55], [21, 56], [22, 23], [22, 24], [22, 25], [22, 27], [22, 28], [22, 30], [22, 31], [22, 32], [22, 33], [22, 34], [22, 35], [22, 36], [22, 37], [22, 38], [22, 39], [22, 40], [22, 41], [22, 43], [22, 45], [22, 46], [22, 48], [22, 49], [22, 51], [22, 52], [22, 53], [22, 54], [22, 55], [22, 56], [23, 24], [23, 25], [23, 29], [23, 30], [23, 31], [23, 32], [23, 33], [23, 35], [23, 36], [23, 37], [23, 38], [23, 39], [23, 40], [23, 43], [23, 46], [23, 47], [23, 49], [23, 53], [23, 55], [23, 56], [24, 25], [24, 26], [24, 27], [24, 28], [24, 29], [24, 31], [24, 35], [24, 36], [24, 37], [24, 39], [24, 41], [24, 42], [24, 43], [24, 44], [24, 45], [24, 47], [24, 52], [24, 55], [25, 30], [25, 31], [25, 32], [25, 34], [25, 35], [25, 37], [25, 40], [25, 42], [25, 44], [25, 45], [25, 46], [25, 47], [25, 48], [25, 50], [25, 51], [25, 56], [26, 27], [26, 28], [26, 29], [26, 30], [26, 31], [26, 33], [26, 34], [26, 35], [26, 36], [26, 37], [26, 38], [26, 40], [26, 42], [26, 43], [26, 44], [26, 47], [26, 51], [26, 53], [26, 54], [26, 55], [26, 56], [27, 28], [27, 29], [27, 31], [27, 32], [27, 34], [27, 35], [27, 36], [27, 37], [27, 38], [27, 39], [27, 40], [27, 43], [27, 44], [27, 45], [27, 47], [27, 48], [27, 49], [27, 50], [27, 51], [27, 52], [27, 53], [27, 54], [27, 55], [28, 30], [28, 33], [28, 34], [28, 35], [28, 36], [28, 37], [28, 38], [28, 41], [28, 45], [28, 49], [28, 50], [28, 51], [28, 55], [28, 56], [29, 30], [29, 31], [29, 32], [29, 33], [29, 34], [29, 35], [29, 36], [29, 39], [29, 41], [29, 43], [29, 44], [29, 45], [29, 47], [29, 49], [29, 50], [29, 51], [29, 52], [29, 54], [29, 56], [30, 31], [30, 34], [30, 36], [30, 38], [30, 39], [30, 40], [30, 44], [30, 45], [30, 47], [30, 48], [30, 49], [30, 50], [30, 51], [30, 52], [30, 53], [30, 54], [30, 56], [31, 32], [31, 34], [31, 35], [31, 36], [31, 38], [31, 41], [31, 44], [31, 46], [31, 47], [31, 51], [31, 52], [31, 53], [31, 54], [31, 55], [31, 56], [32, 34], [32, 35], [32, 38], [32, 44], [32, 46], [32, 47], [32, 51], [32, 52], [32, 54], [32, 56], [33, 34], [33, 36], [33, 39], [33, 40], [33, 41], [33, 42], [33, 48], [33, 50], [33, 51], [33, 52], [33, 53], [33, 54], [33, 55], [34, 35], [34, 36], [34, 37], [34, 39], [34, 40], [34, 41], [34, 42], [34, 43], [34, 44], [34, 46], [34, 51], [34, 52], [34, 55], [34, 56], [35, 36], [35, 37], [35, 38], [35, 39], [35, 40], [35, 42], [35, 44], [35, 45], [35, 46], [35, 48], [35, 49], [35, 50], [35, 51], [35, 54], [35, 56], [36, 39], [36, 40], [36, 41], [36, 42], [36, 43], [36, 44], [36, 48], [36, 49], [36, 51], [36, 52], [36, 53], [36, 54], [36, 56], [37, 38], [37, 41], [37, 45], [37, 46], [37, 47], [37, 49], [37, 51], [37, 54], [37, 56], [38, 39], [38, 41], [38, 44], [38, 45], [38, 47], [38, 48], [38, 50], [38, 51], [38, 53], [38, 55], [38, 56], [39, 41], [39, 43], [39, 44], [39, 49], [39, 50], [39, 51], [39, 53], [39, 54], [39, 55], [40, 43], [40, 44], [40, 46], [40, 47], [40, 48], [40, 50], [40, 56], [41, 42], [41, 44], [41, 49], [41, 50], [41, 53], [41, 55], [41, 56], [42, 43], [42, 44], [42, 46], [42, 52], [42, 53], [42, 55], [43, 44], [43, 45], [43, 48], [43, 50], [43, 51], [43, 53], [43, 54], [43, 55], [44, 45], [44, 48], [44, 50], [44, 52], [44, 55], [45, 46], [45, 47], [45, 53], [45, 54], [45, 55], [45, 56], [46, 49], [46, 50], [46, 51], [46, 53], [46, 55], [46, 56], [47, 48], [47, 49], [47, 50], [47, 52], [47, 54], [47, 55], [47, 56], [48, 49], [48, 52], [48, 53], [48, 55], [48, 56], [49, 50], [49, 51], [49, 52], [49, 53], [49, 54], [49, 55], [49, 56], [50, 51], [50, 53], [50, 54], [51, 52], [51, 53], [51, 54], [51, 55], [51, 56], [52, 53], [52, 54], [52, 55], [52, 56], [53, 54], [53, 55], [53, 56], [54, 55], [54, 56], [55, 56]], "family": "mc_max_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-clique-l4-s1/solution/solve.sh b/tasks/construct-mc-max-clique-l4-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..115874b3c7333a07366a94597d700a252b41e92a --- /dev/null +++ b/tasks/construct-mc-max-clique-l4-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [10, 13, 14, 15, 20, 22, 28, 35, 37, 38]} +RLMATH_EOF diff --git a/tasks/construct-mc-max-clique-l4-s1/tests/check.py b/tasks/construct-mc-max-clique-l4-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e3f70dbd5b155a3514c2102aa4ad460201495210 --- /dev/null +++ b/tasks/construct-mc-max-clique-l4-s1/tests/check.py @@ -0,0 +1,18 @@ +"""Clique of size >= k in a given graph (MathConstraint max_clique decision version, CC-BY-4.0).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("clique"), None, 0, n - 1, "clique") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) < k: + raise Invalid(f"clique has {len(S)} vertices, need at least {k}") + E = {(u, v) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(S), 2): + if (u, v) not in E: + raise Invalid(f"vertices {u} and {v} are not adjacent") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-max-clique-l4-s1/tests/instance.json b/tasks/construct-mc-max-clique-l4-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ca76bbfd9663ea77ae8a5c65783cc41e18b64666 --- /dev/null +++ b/tasks/construct-mc-max-clique-l4-s1/tests/instance.json @@ -0,0 +1 @@ +{"n": 57, "k": 10, "edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 13], [0, 15], [0, 17], [0, 18], [0, 19], [0, 23], [0, 26], [0, 28], [0, 29], [0, 30], [0, 32], [0, 33], [0, 34], [0, 36], [0, 38], [0, 39], [0, 41], [0, 42], [0, 43], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 54], [0, 55], [0, 56], [1, 2], [1, 7], [1, 9], [1, 10], [1, 11], [1, 13], [1, 14], [1, 19], [1, 21], [1, 22], [1, 23], [1, 25], [1, 26], [1, 27], [1, 29], [1, 32], [1, 35], [1, 36], [1, 37], [1, 38], [1, 41], [1, 42], [1, 43], [1, 44], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 54], [1, 55], [1, 56], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 11], [2, 12], [2, 19], [2, 21], [2, 23], [2, 25], [2, 27], [2, 28], [2, 29], [2, 31], [2, 33], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 48], [2, 50], [2, 51], [2, 52], [2, 53], [2, 56], [3, 5], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 12], [3, 14], [3, 15], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 25], [3, 26], [3, 28], [3, 29], [3, 33], [3, 36], [3, 40], [3, 43], [3, 47], [3, 48], [3, 49], [3, 50], [3, 51], [3, 52], [3, 53], [3, 54], [3, 55], [3, 56], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 14], [4, 16], [4, 17], [4, 19], [4, 20], [4, 25], [4, 26], [4, 27], [4, 28], [4, 32], [4, 33], [4, 34], [4, 36], [4, 37], [4, 38], [4, 39], [4, 41], [4, 44], [4, 45], [4, 46], [4, 49], [4, 50], [4, 51], [4, 56], [5, 7], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [5, 21], [5, 22], [5, 23], [5, 24], [5, 25], [5, 26], [5, 27], [5, 29], [5, 30], [5, 32], [5, 33], [5, 34], [5, 35], [5, 36], [5, 38], [5, 39], [5, 41], [5, 42], [5, 43], [5, 44], [5, 47], [5, 48], [5, 49], [5, 51], [5, 52], [5, 54], [5, 56], [6, 7], [6, 10], [6, 12], [6, 13], [6, 16], [6, 22], [6, 23], [6, 24], [6, 25], [6, 26], [6, 27], [6, 28], [6, 29], [6, 31], [6, 33], [6, 34], [6, 35], [6, 36], [6, 40], [6, 41], [6, 42], [6, 43], [6, 45], [6, 47], [6, 48], [6, 49], [6, 50], [6, 53], [6, 54], [7, 8], [7, 10], [7, 11], [7, 12], [7, 14], [7, 15], [7, 16], [7, 21], [7, 22], [7, 25], [7, 26], [7, 27], [7, 28], [7, 31], [7, 34], [7, 35], [7, 36], [7, 37], [7, 38], [7, 39], [7, 41], [7, 43], [7, 44], [7, 45], [7, 47], [7, 48], [7, 49], [7, 51], [7, 52], [7, 53], [7, 55], [7, 56], [8, 9], [8, 10], [8, 11], [8, 13], [8, 14], [8, 17], [8, 19], [8, 24], [8, 28], [8, 29], [8, 30], [8, 31], [8, 32], [8, 34], [8, 35], [8, 36], [8, 37], [8, 38], [8, 40], [8, 43], [8, 45], [8, 46], [8, 48], [8, 50], [8, 51], [8, 52], [8, 53], [8, 54], [8, 55], [8, 56], [9, 10], [9, 11], [9, 12], [9, 13], [9, 17], [9, 20], [9, 21], [9, 23], [9, 24], [9, 25], [9, 26], [9, 27], [9, 31], [9, 33], [9, 34], [9, 36], [9, 43], [9, 44], [9, 45], [9, 46], [9, 51], [9, 52], [9, 53], [9, 56], [10, 13], [10, 14], [10, 15], [10, 17], [10, 18], [10, 19], [10, 20], [10, 21], [10, 22], [10, 23], [10, 24], [10, 25], [10, 27], [10, 28], [10, 30], [10, 31], [10, 35], [10, 36], [10, 37], [10, 38], [10, 39], [10, 40], [10, 41], [10, 42], [10, 44], [10, 45], [10, 47], [10, 48], [10, 49], [10, 50], [10, 51], [10, 52], [10, 53], [10, 54], [10, 55], [10, 56], [11, 15], [11, 16], [11, 20], [11, 22], [11, 23], [11, 24], [11, 27], [11, 28], [11, 32], [11, 34], [11, 35], [11, 36], [11, 38], [11, 40], [11, 41], [11, 42], [11, 43], [11, 44], [11, 47], [11, 48], [11, 49], [11, 51], [11, 52], [11, 53], [11, 54], [11, 55], [11, 56], [12, 14], [12, 15], [12, 16], [12, 17], [12, 18], [12, 19], [12, 20], [12, 21], [12, 22], [12, 23], [12, 25], [12, 28], [12, 31], [12, 33], [12, 34], [12, 35], [12, 37], [12, 40], [12, 41], [12, 42], [12, 43], [12, 44], [12, 47], [12, 48], [12, 49], [12, 51], [12, 52], [12, 53], [12, 54], [12, 55], [12, 56], [13, 14], [13, 15], [13, 16], [13, 17], [13, 18], [13, 19], [13, 20], [13, 22], [13, 23], [13, 27], [13, 28], [13, 29], [13, 30], [13, 31], [13, 32], [13, 33], [13, 35], [13, 37], [13, 38], [13, 41], [13, 42], [13, 43], [13, 45], [13, 46], [13, 47], [13, 50], [13, 52], [13, 54], [13, 55], [14, 15], [14, 16], [14, 19], [14, 20], [14, 21], [14, 22], [14, 28], [14, 31], [14, 32], [14, 33], [14, 35], [14, 37], [14, 38], [14, 40], [14, 43], [14, 44], [14, 47], [14, 48], [14, 50], [14, 51], [14, 52], [14, 53], [14, 54], [14, 55], [14, 56], [15, 16], [15, 20], [15, 21], [15, 22], [15, 24], [15, 27], [15, 28], [15, 29], [15, 30], [15, 31], [15, 32], [15, 34], [15, 35], [15, 36], [15, 37], [15, 38], [15, 39], [15, 42], [15, 43], [15, 45], [15, 47], [15, 49], [15, 51], [15, 53], [15, 55], [16, 17], [16, 19], [16, 20], [16, 22], [16, 23], [16, 24], [16, 25], [16, 26], [16, 27], [16, 28], [16, 29], [16, 30], [16, 31], [16, 33], [16, 35], [16, 37], [16, 39], [16, 40], [16, 42], [16, 43], [16, 44], [16, 45], [16, 46], [16, 47], [16, 48], [16, 49], [16, 50], [16, 51], [16, 53], [16, 54], [16, 55], [16, 56], [17, 18], [17, 19], [17, 20], [17, 22], [17, 24], [17, 25], [17, 26], [17, 27], [17, 28], [17, 29], [17, 30], [17, 31], [17, 35], [17, 36], [17, 37], [17, 39], [17, 40], [17, 43], [17, 47], [17, 49], [17, 50], [17, 51], [17, 52], [17, 53], [17, 54], [17, 55], [17, 56], [18, 19], [18, 20], [18, 21], [18, 23], [18, 25], [18, 26], [18, 28], [18, 29], [18, 31], [18, 32], [18, 33], [18, 34], [18, 36], [18, 38], [18, 40], [18, 41], [18, 42], [18, 43], [18, 44], [18, 45], [18, 47], [18, 49], [18, 50], [18, 51], [18, 52], [18, 53], [18, 55], [18, 56], [19, 20], [19, 21], [19, 22], [19, 23], [19, 25], [19, 27], [19, 29], [19, 31], [19, 32], [19, 35], [19, 38], [19, 40], [19, 41], [19, 42], [19, 43], [19, 44], [19, 45], [19, 48], [19, 49], [19, 50], [19, 54], [19, 55], [20, 21], [20, 22], [20, 23], [20, 25], [20, 27], [20, 28], [20, 29], [20, 31], [20, 33], [20, 34], [20, 35], [20, 36], [20, 37], [20, 38], [20, 40], [20, 41], [20, 42], [20, 43], [20, 44], [20, 46], [20, 47], [20, 48], [20, 49], [20, 50], [20, 52], [20, 53], [20, 55], [21, 22], [21, 23], [21, 29], [21, 30], [21, 31], [21, 36], [21, 37], [21, 39], [21, 40], [21, 42], [21, 43], [21, 44], [21, 47], [21, 48], [21, 49], [21, 51], [21, 52], [21, 53], [21, 54], [21, 55], [21, 56], [22, 23], [22, 24], [22, 25], [22, 27], [22, 28], [22, 30], [22, 31], [22, 32], [22, 33], [22, 34], [22, 35], [22, 36], [22, 37], [22, 38], [22, 39], [22, 40], [22, 41], [22, 43], [22, 45], [22, 46], [22, 48], [22, 49], [22, 51], [22, 52], [22, 53], [22, 54], [22, 55], [22, 56], [23, 24], [23, 25], [23, 29], [23, 30], [23, 31], [23, 32], [23, 33], [23, 35], [23, 36], [23, 37], [23, 38], [23, 39], [23, 40], [23, 43], [23, 46], [23, 47], [23, 49], [23, 53], [23, 55], [23, 56], [24, 25], [24, 26], [24, 27], [24, 28], [24, 29], [24, 31], [24, 35], [24, 36], [24, 37], [24, 39], [24, 41], [24, 42], [24, 43], [24, 44], [24, 45], [24, 47], [24, 52], [24, 55], [25, 30], [25, 31], [25, 32], [25, 34], [25, 35], [25, 37], [25, 40], [25, 42], [25, 44], [25, 45], [25, 46], [25, 47], [25, 48], [25, 50], [25, 51], [25, 56], [26, 27], [26, 28], [26, 29], [26, 30], [26, 31], [26, 33], [26, 34], [26, 35], [26, 36], [26, 37], [26, 38], [26, 40], [26, 42], [26, 43], [26, 44], [26, 47], [26, 51], [26, 53], [26, 54], [26, 55], [26, 56], [27, 28], [27, 29], [27, 31], [27, 32], [27, 34], [27, 35], [27, 36], [27, 37], [27, 38], [27, 39], [27, 40], [27, 43], [27, 44], [27, 45], [27, 47], [27, 48], [27, 49], [27, 50], [27, 51], [27, 52], [27, 53], [27, 54], [27, 55], [28, 30], [28, 33], [28, 34], [28, 35], [28, 36], [28, 37], [28, 38], [28, 41], [28, 45], [28, 49], [28, 50], [28, 51], [28, 55], [28, 56], [29, 30], [29, 31], [29, 32], [29, 33], [29, 34], [29, 35], [29, 36], [29, 39], [29, 41], [29, 43], [29, 44], [29, 45], [29, 47], [29, 49], [29, 50], [29, 51], [29, 52], [29, 54], [29, 56], [30, 31], [30, 34], [30, 36], [30, 38], [30, 39], [30, 40], [30, 44], [30, 45], [30, 47], [30, 48], [30, 49], [30, 50], [30, 51], [30, 52], [30, 53], [30, 54], [30, 56], [31, 32], [31, 34], [31, 35], [31, 36], [31, 38], [31, 41], [31, 44], [31, 46], [31, 47], [31, 51], [31, 52], [31, 53], [31, 54], [31, 55], [31, 56], [32, 34], [32, 35], [32, 38], [32, 44], [32, 46], [32, 47], [32, 51], [32, 52], [32, 54], [32, 56], [33, 34], [33, 36], [33, 39], [33, 40], [33, 41], [33, 42], [33, 48], [33, 50], [33, 51], [33, 52], [33, 53], [33, 54], [33, 55], [34, 35], [34, 36], [34, 37], [34, 39], [34, 40], [34, 41], [34, 42], [34, 43], [34, 44], [34, 46], [34, 51], [34, 52], [34, 55], [34, 56], [35, 36], [35, 37], [35, 38], [35, 39], [35, 40], [35, 42], [35, 44], [35, 45], [35, 46], [35, 48], [35, 49], [35, 50], [35, 51], [35, 54], [35, 56], [36, 39], [36, 40], [36, 41], [36, 42], [36, 43], [36, 44], [36, 48], [36, 49], [36, 51], [36, 52], [36, 53], [36, 54], [36, 56], [37, 38], [37, 41], [37, 45], [37, 46], [37, 47], [37, 49], [37, 51], [37, 54], [37, 56], [38, 39], [38, 41], [38, 44], [38, 45], [38, 47], [38, 48], [38, 50], [38, 51], [38, 53], [38, 55], [38, 56], [39, 41], [39, 43], [39, 44], [39, 49], [39, 50], [39, 51], [39, 53], [39, 54], [39, 55], [40, 43], [40, 44], [40, 46], [40, 47], [40, 48], [40, 50], [40, 56], [41, 42], [41, 44], [41, 49], [41, 50], [41, 53], [41, 55], [41, 56], [42, 43], [42, 44], [42, 46], [42, 52], [42, 53], [42, 55], [43, 44], [43, 45], [43, 48], [43, 50], [43, 51], [43, 53], [43, 54], [43, 55], [44, 45], [44, 48], [44, 50], [44, 52], [44, 55], [45, 46], [45, 47], [45, 53], [45, 54], [45, 55], [45, 56], [46, 49], [46, 50], [46, 51], [46, 53], [46, 55], [46, 56], [47, 48], [47, 49], [47, 50], [47, 52], [47, 54], [47, 55], [47, 56], [48, 49], [48, 52], [48, 53], [48, 55], [48, 56], [49, 50], [49, 51], [49, 52], [49, 53], [49, 54], [49, 55], [49, 56], [50, 51], [50, 53], [50, 54], [51, 52], [51, 53], [51, 54], [51, 55], [51, 56], [52, 53], [52, 54], [52, 55], [52, 56], [53, 54], [53, 55], [53, 56], [54, 55], [54, 56], [55, 56]], "family": "mc_max_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-clique-l4-s1/tests/run.py b/tasks/construct-mc-max-clique-l4-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-max-clique-l4-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-max-clique-l4-s1/tests/test.sh b/tasks/construct-mc-max-clique-l4-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-max-clique-l4-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-max-clique-l4-s6/environment/Dockerfile b/tasks/construct-mc-max-clique-l4-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-max-clique-l4-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-max-clique-l4-s6/environment/instance.json b/tasks/construct-mc-max-clique-l4-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..25db07b06434ab1addd1153310463316c13d616b --- /dev/null +++ b/tasks/construct-mc-max-clique-l4-s6/environment/instance.json @@ -0,0 +1 @@ +{"n": 46, "k": 8, "edges": [[0, 1], [0, 3], [0, 5], [0, 7], [0, 8], [0, 10], [0, 11], [0, 12], [0, 14], [0, 16], [0, 18], [0, 19], [0, 21], [0, 23], [0, 25], [0, 27], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 36], [0, 37], [0, 38], [0, 40], [0, 43], [0, 45], [1, 4], [1, 6], [1, 11], [1, 12], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 23], [1, 25], [1, 26], [1, 27], [1, 31], [1, 32], [1, 34], [1, 36], [1, 37], [1, 38], [1, 40], [1, 42], [1, 43], [2, 3], [2, 4], [2, 6], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 17], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 28], [2, 29], [2, 30], [2, 34], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [3, 4], [3, 5], [3, 9], [3, 11], [3, 13], [3, 18], [3, 19], [3, 21], [3, 25], [3, 26], [3, 27], [3, 29], [3, 34], [3, 35], [3, 36], [3, 38], [3, 42], [3, 43], [3, 44], [3, 45], [4, 5], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 13], [4, 14], [4, 18], [4, 21], [4, 22], [4, 23], [4, 25], [4, 26], [4, 28], [4, 29], [4, 33], [4, 35], [4, 37], [4, 38], [4, 40], [4, 42], [4, 43], [4, 44], [5, 7], [5, 9], [5, 10], [5, 11], [5, 13], [5, 14], [5, 15], [5, 16], [5, 18], [5, 20], [5, 23], [5, 24], [5, 25], [5, 26], [5, 31], [5, 33], [5, 34], [5, 36], [5, 37], [5, 38], [5, 39], [5, 42], [5, 43], [5, 44], [6, 7], [6, 8], [6, 9], [6, 10], [6, 12], [6, 13], [6, 14], [6, 15], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [6, 23], [6, 27], [6, 28], [6, 31], [6, 36], [6, 38], [6, 39], [6, 40], [6, 41], [6, 45], [7, 8], [7, 9], [7, 10], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [7, 21], [7, 22], [7, 24], [7, 25], [7, 27], [7, 28], [7, 29], [7, 32], [7, 33], [7, 34], [7, 35], [7, 36], [7, 37], [7, 38], [7, 39], [7, 40], [7, 41], [7, 42], [7, 43], [8, 11], [8, 12], [8, 15], [8, 20], [8, 21], [8, 22], [8, 24], [8, 27], [8, 33], [8, 35], [8, 36], [8, 37], [8, 38], [8, 42], [8, 44], [9, 11], [9, 12], [9, 13], [9, 15], [9, 16], [9, 17], [9, 18], [9, 19], [9, 25], [9, 26], [9, 27], [9, 31], [9, 36], [9, 38], [9, 40], [9, 43], [9, 45], [10, 11], [10, 12], [10, 14], [10, 16], [10, 20], [10, 21], [10, 22], [10, 23], [10, 24], [10, 26], [10, 27], [10, 29], [10, 30], [10, 31], [10, 34], [10, 35], [10, 36], [10, 37], [10, 38], [10, 39], [10, 40], [10, 42], [11, 12], [11, 17], [11, 20], [11, 22], [11, 24], [11, 25], [11, 28], [11, 30], [11, 33], [11, 34], [11, 35], [11, 36], [11, 38], [11, 39], [11, 40], [11, 41], [11, 43], [11, 45], [12, 13], [12, 14], [12, 16], [12, 18], [12, 19], [12, 20], [12, 21], [12, 22], [12, 23], [12, 26], [12, 28], [12, 29], [12, 30], [12, 31], [12, 33], [12, 34], [12, 36], [12, 38], [12, 43], [12, 44], [12, 45], [13, 15], [13, 16], [13, 17], [13, 19], [13, 20], [13, 21], [13, 23], [13, 24], [13, 25], [13, 27], [13, 28], [13, 29], [13, 31], [13, 33], [13, 34], [13, 35], [13, 36], [13, 38], [13, 39], [13, 40], [13, 41], [13, 42], [14, 17], [14, 18], [14, 19], [14, 20], [14, 21], [14, 22], [14, 23], [14, 26], [14, 29], [14, 30], [14, 32], [14, 36], [14, 38], [14, 43], [15, 16], [15, 18], [15, 19], [15, 20], [15, 23], [15, 25], [15, 26], [15, 27], [15, 29], [15, 30], [15, 31], [15, 33], [15, 38], [15, 40], [15, 41], [15, 43], [16, 17], [16, 18], [16, 19], [16, 20], [16, 21], [16, 23], [16, 25], [16, 27], [16, 29], [16, 31], [16, 35], [16, 37], [16, 39], [16, 40], [16, 41], [16, 42], [17, 18], [17, 19], [17, 21], [17, 23], [17, 24], [17, 26], [17, 27], [17, 28], [17, 29], [17, 30], [17, 35], [17, 38], [17, 40], [17, 42], [17, 43], [17, 44], [17, 45], [18, 20], [18, 21], [18, 23], [18, 27], [18, 28], [18, 29], [18, 31], [18, 33], [18, 35], [18, 37], [18, 38], [18, 39], [18, 40], [18, 41], [18, 42], [19, 20], [19, 21], [19, 24], [19, 25], [19, 28], [19, 29], [19, 30], [19, 31], [19, 32], [19, 36], [19, 41], [19, 43], [19, 44], [19, 45], [20, 23], [20, 25], [20, 34], [20, 35], [20, 36], [20, 37], [20, 38], [20, 40], [20, 41], [20, 42], [20, 43], [20, 44], [20, 45], [21, 22], [21, 23], [21, 25], [21, 26], [21, 27], [21, 28], [21, 29], [21, 30], [21, 31], [21, 32], [21, 33], [21, 34], [21, 35], [21, 36], [21, 37], [21, 41], [21, 43], [21, 45], [22, 25], [22, 26], [22, 27], [22, 30], [22, 31], [22, 32], [22, 33], [22, 34], [22, 35], [22, 36], [22, 37], [22, 38], [22, 40], [22, 41], [23, 24], [23, 25], [23, 26], [23, 27], [23, 28], [23, 29], [23, 32], [23, 34], [23, 35], [23, 36], [23, 39], [23, 41], [23, 43], [23, 44], [24, 26], [24, 27], [24, 28], [24, 29], [24, 30], [24, 31], [24, 33], [24, 35], [24, 37], [24, 38], [24, 41], [24, 42], [24, 43], [24, 44], [24, 45], [25, 27], [25, 30], [25, 31], [25, 32], [25, 35], [25, 38], [25, 39], [25, 40], [25, 42], [26, 29], [26, 30], [26, 32], [26, 37], [26, 38], [26, 39], [26, 40], [26, 43], [26, 44], [26, 45], [27, 29], [27, 30], [27, 34], [27, 36], [27, 37], [27, 38], [27, 40], [27, 41], [27, 42], [27, 44], [27, 45], [28, 30], [28, 31], [28, 33], [28, 34], [28, 36], [28, 37], [28, 40], [28, 41], [28, 42], [28, 43], [28, 45], [29, 30], [29, 31], [29, 32], [29, 33], [29, 34], [29, 35], [29, 37], [29, 38], [29, 39], [29, 40], [29, 42], [29, 45], [30, 31], [30, 33], [30, 34], [30, 35], [30, 37], [30, 38], [30, 41], [30, 44], [30, 45], [31, 32], [31, 33], [31, 35], [31, 38], [31, 39], [31, 40], [31, 42], [31, 44], [32, 34], [32, 35], [32, 36], [32, 37], [32, 39], [33, 34], [33, 35], [33, 38], [33, 40], [33, 41], [33, 43], [33, 44], [33, 45], [34, 37], [34, 41], [34, 42], [34, 44], [35, 37], [35, 38], [35, 39], [35, 40], [35, 42], [35, 44], [35, 45], [36, 37], [36, 40], [36, 41], [36, 42], [36, 44], [37, 38], [37, 41], [37, 44], [38, 42], [38, 44], [38, 45], [39, 40], [39, 43], [39, 44], [39, 45], [40, 41], [40, 42], [40, 43], [40, 45], [41, 42], [42, 43], [43, 44]], "family": "mc_max_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-clique-l4-s6/solution/solve.sh b/tasks/construct-mc-max-clique-l4-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..67b804bd55b0f9118ff6f5e385d34575fbfedb7d --- /dev/null +++ b/tasks/construct-mc-max-clique-l4-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [7, 16, 17, 18, 27, 29, 40, 42]} +RLMATH_EOF diff --git a/tasks/construct-mc-max-clique-l4-s6/tests/check.py b/tasks/construct-mc-max-clique-l4-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e3f70dbd5b155a3514c2102aa4ad460201495210 --- /dev/null +++ b/tasks/construct-mc-max-clique-l4-s6/tests/check.py @@ -0,0 +1,18 @@ +"""Clique of size >= k in a given graph (MathConstraint max_clique decision version, CC-BY-4.0).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("clique"), None, 0, n - 1, "clique") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) < k: + raise Invalid(f"clique has {len(S)} vertices, need at least {k}") + E = {(u, v) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(S), 2): + if (u, v) not in E: + raise Invalid(f"vertices {u} and {v} are not adjacent") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-max-clique-l4-s6/tests/instance.json b/tasks/construct-mc-max-clique-l4-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..25db07b06434ab1addd1153310463316c13d616b --- /dev/null +++ b/tasks/construct-mc-max-clique-l4-s6/tests/instance.json @@ -0,0 +1 @@ +{"n": 46, "k": 8, "edges": [[0, 1], [0, 3], [0, 5], [0, 7], [0, 8], [0, 10], [0, 11], [0, 12], [0, 14], [0, 16], [0, 18], [0, 19], [0, 21], [0, 23], [0, 25], [0, 27], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 36], [0, 37], [0, 38], [0, 40], [0, 43], [0, 45], [1, 4], [1, 6], [1, 11], [1, 12], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 23], [1, 25], [1, 26], [1, 27], [1, 31], [1, 32], [1, 34], [1, 36], [1, 37], [1, 38], [1, 40], [1, 42], [1, 43], [2, 3], [2, 4], [2, 6], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 17], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 28], [2, 29], [2, 30], [2, 34], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [3, 4], [3, 5], [3, 9], [3, 11], [3, 13], [3, 18], [3, 19], [3, 21], [3, 25], [3, 26], [3, 27], [3, 29], [3, 34], [3, 35], [3, 36], [3, 38], [3, 42], [3, 43], [3, 44], [3, 45], [4, 5], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 13], [4, 14], [4, 18], [4, 21], [4, 22], [4, 23], [4, 25], [4, 26], [4, 28], [4, 29], [4, 33], [4, 35], [4, 37], [4, 38], [4, 40], [4, 42], [4, 43], [4, 44], [5, 7], [5, 9], [5, 10], [5, 11], [5, 13], [5, 14], [5, 15], [5, 16], [5, 18], [5, 20], [5, 23], [5, 24], [5, 25], [5, 26], [5, 31], [5, 33], [5, 34], [5, 36], [5, 37], [5, 38], [5, 39], [5, 42], [5, 43], [5, 44], [6, 7], [6, 8], [6, 9], [6, 10], [6, 12], [6, 13], [6, 14], [6, 15], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [6, 23], [6, 27], [6, 28], [6, 31], [6, 36], [6, 38], [6, 39], [6, 40], [6, 41], [6, 45], [7, 8], [7, 9], [7, 10], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [7, 21], [7, 22], [7, 24], [7, 25], [7, 27], [7, 28], [7, 29], [7, 32], [7, 33], [7, 34], [7, 35], [7, 36], [7, 37], [7, 38], [7, 39], [7, 40], [7, 41], [7, 42], [7, 43], [8, 11], [8, 12], [8, 15], [8, 20], [8, 21], [8, 22], [8, 24], [8, 27], [8, 33], [8, 35], [8, 36], [8, 37], [8, 38], [8, 42], [8, 44], [9, 11], [9, 12], [9, 13], [9, 15], [9, 16], [9, 17], [9, 18], [9, 19], [9, 25], [9, 26], [9, 27], [9, 31], [9, 36], [9, 38], [9, 40], [9, 43], [9, 45], [10, 11], [10, 12], [10, 14], [10, 16], [10, 20], [10, 21], [10, 22], [10, 23], [10, 24], [10, 26], [10, 27], [10, 29], [10, 30], [10, 31], [10, 34], [10, 35], [10, 36], [10, 37], [10, 38], [10, 39], [10, 40], [10, 42], [11, 12], [11, 17], [11, 20], [11, 22], [11, 24], [11, 25], [11, 28], [11, 30], [11, 33], [11, 34], [11, 35], [11, 36], [11, 38], [11, 39], [11, 40], [11, 41], [11, 43], [11, 45], [12, 13], [12, 14], [12, 16], [12, 18], [12, 19], [12, 20], [12, 21], [12, 22], [12, 23], [12, 26], [12, 28], [12, 29], [12, 30], [12, 31], [12, 33], [12, 34], [12, 36], [12, 38], [12, 43], [12, 44], [12, 45], [13, 15], [13, 16], [13, 17], [13, 19], [13, 20], [13, 21], [13, 23], [13, 24], [13, 25], [13, 27], [13, 28], [13, 29], [13, 31], [13, 33], [13, 34], [13, 35], [13, 36], [13, 38], [13, 39], [13, 40], [13, 41], [13, 42], [14, 17], [14, 18], [14, 19], [14, 20], [14, 21], [14, 22], [14, 23], [14, 26], [14, 29], [14, 30], [14, 32], [14, 36], [14, 38], [14, 43], [15, 16], [15, 18], [15, 19], [15, 20], [15, 23], [15, 25], [15, 26], [15, 27], [15, 29], [15, 30], [15, 31], [15, 33], [15, 38], [15, 40], [15, 41], [15, 43], [16, 17], [16, 18], [16, 19], [16, 20], [16, 21], [16, 23], [16, 25], [16, 27], [16, 29], [16, 31], [16, 35], [16, 37], [16, 39], [16, 40], [16, 41], [16, 42], [17, 18], [17, 19], [17, 21], [17, 23], [17, 24], [17, 26], [17, 27], [17, 28], [17, 29], [17, 30], [17, 35], [17, 38], [17, 40], [17, 42], [17, 43], [17, 44], [17, 45], [18, 20], [18, 21], [18, 23], [18, 27], [18, 28], [18, 29], [18, 31], [18, 33], [18, 35], [18, 37], [18, 38], [18, 39], [18, 40], [18, 41], [18, 42], [19, 20], [19, 21], [19, 24], [19, 25], [19, 28], [19, 29], [19, 30], [19, 31], [19, 32], [19, 36], [19, 41], [19, 43], [19, 44], [19, 45], [20, 23], [20, 25], [20, 34], [20, 35], [20, 36], [20, 37], [20, 38], [20, 40], [20, 41], [20, 42], [20, 43], [20, 44], [20, 45], [21, 22], [21, 23], [21, 25], [21, 26], [21, 27], [21, 28], [21, 29], [21, 30], [21, 31], [21, 32], [21, 33], [21, 34], [21, 35], [21, 36], [21, 37], [21, 41], [21, 43], [21, 45], [22, 25], [22, 26], [22, 27], [22, 30], [22, 31], [22, 32], [22, 33], [22, 34], [22, 35], [22, 36], [22, 37], [22, 38], [22, 40], [22, 41], [23, 24], [23, 25], [23, 26], [23, 27], [23, 28], [23, 29], [23, 32], [23, 34], [23, 35], [23, 36], [23, 39], [23, 41], [23, 43], [23, 44], [24, 26], [24, 27], [24, 28], [24, 29], [24, 30], [24, 31], [24, 33], [24, 35], [24, 37], [24, 38], [24, 41], [24, 42], [24, 43], [24, 44], [24, 45], [25, 27], [25, 30], [25, 31], [25, 32], [25, 35], [25, 38], [25, 39], [25, 40], [25, 42], [26, 29], [26, 30], [26, 32], [26, 37], [26, 38], [26, 39], [26, 40], [26, 43], [26, 44], [26, 45], [27, 29], [27, 30], [27, 34], [27, 36], [27, 37], [27, 38], [27, 40], [27, 41], [27, 42], [27, 44], [27, 45], [28, 30], [28, 31], [28, 33], [28, 34], [28, 36], [28, 37], [28, 40], [28, 41], [28, 42], [28, 43], [28, 45], [29, 30], [29, 31], [29, 32], [29, 33], [29, 34], [29, 35], [29, 37], [29, 38], [29, 39], [29, 40], [29, 42], [29, 45], [30, 31], [30, 33], [30, 34], [30, 35], [30, 37], [30, 38], [30, 41], [30, 44], [30, 45], [31, 32], [31, 33], [31, 35], [31, 38], [31, 39], [31, 40], [31, 42], [31, 44], [32, 34], [32, 35], [32, 36], [32, 37], [32, 39], [33, 34], [33, 35], [33, 38], [33, 40], [33, 41], [33, 43], [33, 44], [33, 45], [34, 37], [34, 41], [34, 42], [34, 44], [35, 37], [35, 38], [35, 39], [35, 40], [35, 42], [35, 44], [35, 45], [36, 37], [36, 40], [36, 41], [36, 42], [36, 44], [37, 38], [37, 41], [37, 44], [38, 42], [38, 44], [38, 45], [39, 40], [39, 43], [39, 44], [39, 45], [40, 41], [40, 42], [40, 43], [40, 45], [41, 42], [42, 43], [43, 44]], "family": "mc_max_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-clique-l4-s6/tests/run.py b/tasks/construct-mc-max-clique-l4-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-max-clique-l4-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-max-clique-l4-s6/tests/test.sh b/tasks/construct-mc-max-clique-l4-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-max-clique-l4-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-max-independent-set-l3-s2/environment/Dockerfile b/tasks/construct-mc-max-independent-set-l3-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l3-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-max-independent-set-l3-s2/environment/instance.json b/tasks/construct-mc-max-independent-set-l3-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2619d35ceb73a343028e0863fa8d167c0f3f01f4 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l3-s2/environment/instance.json @@ -0,0 +1 @@ +{"n": 45, "k": 11, "edges": [[0, 8], [0, 18], [0, 19], [0, 23], [0, 24], [0, 25], [0, 30], [0, 31], [0, 34], [0, 36], [0, 38], [0, 41], [0, 42], [1, 5], [1, 13], [1, 16], [1, 18], [1, 21], [1, 26], [1, 32], [1, 34], [1, 44], [2, 4], [2, 5], [2, 7], [2, 8], [2, 13], [2, 15], [2, 16], [2, 20], [2, 21], [2, 24], [2, 26], [2, 33], [2, 36], [2, 37], [2, 41], [2, 42], [3, 7], [3, 9], [3, 23], [3, 27], [3, 28], [3, 33], [3, 39], [3, 42], [3, 43], [4, 8], [4, 9], [4, 15], [4, 20], [4, 23], [4, 26], [4, 29], [4, 31], [4, 35], [4, 37], [4, 40], [4, 43], [5, 9], [5, 10], [5, 14], [5, 19], [5, 22], [5, 24], [5, 26], [5, 28], [5, 34], [5, 35], [5, 41], [5, 42], [5, 43], [5, 44], [6, 9], [6, 13], [6, 14], [6, 21], [6, 25], [6, 32], [6, 34], [6, 38], [6, 41], [7, 8], [7, 10], [7, 11], [7, 14], [7, 15], [7, 20], [7, 21], [7, 29], [7, 32], [7, 33], [7, 40], [7, 41], [8, 11], [8, 13], [8, 19], [8, 21], [8, 25], [8, 33], [8, 36], [8, 44], [9, 11], [9, 14], [9, 18], [9, 22], [9, 25], [9, 27], [9, 30], [9, 31], [9, 35], [9, 37], [9, 38], [9, 39], [9, 43], [10, 11], [10, 17], [10, 18], [10, 20], [10, 22], [10, 26], [10, 28], [10, 29], [10, 35], [10, 36], [10, 37], [10, 38], [10, 39], [10, 41], [11, 12], [11, 20], [11, 24], [11, 25], [11, 27], [11, 34], [11, 36], [11, 37], [11, 38], [12, 16], [12, 22], [12, 26], [12, 29], [12, 38], [12, 40], [12, 43], [13, 16], [13, 17], [13, 19], [13, 23], [13, 27], [13, 30], [13, 31], [13, 38], [13, 40], [13, 44], [14, 15], [14, 22], [14, 24], [14, 27], [14, 29], [14, 34], [14, 35], [14, 36], [14, 38], [14, 43], [14, 44], [15, 16], [15, 20], [15, 25], [15, 31], [15, 33], [15, 34], [15, 37], [15, 43], [15, 44], [16, 17], [16, 20], [16, 22], [16, 23], [16, 25], [16, 35], [16, 39], [16, 44], [17, 21], [17, 26], [17, 31], [17, 33], [17, 34], [17, 37], [17, 38], [17, 41], [18, 19], [18, 31], [18, 34], [18, 42], [18, 43], [18, 44], [19, 20], [19, 21], [19, 24], [19, 30], [19, 31], [19, 37], [19, 39], [19, 41], [19, 44], [20, 24], [20, 25], [20, 27], [20, 28], [20, 37], [20, 40], [20, 41], [20, 42], [21, 24], [21, 26], [21, 29], [21, 34], [21, 38], [21, 40], [21, 44], [22, 26], [22, 41], [23, 24], [23, 38], [24, 26], [24, 31], [24, 33], [24, 34], [24, 37], [24, 38], [24, 41], [24, 43], [25, 27], [25, 29], [25, 30], [25, 32], [25, 33], [25, 34], [25, 37], [26, 36], [26, 37], [26, 40], [27, 32], [27, 36], [27, 43], [28, 33], [28, 34], [28, 37], [29, 32], [29, 33], [29, 35], [29, 43], [30, 31], [30, 32], [30, 34], [30, 37], [30, 38], [31, 40], [31, 44], [32, 34], [32, 35], [32, 36], [32, 38], [32, 44], [33, 35], [33, 36], [33, 41], [33, 42], [33, 44], [34, 35], [34, 38], [34, 41], [34, 43], [35, 36], [35, 41], [35, 44], [36, 37], [36, 43], [37, 42], [39, 41], [39, 43], [40, 41], [40, 44], [43, 44]], "family": "mc_max_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-independent-set-l3-s2/solution/solve.sh b/tasks/construct-mc-max-independent-set-l3-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad6fe3a6141bf9c94ace728b2d6ee2dfba8d816d --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l3-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"independent_set": [1, 6, 17, 23, 27, 28, 30, 35, 39, 40, 42]} +RLMATH_EOF diff --git a/tasks/construct-mc-max-independent-set-l3-s2/tests/check.py b/tasks/construct-mc-max-independent-set-l3-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..adce413e8578d996549583b990e4ff559f38ed41 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l3-s2/tests/check.py @@ -0,0 +1,18 @@ +"""Independent set of size >= k in a given graph (MathConstraint max_independent_set, CC-BY-4.0).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("independent_set"), None, 0, n - 1, "independent_set") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) < k: + raise Invalid(f"set has {len(S)} vertices, need at least {k}") + E = {(u, v) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(S), 2): + if (u, v) in E: + raise Invalid(f"vertices {u} and {v} are adjacent") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-max-independent-set-l3-s2/tests/instance.json b/tasks/construct-mc-max-independent-set-l3-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2619d35ceb73a343028e0863fa8d167c0f3f01f4 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l3-s2/tests/instance.json @@ -0,0 +1 @@ +{"n": 45, "k": 11, "edges": [[0, 8], [0, 18], [0, 19], [0, 23], [0, 24], [0, 25], [0, 30], [0, 31], [0, 34], [0, 36], [0, 38], [0, 41], [0, 42], [1, 5], [1, 13], [1, 16], [1, 18], [1, 21], [1, 26], [1, 32], [1, 34], [1, 44], [2, 4], [2, 5], [2, 7], [2, 8], [2, 13], [2, 15], [2, 16], [2, 20], [2, 21], [2, 24], [2, 26], [2, 33], [2, 36], [2, 37], [2, 41], [2, 42], [3, 7], [3, 9], [3, 23], [3, 27], [3, 28], [3, 33], [3, 39], [3, 42], [3, 43], [4, 8], [4, 9], [4, 15], [4, 20], [4, 23], [4, 26], [4, 29], [4, 31], [4, 35], [4, 37], [4, 40], [4, 43], [5, 9], [5, 10], [5, 14], [5, 19], [5, 22], [5, 24], [5, 26], [5, 28], [5, 34], [5, 35], [5, 41], [5, 42], [5, 43], [5, 44], [6, 9], [6, 13], [6, 14], [6, 21], [6, 25], [6, 32], [6, 34], [6, 38], [6, 41], [7, 8], [7, 10], [7, 11], [7, 14], [7, 15], [7, 20], [7, 21], [7, 29], [7, 32], [7, 33], [7, 40], [7, 41], [8, 11], [8, 13], [8, 19], [8, 21], [8, 25], [8, 33], [8, 36], [8, 44], [9, 11], [9, 14], [9, 18], [9, 22], [9, 25], [9, 27], [9, 30], [9, 31], [9, 35], [9, 37], [9, 38], [9, 39], [9, 43], [10, 11], [10, 17], [10, 18], [10, 20], [10, 22], [10, 26], [10, 28], [10, 29], [10, 35], [10, 36], [10, 37], [10, 38], [10, 39], [10, 41], [11, 12], [11, 20], [11, 24], [11, 25], [11, 27], [11, 34], [11, 36], [11, 37], [11, 38], [12, 16], [12, 22], [12, 26], [12, 29], [12, 38], [12, 40], [12, 43], [13, 16], [13, 17], [13, 19], [13, 23], [13, 27], [13, 30], [13, 31], [13, 38], [13, 40], [13, 44], [14, 15], [14, 22], [14, 24], [14, 27], [14, 29], [14, 34], [14, 35], [14, 36], [14, 38], [14, 43], [14, 44], [15, 16], [15, 20], [15, 25], [15, 31], [15, 33], [15, 34], [15, 37], [15, 43], [15, 44], [16, 17], [16, 20], [16, 22], [16, 23], [16, 25], [16, 35], [16, 39], [16, 44], [17, 21], [17, 26], [17, 31], [17, 33], [17, 34], [17, 37], [17, 38], [17, 41], [18, 19], [18, 31], [18, 34], [18, 42], [18, 43], [18, 44], [19, 20], [19, 21], [19, 24], [19, 30], [19, 31], [19, 37], [19, 39], [19, 41], [19, 44], [20, 24], [20, 25], [20, 27], [20, 28], [20, 37], [20, 40], [20, 41], [20, 42], [21, 24], [21, 26], [21, 29], [21, 34], [21, 38], [21, 40], [21, 44], [22, 26], [22, 41], [23, 24], [23, 38], [24, 26], [24, 31], [24, 33], [24, 34], [24, 37], [24, 38], [24, 41], [24, 43], [25, 27], [25, 29], [25, 30], [25, 32], [25, 33], [25, 34], [25, 37], [26, 36], [26, 37], [26, 40], [27, 32], [27, 36], [27, 43], [28, 33], [28, 34], [28, 37], [29, 32], [29, 33], [29, 35], [29, 43], [30, 31], [30, 32], [30, 34], [30, 37], [30, 38], [31, 40], [31, 44], [32, 34], [32, 35], [32, 36], [32, 38], [32, 44], [33, 35], [33, 36], [33, 41], [33, 42], [33, 44], [34, 35], [34, 38], [34, 41], [34, 43], [35, 36], [35, 41], [35, 44], [36, 37], [36, 43], [37, 42], [39, 41], [39, 43], [40, 41], [40, 44], [43, 44]], "family": "mc_max_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-independent-set-l3-s2/tests/run.py b/tasks/construct-mc-max-independent-set-l3-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l3-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-max-independent-set-l3-s2/tests/test.sh b/tasks/construct-mc-max-independent-set-l3-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l3-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-max-independent-set-l3-s5/environment/Dockerfile b/tasks/construct-mc-max-independent-set-l3-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l3-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-max-independent-set-l3-s5/environment/instance.json b/tasks/construct-mc-max-independent-set-l3-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f0e7ac111f4e73bce4b0573f16868ba64603acda --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l3-s5/environment/instance.json @@ -0,0 +1 @@ +{"n": 45, "k": 11, "edges": [[0, 1], [0, 2], [0, 5], [0, 7], [0, 10], [0, 26], [0, 28], [0, 33], [0, 36], [0, 37], [0, 41], [0, 42], [1, 3], [1, 14], [1, 16], [1, 19], [1, 21], [1, 24], [1, 27], [1, 29], [1, 32], [1, 33], [1, 36], [1, 38], [1, 42], [2, 4], [2, 6], [2, 14], [2, 23], [2, 25], [2, 27], [2, 32], [2, 33], [2, 36], [2, 38], [2, 42], [3, 8], [3, 9], [3, 15], [3, 17], [3, 23], [3, 27], [3, 33], [3, 34], [3, 38], [3, 39], [3, 40], [3, 41], [4, 5], [4, 7], [4, 8], [4, 13], [4, 16], [4, 19], [4, 20], [4, 30], [4, 31], [4, 35], [4, 36], [5, 6], [5, 9], [5, 10], [5, 11], [5, 15], [5, 17], [5, 20], [5, 23], [5, 24], [5, 25], [5, 28], [5, 33], [5, 34], [5, 38], [5, 39], [5, 42], [5, 43], [6, 21], [6, 26], [6, 27], [6, 31], [6, 35], [6, 39], [7, 12], [7, 13], [7, 14], [7, 18], [7, 21], [7, 22], [7, 27], [7, 34], [7, 37], [7, 38], [7, 41], [7, 43], [8, 10], [8, 14], [8, 17], [8, 31], [8, 32], [8, 38], [8, 39], [8, 42], [9, 12], [9, 14], [9, 15], [9, 16], [9, 17], [9, 27], [9, 30], [9, 32], [9, 39], [10, 16], [10, 23], [10, 29], [10, 32], [10, 34], [10, 35], [10, 36], [10, 41], [10, 43], [10, 44], [11, 16], [11, 19], [11, 22], [11, 25], [11, 26], [11, 42], [12, 15], [12, 22], [12, 27], [12, 30], [12, 35], [12, 36], [12, 43], [13, 14], [13, 15], [13, 25], [13, 28], [13, 30], [13, 33], [13, 34], [13, 36], [13, 37], [13, 39], [13, 41], [14, 18], [14, 24], [14, 27], [14, 30], [14, 31], [14, 33], [14, 35], [14, 37], [14, 44], [15, 18], [15, 25], [15, 37], [15, 40], [15, 41], [15, 42], [16, 17], [16, 18], [16, 19], [16, 24], [16, 26], [16, 30], [16, 31], [16, 32], [16, 38], [16, 39], [16, 42], [16, 43], [16, 44], [17, 19], [17, 20], [17, 22], [17, 32], [17, 37], [17, 40], [17, 43], [18, 22], [18, 25], [18, 27], [18, 29], [18, 41], [18, 42], [18, 44], [19, 25], [19, 26], [19, 30], [19, 35], [19, 38], [19, 44], [20, 43], [21, 26], [21, 31], [21, 42], [21, 44], [22, 25], [22, 31], [22, 34], [23, 26], [23, 28], [23, 32], [23, 37], [23, 44], [24, 26], [24, 28], [24, 30], [24, 32], [24, 35], [24, 42], [25, 27], [25, 30], [25, 36], [25, 43], [26, 30], [26, 39], [27, 28], [27, 34], [27, 35], [27, 37], [27, 38], [27, 43], [28, 30], [28, 32], [28, 37], [29, 34], [29, 43], [30, 31], [30, 40], [30, 43], [31, 33], [31, 36], [31, 39], [31, 40], [32, 33], [32, 37], [32, 40], [32, 41], [32, 42], [33, 34], [33, 35], [33, 43], [34, 37], [34, 39], [34, 41], [34, 42], [34, 43], [35, 37], [35, 39], [35, 42], [36, 41], [36, 42], [36, 43], [37, 38], [37, 42], [37, 43], [38, 41], [39, 42], [40, 41], [41, 42], [41, 44], [42, 44]], "family": "mc_max_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-independent-set-l3-s5/solution/solve.sh b/tasks/construct-mc-max-independent-set-l3-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce0c6f0553a38a6ac492e321ac01bba4764f419a --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l3-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"independent_set": [1, 2, 8, 9, 20, 26, 28, 34, 35, 40, 44]} +RLMATH_EOF diff --git a/tasks/construct-mc-max-independent-set-l3-s5/tests/check.py b/tasks/construct-mc-max-independent-set-l3-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..adce413e8578d996549583b990e4ff559f38ed41 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l3-s5/tests/check.py @@ -0,0 +1,18 @@ +"""Independent set of size >= k in a given graph (MathConstraint max_independent_set, CC-BY-4.0).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("independent_set"), None, 0, n - 1, "independent_set") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) < k: + raise Invalid(f"set has {len(S)} vertices, need at least {k}") + E = {(u, v) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(S), 2): + if (u, v) in E: + raise Invalid(f"vertices {u} and {v} are adjacent") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-max-independent-set-l3-s5/tests/instance.json b/tasks/construct-mc-max-independent-set-l3-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f0e7ac111f4e73bce4b0573f16868ba64603acda --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l3-s5/tests/instance.json @@ -0,0 +1 @@ +{"n": 45, "k": 11, "edges": [[0, 1], [0, 2], [0, 5], [0, 7], [0, 10], [0, 26], [0, 28], [0, 33], [0, 36], [0, 37], [0, 41], [0, 42], [1, 3], [1, 14], [1, 16], [1, 19], [1, 21], [1, 24], [1, 27], [1, 29], [1, 32], [1, 33], [1, 36], [1, 38], [1, 42], [2, 4], [2, 6], [2, 14], [2, 23], [2, 25], [2, 27], [2, 32], [2, 33], [2, 36], [2, 38], [2, 42], [3, 8], [3, 9], [3, 15], [3, 17], [3, 23], [3, 27], [3, 33], [3, 34], [3, 38], [3, 39], [3, 40], [3, 41], [4, 5], [4, 7], [4, 8], [4, 13], [4, 16], [4, 19], [4, 20], [4, 30], [4, 31], [4, 35], [4, 36], [5, 6], [5, 9], [5, 10], [5, 11], [5, 15], [5, 17], [5, 20], [5, 23], [5, 24], [5, 25], [5, 28], [5, 33], [5, 34], [5, 38], [5, 39], [5, 42], [5, 43], [6, 21], [6, 26], [6, 27], [6, 31], [6, 35], [6, 39], [7, 12], [7, 13], [7, 14], [7, 18], [7, 21], [7, 22], [7, 27], [7, 34], [7, 37], [7, 38], [7, 41], [7, 43], [8, 10], [8, 14], [8, 17], [8, 31], [8, 32], [8, 38], [8, 39], [8, 42], [9, 12], [9, 14], [9, 15], [9, 16], [9, 17], [9, 27], [9, 30], [9, 32], [9, 39], [10, 16], [10, 23], [10, 29], [10, 32], [10, 34], [10, 35], [10, 36], [10, 41], [10, 43], [10, 44], [11, 16], [11, 19], [11, 22], [11, 25], [11, 26], [11, 42], [12, 15], [12, 22], [12, 27], [12, 30], [12, 35], [12, 36], [12, 43], [13, 14], [13, 15], [13, 25], [13, 28], [13, 30], [13, 33], [13, 34], [13, 36], [13, 37], [13, 39], [13, 41], [14, 18], [14, 24], [14, 27], [14, 30], [14, 31], [14, 33], [14, 35], [14, 37], [14, 44], [15, 18], [15, 25], [15, 37], [15, 40], [15, 41], [15, 42], [16, 17], [16, 18], [16, 19], [16, 24], [16, 26], [16, 30], [16, 31], [16, 32], [16, 38], [16, 39], [16, 42], [16, 43], [16, 44], [17, 19], [17, 20], [17, 22], [17, 32], [17, 37], [17, 40], [17, 43], [18, 22], [18, 25], [18, 27], [18, 29], [18, 41], [18, 42], [18, 44], [19, 25], [19, 26], [19, 30], [19, 35], [19, 38], [19, 44], [20, 43], [21, 26], [21, 31], [21, 42], [21, 44], [22, 25], [22, 31], [22, 34], [23, 26], [23, 28], [23, 32], [23, 37], [23, 44], [24, 26], [24, 28], [24, 30], [24, 32], [24, 35], [24, 42], [25, 27], [25, 30], [25, 36], [25, 43], [26, 30], [26, 39], [27, 28], [27, 34], [27, 35], [27, 37], [27, 38], [27, 43], [28, 30], [28, 32], [28, 37], [29, 34], [29, 43], [30, 31], [30, 40], [30, 43], [31, 33], [31, 36], [31, 39], [31, 40], [32, 33], [32, 37], [32, 40], [32, 41], [32, 42], [33, 34], [33, 35], [33, 43], [34, 37], [34, 39], [34, 41], [34, 42], [34, 43], [35, 37], [35, 39], [35, 42], [36, 41], [36, 42], [36, 43], [37, 38], [37, 42], [37, 43], [38, 41], [39, 42], [40, 41], [41, 42], [41, 44], [42, 44]], "family": "mc_max_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-independent-set-l3-s5/tests/run.py b/tasks/construct-mc-max-independent-set-l3-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l3-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-max-independent-set-l3-s5/tests/test.sh b/tasks/construct-mc-max-independent-set-l3-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l3-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-number-partitioning-l3-s1/environment/Dockerfile b/tasks/construct-mc-number-partitioning-l3-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l3-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-number-partitioning-l3-s1/environment/instance.json b/tasks/construct-mc-number-partitioning-l3-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..edaad2c0f4ee18f8fb4a54df08bcc79210e8d71e --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l3-s1/environment/instance.json @@ -0,0 +1 @@ +{"n": 24, "k": 5, "family": "mc_number_partitioning", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-number-partitioning-l3-s1/solution/solve.sh b/tasks/construct-mc-number-partitioning-l3-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..535856b1fcde803a030ec05bbc8c59fad74ba475 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l3-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 2, 3, 4, 4, 2, 3, 3, 4, 2]} +RLMATH_EOF diff --git a/tasks/construct-mc-number-partitioning-l3-s1/tests/check.py b/tasks/construct-mc-number-partitioning-l3-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..67793721db8ba7d3c3979ea0e1e07091491ffa7e --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l3-s1/tests/check.py @@ -0,0 +1,14 @@ +"""Partition {1..n} into k subsets of equal sum (MathConstraint number_partitioning, CC-BY-4.0).""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + x = int_list(ans.get("x"), n, 0, k - 1, "x") + target = n * (n + 1) // 2 // k + sums = [0] * k + for i, s in enumerate(x): + sums[s] += i + 1 + if any(t != target for t in sums): + raise Invalid(f"subset sums {sums} are not all {target}") + return None, {} diff --git a/tasks/construct-mc-number-partitioning-l3-s1/tests/instance.json b/tasks/construct-mc-number-partitioning-l3-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..edaad2c0f4ee18f8fb4a54df08bcc79210e8d71e --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l3-s1/tests/instance.json @@ -0,0 +1 @@ +{"n": 24, "k": 5, "family": "mc_number_partitioning", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-number-partitioning-l3-s1/tests/run.py b/tasks/construct-mc-number-partitioning-l3-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l3-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-number-partitioning-l3-s1/tests/test.sh b/tasks/construct-mc-number-partitioning-l3-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l3-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-number-partitioning-l3-s8/environment/Dockerfile b/tasks/construct-mc-number-partitioning-l3-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l3-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-number-partitioning-l3-s8/environment/instance.json b/tasks/construct-mc-number-partitioning-l3-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3912a653022951e11ffdf77714f7bf0b98a35d68 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l3-s8/environment/instance.json @@ -0,0 +1 @@ +{"n": 21, "k": 3, "family": "mc_number_partitioning", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-number-partitioning-l3-s8/solution/solve.sh b/tasks/construct-mc-number-partitioning-l3-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..e744ed2beb9709ad0b895ca0474db14d9457390a --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l3-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [0, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 1, 1, 0, 0, 2, 0, 0]} +RLMATH_EOF diff --git a/tasks/construct-mc-number-partitioning-l3-s8/tests/check.py b/tasks/construct-mc-number-partitioning-l3-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..67793721db8ba7d3c3979ea0e1e07091491ffa7e --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l3-s8/tests/check.py @@ -0,0 +1,14 @@ +"""Partition {1..n} into k subsets of equal sum (MathConstraint number_partitioning, CC-BY-4.0).""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + x = int_list(ans.get("x"), n, 0, k - 1, "x") + target = n * (n + 1) // 2 // k + sums = [0] * k + for i, s in enumerate(x): + sums[s] += i + 1 + if any(t != target for t in sums): + raise Invalid(f"subset sums {sums} are not all {target}") + return None, {} diff --git a/tasks/construct-mc-number-partitioning-l3-s8/tests/instance.json b/tasks/construct-mc-number-partitioning-l3-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3912a653022951e11ffdf77714f7bf0b98a35d68 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l3-s8/tests/instance.json @@ -0,0 +1 @@ +{"n": 21, "k": 3, "family": "mc_number_partitioning", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-number-partitioning-l3-s8/tests/run.py b/tasks/construct-mc-number-partitioning-l3-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l3-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-number-partitioning-l3-s8/tests/test.sh b/tasks/construct-mc-number-partitioning-l3-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l3-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-ortholatin-l5-s0/environment/Dockerfile b/tasks/construct-mc-ortholatin-l5-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-ortholatin-l5-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-ortholatin-l5-s0/environment/instance.json b/tasks/construct-mc-ortholatin-l5-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4d1c4355a6adf6b21a30b2e750b60c8f7cc59288 --- /dev/null +++ b/tasks/construct-mc-ortholatin-l5-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 20, "family": "mc_ortholatin", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-ortholatin-l5-s0/solution/solve.sh b/tasks/construct-mc-ortholatin-l5-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..9293af163b70bd9d298e333ab2a106984943ab51 --- /dev/null +++ b/tasks/construct-mc-ortholatin-l5-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"X": [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], [1, 2, 3, 4, 0, 6, 7, 8, 9, 5, 11, 12, 13, 14, 10, 16, 17, 18, 19, 15], [2, 3, 4, 0, 1, 7, 8, 9, 5, 6, 12, 13, 14, 10, 11, 17, 18, 19, 15, 16], [3, 4, 0, 1, 2, 8, 9, 5, 6, 7, 13, 14, 10, 11, 12, 18, 19, 15, 16, 17], [4, 0, 1, 2, 3, 9, 5, 6, 7, 8, 14, 10, 11, 12, 13, 19, 15, 16, 17, 18], [5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 15, 16, 17, 18, 19, 10, 11, 12, 13, 14], [6, 7, 8, 9, 5, 1, 2, 3, 4, 0, 16, 17, 18, 19, 15, 11, 12, 13, 14, 10], [7, 8, 9, 5, 6, 2, 3, 4, 0, 1, 17, 18, 19, 15, 16, 12, 13, 14, 10, 11], [8, 9, 5, 6, 7, 3, 4, 0, 1, 2, 18, 19, 15, 16, 17, 13, 14, 10, 11, 12], [9, 5, 6, 7, 8, 4, 0, 1, 2, 3, 19, 15, 16, 17, 18, 14, 10, 11, 12, 13], [10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [11, 12, 13, 14, 10, 16, 17, 18, 19, 15, 1, 2, 3, 4, 0, 6, 7, 8, 9, 5], [12, 13, 14, 10, 11, 17, 18, 19, 15, 16, 2, 3, 4, 0, 1, 7, 8, 9, 5, 6], [13, 14, 10, 11, 12, 18, 19, 15, 16, 17, 3, 4, 0, 1, 2, 8, 9, 5, 6, 7], [14, 10, 11, 12, 13, 19, 15, 16, 17, 18, 4, 0, 1, 2, 3, 9, 5, 6, 7, 8], [15, 16, 17, 18, 19, 10, 11, 12, 13, 14, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4], [16, 17, 18, 19, 15, 11, 12, 13, 14, 10, 6, 7, 8, 9, 5, 1, 2, 3, 4, 0], [17, 18, 19, 15, 16, 12, 13, 14, 10, 11, 7, 8, 9, 5, 6, 2, 3, 4, 0, 1], [18, 19, 15, 16, 17, 13, 14, 10, 11, 12, 8, 9, 5, 6, 7, 3, 4, 0, 1, 2], [19, 15, 16, 17, 18, 14, 10, 11, 12, 13, 9, 5, 6, 7, 8, 4, 0, 1, 2, 3]], "Y": [[0, 2, 4, 1, 3, 5, 7, 9, 6, 8, 10, 12, 14, 11, 13, 15, 17, 19, 16, 18], [1, 3, 0, 2, 4, 6, 8, 5, 7, 9, 11, 13, 10, 12, 14, 16, 18, 15, 17, 19], [2, 4, 1, 3, 0, 7, 9, 6, 8, 5, 12, 14, 11, 13, 10, 17, 19, 16, 18, 15], [3, 0, 2, 4, 1, 8, 5, 7, 9, 6, 13, 10, 12, 14, 11, 18, 15, 17, 19, 16], [4, 1, 3, 0, 2, 9, 6, 8, 5, 7, 14, 11, 13, 10, 12, 19, 16, 18, 15, 17], [10, 12, 14, 11, 13, 15, 17, 19, 16, 18, 0, 2, 4, 1, 3, 5, 7, 9, 6, 8], [11, 13, 10, 12, 14, 16, 18, 15, 17, 19, 1, 3, 0, 2, 4, 6, 8, 5, 7, 9], [12, 14, 11, 13, 10, 17, 19, 16, 18, 15, 2, 4, 1, 3, 0, 7, 9, 6, 8, 5], [13, 10, 12, 14, 11, 18, 15, 17, 19, 16, 3, 0, 2, 4, 1, 8, 5, 7, 9, 6], [14, 11, 13, 10, 12, 19, 16, 18, 15, 17, 4, 1, 3, 0, 2, 9, 6, 8, 5, 7], [15, 17, 19, 16, 18, 10, 12, 14, 11, 13, 5, 7, 9, 6, 8, 0, 2, 4, 1, 3], [16, 18, 15, 17, 19, 11, 13, 10, 12, 14, 6, 8, 5, 7, 9, 1, 3, 0, 2, 4], [17, 19, 16, 18, 15, 12, 14, 11, 13, 10, 7, 9, 6, 8, 5, 2, 4, 1, 3, 0], [18, 15, 17, 19, 16, 13, 10, 12, 14, 11, 8, 5, 7, 9, 6, 3, 0, 2, 4, 1], [19, 16, 18, 15, 17, 14, 11, 13, 10, 12, 9, 6, 8, 5, 7, 4, 1, 3, 0, 2], [5, 7, 9, 6, 8, 0, 2, 4, 1, 3, 15, 17, 19, 16, 18, 10, 12, 14, 11, 13], [6, 8, 5, 7, 9, 1, 3, 0, 2, 4, 16, 18, 15, 17, 19, 11, 13, 10, 12, 14], [7, 9, 6, 8, 5, 2, 4, 1, 3, 0, 17, 19, 16, 18, 15, 12, 14, 11, 13, 10], [8, 5, 7, 9, 6, 3, 0, 2, 4, 1, 18, 15, 17, 19, 16, 13, 10, 12, 14, 11], [9, 6, 8, 5, 7, 4, 1, 3, 0, 2, 19, 16, 18, 15, 17, 14, 11, 13, 10, 12]]} +RLMATH_EOF diff --git a/tasks/construct-mc-ortholatin-l5-s0/tests/check.py b/tasks/construct-mc-ortholatin-l5-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..a5418a59fae1c86318eee903e90d75b36d8a3306 --- /dev/null +++ b/tasks/construct-mc-ortholatin-l5-s0/tests/check.py @@ -0,0 +1,25 @@ +"""Pair of orthogonal Latin squares of order n (MathConstraint ortholatin, CC-BY-4.0).""" +from run import Invalid, int_list + + +def _square(v, n, name): + if not isinstance(v, list) or len(v) != n: + raise Invalid(f"{name} must be a list of {n} rows") + S = [int_list(r, n, 0, n - 1, f"{name} row") for r in v] + full = list(range(n)) + for i in range(n): + if sorted(S[i]) != full: + raise Invalid(f"{name}: row {i} is not a permutation of 0..{n - 1}") + if sorted(S[r][i] for r in range(n)) != full: + raise Invalid(f"{name}: column {i} is not a permutation of 0..{n - 1}") + return S + + +def check(inst, ans): + n = inst["n"] + X = _square(ans.get("X"), n, "X") + Y = _square(ans.get("Y"), n, "Y") + pairs = {(X[i][j], Y[i][j]) for i in range(n) for j in range(n)} + if len(pairs) != n * n: + raise Invalid("X and Y are not orthogonal (some ordered pair repeats)") + return None, {} diff --git a/tasks/construct-mc-ortholatin-l5-s0/tests/instance.json b/tasks/construct-mc-ortholatin-l5-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4d1c4355a6adf6b21a30b2e750b60c8f7cc59288 --- /dev/null +++ b/tasks/construct-mc-ortholatin-l5-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 20, "family": "mc_ortholatin", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-ortholatin-l5-s0/tests/run.py b/tasks/construct-mc-ortholatin-l5-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-ortholatin-l5-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-ortholatin-l5-s0/tests/test.sh b/tasks/construct-mc-ortholatin-l5-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-ortholatin-l5-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-pysms-chromatic-girth-l5-s0/environment/Dockerfile b/tasks/construct-mc-pysms-chromatic-girth-l5-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-pysms-chromatic-girth-l5-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-pysms-chromatic-girth-l5-s0/environment/instance.json b/tasks/construct-mc-pysms-chromatic-girth-l5-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..d7388b3b44865406f0d7fb72a0dc6519692f35ad --- /dev/null +++ b/tasks/construct-mc-pysms-chromatic-girth-l5-s0/environment/instance.json @@ -0,0 +1 @@ +{"vertices": 24, "required_edges": [], "max_chromatic_number": 3, "min_edges": 33, "min_girth": 7, "family": "mc_pysms_chromatic_girth", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-chromatic-girth-l5-s0/solution/solve.sh b/tasks/construct-mc-pysms-chromatic-girth-l5-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..8adccbff784d20f955d698098dbecd98a51ecfe6 --- /dev/null +++ b/tasks/construct-mc-pysms-chromatic-girth-l5-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"edges": [[0, 22], [0, 23], [1, 21], [1, 23], [2, 20], [2, 23], [3, 19], [3, 22], [4, 18], [4, 19], [4, 21], [5, 17], [5, 18], [6, 15], [6, 16], [7, 13], [7, 14], [8, 12], [8, 14], [8, 16], [9, 11], [9, 13], [9, 15], [10, 11], [10, 12], [10, 21], [11, 22], [12, 17], [13, 20], [14, 19], [15, 18], [16, 23], [17, 20]], "coloring": [1, 2, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 2, 2, 2, 1, 0, 0]} +RLMATH_EOF diff --git a/tasks/construct-mc-pysms-chromatic-girth-l5-s0/tests/check.py b/tasks/construct-mc-pysms-chromatic-girth-l5-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..4ab0b12508cf59b733f007a9d1f50831aec9efdf --- /dev/null +++ b/tasks/construct-mc-pysms-chromatic-girth-l5-s0/tests/check.py @@ -0,0 +1,151 @@ +"""Graph-existence constraints (MathConstraint pysms_* problem types, CC-BY-4.0). The answer is a graph on +the stated vertex set, plus a proper colouring when a chromatic-number upper bound is asked for. Every +constraint present in the instance is checked exactly (no stored answer is compared). + +Upstream note: upstream verifies by fixing the edge variables in the pysms CNF and calling CaDiCaL; the +min-chromatic-number bound of pysms_graph_builder is only a raw smsg solver parameter, not a clause, so the +upstream verifier ignored it. It is enforced here. Edge endpoints are also type-checked (upstream accepted +floats/bools that compare in range).""" +import itertools + +from run import Invalid, int_list + + +def _has_clique(adj, n, k): + def rec(cand, size): + if size == k: + return True + while cand: + if size + bin(cand).count("1") < k: + return False + v = cand.bit_length() - 1 + cand &= ~(1 << v) + if rec(cand & adj[v], size + 1): + return True + return False + return rec((1 << n) - 1, 0) + + +def _connected(adj, n, removed): + alive = [v for v in range(n) if not removed >> v & 1] + if len(alive) <= 1: + return True + mask = sum(1 << v for v in alive) + seen = 1 << alive[0] + stack = [alive[0]] + while stack: + v = stack.pop() + new = adj[v] & mask & ~seen + seen |= new + while new: + u = new.bit_length() - 1 + new &= ~(1 << u) + stack.append(u) + return seen == mask + + +def _girth(adj, n): + best = None + for r in range(n): + dist, par, q = {r: 0}, {r: -1}, [r] + for v in q: + nb = adj[v] + while nb: + u = nb.bit_length() - 1 + nb &= ~(1 << u) + if u not in dist: + dist[u], par[u] = dist[v] + 1, v + q.append(u) + elif par[v] != u: + c = dist[u] + dist[v] + 1 + best = c if best is None else min(best, c) + return best # None = acyclic + + +def _colourable(adj, n, k): + col = [-1] * n + order = sorted(range(n), key=lambda v: -bin(adj[v]).count("1")) + + def rec(i): + if i == n: + return True + v = order[i] + used = {col[u] for u in range(n) if adj[v] >> u & 1 and col[u] >= 0} + for c in range(k): + if c not in used: + col[v] = c + if rec(i + 1): + return True + col[v] = -1 + return False + return rec(0) + + +def check(inst, ans): + n = inst["vertices"] + E = ans.get("edges") + if not isinstance(E, list): + raise Invalid("edges must be a list of [u, v] pairs") + edges = set() + for e in E: + u, v = int_list(e, 2, 0, n - 1, "edge") + if u == v: + raise Invalid(f"self-loop at {u}") + e2 = (min(u, v), max(u, v)) + if e2 in edges: + raise Invalid(f"duplicate edge {e2}") + edges.add(e2) + adj = [0] * n + for u, v in edges: + adj[u] |= 1 << v + adj[v] |= 1 << u + deg = [bin(a).count("1") for a in adj] + for u, v in inst.get("required_edges", []): + if (min(u, v), max(u, v)) not in edges: + raise Invalid(f"required edge ({u},{v}) is missing") + c = inst.get + if c("min_degree") is not None and min(deg) < c("min_degree"): + raise Invalid(f"minimum degree {min(deg)} < {c('min_degree')}") + if c("max_degree") is not None and max(deg) > c("max_degree"): + raise Invalid(f"maximum degree {max(deg)} > {c('max_degree')}") + if c("min_edges") is not None and len(edges) < c("min_edges"): + raise Invalid(f"{len(edges)} edges < {c('min_edges')}") + if c("max_edges") is not None and len(edges) > c("max_edges"): + raise Invalid(f"{len(edges)} edges > {c('max_edges')}") + if c("max_clique") is not None and _has_clique(adj, n, c("max_clique") + 1): + raise Invalid(f"graph contains a clique of size {c('max_clique') + 1}") + if c("max_independent_set") is not None: + full = (1 << n) - 1 + comp = [full & ~adj[v] & ~(1 << v) for v in range(n)] + if _has_clique(comp, n, c("max_independent_set") + 1): + raise Invalid(f"graph contains an independent set of size {c('max_independent_set') + 1}") + if c("min_girth") is not None: + g = _girth(adj, n) + if g is not None and g < c("min_girth"): + raise Invalid(f"graph has a cycle of length {g} < {c('min_girth')}") + if c("min_connectivity") is not None: + k = c("min_connectivity") + if n <= k: + raise Invalid("too few vertices for this connectivity") + for s in range(k): + for I in itertools.combinations(range(n), s): + if not _connected(adj, n, sum(1 << v for v in I)): + raise Invalid(f"deleting vertices {list(I)} disconnects the graph") + if c("mtf"): + for u, v in itertools.combinations(range(n), 2): + if adj[u] >> v & 1: + if adj[u] & adj[v]: + raise Invalid(f"triangle on edge ({u},{v})") + elif not adj[u] & adj[v]: + raise Invalid(f"non-adjacent {u}, {v} have no common neighbour (edge could be added)") + if c("max_chromatic_number") is not None: + k = c("max_chromatic_number") + col = int_list(ans.get("coloring"), n, 0, k - 1, "coloring") + for u, v in edges: + if col[u] == col[v]: + raise Invalid(f"coloring: edge ({u},{v}) is monochromatic") + if c("min_chromatic_number") is not None and c("min_chromatic_number") >= 2: + m = c("min_chromatic_number") + if not edges or _colourable(adj, n, m - 1): + raise Invalid(f"graph is {m - 1}-colourable, chromatic number must be at least {m}") + return None, {"num_edges": len(edges)} diff --git a/tasks/construct-mc-pysms-chromatic-girth-l5-s0/tests/instance.json b/tasks/construct-mc-pysms-chromatic-girth-l5-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..d7388b3b44865406f0d7fb72a0dc6519692f35ad --- /dev/null +++ b/tasks/construct-mc-pysms-chromatic-girth-l5-s0/tests/instance.json @@ -0,0 +1 @@ +{"vertices": 24, "required_edges": [], "max_chromatic_number": 3, "min_edges": 33, "min_girth": 7, "family": "mc_pysms_chromatic_girth", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-chromatic-girth-l5-s0/tests/run.py b/tasks/construct-mc-pysms-chromatic-girth-l5-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-pysms-chromatic-girth-l5-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-pysms-chromatic-girth-l5-s0/tests/test.sh b/tasks/construct-mc-pysms-chromatic-girth-l5-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-pysms-chromatic-girth-l5-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-pysms-degree-bounds-l5-s0/environment/Dockerfile b/tasks/construct-mc-pysms-degree-bounds-l5-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-pysms-degree-bounds-l5-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-pysms-degree-bounds-l5-s0/environment/instance.json b/tasks/construct-mc-pysms-degree-bounds-l5-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..7eda3da34f57e717a379ed7036ede94f832db99b --- /dev/null +++ b/tasks/construct-mc-pysms-degree-bounds-l5-s0/environment/instance.json @@ -0,0 +1 @@ +{"vertices": 15, "required_edges": [], "max_degree": 5, "min_degree": 2, "family": "mc_pysms_degree_bounds", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-degree-bounds-l5-s0/solution/solve.sh b/tasks/construct-mc-pysms-degree-bounds-l5-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5f59035f07c114c678f52ea1328cafaeeede017 --- /dev/null +++ b/tasks/construct-mc-pysms-degree-bounds-l5-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"edges": [[0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [4, 10], [4, 11], [4, 12], [4, 13], [4, 14], [5, 6], [5, 7], [5, 8], [5, 9], [6, 7], [6, 8], [6, 9], [7, 8], [7, 9], [8, 9]]} +RLMATH_EOF diff --git a/tasks/construct-mc-pysms-degree-bounds-l5-s0/tests/check.py b/tasks/construct-mc-pysms-degree-bounds-l5-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..4ab0b12508cf59b733f007a9d1f50831aec9efdf --- /dev/null +++ b/tasks/construct-mc-pysms-degree-bounds-l5-s0/tests/check.py @@ -0,0 +1,151 @@ +"""Graph-existence constraints (MathConstraint pysms_* problem types, CC-BY-4.0). The answer is a graph on +the stated vertex set, plus a proper colouring when a chromatic-number upper bound is asked for. Every +constraint present in the instance is checked exactly (no stored answer is compared). + +Upstream note: upstream verifies by fixing the edge variables in the pysms CNF and calling CaDiCaL; the +min-chromatic-number bound of pysms_graph_builder is only a raw smsg solver parameter, not a clause, so the +upstream verifier ignored it. It is enforced here. Edge endpoints are also type-checked (upstream accepted +floats/bools that compare in range).""" +import itertools + +from run import Invalid, int_list + + +def _has_clique(adj, n, k): + def rec(cand, size): + if size == k: + return True + while cand: + if size + bin(cand).count("1") < k: + return False + v = cand.bit_length() - 1 + cand &= ~(1 << v) + if rec(cand & adj[v], size + 1): + return True + return False + return rec((1 << n) - 1, 0) + + +def _connected(adj, n, removed): + alive = [v for v in range(n) if not removed >> v & 1] + if len(alive) <= 1: + return True + mask = sum(1 << v for v in alive) + seen = 1 << alive[0] + stack = [alive[0]] + while stack: + v = stack.pop() + new = adj[v] & mask & ~seen + seen |= new + while new: + u = new.bit_length() - 1 + new &= ~(1 << u) + stack.append(u) + return seen == mask + + +def _girth(adj, n): + best = None + for r in range(n): + dist, par, q = {r: 0}, {r: -1}, [r] + for v in q: + nb = adj[v] + while nb: + u = nb.bit_length() - 1 + nb &= ~(1 << u) + if u not in dist: + dist[u], par[u] = dist[v] + 1, v + q.append(u) + elif par[v] != u: + c = dist[u] + dist[v] + 1 + best = c if best is None else min(best, c) + return best # None = acyclic + + +def _colourable(adj, n, k): + col = [-1] * n + order = sorted(range(n), key=lambda v: -bin(adj[v]).count("1")) + + def rec(i): + if i == n: + return True + v = order[i] + used = {col[u] for u in range(n) if adj[v] >> u & 1 and col[u] >= 0} + for c in range(k): + if c not in used: + col[v] = c + if rec(i + 1): + return True + col[v] = -1 + return False + return rec(0) + + +def check(inst, ans): + n = inst["vertices"] + E = ans.get("edges") + if not isinstance(E, list): + raise Invalid("edges must be a list of [u, v] pairs") + edges = set() + for e in E: + u, v = int_list(e, 2, 0, n - 1, "edge") + if u == v: + raise Invalid(f"self-loop at {u}") + e2 = (min(u, v), max(u, v)) + if e2 in edges: + raise Invalid(f"duplicate edge {e2}") + edges.add(e2) + adj = [0] * n + for u, v in edges: + adj[u] |= 1 << v + adj[v] |= 1 << u + deg = [bin(a).count("1") for a in adj] + for u, v in inst.get("required_edges", []): + if (min(u, v), max(u, v)) not in edges: + raise Invalid(f"required edge ({u},{v}) is missing") + c = inst.get + if c("min_degree") is not None and min(deg) < c("min_degree"): + raise Invalid(f"minimum degree {min(deg)} < {c('min_degree')}") + if c("max_degree") is not None and max(deg) > c("max_degree"): + raise Invalid(f"maximum degree {max(deg)} > {c('max_degree')}") + if c("min_edges") is not None and len(edges) < c("min_edges"): + raise Invalid(f"{len(edges)} edges < {c('min_edges')}") + if c("max_edges") is not None and len(edges) > c("max_edges"): + raise Invalid(f"{len(edges)} edges > {c('max_edges')}") + if c("max_clique") is not None and _has_clique(adj, n, c("max_clique") + 1): + raise Invalid(f"graph contains a clique of size {c('max_clique') + 1}") + if c("max_independent_set") is not None: + full = (1 << n) - 1 + comp = [full & ~adj[v] & ~(1 << v) for v in range(n)] + if _has_clique(comp, n, c("max_independent_set") + 1): + raise Invalid(f"graph contains an independent set of size {c('max_independent_set') + 1}") + if c("min_girth") is not None: + g = _girth(adj, n) + if g is not None and g < c("min_girth"): + raise Invalid(f"graph has a cycle of length {g} < {c('min_girth')}") + if c("min_connectivity") is not None: + k = c("min_connectivity") + if n <= k: + raise Invalid("too few vertices for this connectivity") + for s in range(k): + for I in itertools.combinations(range(n), s): + if not _connected(adj, n, sum(1 << v for v in I)): + raise Invalid(f"deleting vertices {list(I)} disconnects the graph") + if c("mtf"): + for u, v in itertools.combinations(range(n), 2): + if adj[u] >> v & 1: + if adj[u] & adj[v]: + raise Invalid(f"triangle on edge ({u},{v})") + elif not adj[u] & adj[v]: + raise Invalid(f"non-adjacent {u}, {v} have no common neighbour (edge could be added)") + if c("max_chromatic_number") is not None: + k = c("max_chromatic_number") + col = int_list(ans.get("coloring"), n, 0, k - 1, "coloring") + for u, v in edges: + if col[u] == col[v]: + raise Invalid(f"coloring: edge ({u},{v}) is monochromatic") + if c("min_chromatic_number") is not None and c("min_chromatic_number") >= 2: + m = c("min_chromatic_number") + if not edges or _colourable(adj, n, m - 1): + raise Invalid(f"graph is {m - 1}-colourable, chromatic number must be at least {m}") + return None, {"num_edges": len(edges)} diff --git a/tasks/construct-mc-pysms-degree-bounds-l5-s0/tests/instance.json b/tasks/construct-mc-pysms-degree-bounds-l5-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..7eda3da34f57e717a379ed7036ede94f832db99b --- /dev/null +++ b/tasks/construct-mc-pysms-degree-bounds-l5-s0/tests/instance.json @@ -0,0 +1 @@ +{"vertices": 15, "required_edges": [], "max_degree": 5, "min_degree": 2, "family": "mc_pysms_degree_bounds", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-degree-bounds-l5-s0/tests/run.py b/tasks/construct-mc-pysms-degree-bounds-l5-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-pysms-degree-bounds-l5-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-pysms-degree-bounds-l5-s0/tests/test.sh b/tasks/construct-mc-pysms-degree-bounds-l5-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-pysms-degree-bounds-l5-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-pysms-girth-degree-l6-s2/environment/Dockerfile b/tasks/construct-mc-pysms-girth-degree-l6-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-pysms-girth-degree-l6-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-pysms-girth-degree-l6-s2/environment/instance.json b/tasks/construct-mc-pysms-girth-degree-l6-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..000599410ee657b4fc12b76f384365df9a49421e --- /dev/null +++ b/tasks/construct-mc-pysms-girth-degree-l6-s2/environment/instance.json @@ -0,0 +1 @@ +{"vertices": 26, "required_edges": [], "max_degree": 5, "min_degree": 3, "min_girth": 7, "family": "mc_pysms_girth_degree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-girth-degree-l6-s2/solution/solve.sh b/tasks/construct-mc-pysms-girth-degree-l6-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..3768530e80d2ae5e8193e639b6db5a62a6a76828 --- /dev/null +++ b/tasks/construct-mc-pysms-girth-degree-l6-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"edges": [[0, 23], [0, 24], [0, 25], [1, 21], [1, 22], [1, 25], [2, 19], [2, 20], [2, 25], [3, 17], [3, 18], [3, 24], [4, 16], [4, 18], [4, 22], [5, 15], [5, 18], [5, 20], [6, 14], [6, 17], [6, 21], [7, 14], [7, 16], [7, 23], [8, 13], [8, 17], [8, 19], [9, 13], [9, 15], [9, 23], [10, 12], [10, 16], [10, 19], [11, 12], [11, 15], [11, 21], [12, 24], [13, 22], [14, 20]]} +RLMATH_EOF diff --git a/tasks/construct-mc-pysms-girth-degree-l6-s2/tests/check.py b/tasks/construct-mc-pysms-girth-degree-l6-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..4ab0b12508cf59b733f007a9d1f50831aec9efdf --- /dev/null +++ b/tasks/construct-mc-pysms-girth-degree-l6-s2/tests/check.py @@ -0,0 +1,151 @@ +"""Graph-existence constraints (MathConstraint pysms_* problem types, CC-BY-4.0). The answer is a graph on +the stated vertex set, plus a proper colouring when a chromatic-number upper bound is asked for. Every +constraint present in the instance is checked exactly (no stored answer is compared). + +Upstream note: upstream verifies by fixing the edge variables in the pysms CNF and calling CaDiCaL; the +min-chromatic-number bound of pysms_graph_builder is only a raw smsg solver parameter, not a clause, so the +upstream verifier ignored it. It is enforced here. Edge endpoints are also type-checked (upstream accepted +floats/bools that compare in range).""" +import itertools + +from run import Invalid, int_list + + +def _has_clique(adj, n, k): + def rec(cand, size): + if size == k: + return True + while cand: + if size + bin(cand).count("1") < k: + return False + v = cand.bit_length() - 1 + cand &= ~(1 << v) + if rec(cand & adj[v], size + 1): + return True + return False + return rec((1 << n) - 1, 0) + + +def _connected(adj, n, removed): + alive = [v for v in range(n) if not removed >> v & 1] + if len(alive) <= 1: + return True + mask = sum(1 << v for v in alive) + seen = 1 << alive[0] + stack = [alive[0]] + while stack: + v = stack.pop() + new = adj[v] & mask & ~seen + seen |= new + while new: + u = new.bit_length() - 1 + new &= ~(1 << u) + stack.append(u) + return seen == mask + + +def _girth(adj, n): + best = None + for r in range(n): + dist, par, q = {r: 0}, {r: -1}, [r] + for v in q: + nb = adj[v] + while nb: + u = nb.bit_length() - 1 + nb &= ~(1 << u) + if u not in dist: + dist[u], par[u] = dist[v] + 1, v + q.append(u) + elif par[v] != u: + c = dist[u] + dist[v] + 1 + best = c if best is None else min(best, c) + return best # None = acyclic + + +def _colourable(adj, n, k): + col = [-1] * n + order = sorted(range(n), key=lambda v: -bin(adj[v]).count("1")) + + def rec(i): + if i == n: + return True + v = order[i] + used = {col[u] for u in range(n) if adj[v] >> u & 1 and col[u] >= 0} + for c in range(k): + if c not in used: + col[v] = c + if rec(i + 1): + return True + col[v] = -1 + return False + return rec(0) + + +def check(inst, ans): + n = inst["vertices"] + E = ans.get("edges") + if not isinstance(E, list): + raise Invalid("edges must be a list of [u, v] pairs") + edges = set() + for e in E: + u, v = int_list(e, 2, 0, n - 1, "edge") + if u == v: + raise Invalid(f"self-loop at {u}") + e2 = (min(u, v), max(u, v)) + if e2 in edges: + raise Invalid(f"duplicate edge {e2}") + edges.add(e2) + adj = [0] * n + for u, v in edges: + adj[u] |= 1 << v + adj[v] |= 1 << u + deg = [bin(a).count("1") for a in adj] + for u, v in inst.get("required_edges", []): + if (min(u, v), max(u, v)) not in edges: + raise Invalid(f"required edge ({u},{v}) is missing") + c = inst.get + if c("min_degree") is not None and min(deg) < c("min_degree"): + raise Invalid(f"minimum degree {min(deg)} < {c('min_degree')}") + if c("max_degree") is not None and max(deg) > c("max_degree"): + raise Invalid(f"maximum degree {max(deg)} > {c('max_degree')}") + if c("min_edges") is not None and len(edges) < c("min_edges"): + raise Invalid(f"{len(edges)} edges < {c('min_edges')}") + if c("max_edges") is not None and len(edges) > c("max_edges"): + raise Invalid(f"{len(edges)} edges > {c('max_edges')}") + if c("max_clique") is not None and _has_clique(adj, n, c("max_clique") + 1): + raise Invalid(f"graph contains a clique of size {c('max_clique') + 1}") + if c("max_independent_set") is not None: + full = (1 << n) - 1 + comp = [full & ~adj[v] & ~(1 << v) for v in range(n)] + if _has_clique(comp, n, c("max_independent_set") + 1): + raise Invalid(f"graph contains an independent set of size {c('max_independent_set') + 1}") + if c("min_girth") is not None: + g = _girth(adj, n) + if g is not None and g < c("min_girth"): + raise Invalid(f"graph has a cycle of length {g} < {c('min_girth')}") + if c("min_connectivity") is not None: + k = c("min_connectivity") + if n <= k: + raise Invalid("too few vertices for this connectivity") + for s in range(k): + for I in itertools.combinations(range(n), s): + if not _connected(adj, n, sum(1 << v for v in I)): + raise Invalid(f"deleting vertices {list(I)} disconnects the graph") + if c("mtf"): + for u, v in itertools.combinations(range(n), 2): + if adj[u] >> v & 1: + if adj[u] & adj[v]: + raise Invalid(f"triangle on edge ({u},{v})") + elif not adj[u] & adj[v]: + raise Invalid(f"non-adjacent {u}, {v} have no common neighbour (edge could be added)") + if c("max_chromatic_number") is not None: + k = c("max_chromatic_number") + col = int_list(ans.get("coloring"), n, 0, k - 1, "coloring") + for u, v in edges: + if col[u] == col[v]: + raise Invalid(f"coloring: edge ({u},{v}) is monochromatic") + if c("min_chromatic_number") is not None and c("min_chromatic_number") >= 2: + m = c("min_chromatic_number") + if not edges or _colourable(adj, n, m - 1): + raise Invalid(f"graph is {m - 1}-colourable, chromatic number must be at least {m}") + return None, {"num_edges": len(edges)} diff --git a/tasks/construct-mc-pysms-girth-degree-l6-s2/tests/instance.json b/tasks/construct-mc-pysms-girth-degree-l6-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..000599410ee657b4fc12b76f384365df9a49421e --- /dev/null +++ b/tasks/construct-mc-pysms-girth-degree-l6-s2/tests/instance.json @@ -0,0 +1 @@ +{"vertices": 26, "required_edges": [], "max_degree": 5, "min_degree": 3, "min_girth": 7, "family": "mc_pysms_girth_degree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-girth-degree-l6-s2/tests/run.py b/tasks/construct-mc-pysms-girth-degree-l6-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-pysms-girth-degree-l6-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-pysms-girth-degree-l6-s2/tests/test.sh b/tasks/construct-mc-pysms-girth-degree-l6-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-pysms-girth-degree-l6-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-pysms-min-degree-l2-s0/environment/Dockerfile b/tasks/construct-mc-pysms-min-degree-l2-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-pysms-min-degree-l2-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-pysms-min-degree-l2-s0/environment/instance.json b/tasks/construct-mc-pysms-min-degree-l2-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c9a49307beee7b96d6263013e9b4f9bcb8a13ea8 --- /dev/null +++ b/tasks/construct-mc-pysms-min-degree-l2-s0/environment/instance.json @@ -0,0 +1 @@ +{"vertices": 9, "required_edges": [[5, 7], [1, 5], [3, 6], [5, 6], [4, 5], [4, 6], [0, 7]], "min_degree": 5, "family": "mc_pysms_min_degree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-min-degree-l2-s0/solution/solve.sh b/tasks/construct-mc-pysms-min-degree-l2-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..266b10696d549d81ec1db10a95e1067a0f575ccd --- /dev/null +++ b/tasks/construct-mc-pysms-min-degree-l2-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [4, 5], [4, 6], [4, 7], [4, 8], [5, 6], [5, 7], [5, 8], [6, 7], [6, 8], [7, 8]]} +RLMATH_EOF diff --git a/tasks/construct-mc-pysms-min-degree-l2-s0/tests/check.py b/tasks/construct-mc-pysms-min-degree-l2-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..4ab0b12508cf59b733f007a9d1f50831aec9efdf --- /dev/null +++ b/tasks/construct-mc-pysms-min-degree-l2-s0/tests/check.py @@ -0,0 +1,151 @@ +"""Graph-existence constraints (MathConstraint pysms_* problem types, CC-BY-4.0). The answer is a graph on +the stated vertex set, plus a proper colouring when a chromatic-number upper bound is asked for. Every +constraint present in the instance is checked exactly (no stored answer is compared). + +Upstream note: upstream verifies by fixing the edge variables in the pysms CNF and calling CaDiCaL; the +min-chromatic-number bound of pysms_graph_builder is only a raw smsg solver parameter, not a clause, so the +upstream verifier ignored it. It is enforced here. Edge endpoints are also type-checked (upstream accepted +floats/bools that compare in range).""" +import itertools + +from run import Invalid, int_list + + +def _has_clique(adj, n, k): + def rec(cand, size): + if size == k: + return True + while cand: + if size + bin(cand).count("1") < k: + return False + v = cand.bit_length() - 1 + cand &= ~(1 << v) + if rec(cand & adj[v], size + 1): + return True + return False + return rec((1 << n) - 1, 0) + + +def _connected(adj, n, removed): + alive = [v for v in range(n) if not removed >> v & 1] + if len(alive) <= 1: + return True + mask = sum(1 << v for v in alive) + seen = 1 << alive[0] + stack = [alive[0]] + while stack: + v = stack.pop() + new = adj[v] & mask & ~seen + seen |= new + while new: + u = new.bit_length() - 1 + new &= ~(1 << u) + stack.append(u) + return seen == mask + + +def _girth(adj, n): + best = None + for r in range(n): + dist, par, q = {r: 0}, {r: -1}, [r] + for v in q: + nb = adj[v] + while nb: + u = nb.bit_length() - 1 + nb &= ~(1 << u) + if u not in dist: + dist[u], par[u] = dist[v] + 1, v + q.append(u) + elif par[v] != u: + c = dist[u] + dist[v] + 1 + best = c if best is None else min(best, c) + return best # None = acyclic + + +def _colourable(adj, n, k): + col = [-1] * n + order = sorted(range(n), key=lambda v: -bin(adj[v]).count("1")) + + def rec(i): + if i == n: + return True + v = order[i] + used = {col[u] for u in range(n) if adj[v] >> u & 1 and col[u] >= 0} + for c in range(k): + if c not in used: + col[v] = c + if rec(i + 1): + return True + col[v] = -1 + return False + return rec(0) + + +def check(inst, ans): + n = inst["vertices"] + E = ans.get("edges") + if not isinstance(E, list): + raise Invalid("edges must be a list of [u, v] pairs") + edges = set() + for e in E: + u, v = int_list(e, 2, 0, n - 1, "edge") + if u == v: + raise Invalid(f"self-loop at {u}") + e2 = (min(u, v), max(u, v)) + if e2 in edges: + raise Invalid(f"duplicate edge {e2}") + edges.add(e2) + adj = [0] * n + for u, v in edges: + adj[u] |= 1 << v + adj[v] |= 1 << u + deg = [bin(a).count("1") for a in adj] + for u, v in inst.get("required_edges", []): + if (min(u, v), max(u, v)) not in edges: + raise Invalid(f"required edge ({u},{v}) is missing") + c = inst.get + if c("min_degree") is not None and min(deg) < c("min_degree"): + raise Invalid(f"minimum degree {min(deg)} < {c('min_degree')}") + if c("max_degree") is not None and max(deg) > c("max_degree"): + raise Invalid(f"maximum degree {max(deg)} > {c('max_degree')}") + if c("min_edges") is not None and len(edges) < c("min_edges"): + raise Invalid(f"{len(edges)} edges < {c('min_edges')}") + if c("max_edges") is not None and len(edges) > c("max_edges"): + raise Invalid(f"{len(edges)} edges > {c('max_edges')}") + if c("max_clique") is not None and _has_clique(adj, n, c("max_clique") + 1): + raise Invalid(f"graph contains a clique of size {c('max_clique') + 1}") + if c("max_independent_set") is not None: + full = (1 << n) - 1 + comp = [full & ~adj[v] & ~(1 << v) for v in range(n)] + if _has_clique(comp, n, c("max_independent_set") + 1): + raise Invalid(f"graph contains an independent set of size {c('max_independent_set') + 1}") + if c("min_girth") is not None: + g = _girth(adj, n) + if g is not None and g < c("min_girth"): + raise Invalid(f"graph has a cycle of length {g} < {c('min_girth')}") + if c("min_connectivity") is not None: + k = c("min_connectivity") + if n <= k: + raise Invalid("too few vertices for this connectivity") + for s in range(k): + for I in itertools.combinations(range(n), s): + if not _connected(adj, n, sum(1 << v for v in I)): + raise Invalid(f"deleting vertices {list(I)} disconnects the graph") + if c("mtf"): + for u, v in itertools.combinations(range(n), 2): + if adj[u] >> v & 1: + if adj[u] & adj[v]: + raise Invalid(f"triangle on edge ({u},{v})") + elif not adj[u] & adj[v]: + raise Invalid(f"non-adjacent {u}, {v} have no common neighbour (edge could be added)") + if c("max_chromatic_number") is not None: + k = c("max_chromatic_number") + col = int_list(ans.get("coloring"), n, 0, k - 1, "coloring") + for u, v in edges: + if col[u] == col[v]: + raise Invalid(f"coloring: edge ({u},{v}) is monochromatic") + if c("min_chromatic_number") is not None and c("min_chromatic_number") >= 2: + m = c("min_chromatic_number") + if not edges or _colourable(adj, n, m - 1): + raise Invalid(f"graph is {m - 1}-colourable, chromatic number must be at least {m}") + return None, {"num_edges": len(edges)} diff --git a/tasks/construct-mc-pysms-min-degree-l2-s0/tests/instance.json b/tasks/construct-mc-pysms-min-degree-l2-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c9a49307beee7b96d6263013e9b4f9bcb8a13ea8 --- /dev/null +++ b/tasks/construct-mc-pysms-min-degree-l2-s0/tests/instance.json @@ -0,0 +1 @@ +{"vertices": 9, "required_edges": [[5, 7], [1, 5], [3, 6], [5, 6], [4, 5], [4, 6], [0, 7]], "min_degree": 5, "family": "mc_pysms_min_degree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-min-degree-l2-s0/tests/run.py b/tasks/construct-mc-pysms-min-degree-l2-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-pysms-min-degree-l2-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-pysms-min-degree-l2-s0/tests/test.sh b/tasks/construct-mc-pysms-min-degree-l2-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-pysms-min-degree-l2-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-pysms-mtf-l1-s0/environment/Dockerfile b/tasks/construct-mc-pysms-mtf-l1-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-pysms-mtf-l1-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-pysms-mtf-l1-s0/environment/instance.json b/tasks/construct-mc-pysms-mtf-l1-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..fd8910e7366da8b47fe113cbd42bd1bed9e4c05e --- /dev/null +++ b/tasks/construct-mc-pysms-mtf-l1-s0/environment/instance.json @@ -0,0 +1 @@ +{"vertices": 7, "required_edges": [[0, 6], [1, 5]], "mtf": true, "family": "mc_pysms_mtf", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-mtf-l1-s0/solution/solve.sh b/tasks/construct-mc-pysms-mtf-l1-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..de3440a0f3c0fe555171f7ed75c88927bbb6e5bf --- /dev/null +++ b/tasks/construct-mc-pysms-mtf-l1-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"edges": [[0, 5], [0, 6], [1, 5], [1, 6], [2, 5], [2, 6], [3, 5], [3, 6], [4, 5], [4, 6]]} +RLMATH_EOF diff --git a/tasks/construct-mc-pysms-mtf-l1-s0/tests/check.py b/tasks/construct-mc-pysms-mtf-l1-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..4ab0b12508cf59b733f007a9d1f50831aec9efdf --- /dev/null +++ b/tasks/construct-mc-pysms-mtf-l1-s0/tests/check.py @@ -0,0 +1,151 @@ +"""Graph-existence constraints (MathConstraint pysms_* problem types, CC-BY-4.0). The answer is a graph on +the stated vertex set, plus a proper colouring when a chromatic-number upper bound is asked for. Every +constraint present in the instance is checked exactly (no stored answer is compared). + +Upstream note: upstream verifies by fixing the edge variables in the pysms CNF and calling CaDiCaL; the +min-chromatic-number bound of pysms_graph_builder is only a raw smsg solver parameter, not a clause, so the +upstream verifier ignored it. It is enforced here. Edge endpoints are also type-checked (upstream accepted +floats/bools that compare in range).""" +import itertools + +from run import Invalid, int_list + + +def _has_clique(adj, n, k): + def rec(cand, size): + if size == k: + return True + while cand: + if size + bin(cand).count("1") < k: + return False + v = cand.bit_length() - 1 + cand &= ~(1 << v) + if rec(cand & adj[v], size + 1): + return True + return False + return rec((1 << n) - 1, 0) + + +def _connected(adj, n, removed): + alive = [v for v in range(n) if not removed >> v & 1] + if len(alive) <= 1: + return True + mask = sum(1 << v for v in alive) + seen = 1 << alive[0] + stack = [alive[0]] + while stack: + v = stack.pop() + new = adj[v] & mask & ~seen + seen |= new + while new: + u = new.bit_length() - 1 + new &= ~(1 << u) + stack.append(u) + return seen == mask + + +def _girth(adj, n): + best = None + for r in range(n): + dist, par, q = {r: 0}, {r: -1}, [r] + for v in q: + nb = adj[v] + while nb: + u = nb.bit_length() - 1 + nb &= ~(1 << u) + if u not in dist: + dist[u], par[u] = dist[v] + 1, v + q.append(u) + elif par[v] != u: + c = dist[u] + dist[v] + 1 + best = c if best is None else min(best, c) + return best # None = acyclic + + +def _colourable(adj, n, k): + col = [-1] * n + order = sorted(range(n), key=lambda v: -bin(adj[v]).count("1")) + + def rec(i): + if i == n: + return True + v = order[i] + used = {col[u] for u in range(n) if adj[v] >> u & 1 and col[u] >= 0} + for c in range(k): + if c not in used: + col[v] = c + if rec(i + 1): + return True + col[v] = -1 + return False + return rec(0) + + +def check(inst, ans): + n = inst["vertices"] + E = ans.get("edges") + if not isinstance(E, list): + raise Invalid("edges must be a list of [u, v] pairs") + edges = set() + for e in E: + u, v = int_list(e, 2, 0, n - 1, "edge") + if u == v: + raise Invalid(f"self-loop at {u}") + e2 = (min(u, v), max(u, v)) + if e2 in edges: + raise Invalid(f"duplicate edge {e2}") + edges.add(e2) + adj = [0] * n + for u, v in edges: + adj[u] |= 1 << v + adj[v] |= 1 << u + deg = [bin(a).count("1") for a in adj] + for u, v in inst.get("required_edges", []): + if (min(u, v), max(u, v)) not in edges: + raise Invalid(f"required edge ({u},{v}) is missing") + c = inst.get + if c("min_degree") is not None and min(deg) < c("min_degree"): + raise Invalid(f"minimum degree {min(deg)} < {c('min_degree')}") + if c("max_degree") is not None and max(deg) > c("max_degree"): + raise Invalid(f"maximum degree {max(deg)} > {c('max_degree')}") + if c("min_edges") is not None and len(edges) < c("min_edges"): + raise Invalid(f"{len(edges)} edges < {c('min_edges')}") + if c("max_edges") is not None and len(edges) > c("max_edges"): + raise Invalid(f"{len(edges)} edges > {c('max_edges')}") + if c("max_clique") is not None and _has_clique(adj, n, c("max_clique") + 1): + raise Invalid(f"graph contains a clique of size {c('max_clique') + 1}") + if c("max_independent_set") is not None: + full = (1 << n) - 1 + comp = [full & ~adj[v] & ~(1 << v) for v in range(n)] + if _has_clique(comp, n, c("max_independent_set") + 1): + raise Invalid(f"graph contains an independent set of size {c('max_independent_set') + 1}") + if c("min_girth") is not None: + g = _girth(adj, n) + if g is not None and g < c("min_girth"): + raise Invalid(f"graph has a cycle of length {g} < {c('min_girth')}") + if c("min_connectivity") is not None: + k = c("min_connectivity") + if n <= k: + raise Invalid("too few vertices for this connectivity") + for s in range(k): + for I in itertools.combinations(range(n), s): + if not _connected(adj, n, sum(1 << v for v in I)): + raise Invalid(f"deleting vertices {list(I)} disconnects the graph") + if c("mtf"): + for u, v in itertools.combinations(range(n), 2): + if adj[u] >> v & 1: + if adj[u] & adj[v]: + raise Invalid(f"triangle on edge ({u},{v})") + elif not adj[u] & adj[v]: + raise Invalid(f"non-adjacent {u}, {v} have no common neighbour (edge could be added)") + if c("max_chromatic_number") is not None: + k = c("max_chromatic_number") + col = int_list(ans.get("coloring"), n, 0, k - 1, "coloring") + for u, v in edges: + if col[u] == col[v]: + raise Invalid(f"coloring: edge ({u},{v}) is monochromatic") + if c("min_chromatic_number") is not None and c("min_chromatic_number") >= 2: + m = c("min_chromatic_number") + if not edges or _colourable(adj, n, m - 1): + raise Invalid(f"graph is {m - 1}-colourable, chromatic number must be at least {m}") + return None, {"num_edges": len(edges)} diff --git a/tasks/construct-mc-pysms-mtf-l1-s0/tests/instance.json b/tasks/construct-mc-pysms-mtf-l1-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..fd8910e7366da8b47fe113cbd42bd1bed9e4c05e --- /dev/null +++ b/tasks/construct-mc-pysms-mtf-l1-s0/tests/instance.json @@ -0,0 +1 @@ +{"vertices": 7, "required_edges": [[0, 6], [1, 5]], "mtf": true, "family": "mc_pysms_mtf", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-mtf-l1-s0/tests/run.py b/tasks/construct-mc-pysms-mtf-l1-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-pysms-mtf-l1-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-pysms-mtf-l1-s0/tests/test.sh b/tasks/construct-mc-pysms-mtf-l1-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-pysms-mtf-l1-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-quasigroup-idempotent-l6-s0/environment/Dockerfile b/tasks/construct-mc-quasigroup-idempotent-l6-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-quasigroup-idempotent-l6-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-quasigroup-idempotent-l6-s0/environment/instance.json b/tasks/construct-mc-quasigroup-idempotent-l6-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..90a59a671aee8decc996944cc706e5d8c1bc3c8d --- /dev/null +++ b/tasks/construct-mc-quasigroup-idempotent-l6-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 48, "family": "mc_quasigroup_idempotent", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-quasigroup-idempotent-l6-s0/solution/solve.sh b/tasks/construct-mc-quasigroup-idempotent-l6-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e944e713b9372ac5987ad2a718bb18b8ad76dca --- /dev/null +++ b/tasks/construct-mc-quasigroup-idempotent-l6-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"table": [[0, 6, 8, 1, 7, 3, 2, 11, 10, 4, 5, 9, 36, 42, 44, 37, 43, 39, 38, 47, 46, 40, 41, 45, 12, 18, 20, 13, 19, 15, 14, 23, 22, 16, 17, 21, 24, 30, 32, 25, 31, 27, 26, 35, 34, 28, 29, 33], [7, 1, 11, 4, 6, 9, 5, 8, 2, 3, 0, 10, 43, 37, 47, 40, 42, 45, 41, 44, 38, 39, 36, 46, 19, 13, 23, 16, 18, 21, 17, 20, 14, 15, 12, 22, 31, 25, 35, 28, 30, 33, 29, 32, 26, 27, 24, 34], [1, 10, 2, 5, 3, 11, 8, 6, 9, 0, 7, 4, 37, 46, 38, 41, 39, 47, 44, 42, 45, 36, 43, 40, 13, 22, 14, 17, 15, 23, 20, 18, 21, 12, 19, 16, 25, 34, 26, 29, 27, 35, 32, 30, 33, 24, 31, 28], [10, 2, 0, 3, 1, 8, 9, 4, 11, 7, 6, 5, 46, 38, 36, 39, 37, 44, 45, 40, 47, 43, 42, 41, 22, 14, 12, 15, 13, 20, 21, 16, 23, 19, 18, 17, 34, 26, 24, 27, 25, 32, 33, 28, 35, 31, 30, 29], [3, 5, 1, 9, 4, 7, 11, 2, 6, 10, 8, 0, 39, 41, 37, 45, 40, 43, 47, 38, 42, 46, 44, 36, 15, 17, 13, 21, 16, 19, 23, 14, 18, 22, 20, 12, 27, 29, 25, 33, 28, 31, 35, 26, 30, 34, 32, 24], [2, 11, 3, 6, 10, 5, 4, 1, 0, 8, 9, 7, 38, 47, 39, 42, 46, 41, 40, 37, 36, 44, 45, 43, 14, 23, 15, 18, 22, 17, 16, 13, 12, 20, 21, 19, 26, 35, 27, 30, 34, 29, 28, 25, 24, 32, 33, 31], [9, 7, 4, 10, 8, 1, 6, 0, 5, 11, 2, 3, 45, 43, 40, 46, 44, 37, 42, 36, 41, 47, 38, 39, 21, 19, 16, 22, 20, 13, 18, 12, 17, 23, 14, 15, 33, 31, 28, 34, 32, 25, 30, 24, 29, 35, 26, 27], [5, 9, 10, 0, 11, 6, 1, 7, 3, 2, 4, 8, 41, 45, 46, 36, 47, 42, 37, 43, 39, 38, 40, 44, 17, 21, 22, 12, 23, 18, 13, 19, 15, 14, 16, 20, 29, 33, 34, 24, 35, 30, 25, 31, 27, 26, 28, 32], [4, 0, 5, 7, 2, 10, 3, 9, 8, 1, 11, 6, 40, 36, 41, 43, 38, 46, 39, 45, 44, 37, 47, 42, 16, 12, 17, 19, 14, 22, 15, 21, 20, 13, 23, 18, 28, 24, 29, 31, 26, 34, 27, 33, 32, 25, 35, 30], [11, 4, 6, 8, 5, 2, 0, 10, 7, 9, 3, 1, 47, 40, 42, 44, 41, 38, 36, 46, 43, 45, 39, 37, 23, 16, 18, 20, 17, 14, 12, 22, 19, 21, 15, 13, 35, 28, 30, 32, 29, 26, 24, 34, 31, 33, 27, 25], [8, 3, 9, 11, 0, 4, 7, 5, 1, 6, 10, 2, 44, 39, 45, 47, 36, 40, 43, 41, 37, 42, 46, 38, 20, 15, 21, 23, 12, 16, 19, 17, 13, 18, 22, 14, 32, 27, 33, 35, 24, 28, 31, 29, 25, 30, 34, 26], [6, 8, 7, 2, 9, 0, 10, 3, 4, 5, 1, 11, 42, 44, 43, 38, 45, 36, 46, 39, 40, 41, 37, 47, 18, 20, 19, 14, 21, 12, 22, 15, 16, 17, 13, 23, 30, 32, 31, 26, 33, 24, 34, 27, 28, 29, 25, 35], [24, 30, 32, 25, 31, 27, 26, 35, 34, 28, 29, 33, 12, 18, 20, 13, 19, 15, 14, 23, 22, 16, 17, 21, 36, 42, 44, 37, 43, 39, 38, 47, 46, 40, 41, 45, 0, 6, 8, 1, 7, 3, 2, 11, 10, 4, 5, 9], [31, 25, 35, 28, 30, 33, 29, 32, 26, 27, 24, 34, 19, 13, 23, 16, 18, 21, 17, 20, 14, 15, 12, 22, 43, 37, 47, 40, 42, 45, 41, 44, 38, 39, 36, 46, 7, 1, 11, 4, 6, 9, 5, 8, 2, 3, 0, 10], [25, 34, 26, 29, 27, 35, 32, 30, 33, 24, 31, 28, 13, 22, 14, 17, 15, 23, 20, 18, 21, 12, 19, 16, 37, 46, 38, 41, 39, 47, 44, 42, 45, 36, 43, 40, 1, 10, 2, 5, 3, 11, 8, 6, 9, 0, 7, 4], [34, 26, 24, 27, 25, 32, 33, 28, 35, 31, 30, 29, 22, 14, 12, 15, 13, 20, 21, 16, 23, 19, 18, 17, 46, 38, 36, 39, 37, 44, 45, 40, 47, 43, 42, 41, 10, 2, 0, 3, 1, 8, 9, 4, 11, 7, 6, 5], [27, 29, 25, 33, 28, 31, 35, 26, 30, 34, 32, 24, 15, 17, 13, 21, 16, 19, 23, 14, 18, 22, 20, 12, 39, 41, 37, 45, 40, 43, 47, 38, 42, 46, 44, 36, 3, 5, 1, 9, 4, 7, 11, 2, 6, 10, 8, 0], [26, 35, 27, 30, 34, 29, 28, 25, 24, 32, 33, 31, 14, 23, 15, 18, 22, 17, 16, 13, 12, 20, 21, 19, 38, 47, 39, 42, 46, 41, 40, 37, 36, 44, 45, 43, 2, 11, 3, 6, 10, 5, 4, 1, 0, 8, 9, 7], [33, 31, 28, 34, 32, 25, 30, 24, 29, 35, 26, 27, 21, 19, 16, 22, 20, 13, 18, 12, 17, 23, 14, 15, 45, 43, 40, 46, 44, 37, 42, 36, 41, 47, 38, 39, 9, 7, 4, 10, 8, 1, 6, 0, 5, 11, 2, 3], [29, 33, 34, 24, 35, 30, 25, 31, 27, 26, 28, 32, 17, 21, 22, 12, 23, 18, 13, 19, 15, 14, 16, 20, 41, 45, 46, 36, 47, 42, 37, 43, 39, 38, 40, 44, 5, 9, 10, 0, 11, 6, 1, 7, 3, 2, 4, 8], [28, 24, 29, 31, 26, 34, 27, 33, 32, 25, 35, 30, 16, 12, 17, 19, 14, 22, 15, 21, 20, 13, 23, 18, 40, 36, 41, 43, 38, 46, 39, 45, 44, 37, 47, 42, 4, 0, 5, 7, 2, 10, 3, 9, 8, 1, 11, 6], [35, 28, 30, 32, 29, 26, 24, 34, 31, 33, 27, 25, 23, 16, 18, 20, 17, 14, 12, 22, 19, 21, 15, 13, 47, 40, 42, 44, 41, 38, 36, 46, 43, 45, 39, 37, 11, 4, 6, 8, 5, 2, 0, 10, 7, 9, 3, 1], [32, 27, 33, 35, 24, 28, 31, 29, 25, 30, 34, 26, 20, 15, 21, 23, 12, 16, 19, 17, 13, 18, 22, 14, 44, 39, 45, 47, 36, 40, 43, 41, 37, 42, 46, 38, 8, 3, 9, 11, 0, 4, 7, 5, 1, 6, 10, 2], [30, 32, 31, 26, 33, 24, 34, 27, 28, 29, 25, 35, 18, 20, 19, 14, 21, 12, 22, 15, 16, 17, 13, 23, 42, 44, 43, 38, 45, 36, 46, 39, 40, 41, 37, 47, 6, 8, 7, 2, 9, 0, 10, 3, 4, 5, 1, 11], [36, 42, 44, 37, 43, 39, 38, 47, 46, 40, 41, 45, 0, 6, 8, 1, 7, 3, 2, 11, 10, 4, 5, 9, 24, 30, 32, 25, 31, 27, 26, 35, 34, 28, 29, 33, 12, 18, 20, 13, 19, 15, 14, 23, 22, 16, 17, 21], [43, 37, 47, 40, 42, 45, 41, 44, 38, 39, 36, 46, 7, 1, 11, 4, 6, 9, 5, 8, 2, 3, 0, 10, 31, 25, 35, 28, 30, 33, 29, 32, 26, 27, 24, 34, 19, 13, 23, 16, 18, 21, 17, 20, 14, 15, 12, 22], [37, 46, 38, 41, 39, 47, 44, 42, 45, 36, 43, 40, 1, 10, 2, 5, 3, 11, 8, 6, 9, 0, 7, 4, 25, 34, 26, 29, 27, 35, 32, 30, 33, 24, 31, 28, 13, 22, 14, 17, 15, 23, 20, 18, 21, 12, 19, 16], [46, 38, 36, 39, 37, 44, 45, 40, 47, 43, 42, 41, 10, 2, 0, 3, 1, 8, 9, 4, 11, 7, 6, 5, 34, 26, 24, 27, 25, 32, 33, 28, 35, 31, 30, 29, 22, 14, 12, 15, 13, 20, 21, 16, 23, 19, 18, 17], [39, 41, 37, 45, 40, 43, 47, 38, 42, 46, 44, 36, 3, 5, 1, 9, 4, 7, 11, 2, 6, 10, 8, 0, 27, 29, 25, 33, 28, 31, 35, 26, 30, 34, 32, 24, 15, 17, 13, 21, 16, 19, 23, 14, 18, 22, 20, 12], [38, 47, 39, 42, 46, 41, 40, 37, 36, 44, 45, 43, 2, 11, 3, 6, 10, 5, 4, 1, 0, 8, 9, 7, 26, 35, 27, 30, 34, 29, 28, 25, 24, 32, 33, 31, 14, 23, 15, 18, 22, 17, 16, 13, 12, 20, 21, 19], [45, 43, 40, 46, 44, 37, 42, 36, 41, 47, 38, 39, 9, 7, 4, 10, 8, 1, 6, 0, 5, 11, 2, 3, 33, 31, 28, 34, 32, 25, 30, 24, 29, 35, 26, 27, 21, 19, 16, 22, 20, 13, 18, 12, 17, 23, 14, 15], [41, 45, 46, 36, 47, 42, 37, 43, 39, 38, 40, 44, 5, 9, 10, 0, 11, 6, 1, 7, 3, 2, 4, 8, 29, 33, 34, 24, 35, 30, 25, 31, 27, 26, 28, 32, 17, 21, 22, 12, 23, 18, 13, 19, 15, 14, 16, 20], [40, 36, 41, 43, 38, 46, 39, 45, 44, 37, 47, 42, 4, 0, 5, 7, 2, 10, 3, 9, 8, 1, 11, 6, 28, 24, 29, 31, 26, 34, 27, 33, 32, 25, 35, 30, 16, 12, 17, 19, 14, 22, 15, 21, 20, 13, 23, 18], [47, 40, 42, 44, 41, 38, 36, 46, 43, 45, 39, 37, 11, 4, 6, 8, 5, 2, 0, 10, 7, 9, 3, 1, 35, 28, 30, 32, 29, 26, 24, 34, 31, 33, 27, 25, 23, 16, 18, 20, 17, 14, 12, 22, 19, 21, 15, 13], [44, 39, 45, 47, 36, 40, 43, 41, 37, 42, 46, 38, 8, 3, 9, 11, 0, 4, 7, 5, 1, 6, 10, 2, 32, 27, 33, 35, 24, 28, 31, 29, 25, 30, 34, 26, 20, 15, 21, 23, 12, 16, 19, 17, 13, 18, 22, 14], [42, 44, 43, 38, 45, 36, 46, 39, 40, 41, 37, 47, 6, 8, 7, 2, 9, 0, 10, 3, 4, 5, 1, 11, 30, 32, 31, 26, 33, 24, 34, 27, 28, 29, 25, 35, 18, 20, 19, 14, 21, 12, 22, 15, 16, 17, 13, 23], [12, 18, 20, 13, 19, 15, 14, 23, 22, 16, 17, 21, 24, 30, 32, 25, 31, 27, 26, 35, 34, 28, 29, 33, 0, 6, 8, 1, 7, 3, 2, 11, 10, 4, 5, 9, 36, 42, 44, 37, 43, 39, 38, 47, 46, 40, 41, 45], [19, 13, 23, 16, 18, 21, 17, 20, 14, 15, 12, 22, 31, 25, 35, 28, 30, 33, 29, 32, 26, 27, 24, 34, 7, 1, 11, 4, 6, 9, 5, 8, 2, 3, 0, 10, 43, 37, 47, 40, 42, 45, 41, 44, 38, 39, 36, 46], [13, 22, 14, 17, 15, 23, 20, 18, 21, 12, 19, 16, 25, 34, 26, 29, 27, 35, 32, 30, 33, 24, 31, 28, 1, 10, 2, 5, 3, 11, 8, 6, 9, 0, 7, 4, 37, 46, 38, 41, 39, 47, 44, 42, 45, 36, 43, 40], [22, 14, 12, 15, 13, 20, 21, 16, 23, 19, 18, 17, 34, 26, 24, 27, 25, 32, 33, 28, 35, 31, 30, 29, 10, 2, 0, 3, 1, 8, 9, 4, 11, 7, 6, 5, 46, 38, 36, 39, 37, 44, 45, 40, 47, 43, 42, 41], [15, 17, 13, 21, 16, 19, 23, 14, 18, 22, 20, 12, 27, 29, 25, 33, 28, 31, 35, 26, 30, 34, 32, 24, 3, 5, 1, 9, 4, 7, 11, 2, 6, 10, 8, 0, 39, 41, 37, 45, 40, 43, 47, 38, 42, 46, 44, 36], [14, 23, 15, 18, 22, 17, 16, 13, 12, 20, 21, 19, 26, 35, 27, 30, 34, 29, 28, 25, 24, 32, 33, 31, 2, 11, 3, 6, 10, 5, 4, 1, 0, 8, 9, 7, 38, 47, 39, 42, 46, 41, 40, 37, 36, 44, 45, 43], [21, 19, 16, 22, 20, 13, 18, 12, 17, 23, 14, 15, 33, 31, 28, 34, 32, 25, 30, 24, 29, 35, 26, 27, 9, 7, 4, 10, 8, 1, 6, 0, 5, 11, 2, 3, 45, 43, 40, 46, 44, 37, 42, 36, 41, 47, 38, 39], [17, 21, 22, 12, 23, 18, 13, 19, 15, 14, 16, 20, 29, 33, 34, 24, 35, 30, 25, 31, 27, 26, 28, 32, 5, 9, 10, 0, 11, 6, 1, 7, 3, 2, 4, 8, 41, 45, 46, 36, 47, 42, 37, 43, 39, 38, 40, 44], [16, 12, 17, 19, 14, 22, 15, 21, 20, 13, 23, 18, 28, 24, 29, 31, 26, 34, 27, 33, 32, 25, 35, 30, 4, 0, 5, 7, 2, 10, 3, 9, 8, 1, 11, 6, 40, 36, 41, 43, 38, 46, 39, 45, 44, 37, 47, 42], [23, 16, 18, 20, 17, 14, 12, 22, 19, 21, 15, 13, 35, 28, 30, 32, 29, 26, 24, 34, 31, 33, 27, 25, 11, 4, 6, 8, 5, 2, 0, 10, 7, 9, 3, 1, 47, 40, 42, 44, 41, 38, 36, 46, 43, 45, 39, 37], [20, 15, 21, 23, 12, 16, 19, 17, 13, 18, 22, 14, 32, 27, 33, 35, 24, 28, 31, 29, 25, 30, 34, 26, 8, 3, 9, 11, 0, 4, 7, 5, 1, 6, 10, 2, 44, 39, 45, 47, 36, 40, 43, 41, 37, 42, 46, 38], [18, 20, 19, 14, 21, 12, 22, 15, 16, 17, 13, 23, 30, 32, 31, 26, 33, 24, 34, 27, 28, 29, 25, 35, 6, 8, 7, 2, 9, 0, 10, 3, 4, 5, 1, 11, 42, 44, 43, 38, 45, 36, 46, 39, 40, 41, 37, 47]]} +RLMATH_EOF diff --git a/tasks/construct-mc-quasigroup-idempotent-l6-s0/tests/check.py b/tasks/construct-mc-quasigroup-idempotent-l6-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..4563f2e9a90050cdd7c56dfc33831acde74c9ef2 --- /dev/null +++ b/tasks/construct-mc-quasigroup-idempotent-l6-s0/tests/check.py @@ -0,0 +1,21 @@ +"""Idempotent quasigroup satisfying QG3, (x*y)*(y*x) = x (MathConstraint quasigroup_idempotent, CC-BY-4.0).""" +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + T = ans.get("table") + if not isinstance(T, list) or len(T) != n: + raise Invalid(f"table must be a list of {n} rows") + T = [int_list(r, n, 0, n - 1, "table row") for r in T] + full = list(range(n)) + for i in range(n): + if sorted(T[i]) != full or sorted(T[r][i] for r in range(n)) != full: + raise Invalid(f"row/column {i} is not a permutation (not a Latin square)") + if T[i][i] != i: + raise Invalid(f"not idempotent: {i}*{i} = {T[i][i]}") + for i in range(n): + for j in range(n): + if T[T[i][j]][T[j][i]] != i: + raise Invalid(f"QG3 fails for (x, y) = ({i}, {j})") + return None, {} diff --git a/tasks/construct-mc-quasigroup-idempotent-l6-s0/tests/instance.json b/tasks/construct-mc-quasigroup-idempotent-l6-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..90a59a671aee8decc996944cc706e5d8c1bc3c8d --- /dev/null +++ b/tasks/construct-mc-quasigroup-idempotent-l6-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 48, "family": "mc_quasigroup_idempotent", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-quasigroup-idempotent-l6-s0/tests/run.py b/tasks/construct-mc-quasigroup-idempotent-l6-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-quasigroup-idempotent-l6-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-quasigroup-idempotent-l6-s0/tests/test.sh b/tasks/construct-mc-quasigroup-idempotent-l6-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-quasigroup-idempotent-l6-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-social-golfers-l2-s1/environment/Dockerfile b/tasks/construct-mc-social-golfers-l2-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-social-golfers-l2-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-social-golfers-l2-s1/environment/instance.json b/tasks/construct-mc-social-golfers-l2-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..21445b2bdc1887fe82e40b60094a42aca7753b77 --- /dev/null +++ b/tasks/construct-mc-social-golfers-l2-s1/environment/instance.json @@ -0,0 +1 @@ +{"n_groups": 9, "group_size": 3, "n_weeks": 7, "family": "mc_social_golfers", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-social-golfers-l2-s1/solution/solve.sh b/tasks/construct-mc-social-golfers-l2-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e245657342e1e496311e97098d22114e959cecb --- /dev/null +++ b/tasks/construct-mc-social-golfers-l2-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"schedule": [[0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8], [8, 1, 0, 5, 0, 3, 6, 2, 5, 6, 8, 7, 6, 7, 4, 2, 5, 1, 2, 4, 7, 3, 1, 4, 8, 3, 0], [6, 7, 8, 8, 5, 4, 7, 4, 5, 1, 3, 0, 0, 1, 2, 2, 6, 3, 3, 4, 5, 6, 8, 7, 1, 2, 0], [8, 7, 4, 3, 6, 7, 8, 3, 4, 4, 5, 7, 2, 0, 8, 0, 1, 2, 1, 6, 5, 0, 1, 5, 6, 2, 3], [6, 8, 7, 6, 8, 7, 1, 2, 0, 8, 3, 2, 3, 4, 5, 6, 5, 4, 7, 4, 5, 3, 1, 0, 0, 2, 1], [4, 3, 5, 6, 4, 7, 5, 3, 7, 6, 5, 4, 8, 7, 6, 8, 3, 0, 1, 8, 2, 0, 2, 1, 2, 1, 0], [2, 1, 3, 4, 5, 6, 4, 3, 7, 6, 5, 8, 7, 4, 8, 6, 5, 8, 7, 0, 1, 1, 0, 2, 3, 0, 2]]} +RLMATH_EOF diff --git a/tasks/construct-mc-social-golfers-l2-s1/tests/check.py b/tasks/construct-mc-social-golfers-l2-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..73977815b7b6094a8491075b6dc2ae1293e44930 --- /dev/null +++ b/tasks/construct-mc-social-golfers-l2-s1/tests/check.py @@ -0,0 +1,25 @@ +"""Social golfer problem (MathConstraint social_golfers, CSPLib prob010, CC-BY-4.0): each week partition +the g*s players into g groups of size s; no two players share a group in more than one week.""" +from run import Invalid, int_list + + +def check(inst, ans): + g, s, w = inst["n_groups"], inst["group_size"], inst["n_weeks"] + P = g * s + sched = ans.get("schedule") + if not isinstance(sched, list) or len(sched) != w: + raise Invalid(f"schedule must be a list of {w} weeks") + met = set() + for wk, row in enumerate(sched): + row = int_list(row, P, 0, g - 1, f"week {wk}") + groups = [[p for p in range(P) if row[p] == grp] for grp in range(g)] + for grp, mem in enumerate(groups): + if len(mem) != s: + raise Invalid(f"week {wk}: group {grp} has {len(mem)} players, need {s}") + for i in range(s): + for j in range(i + 1, s): + pr = (mem[i], mem[j]) + if pr in met: + raise Invalid(f"players {pr} play together in more than one week") + met.add(pr) + return None, {} diff --git a/tasks/construct-mc-social-golfers-l2-s1/tests/instance.json b/tasks/construct-mc-social-golfers-l2-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..21445b2bdc1887fe82e40b60094a42aca7753b77 --- /dev/null +++ b/tasks/construct-mc-social-golfers-l2-s1/tests/instance.json @@ -0,0 +1 @@ +{"n_groups": 9, "group_size": 3, "n_weeks": 7, "family": "mc_social_golfers", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-social-golfers-l2-s1/tests/run.py b/tasks/construct-mc-social-golfers-l2-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-social-golfers-l2-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-social-golfers-l2-s1/tests/test.sh b/tasks/construct-mc-social-golfers-l2-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-social-golfers-l2-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-social-golfers-l6-s0/environment/Dockerfile b/tasks/construct-mc-social-golfers-l6-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-social-golfers-l6-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-social-golfers-l6-s0/environment/instance.json b/tasks/construct-mc-social-golfers-l6-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..dc78183417fd72184556b59235e3713fee5cab31 --- /dev/null +++ b/tasks/construct-mc-social-golfers-l6-s0/environment/instance.json @@ -0,0 +1 @@ +{"n_groups": 5, "group_size": 5, "n_weeks": 6, "family": "mc_social_golfers", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-social-golfers-l6-s0/solution/solve.sh b/tasks/construct-mc-social-golfers-l6-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9b03e964d481b197f30e80243e0025a73d2ef46 --- /dev/null +++ b/tasks/construct-mc-social-golfers-l6-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"schedule": [[0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4], [0, 1, 2, 3, 4, 4, 0, 1, 2, 3, 3, 4, 0, 1, 2, 2, 3, 4, 0, 1, 1, 2, 3, 4, 0], [0, 1, 2, 3, 4, 3, 4, 0, 1, 2, 1, 2, 3, 4, 0, 4, 0, 1, 2, 3, 2, 3, 4, 0, 1], [0, 1, 2, 3, 4, 2, 3, 4, 0, 1, 4, 0, 1, 2, 3, 1, 2, 3, 4, 0, 3, 4, 0, 1, 2], [0, 1, 2, 3, 4, 1, 2, 3, 4, 0, 2, 3, 4, 0, 1, 3, 4, 0, 1, 2, 4, 0, 1, 2, 3], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4]]} +RLMATH_EOF diff --git a/tasks/construct-mc-social-golfers-l6-s0/tests/check.py b/tasks/construct-mc-social-golfers-l6-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..73977815b7b6094a8491075b6dc2ae1293e44930 --- /dev/null +++ b/tasks/construct-mc-social-golfers-l6-s0/tests/check.py @@ -0,0 +1,25 @@ +"""Social golfer problem (MathConstraint social_golfers, CSPLib prob010, CC-BY-4.0): each week partition +the g*s players into g groups of size s; no two players share a group in more than one week.""" +from run import Invalid, int_list + + +def check(inst, ans): + g, s, w = inst["n_groups"], inst["group_size"], inst["n_weeks"] + P = g * s + sched = ans.get("schedule") + if not isinstance(sched, list) or len(sched) != w: + raise Invalid(f"schedule must be a list of {w} weeks") + met = set() + for wk, row in enumerate(sched): + row = int_list(row, P, 0, g - 1, f"week {wk}") + groups = [[p for p in range(P) if row[p] == grp] for grp in range(g)] + for grp, mem in enumerate(groups): + if len(mem) != s: + raise Invalid(f"week {wk}: group {grp} has {len(mem)} players, need {s}") + for i in range(s): + for j in range(i + 1, s): + pr = (mem[i], mem[j]) + if pr in met: + raise Invalid(f"players {pr} play together in more than one week") + met.add(pr) + return None, {} diff --git a/tasks/construct-mc-social-golfers-l6-s0/tests/instance.json b/tasks/construct-mc-social-golfers-l6-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..dc78183417fd72184556b59235e3713fee5cab31 --- /dev/null +++ b/tasks/construct-mc-social-golfers-l6-s0/tests/instance.json @@ -0,0 +1 @@ +{"n_groups": 5, "group_size": 5, "n_weeks": 6, "family": "mc_social_golfers", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-social-golfers-l6-s0/tests/run.py b/tasks/construct-mc-social-golfers-l6-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-social-golfers-l6-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-social-golfers-l6-s0/tests/test.sh b/tasks/construct-mc-social-golfers-l6-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-social-golfers-l6-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-van-der-waerden-l3-s0/environment/Dockerfile b/tasks/construct-mc-van-der-waerden-l3-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-van-der-waerden-l3-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-van-der-waerden-l3-s0/environment/instance.json b/tasks/construct-mc-van-der-waerden-l3-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c417ccfbcb38169bc9c472d7825d88a2a0b8ecea --- /dev/null +++ b/tasks/construct-mc-van-der-waerden-l3-s0/environment/instance.json @@ -0,0 +1 @@ +{"k": 2, "L": 4, "n": 32, "family": "mc_van_der_waerden", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-van-der-waerden-l3-s0/solution/solve.sh b/tasks/construct-mc-van-der-waerden-l3-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..53b458ed2b4b4a7ac1a2f71b272ad3ff662987d3 --- /dev/null +++ b/tasks/construct-mc-van-der-waerden-l3-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0]} +RLMATH_EOF diff --git a/tasks/construct-mc-van-der-waerden-l3-s0/tests/check.py b/tasks/construct-mc-van-der-waerden-l3-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..9853b089b6ac1773d80eac8e9e02ceb4019ad41f --- /dev/null +++ b/tasks/construct-mc-van-der-waerden-l3-s0/tests/check.py @@ -0,0 +1,15 @@ +"""k-colouring of {1..n} with no monochromatic L-term arithmetic progression (MathConstraint +van_der_waerden, CC-BY-4.0).""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k, L = inst["n"], inst["k"], inst["L"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + for a in range(n): + for d in range(1, n): + if a + (L - 1) * d >= n: + break + if all(c[a + j * d] == c[a] for j in range(1, L)): + raise Invalid(f"monochromatic progression {[a + 1 + j * d for j in range(L)]}") + return None, {} diff --git a/tasks/construct-mc-van-der-waerden-l3-s0/tests/instance.json b/tasks/construct-mc-van-der-waerden-l3-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c417ccfbcb38169bc9c472d7825d88a2a0b8ecea --- /dev/null +++ b/tasks/construct-mc-van-der-waerden-l3-s0/tests/instance.json @@ -0,0 +1 @@ +{"k": 2, "L": 4, "n": 32, "family": "mc_van_der_waerden", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-van-der-waerden-l3-s0/tests/run.py b/tasks/construct-mc-van-der-waerden-l3-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-van-der-waerden-l3-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-van-der-waerden-l3-s0/tests/test.sh b/tasks/construct-mc-van-der-waerden-l3-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-van-der-waerden-l3-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-vertex-cover-l2-s0/environment/Dockerfile b/tasks/construct-mc-vertex-cover-l2-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l2-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-vertex-cover-l2-s0/environment/instance.json b/tasks/construct-mc-vertex-cover-l2-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c7e82ef4157ac207aa746aa54463a6021306503b --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l2-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 30, "k": 18, "edges": [[0, 1], [0, 2], [0, 6], [0, 10], [0, 11], [0, 13], [0, 14], [0, 16], [0, 24], [0, 25], [0, 27], [1, 8], [1, 15], [1, 23], [1, 25], [1, 26], [2, 4], [2, 12], [2, 22], [3, 4], [3, 6], [3, 7], [3, 11], [3, 13], [3, 26], [4, 15], [4, 21], [4, 24], [5, 10], [5, 25], [5, 27], [5, 28], [6, 24], [6, 25], [6, 28], [7, 12], [7, 18], [7, 21], [7, 22], [8, 18], [8, 19], [9, 10], [9, 21], [9, 25], [9, 27], [10, 11], [10, 17], [10, 23], [10, 27], [10, 28], [11, 12], [12, 21], [13, 14], [13, 15], [13, 21], [13, 25], [13, 26], [14, 17], [15, 18], [15, 25], [15, 27], [16, 18], [16, 22], [16, 28], [17, 22], [18, 21], [18, 24], [19, 26], [20, 21], [21, 27], [22, 23], [23, 25], [23, 27]], "family": "mc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-vertex-cover-l2-s0/solution/solve.sh b/tasks/construct-mc-vertex-cover-l2-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a885320efb27020c0345e202dffa888d2768ef72 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l2-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"cover": [0, 1, 3, 4, 8, 10, 12, 13, 14, 15, 18, 19, 21, 22, 24, 25, 27, 28]} +RLMATH_EOF diff --git a/tasks/construct-mc-vertex-cover-l2-s0/tests/check.py b/tasks/construct-mc-vertex-cover-l2-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e3accb3da1c773fd2126b8b5b0a97b099e29c83b --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l2-s0/tests/check.py @@ -0,0 +1,16 @@ +"""Vertex cover of size <= k in a given graph (MathConstraint vertex_cover, CC-BY-4.0).""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("cover"), None, 0, n - 1, "cover") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) > k: + raise Invalid(f"cover has {len(S)} vertices, at most {k} allowed") + C = set(S) + for u, v in inst["edges"]: + if u not in C and v not in C: + raise Invalid(f"edge ({u},{v}) is not covered") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-vertex-cover-l2-s0/tests/instance.json b/tasks/construct-mc-vertex-cover-l2-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c7e82ef4157ac207aa746aa54463a6021306503b --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l2-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 30, "k": 18, "edges": [[0, 1], [0, 2], [0, 6], [0, 10], [0, 11], [0, 13], [0, 14], [0, 16], [0, 24], [0, 25], [0, 27], [1, 8], [1, 15], [1, 23], [1, 25], [1, 26], [2, 4], [2, 12], [2, 22], [3, 4], [3, 6], [3, 7], [3, 11], [3, 13], [3, 26], [4, 15], [4, 21], [4, 24], [5, 10], [5, 25], [5, 27], [5, 28], [6, 24], [6, 25], [6, 28], [7, 12], [7, 18], [7, 21], [7, 22], [8, 18], [8, 19], [9, 10], [9, 21], [9, 25], [9, 27], [10, 11], [10, 17], [10, 23], [10, 27], [10, 28], [11, 12], [12, 21], [13, 14], [13, 15], [13, 21], [13, 25], [13, 26], [14, 17], [15, 18], [15, 25], [15, 27], [16, 18], [16, 22], [16, 28], [17, 22], [18, 21], [18, 24], [19, 26], [20, 21], [21, 27], [22, 23], [23, 25], [23, 27]], "family": "mc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-vertex-cover-l2-s0/tests/run.py b/tasks/construct-mc-vertex-cover-l2-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l2-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-vertex-cover-l2-s0/tests/test.sh b/tasks/construct-mc-vertex-cover-l2-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l2-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-vertex-cover-l2-s9/environment/Dockerfile b/tasks/construct-mc-vertex-cover-l2-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l2-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-vertex-cover-l2-s9/environment/instance.json b/tasks/construct-mc-vertex-cover-l2-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..8ab28ed3959a991546a04336fdc383d7ba11e403 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l2-s9/environment/instance.json @@ -0,0 +1 @@ +{"n": 30, "k": 18, "edges": [[0, 9], [0, 13], [0, 19], [0, 26], [0, 27], [1, 2], [1, 6], [1, 7], [1, 12], [1, 15], [1, 16], [1, 19], [1, 26], [1, 28], [2, 12], [2, 14], [2, 23], [2, 28], [2, 29], [3, 6], [3, 8], [3, 11], [3, 16], [3, 21], [3, 23], [4, 11], [4, 14], [4, 19], [4, 21], [5, 9], [5, 10], [5, 12], [5, 13], [5, 24], [5, 29], [6, 11], [6, 14], [6, 19], [7, 25], [8, 22], [8, 25], [9, 12], [9, 14], [9, 16], [9, 18], [9, 22], [9, 28], [10, 11], [10, 19], [10, 21], [10, 23], [11, 25], [12, 13], [12, 16], [12, 19], [13, 24], [14, 17], [14, 21], [14, 25], [16, 28], [17, 22], [17, 29], [19, 21], [19, 24], [19, 29], [20, 21], [20, 29], [21, 24], [21, 27], [22, 27], [24, 28], [25, 29], [26, 29], [27, 29]], "family": "mc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-vertex-cover-l2-s9/solution/solve.sh b/tasks/construct-mc-vertex-cover-l2-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c9a4bb45ac81056348d054c4f4ff3239794dbf6 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l2-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"cover": [0, 1, 3, 4, 5, 7, 8, 9, 11, 12, 14, 19, 21, 22, 23, 24, 28, 29]} +RLMATH_EOF diff --git a/tasks/construct-mc-vertex-cover-l2-s9/tests/check.py b/tasks/construct-mc-vertex-cover-l2-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e3accb3da1c773fd2126b8b5b0a97b099e29c83b --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l2-s9/tests/check.py @@ -0,0 +1,16 @@ +"""Vertex cover of size <= k in a given graph (MathConstraint vertex_cover, CC-BY-4.0).""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("cover"), None, 0, n - 1, "cover") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) > k: + raise Invalid(f"cover has {len(S)} vertices, at most {k} allowed") + C = set(S) + for u, v in inst["edges"]: + if u not in C and v not in C: + raise Invalid(f"edge ({u},{v}) is not covered") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-vertex-cover-l2-s9/tests/instance.json b/tasks/construct-mc-vertex-cover-l2-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..8ab28ed3959a991546a04336fdc383d7ba11e403 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l2-s9/tests/instance.json @@ -0,0 +1 @@ +{"n": 30, "k": 18, "edges": [[0, 9], [0, 13], [0, 19], [0, 26], [0, 27], [1, 2], [1, 6], [1, 7], [1, 12], [1, 15], [1, 16], [1, 19], [1, 26], [1, 28], [2, 12], [2, 14], [2, 23], [2, 28], [2, 29], [3, 6], [3, 8], [3, 11], [3, 16], [3, 21], [3, 23], [4, 11], [4, 14], [4, 19], [4, 21], [5, 9], [5, 10], [5, 12], [5, 13], [5, 24], [5, 29], [6, 11], [6, 14], [6, 19], [7, 25], [8, 22], [8, 25], [9, 12], [9, 14], [9, 16], [9, 18], [9, 22], [9, 28], [10, 11], [10, 19], [10, 21], [10, 23], [11, 25], [12, 13], [12, 16], [12, 19], [13, 24], [14, 17], [14, 21], [14, 25], [16, 28], [17, 22], [17, 29], [19, 21], [19, 24], [19, 29], [20, 21], [20, 29], [21, 24], [21, 27], [22, 27], [24, 28], [25, 29], [26, 29], [27, 29]], "family": "mc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-vertex-cover-l2-s9/tests/run.py b/tasks/construct-mc-vertex-cover-l2-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l2-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-vertex-cover-l2-s9/tests/test.sh b/tasks/construct-mc-vertex-cover-l2-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l2-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-vertex-cover-l6-s1/environment/Dockerfile b/tasks/construct-mc-vertex-cover-l6-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l6-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-vertex-cover-l6-s1/environment/instance.json b/tasks/construct-mc-vertex-cover-l6-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..dd5fd72ae76c7917bf2e398f6e728a79cff1983a --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l6-s1/environment/instance.json @@ -0,0 +1 @@ +{"n": 140, "k": 107, "edges": [[0, 4], [0, 5], [0, 7], [0, 11], [0, 13], [0, 14], [0, 15], [0, 18], [0, 34], [0, 35], [0, 38], [0, 39], [0, 42], [0, 43], [0, 48], [0, 49], [0, 56], [0, 72], [0, 76], [0, 78], [0, 84], [0, 98], [0, 107], [0, 112], [0, 122], [0, 132], [0, 136], [0, 138], [1, 6], [1, 10], [1, 13], [1, 17], [1, 18], [1, 36], [1, 37], [1, 41], [1, 47], [1, 48], [1, 54], [1, 86], [1, 92], [1, 104], [1, 109], [1, 114], [1, 125], [1, 133], [1, 135], [1, 137], [2, 11], [2, 31], [2, 34], [2, 47], [2, 63], [2, 68], [2, 74], [2, 83], [2, 89], [2, 98], [2, 104], [2, 117], [2, 118], [2, 122], [2, 129], [2, 133], [3, 20], [3, 21], [3, 26], [3, 33], [3, 51], [3, 60], [3, 79], [3, 92], [3, 95], [3, 103], [3, 106], [3, 110], [3, 116], [3, 119], [3, 121], [3, 128], [3, 138], [4, 9], [4, 24], [4, 25], [4, 27], [4, 31], [4, 33], [4, 36], [4, 38], [4, 44], [4, 48], [4, 54], [4, 55], [4, 62], [4, 66], [4, 70], [4, 124], [4, 135], [4, 138], [5, 37], [5, 40], [5, 53], [5, 55], [5, 62], [5, 68], [5, 82], [5, 84], [5, 85], [5, 90], [5, 91], [5, 94], [5, 100], [5, 105], [5, 134], [6, 12], [6, 15], [6, 24], [6, 27], [6, 40], [6, 45], [6, 56], [6, 80], [6, 93], [6, 94], [6, 100], [6, 108], [6, 116], [6, 121], [6, 123], [6, 133], [6, 137], [7, 8], [7, 16], [7, 21], [7, 24], [7, 25], [7, 28], [7, 38], [7, 42], [7, 45], [7, 49], [7, 62], [7, 71], [7, 80], [7, 81], [7, 99], [7, 101], [7, 108], [7, 117], [8, 11], [8, 14], [8, 22], [8, 26], [8, 27], [8, 31], [8, 36], [8, 50], [8, 55], [8, 56], [8, 58], [8, 73], [8, 77], [8, 84], [8, 85], [8, 94], [8, 109], [8, 122], [8, 125], [8, 130], [9, 11], [9, 35], [9, 36], [9, 37], [9, 43], [9, 57], [9, 60], [9, 62], [9, 67], [9, 70], [9, 72], [9, 81], [9, 82], [9, 86], [9, 88], [9, 108], [9, 116], [9, 122], [9, 128], [9, 133], [9, 137], [10, 16], [10, 21], [10, 32], [10, 34], [10, 48], [10, 49], [10, 58], [10, 59], [10, 60], [10, 75], [10, 79], [10, 81], [10, 97], [10, 103], [10, 123], [10, 127], [10, 128], [11, 15], [11, 16], [11, 22], [11, 24], [11, 32], [11, 46], [11, 49], [11, 62], [11, 72], [11, 85], [11, 109], [11, 111], [11, 115], [11, 116], [11, 123], [11, 128], [12, 21], [12, 22], [12, 35], [12, 39], [12, 40], [12, 44], [12, 49], [12, 53], [12, 57], [12, 73], [12, 79], [12, 98], [12, 103], [12, 115], [12, 118], [12, 124], [13, 17], [13, 56], [13, 61], [13, 63], [13, 80], [13, 81], [13, 84], [13, 89], [13, 100], [13, 101], [13, 104], [13, 109], [13, 111], [13, 125], [13, 132], [13, 135], [14, 19], [14, 25], [14, 27], [14, 32], [14, 38], [14, 42], [14, 48], [14, 50], [14, 51], [14, 57], [14, 58], [14, 62], [14, 71], [14, 74], [14, 84], [14, 87], [14, 88], [14, 103], [14, 107], [14, 111], [14, 126], [14, 130], [14, 132], [15, 19], [15, 21], [15, 26], [15, 42], [15, 59], [15, 71], [15, 72], [15, 84], [15, 98], [15, 100], [15, 110], [15, 116], [15, 120], [15, 123], [15, 129], [15, 135], [15, 138], [16, 17], [16, 24], [16, 35], [16, 39], [16, 48], [16, 49], [16, 53], [16, 57], [16, 66], [16, 74], [16, 90], [16, 94], [16, 95], [16, 96], [16, 99], [16, 118], [17, 24], [17, 28], [17, 30], [17, 33], [17, 38], [17, 44], [17, 49], [17, 59], [17, 88], [17, 96], [17, 104], [17, 112], [17, 116], [17, 122], [17, 132], [18, 26], [18, 34], [18, 39], [18, 54], [18, 55], [18, 62], [18, 71], [18, 73], [18, 74], [18, 82], [18, 84], [18, 86], [18, 90], [18, 93], [18, 95], [18, 96], [18, 99], [18, 103], [18, 104], [18, 111], [18, 113], [18, 115], [18, 121], [18, 124], [18, 125], [18, 132], [18, 136], [19, 21], [19, 24], [19, 28], [19, 49], [19, 53], [19, 60], [19, 72], [19, 74], [19, 81], [19, 82], [19, 83], [19, 94], [19, 98], [19, 113], [19, 134], [19, 136], [20, 33], [20, 52], [20, 57], [20, 66], [20, 72], [20, 113], [21, 23], [21, 50], [21, 57], [21, 60], [21, 64], [21, 67], [21, 68], [21, 72], [21, 75], [21, 76], [21, 77], [21, 86], [21, 92], [21, 99], [21, 101], [21, 102], [21, 112], [21, 119], [21, 123], [21, 127], [21, 129], [21, 135], [22, 24], [22, 34], [22, 36], [22, 40], [22, 44], [22, 47], [22, 60], [22, 93], [22, 105], [22, 109], [22, 110], [22, 113], [22, 120], [22, 132], [23, 24], [23, 26], [23, 29], [23, 40], [23, 57], [23, 62], [23, 97], [23, 101], [23, 123], [23, 127], [24, 25], [24, 50], [24, 54], [24, 59], [24, 63], [24, 67], [24, 72], [24, 76], [24, 85], [24, 92], [24, 98], [24, 101], [24, 102], [24, 104], [24, 108], [24, 116], [24, 118], [24, 127], [24, 132], [24, 134], [24, 138], [25, 32], [25, 49], [25, 58], [25, 59], [25, 60], [25, 67], [25, 69], [25, 70], [25, 81], [25, 87], [25, 89], [25, 90], [25, 110], [25, 118], [25, 128], [26, 29], [26, 31], [26, 43], [26, 45], [26, 46], [26, 52], [26, 63], [26, 65], [26, 66], [26, 67], [26, 82], [26, 85], [26, 97], [26, 98], [26, 112], [26, 117], [27, 29], [27, 31], [27, 33], [27, 44], [27, 50], [27, 51], [27, 52], [27, 68], [27, 79], [27, 83], [27, 91], [27, 105], [27, 109], [27, 124], [27, 125], [27, 127], [27, 134], [28, 35], [28, 44], [28, 46], [28, 47], [28, 48], [28, 51], [28, 56], [28, 60], [28, 65], [28, 69], [28, 70], [28, 79], [28, 81], [28, 83], [28, 97], [28, 106], [28, 109], [28, 119], [28, 139], [29, 32], [29, 33], [29, 34], [29, 42], [29, 56], [29, 67], [29, 70], [29, 71], [29, 74], [29, 76], [29, 77], [29, 83], [29, 92], [29, 93], [29, 95], [29, 96], [29, 108], [29, 112], [29, 117], [29, 124], [29, 126], [29, 139], [30, 34], [30, 46], [30, 56], [30, 58], [30, 59], [30, 68], [30, 82], [30, 83], [30, 84], [30, 85], [30, 98], [30, 106], [30, 135], [31, 43], [31, 45], [31, 52], [31, 53], [31, 59], [31, 73], [31, 78], [31, 82], [31, 92], [31, 97], [31, 115], [31, 123], [31, 139], [32, 36], [32, 58], [32, 72], [32, 85], [32, 93], [32, 94], [32, 95], [32, 98], [32, 109], [32, 114], [32, 118], [32, 121], [32, 122], [32, 127], [32, 133], [32, 134], [33, 34], [33, 39], [33, 40], [33, 43], [33, 47], [33, 50], [33, 51], [33, 55], [33, 59], [33, 60], [33, 70], [33, 78], [33, 101], [33, 103], [33, 108], [33, 117], [33, 118], [33, 121], [33, 126], [33, 139], [34, 45], [34, 49], [34, 53], [34, 58], [34, 62], [34, 64], [34, 65], [34, 87], [34, 90], [34, 100], [34, 101], [34, 114], [34, 115], [34, 117], [34, 120], [34, 124], [34, 125], [34, 126], [34, 128], [34, 130], [35, 37], [35, 45], [35, 46], [35, 49], [35, 62], [35, 63], [35, 65], [35, 82], [35, 104], [35, 110], [35, 120], [35, 136], [35, 139], [36, 56], [36, 71], [36, 80], [36, 92], [36, 101], [36, 105], [36, 114], [36, 118], [36, 125], [36, 130], [36, 135], [37, 39], [37, 60], [37, 62], [37, 66], [37, 69], [37, 74], [37, 76], [37, 83], [37, 86], [37, 90], [37, 93], [37, 98], [37, 99], [37, 103], [37, 112], [37, 118], [37, 119], [37, 122], [37, 125], [37, 126], [37, 127], [37, 137], [37, 138], [38, 42], [38, 52], [38, 53], [38, 55], [38, 64], [38, 68], [38, 73], [38, 79], [38, 82], [38, 98], [38, 108], [38, 118], [38, 131], [38, 133], [39, 44], [39, 46], [39, 57], [39, 59], [39, 62], [39, 73], [39, 81], [39, 90], [39, 95], [39, 98], [39, 110], [39, 113], [39, 121], [39, 137], [40, 60], [40, 61], [40, 64], [40, 66], [40, 70], [40, 92], [40, 105], [40, 120], [40, 121], [40, 127], [40, 129], [40, 131], [40, 134], [40, 135], [41, 58], [41, 60], [41, 62], [41, 74], [41, 77], [41, 98], [41, 103], [41, 108], [41, 114], [41, 134], [41, 139], [42, 75], [42, 77], [42, 79], [42, 84], [42, 91], [42, 92], [42, 98], [42, 103], [42, 106], [42, 139], [43, 61], [43, 65], [43, 84], [43, 91], [43, 100], [43, 108], [43, 113], [43, 116], [43, 120], [43, 122], [43, 129], [43, 135], [43, 136], [44, 54], [44, 63], [44, 71], [44, 95], [44, 96], [44, 99], [44, 102], [44, 104], [44, 130], [44, 132], [44, 135], [44, 139], [45, 46], [45, 48], [45, 49], [45, 51], [45, 54], [45, 61], [45, 81], [45, 82], [45, 85], [45, 94], [45, 97], [45, 99], [45, 111], [45, 116], [45, 119], [45, 122], [45, 125], [45, 130], [45, 134], [45, 137], [46, 48], [46, 49], [46, 58], [46, 69], [46, 70], [46, 76], [46, 93], [46, 98], [46, 99], [46, 109], [46, 110], [46, 113], [46, 116], [46, 122], [46, 127], [46, 129], [46, 131], [46, 136], [47, 51], [47, 52], [47, 56], [47, 61], [47, 65], [47, 71], [47, 74], [47, 75], [47, 78], [47, 85], [47, 90], [47, 91], [47, 102], [47, 109], [47, 110], [47, 115], [47, 128], [47, 135], [48, 50], [48, 56], [48, 61], [48, 67], [48, 70], [48, 78], [48, 79], [48, 98], [48, 100], [48, 118], [48, 122], [48, 123], [48, 136], [48, 137], [48, 139], [49, 67], [49, 73], [49, 82], [49, 95], [49, 97], [49, 98], [49, 104], [49, 109], [49, 123], [49, 134], [49, 137], [50, 53], [50, 58], [50, 74], [50, 77], [50, 83], [50, 85], [50, 90], [50, 91], [50, 103], [50, 106], [50, 116], [50, 123], [50, 124], [50, 132], [51, 59], [51, 60], [51, 73], [51, 74], [51, 90], [51, 98], [51, 107], [51, 109], [51, 123], [51, 124], [52, 65], [52, 73], [52, 74], [52, 87], [52, 91], [52, 93], [52, 94], [52, 95], [52, 98], [52, 104], [52, 107], [52, 112], [52, 117], [52, 120], [52, 129], [52, 133], [52, 136], [53, 54], [53, 61], [53, 65], [53, 68], [53, 77], [53, 81], [53, 82], [53, 91], [53, 98], [53, 114], [53, 120], [53, 134], [53, 136], [53, 138], [54, 64], [54, 82], [54, 86], [54, 87], [54, 88], [54, 93], [54, 97], [54, 98], [54, 118], [54, 136], [55, 60], [55, 61], [55, 65], [55, 68], [55, 77], [55, 78], [55, 96], [55, 102], [55, 103], [55, 111], [55, 121], [55, 122], [56, 60], [56, 62], [56, 76], [56, 87], [56, 93], [56, 98], [56, 100], [56, 105], [56, 112], [56, 119], [56, 129], [57, 58], [57, 60], [57, 65], [57, 66], [57, 71], [57, 80], [57, 87], [57, 97], [57, 100], [57, 105], [57, 107], [57, 111], [57, 113], [57, 117], [57, 123], [57, 125], [57, 135], [58, 59], [58, 62], [58, 87], [58, 88], [58, 91], [58, 93], [58, 100], [58, 102], [58, 103], [58, 107], [58, 110], [58, 120], [58, 123], [58, 129], [58, 130], [58, 139], [59, 62], [59, 66], [59, 70], [59, 75], [59, 81], [59, 89], [59, 96], [59, 108], [59, 114], [59, 121], [59, 126], [59, 129], [59, 131], [59, 133], [60, 62], [60, 64], [60, 65], [60, 82], [60, 86], [60, 87], [60, 96], [60, 116], [60, 122], [60, 125], [60, 134], [61, 62], [61, 85], [61, 86], [61, 93], [61, 94], [61, 114], [61, 119], [61, 122], [61, 123], [61, 124], [61, 127], [62, 72], [62, 79], [62, 85], [62, 92], [62, 107], [62, 133], [63, 81], [63, 82], [63, 88], [63, 96], [63, 97], [63, 111], [63, 115], [63, 117], [63, 119], [63, 125], [63, 133], [63, 138], [64, 66], [64, 84], [64, 94], [64, 109], [64, 116], [64, 132], [65, 66], [65, 67], [65, 75], [65, 88], [65, 92], [65, 93], [65, 95], [65, 108], [65, 118], [65, 120], [65, 121], [65, 123], [65, 124], [65, 128], [65, 133], [65, 134], [65, 135], [66, 67], [66, 77], [66, 84], [66, 95], [66, 103], [66, 108], [66, 115], [66, 118], [66, 121], [66, 122], [66, 123], [66, 128], [66, 136], [66, 137], [67, 69], [67, 80], [67, 82], [67, 89], [67, 105], [67, 107], [67, 108], [67, 110], [67, 113], [67, 115], [67, 119], [67, 136], [67, 139], [68, 72], [68, 90], [68, 106], [68, 109], [68, 124], [68, 127], [68, 132], [68, 135], [68, 137], [69, 74], [69, 81], [69, 87], [69, 93], [69, 94], [69, 120], [70, 71], [70, 78], [70, 79], [70, 82], [70, 103], [70, 107], [70, 122], [70, 127], [70, 128], [70, 130], [70, 132], [70, 134], [70, 135], [71, 72], [71, 73], [71, 78], [71, 98], [71, 100], [71, 117], [71, 118], [71, 122], [71, 123], [72, 74], [72, 77], [72, 78], [72, 80], [72, 104], [72, 111], [72, 113], [72, 116], [72, 118], [72, 119], [72, 122], [72, 123], [72, 131], [73, 115], [73, 119], [73, 125], [73, 130], [73, 139], [74, 83], [74, 86], [74, 97], [74, 99], [74, 120], [74, 129], [74, 137], [75, 81], [75, 82], [75, 95], [75, 100], [75, 106], [75, 108], [75, 113], [75, 129], [75, 132], [75, 139], [76, 80], [76, 84], [76, 87], [76, 91], [76, 107], [76, 114], [76, 124], [76, 127], [77, 79], [77, 82], [77, 91], [77, 104], [77, 106], [77, 107], [77, 124], [77, 127], [77, 128], [77, 129], [77, 134], [78, 81], [78, 84], [78, 93], [78, 96], [78, 98], [78, 105], [78, 106], [78, 110], [78, 112], [78, 126], [78, 130], [78, 135], [79, 81], [79, 106], [79, 120], [79, 121], [79, 137], [79, 138], [79, 139], [80, 84], [80, 94], [80, 99], [80, 103], [80, 112], [80, 117], [80, 132], [81, 83], [81, 87], [81, 91], [81, 96], [81, 97], [81, 104], [81, 109], [81, 122], [81, 126], [81, 129], [81, 136], [81, 138], [82, 86], [82, 89], [82, 91], [82, 92], [82, 93], [82, 95], [82, 104], [82, 116], [82, 117], [82, 135], [82, 139], [83, 94], [83, 102], [83, 104], [83, 112], [83, 117], [83, 121], [83, 128], [83, 133], [84, 86], [84, 98], [84, 101], [84, 111], [84, 114], [84, 116], [84, 129], [84, 135], [85, 88], [85, 89], [85, 105], [85, 111], [85, 132], [85, 136], [86, 90], [86, 94], [86, 98], [86, 105], [86, 106], [86, 107], [86, 116], [86, 117], [86, 118], [86, 120], [87, 89], [87, 91], [87, 94], [87, 95], [87, 99], [87, 105], [87, 106], [87, 126], [87, 127], [87, 134], [87, 138], [87, 139], [88, 94], [88, 99], [88, 100], [88, 116], [88, 119], [88, 139], [89, 92], [89, 100], [89, 102], [89, 106], [89, 108], [89, 111], [89, 116], [89, 124], [89, 130], [89, 134], [90, 93], [90, 109], [90, 118], [90, 121], [90, 122], [90, 132], [91, 95], [91, 99], [91, 125], [91, 132], [91, 133], [92, 93], [92, 94], [92, 100], [92, 104], [92, 106], [92, 109], [92, 116], [92, 117], [92, 120], [93, 97], [93, 104], [93, 106], [93, 117], [93, 118], [93, 122], [93, 127], [93, 133], [94, 99], [94, 103], [94, 106], [94, 117], [94, 118], [94, 121], [94, 128], [95, 109], [95, 113], [95, 114], [96, 110], [96, 112], [96, 113], [96, 120], [96, 121], [96, 124], [96, 127], [96, 135], [96, 137], [97, 105], [97, 118], [97, 119], [97, 122], [97, 135], [97, 137], [98, 101], [98, 108], [98, 122], [98, 123], [98, 124], [99, 103], [99, 109], [99, 116], [99, 118], [99, 125], [99, 126], [99, 133], [99, 137], [100, 107], [100, 120], [100, 125], [100, 134], [100, 138], [101, 103], [101, 119], [101, 134], [101, 136], [102, 104], [102, 106], [102, 107], [102, 113], [102, 116], [102, 117], [102, 120], [102, 137], [102, 138], [102, 139], [103, 107], [103, 124], [103, 126], [103, 130], [104, 106], [104, 109], [104, 116], [104, 132], [105, 107], [105, 121], [105, 123], [105, 126], [105, 129], [106, 111], [106, 120], [106, 122], [106, 127], [106, 129], [106, 136], [107, 108], [107, 117], [107, 123], [107, 127], [107, 129], [107, 138], [108, 126], [108, 132], [108, 133], [109, 124], [109, 138], [109, 139], [110, 111], [110, 121], [110, 126], [110, 133], [110, 135], [110, 136], [110, 137], [111, 120], [111, 134], [111, 135], [112, 113], [112, 118], [112, 119], [112, 134], [113, 118], [113, 131], [113, 133], [113, 139], [114, 123], [114, 125], [114, 126], [114, 133], [114, 137], [115, 118], [115, 127], [115, 129], [115, 137], [116, 129], [116, 132], [117, 128], [117, 135], [118, 121], [118, 124], [118, 127], [118, 128], [118, 136], [119, 122], [119, 126], [119, 130], [119, 133], [121, 129], [121, 130], [121, 132], [121, 133], [121, 137], [122, 125], [122, 126], [122, 134], [123, 129], [123, 130], [124, 130], [124, 131], [124, 138], [125, 129], [126, 133], [126, 135], [127, 128], [128, 135], [129, 138], [130, 133], [130, 134], [130, 139], [132, 136], [132, 137], [133, 136], [134, 138], [135, 137], [136, 138]], "family": "mc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-vertex-cover-l6-s1/solution/solve.sh b/tasks/construct-mc-vertex-cover-l6-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..feaa2e4fc3ad64841c37122dfe8fc123b8aa7293 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l6-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"cover": [0, 1, 3, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 33, 34, 36, 37, 38, 40, 42, 44, 45, 46, 47, 48, 49, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 65, 66, 68, 69, 70, 72, 73, 74, 77, 78, 80, 81, 82, 83, 84, 85, 87, 89, 90, 91, 93, 94, 95, 96, 98, 99, 100, 103, 104, 105, 106, 107, 108, 109, 110, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 129, 132, 133, 134, 135, 136, 137, 138, 139]} +RLMATH_EOF diff --git a/tasks/construct-mc-vertex-cover-l6-s1/tests/check.py b/tasks/construct-mc-vertex-cover-l6-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e3accb3da1c773fd2126b8b5b0a97b099e29c83b --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l6-s1/tests/check.py @@ -0,0 +1,16 @@ +"""Vertex cover of size <= k in a given graph (MathConstraint vertex_cover, CC-BY-4.0).""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("cover"), None, 0, n - 1, "cover") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) > k: + raise Invalid(f"cover has {len(S)} vertices, at most {k} allowed") + C = set(S) + for u, v in inst["edges"]: + if u not in C and v not in C: + raise Invalid(f"edge ({u},{v}) is not covered") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-vertex-cover-l6-s1/tests/instance.json b/tasks/construct-mc-vertex-cover-l6-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..dd5fd72ae76c7917bf2e398f6e728a79cff1983a --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l6-s1/tests/instance.json @@ -0,0 +1 @@ +{"n": 140, "k": 107, "edges": [[0, 4], [0, 5], [0, 7], [0, 11], [0, 13], [0, 14], [0, 15], [0, 18], [0, 34], [0, 35], [0, 38], [0, 39], [0, 42], [0, 43], [0, 48], [0, 49], [0, 56], [0, 72], [0, 76], [0, 78], [0, 84], [0, 98], [0, 107], [0, 112], [0, 122], [0, 132], [0, 136], [0, 138], [1, 6], [1, 10], [1, 13], [1, 17], [1, 18], [1, 36], [1, 37], [1, 41], [1, 47], [1, 48], [1, 54], [1, 86], [1, 92], [1, 104], [1, 109], [1, 114], [1, 125], [1, 133], [1, 135], [1, 137], [2, 11], [2, 31], [2, 34], [2, 47], [2, 63], [2, 68], [2, 74], [2, 83], [2, 89], [2, 98], [2, 104], [2, 117], [2, 118], [2, 122], [2, 129], [2, 133], [3, 20], [3, 21], [3, 26], [3, 33], [3, 51], [3, 60], [3, 79], [3, 92], [3, 95], [3, 103], [3, 106], [3, 110], [3, 116], [3, 119], [3, 121], [3, 128], [3, 138], [4, 9], [4, 24], [4, 25], [4, 27], [4, 31], [4, 33], [4, 36], [4, 38], [4, 44], [4, 48], [4, 54], [4, 55], [4, 62], [4, 66], [4, 70], [4, 124], [4, 135], [4, 138], [5, 37], [5, 40], [5, 53], [5, 55], [5, 62], [5, 68], [5, 82], [5, 84], [5, 85], [5, 90], [5, 91], [5, 94], [5, 100], [5, 105], [5, 134], [6, 12], [6, 15], [6, 24], [6, 27], [6, 40], [6, 45], [6, 56], [6, 80], [6, 93], [6, 94], [6, 100], [6, 108], [6, 116], [6, 121], [6, 123], [6, 133], [6, 137], [7, 8], [7, 16], [7, 21], [7, 24], [7, 25], [7, 28], [7, 38], [7, 42], [7, 45], [7, 49], [7, 62], [7, 71], [7, 80], [7, 81], [7, 99], [7, 101], [7, 108], [7, 117], [8, 11], [8, 14], [8, 22], [8, 26], [8, 27], [8, 31], [8, 36], [8, 50], [8, 55], [8, 56], [8, 58], [8, 73], [8, 77], [8, 84], [8, 85], [8, 94], [8, 109], [8, 122], [8, 125], [8, 130], [9, 11], [9, 35], [9, 36], [9, 37], [9, 43], [9, 57], [9, 60], [9, 62], [9, 67], [9, 70], [9, 72], [9, 81], [9, 82], [9, 86], [9, 88], [9, 108], [9, 116], [9, 122], [9, 128], [9, 133], [9, 137], [10, 16], [10, 21], [10, 32], [10, 34], [10, 48], [10, 49], [10, 58], [10, 59], [10, 60], [10, 75], [10, 79], [10, 81], [10, 97], [10, 103], [10, 123], [10, 127], [10, 128], [11, 15], [11, 16], [11, 22], [11, 24], [11, 32], [11, 46], [11, 49], [11, 62], [11, 72], [11, 85], [11, 109], [11, 111], [11, 115], [11, 116], [11, 123], [11, 128], [12, 21], [12, 22], [12, 35], [12, 39], [12, 40], [12, 44], [12, 49], [12, 53], [12, 57], [12, 73], [12, 79], [12, 98], [12, 103], [12, 115], [12, 118], [12, 124], [13, 17], [13, 56], [13, 61], [13, 63], [13, 80], [13, 81], [13, 84], [13, 89], [13, 100], [13, 101], [13, 104], [13, 109], [13, 111], [13, 125], [13, 132], [13, 135], [14, 19], [14, 25], [14, 27], [14, 32], [14, 38], [14, 42], [14, 48], [14, 50], [14, 51], [14, 57], [14, 58], [14, 62], [14, 71], [14, 74], [14, 84], [14, 87], [14, 88], [14, 103], [14, 107], [14, 111], [14, 126], [14, 130], [14, 132], [15, 19], [15, 21], [15, 26], [15, 42], [15, 59], [15, 71], [15, 72], [15, 84], [15, 98], [15, 100], [15, 110], [15, 116], [15, 120], [15, 123], [15, 129], [15, 135], [15, 138], [16, 17], [16, 24], [16, 35], [16, 39], [16, 48], [16, 49], [16, 53], [16, 57], [16, 66], [16, 74], [16, 90], [16, 94], [16, 95], [16, 96], [16, 99], [16, 118], [17, 24], [17, 28], [17, 30], [17, 33], [17, 38], [17, 44], [17, 49], [17, 59], [17, 88], [17, 96], [17, 104], [17, 112], [17, 116], [17, 122], [17, 132], [18, 26], [18, 34], [18, 39], [18, 54], [18, 55], [18, 62], [18, 71], [18, 73], [18, 74], [18, 82], [18, 84], [18, 86], [18, 90], [18, 93], [18, 95], [18, 96], [18, 99], [18, 103], [18, 104], [18, 111], [18, 113], [18, 115], [18, 121], [18, 124], [18, 125], [18, 132], [18, 136], [19, 21], [19, 24], [19, 28], [19, 49], [19, 53], [19, 60], [19, 72], [19, 74], [19, 81], [19, 82], [19, 83], [19, 94], [19, 98], [19, 113], [19, 134], [19, 136], [20, 33], [20, 52], [20, 57], [20, 66], [20, 72], [20, 113], [21, 23], [21, 50], [21, 57], [21, 60], [21, 64], [21, 67], [21, 68], [21, 72], [21, 75], [21, 76], [21, 77], [21, 86], [21, 92], [21, 99], [21, 101], [21, 102], [21, 112], [21, 119], [21, 123], [21, 127], [21, 129], [21, 135], [22, 24], [22, 34], [22, 36], [22, 40], [22, 44], [22, 47], [22, 60], [22, 93], [22, 105], [22, 109], [22, 110], [22, 113], [22, 120], [22, 132], [23, 24], [23, 26], [23, 29], [23, 40], [23, 57], [23, 62], [23, 97], [23, 101], [23, 123], [23, 127], [24, 25], [24, 50], [24, 54], [24, 59], [24, 63], [24, 67], [24, 72], [24, 76], [24, 85], [24, 92], [24, 98], [24, 101], [24, 102], [24, 104], [24, 108], [24, 116], [24, 118], [24, 127], [24, 132], [24, 134], [24, 138], [25, 32], [25, 49], [25, 58], [25, 59], [25, 60], [25, 67], [25, 69], [25, 70], [25, 81], [25, 87], [25, 89], [25, 90], [25, 110], [25, 118], [25, 128], [26, 29], [26, 31], [26, 43], [26, 45], [26, 46], [26, 52], [26, 63], [26, 65], [26, 66], [26, 67], [26, 82], [26, 85], [26, 97], [26, 98], [26, 112], [26, 117], [27, 29], [27, 31], [27, 33], [27, 44], [27, 50], [27, 51], [27, 52], [27, 68], [27, 79], [27, 83], [27, 91], [27, 105], [27, 109], [27, 124], [27, 125], [27, 127], [27, 134], [28, 35], [28, 44], [28, 46], [28, 47], [28, 48], [28, 51], [28, 56], [28, 60], [28, 65], [28, 69], [28, 70], [28, 79], [28, 81], [28, 83], [28, 97], [28, 106], [28, 109], [28, 119], [28, 139], [29, 32], [29, 33], [29, 34], [29, 42], [29, 56], [29, 67], [29, 70], [29, 71], [29, 74], [29, 76], [29, 77], [29, 83], [29, 92], [29, 93], [29, 95], [29, 96], [29, 108], [29, 112], [29, 117], [29, 124], [29, 126], [29, 139], [30, 34], [30, 46], [30, 56], [30, 58], [30, 59], [30, 68], [30, 82], [30, 83], [30, 84], [30, 85], [30, 98], [30, 106], [30, 135], [31, 43], [31, 45], [31, 52], [31, 53], [31, 59], [31, 73], [31, 78], [31, 82], [31, 92], [31, 97], [31, 115], [31, 123], [31, 139], [32, 36], [32, 58], [32, 72], [32, 85], [32, 93], [32, 94], [32, 95], [32, 98], [32, 109], [32, 114], [32, 118], [32, 121], [32, 122], [32, 127], [32, 133], [32, 134], [33, 34], [33, 39], [33, 40], [33, 43], [33, 47], [33, 50], [33, 51], [33, 55], [33, 59], [33, 60], [33, 70], [33, 78], [33, 101], [33, 103], [33, 108], [33, 117], [33, 118], [33, 121], [33, 126], [33, 139], [34, 45], [34, 49], [34, 53], [34, 58], [34, 62], [34, 64], [34, 65], [34, 87], [34, 90], [34, 100], [34, 101], [34, 114], [34, 115], [34, 117], [34, 120], [34, 124], [34, 125], [34, 126], [34, 128], [34, 130], [35, 37], [35, 45], [35, 46], [35, 49], [35, 62], [35, 63], [35, 65], [35, 82], [35, 104], [35, 110], [35, 120], [35, 136], [35, 139], [36, 56], [36, 71], [36, 80], [36, 92], [36, 101], [36, 105], [36, 114], [36, 118], [36, 125], [36, 130], [36, 135], [37, 39], [37, 60], [37, 62], [37, 66], [37, 69], [37, 74], [37, 76], [37, 83], [37, 86], [37, 90], [37, 93], [37, 98], [37, 99], [37, 103], [37, 112], [37, 118], [37, 119], [37, 122], [37, 125], [37, 126], [37, 127], [37, 137], [37, 138], [38, 42], [38, 52], [38, 53], [38, 55], [38, 64], [38, 68], [38, 73], [38, 79], [38, 82], [38, 98], [38, 108], [38, 118], [38, 131], [38, 133], [39, 44], [39, 46], [39, 57], [39, 59], [39, 62], [39, 73], [39, 81], [39, 90], [39, 95], [39, 98], [39, 110], [39, 113], [39, 121], [39, 137], [40, 60], [40, 61], [40, 64], [40, 66], [40, 70], [40, 92], [40, 105], [40, 120], [40, 121], [40, 127], [40, 129], [40, 131], [40, 134], [40, 135], [41, 58], [41, 60], [41, 62], [41, 74], [41, 77], [41, 98], [41, 103], [41, 108], [41, 114], [41, 134], [41, 139], [42, 75], [42, 77], [42, 79], [42, 84], [42, 91], [42, 92], [42, 98], [42, 103], [42, 106], [42, 139], [43, 61], [43, 65], [43, 84], [43, 91], [43, 100], [43, 108], [43, 113], [43, 116], [43, 120], [43, 122], [43, 129], [43, 135], [43, 136], [44, 54], [44, 63], [44, 71], [44, 95], [44, 96], [44, 99], [44, 102], [44, 104], [44, 130], [44, 132], [44, 135], [44, 139], [45, 46], [45, 48], [45, 49], [45, 51], [45, 54], [45, 61], [45, 81], [45, 82], [45, 85], [45, 94], [45, 97], [45, 99], [45, 111], [45, 116], [45, 119], [45, 122], [45, 125], [45, 130], [45, 134], [45, 137], [46, 48], [46, 49], [46, 58], [46, 69], [46, 70], [46, 76], [46, 93], [46, 98], [46, 99], [46, 109], [46, 110], [46, 113], [46, 116], [46, 122], [46, 127], [46, 129], [46, 131], [46, 136], [47, 51], [47, 52], [47, 56], [47, 61], [47, 65], [47, 71], [47, 74], [47, 75], [47, 78], [47, 85], [47, 90], [47, 91], [47, 102], [47, 109], [47, 110], [47, 115], [47, 128], [47, 135], [48, 50], [48, 56], [48, 61], [48, 67], [48, 70], [48, 78], [48, 79], [48, 98], [48, 100], [48, 118], [48, 122], [48, 123], [48, 136], [48, 137], [48, 139], [49, 67], [49, 73], [49, 82], [49, 95], [49, 97], [49, 98], [49, 104], [49, 109], [49, 123], [49, 134], [49, 137], [50, 53], [50, 58], [50, 74], [50, 77], [50, 83], [50, 85], [50, 90], [50, 91], [50, 103], [50, 106], [50, 116], [50, 123], [50, 124], [50, 132], [51, 59], [51, 60], [51, 73], [51, 74], [51, 90], [51, 98], [51, 107], [51, 109], [51, 123], [51, 124], [52, 65], [52, 73], [52, 74], [52, 87], [52, 91], [52, 93], [52, 94], [52, 95], [52, 98], [52, 104], [52, 107], [52, 112], [52, 117], [52, 120], [52, 129], [52, 133], [52, 136], [53, 54], [53, 61], [53, 65], [53, 68], [53, 77], [53, 81], [53, 82], [53, 91], [53, 98], [53, 114], [53, 120], [53, 134], [53, 136], [53, 138], [54, 64], [54, 82], [54, 86], [54, 87], [54, 88], [54, 93], [54, 97], [54, 98], [54, 118], [54, 136], [55, 60], [55, 61], [55, 65], [55, 68], [55, 77], [55, 78], [55, 96], [55, 102], [55, 103], [55, 111], [55, 121], [55, 122], [56, 60], [56, 62], [56, 76], [56, 87], [56, 93], [56, 98], [56, 100], [56, 105], [56, 112], [56, 119], [56, 129], [57, 58], [57, 60], [57, 65], [57, 66], [57, 71], [57, 80], [57, 87], [57, 97], [57, 100], [57, 105], [57, 107], [57, 111], [57, 113], [57, 117], [57, 123], [57, 125], [57, 135], [58, 59], [58, 62], [58, 87], [58, 88], [58, 91], [58, 93], [58, 100], [58, 102], [58, 103], [58, 107], [58, 110], [58, 120], [58, 123], [58, 129], [58, 130], [58, 139], [59, 62], [59, 66], [59, 70], [59, 75], [59, 81], [59, 89], [59, 96], [59, 108], [59, 114], [59, 121], [59, 126], [59, 129], [59, 131], [59, 133], [60, 62], [60, 64], [60, 65], [60, 82], [60, 86], [60, 87], [60, 96], [60, 116], [60, 122], [60, 125], [60, 134], [61, 62], [61, 85], [61, 86], [61, 93], [61, 94], [61, 114], [61, 119], [61, 122], [61, 123], [61, 124], [61, 127], [62, 72], [62, 79], [62, 85], [62, 92], [62, 107], [62, 133], [63, 81], [63, 82], [63, 88], [63, 96], [63, 97], [63, 111], [63, 115], [63, 117], [63, 119], [63, 125], [63, 133], [63, 138], [64, 66], [64, 84], [64, 94], [64, 109], [64, 116], [64, 132], [65, 66], [65, 67], [65, 75], [65, 88], [65, 92], [65, 93], [65, 95], [65, 108], [65, 118], [65, 120], [65, 121], [65, 123], [65, 124], [65, 128], [65, 133], [65, 134], [65, 135], [66, 67], [66, 77], [66, 84], [66, 95], [66, 103], [66, 108], [66, 115], [66, 118], [66, 121], [66, 122], [66, 123], [66, 128], [66, 136], [66, 137], [67, 69], [67, 80], [67, 82], [67, 89], [67, 105], [67, 107], [67, 108], [67, 110], [67, 113], [67, 115], [67, 119], [67, 136], [67, 139], [68, 72], [68, 90], [68, 106], [68, 109], [68, 124], [68, 127], [68, 132], [68, 135], [68, 137], [69, 74], [69, 81], [69, 87], [69, 93], [69, 94], [69, 120], [70, 71], [70, 78], [70, 79], [70, 82], [70, 103], [70, 107], [70, 122], [70, 127], [70, 128], [70, 130], [70, 132], [70, 134], [70, 135], [71, 72], [71, 73], [71, 78], [71, 98], [71, 100], [71, 117], [71, 118], [71, 122], [71, 123], [72, 74], [72, 77], [72, 78], [72, 80], [72, 104], [72, 111], [72, 113], [72, 116], [72, 118], [72, 119], [72, 122], [72, 123], [72, 131], [73, 115], [73, 119], [73, 125], [73, 130], [73, 139], [74, 83], [74, 86], [74, 97], [74, 99], [74, 120], [74, 129], [74, 137], [75, 81], [75, 82], [75, 95], [75, 100], [75, 106], [75, 108], [75, 113], [75, 129], [75, 132], [75, 139], [76, 80], [76, 84], [76, 87], [76, 91], [76, 107], [76, 114], [76, 124], [76, 127], [77, 79], [77, 82], [77, 91], [77, 104], [77, 106], [77, 107], [77, 124], [77, 127], [77, 128], [77, 129], [77, 134], [78, 81], [78, 84], [78, 93], [78, 96], [78, 98], [78, 105], [78, 106], [78, 110], [78, 112], [78, 126], [78, 130], [78, 135], [79, 81], [79, 106], [79, 120], [79, 121], [79, 137], [79, 138], [79, 139], [80, 84], [80, 94], [80, 99], [80, 103], [80, 112], [80, 117], [80, 132], [81, 83], [81, 87], [81, 91], [81, 96], [81, 97], [81, 104], [81, 109], [81, 122], [81, 126], [81, 129], [81, 136], [81, 138], [82, 86], [82, 89], [82, 91], [82, 92], [82, 93], [82, 95], [82, 104], [82, 116], [82, 117], [82, 135], [82, 139], [83, 94], [83, 102], [83, 104], [83, 112], [83, 117], [83, 121], [83, 128], [83, 133], [84, 86], [84, 98], [84, 101], [84, 111], [84, 114], [84, 116], [84, 129], [84, 135], [85, 88], [85, 89], [85, 105], [85, 111], [85, 132], [85, 136], [86, 90], [86, 94], [86, 98], [86, 105], [86, 106], [86, 107], [86, 116], [86, 117], [86, 118], [86, 120], [87, 89], [87, 91], [87, 94], [87, 95], [87, 99], [87, 105], [87, 106], [87, 126], [87, 127], [87, 134], [87, 138], [87, 139], [88, 94], [88, 99], [88, 100], [88, 116], [88, 119], [88, 139], [89, 92], [89, 100], [89, 102], [89, 106], [89, 108], [89, 111], [89, 116], [89, 124], [89, 130], [89, 134], [90, 93], [90, 109], [90, 118], [90, 121], [90, 122], [90, 132], [91, 95], [91, 99], [91, 125], [91, 132], [91, 133], [92, 93], [92, 94], [92, 100], [92, 104], [92, 106], [92, 109], [92, 116], [92, 117], [92, 120], [93, 97], [93, 104], [93, 106], [93, 117], [93, 118], [93, 122], [93, 127], [93, 133], [94, 99], [94, 103], [94, 106], [94, 117], [94, 118], [94, 121], [94, 128], [95, 109], [95, 113], [95, 114], [96, 110], [96, 112], [96, 113], [96, 120], [96, 121], [96, 124], [96, 127], [96, 135], [96, 137], [97, 105], [97, 118], [97, 119], [97, 122], [97, 135], [97, 137], [98, 101], [98, 108], [98, 122], [98, 123], [98, 124], [99, 103], [99, 109], [99, 116], [99, 118], [99, 125], [99, 126], [99, 133], [99, 137], [100, 107], [100, 120], [100, 125], [100, 134], [100, 138], [101, 103], [101, 119], [101, 134], [101, 136], [102, 104], [102, 106], [102, 107], [102, 113], [102, 116], [102, 117], [102, 120], [102, 137], [102, 138], [102, 139], [103, 107], [103, 124], [103, 126], [103, 130], [104, 106], [104, 109], [104, 116], [104, 132], [105, 107], [105, 121], [105, 123], [105, 126], [105, 129], [106, 111], [106, 120], [106, 122], [106, 127], [106, 129], [106, 136], [107, 108], [107, 117], [107, 123], [107, 127], [107, 129], [107, 138], [108, 126], [108, 132], [108, 133], [109, 124], [109, 138], [109, 139], [110, 111], [110, 121], [110, 126], [110, 133], [110, 135], [110, 136], [110, 137], [111, 120], [111, 134], [111, 135], [112, 113], [112, 118], [112, 119], [112, 134], [113, 118], [113, 131], [113, 133], [113, 139], [114, 123], [114, 125], [114, 126], [114, 133], [114, 137], [115, 118], [115, 127], [115, 129], [115, 137], [116, 129], [116, 132], [117, 128], [117, 135], [118, 121], [118, 124], [118, 127], [118, 128], [118, 136], [119, 122], [119, 126], [119, 130], [119, 133], [121, 129], [121, 130], [121, 132], [121, 133], [121, 137], [122, 125], [122, 126], [122, 134], [123, 129], [123, 130], [124, 130], [124, 131], [124, 138], [125, 129], [126, 133], [126, 135], [127, 128], [128, 135], [129, 138], [130, 133], [130, 134], [130, 139], [132, 136], [132, 137], [133, 136], [134, 138], [135, 137], [136, 138]], "family": "mc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-vertex-cover-l6-s1/tests/run.py b/tasks/construct-mc-vertex-cover-l6-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l6-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-vertex-cover-l6-s1/tests/test.sh b/tasks/construct-mc-vertex-cover-l6-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l6-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-vertex-cover-l6-s6/environment/Dockerfile b/tasks/construct-mc-vertex-cover-l6-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l6-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-vertex-cover-l6-s6/environment/instance.json b/tasks/construct-mc-vertex-cover-l6-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4fe715462e2b01ae907cee7d3c83f4cad44ed7bf --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l6-s6/environment/instance.json @@ -0,0 +1 @@ +{"n": 140, "k": 107, "edges": [[0, 3], [0, 23], [0, 30], [0, 31], [0, 33], [0, 40], [0, 69], [0, 70], [0, 75], [0, 87], [0, 101], [0, 109], [0, 112], [0, 117], [0, 118], [0, 124], [0, 125], [0, 131], [0, 136], [1, 13], [1, 17], [1, 31], [1, 39], [1, 44], [1, 48], [1, 49], [1, 52], [1, 56], [1, 103], [1, 105], [1, 108], [1, 110], [1, 112], [1, 121], [1, 130], [1, 133], [1, 135], [2, 12], [2, 15], [2, 24], [2, 30], [2, 41], [2, 47], [2, 48], [2, 50], [2, 59], [2, 62], [2, 69], [2, 78], [2, 83], [2, 94], [2, 101], [2, 108], [2, 113], [2, 122], [2, 127], [2, 128], [2, 133], [2, 137], [3, 15], [3, 22], [3, 35], [3, 39], [3, 41], [3, 51], [3, 54], [3, 65], [3, 68], [3, 73], [3, 75], [3, 86], [3, 88], [3, 89], [3, 92], [3, 96], [3, 98], [3, 116], [3, 118], [3, 119], [3, 124], [3, 125], [3, 135], [3, 138], [4, 5], [4, 17], [4, 28], [4, 35], [4, 58], [4, 59], [4, 61], [4, 62], [4, 68], [4, 71], [4, 96], [4, 122], [4, 133], [5, 9], [5, 12], [5, 16], [5, 21], [5, 23], [5, 25], [5, 27], [5, 31], [5, 40], [5, 50], [5, 65], [5, 68], [5, 100], [5, 103], [5, 104], [5, 115], [5, 116], [5, 126], [5, 127], [5, 135], [5, 139], [6, 7], [6, 21], [6, 25], [6, 30], [6, 41], [6, 42], [6, 43], [6, 45], [6, 48], [6, 53], [6, 65], [6, 76], [6, 83], [6, 86], [6, 87], [6, 89], [6, 90], [6, 94], [6, 96], [6, 107], [6, 112], [6, 118], [6, 132], [6, 136], [6, 138], [7, 8], [7, 18], [7, 39], [7, 43], [7, 46], [7, 53], [7, 67], [7, 78], [7, 80], [7, 83], [7, 94], [7, 110], [7, 117], [7, 129], [7, 132], [7, 136], [8, 9], [8, 14], [8, 19], [8, 29], [8, 30], [8, 31], [8, 43], [8, 45], [8, 51], [8, 54], [8, 55], [8, 57], [8, 61], [8, 66], [8, 70], [8, 77], [8, 78], [8, 84], [8, 87], [8, 88], [8, 90], [8, 91], [8, 112], [8, 113], [8, 117], [8, 125], [9, 10], [9, 14], [9, 29], [9, 31], [9, 34], [9, 35], [9, 44], [9, 45], [9, 57], [9, 71], [9, 80], [9, 94], [9, 96], [9, 100], [9, 101], [9, 103], [9, 117], [9, 123], [9, 125], [9, 130], [10, 12], [10, 22], [10, 23], [10, 25], [10, 29], [10, 31], [10, 38], [10, 43], [10, 46], [10, 47], [10, 66], [10, 67], [10, 78], [10, 87], [10, 90], [10, 97], [10, 98], [10, 99], [10, 101], [10, 109], [10, 116], [10, 118], [10, 128], [10, 133], [11, 15], [11, 32], [11, 35], [11, 43], [11, 45], [11, 46], [11, 49], [11, 51], [11, 57], [11, 60], [11, 68], [11, 74], [11, 91], [11, 97], [11, 105], [11, 111], [11, 112], [11, 119], [11, 135], [11, 137], [11, 138], [12, 26], [12, 30], [12, 31], [12, 32], [12, 39], [12, 40], [12, 42], [12, 51], [12, 52], [12, 53], [12, 69], [12, 71], [12, 85], [12, 89], [12, 90], [12, 99], [12, 107], [12, 110], [12, 117], [12, 131], [12, 134], [12, 136], [13, 23], [13, 24], [13, 29], [13, 30], [13, 31], [13, 39], [13, 41], [13, 42], [13, 49], [13, 50], [13, 63], [13, 67], [13, 70], [13, 79], [13, 80], [13, 91], [13, 94], [13, 98], [13, 115], [13, 117], [13, 123], [14, 15], [14, 19], [14, 20], [14, 25], [14, 27], [14, 30], [14, 31], [14, 33], [14, 34], [14, 37], [14, 50], [14, 64], [14, 85], [14, 107], [14, 120], [14, 127], [14, 128], [14, 132], [14, 136], [15, 16], [15, 19], [15, 20], [15, 22], [15, 23], [15, 32], [15, 33], [15, 35], [15, 36], [15, 45], [15, 57], [15, 63], [15, 73], [15, 75], [15, 77], [15, 82], [15, 89], [15, 92], [15, 93], [15, 101], [15, 102], [15, 108], [15, 112], [15, 113], [15, 114], [15, 117], [15, 123], [16, 20], [16, 42], [16, 48], [16, 53], [16, 55], [16, 56], [16, 58], [16, 70], [16, 88], [16, 92], [16, 93], [16, 103], [16, 104], [16, 109], [16, 112], [16, 119], [17, 31], [17, 32], [17, 39], [17, 40], [17, 43], [17, 47], [17, 51], [17, 57], [17, 61], [17, 64], [17, 69], [17, 75], [17, 82], [17, 84], [17, 90], [17, 91], [17, 110], [17, 111], [17, 114], [17, 125], [17, 135], [18, 45], [18, 47], [18, 48], [18, 50], [18, 58], [18, 59], [18, 65], [18, 72], [18, 75], [18, 82], [18, 96], [18, 99], [18, 101], [18, 110], [18, 124], [18, 126], [18, 132], [18, 135], [18, 136], [18, 138], [19, 40], [19, 44], [19, 52], [19, 74], [19, 123], [19, 132], [20, 27], [20, 42], [20, 53], [20, 55], [20, 62], [20, 81], [20, 84], [20, 86], [20, 98], [20, 107], [20, 114], [20, 118], [20, 125], [21, 44], [21, 46], [21, 56], [21, 58], [21, 61], [21, 65], [21, 75], [21, 78], [21, 82], [21, 89], [21, 93], [21, 104], [21, 119], [21, 129], [21, 134], [22, 36], [22, 44], [22, 46], [22, 47], [22, 48], [22, 49], [22, 56], [22, 60], [22, 63], [22, 64], [22, 70], [22, 101], [22, 115], [22, 125], [22, 134], [22, 135], [22, 136], [23, 29], [23, 33], [23, 43], [23, 44], [23, 48], [23, 52], [23, 53], [23, 60], [23, 67], [23, 71], [23, 87], [23, 91], [23, 100], [23, 103], [23, 104], [23, 118], [23, 121], [24, 46], [24, 60], [24, 63], [24, 74], [24, 75], [24, 84], [24, 90], [24, 94], [24, 100], [24, 107], [24, 121], [24, 123], [25, 26], [25, 29], [25, 46], [25, 55], [25, 64], [25, 74], [25, 77], [25, 83], [25, 98], [25, 112], [25, 122], [25, 123], [26, 37], [26, 48], [26, 57], [26, 62], [26, 65], [26, 70], [26, 76], [26, 85], [26, 86], [26, 99], [26, 103], [26, 139], [27, 29], [27, 36], [27, 38], [27, 41], [27, 49], [27, 78], [27, 81], [27, 84], [27, 96], [27, 105], [28, 37], [28, 40], [28, 42], [28, 49], [28, 53], [28, 56], [28, 69], [28, 74], [28, 96], [28, 98], [28, 100], [28, 107], [28, 109], [28, 130], [29, 38], [29, 45], [29, 46], [29, 47], [29, 58], [29, 59], [29, 62], [29, 69], [29, 76], [29, 92], [29, 96], [29, 104], [29, 106], [29, 110], [29, 132], [30, 36], [30, 46], [30, 51], [30, 54], [30, 55], [30, 58], [30, 68], [30, 71], [30, 73], [30, 81], [30, 87], [30, 88], [30, 91], [30, 112], [30, 113], [30, 116], [30, 119], [30, 130], [31, 33], [31, 34], [31, 42], [31, 43], [31, 49], [31, 52], [31, 55], [31, 64], [31, 68], [31, 90], [31, 91], [31, 104], [31, 114], [31, 134], [31, 135], [31, 136], [32, 33], [32, 36], [32, 46], [32, 49], [32, 57], [32, 59], [32, 65], [32, 67], [32, 76], [32, 78], [32, 82], [32, 101], [32, 136], [32, 139], [33, 37], [33, 44], [33, 45], [33, 53], [33, 56], [33, 58], [33, 62], [33, 64], [33, 83], [33, 93], [33, 95], [33, 96], [33, 97], [33, 98], [33, 99], [33, 114], [33, 135], [33, 139], [34, 47], [34, 48], [34, 52], [34, 53], [34, 56], [34, 58], [34, 60], [34, 70], [34, 84], [34, 89], [34, 93], [34, 104], [34, 112], [34, 117], [34, 120], [34, 127], [34, 135], [35, 50], [35, 53], [35, 60], [35, 78], [35, 85], [35, 104], [35, 107], [35, 109], [35, 123], [35, 127], [36, 37], [36, 41], [36, 43], [36, 59], [36, 61], [36, 65], [36, 81], [36, 84], [36, 87], [36, 95], [36, 100], [36, 102], [36, 105], [36, 110], [36, 111], [36, 120], [36, 133], [37, 63], [37, 82], [37, 100], [37, 121], [37, 123], [37, 129], [38, 40], [38, 45], [38, 47], [38, 49], [38, 51], [38, 65], [38, 66], [38, 67], [38, 70], [38, 82], [38, 88], [38, 101], [38, 104], [38, 106], [38, 107], [38, 125], [38, 132], [38, 133], [38, 137], [39, 43], [39, 53], [39, 55], [39, 56], [39, 57], [39, 76], [39, 78], [39, 80], [39, 82], [39, 96], [39, 104], [39, 115], [39, 119], [39, 121], [39, 135], [40, 42], [40, 45], [40, 50], [40, 58], [40, 82], [40, 85], [40, 102], [40, 112], [40, 116], [40, 129], [40, 131], [40, 138], [41, 46], [41, 49], [41, 57], [41, 58], [41, 66], [41, 69], [41, 72], [41, 84], [41, 100], [41, 108], [41, 113], [41, 118], [41, 119], [41, 122], [41, 126], [41, 129], [41, 137], [42, 46], [42, 54], [42, 55], [42, 62], [42, 63], [42, 80], [42, 82], [42, 89], [42, 91], [42, 120], [42, 123], [42, 137], [43, 51], [43, 64], [43, 80], [43, 83], [43, 86], [43, 90], [43, 93], [43, 96], [43, 98], [43, 101], [43, 112], [43, 116], [43, 120], [43, 121], [43, 124], [43, 132], [43, 137], [44, 56], [44, 59], [44, 67], [44, 78], [44, 84], [44, 88], [44, 132], [44, 136], [44, 137], [45, 62], [45, 86], [45, 95], [45, 98], [45, 107], [45, 108], [45, 109], [45, 112], [45, 114], [45, 115], [45, 118], [45, 120], [45, 125], [45, 131], [46, 48], [46, 49], [46, 55], [46, 63], [46, 65], [46, 70], [46, 71], [46, 73], [46, 79], [46, 80], [46, 81], [46, 82], [46, 95], [46, 96], [46, 103], [46, 108], [46, 110], [46, 116], [46, 117], [46, 119], [46, 125], [47, 56], [47, 57], [47, 66], [47, 68], [47, 71], [47, 72], [47, 76], [47, 86], [47, 97], [47, 104], [47, 113], [47, 120], [47, 134], [48, 54], [48, 64], [48, 70], [48, 71], [48, 81], [48, 84], [48, 87], [48, 92], [48, 105], [48, 106], [48, 114], [48, 133], [49, 52], [49, 53], [49, 56], [49, 60], [49, 66], [49, 70], [49, 73], [49, 81], [49, 82], [49, 90], [49, 96], [49, 100], [49, 104], [49, 108], [49, 121], [49, 134], [49, 138], [50, 51], [50, 55], [50, 56], [50, 61], [50, 65], [50, 69], [50, 79], [50, 95], [50, 100], [50, 105], [50, 116], [50, 122], [50, 123], [50, 126], [50, 128], [50, 129], [50, 139], [51, 59], [51, 60], [51, 80], [51, 82], [51, 96], [51, 98], [51, 121], [52, 63], [52, 68], [52, 75], [52, 76], [52, 77], [52, 78], [52, 83], [52, 86], [52, 87], [52, 88], [52, 101], [52, 105], [52, 108], [52, 110], [52, 112], [52, 116], [52, 118], [52, 136], [52, 138], [53, 56], [53, 69], [53, 73], [53, 74], [53, 100], [53, 105], [53, 107], [53, 109], [53, 110], [53, 125], [53, 127], [54, 76], [54, 124], [54, 132], [55, 64], [55, 74], [55, 79], [55, 88], [55, 93], [55, 95], [55, 112], [55, 129], [55, 135], [55, 138], [56, 60], [56, 67], [56, 69], [56, 73], [56, 77], [56, 79], [56, 80], [56, 86], [56, 104], [56, 105], [56, 108], [56, 109], [56, 112], [56, 116], [56, 119], [56, 122], [56, 129], [57, 60], [57, 65], [57, 67], [57, 74], [57, 78], [57, 82], [57, 84], [57, 85], [57, 93], [57, 96], [57, 112], [57, 136], [58, 71], [58, 72], [58, 75], [58, 88], [58, 92], [58, 97], [58, 98], [58, 99], [58, 108], [58, 116], [58, 117], [58, 128], [59, 73], [59, 78], [59, 85], [59, 109], [59, 134], [59, 136], [60, 68], [60, 70], [60, 77], [60, 84], [60, 85], [60, 88], [60, 90], [60, 92], [60, 99], [60, 119], [60, 124], [60, 134], [61, 67], [61, 74], [61, 85], [61, 94], [61, 117], [61, 132], [62, 72], [62, 86], [62, 87], [62, 107], [62, 120], [62, 121], [62, 129], [62, 131], [63, 65], [63, 70], [63, 87], [63, 98], [63, 99], [63, 104], [63, 108], [63, 110], [63, 114], [63, 115], [63, 126], [63, 128], [63, 130], [63, 133], [63, 139], [64, 69], [64, 87], [64, 88], [64, 90], [64, 94], [64, 97], [64, 98], [64, 109], [64, 110], [64, 115], [64, 117], [64, 120], [64, 122], [64, 126], [64, 129], [64, 130], [65, 68], [65, 71], [65, 75], [65, 78], [65, 81], [65, 86], [65, 115], [65, 122], [65, 129], [65, 135], [65, 137], [66, 73], [66, 75], [66, 78], [66, 84], [66, 85], [66, 91], [66, 93], [66, 94], [66, 102], [66, 108], [66, 114], [66, 124], [66, 127], [66, 129], [67, 68], [67, 92], [67, 95], [67, 99], [67, 105], [67, 106], [67, 112], [67, 117], [67, 123], [67, 126], [68, 70], [68, 75], [68, 77], [68, 85], [68, 90], [68, 94], [68, 107], [68, 110], [68, 121], [68, 123], [68, 135], [69, 81], [69, 82], [69, 83], [69, 84], [69, 89], [69, 96], [69, 106], [69, 107], [69, 117], [69, 134], [70, 73], [70, 87], [70, 88], [70, 92], [70, 105], [70, 109], [70, 116], [70, 117], [70, 132], [70, 135], [70, 139], [71, 81], [71, 92], [71, 94], [71, 96], [71, 103], [71, 109], [71, 120], [71, 122], [71, 124], [72, 75], [72, 83], [72, 85], [72, 98], [72, 102], [72, 107], [72, 116], [72, 133], [73, 74], [73, 78], [73, 120], [73, 132], [73, 139], [74, 75], [74, 76], [74, 77], [74, 84], [74, 92], [74, 100], [74, 107], [74, 123], [74, 137], [75, 78], [75, 79], [75, 85], [75, 89], [75, 90], [75, 93], [75, 103], [75, 113], [75, 119], [75, 123], [75, 127], [75, 133], [76, 77], [76, 80], [76, 81], [76, 92], [76, 101], [76, 106], [76, 107], [76, 108], [76, 109], [76, 110], [76, 136], [77, 80], [77, 82], [77, 86], [77, 88], [77, 99], [77, 102], [77, 104], [77, 106], [77, 110], [77, 114], [77, 116], [77, 117], [77, 121], [77, 124], [77, 127], [78, 82], [78, 83], [78, 84], [78, 90], [78, 99], [78, 102], [78, 107], [78, 118], [78, 122], [78, 125], [78, 129], [78, 130], [78, 135], [78, 137], [78, 138], [78, 139], [79, 80], [79, 112], [79, 122], [80, 100], [80, 101], [80, 111], [80, 119], [80, 123], [80, 130], [81, 107], [81, 118], [81, 119], [81, 122], [81, 128], [81, 133], [82, 85], [82, 104], [82, 106], [82, 116], [82, 120], [82, 131], [82, 136], [83, 89], [83, 98], [83, 123], [83, 127], [83, 128], [83, 137], [83, 138], [84, 88], [84, 94], [84, 97], [84, 104], [84, 105], [84, 109], [84, 113], [84, 117], [84, 118], [84, 132], [84, 139], [85, 86], [85, 93], [85, 106], [85, 127], [85, 135], [85, 136], [86, 94], [86, 97], [86, 116], [86, 119], [86, 123], [86, 124], [86, 137], [87, 93], [87, 95], [87, 102], [87, 108], [87, 113], [87, 120], [87, 125], [88, 100], [88, 110], [88, 112], [88, 115], [88, 118], [88, 119], [88, 132], [89, 111], [89, 114], [89, 118], [89, 128], [89, 137], [90, 92], [90, 101], [90, 102], [90, 103], [90, 121], [90, 125], [90, 128], [91, 92], [91, 109], [91, 114], [91, 134], [92, 99], [92, 103], [92, 104], [92, 105], [92, 112], [92, 131], [92, 137], [93, 98], [93, 103], [93, 119], [93, 128], [93, 135], [93, 136], [94, 104], [94, 107], [94, 115], [94, 121], [94, 127], [94, 134], [95, 106], [95, 108], [95, 109], [95, 112], [95, 114], [95, 117], [95, 122], [96, 110], [96, 120], [96, 132], [96, 136], [97, 107], [97, 124], [97, 125], [97, 131], [98, 104], [98, 110], [98, 112], [98, 114], [98, 125], [98, 136], [98, 138], [98, 139], [99, 104], [99, 120], [99, 127], [99, 128], [100, 121], [100, 127], [100, 131], [101, 107], [101, 110], [101, 123], [101, 129], [102, 110], [102, 117], [102, 118], [102, 128], [102, 130], [103, 104], [103, 105], [103, 107], [103, 120], [103, 122], [103, 127], [103, 129], [103, 132], [103, 138], [104, 105], [104, 116], [104, 121], [104, 130], [105, 110], [105, 113], [105, 115], [105, 135], [105, 137], [105, 138], [106, 110], [106, 112], [106, 121], [106, 124], [106, 139], [107, 108], [107, 116], [107, 119], [107, 127], [108, 110], [108, 127], [109, 112], [109, 114], [109, 121], [109, 129], [110, 114], [110, 125], [110, 133], [111, 114], [111, 117], [111, 120], [111, 123], [111, 133], [112, 113], [112, 118], [112, 122], [112, 126], [113, 118], [113, 125], [113, 132], [114, 117], [114, 121], [114, 122], [115, 127], [115, 129], [115, 132], [115, 136], [116, 118], [116, 125], [116, 133], [117, 122], [117, 124], [118, 123], [119, 122], [119, 123], [119, 126], [119, 135], [120, 123], [120, 125], [120, 126], [120, 132], [121, 125], [121, 127], [122, 132], [123, 130], [123, 135], [123, 139], [124, 135], [124, 137], [125, 126], [125, 129], [125, 137], [126, 135], [126, 139], [128, 130], [129, 135], [130, 134], [130, 135], [132, 139], [133, 135], [133, 136], [135, 138]], "family": "mc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-vertex-cover-l6-s6/solution/solve.sh b/tasks/construct-mc-vertex-cover-l6-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..904b7046b5547ac6ac6a5af5b71ea2736990bfdf --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l6-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"cover": [0, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 20, 21, 22, 23, 26, 28, 29, 30, 31, 32, 33, 36, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 52, 53, 55, 56, 58, 59, 60, 63, 64, 65, 66, 67, 70, 72, 74, 75, 76, 77, 78, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 92, 93, 94, 96, 98, 100, 103, 104, 105, 106, 107, 108, 109, 110, 112, 114, 117, 118, 119, 120, 121, 122, 123, 124, 125, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 139]} +RLMATH_EOF diff --git a/tasks/construct-mc-vertex-cover-l6-s6/tests/check.py b/tasks/construct-mc-vertex-cover-l6-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e3accb3da1c773fd2126b8b5b0a97b099e29c83b --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l6-s6/tests/check.py @@ -0,0 +1,16 @@ +"""Vertex cover of size <= k in a given graph (MathConstraint vertex_cover, CC-BY-4.0).""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("cover"), None, 0, n - 1, "cover") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) > k: + raise Invalid(f"cover has {len(S)} vertices, at most {k} allowed") + C = set(S) + for u, v in inst["edges"]: + if u not in C and v not in C: + raise Invalid(f"edge ({u},{v}) is not covered") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-vertex-cover-l6-s6/tests/instance.json b/tasks/construct-mc-vertex-cover-l6-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4fe715462e2b01ae907cee7d3c83f4cad44ed7bf --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l6-s6/tests/instance.json @@ -0,0 +1 @@ +{"n": 140, "k": 107, "edges": [[0, 3], [0, 23], [0, 30], [0, 31], [0, 33], [0, 40], [0, 69], [0, 70], [0, 75], [0, 87], [0, 101], [0, 109], [0, 112], [0, 117], [0, 118], [0, 124], [0, 125], [0, 131], [0, 136], [1, 13], [1, 17], [1, 31], [1, 39], [1, 44], [1, 48], [1, 49], [1, 52], [1, 56], [1, 103], [1, 105], [1, 108], [1, 110], [1, 112], [1, 121], [1, 130], [1, 133], [1, 135], [2, 12], [2, 15], [2, 24], [2, 30], [2, 41], [2, 47], [2, 48], [2, 50], [2, 59], [2, 62], [2, 69], [2, 78], [2, 83], [2, 94], [2, 101], [2, 108], [2, 113], [2, 122], [2, 127], [2, 128], [2, 133], [2, 137], [3, 15], [3, 22], [3, 35], [3, 39], [3, 41], [3, 51], [3, 54], [3, 65], [3, 68], [3, 73], [3, 75], [3, 86], [3, 88], [3, 89], [3, 92], [3, 96], [3, 98], [3, 116], [3, 118], [3, 119], [3, 124], [3, 125], [3, 135], [3, 138], [4, 5], [4, 17], [4, 28], [4, 35], [4, 58], [4, 59], [4, 61], [4, 62], [4, 68], [4, 71], [4, 96], [4, 122], [4, 133], [5, 9], [5, 12], [5, 16], [5, 21], [5, 23], [5, 25], [5, 27], [5, 31], [5, 40], [5, 50], [5, 65], [5, 68], [5, 100], [5, 103], [5, 104], [5, 115], [5, 116], [5, 126], [5, 127], [5, 135], [5, 139], [6, 7], [6, 21], [6, 25], [6, 30], [6, 41], [6, 42], [6, 43], [6, 45], [6, 48], [6, 53], [6, 65], [6, 76], [6, 83], [6, 86], [6, 87], [6, 89], [6, 90], [6, 94], [6, 96], [6, 107], [6, 112], [6, 118], [6, 132], [6, 136], [6, 138], [7, 8], [7, 18], [7, 39], [7, 43], [7, 46], [7, 53], [7, 67], [7, 78], [7, 80], [7, 83], [7, 94], [7, 110], [7, 117], [7, 129], [7, 132], [7, 136], [8, 9], [8, 14], [8, 19], [8, 29], [8, 30], [8, 31], [8, 43], [8, 45], [8, 51], [8, 54], [8, 55], [8, 57], [8, 61], [8, 66], [8, 70], [8, 77], [8, 78], [8, 84], [8, 87], [8, 88], [8, 90], [8, 91], [8, 112], [8, 113], [8, 117], [8, 125], [9, 10], [9, 14], [9, 29], [9, 31], [9, 34], [9, 35], [9, 44], [9, 45], [9, 57], [9, 71], [9, 80], [9, 94], [9, 96], [9, 100], [9, 101], [9, 103], [9, 117], [9, 123], [9, 125], [9, 130], [10, 12], [10, 22], [10, 23], [10, 25], [10, 29], [10, 31], [10, 38], [10, 43], [10, 46], [10, 47], [10, 66], [10, 67], [10, 78], [10, 87], [10, 90], [10, 97], [10, 98], [10, 99], [10, 101], [10, 109], [10, 116], [10, 118], [10, 128], [10, 133], [11, 15], [11, 32], [11, 35], [11, 43], [11, 45], [11, 46], [11, 49], [11, 51], [11, 57], [11, 60], [11, 68], [11, 74], [11, 91], [11, 97], [11, 105], [11, 111], [11, 112], [11, 119], [11, 135], [11, 137], [11, 138], [12, 26], [12, 30], [12, 31], [12, 32], [12, 39], [12, 40], [12, 42], [12, 51], [12, 52], [12, 53], [12, 69], [12, 71], [12, 85], [12, 89], [12, 90], [12, 99], [12, 107], [12, 110], [12, 117], [12, 131], [12, 134], [12, 136], [13, 23], [13, 24], [13, 29], [13, 30], [13, 31], [13, 39], [13, 41], [13, 42], [13, 49], [13, 50], [13, 63], [13, 67], [13, 70], [13, 79], [13, 80], [13, 91], [13, 94], [13, 98], [13, 115], [13, 117], [13, 123], [14, 15], [14, 19], [14, 20], [14, 25], [14, 27], [14, 30], [14, 31], [14, 33], [14, 34], [14, 37], [14, 50], [14, 64], [14, 85], [14, 107], [14, 120], [14, 127], [14, 128], [14, 132], [14, 136], [15, 16], [15, 19], [15, 20], [15, 22], [15, 23], [15, 32], [15, 33], [15, 35], [15, 36], [15, 45], [15, 57], [15, 63], [15, 73], [15, 75], [15, 77], [15, 82], [15, 89], [15, 92], [15, 93], [15, 101], [15, 102], [15, 108], [15, 112], [15, 113], [15, 114], [15, 117], [15, 123], [16, 20], [16, 42], [16, 48], [16, 53], [16, 55], [16, 56], [16, 58], [16, 70], [16, 88], [16, 92], [16, 93], [16, 103], [16, 104], [16, 109], [16, 112], [16, 119], [17, 31], [17, 32], [17, 39], [17, 40], [17, 43], [17, 47], [17, 51], [17, 57], [17, 61], [17, 64], [17, 69], [17, 75], [17, 82], [17, 84], [17, 90], [17, 91], [17, 110], [17, 111], [17, 114], [17, 125], [17, 135], [18, 45], [18, 47], [18, 48], [18, 50], [18, 58], [18, 59], [18, 65], [18, 72], [18, 75], [18, 82], [18, 96], [18, 99], [18, 101], [18, 110], [18, 124], [18, 126], [18, 132], [18, 135], [18, 136], [18, 138], [19, 40], [19, 44], [19, 52], [19, 74], [19, 123], [19, 132], [20, 27], [20, 42], [20, 53], [20, 55], [20, 62], [20, 81], [20, 84], [20, 86], [20, 98], [20, 107], [20, 114], [20, 118], [20, 125], [21, 44], [21, 46], [21, 56], [21, 58], [21, 61], [21, 65], [21, 75], [21, 78], [21, 82], [21, 89], [21, 93], [21, 104], [21, 119], [21, 129], [21, 134], [22, 36], [22, 44], [22, 46], [22, 47], [22, 48], [22, 49], [22, 56], [22, 60], [22, 63], [22, 64], [22, 70], [22, 101], [22, 115], [22, 125], [22, 134], [22, 135], [22, 136], [23, 29], [23, 33], [23, 43], [23, 44], [23, 48], [23, 52], [23, 53], [23, 60], [23, 67], [23, 71], [23, 87], [23, 91], [23, 100], [23, 103], [23, 104], [23, 118], [23, 121], [24, 46], [24, 60], [24, 63], [24, 74], [24, 75], [24, 84], [24, 90], [24, 94], [24, 100], [24, 107], [24, 121], [24, 123], [25, 26], [25, 29], [25, 46], [25, 55], [25, 64], [25, 74], [25, 77], [25, 83], [25, 98], [25, 112], [25, 122], [25, 123], [26, 37], [26, 48], [26, 57], [26, 62], [26, 65], [26, 70], [26, 76], [26, 85], [26, 86], [26, 99], [26, 103], [26, 139], [27, 29], [27, 36], [27, 38], [27, 41], [27, 49], [27, 78], [27, 81], [27, 84], [27, 96], [27, 105], [28, 37], [28, 40], [28, 42], [28, 49], [28, 53], [28, 56], [28, 69], [28, 74], [28, 96], [28, 98], [28, 100], [28, 107], [28, 109], [28, 130], [29, 38], [29, 45], [29, 46], [29, 47], [29, 58], [29, 59], [29, 62], [29, 69], [29, 76], [29, 92], [29, 96], [29, 104], [29, 106], [29, 110], [29, 132], [30, 36], [30, 46], [30, 51], [30, 54], [30, 55], [30, 58], [30, 68], [30, 71], [30, 73], [30, 81], [30, 87], [30, 88], [30, 91], [30, 112], [30, 113], [30, 116], [30, 119], [30, 130], [31, 33], [31, 34], [31, 42], [31, 43], [31, 49], [31, 52], [31, 55], [31, 64], [31, 68], [31, 90], [31, 91], [31, 104], [31, 114], [31, 134], [31, 135], [31, 136], [32, 33], [32, 36], [32, 46], [32, 49], [32, 57], [32, 59], [32, 65], [32, 67], [32, 76], [32, 78], [32, 82], [32, 101], [32, 136], [32, 139], [33, 37], [33, 44], [33, 45], [33, 53], [33, 56], [33, 58], [33, 62], [33, 64], [33, 83], [33, 93], [33, 95], [33, 96], [33, 97], [33, 98], [33, 99], [33, 114], [33, 135], [33, 139], [34, 47], [34, 48], [34, 52], [34, 53], [34, 56], [34, 58], [34, 60], [34, 70], [34, 84], [34, 89], [34, 93], [34, 104], [34, 112], [34, 117], [34, 120], [34, 127], [34, 135], [35, 50], [35, 53], [35, 60], [35, 78], [35, 85], [35, 104], [35, 107], [35, 109], [35, 123], [35, 127], [36, 37], [36, 41], [36, 43], [36, 59], [36, 61], [36, 65], [36, 81], [36, 84], [36, 87], [36, 95], [36, 100], [36, 102], [36, 105], [36, 110], [36, 111], [36, 120], [36, 133], [37, 63], [37, 82], [37, 100], [37, 121], [37, 123], [37, 129], [38, 40], [38, 45], [38, 47], [38, 49], [38, 51], [38, 65], [38, 66], [38, 67], [38, 70], [38, 82], [38, 88], [38, 101], [38, 104], [38, 106], [38, 107], [38, 125], [38, 132], [38, 133], [38, 137], [39, 43], [39, 53], [39, 55], [39, 56], [39, 57], [39, 76], [39, 78], [39, 80], [39, 82], [39, 96], [39, 104], [39, 115], [39, 119], [39, 121], [39, 135], [40, 42], [40, 45], [40, 50], [40, 58], [40, 82], [40, 85], [40, 102], [40, 112], [40, 116], [40, 129], [40, 131], [40, 138], [41, 46], [41, 49], [41, 57], [41, 58], [41, 66], [41, 69], [41, 72], [41, 84], [41, 100], [41, 108], [41, 113], [41, 118], [41, 119], [41, 122], [41, 126], [41, 129], [41, 137], [42, 46], [42, 54], [42, 55], [42, 62], [42, 63], [42, 80], [42, 82], [42, 89], [42, 91], [42, 120], [42, 123], [42, 137], [43, 51], [43, 64], [43, 80], [43, 83], [43, 86], [43, 90], [43, 93], [43, 96], [43, 98], [43, 101], [43, 112], [43, 116], [43, 120], [43, 121], [43, 124], [43, 132], [43, 137], [44, 56], [44, 59], [44, 67], [44, 78], [44, 84], [44, 88], [44, 132], [44, 136], [44, 137], [45, 62], [45, 86], [45, 95], [45, 98], [45, 107], [45, 108], [45, 109], [45, 112], [45, 114], [45, 115], [45, 118], [45, 120], [45, 125], [45, 131], [46, 48], [46, 49], [46, 55], [46, 63], [46, 65], [46, 70], [46, 71], [46, 73], [46, 79], [46, 80], [46, 81], [46, 82], [46, 95], [46, 96], [46, 103], [46, 108], [46, 110], [46, 116], [46, 117], [46, 119], [46, 125], [47, 56], [47, 57], [47, 66], [47, 68], [47, 71], [47, 72], [47, 76], [47, 86], [47, 97], [47, 104], [47, 113], [47, 120], [47, 134], [48, 54], [48, 64], [48, 70], [48, 71], [48, 81], [48, 84], [48, 87], [48, 92], [48, 105], [48, 106], [48, 114], [48, 133], [49, 52], [49, 53], [49, 56], [49, 60], [49, 66], [49, 70], [49, 73], [49, 81], [49, 82], [49, 90], [49, 96], [49, 100], [49, 104], [49, 108], [49, 121], [49, 134], [49, 138], [50, 51], [50, 55], [50, 56], [50, 61], [50, 65], [50, 69], [50, 79], [50, 95], [50, 100], [50, 105], [50, 116], [50, 122], [50, 123], [50, 126], [50, 128], [50, 129], [50, 139], [51, 59], [51, 60], [51, 80], [51, 82], [51, 96], [51, 98], [51, 121], [52, 63], [52, 68], [52, 75], [52, 76], [52, 77], [52, 78], [52, 83], [52, 86], [52, 87], [52, 88], [52, 101], [52, 105], [52, 108], [52, 110], [52, 112], [52, 116], [52, 118], [52, 136], [52, 138], [53, 56], [53, 69], [53, 73], [53, 74], [53, 100], [53, 105], [53, 107], [53, 109], [53, 110], [53, 125], [53, 127], [54, 76], [54, 124], [54, 132], [55, 64], [55, 74], [55, 79], [55, 88], [55, 93], [55, 95], [55, 112], [55, 129], [55, 135], [55, 138], [56, 60], [56, 67], [56, 69], [56, 73], [56, 77], [56, 79], [56, 80], [56, 86], [56, 104], [56, 105], [56, 108], [56, 109], [56, 112], [56, 116], [56, 119], [56, 122], [56, 129], [57, 60], [57, 65], [57, 67], [57, 74], [57, 78], [57, 82], [57, 84], [57, 85], [57, 93], [57, 96], [57, 112], [57, 136], [58, 71], [58, 72], [58, 75], [58, 88], [58, 92], [58, 97], [58, 98], [58, 99], [58, 108], [58, 116], [58, 117], [58, 128], [59, 73], [59, 78], [59, 85], [59, 109], [59, 134], [59, 136], [60, 68], [60, 70], [60, 77], [60, 84], [60, 85], [60, 88], [60, 90], [60, 92], [60, 99], [60, 119], [60, 124], [60, 134], [61, 67], [61, 74], [61, 85], [61, 94], [61, 117], [61, 132], [62, 72], [62, 86], [62, 87], [62, 107], [62, 120], [62, 121], [62, 129], [62, 131], [63, 65], [63, 70], [63, 87], [63, 98], [63, 99], [63, 104], [63, 108], [63, 110], [63, 114], [63, 115], [63, 126], [63, 128], [63, 130], [63, 133], [63, 139], [64, 69], [64, 87], [64, 88], [64, 90], [64, 94], [64, 97], [64, 98], [64, 109], [64, 110], [64, 115], [64, 117], [64, 120], [64, 122], [64, 126], [64, 129], [64, 130], [65, 68], [65, 71], [65, 75], [65, 78], [65, 81], [65, 86], [65, 115], [65, 122], [65, 129], [65, 135], [65, 137], [66, 73], [66, 75], [66, 78], [66, 84], [66, 85], [66, 91], [66, 93], [66, 94], [66, 102], [66, 108], [66, 114], [66, 124], [66, 127], [66, 129], [67, 68], [67, 92], [67, 95], [67, 99], [67, 105], [67, 106], [67, 112], [67, 117], [67, 123], [67, 126], [68, 70], [68, 75], [68, 77], [68, 85], [68, 90], [68, 94], [68, 107], [68, 110], [68, 121], [68, 123], [68, 135], [69, 81], [69, 82], [69, 83], [69, 84], [69, 89], [69, 96], [69, 106], [69, 107], [69, 117], [69, 134], [70, 73], [70, 87], [70, 88], [70, 92], [70, 105], [70, 109], [70, 116], [70, 117], [70, 132], [70, 135], [70, 139], [71, 81], [71, 92], [71, 94], [71, 96], [71, 103], [71, 109], [71, 120], [71, 122], [71, 124], [72, 75], [72, 83], [72, 85], [72, 98], [72, 102], [72, 107], [72, 116], [72, 133], [73, 74], [73, 78], [73, 120], [73, 132], [73, 139], [74, 75], [74, 76], [74, 77], [74, 84], [74, 92], [74, 100], [74, 107], [74, 123], [74, 137], [75, 78], [75, 79], [75, 85], [75, 89], [75, 90], [75, 93], [75, 103], [75, 113], [75, 119], [75, 123], [75, 127], [75, 133], [76, 77], [76, 80], [76, 81], [76, 92], [76, 101], [76, 106], [76, 107], [76, 108], [76, 109], [76, 110], [76, 136], [77, 80], [77, 82], [77, 86], [77, 88], [77, 99], [77, 102], [77, 104], [77, 106], [77, 110], [77, 114], [77, 116], [77, 117], [77, 121], [77, 124], [77, 127], [78, 82], [78, 83], [78, 84], [78, 90], [78, 99], [78, 102], [78, 107], [78, 118], [78, 122], [78, 125], [78, 129], [78, 130], [78, 135], [78, 137], [78, 138], [78, 139], [79, 80], [79, 112], [79, 122], [80, 100], [80, 101], [80, 111], [80, 119], [80, 123], [80, 130], [81, 107], [81, 118], [81, 119], [81, 122], [81, 128], [81, 133], [82, 85], [82, 104], [82, 106], [82, 116], [82, 120], [82, 131], [82, 136], [83, 89], [83, 98], [83, 123], [83, 127], [83, 128], [83, 137], [83, 138], [84, 88], [84, 94], [84, 97], [84, 104], [84, 105], [84, 109], [84, 113], [84, 117], [84, 118], [84, 132], [84, 139], [85, 86], [85, 93], [85, 106], [85, 127], [85, 135], [85, 136], [86, 94], [86, 97], [86, 116], [86, 119], [86, 123], [86, 124], [86, 137], [87, 93], [87, 95], [87, 102], [87, 108], [87, 113], [87, 120], [87, 125], [88, 100], [88, 110], [88, 112], [88, 115], [88, 118], [88, 119], [88, 132], [89, 111], [89, 114], [89, 118], [89, 128], [89, 137], [90, 92], [90, 101], [90, 102], [90, 103], [90, 121], [90, 125], [90, 128], [91, 92], [91, 109], [91, 114], [91, 134], [92, 99], [92, 103], [92, 104], [92, 105], [92, 112], [92, 131], [92, 137], [93, 98], [93, 103], [93, 119], [93, 128], [93, 135], [93, 136], [94, 104], [94, 107], [94, 115], [94, 121], [94, 127], [94, 134], [95, 106], [95, 108], [95, 109], [95, 112], [95, 114], [95, 117], [95, 122], [96, 110], [96, 120], [96, 132], [96, 136], [97, 107], [97, 124], [97, 125], [97, 131], [98, 104], [98, 110], [98, 112], [98, 114], [98, 125], [98, 136], [98, 138], [98, 139], [99, 104], [99, 120], [99, 127], [99, 128], [100, 121], [100, 127], [100, 131], [101, 107], [101, 110], [101, 123], [101, 129], [102, 110], [102, 117], [102, 118], [102, 128], [102, 130], [103, 104], [103, 105], [103, 107], [103, 120], [103, 122], [103, 127], [103, 129], [103, 132], [103, 138], [104, 105], [104, 116], [104, 121], [104, 130], [105, 110], [105, 113], [105, 115], [105, 135], [105, 137], [105, 138], [106, 110], [106, 112], [106, 121], [106, 124], [106, 139], [107, 108], [107, 116], [107, 119], [107, 127], [108, 110], [108, 127], [109, 112], [109, 114], [109, 121], [109, 129], [110, 114], [110, 125], [110, 133], [111, 114], [111, 117], [111, 120], [111, 123], [111, 133], [112, 113], [112, 118], [112, 122], [112, 126], [113, 118], [113, 125], [113, 132], [114, 117], [114, 121], [114, 122], [115, 127], [115, 129], [115, 132], [115, 136], [116, 118], [116, 125], [116, 133], [117, 122], [117, 124], [118, 123], [119, 122], [119, 123], [119, 126], [119, 135], [120, 123], [120, 125], [120, 126], [120, 132], [121, 125], [121, 127], [122, 132], [123, 130], [123, 135], [123, 139], [124, 135], [124, 137], [125, 126], [125, 129], [125, 137], [126, 135], [126, 139], [128, 130], [129, 135], [130, 134], [130, 135], [132, 139], [133, 135], [133, 136], [135, 138]], "family": "mc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-vertex-cover-l6-s6/tests/run.py b/tasks/construct-mc-vertex-cover-l6-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l6-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-vertex-cover-l6-s6/tests/test.sh b/tasks/construct-mc-vertex-cover-l6-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l6-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-3col-l2-s0/environment/Dockerfile b/tasks/construct-nppc-3col-l2-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-3col-l2-s0/environment/instance.json b/tasks/construct-nppc-3col-l2-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ed1a0e5cafa4ac9d3a5431a94feb75f4e6d25d97 --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s0/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 15, "edges": [[0, 2], [0, 8], [0, 12], [0, 14], [1, 6], [1, 7], [1, 9], [1, 11], [1, 13], [1, 14], [2, 7], [2, 8], [2, 9], [2, 13], [2, 14], [3, 5], [3, 7], [3, 8], [3, 10], [3, 11], [3, 14], [4, 6], [4, 7], [4, 9], [4, 11], [5, 6], [5, 10], [5, 11], [6, 7], [6, 12], [6, 13], [7, 10], [7, 11], [8, 10], [8, 12], [9, 12], [9, 13], [9, 14], [10, 14], [11, 12]], "family": "nppc_three_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-3col-l2-s0/solution/solve.sh b/tasks/construct-nppc-3col-l2-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6e9e59ffd2403f68acab123e2bcec4ddda89695 --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"coloring": [1, 0, 0, 0, 0, 2, 1, 2, 2, 1, 1, 1, 0, 2, 2]} +RLMATH_EOF diff --git a/tasks/construct-nppc-3col-l2-s0/tests/check.py b/tasks/construct-nppc-3col-l2-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..72362ed9180250b6c53ce0c71867ca476ac2af20 --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s0/tests/check.py @@ -0,0 +1,12 @@ +"""Proper 3-colouring of a given graph. Accepts any valid colouring.""" +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["num_nodes"] + # upstream NPPC verifier skips the range/length check, so an all-distinct colouring passed it + c = int_list(ans.get("coloring"), n, 0, 2, "coloring") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + return None, {} diff --git a/tasks/construct-nppc-3col-l2-s0/tests/instance.json b/tasks/construct-nppc-3col-l2-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ed1a0e5cafa4ac9d3a5431a94feb75f4e6d25d97 --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s0/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 15, "edges": [[0, 2], [0, 8], [0, 12], [0, 14], [1, 6], [1, 7], [1, 9], [1, 11], [1, 13], [1, 14], [2, 7], [2, 8], [2, 9], [2, 13], [2, 14], [3, 5], [3, 7], [3, 8], [3, 10], [3, 11], [3, 14], [4, 6], [4, 7], [4, 9], [4, 11], [5, 6], [5, 10], [5, 11], [6, 7], [6, 12], [6, 13], [7, 10], [7, 11], [8, 10], [8, 12], [9, 12], [9, 13], [9, 14], [10, 14], [11, 12]], "family": "nppc_three_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-3col-l2-s0/tests/run.py b/tasks/construct-nppc-3col-l2-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-3col-l2-s0/tests/test.sh b/tasks/construct-nppc-3col-l2-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-3col-l2-s7/environment/Dockerfile b/tasks/construct-nppc-3col-l2-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-3col-l2-s7/environment/instance.json b/tasks/construct-nppc-3col-l2-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..91d9da7b4449e95cb025edcde6640e7f074bf883 --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s7/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 15, "edges": [[0, 4], [0, 5], [0, 6], [0, 11], [0, 12], [0, 13], [1, 6], [1, 7], [1, 14], [2, 4], [2, 5], [2, 9], [2, 10], [3, 6], [3, 7], [3, 8], [3, 9], [4, 7], [4, 8], [4, 10], [5, 7], [5, 10], [5, 11], [5, 14], [6, 8], [6, 9], [6, 10], [6, 13], [7, 8], [7, 9], [7, 12], [8, 12], [9, 12], [9, 13], [10, 11], [10, 12], [10, 13], [11, 12], [12, 14], [13, 14]], "family": "nppc_three_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-3col-l2-s7/solution/solve.sh b/tasks/construct-nppc-3col-l2-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..9fb2bf865854d4e0f108be5a613b56428323d611 --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"coloring": [0, 0, 1, 2, 2, 2, 1, 1, 0, 0, 0, 1, 2, 2, 1]} +RLMATH_EOF diff --git a/tasks/construct-nppc-3col-l2-s7/tests/check.py b/tasks/construct-nppc-3col-l2-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..72362ed9180250b6c53ce0c71867ca476ac2af20 --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s7/tests/check.py @@ -0,0 +1,12 @@ +"""Proper 3-colouring of a given graph. Accepts any valid colouring.""" +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["num_nodes"] + # upstream NPPC verifier skips the range/length check, so an all-distinct colouring passed it + c = int_list(ans.get("coloring"), n, 0, 2, "coloring") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + return None, {} diff --git a/tasks/construct-nppc-3col-l2-s7/tests/instance.json b/tasks/construct-nppc-3col-l2-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..91d9da7b4449e95cb025edcde6640e7f074bf883 --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s7/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 15, "edges": [[0, 4], [0, 5], [0, 6], [0, 11], [0, 12], [0, 13], [1, 6], [1, 7], [1, 14], [2, 4], [2, 5], [2, 9], [2, 10], [3, 6], [3, 7], [3, 8], [3, 9], [4, 7], [4, 8], [4, 10], [5, 7], [5, 10], [5, 11], [5, 14], [6, 8], [6, 9], [6, 10], [6, 13], [7, 8], [7, 9], [7, 12], [8, 12], [9, 12], [9, 13], [10, 11], [10, 12], [10, 13], [11, 12], [12, 14], [13, 14]], "family": "nppc_three_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-3col-l2-s7/tests/run.py b/tasks/construct-nppc-3col-l2-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-3col-l2-s7/tests/test.sh b/tasks/construct-nppc-3col-l2-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-3col-l2-s9/environment/Dockerfile b/tasks/construct-nppc-3col-l2-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-3col-l2-s9/environment/instance.json b/tasks/construct-nppc-3col-l2-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..493e413b6bafa66d9852cbdd68d8db83aaa77b7b --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s9/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 15, "edges": [[0, 1], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 2], [1, 3], [1, 5], [1, 6], [1, 8], [1, 9], [2, 8], [2, 9], [2, 10], [2, 11], [2, 13], [2, 14], [3, 8], [3, 9], [3, 11], [3, 12], [3, 13], [4, 8], [4, 9], [5, 7], [5, 11], [5, 12], [5, 13], [6, 10], [6, 11], [6, 12], [6, 13], [7, 8], [7, 9], [7, 11], [7, 12], [7, 13], [8, 11]], "family": "nppc_three_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-3col-l2-s9/solution/solve.sh b/tasks/construct-nppc-3col-l2-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d82c09c33de62cbc965d66d43e615f6ae0c24641 --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"coloring": [1, 2, 1, 1, 2, 0, 1, 1, 0, 0, 0, 2, 2, 2, 0]} +RLMATH_EOF diff --git a/tasks/construct-nppc-3col-l2-s9/tests/check.py b/tasks/construct-nppc-3col-l2-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..72362ed9180250b6c53ce0c71867ca476ac2af20 --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s9/tests/check.py @@ -0,0 +1,12 @@ +"""Proper 3-colouring of a given graph. Accepts any valid colouring.""" +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["num_nodes"] + # upstream NPPC verifier skips the range/length check, so an all-distinct colouring passed it + c = int_list(ans.get("coloring"), n, 0, 2, "coloring") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + return None, {} diff --git a/tasks/construct-nppc-3col-l2-s9/tests/instance.json b/tasks/construct-nppc-3col-l2-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..493e413b6bafa66d9852cbdd68d8db83aaa77b7b --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s9/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 15, "edges": [[0, 1], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 2], [1, 3], [1, 5], [1, 6], [1, 8], [1, 9], [2, 8], [2, 9], [2, 10], [2, 11], [2, 13], [2, 14], [3, 8], [3, 9], [3, 11], [3, 12], [3, 13], [4, 8], [4, 9], [5, 7], [5, 11], [5, 12], [5, 13], [6, 10], [6, 11], [6, 12], [6, 13], [7, 8], [7, 9], [7, 11], [7, 12], [7, 13], [8, 11]], "family": "nppc_three_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-3col-l2-s9/tests/run.py b/tasks/construct-nppc-3col-l2-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-3col-l2-s9/tests/test.sh b/tasks/construct-nppc-3col-l2-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-3col-l2-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-3col-l6-s6/environment/Dockerfile b/tasks/construct-nppc-3col-l6-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-3col-l6-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-3col-l6-s6/environment/instance.json b/tasks/construct-nppc-3col-l6-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4a42a289fdcee70324da22c219dfd3cd776ae01d --- /dev/null +++ b/tasks/construct-nppc-3col-l6-s6/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 120, "edges": [[0, 2], [0, 7], [0, 11], [0, 21], [0, 69], [0, 96], [0, 112], [1, 19], [1, 45], [1, 49], [1, 94], [1, 104], [1, 109], [1, 113], [1, 114], [1, 116], [2, 33], [2, 39], [2, 82], [2, 86], [2, 87], [2, 107], [2, 118], [3, 8], [3, 13], [3, 17], [3, 28], [3, 40], [3, 50], [3, 75], [3, 76], [3, 102], [3, 116], [4, 6], [4, 14], [4, 19], [4, 41], [4, 43], [4, 71], [4, 87], [4, 89], [4, 106], [4, 112], [4, 114], [5, 25], [5, 42], [5, 49], [5, 61], [5, 69], [5, 90], [5, 91], [5, 93], [5, 94], [5, 104], [5, 113], [5, 116], [6, 7], [6, 59], [6, 75], [6, 100], [6, 105], [6, 106], [6, 111], [7, 23], [7, 28], [7, 38], [7, 39], [7, 42], [7, 49], [7, 52], [7, 63], [7, 82], [7, 91], [7, 93], [8, 9], [8, 16], [8, 23], [8, 53], [8, 77], [8, 114], [9, 58], [9, 66], [9, 87], [9, 91], [9, 95], [10, 19], [10, 69], [10, 88], [10, 93], [11, 33], [11, 34], [11, 67], [11, 76], [11, 93], [11, 95], [11, 107], [12, 46], [12, 58], [12, 63], [12, 79], [12, 84], [12, 107], [12, 110], [13, 14], [13, 41], [13, 62], [13, 70], [13, 112], [14, 16], [14, 21], [14, 27], [14, 62], [14, 64], [14, 74], [14, 98], [14, 107], [14, 109], [15, 24], [15, 27], [15, 46], [15, 55], [15, 65], [15, 100], [15, 108], [16, 31], [16, 37], [16, 51], [16, 67], [16, 80], [16, 93], [16, 103], [16, 112], [17, 21], [17, 39], [17, 44], [17, 47], [17, 108], [18, 27], [18, 32], [18, 36], [18, 43], [18, 47], [18, 83], [18, 104], [18, 116], [19, 84], [19, 98], [19, 115], [19, 118], [20, 22], [20, 24], [20, 25], [20, 29], [20, 31], [20, 87], [21, 25], [21, 34], [21, 36], [21, 41], [21, 51], [21, 74], [21, 77], [21, 82], [21, 86], [22, 51], [22, 77], [22, 90], [22, 104], [22, 108], [23, 36], [23, 50], [23, 58], [23, 98], [23, 102], [23, 104], [23, 116], [23, 117], [23, 118], [24, 27], [24, 35], [24, 52], [24, 74], [24, 98], [24, 116], [25, 27], [25, 41], [25, 52], [25, 75], [25, 84], [25, 85], [25, 87], [25, 102], [25, 103], [26, 29], [26, 43], [26, 96], [26, 103], [26, 116], [27, 32], [27, 33], [27, 41], [27, 49], [27, 55], [27, 63], [27, 68], [27, 69], [27, 73], [27, 87], [27, 106], [27, 114], [27, 119], [28, 30], [28, 47], [28, 48], [28, 60], [28, 83], [28, 84], [28, 89], [28, 92], [28, 93], [28, 100], [28, 111], [28, 119], [29, 45], [29, 53], [29, 60], [29, 65], [29, 83], [29, 91], [30, 31], [30, 34], [30, 36], [30, 38], [30, 51], [30, 53], [30, 76], [30, 88], [31, 48], [31, 70], [31, 109], [32, 46], [32, 48], [32, 49], [32, 53], [32, 83], [32, 102], [32, 104], [32, 115], [33, 51], [33, 80], [33, 89], [33, 111], [34, 37], [34, 39], [35, 36], [35, 51], [35, 54], [35, 87], [35, 97], [35, 103], [36, 38], [36, 39], [36, 46], [36, 53], [36, 65], [36, 78], [36, 83], [36, 84], [36, 89], [36, 115], [37, 40], [37, 41], [37, 57], [37, 75], [37, 98], [38, 66], [38, 84], [38, 110], [39, 40], [39, 41], [39, 50], [39, 78], [39, 87], [39, 104], [40, 43], [40, 52], [40, 58], [40, 85], [41, 48], [41, 84], [41, 99], [41, 109], [41, 112], [42, 47], [42, 56], [43, 51], [43, 53], [43, 93], [43, 112], [44, 46], [44, 61], [44, 79], [44, 115], [45, 59], [45, 64], [45, 103], [46, 65], [46, 67], [46, 77], [46, 79], [46, 95], [46, 118], [47, 49], [47, 53], [47, 68], [47, 69], [47, 87], [47, 89], [47, 93], [47, 99], [47, 114], [47, 118], [48, 54], [48, 55], [48, 88], [48, 89], [48, 113], [49, 66], [49, 82], [49, 101], [49, 104], [49, 105], [49, 106], [49, 110], [49, 115], [50, 53], [50, 77], [50, 86], [50, 103], [51, 87], [51, 88], [51, 96], [51, 104], [51, 105], [51, 107], [52, 60], [52, 90], [52, 116], [53, 75], [53, 82], [53, 87], [53, 97], [54, 57], [54, 73], [54, 84], [54, 94], [55, 58], [55, 87], [55, 103], [56, 69], [56, 71], [56, 72], [56, 76], [56, 80], [56, 86], [56, 89], [56, 107], [57, 58], [57, 62], [57, 71], [57, 81], [57, 95], [57, 108], [57, 114], [58, 60], [58, 105], [58, 115], [59, 68], [59, 74], [59, 76], [59, 99], [59, 101], [60, 106], [61, 67], [61, 70], [61, 79], [61, 89], [61, 107], [62, 67], [62, 73], [62, 93], [63, 65], [63, 83], [63, 99], [63, 111], [64, 75], [64, 92], [64, 100], [64, 104], [64, 113], [64, 114], [65, 106], [65, 111], [66, 78], [66, 109], [67, 94], [67, 117], [68, 82], [69, 83], [69, 86], [69, 107], [70, 75], [70, 77], [70, 78], [70, 90], [70, 93], [71, 73], [72, 90], [72, 96], [72, 110], [73, 98], [73, 109], [74, 92], [74, 95], [74, 96], [74, 112], [74, 119], [75, 82], [75, 86], [75, 113], [75, 119], [76, 77], [76, 91], [76, 93], [76, 110], [77, 84], [77, 102], [78, 79], [78, 85], [78, 119], [79, 83], [79, 90], [79, 93], [79, 102], [79, 114], [80, 86], [80, 96], [80, 103], [80, 115], [81, 82], [81, 88], [81, 97], [81, 98], [81, 107], [81, 109], [82, 100], [83, 99], [83, 106], [84, 86], [84, 93], [84, 108], [85, 96], [85, 99], [86, 89], [86, 112], [86, 119], [87, 110], [87, 114], [87, 115], [87, 119], [88, 90], [88, 91], [88, 92], [88, 99], [89, 102], [90, 115], [91, 92], [92, 103], [93, 96], [93, 116], [94, 107], [95, 107], [95, 110], [96, 113], [97, 109], [99, 105], [99, 107], [101, 102], [101, 113], [102, 117], [103, 104], [103, 111], [103, 116], [105, 117], [106, 116], [107, 110], [107, 115], [109, 117], [111, 112], [113, 116]], "family": "nppc_three_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-3col-l6-s6/solution/solve.sh b/tasks/construct-nppc-3col-l6-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..472e120f1bcf3e86667bb1047d70ed93fd1cddf7 --- /dev/null +++ b/tasks/construct-nppc-3col-l6-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"coloring": [0, 0, 1, 2, 1, 0, 2, 1, 0, 1, 1, 1, 2, 1, 2, 0, 1, 0, 2, 2, 1, 1, 0, 2, 2, 2, 2, 1, 0, 0, 1, 2, 0, 0, 0, 1, 0, 2, 2, 2, 1, 0, 2, 0, 2, 2, 1, 1, 1, 2, 1, 2, 0, 2, 0, 2, 1, 1, 0, 1, 1, 1, 0, 0, 0, 2, 0, 2, 2, 2, 0, 0, 0, 2, 0, 1, 0, 2, 1, 0, 2, 2, 0, 1, 1, 0, 0, 0, 0, 2, 2, 2, 1, 2, 1, 2, 1, 0, 1, 2, 1, 0, 1, 0, 1, 1, 0, 0, 2, 1, 1, 1, 2, 2, 2, 1, 1, 0, 0, 2]} +RLMATH_EOF diff --git a/tasks/construct-nppc-3col-l6-s6/tests/check.py b/tasks/construct-nppc-3col-l6-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..72362ed9180250b6c53ce0c71867ca476ac2af20 --- /dev/null +++ b/tasks/construct-nppc-3col-l6-s6/tests/check.py @@ -0,0 +1,12 @@ +"""Proper 3-colouring of a given graph. Accepts any valid colouring.""" +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["num_nodes"] + # upstream NPPC verifier skips the range/length check, so an all-distinct colouring passed it + c = int_list(ans.get("coloring"), n, 0, 2, "coloring") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + return None, {} diff --git a/tasks/construct-nppc-3col-l6-s6/tests/instance.json b/tasks/construct-nppc-3col-l6-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4a42a289fdcee70324da22c219dfd3cd776ae01d --- /dev/null +++ b/tasks/construct-nppc-3col-l6-s6/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 120, "edges": [[0, 2], [0, 7], [0, 11], [0, 21], [0, 69], [0, 96], [0, 112], [1, 19], [1, 45], [1, 49], [1, 94], [1, 104], [1, 109], [1, 113], [1, 114], [1, 116], [2, 33], [2, 39], [2, 82], [2, 86], [2, 87], [2, 107], [2, 118], [3, 8], [3, 13], [3, 17], [3, 28], [3, 40], [3, 50], [3, 75], [3, 76], [3, 102], [3, 116], [4, 6], [4, 14], [4, 19], [4, 41], [4, 43], [4, 71], [4, 87], [4, 89], [4, 106], [4, 112], [4, 114], [5, 25], [5, 42], [5, 49], [5, 61], [5, 69], [5, 90], [5, 91], [5, 93], [5, 94], [5, 104], [5, 113], [5, 116], [6, 7], [6, 59], [6, 75], [6, 100], [6, 105], [6, 106], [6, 111], [7, 23], [7, 28], [7, 38], [7, 39], [7, 42], [7, 49], [7, 52], [7, 63], [7, 82], [7, 91], [7, 93], [8, 9], [8, 16], [8, 23], [8, 53], [8, 77], [8, 114], [9, 58], [9, 66], [9, 87], [9, 91], [9, 95], [10, 19], [10, 69], [10, 88], [10, 93], [11, 33], [11, 34], [11, 67], [11, 76], [11, 93], [11, 95], [11, 107], [12, 46], [12, 58], [12, 63], [12, 79], [12, 84], [12, 107], [12, 110], [13, 14], [13, 41], [13, 62], [13, 70], [13, 112], [14, 16], [14, 21], [14, 27], [14, 62], [14, 64], [14, 74], [14, 98], [14, 107], [14, 109], [15, 24], [15, 27], [15, 46], [15, 55], [15, 65], [15, 100], [15, 108], [16, 31], [16, 37], [16, 51], [16, 67], [16, 80], [16, 93], [16, 103], [16, 112], [17, 21], [17, 39], [17, 44], [17, 47], [17, 108], [18, 27], [18, 32], [18, 36], [18, 43], [18, 47], [18, 83], [18, 104], [18, 116], [19, 84], [19, 98], [19, 115], [19, 118], [20, 22], [20, 24], [20, 25], [20, 29], [20, 31], [20, 87], [21, 25], [21, 34], [21, 36], [21, 41], [21, 51], [21, 74], [21, 77], [21, 82], [21, 86], [22, 51], [22, 77], [22, 90], [22, 104], [22, 108], [23, 36], [23, 50], [23, 58], [23, 98], [23, 102], [23, 104], [23, 116], [23, 117], [23, 118], [24, 27], [24, 35], [24, 52], [24, 74], [24, 98], [24, 116], [25, 27], [25, 41], [25, 52], [25, 75], [25, 84], [25, 85], [25, 87], [25, 102], [25, 103], [26, 29], [26, 43], [26, 96], [26, 103], [26, 116], [27, 32], [27, 33], [27, 41], [27, 49], [27, 55], [27, 63], [27, 68], [27, 69], [27, 73], [27, 87], [27, 106], [27, 114], [27, 119], [28, 30], [28, 47], [28, 48], [28, 60], [28, 83], [28, 84], [28, 89], [28, 92], [28, 93], [28, 100], [28, 111], [28, 119], [29, 45], [29, 53], [29, 60], [29, 65], [29, 83], [29, 91], [30, 31], [30, 34], [30, 36], [30, 38], [30, 51], [30, 53], [30, 76], [30, 88], [31, 48], [31, 70], [31, 109], [32, 46], [32, 48], [32, 49], [32, 53], [32, 83], [32, 102], [32, 104], [32, 115], [33, 51], [33, 80], [33, 89], [33, 111], [34, 37], [34, 39], [35, 36], [35, 51], [35, 54], [35, 87], [35, 97], [35, 103], [36, 38], [36, 39], [36, 46], [36, 53], [36, 65], [36, 78], [36, 83], [36, 84], [36, 89], [36, 115], [37, 40], [37, 41], [37, 57], [37, 75], [37, 98], [38, 66], [38, 84], [38, 110], [39, 40], [39, 41], [39, 50], [39, 78], [39, 87], [39, 104], [40, 43], [40, 52], [40, 58], [40, 85], [41, 48], [41, 84], [41, 99], [41, 109], [41, 112], [42, 47], [42, 56], [43, 51], [43, 53], [43, 93], [43, 112], [44, 46], [44, 61], [44, 79], [44, 115], [45, 59], [45, 64], [45, 103], [46, 65], [46, 67], [46, 77], [46, 79], [46, 95], [46, 118], [47, 49], [47, 53], [47, 68], [47, 69], [47, 87], [47, 89], [47, 93], [47, 99], [47, 114], [47, 118], [48, 54], [48, 55], [48, 88], [48, 89], [48, 113], [49, 66], [49, 82], [49, 101], [49, 104], [49, 105], [49, 106], [49, 110], [49, 115], [50, 53], [50, 77], [50, 86], [50, 103], [51, 87], [51, 88], [51, 96], [51, 104], [51, 105], [51, 107], [52, 60], [52, 90], [52, 116], [53, 75], [53, 82], [53, 87], [53, 97], [54, 57], [54, 73], [54, 84], [54, 94], [55, 58], [55, 87], [55, 103], [56, 69], [56, 71], [56, 72], [56, 76], [56, 80], [56, 86], [56, 89], [56, 107], [57, 58], [57, 62], [57, 71], [57, 81], [57, 95], [57, 108], [57, 114], [58, 60], [58, 105], [58, 115], [59, 68], [59, 74], [59, 76], [59, 99], [59, 101], [60, 106], [61, 67], [61, 70], [61, 79], [61, 89], [61, 107], [62, 67], [62, 73], [62, 93], [63, 65], [63, 83], [63, 99], [63, 111], [64, 75], [64, 92], [64, 100], [64, 104], [64, 113], [64, 114], [65, 106], [65, 111], [66, 78], [66, 109], [67, 94], [67, 117], [68, 82], [69, 83], [69, 86], [69, 107], [70, 75], [70, 77], [70, 78], [70, 90], [70, 93], [71, 73], [72, 90], [72, 96], [72, 110], [73, 98], [73, 109], [74, 92], [74, 95], [74, 96], [74, 112], [74, 119], [75, 82], [75, 86], [75, 113], [75, 119], [76, 77], [76, 91], [76, 93], [76, 110], [77, 84], [77, 102], [78, 79], [78, 85], [78, 119], [79, 83], [79, 90], [79, 93], [79, 102], [79, 114], [80, 86], [80, 96], [80, 103], [80, 115], [81, 82], [81, 88], [81, 97], [81, 98], [81, 107], [81, 109], [82, 100], [83, 99], [83, 106], [84, 86], [84, 93], [84, 108], [85, 96], [85, 99], [86, 89], [86, 112], [86, 119], [87, 110], [87, 114], [87, 115], [87, 119], [88, 90], [88, 91], [88, 92], [88, 99], [89, 102], [90, 115], [91, 92], [92, 103], [93, 96], [93, 116], [94, 107], [95, 107], [95, 110], [96, 113], [97, 109], [99, 105], [99, 107], [101, 102], [101, 113], [102, 117], [103, 104], [103, 111], [103, 116], [105, 117], [106, 116], [107, 110], [107, 115], [109, 117], [111, 112], [113, 116]], "family": "nppc_three_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-3col-l6-s6/tests/run.py b/tasks/construct-nppc-3col-l6-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-3col-l6-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-3col-l6-s6/tests/test.sh b/tasks/construct-nppc-3col-l6-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-3col-l6-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-3col-l6-s8/environment/Dockerfile b/tasks/construct-nppc-3col-l6-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-3col-l6-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-3col-l6-s8/environment/instance.json b/tasks/construct-nppc-3col-l6-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..e1e16570c77aa7a3ddf903712afee1ac8c1623d7 --- /dev/null +++ b/tasks/construct-nppc-3col-l6-s8/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 120, "edges": [[0, 24], [0, 42], [0, 60], [0, 93], [1, 7], [1, 25], [1, 28], [1, 29], [1, 61], [1, 74], [1, 82], [1, 107], [2, 16], [2, 18], [2, 21], [2, 24], [2, 28], [2, 33], [2, 39], [2, 71], [2, 96], [2, 112], [2, 114], [3, 12], [3, 20], [3, 44], [3, 64], [3, 66], [3, 82], [3, 86], [3, 92], [3, 104], [4, 14], [4, 15], [4, 18], [4, 21], [4, 22], [4, 28], [4, 30], [4, 34], [4, 41], [4, 45], [4, 103], [5, 21], [5, 32], [5, 36], [5, 38], [5, 45], [5, 62], [5, 69], [5, 70], [5, 73], [5, 85], [5, 87], [5, 93], [5, 95], [5, 101], [5, 102], [5, 104], [5, 109], [6, 23], [6, 27], [6, 41], [6, 78], [6, 83], [6, 86], [6, 88], [6, 89], [6, 90], [6, 95], [6, 96], [6, 119], [7, 20], [7, 32], [7, 44], [7, 62], [7, 86], [7, 92], [7, 93], [7, 101], [7, 103], [7, 104], [7, 115], [8, 56], [8, 76], [8, 85], [8, 119], [9, 12], [9, 18], [9, 19], [9, 28], [9, 34], [9, 35], [9, 45], [9, 61], [9, 89], [9, 101], [9, 107], [9, 113], [10, 20], [10, 53], [10, 59], [10, 62], [10, 92], [11, 49], [11, 52], [11, 74], [11, 75], [11, 95], [11, 98], [12, 13], [12, 20], [12, 33], [12, 34], [12, 37], [12, 44], [12, 55], [12, 64], [12, 66], [12, 70], [12, 75], [12, 84], [12, 99], [12, 107], [12, 118], [13, 28], [13, 76], [13, 93], [13, 97], [13, 105], [13, 115], [14, 28], [14, 45], [14, 62], [14, 65], [14, 72], [14, 83], [14, 88], [14, 94], [14, 109], [15, 20], [15, 23], [15, 44], [15, 59], [15, 60], [15, 92], [15, 95], [15, 105], [15, 114], [15, 115], [16, 19], [16, 51], [16, 65], [16, 66], [16, 67], [16, 77], [16, 90], [16, 107], [17, 37], [17, 46], [17, 54], [17, 56], [17, 72], [17, 87], [17, 89], [17, 97], [17, 112], [17, 114], [18, 55], [18, 81], [18, 84], [18, 95], [18, 119], [19, 21], [19, 36], [19, 56], [19, 65], [19, 67], [19, 69], [19, 101], [19, 103], [19, 105], [19, 109], [19, 111], [20, 37], [20, 45], [20, 58], [20, 59], [20, 89], [20, 115], [21, 37], [21, 54], [21, 57], [21, 63], [21, 67], [21, 92], [21, 95], [21, 105], [22, 34], [22, 66], [22, 67], [22, 94], [22, 107], [23, 31], [23, 48], [23, 79], [23, 84], [23, 93], [23, 98], [23, 99], [23, 111], [24, 48], [24, 55], [24, 67], [24, 69], [24, 119], [25, 40], [25, 41], [25, 45], [25, 64], [25, 105], [25, 114], [26, 71], [26, 77], [26, 78], [26, 93], [26, 104], [26, 110], [27, 28], [27, 47], [27, 80], [27, 87], [27, 89], [28, 64], [28, 66], [29, 42], [29, 62], [29, 80], [29, 83], [29, 91], [29, 94], [29, 96], [29, 97], [30, 58], [30, 65], [30, 67], [30, 80], [30, 90], [30, 119], [31, 33], [31, 41], [31, 60], [31, 64], [31, 68], [31, 93], [31, 101], [31, 109], [32, 37], [32, 47], [32, 50], [32, 77], [32, 86], [32, 92], [32, 98], [32, 113], [33, 53], [33, 80], [33, 101], [34, 49], [34, 52], [34, 58], [34, 70], [34, 86], [34, 89], [34, 106], [35, 44], [35, 66], [35, 89], [35, 95], [36, 49], [36, 52], [36, 99], [36, 105], [37, 49], [37, 53], [37, 69], [37, 70], [37, 84], [37, 90], [37, 104], [37, 105], [37, 114], [38, 47], [38, 53], [38, 55], [38, 75], [38, 118], [39, 48], [39, 72], [39, 82], [39, 100], [40, 46], [40, 47], [40, 50], [40, 76], [40, 83], [40, 94], [40, 118], [41, 50], [41, 67], [41, 81], [41, 100], [41, 109], [41, 117], [41, 118], [42, 67], [42, 69], [42, 77], [42, 116], [43, 86], [43, 92], [43, 93], [43, 95], [43, 99], [43, 102], [44, 46], [44, 54], [44, 74], [44, 75], [44, 96], [45, 61], [45, 69], [45, 74], [45, 78], [45, 83], [45, 90], [45, 92], [47, 49], [47, 91], [47, 104], [47, 110], [48, 59], [48, 70], [48, 73], [48, 80], [48, 82], [48, 83], [48, 87], [48, 91], [49, 68], [49, 75], [49, 80], [49, 117], [50, 82], [50, 102], [51, 53], [51, 66], [51, 91], [51, 99], [51, 101], [52, 61], [52, 80], [52, 117], [53, 54], [53, 86], [53, 107], [54, 65], [54, 86], [54, 91], [54, 105], [55, 66], [55, 70], [55, 71], [55, 92], [56, 73], [57, 59], [57, 85], [58, 77], [58, 99], [58, 104], [58, 118], [58, 119], [59, 66], [59, 90], [60, 61], [61, 67], [61, 77], [61, 87], [61, 91], [61, 99], [61, 106], [61, 111], [62, 74], [62, 75], [62, 78], [62, 84], [62, 86], [62, 100], [63, 82], [63, 91], [63, 106], [64, 87], [64, 114], [64, 115], [65, 80], [65, 110], [65, 113], [66, 75], [66, 115], [67, 80], [67, 112], [68, 71], [68, 73], [68, 83], [68, 105], [68, 119], [69, 72], [69, 80], [69, 81], [69, 97], [69, 112], [69, 114], [69, 118], [70, 75], [70, 79], [70, 96], [70, 106], [71, 75], [71, 102], [71, 103], [71, 118], [72, 76], [72, 83], [72, 95], [73, 114], [74, 80], [74, 97], [74, 99], [74, 111], [75, 95], [75, 96], [75, 104], [76, 88], [76, 110], [76, 112], [77, 100], [78, 103], [79, 82], [79, 85], [79, 87], [79, 90], [79, 105], [79, 111], [81, 95], [81, 104], [81, 105], [82, 93], [83, 91], [83, 100], [83, 118], [84, 96], [84, 103], [85, 94], [85, 99], [85, 108], [85, 113], [86, 89], [87, 95], [87, 105], [87, 109], [88, 104], [89, 95], [89, 98], [89, 107], [90, 112], [90, 113], [90, 114], [91, 104], [91, 107], [92, 113], [94, 101], [94, 118], [96, 104], [96, 108], [96, 111], [96, 113], [97, 116], [98, 104], [98, 114], [98, 115], [99, 110], [100, 110], [100, 114], [104, 113], [106, 109], [106, 111], [110, 111], [110, 116], [112, 118], [113, 115]], "family": "nppc_three_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-3col-l6-s8/solution/solve.sh b/tasks/construct-nppc-3col-l6-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..113f0f9430020d071732e34b6ee05c9042470850 --- /dev/null +++ b/tasks/construct-nppc-3col-l6-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"coloring": [2, 0, 2, 2, 0, 2, 2, 2, 2, 0, 2, 1, 1, 2, 2, 2, 1, 0, 1, 2, 0, 1, 1, 1, 1, 2, 2, 0, 1, 2, 2, 2, 1, 0, 2, 2, 1, 2, 0, 0, 1, 1, 1, 2, 0, 1, 2, 2, 2, 0, 2, 2, 0, 1, 2, 2, 1, 2, 1, 1, 1, 2, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 2, 0, 0, 0, 2, 1, 2, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 2, 0, 2, 1, 1, 1, 0, 0, 1, 2, 0, 0, 1, 0, 1, 2, 1, 1, 0, 2, 2, 0]} +RLMATH_EOF diff --git a/tasks/construct-nppc-3col-l6-s8/tests/check.py b/tasks/construct-nppc-3col-l6-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..72362ed9180250b6c53ce0c71867ca476ac2af20 --- /dev/null +++ b/tasks/construct-nppc-3col-l6-s8/tests/check.py @@ -0,0 +1,12 @@ +"""Proper 3-colouring of a given graph. Accepts any valid colouring.""" +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["num_nodes"] + # upstream NPPC verifier skips the range/length check, so an all-distinct colouring passed it + c = int_list(ans.get("coloring"), n, 0, 2, "coloring") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + return None, {} diff --git a/tasks/construct-nppc-3col-l6-s8/tests/instance.json b/tasks/construct-nppc-3col-l6-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..e1e16570c77aa7a3ddf903712afee1ac8c1623d7 --- /dev/null +++ b/tasks/construct-nppc-3col-l6-s8/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 120, "edges": [[0, 24], [0, 42], [0, 60], [0, 93], [1, 7], [1, 25], [1, 28], [1, 29], [1, 61], [1, 74], [1, 82], [1, 107], [2, 16], [2, 18], [2, 21], [2, 24], [2, 28], [2, 33], [2, 39], [2, 71], [2, 96], [2, 112], [2, 114], [3, 12], [3, 20], [3, 44], [3, 64], [3, 66], [3, 82], [3, 86], [3, 92], [3, 104], [4, 14], [4, 15], [4, 18], [4, 21], [4, 22], [4, 28], [4, 30], [4, 34], [4, 41], [4, 45], [4, 103], [5, 21], [5, 32], [5, 36], [5, 38], [5, 45], [5, 62], [5, 69], [5, 70], [5, 73], [5, 85], [5, 87], [5, 93], [5, 95], [5, 101], [5, 102], [5, 104], [5, 109], [6, 23], [6, 27], [6, 41], [6, 78], [6, 83], [6, 86], [6, 88], [6, 89], [6, 90], [6, 95], [6, 96], [6, 119], [7, 20], [7, 32], [7, 44], [7, 62], [7, 86], [7, 92], [7, 93], [7, 101], [7, 103], [7, 104], [7, 115], [8, 56], [8, 76], [8, 85], [8, 119], [9, 12], [9, 18], [9, 19], [9, 28], [9, 34], [9, 35], [9, 45], [9, 61], [9, 89], [9, 101], [9, 107], [9, 113], [10, 20], [10, 53], [10, 59], [10, 62], [10, 92], [11, 49], [11, 52], [11, 74], [11, 75], [11, 95], [11, 98], [12, 13], [12, 20], [12, 33], [12, 34], [12, 37], [12, 44], [12, 55], [12, 64], [12, 66], [12, 70], [12, 75], [12, 84], [12, 99], [12, 107], [12, 118], [13, 28], [13, 76], [13, 93], [13, 97], [13, 105], [13, 115], [14, 28], [14, 45], [14, 62], [14, 65], [14, 72], [14, 83], [14, 88], [14, 94], [14, 109], [15, 20], [15, 23], [15, 44], [15, 59], [15, 60], [15, 92], [15, 95], [15, 105], [15, 114], [15, 115], [16, 19], [16, 51], [16, 65], [16, 66], [16, 67], [16, 77], [16, 90], [16, 107], [17, 37], [17, 46], [17, 54], [17, 56], [17, 72], [17, 87], [17, 89], [17, 97], [17, 112], [17, 114], [18, 55], [18, 81], [18, 84], [18, 95], [18, 119], [19, 21], [19, 36], [19, 56], [19, 65], [19, 67], [19, 69], [19, 101], [19, 103], [19, 105], [19, 109], [19, 111], [20, 37], [20, 45], [20, 58], [20, 59], [20, 89], [20, 115], [21, 37], [21, 54], [21, 57], [21, 63], [21, 67], [21, 92], [21, 95], [21, 105], [22, 34], [22, 66], [22, 67], [22, 94], [22, 107], [23, 31], [23, 48], [23, 79], [23, 84], [23, 93], [23, 98], [23, 99], [23, 111], [24, 48], [24, 55], [24, 67], [24, 69], [24, 119], [25, 40], [25, 41], [25, 45], [25, 64], [25, 105], [25, 114], [26, 71], [26, 77], [26, 78], [26, 93], [26, 104], [26, 110], [27, 28], [27, 47], [27, 80], [27, 87], [27, 89], [28, 64], [28, 66], [29, 42], [29, 62], [29, 80], [29, 83], [29, 91], [29, 94], [29, 96], [29, 97], [30, 58], [30, 65], [30, 67], [30, 80], [30, 90], [30, 119], [31, 33], [31, 41], [31, 60], [31, 64], [31, 68], [31, 93], [31, 101], [31, 109], [32, 37], [32, 47], [32, 50], [32, 77], [32, 86], [32, 92], [32, 98], [32, 113], [33, 53], [33, 80], [33, 101], [34, 49], [34, 52], [34, 58], [34, 70], [34, 86], [34, 89], [34, 106], [35, 44], [35, 66], [35, 89], [35, 95], [36, 49], [36, 52], [36, 99], [36, 105], [37, 49], [37, 53], [37, 69], [37, 70], [37, 84], [37, 90], [37, 104], [37, 105], [37, 114], [38, 47], [38, 53], [38, 55], [38, 75], [38, 118], [39, 48], [39, 72], [39, 82], [39, 100], [40, 46], [40, 47], [40, 50], [40, 76], [40, 83], [40, 94], [40, 118], [41, 50], [41, 67], [41, 81], [41, 100], [41, 109], [41, 117], [41, 118], [42, 67], [42, 69], [42, 77], [42, 116], [43, 86], [43, 92], [43, 93], [43, 95], [43, 99], [43, 102], [44, 46], [44, 54], [44, 74], [44, 75], [44, 96], [45, 61], [45, 69], [45, 74], [45, 78], [45, 83], [45, 90], [45, 92], [47, 49], [47, 91], [47, 104], [47, 110], [48, 59], [48, 70], [48, 73], [48, 80], [48, 82], [48, 83], [48, 87], [48, 91], [49, 68], [49, 75], [49, 80], [49, 117], [50, 82], [50, 102], [51, 53], [51, 66], [51, 91], [51, 99], [51, 101], [52, 61], [52, 80], [52, 117], [53, 54], [53, 86], [53, 107], [54, 65], [54, 86], [54, 91], [54, 105], [55, 66], [55, 70], [55, 71], [55, 92], [56, 73], [57, 59], [57, 85], [58, 77], [58, 99], [58, 104], [58, 118], [58, 119], [59, 66], [59, 90], [60, 61], [61, 67], [61, 77], [61, 87], [61, 91], [61, 99], [61, 106], [61, 111], [62, 74], [62, 75], [62, 78], [62, 84], [62, 86], [62, 100], [63, 82], [63, 91], [63, 106], [64, 87], [64, 114], [64, 115], [65, 80], [65, 110], [65, 113], [66, 75], [66, 115], [67, 80], [67, 112], [68, 71], [68, 73], [68, 83], [68, 105], [68, 119], [69, 72], [69, 80], [69, 81], [69, 97], [69, 112], [69, 114], [69, 118], [70, 75], [70, 79], [70, 96], [70, 106], [71, 75], [71, 102], [71, 103], [71, 118], [72, 76], [72, 83], [72, 95], [73, 114], [74, 80], [74, 97], [74, 99], [74, 111], [75, 95], [75, 96], [75, 104], [76, 88], [76, 110], [76, 112], [77, 100], [78, 103], [79, 82], [79, 85], [79, 87], [79, 90], [79, 105], [79, 111], [81, 95], [81, 104], [81, 105], [82, 93], [83, 91], [83, 100], [83, 118], [84, 96], [84, 103], [85, 94], [85, 99], [85, 108], [85, 113], [86, 89], [87, 95], [87, 105], [87, 109], [88, 104], [89, 95], [89, 98], [89, 107], [90, 112], [90, 113], [90, 114], [91, 104], [91, 107], [92, 113], [94, 101], [94, 118], [96, 104], [96, 108], [96, 111], [96, 113], [97, 116], [98, 104], [98, 114], [98, 115], [99, 110], [100, 110], [100, 114], [104, 113], [106, 109], [106, 111], [110, 111], [110, 116], [112, 118], [113, 115]], "family": "nppc_three_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-3col-l6-s8/tests/run.py b/tasks/construct-nppc-3col-l6-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-3col-l6-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-3col-l6-s8/tests/test.sh b/tasks/construct-nppc-3col-l6-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-3col-l6-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-bandwidth-l4-s2/environment/Dockerfile b/tasks/construct-nppc-bandwidth-l4-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l4-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-bandwidth-l4-s2/environment/instance.json b/tasks/construct-nppc-bandwidth-l4-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5ed1b21460f967db36bc646792a6616b13f7dacb --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l4-s2/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 20, "bandwidth": 3, "edges": [[0, 3], [0, 4], [0, 5], [0, 9], [1, 6], [1, 12], [1, 17], [1, 18], [2, 16], [2, 17], [2, 18], [3, 5], [4, 5], [4, 7], [4, 9], [4, 13], [5, 7], [6, 8], [6, 11], [6, 19], [7, 9], [7, 10], [7, 13], [8, 12], [8, 16], [8, 18], [8, 19], [9, 13], [10, 11], [10, 19], [11, 12], [11, 14], [11, 19], [12, 18], [12, 19], [13, 14], [13, 15], [14, 15], [16, 17], [17, 18]], "family": "nppc_bandwidth", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-bandwidth-l4-s2/solution/solve.sh b/tasks/construct-nppc-bandwidth-l4-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..0eaf926bbc6edcab4a1914271069bc2bd6caf1e4 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l4-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"layout": [1, 15, 19, 0, 4, 2, 12, 5, 14, 3, 8, 10, 13, 6, 9, 7, 17, 18, 16, 11]} +RLMATH_EOF diff --git a/tasks/construct-nppc-bandwidth-l4-s2/tests/check.py b/tasks/construct-nppc-bandwidth-l4-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..0f847cded257e6c404063dfafde33fa44163afa2 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l4-s2/tests/check.py @@ -0,0 +1,14 @@ +"""Bandwidth <= b: layout must be a permutation of 0..n-1 with |p[u]-p[v]| <= b on every edge.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, b = inst["num_nodes"], inst["bandwidth"] + # upstream NPPC verifier compares sorted(layout) to range(n), which also accepts floats/bools + p = int_list(ans.get("layout"), n, 0, n - 1, "layout") + if len(set(p)) != n: + raise Invalid("layout is not a permutation of 0..n-1") + for u, v in inst["edges"]: + if abs(p[u] - p[v]) > b: + raise Invalid(f"edge ({u},{v}) has stretch {abs(p[u] - p[v])} > {b}") + return None, {} diff --git a/tasks/construct-nppc-bandwidth-l4-s2/tests/instance.json b/tasks/construct-nppc-bandwidth-l4-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5ed1b21460f967db36bc646792a6616b13f7dacb --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l4-s2/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 20, "bandwidth": 3, "edges": [[0, 3], [0, 4], [0, 5], [0, 9], [1, 6], [1, 12], [1, 17], [1, 18], [2, 16], [2, 17], [2, 18], [3, 5], [4, 5], [4, 7], [4, 9], [4, 13], [5, 7], [6, 8], [6, 11], [6, 19], [7, 9], [7, 10], [7, 13], [8, 12], [8, 16], [8, 18], [8, 19], [9, 13], [10, 11], [10, 19], [11, 12], [11, 14], [11, 19], [12, 18], [12, 19], [13, 14], [13, 15], [14, 15], [16, 17], [17, 18]], "family": "nppc_bandwidth", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-bandwidth-l4-s2/tests/run.py b/tasks/construct-nppc-bandwidth-l4-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l4-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-bandwidth-l4-s2/tests/test.sh b/tasks/construct-nppc-bandwidth-l4-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l4-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-bandwidth-l4-s5/environment/Dockerfile b/tasks/construct-nppc-bandwidth-l4-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l4-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-bandwidth-l4-s5/environment/instance.json b/tasks/construct-nppc-bandwidth-l4-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..81b5125678c97d0e5cfda0d3f184fd1c9ccbf5bd --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l4-s5/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 20, "bandwidth": 3, "edges": [[0, 3], [0, 13], [0, 18], [1, 4], [1, 8], [1, 12], [1, 14], [1, 17], [2, 5], [2, 7], [2, 11], [2, 16], [2, 19], [3, 10], [3, 18], [4, 12], [4, 14], [4, 17], [5, 6], [5, 7], [5, 10], [5, 19], [6, 7], [6, 10], [6, 15], [7, 8], [7, 11], [7, 19], [8, 9], [8, 11], [8, 17], [9, 11], [9, 12], [10, 15], [10, 16], [11, 17], [12, 14], [13, 18], [15, 16], [15, 18], [16, 18]], "family": "nppc_bandwidth", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-bandwidth-l4-s5/solution/solve.sh b/tasks/construct-nppc-bandwidth-l4-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..997afd2356dd271e03756331a315cddcd28d907d --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l4-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"layout": [1, 16, 9, 2, 18, 8, 7, 10, 13, 14, 5, 12, 17, 0, 19, 4, 6, 15, 3, 11]} +RLMATH_EOF diff --git a/tasks/construct-nppc-bandwidth-l4-s5/tests/check.py b/tasks/construct-nppc-bandwidth-l4-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..0f847cded257e6c404063dfafde33fa44163afa2 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l4-s5/tests/check.py @@ -0,0 +1,14 @@ +"""Bandwidth <= b: layout must be a permutation of 0..n-1 with |p[u]-p[v]| <= b on every edge.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, b = inst["num_nodes"], inst["bandwidth"] + # upstream NPPC verifier compares sorted(layout) to range(n), which also accepts floats/bools + p = int_list(ans.get("layout"), n, 0, n - 1, "layout") + if len(set(p)) != n: + raise Invalid("layout is not a permutation of 0..n-1") + for u, v in inst["edges"]: + if abs(p[u] - p[v]) > b: + raise Invalid(f"edge ({u},{v}) has stretch {abs(p[u] - p[v])} > {b}") + return None, {} diff --git a/tasks/construct-nppc-bandwidth-l4-s5/tests/instance.json b/tasks/construct-nppc-bandwidth-l4-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..81b5125678c97d0e5cfda0d3f184fd1c9ccbf5bd --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l4-s5/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 20, "bandwidth": 3, "edges": [[0, 3], [0, 13], [0, 18], [1, 4], [1, 8], [1, 12], [1, 14], [1, 17], [2, 5], [2, 7], [2, 11], [2, 16], [2, 19], [3, 10], [3, 18], [4, 12], [4, 14], [4, 17], [5, 6], [5, 7], [5, 10], [5, 19], [6, 7], [6, 10], [6, 15], [7, 8], [7, 11], [7, 19], [8, 9], [8, 11], [8, 17], [9, 11], [9, 12], [10, 15], [10, 16], [11, 17], [12, 14], [13, 18], [15, 16], [15, 18], [16, 18]], "family": "nppc_bandwidth", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-bandwidth-l4-s5/tests/run.py b/tasks/construct-nppc-bandwidth-l4-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l4-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-bandwidth-l4-s5/tests/test.sh b/tasks/construct-nppc-bandwidth-l4-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l4-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-clique-l1-s3/environment/Dockerfile b/tasks/construct-nppc-clique-l1-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-clique-l1-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-clique-l1-s3/environment/instance.json b/tasks/construct-nppc-clique-l1-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3241ca21021919c60023a63662117c8d4350cb91 --- /dev/null +++ b/tasks/construct-nppc-clique-l1-s3/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 8, "k": 4, "edges": [[0, 3], [0, 4], [0, 6], [0, 7], [1, 2], [1, 3], [1, 4], [2, 3], [2, 4], [2, 6], [3, 4], [3, 5], [4, 5], [4, 6], [4, 7], [5, 7], [6, 7]], "family": "nppc_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-clique-l1-s3/solution/solve.sh b/tasks/construct-nppc-clique-l1-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..caaa89e5b5dfeda15d94b5d87a9b35f95de83c95 --- /dev/null +++ b/tasks/construct-nppc-clique-l1-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [0, 4, 6, 7]} +RLMATH_EOF diff --git a/tasks/construct-nppc-clique-l1-s3/tests/check.py b/tasks/construct-nppc-clique-l1-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..98eb4fc9097fcfa31988cf0a8b79280cec2b7980 --- /dev/null +++ b/tasks/construct-nppc-clique-l1-s3/tests/check.py @@ -0,0 +1,19 @@ +"""Clique of size >= k. Accepts any valid clique.""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + c = int_list(ans.get("clique"), None, 0, n - 1, "clique") + # upstream NPPC verifier checks len(list) >= k but only tests pairs u < v, so [v, v, ..., v] passed + if len(set(c)) != len(c): + raise Invalid("clique contains duplicates") + if len(c) < k: + raise Invalid(f"clique has {len(c)} < {k} vertices") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(c), 2): + if (u, v) not in es: + raise Invalid(f"no edge between {u} and {v}") + return None, {"size": len(c)} diff --git a/tasks/construct-nppc-clique-l1-s3/tests/instance.json b/tasks/construct-nppc-clique-l1-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3241ca21021919c60023a63662117c8d4350cb91 --- /dev/null +++ b/tasks/construct-nppc-clique-l1-s3/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 8, "k": 4, "edges": [[0, 3], [0, 4], [0, 6], [0, 7], [1, 2], [1, 3], [1, 4], [2, 3], [2, 4], [2, 6], [3, 4], [3, 5], [4, 5], [4, 6], [4, 7], [5, 7], [6, 7]], "family": "nppc_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-clique-l1-s3/tests/run.py b/tasks/construct-nppc-clique-l1-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-clique-l1-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-clique-l1-s3/tests/test.sh b/tasks/construct-nppc-clique-l1-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-clique-l1-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-clique-l1-s4/environment/Dockerfile b/tasks/construct-nppc-clique-l1-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-clique-l1-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-clique-l1-s4/environment/instance.json b/tasks/construct-nppc-clique-l1-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3d9b018870e4b6c6bf2406f118400be11204b5a9 --- /dev/null +++ b/tasks/construct-nppc-clique-l1-s4/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 8, "k": 4, "edges": [[0, 1], [0, 2], [0, 3], [0, 7], [1, 4], [2, 3], [2, 7], [3, 5], [3, 7], [4, 5], [4, 6], [4, 7], [5, 6]], "family": "nppc_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-clique-l1-s4/solution/solve.sh b/tasks/construct-nppc-clique-l1-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..91360ad427ed32bd4cf56306e668576f17f674eb --- /dev/null +++ b/tasks/construct-nppc-clique-l1-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [0, 2, 3, 7]} +RLMATH_EOF diff --git a/tasks/construct-nppc-clique-l1-s4/tests/check.py b/tasks/construct-nppc-clique-l1-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..98eb4fc9097fcfa31988cf0a8b79280cec2b7980 --- /dev/null +++ b/tasks/construct-nppc-clique-l1-s4/tests/check.py @@ -0,0 +1,19 @@ +"""Clique of size >= k. Accepts any valid clique.""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + c = int_list(ans.get("clique"), None, 0, n - 1, "clique") + # upstream NPPC verifier checks len(list) >= k but only tests pairs u < v, so [v, v, ..., v] passed + if len(set(c)) != len(c): + raise Invalid("clique contains duplicates") + if len(c) < k: + raise Invalid(f"clique has {len(c)} < {k} vertices") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(c), 2): + if (u, v) not in es: + raise Invalid(f"no edge between {u} and {v}") + return None, {"size": len(c)} diff --git a/tasks/construct-nppc-clique-l1-s4/tests/instance.json b/tasks/construct-nppc-clique-l1-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3d9b018870e4b6c6bf2406f118400be11204b5a9 --- /dev/null +++ b/tasks/construct-nppc-clique-l1-s4/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 8, "k": 4, "edges": [[0, 1], [0, 2], [0, 3], [0, 7], [1, 4], [2, 3], [2, 7], [3, 5], [3, 7], [4, 5], [4, 6], [4, 7], [5, 6]], "family": "nppc_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-clique-l1-s4/tests/run.py b/tasks/construct-nppc-clique-l1-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-clique-l1-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-clique-l1-s4/tests/test.sh b/tasks/construct-nppc-clique-l1-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-clique-l1-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-dominating-set-l1-s3/environment/Dockerfile b/tasks/construct-nppc-dominating-set-l1-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l1-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-dominating-set-l1-s3/environment/instance.json b/tasks/construct-nppc-dominating-set-l1-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..187d50aa646b0e1409b625bdabe13e6dd9574b7d --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l1-s3/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 10, "k": 5, "edges": [[0, 1], [0, 5], [0, 9], [1, 4], [1, 5], [1, 7], [1, 8], [2, 3], [2, 4], [2, 9], [3, 4], [3, 6], [5, 6], [5, 8], [7, 9]], "family": "nppc_dominating_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-dominating-set-l1-s3/solution/solve.sh b/tasks/construct-nppc-dominating-set-l1-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..b554cd0790e166b7c4e06a63b99eeea98f27dabe --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l1-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"dominating_set": [3, 4, 5, 7, 8]} +RLMATH_EOF diff --git a/tasks/construct-nppc-dominating-set-l1-s3/tests/check.py b/tasks/construct-nppc-dominating-set-l1-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..0677a7bcbccb02297d022ffa4b5dd15da6371bff --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l1-s3/tests/check.py @@ -0,0 +1,23 @@ +"""Dominating set of size <= k. Accepts any valid dominating set.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + # upstream NPPC verifier has no type/range checks (out-of-range labels and floats are silently used) + d = int_list(ans.get("dominating_set"), None, 0, n - 1, "dominating_set") + if len(set(d)) != len(d): + raise Invalid("dominating_set contains duplicates") + if not d or len(d) > k: + raise Invalid(f"dominating_set must have 1..{k} vertices, got {len(d)}") + dom = set(d) + s = set(d) + for u, v in inst["edges"]: + if u in s: + dom.add(v) + if v in s: + dom.add(u) + if len(dom) != n: + miss = min(set(range(n)) - dom) + raise Invalid(f"vertex {miss} is not dominated") + return None, {"size": len(d)} diff --git a/tasks/construct-nppc-dominating-set-l1-s3/tests/instance.json b/tasks/construct-nppc-dominating-set-l1-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..187d50aa646b0e1409b625bdabe13e6dd9574b7d --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l1-s3/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 10, "k": 5, "edges": [[0, 1], [0, 5], [0, 9], [1, 4], [1, 5], [1, 7], [1, 8], [2, 3], [2, 4], [2, 9], [3, 4], [3, 6], [5, 6], [5, 8], [7, 9]], "family": "nppc_dominating_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-dominating-set-l1-s3/tests/run.py b/tasks/construct-nppc-dominating-set-l1-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l1-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-dominating-set-l1-s3/tests/test.sh b/tasks/construct-nppc-dominating-set-l1-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l1-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-dominating-set-l1-s4/environment/Dockerfile b/tasks/construct-nppc-dominating-set-l1-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l1-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-dominating-set-l1-s4/environment/instance.json b/tasks/construct-nppc-dominating-set-l1-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..fb6c2ec74939dbbf15e2cc03120c94800653cd93 --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l1-s4/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 10, "k": 5, "edges": [[0, 5], [0, 6], [0, 7], [1, 3], [1, 4], [1, 8], [2, 4], [2, 6], [2, 8], [3, 8], [3, 9], [4, 6], [5, 7], [5, 9], [8, 9]], "family": "nppc_dominating_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-dominating-set-l1-s4/solution/solve.sh b/tasks/construct-nppc-dominating-set-l1-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..94ca1650f54187e76969d0f3a7e3006f3d09929d --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l1-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"dominating_set": [4, 6, 7, 8, 9]} +RLMATH_EOF diff --git a/tasks/construct-nppc-dominating-set-l1-s4/tests/check.py b/tasks/construct-nppc-dominating-set-l1-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..0677a7bcbccb02297d022ffa4b5dd15da6371bff --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l1-s4/tests/check.py @@ -0,0 +1,23 @@ +"""Dominating set of size <= k. Accepts any valid dominating set.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + # upstream NPPC verifier has no type/range checks (out-of-range labels and floats are silently used) + d = int_list(ans.get("dominating_set"), None, 0, n - 1, "dominating_set") + if len(set(d)) != len(d): + raise Invalid("dominating_set contains duplicates") + if not d or len(d) > k: + raise Invalid(f"dominating_set must have 1..{k} vertices, got {len(d)}") + dom = set(d) + s = set(d) + for u, v in inst["edges"]: + if u in s: + dom.add(v) + if v in s: + dom.add(u) + if len(dom) != n: + miss = min(set(range(n)) - dom) + raise Invalid(f"vertex {miss} is not dominated") + return None, {"size": len(d)} diff --git a/tasks/construct-nppc-dominating-set-l1-s4/tests/instance.json b/tasks/construct-nppc-dominating-set-l1-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..fb6c2ec74939dbbf15e2cc03120c94800653cd93 --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l1-s4/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 10, "k": 5, "edges": [[0, 5], [0, 6], [0, 7], [1, 3], [1, 4], [1, 8], [2, 4], [2, 6], [2, 8], [3, 8], [3, 9], [4, 6], [5, 7], [5, 9], [8, 9]], "family": "nppc_dominating_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-dominating-set-l1-s4/tests/run.py b/tasks/construct-nppc-dominating-set-l1-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l1-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-dominating-set-l1-s4/tests/test.sh b/tasks/construct-nppc-dominating-set-l1-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l1-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-dominating-set-l5-s2/environment/Dockerfile b/tasks/construct-nppc-dominating-set-l5-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l5-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-dominating-set-l5-s2/environment/instance.json b/tasks/construct-nppc-dominating-set-l5-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..989adda322a1ced21f3a70979b011bf6d9110c99 --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l5-s2/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 180, "k": 15, "edges": [[0, 1], [0, 5], [0, 11], [0, 13], [0, 18], [0, 21], [0, 29], [0, 30], [0, 35], [0, 37], [0, 49], [0, 60], [0, 62], [0, 66], [0, 69], [0, 70], [0, 71], [0, 73], [0, 76], [0, 84], [0, 89], [0, 100], [0, 103], [0, 126], [0, 133], [0, 134], [0, 143], [0, 147], [0, 155], [0, 168], [0, 173], [0, 174], [1, 9], [1, 16], [1, 22], [1, 34], [1, 40], [1, 45], [1, 48], [1, 52], [1, 56], [1, 57], [1, 58], [1, 59], [1, 60], [1, 63], [1, 66], [1, 67], [1, 70], [1, 72], [1, 73], [1, 74], [1, 77], [1, 80], [1, 88], [1, 97], [1, 101], [1, 104], [1, 109], [1, 117], [1, 120], [1, 122], [1, 124], [1, 125], [1, 126], [1, 136], [1, 142], [1, 150], [1, 151], [1, 157], [1, 160], [1, 161], [1, 163], [1, 167], [1, 168], [1, 169], [1, 177], [2, 4], [2, 8], [2, 26], [2, 34], [2, 35], [2, 38], [2, 42], [2, 45], [2, 50], [2, 56], [2, 62], [2, 67], [2, 69], [2, 83], [2, 84], [2, 96], [2, 98], [2, 99], [2, 105], [2, 110], [2, 120], [2, 122], [2, 131], [2, 136], [2, 139], [2, 146], [2, 148], [2, 149], [2, 153], [2, 160], [2, 167], [2, 170], [2, 172], [2, 173], [2, 175], [3, 8], [3, 9], [3, 11], [3, 18], [3, 19], [3, 26], [3, 29], [3, 33], [3, 39], [3, 44], [3, 46], [3, 55], [3, 62], [3, 63], [3, 75], [3, 77], [3, 79], [3, 83], [3, 88], [3, 89], [3, 117], [3, 118], [3, 122], [3, 124], [3, 131], [3, 132], [3, 135], [3, 136], [3, 140], [3, 149], [3, 151], [3, 152], [3, 154], [3, 157], [3, 159], [3, 161], [3, 165], [3, 166], [3, 167], [3, 171], [3, 174], [3, 175], [3, 178], [4, 11], [4, 20], [4, 22], [4, 25], [4, 30], [4, 37], [4, 39], [4, 44], [4, 53], [4, 56], [4, 60], [4, 68], [4, 73], [4, 74], [4, 75], [4, 76], [4, 77], [4, 80], [4, 98], [4, 104], [4, 108], [4, 118], [4, 132], [4, 155], [4, 156], [4, 157], [4, 159], [4, 168], [4, 178], [5, 8], [5, 13], [5, 14], [5, 25], [5, 27], [5, 37], [5, 39], [5, 42], [5, 48], [5, 55], [5, 60], [5, 67], [5, 73], [5, 78], [5, 88], [5, 93], [5, 104], [5, 105], [5, 108], [5, 110], [5, 115], [5, 116], [5, 125], [5, 127], [5, 135], [5, 141], [5, 142], [5, 143], [5, 147], [5, 149], [5, 158], [5, 160], [5, 161], [5, 178], [6, 8], [6, 11], [6, 14], [6, 15], [6, 16], [6, 18], [6, 23], [6, 25], [6, 26], [6, 28], [6, 42], [6, 48], [6, 51], [6, 58], [6, 61], [6, 72], [6, 77], [6, 78], [6, 79], [6, 80], [6, 87], [6, 90], [6, 102], [6, 105], [6, 109], [6, 114], [6, 115], [6, 117], [6, 118], [6, 123], [6, 126], [6, 131], [6, 141], [6, 144], [6, 148], [6, 159], [6, 160], [6, 167], [6, 169], [6, 171], [6, 177], [6, 178], [7, 13], [7, 16], [7, 20], [7, 22], [7, 23], [7, 33], [7, 36], [7, 38], [7, 39], [7, 40], [7, 44], [7, 47], [7, 52], [7, 56], [7, 64], [7, 75], [7, 86], [7, 92], [7, 93], [7, 95], [7, 104], [7, 106], [7, 112], [7, 113], [7, 121], [7, 122], [7, 124], [7, 128], [7, 133], [7, 136], [7, 141], [7, 148], [7, 150], [7, 155], [7, 160], [7, 165], [7, 168], [7, 173], [7, 177], [8, 10], [8, 13], [8, 20], [8, 21], [8, 26], [8, 33], [8, 35], [8, 40], [8, 44], [8, 50], [8, 53], [8, 57], [8, 63], [8, 64], [8, 69], [8, 74], [8, 75], [8, 92], [8, 93], [8, 94], [8, 96], [8, 118], [8, 119], [8, 126], [8, 128], [8, 130], [8, 137], [8, 143], [8, 146], [8, 150], [8, 154], [8, 155], [8, 162], [8, 164], [8, 166], [8, 179], [9, 10], [9, 15], [9, 17], [9, 18], [9, 21], [9, 29], [9, 32], [9, 38], [9, 47], [9, 53], [9, 57], [9, 63], [9, 72], [9, 76], [9, 78], [9, 79], [9, 88], [9, 94], [9, 95], [9, 101], [9, 104], [9, 109], [9, 112], [9, 120], [9, 124], [9, 125], [9, 126], [9, 131], [9, 132], [9, 133], [9, 135], [9, 139], [9, 140], [9, 143], [9, 149], [9, 153], [9, 164], [9, 166], [9, 173], [9, 174], [9, 177], [10, 11], [10, 16], [10, 20], [10, 22], [10, 35], [10, 42], [10, 45], [10, 46], [10, 49], [10, 50], [10, 51], [10, 60], [10, 63], [10, 76], [10, 87], [10, 88], [10, 90], [10, 92], [10, 96], [10, 99], [10, 101], [10, 103], [10, 105], [10, 109], [10, 110], [10, 113], [10, 115], [10, 124], [10, 129], [10, 130], [10, 133], [10, 134], [10, 136], [10, 138], [10, 142], [10, 144], [10, 147], [10, 157], [10, 161], [10, 163], [10, 167], [10, 174], [11, 12], [11, 17], [11, 19], [11, 21], [11, 23], [11, 26], [11, 48], [11, 49], [11, 54], [11, 61], [11, 64], [11, 66], [11, 70], [11, 74], [11, 75], [11, 77], [11, 94], [11, 95], [11, 102], [11, 122], [11, 127], [11, 130], [11, 132], [11, 137], [11, 154], [11, 158], [11, 160], [11, 168], [11, 171], [11, 175], [11, 177], [12, 14], [12, 15], [12, 20], [12, 22], [12, 26], [12, 38], [12, 45], [12, 49], [12, 51], [12, 72], [12, 74], [12, 76], [12, 84], [12, 95], [12, 103], [12, 104], [12, 108], [12, 120], [12, 129], [12, 132], [12, 135], [12, 137], [12, 141], [12, 146], [12, 155], [12, 159], [12, 161], [12, 165], [13, 16], [13, 19], [13, 20], [13, 29], [13, 31], [13, 39], [13, 40], [13, 50], [13, 53], [13, 62], [13, 63], [13, 65], [13, 66], [13, 68], [13, 71], [13, 78], [13, 80], [13, 81], [13, 83], [13, 91], [13, 93], [13, 98], [13, 102], [13, 104], [13, 105], [13, 108], [13, 111], [13, 115], [13, 117], [13, 119], [13, 121], [13, 122], [13, 123], [13, 131], [13, 134], [13, 141], [13, 152], [13, 157], [13, 159], [13, 163], [13, 171], [13, 176], [13, 177], [13, 178], [14, 16], [14, 24], [14, 29], [14, 34], [14, 43], [14, 48], [14, 50], [14, 51], [14, 56], [14, 57], [14, 58], [14, 59], [14, 61], [14, 63], [14, 66], [14, 73], [14, 78], [14, 80], [14, 85], [14, 88], [14, 92], [14, 93], [14, 97], [14, 102], [14, 103], [14, 108], [14, 109], [14, 118], [14, 122], [14, 123], [14, 125], [14, 135], [14, 142], [14, 144], [14, 145], [14, 147], [14, 153], [14, 159], [14, 161], [14, 172], [14, 175], [14, 176], [15, 18], [15, 20], [15, 23], [15, 31], [15, 49], [15, 52], [15, 53], [15, 59], [15, 67], [15, 72], [15, 75], [15, 76], [15, 80], [15, 82], [15, 83], [15, 86], [15, 103], [15, 107], [15, 126], [15, 127], [15, 129], [15, 133], [15, 134], [15, 151], [15, 155], [15, 165], [15, 169], [16, 19], [16, 32], [16, 33], [16, 35], [16, 40], [16, 43], [16, 52], [16, 59], [16, 61], [16, 70], [16, 75], [16, 77], [16, 89], [16, 90], [16, 103], [16, 107], [16, 111], [16, 112], [16, 113], [16, 114], [16, 116], [16, 119], [16, 120], [16, 125], [16, 135], [16, 144], [16, 145], [16, 148], [16, 153], [16, 156], [16, 165], [16, 172], [16, 178], [17, 18], [17, 19], [17, 24], [17, 26], [17, 27], [17, 28], [17, 30], [17, 31], [17, 32], [17, 47], [17, 52], [17, 65], [17, 73], [17, 74], [17, 75], [17, 80], [17, 82], [17, 85], [17, 94], [17, 95], [17, 106], [17, 108], [17, 111], [17, 121], [17, 125], [17, 132], [17, 137], [17, 141], [17, 148], [17, 154], [17, 161], [17, 164], [17, 167], [17, 171], [17, 177], [18, 23], [18, 32], [18, 34], [18, 47], [18, 49], [18, 59], [18, 62], [18, 63], [18, 73], [18, 81], [18, 83], [18, 101], [18, 108], [18, 111], [18, 119], [18, 125], [18, 133], [18, 135], [18, 136], [18, 144], [18, 149], [18, 152], [18, 153], [18, 163], [18, 164], [18, 168], [18, 169], [18, 173], [18, 176], [18, 178], [19, 24], [19, 26], [19, 29], [19, 31], [19, 33], [19, 39], [19, 45], [19, 48], [19, 54], [19, 56], [19, 59], [19, 61], [19, 69], [19, 71], [19, 72], [19, 73], [19, 76], [19, 77], [19, 85], [19, 86], [19, 87], [19, 101], [19, 107], [19, 116], [19, 118], [19, 119], [19, 121], [19, 126], [19, 127], [19, 128], [19, 133], [19, 139], [19, 140], [19, 142], [19, 143], [19, 146], [19, 147], [19, 148], [19, 155], [19, 159], [19, 163], [19, 174], [20, 22], [20, 23], [20, 26], [20, 32], [20, 36], [20, 38], [20, 47], [20, 52], [20, 59], [20, 64], [20, 79], [20, 81], [20, 82], [20, 84], [20, 87], [20, 89], [20, 98], [20, 100], [20, 104], [20, 106], [20, 110], [20, 116], [20, 118], [20, 120], [20, 123], [20, 125], [20, 127], [20, 128], [20, 129], [20, 132], [20, 136], [20, 137], [20, 141], [20, 144], [20, 147], [20, 152], [20, 154], [20, 157], [20, 163], [20, 166], [20, 168], [20, 170], [20, 175], [20, 177], [21, 24], [21, 28], [21, 30], [21, 36], [21, 37], [21, 42], [21, 53], [21, 57], [21, 58], [21, 60], [21, 65], [21, 67], [21, 70], [21, 71], [21, 77], [21, 79], [21, 85], [21, 101], [21, 109], [21, 113], [21, 122], [21, 124], [21, 129], [21, 133], [21, 136], [21, 139], [21, 143], [21, 154], [21, 163], [21, 167], [21, 170], [21, 173], [21, 175], [22, 30], [22, 31], [22, 40], [22, 50], [22, 51], [22, 60], [22, 63], [22, 67], [22, 69], [22, 72], [22, 74], [22, 77], [22, 83], [22, 84], [22, 87], [22, 91], [22, 96], [22, 100], [22, 106], [22, 111], [22, 112], [22, 113], [22, 118], [22, 125], [22, 139], [22, 141], [22, 152], [22, 162], [22, 165], [22, 167], [22, 175], [23, 26], [23, 29], [23, 32], [23, 35], [23, 36], [23, 37], [23, 42], [23, 54], [23, 56], [23, 58], [23, 70], [23, 83], [23, 94], [23, 96], [23, 104], [23, 112], [23, 116], [23, 118], [23, 119], [23, 121], [23, 122], [23, 124], [23, 125], [23, 127], [23, 135], [23, 136], [23, 144], [23, 145], [23, 150], [23, 152], [23, 155], [23, 157], [23, 164], [23, 165], [24, 42], [24, 49], [24, 54], [24, 56], [24, 57], [24, 58], [24, 64], [24, 74], [24, 76], [24, 78], [24, 79], [24, 80], [24, 85], [24, 86], [24, 88], [24, 92], [24, 95], [24, 114], [24, 125], [24, 128], [24, 130], [24, 139], [24, 144], [24, 147], [24, 149], [24, 151], [24, 153], [24, 158], [24, 159], [24, 168], [25, 26], [25, 28], [25, 32], [25, 43], [25, 50], [25, 73], [25, 75], [25, 84], [25, 87], [25, 97], [25, 99], [25, 100], [25, 101], [25, 108], [25, 113], [25, 127], [25, 147], [25, 161], [25, 168], [25, 170], [25, 178], [26, 28], [26, 29], [26, 31], [26, 54], [26, 60], [26, 62], [26, 64], [26, 67], [26, 69], [26, 85], [26, 86], [26, 94], [26, 96], [26, 102], [26, 105], [26, 108], [26, 111], [26, 117], [26, 120], [26, 127], [26, 136], [26, 145], [26, 146], [26, 153], [26, 156], [26, 161], [26, 169], [26, 170], [26, 175], [27, 32], [27, 41], [27, 48], [27, 52], [27, 55], [27, 56], [27, 57], [27, 62], [27, 66], [27, 68], [27, 71], [27, 75], [27, 83], [27, 87], [27, 90], [27, 91], [27, 99], [27, 101], [27, 102], [27, 103], [27, 106], [27, 113], [27, 115], [27, 121], [27, 124], [27, 131], [27, 138], [27, 147], [27, 154], [27, 160], [27, 163], [27, 169], [27, 179], [28, 31], [28, 35], [28, 50], [28, 51], [28, 52], [28, 59], [28, 62], [28, 69], [28, 72], [28, 74], [28, 75], [28, 82], [28, 84], [28, 85], [28, 90], [28, 95], [28, 97], [28, 101], [28, 104], [28, 109], [28, 119], [28, 122], [28, 124], [28, 135], [28, 145], [28, 156], [28, 161], [28, 162], [28, 174], [29, 40], [29, 45], [29, 48], [29, 56], [29, 62], [29, 64], [29, 68], [29, 69], [29, 70], [29, 76], [29, 79], [29, 83], [29, 84], [29, 87], [29, 92], [29, 102], [29, 105], [29, 110], [29, 114], [29, 115], [29, 120], [29, 124], [29, 126], [29, 128], [29, 138], [29, 149], [29, 153], [29, 154], [29, 158], [29, 160], [29, 167], [29, 168], [30, 31], [30, 36], [30, 37], [30, 38], [30, 43], [30, 45], [30, 48], [30, 52], [30, 56], [30, 62], [30, 63], [30, 71], [30, 75], [30, 79], [30, 84], [30, 96], [30, 108], [30, 115], [30, 117], [30, 119], [30, 128], [30, 144], [30, 145], [30, 146], [30, 153], [30, 158], [30, 163], [30, 168], [30, 176], [31, 38], [31, 39], [31, 40], [31, 46], [31, 63], [31, 79], [31, 85], [31, 89], [31, 92], [31, 93], [31, 97], [31, 99], [31, 102], [31, 103], [31, 109], [31, 111], [31, 116], [31, 119], [31, 126], [31, 128], [31, 132], [31, 133], [31, 136], [31, 148], [31, 149], [31, 150], [31, 160], [31, 164], [31, 165], [31, 168], [31, 174], [32, 33], [32, 35], [32, 40], [32, 42], [32, 43], [32, 44], [32, 49], [32, 56], [32, 62], [32, 69], [32, 72], [32, 77], [32, 84], [32, 92], [32, 95], [32, 106], [32, 108], [32, 112], [32, 120], [32, 124], [32, 127], [32, 131], [32, 144], [32, 146], [32, 148], [32, 151], [32, 152], [32, 155], [32, 159], [33, 34], [33, 40], [33, 41], [33, 42], [33, 43], [33, 44], [33, 46], [33, 50], [33, 51], [33, 55], [33, 57], [33, 60], [33, 62], [33, 69], [33, 70], [33, 73], [33, 74], [33, 86], [33, 87], [33, 97], [33, 101], [33, 102], [33, 104], [33, 105], [33, 108], [33, 117], [33, 120], [33, 124], [33, 132], [33, 135], [33, 139], [33, 151], [33, 156], [33, 158], [33, 164], [33, 178], [34, 37], [34, 51], [34, 57], [34, 62], [34, 68], [34, 74], [34, 78], [34, 81], [34, 82], [34, 83], [34, 85], [34, 107], [34, 109], [34, 116], [34, 118], [34, 126], [34, 127], [34, 131], [34, 134], [34, 149], [34, 160], [34, 163], [34, 171], [34, 172], [34, 177], [35, 37], [35, 38], [35, 42], [35, 43], [35, 46], [35, 54], [35, 61], [35, 65], [35, 68], [35, 71], [35, 76], [35, 81], [35, 88], [35, 91], [35, 95], [35, 97], [35, 99], [35, 100], [35, 106], [35, 111], [35, 118], [35, 125], [35, 129], [35, 137], [35, 150], [35, 156], [35, 157], [35, 162], [35, 163], [35, 164], [35, 166], [35, 172], [35, 179], [36, 38], [36, 43], [36, 44], [36, 45], [36, 47], [36, 50], [36, 52], [36, 56], [36, 60], [36, 61], [36, 65], [36, 66], [36, 77], [36, 84], [36, 93], [36, 95], [36, 97], [36, 110], [36, 113], [36, 115], [36, 120], [36, 122], [36, 123], [36, 125], [36, 126], [36, 129], [36, 133], [36, 136], [36, 143], [36, 148], [36, 153], [36, 160], [36, 161], [36, 164], [36, 169], [36, 178], [37, 40], [37, 45], [37, 50], [37, 52], [37, 61], [37, 75], [37, 86], [37, 87], [37, 88], [37, 89], [37, 94], [37, 95], [37, 100], [37, 104], [37, 112], [37, 113], [37, 114], [37, 129], [37, 136], [37, 151], [37, 154], [37, 168], [37, 169], [37, 171], [38, 44], [38, 48], [38, 50], [38, 52], [38, 54], [38, 55], [38, 62], [38, 63], [38, 71], [38, 76], [38, 78], [38, 89], [38, 94], [38, 98], [38, 99], [38, 106], [38, 114], [38, 126], [38, 132], [38, 141], [38, 143], [38, 147], [38, 158], [38, 162], [38, 167], [39, 48], [39, 68], [39, 72], [39, 73], [39, 76], [39, 79], [39, 80], [39, 87], [39, 89], [39, 91], [39, 92], [39, 93], [39, 102], [39, 110], [39, 116], [39, 117], [39, 120], [39, 122], [39, 126], [39, 128], [39, 136], [39, 143], [39, 145], [39, 147], [39, 153], [39, 155], [39, 177], [39, 179], [40, 48], [40, 54], [40, 68], [40, 69], [40, 71], [40, 72], [40, 77], [40, 80], [40, 81], [40, 92], [40, 99], [40, 101], [40, 106], [40, 109], [40, 120], [40, 125], [40, 128], [40, 132], [40, 133], [40, 134], [40, 141], [40, 144], [40, 145], [40, 154], [40, 157], [40, 165], [40, 175], [41, 56], [41, 59], [41, 62], [41, 63], [41, 72], [41, 79], [41, 81], [41, 84], [41, 90], [41, 94], [41, 99], [41, 105], [41, 118], [41, 120], [41, 138], [41, 147], [41, 151], [41, 157], [41, 162], [41, 165], [41, 167], [41, 169], [42, 47], [42, 48], [42, 49], [42, 50], [42, 79], [42, 89], [42, 90], [42, 92], [42, 98], [42, 101], [42, 106], [42, 109], [42, 112], [42, 113], [42, 121], [42, 126], [42, 127], [42, 128], [42, 129], [42, 132], [42, 133], [42, 134], [42, 135], [42, 138], [42, 146], [42, 153], [42, 156], [42, 159], [42, 169], [42, 172], [42, 174], [42, 175], [43, 45], [43, 47], [43, 48], [43, 53], [43, 58], [43, 63], [43, 68], [43, 69], [43, 74], [43, 75], [43, 77], [43, 81], [43, 85], [43, 87], [43, 96], [43, 97], [43, 105], [43, 106], [43, 107], [43, 121], [43, 124], [43, 128], [43, 130], [43, 135], [43, 136], [43, 141], [43, 145], [43, 152], [43, 157], [43, 166], [43, 167], [43, 170], [43, 174], [43, 176], [44, 47], [44, 48], [44, 54], [44, 62], [44, 63], [44, 72], [44, 74], [44, 80], [44, 81], [44, 87], [44, 96], [44, 98], [44, 101], [44, 104], [44, 108], [44, 112], [44, 114], [44, 122], [44, 128], [44, 134], [44, 138], [44, 148], [44, 155], [44, 161], [44, 163], [44, 174], [44, 177], [44, 178], [45, 48], [45, 51], [45, 53], [45, 66], [45, 81], [45, 84], [45, 86], [45, 93], [45, 103], [45, 104], [45, 111], [45, 116], [45, 117], [45, 120], [45, 128], [45, 142], [45, 146], [45, 150], [45, 152], [45, 154], [45, 158], [45, 163], [45, 172], [45, 173], [45, 174], [45, 178], [46, 57], [46, 62], [46, 66], [46, 68], [46, 72], [46, 74], [46, 81], [46, 83], [46, 85], [46, 88], [46, 92], [46, 100], [46, 101], [46, 110], [46, 113], [46, 114], [46, 117], [46, 121], [46, 126], [46, 141], [46, 144], [46, 147], [46, 162], [46, 164], [46, 168], [46, 169], [46, 171], [46, 174], [47, 56], [47, 61], [47, 64], [47, 65], [47, 71], [47, 77], [47, 81], [47, 85], [47, 88], [47, 91], [47, 94], [47, 96], [47, 100], [47, 117], [47, 121], [47, 141], [47, 147], [47, 152], [47, 157], [47, 166], [47, 167], [47, 168], [48, 52], [48, 55], [48, 58], [48, 59], [48, 64], [48, 68], [48, 69], [48, 79], [48, 80], [48, 85], [48, 92], [48, 96], [48, 104], [48, 108], [48, 115], [48, 119], [48, 120], [48, 130], [48, 132], [48, 139], [48, 140], [48, 144], [48, 145], [48, 148], [48, 160], [48, 162], [48, 163], [48, 170], [48, 174], [48, 176], [49, 50], [49, 60], [49, 61], [49, 62], [49, 64], [49, 65], [49, 81], [49, 86], [49, 89], [49, 93], [49, 96], [49, 99], [49, 105], [49, 109], [49, 111], [49, 124], [49, 127], [49, 130], [49, 134], [49, 135], [49, 136], [49, 141], [49, 145], [49, 151], [49, 166], [49, 173], [49, 178], [50, 56], [50, 57], [50, 60], [50, 64], [50, 70], [50, 73], [50, 74], [50, 78], [50, 79], [50, 80], [50, 81], [50, 84], [50, 88], [50, 89], [50, 94], [50, 100], [50, 102], [50, 105], [50, 113], [50, 117], [50, 119], [50, 125], [50, 128], [50, 130], [50, 139], [50, 145], [50, 148], [50, 152], [50, 153], [50, 154], [50, 155], [50, 156], [50, 158], [50, 161], [50, 165], [50, 166], [50, 167], [50, 169], [50, 173], [50, 179], [51, 54], [51, 57], [51, 58], [51, 60], [51, 61], [51, 72], [51, 74], [51, 83], [51, 87], [51, 106], [51, 109], [51, 110], [51, 114], [51, 121], [51, 126], [51, 127], [51, 128], [51, 130], [51, 136], [51, 140], [51, 142], [51, 144], [51, 152], [51, 154], [51, 168], [51, 169], [51, 178], [51, 179], [52, 57], [52, 61], [52, 78], [52, 79], [52, 83], [52, 90], [52, 91], [52, 100], [52, 104], [52, 106], [52, 108], [52, 112], [52, 123], [52, 125], [52, 128], [52, 131], [52, 136], [52, 151], [52, 155], [52, 158], [52, 159], [52, 160], [52, 164], [52, 171], [52, 174], [52, 175], [52, 176], [52, 179], [53, 55], [53, 67], [53, 71], [53, 74], [53, 83], [53, 95], [53, 105], [53, 113], [53, 117], [53, 124], [53, 132], [53, 133], [53, 135], [53, 136], [53, 137], [53, 142], [53, 145], [53, 146], [53, 150], [53, 151], [53, 159], [53, 162], [53, 173], [53, 174], [53, 177], [54, 62], [54, 64], [54, 65], [54, 70], [54, 71], [54, 78], [54, 79], [54, 80], [54, 81], [54, 82], [54, 90], [54, 91], [54, 112], [54, 113], [54, 116], [54, 120], [54, 124], [54, 125], [54, 130], [54, 138], [54, 139], [54, 142], [54, 143], [54, 150], [54, 151], [54, 152], [54, 161], [54, 164], [54, 167], [54, 169], [55, 58], [55, 61], [55, 69], [55, 70], [55, 81], [55, 90], [55, 97], [55, 99], [55, 111], [55, 118], [55, 119], [55, 121], [55, 123], [55, 126], [55, 133], [55, 140], [55, 141], [55, 143], [55, 151], [55, 154], [55, 158], [55, 169], [55, 173], [55, 177], [55, 178], [56, 62], [56, 68], [56, 71], [56, 73], [56, 75], [56, 80], [56, 92], [56, 93], [56, 100], [56, 102], [56, 110], [56, 117], [56, 120], [56, 121], [56, 132], [56, 138], [56, 141], [56, 145], [56, 147], [56, 159], [56, 167], [56, 177], [57, 60], [57, 63], [57, 71], [57, 72], [57, 82], [57, 89], [57, 95], [57, 97], [57, 100], [57, 102], [57, 118], [57, 122], [57, 131], [57, 135], [57, 140], [57, 155], [57, 160], [57, 170], [57, 171], [57, 174], [57, 177], [57, 179], [58, 61], [58, 62], [58, 63], [58, 74], [58, 76], [58, 78], [58, 85], [58, 94], [58, 99], [58, 103], [58, 105], [58, 112], [58, 114], [58, 119], [58, 120], [58, 122], [58, 123], [58, 125], [58, 130], [58, 132], [58, 136], [58, 139], [58, 143], [58, 145], [58, 152], [58, 155], [58, 164], [58, 176], [58, 177], [59, 61], [59, 64], [59, 67], [59, 73], [59, 75], [59, 76], [59, 93], [59, 97], [59, 98], [59, 105], [59, 107], [59, 110], [59, 114], [59, 126], [59, 131], [59, 137], [59, 143], [59, 146], [59, 154], [59, 159], [59, 168], [59, 177], [59, 178], [59, 179], [60, 65], [60, 71], [60, 76], [60, 78], [60, 91], [60, 92], [60, 95], [60, 100], [60, 113], [60, 117], [60, 123], [60, 124], [60, 128], [60, 129], [60, 130], [60, 131], [60, 138], [60, 142], [60, 143], [60, 145], [60, 154], [60, 158], [60, 161], [60, 164], [60, 165], [60, 166], [60, 168], [60, 169], [61, 63], [61, 64], [61, 73], [61, 86], [61, 88], [61, 89], [61, 95], [61, 98], [61, 113], [61, 116], [61, 120], [61, 121], [61, 127], [61, 130], [61, 146], [61, 162], [61, 170], [61, 171], [61, 172], [61, 174], [61, 177], [61, 178], [62, 68], [62, 71], [62, 74], [62, 75], [62, 78], [62, 83], [62, 84], [62, 87], [62, 102], [62, 103], [62, 104], [62, 108], [62, 109], [62, 117], [62, 126], [62, 143], [62, 144], [62, 146], [62, 150], [62, 151], [62, 154], [62, 156], [62, 158], [62, 164], [62, 165], [62, 166], [62, 167], [62, 173], [62, 175], [62, 177], [62, 178], [63, 71], [63, 78], [63, 81], [63, 82], [63, 83], [63, 85], [63, 89], [63, 90], [63, 92], [63, 93], [63, 100], [63, 105], [63, 110], [63, 111], [63, 112], [63, 118], [63, 119], [63, 124], [63, 138], [63, 141], [63, 145], [63, 152], [63, 157], [63, 161], [63, 165], [63, 172], [63, 175], [63, 176], [63, 177], [63, 178], [64, 65], [64, 67], [64, 69], [64, 70], [64, 73], [64, 77], [64, 80], [64, 84], [64, 86], [64, 88], [64, 92], [64, 102], [64, 105], [64, 118], [64, 129], [64, 132], [64, 136], [64, 138], [64, 141], [64, 143], [64, 144], [64, 145], [64, 146], [64, 149], [64, 155], [64, 157], [64, 161], [64, 175], [64, 176], [64, 177], [65, 66], [65, 67], [65, 69], [65, 78], [65, 82], [65, 89], [65, 90], [65, 91], [65, 95], [65, 97], [65, 103], [65, 105], [65, 107], [65, 110], [65, 111], [65, 115], [65, 118], [65, 122], [65, 132], [65, 135], [65, 137], [65, 139], [65, 144], [65, 159], [65, 161], [65, 162], [65, 164], [65, 168], [65, 171], [66, 67], [66, 69], [66, 73], [66, 74], [66, 81], [66, 87], [66, 93], [66, 95], [66, 101], [66, 102], [66, 122], [66, 123], [66, 127], [66, 130], [66, 135], [66, 138], [66, 147], [66, 154], [66, 159], [66, 179], [67, 75], [67, 77], [67, 79], [67, 91], [67, 92], [67, 94], [67, 95], [67, 98], [67, 99], [67, 105], [67, 106], [67, 110], [67, 115], [67, 118], [67, 129], [67, 146], [67, 164], [67, 166], [67, 168], [68, 71], [68, 73], [68, 74], [68, 75], [68, 81], [68, 99], [68, 102], [68, 107], [68, 108], [68, 111], [68, 116], [68, 124], [68, 128], [68, 130], [68, 135], [68, 136], [68, 144], [68, 146], [68, 147], [68, 151], [68, 156], [68, 160], [68, 163], [68, 164], [68, 167], [68, 170], [69, 70], [69, 71], [69, 80], [69, 82], [69, 85], [69, 94], [69, 98], [69, 102], [69, 116], [69, 117], [69, 141], [69, 150], [69, 152], [69, 156], [69, 159], [69, 160], [69, 162], [69, 165], [69, 167], [69, 176], [69, 179], [70, 74], [70, 77], [70, 84], [70, 87], [70, 101], [70, 108], [70, 116], [70, 117], [70, 118], [70, 120], [70, 123], [70, 126], [70, 128], [70, 130], [70, 134], [70, 143], [70, 154], [70, 155], [70, 164], [70, 169], [70, 175], [70, 179], [71, 72], [71, 73], [71, 79], [71, 82], [71, 83], [71, 85], [71, 96], [71, 101], [71, 111], [71, 114], [71, 115], [71, 116], [71, 119], [71, 123], [71, 124], [71, 125], [71, 131], [71, 138], [71, 144], [71, 150], [71, 176], [72, 76], [72, 78], [72, 84], [72, 86], [72, 87], [72, 91], [72, 92], [72, 97], [72, 99], [72, 101], [72, 105], [72, 110], [72, 119], [72, 127], [72, 135], [72, 145], [72, 147], [72, 157], [72, 164], [72, 167], [72, 170], [73, 89], [73, 95], [73, 98], [73, 101], [73, 102], [73, 108], [73, 113], [73, 115], [73, 118], [73, 123], [73, 126], [73, 128], [73, 140], [73, 147], [73, 151], [73, 153], [73, 179], [74, 76], [74, 78], [74, 86], [74, 87], [74, 88], [74, 89], [74, 104], [74, 119], [74, 122], [74, 125], [74, 132], [74, 139], [74, 143], [74, 147], [74, 178], [75, 77], [75, 84], [75, 85], [75, 86], [75, 87], [75, 92], [75, 99], [75, 103], [75, 105], [75, 110], [75, 121], [75, 140], [75, 141], [75, 145], [75, 146], [75, 149], [75, 152], [75, 155], [75, 161], [75, 166], [75, 167], [75, 169], [75, 175], [75, 178], [75, 179], [76, 77], [76, 81], [76, 87], [76, 96], [76, 102], [76, 108], [76, 113], [76, 115], [76, 116], [76, 129], [76, 138], [76, 139], [76, 148], [76, 149], [76, 160], [76, 165], [76, 167], [76, 169], [76, 172], [76, 179], [77, 85], [77, 88], [77, 90], [77, 96], [77, 101], [77, 106], [77, 107], [77, 110], [77, 114], [77, 124], [77, 126], [77, 130], [77, 131], [77, 133], [77, 138], [77, 147], [77, 150], [77, 152], [77, 163], [77, 164], [77, 175], [78, 82], [78, 87], [78, 89], [78, 97], [78, 107], [78, 115], [78, 117], [78, 122], [78, 128], [78, 130], [78, 145], [78, 150], [78, 155], [78, 162], [78, 163], [78, 174], [79, 80], [79, 99], [79, 102], [79, 104], [79, 110], [79, 115], [79, 121], [79, 126], [79, 128], [79, 129], [79, 136], [79, 144], [79, 150], [79, 155], [79, 159], [79, 161], [79, 164], [79, 167], [79, 168], [79, 169], [79, 173], [79, 176], [79, 179], [80, 94], [80, 97], [80, 100], [80, 112], [80, 114], [80, 118], [80, 121], [80, 129], [80, 134], [80, 137], [80, 140], [80, 141], [80, 144], [80, 150], [80, 151], [80, 152], [80, 160], [80, 172], [80, 176], [81, 82], [81, 87], [81, 88], [81, 92], [81, 96], [81, 101], [81, 103], [81, 107], [81, 109], [81, 114], [81, 117], [81, 118], [81, 120], [81, 125], [81, 126], [81, 127], [81, 130], [81, 131], [81, 134], [81, 139], [81, 147], [81, 152], [81, 153], [81, 154], [81, 156], [81, 158], [81, 166], [81, 167], [81, 170], [82, 89], [82, 94], [82, 106], [82, 108], [82, 111], [82, 112], [82, 119], [82, 123], [82, 124], [82, 141], [82, 143], [82, 148], [82, 150], [82, 152], [82, 176], [83, 87], [83, 91], [83, 92], [83, 97], [83, 104], [83, 108], [83, 114], [83, 118], [83, 135], [83, 137], [83, 145], [83, 146], [83, 154], [83, 158], [83, 162], [83, 164], [83, 170], [83, 178], [83, 179], [84, 88], [84, 93], [84, 94], [84, 96], [84, 98], [84, 119], [84, 120], [84, 123], [84, 129], [84, 130], [84, 133], [84, 136], [84, 138], [84, 141], [84, 142], [84, 143], [84, 144], [84, 145], [84, 148], [84, 155], [84, 158], [84, 159], [84, 167], [84, 169], [84, 170], [84, 172], [84, 173], [84, 175], [84, 178], [85, 95], [85, 96], [85, 100], [85, 101], [85, 103], [85, 112], [85, 117], [85, 119], [85, 126], [85, 130], [85, 131], [85, 133], [85, 134], [85, 137], [85, 142], [85, 144], [85, 148], [85, 154], [85, 158], [85, 163], [85, 164], [85, 169], [85, 171], [85, 173], [85, 174], [86, 87], [86, 90], [86, 96], [86, 110], [86, 112], [86, 115], [86, 119], [86, 120], [86, 124], [86, 133], [86, 134], [86, 136], [86, 138], [86, 140], [86, 142], [86, 143], [86, 146], [86, 159], [86, 163], [86, 164], [86, 165], [86, 171], [86, 174], [86, 176], [86, 177], [86, 178], [87, 92], [87, 97], [87, 98], [87, 100], [87, 103], [87, 104], [87, 106], [87, 107], [87, 112], [87, 113], [87, 122], [87, 124], [87, 130], [87, 132], [87, 135], [87, 142], [87, 145], [87, 159], [87, 162], [87, 164], [87, 168], [87, 175], [88, 104], [88, 109], [88, 113], [88, 132], [88, 140], [88, 143], [88, 144], [88, 147], [88, 155], [88, 158], [88, 166], [89, 93], [89, 95], [89, 99], [89, 105], [89, 107], [89, 112], [89, 124], [89, 125], [89, 136], [89, 137], [89, 140], [89, 142], [89, 146], [89, 149], [89, 150], [89, 152], [89, 162], [89, 163], [89, 166], [89, 169], [89, 172], [89, 175], [90, 95], [90, 98], [90, 99], [90, 101], [90, 102], [90, 107], [90, 113], [90, 115], [90, 116], [90, 120], [90, 121], [90, 122], [90, 129], [90, 137], [90, 145], [90, 146], [90, 159], [90, 165], [90, 167], [90, 171], [90, 174], [90, 178], [91, 98], [91, 99], [91, 104], [91, 115], [91, 120], [91, 125], [91, 126], [91, 136], [91, 144], [91, 150], [91, 154], [91, 156], [91, 157], [91, 159], [91, 164], [91, 179], [92, 105], [92, 115], [92, 120], [92, 124], [92, 127], [92, 135], [92, 142], [92, 145], [92, 150], [92, 161], [92, 164], [92, 168], [92, 175], [93, 95], [93, 99], [93, 107], [93, 114], [93, 121], [93, 127], [93, 133], [93, 134], [93, 143], [93, 147], [93, 149], [93, 153], [93, 155], [93, 160], [93, 164], [93, 166], [93, 173], [93, 177], [93, 179], [94, 95], [94, 97], [94, 98], [94, 102], [94, 106], [94, 113], [94, 120], [94, 123], [94, 125], [94, 133], [94, 141], [94, 144], [94, 145], [94, 147], [94, 155], [94, 156], [94, 157], [94, 160], [94, 161], [94, 167], [95, 96], [95, 107], [95, 108], [95, 111], [95, 112], [95, 116], [95, 126], [95, 127], [95, 134], [95, 144], [95, 147], [95, 157], [95, 158], [95, 162], [95, 172], [95, 176], [96, 112], [96, 121], [96, 126], [96, 127], [96, 131], [96, 133], [96, 137], [96, 140], [96, 156], [96, 159], [96, 167], [96, 168], [96, 172], [96, 176], [97, 99], [97, 105], [97, 106], [97, 109], [97, 114], [97, 117], [97, 118], [97, 120], [97, 124], [97, 126], [97, 135], [97, 138], [97, 141], [97, 145], [97, 151], [97, 159], [97, 161], [97, 165], [97, 168], [97, 170], [97, 175], [98, 99], [98, 107], [98, 108], [98, 109], [98, 110], [98, 112], [98, 115], [98, 123], [98, 125], [98, 127], [98, 128], [98, 138], [98, 145], [98, 148], [98, 150], [98, 157], [98, 159], [98, 168], [98, 172], [98, 174], [98, 176], [99, 114], [99, 122], [99, 123], [99, 129], [99, 132], [99, 136], [99, 139], [99, 144], [99, 146], [99, 148], [99, 149], [99, 151], [99, 153], [99, 156], [99, 163], [99, 169], [99, 171], [99, 179], [100, 106], [100, 113], [100, 115], [100, 123], [100, 125], [100, 132], [100, 134], [100, 139], [100, 143], [100, 146], [100, 157], [100, 162], [100, 165], [100, 173], [100, 175], [101, 103], [101, 105], [101, 110], [101, 116], [101, 120], [101, 121], [101, 125], [101, 126], [101, 132], [101, 135], [101, 150], [101, 160], [101, 164], [101, 168], [101, 170], [101, 173], [101, 179], [102, 109], [102, 111], [102, 112], [102, 119], [102, 125], [102, 130], [102, 138], [102, 140], [102, 146], [102, 150], [102, 159], [102, 163], [102, 164], [102, 166], [102, 167], [102, 170], [103, 108], [103, 134], [103, 141], [103, 142], [103, 143], [103, 151], [103, 155], [103, 156], [103, 163], [103, 166], [103, 171], [103, 174], [103, 178], [104, 108], [104, 111], [104, 116], [104, 118], [104, 121], [104, 122], [104, 125], [104, 136], [104, 137], [104, 138], [104, 140], [104, 141], [104, 148], [104, 149], [104, 151], [104, 152], [104, 154], [104, 156], [104, 159], [104, 160], [104, 162], [104, 163], [104, 169], [104, 171], [105, 108], [105, 110], [105, 118], [105, 120], [105, 124], [105, 126], [105, 133], [105, 144], [105, 148], [105, 159], [105, 165], [105, 171], [105, 173], [106, 108], [106, 111], [106, 113], [106, 114], [106, 119], [106, 123], [106, 126], [106, 142], [106, 146], [106, 147], [106, 149], [106, 151], [106, 166], [106, 167], [106, 168], [106, 169], [106, 170], [106, 173], [106, 177], [107, 108], [107, 124], [107, 127], [107, 133], [107, 135], [107, 140], [107, 149], [107, 158], [107, 159], [107, 163], [107, 165], [107, 174], [108, 109], [108, 112], [108, 133], [108, 139], [108, 151], [108, 153], [108, 159], [108, 164], [108, 168], [108, 169], [108, 178], [109, 112], [109, 114], [109, 123], [109, 130], [109, 132], [109, 142], [109, 154], [109, 157], [109, 160], [109, 162], [109, 166], [109, 170], [109, 172], [109, 176], [109, 179], [110, 114], [110, 116], [110, 123], [110, 128], [110, 129], [110, 135], [110, 136], [110, 138], [110, 144], [110, 147], [110, 156], [110, 161], [111, 114], [111, 116], [111, 119], [111, 122], [111, 128], [111, 134], [111, 136], [111, 139], [111, 141], [111, 153], [111, 157], [111, 159], [111, 165], [111, 173], [111, 175], [112, 116], [112, 122], [112, 129], [112, 133], [112, 137], [112, 142], [112, 148], [112, 152], [112, 169], [112, 172], [112, 173], [112, 178], [112, 179], [113, 115], [113, 141], [113, 149], [113, 153], [113, 156], [113, 160], [113, 161], [113, 165], [114, 115], [114, 120], [114, 121], [114, 122], [114, 130], [114, 136], [114, 152], [114, 153], [114, 154], [114, 156], [114, 158], [114, 170], [114, 174], [114, 176], [115, 116], [115, 121], [115, 124], [115, 127], [115, 128], [115, 134], [115, 137], [115, 139], [115, 140], [115, 141], [115, 146], [115, 147], [115, 150], [115, 154], [115, 157], [115, 160], [115, 164], [115, 167], [115, 169], [116, 126], [116, 141], [116, 146], [116, 148], [116, 164], [116, 167], [116, 168], [116, 172], [116, 178], [116, 179], [117, 120], [117, 121], [117, 123], [117, 141], [117, 145], [117, 147], [117, 151], [117, 153], [117, 156], [117, 162], [117, 167], [117, 168], [117, 173], [117, 178], [118, 125], [118, 134], [118, 137], [118, 142], [118, 143], [118, 147], [118, 149], [118, 154], [118, 165], [118, 169], [118, 176], [118, 178], [119, 125], [119, 134], [119, 139], [119, 140], [119, 154], [119, 157], [119, 162], [119, 179], [120, 122], [120, 133], [120, 137], [120, 138], [120, 140], [120, 143], [120, 144], [120, 146], [120, 149], [120, 151], [120, 171], [120, 176], [120, 178], [121, 123], [121, 129], [121, 132], [121, 156], [121, 160], [121, 167], [121, 168], [122, 141], [122, 144], [122, 145], [122, 147], [122, 153], [122, 159], [122, 160], [123, 125], [123, 131], [123, 133], [123, 135], [123, 137], [123, 138], [123, 140], [123, 148], [123, 150], [123, 153], [123, 161], [123, 175], [123, 176], [124, 126], [124, 134], [124, 137], [124, 146], [124, 149], [124, 156], [124, 164], [124, 176], [125, 126], [125, 127], [125, 133], [125, 134], [125, 138], [125, 139], [125, 141], [125, 160], [125, 161], [125, 171], [125, 173], [125, 179], [126, 134], [126, 135], [126, 138], [126, 146], [126, 147], [126, 148], [126, 149], [126, 150], [126, 152], [126, 158], [126, 162], [126, 165], [126, 168], [126, 172], [126, 176], [126, 177], [126, 179], [127, 135], [127, 139], [127, 140], [127, 146], [127, 149], [127, 158], [127, 159], [127, 165], [127, 170], [127, 171], [127, 176], [127, 178], [128, 129], [128, 153], [128, 155], [128, 156], [128, 161], [128, 164], [128, 166], [129, 132], [129, 133], [129, 135], [129, 137], [129, 142], [129, 156], [129, 160], [129, 168], [129, 170], [129, 174], [130, 132], [130, 134], [130, 140], [130, 141], [130, 146], [130, 148], [130, 157], [130, 158], [130, 170], [130, 171], [130, 172], [130, 174], [131, 136], [131, 146], [131, 147], [131, 155], [131, 156], [131, 162], [131, 163], [131, 166], [131, 169], [132, 137], [132, 141], [132, 143], [132, 152], [132, 153], [132, 157], [132, 164], [132, 167], [132, 171], [132, 176], [133, 137], [133, 143], [133, 144], [133, 163], [133, 165], [133, 170], [133, 173], [133, 176], [134, 152], [134, 155], [134, 156], [134, 160], [134, 163], [134, 165], [134, 166], [134, 171], [134, 172], [134, 173], [134, 174], [134, 178], [135, 141], [135, 146], [135, 149], [135, 151], [135, 154], [135, 159], [135, 167], [135, 173], [135, 174], [136, 137], [136, 144], [136, 147], [136, 155], [136, 159], [136, 163], [136, 172], [137, 139], [137, 145], [137, 155], [137, 156], [137, 157], [137, 161], [137, 162], [137, 167], [137, 171], [137, 178], [138, 140], [138, 145], [138, 147], [138, 148], [138, 154], [138, 161], [138, 162], [138, 166], [138, 167], [138, 168], [138, 172], [138, 175], [138, 177], [139, 147], [139, 148], [139, 151], [139, 156], [139, 158], [139, 160], [139, 162], [139, 165], [139, 172], [139, 173], [139, 174], [140, 147], [140, 148], [140, 150], [140, 158], [140, 161], [140, 162], [140, 166], [140, 170], [140, 172], [140, 174], [140, 175], [140, 177], [141, 162], [141, 167], [141, 169], [141, 172], [141, 177], [141, 179], [142, 148], [142, 152], [142, 154], [142, 159], [142, 170], [142, 172], [142, 174], [142, 176], [143, 146], [143, 147], [143, 150], [143, 154], [143, 158], [143, 160], [143, 174], [144, 149], [144, 154], [144, 167], [144, 168], [144, 177], [145, 147], [145, 152], [145, 154], [145, 156], [145, 164], [145, 177], [146, 148], [146, 150], [146, 151], [146, 157], [146, 159], [146, 161], [146, 163], [146, 176], [146, 177], [147, 149], [147, 158], [147, 161], [147, 166], [147, 175], [148, 152], [148, 159], [148, 167], [148, 177], [149, 155], [149, 157], [149, 158], [149, 163], [149, 166], [149, 167], [149, 177], [150, 151], [150, 152], [150, 158], [150, 167], [150, 169], [150, 174], [151, 154], [151, 158], [151, 172], [151, 174], [152, 155], [152, 160], [152, 161], [152, 165], [152, 167], [152, 178], [153, 154], [153, 156], [153, 157], [153, 162], [153, 165], [153, 168], [153, 172], [153, 173], [153, 174], [154, 160], [154, 179], [155, 164], [155, 166], [155, 172], [155, 173], [155, 174], [155, 175], [156, 157], [156, 162], [156, 167], [156, 179], [157, 163], [157, 168], [158, 159], [158, 167], [158, 168], [158, 170], [158, 171], [158, 177], [158, 178], [159, 168], [159, 173], [159, 174], [159, 178], [160, 167], [160, 171], [160, 174], [160, 178], [161, 170], [161, 172], [161, 173], [161, 174], [161, 177], [162, 165], [162, 169], [162, 170], [162, 176], [162, 177], [163, 171], [164, 168], [164, 170], [164, 176], [165, 167], [166, 175], [166, 176], [166, 178], [167, 173], [168, 169], [168, 171], [168, 172], [169, 173], [169, 178], [170, 171], [170, 172], [170, 173], [170, 179], [171, 175], [171, 177], [172, 179], [173, 176], [173, 177], [173, 178], [174, 177], [176, 177]], "family": "nppc_dominating_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-dominating-set-l5-s2/solution/solve.sh b/tasks/construct-nppc-dominating-set-l5-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..005024d715b1ad5fcc7db3852aec2ae664eeb5c9 --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l5-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"dominating_set": [20, 39, 50, 58, 61, 62, 63, 85, 104, 123, 133, 141, 146, 167, 168]} +RLMATH_EOF diff --git a/tasks/construct-nppc-dominating-set-l5-s2/tests/check.py b/tasks/construct-nppc-dominating-set-l5-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..0677a7bcbccb02297d022ffa4b5dd15da6371bff --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l5-s2/tests/check.py @@ -0,0 +1,23 @@ +"""Dominating set of size <= k. Accepts any valid dominating set.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + # upstream NPPC verifier has no type/range checks (out-of-range labels and floats are silently used) + d = int_list(ans.get("dominating_set"), None, 0, n - 1, "dominating_set") + if len(set(d)) != len(d): + raise Invalid("dominating_set contains duplicates") + if not d or len(d) > k: + raise Invalid(f"dominating_set must have 1..{k} vertices, got {len(d)}") + dom = set(d) + s = set(d) + for u, v in inst["edges"]: + if u in s: + dom.add(v) + if v in s: + dom.add(u) + if len(dom) != n: + miss = min(set(range(n)) - dom) + raise Invalid(f"vertex {miss} is not dominated") + return None, {"size": len(d)} diff --git a/tasks/construct-nppc-dominating-set-l5-s2/tests/instance.json b/tasks/construct-nppc-dominating-set-l5-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..989adda322a1ced21f3a70979b011bf6d9110c99 --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l5-s2/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 180, "k": 15, "edges": [[0, 1], [0, 5], [0, 11], [0, 13], [0, 18], [0, 21], [0, 29], [0, 30], [0, 35], [0, 37], [0, 49], [0, 60], [0, 62], [0, 66], [0, 69], [0, 70], [0, 71], [0, 73], [0, 76], [0, 84], [0, 89], [0, 100], [0, 103], [0, 126], [0, 133], [0, 134], [0, 143], [0, 147], [0, 155], [0, 168], [0, 173], [0, 174], [1, 9], [1, 16], [1, 22], [1, 34], [1, 40], [1, 45], [1, 48], [1, 52], [1, 56], [1, 57], [1, 58], [1, 59], [1, 60], [1, 63], [1, 66], [1, 67], [1, 70], [1, 72], [1, 73], [1, 74], [1, 77], [1, 80], [1, 88], [1, 97], [1, 101], [1, 104], [1, 109], [1, 117], [1, 120], [1, 122], [1, 124], [1, 125], [1, 126], [1, 136], [1, 142], [1, 150], [1, 151], [1, 157], [1, 160], [1, 161], [1, 163], [1, 167], [1, 168], [1, 169], [1, 177], [2, 4], [2, 8], [2, 26], [2, 34], [2, 35], [2, 38], [2, 42], [2, 45], [2, 50], [2, 56], [2, 62], [2, 67], [2, 69], [2, 83], [2, 84], [2, 96], [2, 98], [2, 99], [2, 105], [2, 110], [2, 120], [2, 122], [2, 131], [2, 136], [2, 139], [2, 146], [2, 148], [2, 149], [2, 153], [2, 160], [2, 167], [2, 170], [2, 172], [2, 173], [2, 175], [3, 8], [3, 9], [3, 11], [3, 18], [3, 19], [3, 26], [3, 29], [3, 33], [3, 39], [3, 44], [3, 46], [3, 55], [3, 62], [3, 63], [3, 75], [3, 77], [3, 79], [3, 83], [3, 88], [3, 89], [3, 117], [3, 118], [3, 122], [3, 124], [3, 131], [3, 132], [3, 135], [3, 136], [3, 140], [3, 149], [3, 151], [3, 152], [3, 154], [3, 157], [3, 159], [3, 161], [3, 165], [3, 166], [3, 167], [3, 171], [3, 174], [3, 175], [3, 178], [4, 11], [4, 20], [4, 22], [4, 25], [4, 30], [4, 37], [4, 39], [4, 44], [4, 53], [4, 56], [4, 60], [4, 68], [4, 73], [4, 74], [4, 75], [4, 76], [4, 77], [4, 80], [4, 98], [4, 104], [4, 108], [4, 118], [4, 132], [4, 155], [4, 156], [4, 157], [4, 159], [4, 168], [4, 178], [5, 8], [5, 13], [5, 14], [5, 25], [5, 27], [5, 37], [5, 39], [5, 42], [5, 48], [5, 55], [5, 60], [5, 67], [5, 73], [5, 78], [5, 88], [5, 93], [5, 104], [5, 105], [5, 108], [5, 110], [5, 115], [5, 116], [5, 125], [5, 127], [5, 135], [5, 141], [5, 142], [5, 143], [5, 147], [5, 149], [5, 158], [5, 160], [5, 161], [5, 178], [6, 8], [6, 11], [6, 14], [6, 15], [6, 16], [6, 18], [6, 23], [6, 25], [6, 26], [6, 28], [6, 42], [6, 48], [6, 51], [6, 58], [6, 61], [6, 72], [6, 77], [6, 78], [6, 79], [6, 80], [6, 87], [6, 90], [6, 102], [6, 105], [6, 109], [6, 114], [6, 115], [6, 117], [6, 118], [6, 123], [6, 126], [6, 131], [6, 141], [6, 144], [6, 148], [6, 159], [6, 160], [6, 167], [6, 169], [6, 171], [6, 177], [6, 178], [7, 13], [7, 16], [7, 20], [7, 22], [7, 23], [7, 33], [7, 36], [7, 38], [7, 39], [7, 40], [7, 44], [7, 47], [7, 52], [7, 56], [7, 64], [7, 75], [7, 86], [7, 92], [7, 93], [7, 95], [7, 104], [7, 106], [7, 112], [7, 113], [7, 121], [7, 122], [7, 124], [7, 128], [7, 133], [7, 136], [7, 141], [7, 148], [7, 150], [7, 155], [7, 160], [7, 165], [7, 168], [7, 173], [7, 177], [8, 10], [8, 13], [8, 20], [8, 21], [8, 26], [8, 33], [8, 35], [8, 40], [8, 44], [8, 50], [8, 53], [8, 57], [8, 63], [8, 64], [8, 69], [8, 74], [8, 75], [8, 92], [8, 93], [8, 94], [8, 96], [8, 118], [8, 119], [8, 126], [8, 128], [8, 130], [8, 137], [8, 143], [8, 146], [8, 150], [8, 154], [8, 155], [8, 162], [8, 164], [8, 166], [8, 179], [9, 10], [9, 15], [9, 17], [9, 18], [9, 21], [9, 29], [9, 32], [9, 38], [9, 47], [9, 53], [9, 57], [9, 63], [9, 72], [9, 76], [9, 78], [9, 79], [9, 88], [9, 94], [9, 95], [9, 101], [9, 104], [9, 109], [9, 112], [9, 120], [9, 124], [9, 125], [9, 126], [9, 131], [9, 132], [9, 133], [9, 135], [9, 139], [9, 140], [9, 143], [9, 149], [9, 153], [9, 164], [9, 166], [9, 173], [9, 174], [9, 177], [10, 11], [10, 16], [10, 20], [10, 22], [10, 35], [10, 42], [10, 45], [10, 46], [10, 49], [10, 50], [10, 51], [10, 60], [10, 63], [10, 76], [10, 87], [10, 88], [10, 90], [10, 92], [10, 96], [10, 99], [10, 101], [10, 103], [10, 105], [10, 109], [10, 110], [10, 113], [10, 115], [10, 124], [10, 129], [10, 130], [10, 133], [10, 134], [10, 136], [10, 138], [10, 142], [10, 144], [10, 147], [10, 157], [10, 161], [10, 163], [10, 167], [10, 174], [11, 12], [11, 17], [11, 19], [11, 21], [11, 23], [11, 26], [11, 48], [11, 49], [11, 54], [11, 61], [11, 64], [11, 66], [11, 70], [11, 74], [11, 75], [11, 77], [11, 94], [11, 95], [11, 102], [11, 122], [11, 127], [11, 130], [11, 132], [11, 137], [11, 154], [11, 158], [11, 160], [11, 168], [11, 171], [11, 175], [11, 177], [12, 14], [12, 15], [12, 20], [12, 22], [12, 26], [12, 38], [12, 45], [12, 49], [12, 51], [12, 72], [12, 74], [12, 76], [12, 84], [12, 95], [12, 103], [12, 104], [12, 108], [12, 120], [12, 129], [12, 132], [12, 135], [12, 137], [12, 141], [12, 146], [12, 155], [12, 159], [12, 161], [12, 165], [13, 16], [13, 19], [13, 20], [13, 29], [13, 31], [13, 39], [13, 40], [13, 50], [13, 53], [13, 62], [13, 63], [13, 65], [13, 66], [13, 68], [13, 71], [13, 78], [13, 80], [13, 81], [13, 83], [13, 91], [13, 93], [13, 98], [13, 102], [13, 104], [13, 105], [13, 108], [13, 111], [13, 115], [13, 117], [13, 119], [13, 121], [13, 122], [13, 123], [13, 131], [13, 134], [13, 141], [13, 152], [13, 157], [13, 159], [13, 163], [13, 171], [13, 176], [13, 177], [13, 178], [14, 16], [14, 24], [14, 29], [14, 34], [14, 43], [14, 48], [14, 50], [14, 51], [14, 56], [14, 57], [14, 58], [14, 59], [14, 61], [14, 63], [14, 66], [14, 73], [14, 78], [14, 80], [14, 85], [14, 88], [14, 92], [14, 93], [14, 97], [14, 102], [14, 103], [14, 108], [14, 109], [14, 118], [14, 122], [14, 123], [14, 125], [14, 135], [14, 142], [14, 144], [14, 145], [14, 147], [14, 153], [14, 159], [14, 161], [14, 172], [14, 175], [14, 176], [15, 18], [15, 20], [15, 23], [15, 31], [15, 49], [15, 52], [15, 53], [15, 59], [15, 67], [15, 72], [15, 75], [15, 76], [15, 80], [15, 82], [15, 83], [15, 86], [15, 103], [15, 107], [15, 126], [15, 127], [15, 129], [15, 133], [15, 134], [15, 151], [15, 155], [15, 165], [15, 169], [16, 19], [16, 32], [16, 33], [16, 35], [16, 40], [16, 43], [16, 52], [16, 59], [16, 61], [16, 70], [16, 75], [16, 77], [16, 89], [16, 90], [16, 103], [16, 107], [16, 111], [16, 112], [16, 113], [16, 114], [16, 116], [16, 119], [16, 120], [16, 125], [16, 135], [16, 144], [16, 145], [16, 148], [16, 153], [16, 156], [16, 165], [16, 172], [16, 178], [17, 18], [17, 19], [17, 24], [17, 26], [17, 27], [17, 28], [17, 30], [17, 31], [17, 32], [17, 47], [17, 52], [17, 65], [17, 73], [17, 74], [17, 75], [17, 80], [17, 82], [17, 85], [17, 94], [17, 95], [17, 106], [17, 108], [17, 111], [17, 121], [17, 125], [17, 132], [17, 137], [17, 141], [17, 148], [17, 154], [17, 161], [17, 164], [17, 167], [17, 171], [17, 177], [18, 23], [18, 32], [18, 34], [18, 47], [18, 49], [18, 59], [18, 62], [18, 63], [18, 73], [18, 81], [18, 83], [18, 101], [18, 108], [18, 111], [18, 119], [18, 125], [18, 133], [18, 135], [18, 136], [18, 144], [18, 149], [18, 152], [18, 153], [18, 163], [18, 164], [18, 168], [18, 169], [18, 173], [18, 176], [18, 178], [19, 24], [19, 26], [19, 29], [19, 31], [19, 33], [19, 39], [19, 45], [19, 48], [19, 54], [19, 56], [19, 59], [19, 61], [19, 69], [19, 71], [19, 72], [19, 73], [19, 76], [19, 77], [19, 85], [19, 86], [19, 87], [19, 101], [19, 107], [19, 116], [19, 118], [19, 119], [19, 121], [19, 126], [19, 127], [19, 128], [19, 133], [19, 139], [19, 140], [19, 142], [19, 143], [19, 146], [19, 147], [19, 148], [19, 155], [19, 159], [19, 163], [19, 174], [20, 22], [20, 23], [20, 26], [20, 32], [20, 36], [20, 38], [20, 47], [20, 52], [20, 59], [20, 64], [20, 79], [20, 81], [20, 82], [20, 84], [20, 87], [20, 89], [20, 98], [20, 100], [20, 104], [20, 106], [20, 110], [20, 116], [20, 118], [20, 120], [20, 123], [20, 125], [20, 127], [20, 128], [20, 129], [20, 132], [20, 136], [20, 137], [20, 141], [20, 144], [20, 147], [20, 152], [20, 154], [20, 157], [20, 163], [20, 166], [20, 168], [20, 170], [20, 175], [20, 177], [21, 24], [21, 28], [21, 30], [21, 36], [21, 37], [21, 42], [21, 53], [21, 57], [21, 58], [21, 60], [21, 65], [21, 67], [21, 70], [21, 71], [21, 77], [21, 79], [21, 85], [21, 101], [21, 109], [21, 113], [21, 122], [21, 124], [21, 129], [21, 133], [21, 136], [21, 139], [21, 143], [21, 154], [21, 163], [21, 167], [21, 170], [21, 173], [21, 175], [22, 30], [22, 31], [22, 40], [22, 50], [22, 51], [22, 60], [22, 63], [22, 67], [22, 69], [22, 72], [22, 74], [22, 77], [22, 83], [22, 84], [22, 87], [22, 91], [22, 96], [22, 100], [22, 106], [22, 111], [22, 112], [22, 113], [22, 118], [22, 125], [22, 139], [22, 141], [22, 152], [22, 162], [22, 165], [22, 167], [22, 175], [23, 26], [23, 29], [23, 32], [23, 35], [23, 36], [23, 37], [23, 42], [23, 54], [23, 56], [23, 58], [23, 70], [23, 83], [23, 94], [23, 96], [23, 104], [23, 112], [23, 116], [23, 118], [23, 119], [23, 121], [23, 122], [23, 124], [23, 125], [23, 127], [23, 135], [23, 136], [23, 144], [23, 145], [23, 150], [23, 152], [23, 155], [23, 157], [23, 164], [23, 165], [24, 42], [24, 49], [24, 54], [24, 56], [24, 57], [24, 58], [24, 64], [24, 74], [24, 76], [24, 78], [24, 79], [24, 80], [24, 85], [24, 86], [24, 88], [24, 92], [24, 95], [24, 114], [24, 125], [24, 128], [24, 130], [24, 139], [24, 144], [24, 147], [24, 149], [24, 151], [24, 153], [24, 158], [24, 159], [24, 168], [25, 26], [25, 28], [25, 32], [25, 43], [25, 50], [25, 73], [25, 75], [25, 84], [25, 87], [25, 97], [25, 99], [25, 100], [25, 101], [25, 108], [25, 113], [25, 127], [25, 147], [25, 161], [25, 168], [25, 170], [25, 178], [26, 28], [26, 29], [26, 31], [26, 54], [26, 60], [26, 62], [26, 64], [26, 67], [26, 69], [26, 85], [26, 86], [26, 94], [26, 96], [26, 102], [26, 105], [26, 108], [26, 111], [26, 117], [26, 120], [26, 127], [26, 136], [26, 145], [26, 146], [26, 153], [26, 156], [26, 161], [26, 169], [26, 170], [26, 175], [27, 32], [27, 41], [27, 48], [27, 52], [27, 55], [27, 56], [27, 57], [27, 62], [27, 66], [27, 68], [27, 71], [27, 75], [27, 83], [27, 87], [27, 90], [27, 91], [27, 99], [27, 101], [27, 102], [27, 103], [27, 106], [27, 113], [27, 115], [27, 121], [27, 124], [27, 131], [27, 138], [27, 147], [27, 154], [27, 160], [27, 163], [27, 169], [27, 179], [28, 31], [28, 35], [28, 50], [28, 51], [28, 52], [28, 59], [28, 62], [28, 69], [28, 72], [28, 74], [28, 75], [28, 82], [28, 84], [28, 85], [28, 90], [28, 95], [28, 97], [28, 101], [28, 104], [28, 109], [28, 119], [28, 122], [28, 124], [28, 135], [28, 145], [28, 156], [28, 161], [28, 162], [28, 174], [29, 40], [29, 45], [29, 48], [29, 56], [29, 62], [29, 64], [29, 68], [29, 69], [29, 70], [29, 76], [29, 79], [29, 83], [29, 84], [29, 87], [29, 92], [29, 102], [29, 105], [29, 110], [29, 114], [29, 115], [29, 120], [29, 124], [29, 126], [29, 128], [29, 138], [29, 149], [29, 153], [29, 154], [29, 158], [29, 160], [29, 167], [29, 168], [30, 31], [30, 36], [30, 37], [30, 38], [30, 43], [30, 45], [30, 48], [30, 52], [30, 56], [30, 62], [30, 63], [30, 71], [30, 75], [30, 79], [30, 84], [30, 96], [30, 108], [30, 115], [30, 117], [30, 119], [30, 128], [30, 144], [30, 145], [30, 146], [30, 153], [30, 158], [30, 163], [30, 168], [30, 176], [31, 38], [31, 39], [31, 40], [31, 46], [31, 63], [31, 79], [31, 85], [31, 89], [31, 92], [31, 93], [31, 97], [31, 99], [31, 102], [31, 103], [31, 109], [31, 111], [31, 116], [31, 119], [31, 126], [31, 128], [31, 132], [31, 133], [31, 136], [31, 148], [31, 149], [31, 150], [31, 160], [31, 164], [31, 165], [31, 168], [31, 174], [32, 33], [32, 35], [32, 40], [32, 42], [32, 43], [32, 44], [32, 49], [32, 56], [32, 62], [32, 69], [32, 72], [32, 77], [32, 84], [32, 92], [32, 95], [32, 106], [32, 108], [32, 112], [32, 120], [32, 124], [32, 127], [32, 131], [32, 144], [32, 146], [32, 148], [32, 151], [32, 152], [32, 155], [32, 159], [33, 34], [33, 40], [33, 41], [33, 42], [33, 43], [33, 44], [33, 46], [33, 50], [33, 51], [33, 55], [33, 57], [33, 60], [33, 62], [33, 69], [33, 70], [33, 73], [33, 74], [33, 86], [33, 87], [33, 97], [33, 101], [33, 102], [33, 104], [33, 105], [33, 108], [33, 117], [33, 120], [33, 124], [33, 132], [33, 135], [33, 139], [33, 151], [33, 156], [33, 158], [33, 164], [33, 178], [34, 37], [34, 51], [34, 57], [34, 62], [34, 68], [34, 74], [34, 78], [34, 81], [34, 82], [34, 83], [34, 85], [34, 107], [34, 109], [34, 116], [34, 118], [34, 126], [34, 127], [34, 131], [34, 134], [34, 149], [34, 160], [34, 163], [34, 171], [34, 172], [34, 177], [35, 37], [35, 38], [35, 42], [35, 43], [35, 46], [35, 54], [35, 61], [35, 65], [35, 68], [35, 71], [35, 76], [35, 81], [35, 88], [35, 91], [35, 95], [35, 97], [35, 99], [35, 100], [35, 106], [35, 111], [35, 118], [35, 125], [35, 129], [35, 137], [35, 150], [35, 156], [35, 157], [35, 162], [35, 163], [35, 164], [35, 166], [35, 172], [35, 179], [36, 38], [36, 43], [36, 44], [36, 45], [36, 47], [36, 50], [36, 52], [36, 56], [36, 60], [36, 61], [36, 65], [36, 66], [36, 77], [36, 84], [36, 93], [36, 95], [36, 97], [36, 110], [36, 113], [36, 115], [36, 120], [36, 122], [36, 123], [36, 125], [36, 126], [36, 129], [36, 133], [36, 136], [36, 143], [36, 148], [36, 153], [36, 160], [36, 161], [36, 164], [36, 169], [36, 178], [37, 40], [37, 45], [37, 50], [37, 52], [37, 61], [37, 75], [37, 86], [37, 87], [37, 88], [37, 89], [37, 94], [37, 95], [37, 100], [37, 104], [37, 112], [37, 113], [37, 114], [37, 129], [37, 136], [37, 151], [37, 154], [37, 168], [37, 169], [37, 171], [38, 44], [38, 48], [38, 50], [38, 52], [38, 54], [38, 55], [38, 62], [38, 63], [38, 71], [38, 76], [38, 78], [38, 89], [38, 94], [38, 98], [38, 99], [38, 106], [38, 114], [38, 126], [38, 132], [38, 141], [38, 143], [38, 147], [38, 158], [38, 162], [38, 167], [39, 48], [39, 68], [39, 72], [39, 73], [39, 76], [39, 79], [39, 80], [39, 87], [39, 89], [39, 91], [39, 92], [39, 93], [39, 102], [39, 110], [39, 116], [39, 117], [39, 120], [39, 122], [39, 126], [39, 128], [39, 136], [39, 143], [39, 145], [39, 147], [39, 153], [39, 155], [39, 177], [39, 179], [40, 48], [40, 54], [40, 68], [40, 69], [40, 71], [40, 72], [40, 77], [40, 80], [40, 81], [40, 92], [40, 99], [40, 101], [40, 106], [40, 109], [40, 120], [40, 125], [40, 128], [40, 132], [40, 133], [40, 134], [40, 141], [40, 144], [40, 145], [40, 154], [40, 157], [40, 165], [40, 175], [41, 56], [41, 59], [41, 62], [41, 63], [41, 72], [41, 79], [41, 81], [41, 84], [41, 90], [41, 94], [41, 99], [41, 105], [41, 118], [41, 120], [41, 138], [41, 147], [41, 151], [41, 157], [41, 162], [41, 165], [41, 167], [41, 169], [42, 47], [42, 48], [42, 49], [42, 50], [42, 79], [42, 89], [42, 90], [42, 92], [42, 98], [42, 101], [42, 106], [42, 109], [42, 112], [42, 113], [42, 121], [42, 126], [42, 127], [42, 128], [42, 129], [42, 132], [42, 133], [42, 134], [42, 135], [42, 138], [42, 146], [42, 153], [42, 156], [42, 159], [42, 169], [42, 172], [42, 174], [42, 175], [43, 45], [43, 47], [43, 48], [43, 53], [43, 58], [43, 63], [43, 68], [43, 69], [43, 74], [43, 75], [43, 77], [43, 81], [43, 85], [43, 87], [43, 96], [43, 97], [43, 105], [43, 106], [43, 107], [43, 121], [43, 124], [43, 128], [43, 130], [43, 135], [43, 136], [43, 141], [43, 145], [43, 152], [43, 157], [43, 166], [43, 167], [43, 170], [43, 174], [43, 176], [44, 47], [44, 48], [44, 54], [44, 62], [44, 63], [44, 72], [44, 74], [44, 80], [44, 81], [44, 87], [44, 96], [44, 98], [44, 101], [44, 104], [44, 108], [44, 112], [44, 114], [44, 122], [44, 128], [44, 134], [44, 138], [44, 148], [44, 155], [44, 161], [44, 163], [44, 174], [44, 177], [44, 178], [45, 48], [45, 51], [45, 53], [45, 66], [45, 81], [45, 84], [45, 86], [45, 93], [45, 103], [45, 104], [45, 111], [45, 116], [45, 117], [45, 120], [45, 128], [45, 142], [45, 146], [45, 150], [45, 152], [45, 154], [45, 158], [45, 163], [45, 172], [45, 173], [45, 174], [45, 178], [46, 57], [46, 62], [46, 66], [46, 68], [46, 72], [46, 74], [46, 81], [46, 83], [46, 85], [46, 88], [46, 92], [46, 100], [46, 101], [46, 110], [46, 113], [46, 114], [46, 117], [46, 121], [46, 126], [46, 141], [46, 144], [46, 147], [46, 162], [46, 164], [46, 168], [46, 169], [46, 171], [46, 174], [47, 56], [47, 61], [47, 64], [47, 65], [47, 71], [47, 77], [47, 81], [47, 85], [47, 88], [47, 91], [47, 94], [47, 96], [47, 100], [47, 117], [47, 121], [47, 141], [47, 147], [47, 152], [47, 157], [47, 166], [47, 167], [47, 168], [48, 52], [48, 55], [48, 58], [48, 59], [48, 64], [48, 68], [48, 69], [48, 79], [48, 80], [48, 85], [48, 92], [48, 96], [48, 104], [48, 108], [48, 115], [48, 119], [48, 120], [48, 130], [48, 132], [48, 139], [48, 140], [48, 144], [48, 145], [48, 148], [48, 160], [48, 162], [48, 163], [48, 170], [48, 174], [48, 176], [49, 50], [49, 60], [49, 61], [49, 62], [49, 64], [49, 65], [49, 81], [49, 86], [49, 89], [49, 93], [49, 96], [49, 99], [49, 105], [49, 109], [49, 111], [49, 124], [49, 127], [49, 130], [49, 134], [49, 135], [49, 136], [49, 141], [49, 145], [49, 151], [49, 166], [49, 173], [49, 178], [50, 56], [50, 57], [50, 60], [50, 64], [50, 70], [50, 73], [50, 74], [50, 78], [50, 79], [50, 80], [50, 81], [50, 84], [50, 88], [50, 89], [50, 94], [50, 100], [50, 102], [50, 105], [50, 113], [50, 117], [50, 119], [50, 125], [50, 128], [50, 130], [50, 139], [50, 145], [50, 148], [50, 152], [50, 153], [50, 154], [50, 155], [50, 156], [50, 158], [50, 161], [50, 165], [50, 166], [50, 167], [50, 169], [50, 173], [50, 179], [51, 54], [51, 57], [51, 58], [51, 60], [51, 61], [51, 72], [51, 74], [51, 83], [51, 87], [51, 106], [51, 109], [51, 110], [51, 114], [51, 121], [51, 126], [51, 127], [51, 128], [51, 130], [51, 136], [51, 140], [51, 142], [51, 144], [51, 152], [51, 154], [51, 168], [51, 169], [51, 178], [51, 179], [52, 57], [52, 61], [52, 78], [52, 79], [52, 83], [52, 90], [52, 91], [52, 100], [52, 104], [52, 106], [52, 108], [52, 112], [52, 123], [52, 125], [52, 128], [52, 131], [52, 136], [52, 151], [52, 155], [52, 158], [52, 159], [52, 160], [52, 164], [52, 171], [52, 174], [52, 175], [52, 176], [52, 179], [53, 55], [53, 67], [53, 71], [53, 74], [53, 83], [53, 95], [53, 105], [53, 113], [53, 117], [53, 124], [53, 132], [53, 133], [53, 135], [53, 136], [53, 137], [53, 142], [53, 145], [53, 146], [53, 150], [53, 151], [53, 159], [53, 162], [53, 173], [53, 174], [53, 177], [54, 62], [54, 64], [54, 65], [54, 70], [54, 71], [54, 78], [54, 79], [54, 80], [54, 81], [54, 82], [54, 90], [54, 91], [54, 112], [54, 113], [54, 116], [54, 120], [54, 124], [54, 125], [54, 130], [54, 138], [54, 139], [54, 142], [54, 143], [54, 150], [54, 151], [54, 152], [54, 161], [54, 164], [54, 167], [54, 169], [55, 58], [55, 61], [55, 69], [55, 70], [55, 81], [55, 90], [55, 97], [55, 99], [55, 111], [55, 118], [55, 119], [55, 121], [55, 123], [55, 126], [55, 133], [55, 140], [55, 141], [55, 143], [55, 151], [55, 154], [55, 158], [55, 169], [55, 173], [55, 177], [55, 178], [56, 62], [56, 68], [56, 71], [56, 73], [56, 75], [56, 80], [56, 92], [56, 93], [56, 100], [56, 102], [56, 110], [56, 117], [56, 120], [56, 121], [56, 132], [56, 138], [56, 141], [56, 145], [56, 147], [56, 159], [56, 167], [56, 177], [57, 60], [57, 63], [57, 71], [57, 72], [57, 82], [57, 89], [57, 95], [57, 97], [57, 100], [57, 102], [57, 118], [57, 122], [57, 131], [57, 135], [57, 140], [57, 155], [57, 160], [57, 170], [57, 171], [57, 174], [57, 177], [57, 179], [58, 61], [58, 62], [58, 63], [58, 74], [58, 76], [58, 78], [58, 85], [58, 94], [58, 99], [58, 103], [58, 105], [58, 112], [58, 114], [58, 119], [58, 120], [58, 122], [58, 123], [58, 125], [58, 130], [58, 132], [58, 136], [58, 139], [58, 143], [58, 145], [58, 152], [58, 155], [58, 164], [58, 176], [58, 177], [59, 61], [59, 64], [59, 67], [59, 73], [59, 75], [59, 76], [59, 93], [59, 97], [59, 98], [59, 105], [59, 107], [59, 110], [59, 114], [59, 126], [59, 131], [59, 137], [59, 143], [59, 146], [59, 154], [59, 159], [59, 168], [59, 177], [59, 178], [59, 179], [60, 65], [60, 71], [60, 76], [60, 78], [60, 91], [60, 92], [60, 95], [60, 100], [60, 113], [60, 117], [60, 123], [60, 124], [60, 128], [60, 129], [60, 130], [60, 131], [60, 138], [60, 142], [60, 143], [60, 145], [60, 154], [60, 158], [60, 161], [60, 164], [60, 165], [60, 166], [60, 168], [60, 169], [61, 63], [61, 64], [61, 73], [61, 86], [61, 88], [61, 89], [61, 95], [61, 98], [61, 113], [61, 116], [61, 120], [61, 121], [61, 127], [61, 130], [61, 146], [61, 162], [61, 170], [61, 171], [61, 172], [61, 174], [61, 177], [61, 178], [62, 68], [62, 71], [62, 74], [62, 75], [62, 78], [62, 83], [62, 84], [62, 87], [62, 102], [62, 103], [62, 104], [62, 108], [62, 109], [62, 117], [62, 126], [62, 143], [62, 144], [62, 146], [62, 150], [62, 151], [62, 154], [62, 156], [62, 158], [62, 164], [62, 165], [62, 166], [62, 167], [62, 173], [62, 175], [62, 177], [62, 178], [63, 71], [63, 78], [63, 81], [63, 82], [63, 83], [63, 85], [63, 89], [63, 90], [63, 92], [63, 93], [63, 100], [63, 105], [63, 110], [63, 111], [63, 112], [63, 118], [63, 119], [63, 124], [63, 138], [63, 141], [63, 145], [63, 152], [63, 157], [63, 161], [63, 165], [63, 172], [63, 175], [63, 176], [63, 177], [63, 178], [64, 65], [64, 67], [64, 69], [64, 70], [64, 73], [64, 77], [64, 80], [64, 84], [64, 86], [64, 88], [64, 92], [64, 102], [64, 105], [64, 118], [64, 129], [64, 132], [64, 136], [64, 138], [64, 141], [64, 143], [64, 144], [64, 145], [64, 146], [64, 149], [64, 155], [64, 157], [64, 161], [64, 175], [64, 176], [64, 177], [65, 66], [65, 67], [65, 69], [65, 78], [65, 82], [65, 89], [65, 90], [65, 91], [65, 95], [65, 97], [65, 103], [65, 105], [65, 107], [65, 110], [65, 111], [65, 115], [65, 118], [65, 122], [65, 132], [65, 135], [65, 137], [65, 139], [65, 144], [65, 159], [65, 161], [65, 162], [65, 164], [65, 168], [65, 171], [66, 67], [66, 69], [66, 73], [66, 74], [66, 81], [66, 87], [66, 93], [66, 95], [66, 101], [66, 102], [66, 122], [66, 123], [66, 127], [66, 130], [66, 135], [66, 138], [66, 147], [66, 154], [66, 159], [66, 179], [67, 75], [67, 77], [67, 79], [67, 91], [67, 92], [67, 94], [67, 95], [67, 98], [67, 99], [67, 105], [67, 106], [67, 110], [67, 115], [67, 118], [67, 129], [67, 146], [67, 164], [67, 166], [67, 168], [68, 71], [68, 73], [68, 74], [68, 75], [68, 81], [68, 99], [68, 102], [68, 107], [68, 108], [68, 111], [68, 116], [68, 124], [68, 128], [68, 130], [68, 135], [68, 136], [68, 144], [68, 146], [68, 147], [68, 151], [68, 156], [68, 160], [68, 163], [68, 164], [68, 167], [68, 170], [69, 70], [69, 71], [69, 80], [69, 82], [69, 85], [69, 94], [69, 98], [69, 102], [69, 116], [69, 117], [69, 141], [69, 150], [69, 152], [69, 156], [69, 159], [69, 160], [69, 162], [69, 165], [69, 167], [69, 176], [69, 179], [70, 74], [70, 77], [70, 84], [70, 87], [70, 101], [70, 108], [70, 116], [70, 117], [70, 118], [70, 120], [70, 123], [70, 126], [70, 128], [70, 130], [70, 134], [70, 143], [70, 154], [70, 155], [70, 164], [70, 169], [70, 175], [70, 179], [71, 72], [71, 73], [71, 79], [71, 82], [71, 83], [71, 85], [71, 96], [71, 101], [71, 111], [71, 114], [71, 115], [71, 116], [71, 119], [71, 123], [71, 124], [71, 125], [71, 131], [71, 138], [71, 144], [71, 150], [71, 176], [72, 76], [72, 78], [72, 84], [72, 86], [72, 87], [72, 91], [72, 92], [72, 97], [72, 99], [72, 101], [72, 105], [72, 110], [72, 119], [72, 127], [72, 135], [72, 145], [72, 147], [72, 157], [72, 164], [72, 167], [72, 170], [73, 89], [73, 95], [73, 98], [73, 101], [73, 102], [73, 108], [73, 113], [73, 115], [73, 118], [73, 123], [73, 126], [73, 128], [73, 140], [73, 147], [73, 151], [73, 153], [73, 179], [74, 76], [74, 78], [74, 86], [74, 87], [74, 88], [74, 89], [74, 104], [74, 119], [74, 122], [74, 125], [74, 132], [74, 139], [74, 143], [74, 147], [74, 178], [75, 77], [75, 84], [75, 85], [75, 86], [75, 87], [75, 92], [75, 99], [75, 103], [75, 105], [75, 110], [75, 121], [75, 140], [75, 141], [75, 145], [75, 146], [75, 149], [75, 152], [75, 155], [75, 161], [75, 166], [75, 167], [75, 169], [75, 175], [75, 178], [75, 179], [76, 77], [76, 81], [76, 87], [76, 96], [76, 102], [76, 108], [76, 113], [76, 115], [76, 116], [76, 129], [76, 138], [76, 139], [76, 148], [76, 149], [76, 160], [76, 165], [76, 167], [76, 169], [76, 172], [76, 179], [77, 85], [77, 88], [77, 90], [77, 96], [77, 101], [77, 106], [77, 107], [77, 110], [77, 114], [77, 124], [77, 126], [77, 130], [77, 131], [77, 133], [77, 138], [77, 147], [77, 150], [77, 152], [77, 163], [77, 164], [77, 175], [78, 82], [78, 87], [78, 89], [78, 97], [78, 107], [78, 115], [78, 117], [78, 122], [78, 128], [78, 130], [78, 145], [78, 150], [78, 155], [78, 162], [78, 163], [78, 174], [79, 80], [79, 99], [79, 102], [79, 104], [79, 110], [79, 115], [79, 121], [79, 126], [79, 128], [79, 129], [79, 136], [79, 144], [79, 150], [79, 155], [79, 159], [79, 161], [79, 164], [79, 167], [79, 168], [79, 169], [79, 173], [79, 176], [79, 179], [80, 94], [80, 97], [80, 100], [80, 112], [80, 114], [80, 118], [80, 121], [80, 129], [80, 134], [80, 137], [80, 140], [80, 141], [80, 144], [80, 150], [80, 151], [80, 152], [80, 160], [80, 172], [80, 176], [81, 82], [81, 87], [81, 88], [81, 92], [81, 96], [81, 101], [81, 103], [81, 107], [81, 109], [81, 114], [81, 117], [81, 118], [81, 120], [81, 125], [81, 126], [81, 127], [81, 130], [81, 131], [81, 134], [81, 139], [81, 147], [81, 152], [81, 153], [81, 154], [81, 156], [81, 158], [81, 166], [81, 167], [81, 170], [82, 89], [82, 94], [82, 106], [82, 108], [82, 111], [82, 112], [82, 119], [82, 123], [82, 124], [82, 141], [82, 143], [82, 148], [82, 150], [82, 152], [82, 176], [83, 87], [83, 91], [83, 92], [83, 97], [83, 104], [83, 108], [83, 114], [83, 118], [83, 135], [83, 137], [83, 145], [83, 146], [83, 154], [83, 158], [83, 162], [83, 164], [83, 170], [83, 178], [83, 179], [84, 88], [84, 93], [84, 94], [84, 96], [84, 98], [84, 119], [84, 120], [84, 123], [84, 129], [84, 130], [84, 133], [84, 136], [84, 138], [84, 141], [84, 142], [84, 143], [84, 144], [84, 145], [84, 148], [84, 155], [84, 158], [84, 159], [84, 167], [84, 169], [84, 170], [84, 172], [84, 173], [84, 175], [84, 178], [85, 95], [85, 96], [85, 100], [85, 101], [85, 103], [85, 112], [85, 117], [85, 119], [85, 126], [85, 130], [85, 131], [85, 133], [85, 134], [85, 137], [85, 142], [85, 144], [85, 148], [85, 154], [85, 158], [85, 163], [85, 164], [85, 169], [85, 171], [85, 173], [85, 174], [86, 87], [86, 90], [86, 96], [86, 110], [86, 112], [86, 115], [86, 119], [86, 120], [86, 124], [86, 133], [86, 134], [86, 136], [86, 138], [86, 140], [86, 142], [86, 143], [86, 146], [86, 159], [86, 163], [86, 164], [86, 165], [86, 171], [86, 174], [86, 176], [86, 177], [86, 178], [87, 92], [87, 97], [87, 98], [87, 100], [87, 103], [87, 104], [87, 106], [87, 107], [87, 112], [87, 113], [87, 122], [87, 124], [87, 130], [87, 132], [87, 135], [87, 142], [87, 145], [87, 159], [87, 162], [87, 164], [87, 168], [87, 175], [88, 104], [88, 109], [88, 113], [88, 132], [88, 140], [88, 143], [88, 144], [88, 147], [88, 155], [88, 158], [88, 166], [89, 93], [89, 95], [89, 99], [89, 105], [89, 107], [89, 112], [89, 124], [89, 125], [89, 136], [89, 137], [89, 140], [89, 142], [89, 146], [89, 149], [89, 150], [89, 152], [89, 162], [89, 163], [89, 166], [89, 169], [89, 172], [89, 175], [90, 95], [90, 98], [90, 99], [90, 101], [90, 102], [90, 107], [90, 113], [90, 115], [90, 116], [90, 120], [90, 121], [90, 122], [90, 129], [90, 137], [90, 145], [90, 146], [90, 159], [90, 165], [90, 167], [90, 171], [90, 174], [90, 178], [91, 98], [91, 99], [91, 104], [91, 115], [91, 120], [91, 125], [91, 126], [91, 136], [91, 144], [91, 150], [91, 154], [91, 156], [91, 157], [91, 159], [91, 164], [91, 179], [92, 105], [92, 115], [92, 120], [92, 124], [92, 127], [92, 135], [92, 142], [92, 145], [92, 150], [92, 161], [92, 164], [92, 168], [92, 175], [93, 95], [93, 99], [93, 107], [93, 114], [93, 121], [93, 127], [93, 133], [93, 134], [93, 143], [93, 147], [93, 149], [93, 153], [93, 155], [93, 160], [93, 164], [93, 166], [93, 173], [93, 177], [93, 179], [94, 95], [94, 97], [94, 98], [94, 102], [94, 106], [94, 113], [94, 120], [94, 123], [94, 125], [94, 133], [94, 141], [94, 144], [94, 145], [94, 147], [94, 155], [94, 156], [94, 157], [94, 160], [94, 161], [94, 167], [95, 96], [95, 107], [95, 108], [95, 111], [95, 112], [95, 116], [95, 126], [95, 127], [95, 134], [95, 144], [95, 147], [95, 157], [95, 158], [95, 162], [95, 172], [95, 176], [96, 112], [96, 121], [96, 126], [96, 127], [96, 131], [96, 133], [96, 137], [96, 140], [96, 156], [96, 159], [96, 167], [96, 168], [96, 172], [96, 176], [97, 99], [97, 105], [97, 106], [97, 109], [97, 114], [97, 117], [97, 118], [97, 120], [97, 124], [97, 126], [97, 135], [97, 138], [97, 141], [97, 145], [97, 151], [97, 159], [97, 161], [97, 165], [97, 168], [97, 170], [97, 175], [98, 99], [98, 107], [98, 108], [98, 109], [98, 110], [98, 112], [98, 115], [98, 123], [98, 125], [98, 127], [98, 128], [98, 138], [98, 145], [98, 148], [98, 150], [98, 157], [98, 159], [98, 168], [98, 172], [98, 174], [98, 176], [99, 114], [99, 122], [99, 123], [99, 129], [99, 132], [99, 136], [99, 139], [99, 144], [99, 146], [99, 148], [99, 149], [99, 151], [99, 153], [99, 156], [99, 163], [99, 169], [99, 171], [99, 179], [100, 106], [100, 113], [100, 115], [100, 123], [100, 125], [100, 132], [100, 134], [100, 139], [100, 143], [100, 146], [100, 157], [100, 162], [100, 165], [100, 173], [100, 175], [101, 103], [101, 105], [101, 110], [101, 116], [101, 120], [101, 121], [101, 125], [101, 126], [101, 132], [101, 135], [101, 150], [101, 160], [101, 164], [101, 168], [101, 170], [101, 173], [101, 179], [102, 109], [102, 111], [102, 112], [102, 119], [102, 125], [102, 130], [102, 138], [102, 140], [102, 146], [102, 150], [102, 159], [102, 163], [102, 164], [102, 166], [102, 167], [102, 170], [103, 108], [103, 134], [103, 141], [103, 142], [103, 143], [103, 151], [103, 155], [103, 156], [103, 163], [103, 166], [103, 171], [103, 174], [103, 178], [104, 108], [104, 111], [104, 116], [104, 118], [104, 121], [104, 122], [104, 125], [104, 136], [104, 137], [104, 138], [104, 140], [104, 141], [104, 148], [104, 149], [104, 151], [104, 152], [104, 154], [104, 156], [104, 159], [104, 160], [104, 162], [104, 163], [104, 169], [104, 171], [105, 108], [105, 110], [105, 118], [105, 120], [105, 124], [105, 126], [105, 133], [105, 144], [105, 148], [105, 159], [105, 165], [105, 171], [105, 173], [106, 108], [106, 111], [106, 113], [106, 114], [106, 119], [106, 123], [106, 126], [106, 142], [106, 146], [106, 147], [106, 149], [106, 151], [106, 166], [106, 167], [106, 168], [106, 169], [106, 170], [106, 173], [106, 177], [107, 108], [107, 124], [107, 127], [107, 133], [107, 135], [107, 140], [107, 149], [107, 158], [107, 159], [107, 163], [107, 165], [107, 174], [108, 109], [108, 112], [108, 133], [108, 139], [108, 151], [108, 153], [108, 159], [108, 164], [108, 168], [108, 169], [108, 178], [109, 112], [109, 114], [109, 123], [109, 130], [109, 132], [109, 142], [109, 154], [109, 157], [109, 160], [109, 162], [109, 166], [109, 170], [109, 172], [109, 176], [109, 179], [110, 114], [110, 116], [110, 123], [110, 128], [110, 129], [110, 135], [110, 136], [110, 138], [110, 144], [110, 147], [110, 156], [110, 161], [111, 114], [111, 116], [111, 119], [111, 122], [111, 128], [111, 134], [111, 136], [111, 139], [111, 141], [111, 153], [111, 157], [111, 159], [111, 165], [111, 173], [111, 175], [112, 116], [112, 122], [112, 129], [112, 133], [112, 137], [112, 142], [112, 148], [112, 152], [112, 169], [112, 172], [112, 173], [112, 178], [112, 179], [113, 115], [113, 141], [113, 149], [113, 153], [113, 156], [113, 160], [113, 161], [113, 165], [114, 115], [114, 120], [114, 121], [114, 122], [114, 130], [114, 136], [114, 152], [114, 153], [114, 154], [114, 156], [114, 158], [114, 170], [114, 174], [114, 176], [115, 116], [115, 121], [115, 124], [115, 127], [115, 128], [115, 134], [115, 137], [115, 139], [115, 140], [115, 141], [115, 146], [115, 147], [115, 150], [115, 154], [115, 157], [115, 160], [115, 164], [115, 167], [115, 169], [116, 126], [116, 141], [116, 146], [116, 148], [116, 164], [116, 167], [116, 168], [116, 172], [116, 178], [116, 179], [117, 120], [117, 121], [117, 123], [117, 141], [117, 145], [117, 147], [117, 151], [117, 153], [117, 156], [117, 162], [117, 167], [117, 168], [117, 173], [117, 178], [118, 125], [118, 134], [118, 137], [118, 142], [118, 143], [118, 147], [118, 149], [118, 154], [118, 165], [118, 169], [118, 176], [118, 178], [119, 125], [119, 134], [119, 139], [119, 140], [119, 154], [119, 157], [119, 162], [119, 179], [120, 122], [120, 133], [120, 137], [120, 138], [120, 140], [120, 143], [120, 144], [120, 146], [120, 149], [120, 151], [120, 171], [120, 176], [120, 178], [121, 123], [121, 129], [121, 132], [121, 156], [121, 160], [121, 167], [121, 168], [122, 141], [122, 144], [122, 145], [122, 147], [122, 153], [122, 159], [122, 160], [123, 125], [123, 131], [123, 133], [123, 135], [123, 137], [123, 138], [123, 140], [123, 148], [123, 150], [123, 153], [123, 161], [123, 175], [123, 176], [124, 126], [124, 134], [124, 137], [124, 146], [124, 149], [124, 156], [124, 164], [124, 176], [125, 126], [125, 127], [125, 133], [125, 134], [125, 138], [125, 139], [125, 141], [125, 160], [125, 161], [125, 171], [125, 173], [125, 179], [126, 134], [126, 135], [126, 138], [126, 146], [126, 147], [126, 148], [126, 149], [126, 150], [126, 152], [126, 158], [126, 162], [126, 165], [126, 168], [126, 172], [126, 176], [126, 177], [126, 179], [127, 135], [127, 139], [127, 140], [127, 146], [127, 149], [127, 158], [127, 159], [127, 165], [127, 170], [127, 171], [127, 176], [127, 178], [128, 129], [128, 153], [128, 155], [128, 156], [128, 161], [128, 164], [128, 166], [129, 132], [129, 133], [129, 135], [129, 137], [129, 142], [129, 156], [129, 160], [129, 168], [129, 170], [129, 174], [130, 132], [130, 134], [130, 140], [130, 141], [130, 146], [130, 148], [130, 157], [130, 158], [130, 170], [130, 171], [130, 172], [130, 174], [131, 136], [131, 146], [131, 147], [131, 155], [131, 156], [131, 162], [131, 163], [131, 166], [131, 169], [132, 137], [132, 141], [132, 143], [132, 152], [132, 153], [132, 157], [132, 164], [132, 167], [132, 171], [132, 176], [133, 137], [133, 143], [133, 144], [133, 163], [133, 165], [133, 170], [133, 173], [133, 176], [134, 152], [134, 155], [134, 156], [134, 160], [134, 163], [134, 165], [134, 166], [134, 171], [134, 172], [134, 173], [134, 174], [134, 178], [135, 141], [135, 146], [135, 149], [135, 151], [135, 154], [135, 159], [135, 167], [135, 173], [135, 174], [136, 137], [136, 144], [136, 147], [136, 155], [136, 159], [136, 163], [136, 172], [137, 139], [137, 145], [137, 155], [137, 156], [137, 157], [137, 161], [137, 162], [137, 167], [137, 171], [137, 178], [138, 140], [138, 145], [138, 147], [138, 148], [138, 154], [138, 161], [138, 162], [138, 166], [138, 167], [138, 168], [138, 172], [138, 175], [138, 177], [139, 147], [139, 148], [139, 151], [139, 156], [139, 158], [139, 160], [139, 162], [139, 165], [139, 172], [139, 173], [139, 174], [140, 147], [140, 148], [140, 150], [140, 158], [140, 161], [140, 162], [140, 166], [140, 170], [140, 172], [140, 174], [140, 175], [140, 177], [141, 162], [141, 167], [141, 169], [141, 172], [141, 177], [141, 179], [142, 148], [142, 152], [142, 154], [142, 159], [142, 170], [142, 172], [142, 174], [142, 176], [143, 146], [143, 147], [143, 150], [143, 154], [143, 158], [143, 160], [143, 174], [144, 149], [144, 154], [144, 167], [144, 168], [144, 177], [145, 147], [145, 152], [145, 154], [145, 156], [145, 164], [145, 177], [146, 148], [146, 150], [146, 151], [146, 157], [146, 159], [146, 161], [146, 163], [146, 176], [146, 177], [147, 149], [147, 158], [147, 161], [147, 166], [147, 175], [148, 152], [148, 159], [148, 167], [148, 177], [149, 155], [149, 157], [149, 158], [149, 163], [149, 166], [149, 167], [149, 177], [150, 151], [150, 152], [150, 158], [150, 167], [150, 169], [150, 174], [151, 154], [151, 158], [151, 172], [151, 174], [152, 155], [152, 160], [152, 161], [152, 165], [152, 167], [152, 178], [153, 154], [153, 156], [153, 157], [153, 162], [153, 165], [153, 168], [153, 172], [153, 173], [153, 174], [154, 160], [154, 179], [155, 164], [155, 166], [155, 172], [155, 173], [155, 174], [155, 175], [156, 157], [156, 162], [156, 167], [156, 179], [157, 163], [157, 168], [158, 159], [158, 167], [158, 168], [158, 170], [158, 171], [158, 177], [158, 178], [159, 168], [159, 173], [159, 174], [159, 178], [160, 167], [160, 171], [160, 174], [160, 178], [161, 170], [161, 172], [161, 173], [161, 174], [161, 177], [162, 165], [162, 169], [162, 170], [162, 176], [162, 177], [163, 171], [164, 168], [164, 170], [164, 176], [165, 167], [166, 175], [166, 176], [166, 178], [167, 173], [168, 169], [168, 171], [168, 172], [169, 173], [169, 178], [170, 171], [170, 172], [170, 173], [170, 179], [171, 175], [171, 177], [172, 179], [173, 176], [173, 177], [173, 178], [174, 177], [176, 177]], "family": "nppc_dominating_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-dominating-set-l5-s2/tests/run.py b/tasks/construct-nppc-dominating-set-l5-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l5-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-dominating-set-l5-s2/tests/test.sh b/tasks/construct-nppc-dominating-set-l5-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l5-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-quad-diophantine-l1-s2/environment/Dockerfile b/tasks/construct-nppc-quad-diophantine-l1-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l1-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-quad-diophantine-l1-s2/environment/instance.json b/tasks/construct-nppc-quad-diophantine-l1-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4c8f071db0dcb25d5ed0d20d6f72356bd5ac7c05 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l1-s2/environment/instance.json @@ -0,0 +1 @@ +{"a": 4, "b": 37, "c": 2800, "family": "nppc_quad_diophantine", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quad-diophantine-l1-s2/solution/solve.sh b/tasks/construct-nppc-quad-diophantine-l1-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a79ff713cbf73165bb48831528e291b95e0487f0 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l1-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": 16, "y": 48} +RLMATH_EOF diff --git a/tasks/construct-nppc-quad-diophantine-l1-s2/tests/check.py b/tasks/construct-nppc-quad-diophantine-l1-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..88989d2a8839b089c9b07dd2d3c26c21bfdca58c --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l1-s2/tests/check.py @@ -0,0 +1,11 @@ +"""a*x^2 + b*y = c in positive integers. Accepts any solution (exact integer arithmetic).""" +from run import Invalid, as_int + + +def check(inst, ans): + # upstream NPPC verifier only checks x > 0 and y > 0, so non-integer (float) x, y were accepted + x = as_int(ans.get("x"), "x", lo=1) + y = as_int(ans.get("y"), "y", lo=1) + if inst["a"] * x * x + inst["b"] * y != inst["c"]: + raise Invalid("a*x^2 + b*y != c") + return None, {} diff --git a/tasks/construct-nppc-quad-diophantine-l1-s2/tests/instance.json b/tasks/construct-nppc-quad-diophantine-l1-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4c8f071db0dcb25d5ed0d20d6f72356bd5ac7c05 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l1-s2/tests/instance.json @@ -0,0 +1 @@ +{"a": 4, "b": 37, "c": 2800, "family": "nppc_quad_diophantine", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quad-diophantine-l1-s2/tests/run.py b/tasks/construct-nppc-quad-diophantine-l1-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l1-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-quad-diophantine-l1-s2/tests/test.sh b/tasks/construct-nppc-quad-diophantine-l1-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l1-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-quad-diophantine-l1-s5/environment/Dockerfile b/tasks/construct-nppc-quad-diophantine-l1-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l1-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-quad-diophantine-l1-s5/environment/instance.json b/tasks/construct-nppc-quad-diophantine-l1-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..221bde91d2d3366cd5aadbe910c149cd91b2c100 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l1-s5/environment/instance.json @@ -0,0 +1 @@ +{"a": 39, "b": 42, "c": 16986, "family": "nppc_quad_diophantine", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quad-diophantine-l1-s5/solution/solve.sh b/tasks/construct-nppc-quad-diophantine-l1-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a696efc790fe806736cd671d43b8aa8dbd99cb2f --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l1-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": 20, "y": 33} +RLMATH_EOF diff --git a/tasks/construct-nppc-quad-diophantine-l1-s5/tests/check.py b/tasks/construct-nppc-quad-diophantine-l1-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..88989d2a8839b089c9b07dd2d3c26c21bfdca58c --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l1-s5/tests/check.py @@ -0,0 +1,11 @@ +"""a*x^2 + b*y = c in positive integers. Accepts any solution (exact integer arithmetic).""" +from run import Invalid, as_int + + +def check(inst, ans): + # upstream NPPC verifier only checks x > 0 and y > 0, so non-integer (float) x, y were accepted + x = as_int(ans.get("x"), "x", lo=1) + y = as_int(ans.get("y"), "y", lo=1) + if inst["a"] * x * x + inst["b"] * y != inst["c"]: + raise Invalid("a*x^2 + b*y != c") + return None, {} diff --git a/tasks/construct-nppc-quad-diophantine-l1-s5/tests/instance.json b/tasks/construct-nppc-quad-diophantine-l1-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..221bde91d2d3366cd5aadbe910c149cd91b2c100 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l1-s5/tests/instance.json @@ -0,0 +1 @@ +{"a": 39, "b": 42, "c": 16986, "family": "nppc_quad_diophantine", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quad-diophantine-l1-s5/tests/run.py b/tasks/construct-nppc-quad-diophantine-l1-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l1-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-quad-diophantine-l1-s5/tests/test.sh b/tasks/construct-nppc-quad-diophantine-l1-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l1-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-quadratic-congruence-l1-s2/environment/Dockerfile b/tasks/construct-nppc-quadratic-congruence-l1-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l1-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-quadratic-congruence-l1-s2/environment/instance.json b/tasks/construct-nppc-quadratic-congruence-l1-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..176fd5fb7c96ccf21b2de113c2975149ecc2eb9b --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l1-s2/environment/instance.json @@ -0,0 +1 @@ +{"a": 43, "b": 78, "c": 93, "family": "nppc_quadratic_congruence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quadratic-congruence-l1-s2/solution/solve.sh b/tasks/construct-nppc-quadratic-congruence-l1-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..b95b1b107d4f8842673e6e97c9f1defee9f79d5f --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l1-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": 11} +RLMATH_EOF diff --git a/tasks/construct-nppc-quadratic-congruence-l1-s2/tests/check.py b/tasks/construct-nppc-quadratic-congruence-l1-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..1a751c071a276ca0aae7fb05bfdcd7b6e0c6d3a6 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l1-s2/tests/check.py @@ -0,0 +1,11 @@ +"""Quadratic congruence: integer x with 1 <= x < c and x^2 = a (mod b). Accepts any such x.""" +from run import Invalid, as_int + + +def check(inst, ans): + # upstream NPPC verifier did int(x) (accepting "12", 12.9 -> 12) and only checked x < c, so negative x + # (e.g. -r for any root r) and x = 0 passed and the bound c was meaningless + x = as_int(ans.get("x"), "x", lo=1, hi=inst["c"] - 1) + if x * x % inst["b"] != inst["a"]: + raise Invalid("x^2 mod b != a") + return None, {} diff --git a/tasks/construct-nppc-quadratic-congruence-l1-s2/tests/instance.json b/tasks/construct-nppc-quadratic-congruence-l1-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..176fd5fb7c96ccf21b2de113c2975149ecc2eb9b --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l1-s2/tests/instance.json @@ -0,0 +1 @@ +{"a": 43, "b": 78, "c": 93, "family": "nppc_quadratic_congruence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quadratic-congruence-l1-s2/tests/run.py b/tasks/construct-nppc-quadratic-congruence-l1-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l1-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-quadratic-congruence-l1-s2/tests/test.sh b/tasks/construct-nppc-quadratic-congruence-l1-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l1-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-quadratic-congruence-l1-s5/environment/Dockerfile b/tasks/construct-nppc-quadratic-congruence-l1-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l1-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-quadratic-congruence-l1-s5/environment/instance.json b/tasks/construct-nppc-quadratic-congruence-l1-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..842ce7d9f14f97138a9f931497166ce5612a4c43 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l1-s5/environment/instance.json @@ -0,0 +1 @@ +{"a": 36, "b": 60, "c": 53, "family": "nppc_quadratic_congruence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quadratic-congruence-l1-s5/solution/solve.sh b/tasks/construct-nppc-quadratic-congruence-l1-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed341d80c6640d9f342e581e9233ac0e15bb817a --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l1-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": 36} +RLMATH_EOF diff --git a/tasks/construct-nppc-quadratic-congruence-l1-s5/tests/check.py b/tasks/construct-nppc-quadratic-congruence-l1-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..1a751c071a276ca0aae7fb05bfdcd7b6e0c6d3a6 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l1-s5/tests/check.py @@ -0,0 +1,11 @@ +"""Quadratic congruence: integer x with 1 <= x < c and x^2 = a (mod b). Accepts any such x.""" +from run import Invalid, as_int + + +def check(inst, ans): + # upstream NPPC verifier did int(x) (accepting "12", 12.9 -> 12) and only checked x < c, so negative x + # (e.g. -r for any root r) and x = 0 passed and the bound c was meaningless + x = as_int(ans.get("x"), "x", lo=1, hi=inst["c"] - 1) + if x * x % inst["b"] != inst["a"]: + raise Invalid("x^2 mod b != a") + return None, {} diff --git a/tasks/construct-nppc-quadratic-congruence-l1-s5/tests/instance.json b/tasks/construct-nppc-quadratic-congruence-l1-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..842ce7d9f14f97138a9f931497166ce5612a4c43 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l1-s5/tests/instance.json @@ -0,0 +1 @@ +{"a": 36, "b": 60, "c": 53, "family": "nppc_quadratic_congruence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quadratic-congruence-l1-s5/tests/run.py b/tasks/construct-nppc-quadratic-congruence-l1-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l1-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-quadratic-congruence-l1-s5/tests/test.sh b/tasks/construct-nppc-quadratic-congruence-l1-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l1-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-quadratic-congruence-l5-s3/environment/Dockerfile b/tasks/construct-nppc-quadratic-congruence-l5-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l5-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-quadratic-congruence-l5-s3/environment/instance.json b/tasks/construct-nppc-quadratic-congruence-l5-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..7f93f0441c2893cb5a4aff091aef5df3b181f089 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l5-s3/environment/instance.json @@ -0,0 +1 @@ +{"a": 3878012319265671569, "b": 4055180111029539839, "c": 875594439479069359, "family": "nppc_quadratic_congruence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quadratic-congruence-l5-s3/solution/solve.sh b/tasks/construct-nppc-quadratic-congruence-l5-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..b30df60b78571644530c3e7f543438940eba8441 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l5-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": 873887707349406070} +RLMATH_EOF diff --git a/tasks/construct-nppc-quadratic-congruence-l5-s3/tests/check.py b/tasks/construct-nppc-quadratic-congruence-l5-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..1a751c071a276ca0aae7fb05bfdcd7b6e0c6d3a6 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l5-s3/tests/check.py @@ -0,0 +1,11 @@ +"""Quadratic congruence: integer x with 1 <= x < c and x^2 = a (mod b). Accepts any such x.""" +from run import Invalid, as_int + + +def check(inst, ans): + # upstream NPPC verifier did int(x) (accepting "12", 12.9 -> 12) and only checked x < c, so negative x + # (e.g. -r for any root r) and x = 0 passed and the bound c was meaningless + x = as_int(ans.get("x"), "x", lo=1, hi=inst["c"] - 1) + if x * x % inst["b"] != inst["a"]: + raise Invalid("x^2 mod b != a") + return None, {} diff --git a/tasks/construct-nppc-quadratic-congruence-l5-s3/tests/instance.json b/tasks/construct-nppc-quadratic-congruence-l5-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..7f93f0441c2893cb5a4aff091aef5df3b181f089 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l5-s3/tests/instance.json @@ -0,0 +1 @@ +{"a": 3878012319265671569, "b": 4055180111029539839, "c": 875594439479069359, "family": "nppc_quadratic_congruence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quadratic-congruence-l5-s3/tests/run.py b/tasks/construct-nppc-quadratic-congruence-l5-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l5-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-quadratic-congruence-l5-s3/tests/test.sh b/tasks/construct-nppc-quadratic-congruence-l5-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l5-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-vertex-cover-l3-s9/environment/Dockerfile b/tasks/construct-nppc-vertex-cover-l3-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l3-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-vertex-cover-l3-s9/environment/instance.json b/tasks/construct-nppc-vertex-cover-l3-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5dea43e3b42dea85d24fdf89b8e85576341f7908 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l3-s9/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 24, "k": 12, "edges": [[0, 1], [0, 2], [0, 4], [0, 8], [0, 10], [0, 11], [0, 12], [0, 16], [1, 2], [1, 5], [1, 7], [1, 8], [1, 9], [1, 10], [1, 12], [1, 13], [1, 14], [1, 18], [1, 19], [1, 20], [1, 22], [2, 3], [2, 5], [2, 7], [2, 8], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [3, 7], [3, 8], [3, 23], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 11], [4, 14], [4, 16], [4, 19], [4, 21], [4, 22], [4, 23], [5, 10], [5, 11], [5, 18], [5, 23], [6, 7], [6, 10], [6, 11], [6, 12], [6, 16], [7, 8], [7, 10], [7, 11], [7, 13], [7, 14], [7, 15], [7, 16], [7, 18], [7, 19], [7, 20], [7, 23], [8, 9], [8, 11], [8, 12], [8, 16], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [9, 11], [9, 14], [9, 23], [10, 13], [10, 16], [10, 18], [10, 20], [10, 21], [10, 22], [10, 23], [11, 12], [11, 16], [11, 22], [11, 23], [12, 16], [12, 17], [12, 18], [12, 20], [12, 21], [12, 22], [13, 14], [13, 18], [13, 23], [14, 19], [14, 20], [14, 23], [15, 16], [15, 23], [16, 17], [16, 18], [16, 19], [16, 21], [16, 22], [16, 23], [18, 19], [18, 20], [18, 22], [18, 23], [20, 23], [22, 23]], "family": "nppc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-vertex-cover-l3-s9/solution/solve.sh b/tasks/construct-nppc-vertex-cover-l3-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..cffabdca1da3d3d3dbfb71436f19fb17e2fc30ca --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l3-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"cover": [1, 2, 4, 7, 8, 10, 11, 12, 14, 16, 18, 23]} +RLMATH_EOF diff --git a/tasks/construct-nppc-vertex-cover-l3-s9/tests/check.py b/tasks/construct-nppc-vertex-cover-l3-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..d8ed740cc660c4837d941a8d70ea394c3bc9f69e --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l3-s9/tests/check.py @@ -0,0 +1,18 @@ +"""Vertex cover of size <= k. Accepts any valid cover.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + # upstream NPPC verifier converts to a set without type checks (floats/bools slip through and + # duplicates are silently merged); here entries must be distinct ints in range + c = int_list(ans.get("cover"), None, 0, n - 1, "cover") + if len(set(c)) != len(c): + raise Invalid("cover contains duplicates") + if len(c) > k: + raise Invalid(f"cover has {len(c)} > {k} vertices") + s = set(c) + for u, v in inst["edges"]: + if u not in s and v not in s: + raise Invalid(f"edge ({u},{v}) not covered") + return None, {"size": len(c)} diff --git a/tasks/construct-nppc-vertex-cover-l3-s9/tests/instance.json b/tasks/construct-nppc-vertex-cover-l3-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5dea43e3b42dea85d24fdf89b8e85576341f7908 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l3-s9/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 24, "k": 12, "edges": [[0, 1], [0, 2], [0, 4], [0, 8], [0, 10], [0, 11], [0, 12], [0, 16], [1, 2], [1, 5], [1, 7], [1, 8], [1, 9], [1, 10], [1, 12], [1, 13], [1, 14], [1, 18], [1, 19], [1, 20], [1, 22], [2, 3], [2, 5], [2, 7], [2, 8], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [3, 7], [3, 8], [3, 23], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 11], [4, 14], [4, 16], [4, 19], [4, 21], [4, 22], [4, 23], [5, 10], [5, 11], [5, 18], [5, 23], [6, 7], [6, 10], [6, 11], [6, 12], [6, 16], [7, 8], [7, 10], [7, 11], [7, 13], [7, 14], [7, 15], [7, 16], [7, 18], [7, 19], [7, 20], [7, 23], [8, 9], [8, 11], [8, 12], [8, 16], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [9, 11], [9, 14], [9, 23], [10, 13], [10, 16], [10, 18], [10, 20], [10, 21], [10, 22], [10, 23], [11, 12], [11, 16], [11, 22], [11, 23], [12, 16], [12, 17], [12, 18], [12, 20], [12, 21], [12, 22], [13, 14], [13, 18], [13, 23], [14, 19], [14, 20], [14, 23], [15, 16], [15, 23], [16, 17], [16, 18], [16, 19], [16, 21], [16, 22], [16, 23], [18, 19], [18, 20], [18, 22], [18, 23], [20, 23], [22, 23]], "family": "nppc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-vertex-cover-l3-s9/tests/run.py b/tasks/construct-nppc-vertex-cover-l3-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l3-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-vertex-cover-l3-s9/tests/test.sh b/tasks/construct-nppc-vertex-cover-l3-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l3-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rg-graph-color-l4-s3/environment/Dockerfile b/tasks/construct-rg-graph-color-l4-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rg-graph-color-l4-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rg-graph-color-l4-s3/environment/instance.json b/tasks/construct-rg-graph-color-l4-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c6b544c29376bd045a0da239d238044709fc3940 --- /dev/null +++ b/tasks/construct-rg-graph-color-l4-s3/environment/instance.json @@ -0,0 +1 @@ +{"num_vertices": 20, "num_colors": 3, "edges": [[0, 9], [0, 13], [1, 16], [1, 17], [2, 5], [2, 7], [2, 13], [2, 15], [3, 8], [3, 9], [3, 13], [4, 6], [4, 9], [5, 9], [5, 10], [5, 13], [5, 19], [6, 16], [6, 18], [8, 9], [8, 16], [9, 11], [10, 15], [11, 12], [11, 15], [13, 18], [15, 17], [16, 19], [17, 18], [17, 19]], "family": "rg_graph_color", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-graph-color-l4-s3/solution/solve.sh b/tasks/construct-rg-graph-color-l4-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..72ef32eec878dde51be2c290454b722f0d6f853d --- /dev/null +++ b/tasks/construct-rg-graph-color-l4-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"coloring": [1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 1, 1, 2, 3, 1, 2, 3, 3, 1, 1]} +RLMATH_EOF diff --git a/tasks/construct-rg-graph-color-l4-s3/tests/check.py b/tasks/construct-rg-graph-color-l4-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e9328912405d1c894970c90415be62bf9556ed36 --- /dev/null +++ b/tasks/construct-rg-graph-color-l4-s3/tests/check.py @@ -0,0 +1,13 @@ +"""Proper colouring with colours 1..k (Reasoning Gym graph_color, Apache-2.0). Any valid colouring. +Upstream note: its verifier checks `color in allowed_colors`, so True (== 1) and 1.0 were accepted as +colours, and extra keys were ignored. Here colours must be ints in 1..k, one per vertex.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_vertices"], inst["num_colors"] + c = int_list(ans.get("coloring"), n, 1, k, "coloring") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"adjacent vertices {u} and {v} share colour {c[u]}") + return None, {} diff --git a/tasks/construct-rg-graph-color-l4-s3/tests/instance.json b/tasks/construct-rg-graph-color-l4-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c6b544c29376bd045a0da239d238044709fc3940 --- /dev/null +++ b/tasks/construct-rg-graph-color-l4-s3/tests/instance.json @@ -0,0 +1 @@ +{"num_vertices": 20, "num_colors": 3, "edges": [[0, 9], [0, 13], [1, 16], [1, 17], [2, 5], [2, 7], [2, 13], [2, 15], [3, 8], [3, 9], [3, 13], [4, 6], [4, 9], [5, 9], [5, 10], [5, 13], [5, 19], [6, 16], [6, 18], [8, 9], [8, 16], [9, 11], [10, 15], [11, 12], [11, 15], [13, 18], [15, 17], [16, 19], [17, 18], [17, 19]], "family": "rg_graph_color", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-graph-color-l4-s3/tests/run.py b/tasks/construct-rg-graph-color-l4-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rg-graph-color-l4-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rg-graph-color-l4-s3/tests/test.sh b/tasks/construct-rg-graph-color-l4-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rg-graph-color-l4-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rg-graph-color-l4-s4/environment/Dockerfile b/tasks/construct-rg-graph-color-l4-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rg-graph-color-l4-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rg-graph-color-l4-s4/environment/instance.json b/tasks/construct-rg-graph-color-l4-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c2cfa4f9e041138dd6ff815104f5289a612085cc --- /dev/null +++ b/tasks/construct-rg-graph-color-l4-s4/environment/instance.json @@ -0,0 +1 @@ +{"num_vertices": 20, "num_colors": 3, "edges": [[0, 3], [0, 6], [0, 9], [0, 11], [0, 15], [0, 18], [1, 9], [1, 11], [1, 12], [1, 13], [1, 17], [1, 18], [2, 10], [2, 11], [2, 14], [2, 15], [2, 17], [2, 19], [3, 13], [4, 14], [4, 19], [5, 6], [5, 12], [5, 13], [6, 13], [6, 14], [6, 17], [7, 10], [7, 14], [7, 19], [8, 13], [8, 14], [8, 15], [9, 14], [9, 18], [9, 19], [10, 14], [10, 15], [12, 14], [12, 16], [12, 18], [13, 16], [16, 18]], "family": "rg_graph_color", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-graph-color-l4-s4/solution/solve.sh b/tasks/construct-rg-graph-color-l4-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9548987587f07ad9c7901ce2fe4188a4bf2ebcf --- /dev/null +++ b/tasks/construct-rg-graph-color-l4-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"coloring": [1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 2, 2, 2, 3, 3, 3, 1, 3, 3, 3]} +RLMATH_EOF diff --git a/tasks/construct-rg-graph-color-l4-s4/tests/check.py b/tasks/construct-rg-graph-color-l4-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e9328912405d1c894970c90415be62bf9556ed36 --- /dev/null +++ b/tasks/construct-rg-graph-color-l4-s4/tests/check.py @@ -0,0 +1,13 @@ +"""Proper colouring with colours 1..k (Reasoning Gym graph_color, Apache-2.0). Any valid colouring. +Upstream note: its verifier checks `color in allowed_colors`, so True (== 1) and 1.0 were accepted as +colours, and extra keys were ignored. Here colours must be ints in 1..k, one per vertex.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_vertices"], inst["num_colors"] + c = int_list(ans.get("coloring"), n, 1, k, "coloring") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"adjacent vertices {u} and {v} share colour {c[u]}") + return None, {} diff --git a/tasks/construct-rg-graph-color-l4-s4/tests/instance.json b/tasks/construct-rg-graph-color-l4-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c2cfa4f9e041138dd6ff815104f5289a612085cc --- /dev/null +++ b/tasks/construct-rg-graph-color-l4-s4/tests/instance.json @@ -0,0 +1 @@ +{"num_vertices": 20, "num_colors": 3, "edges": [[0, 3], [0, 6], [0, 9], [0, 11], [0, 15], [0, 18], [1, 9], [1, 11], [1, 12], [1, 13], [1, 17], [1, 18], [2, 10], [2, 11], [2, 14], [2, 15], [2, 17], [2, 19], [3, 13], [4, 14], [4, 19], [5, 6], [5, 12], [5, 13], [6, 13], [6, 14], [6, 17], [7, 10], [7, 14], [7, 19], [8, 13], [8, 14], [8, 15], [9, 14], [9, 18], [9, 19], [10, 14], [10, 15], [12, 14], [12, 16], [12, 18], [13, 16], [16, 18]], "family": "rg_graph_color", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-graph-color-l4-s4/tests/run.py b/tasks/construct-rg-graph-color-l4-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rg-graph-color-l4-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rg-graph-color-l4-s4/tests/test.sh b/tasks/construct-rg-graph-color-l4-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rg-graph-color-l4-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rg-intermediate-integration-l2-s9/environment/Dockerfile b/tasks/construct-rg-intermediate-integration-l2-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l2-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rg-intermediate-integration-l2-s9/environment/instance.json b/tasks/construct-rg-intermediate-integration-l2-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ad37d756abaaa76b1d7c41db4555b19b79ae0b6c --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l2-s9/environment/instance.json @@ -0,0 +1 @@ +{"variable": "x", "integrand": "5*sqrt(5*x - 3)", "problem_type": "radical", "family": "rg_intermediate_integration", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-intermediate-integration-l2-s9/solution/solve.sh b/tasks/construct-rg-intermediate-integration-l2-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..5bca0f3b329cc792ab1fef0f2264c173597e52fe --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l2-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"antiderivative": "2*(5*x - 3)**(3/2)/3 + C"} +RLMATH_EOF diff --git a/tasks/construct-rg-intermediate-integration-l2-s9/tests/check.py b/tasks/construct-rg-intermediate-integration-l2-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..a9e364a8ede6c8215a16a04ee6b0d3529adc647d --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l2-s9/tests/check.py @@ -0,0 +1,158 @@ +"""Antiderivative check (Reasoning Gym simple_integration / intermediate_integration, Apache-2.0). + +The answer string is parsed with a whitelist AST walker (no eval), differentiated with SymPy and compared +with the integrand numerically (30-digit evaluation) at fixed points inside the integrand's real domain. +Any additive constant (e.g. "+ C") is allowed. + +Upstream notes: upstream scores with sympy.parse_expr, which calls eval() on the model's string (arbitrary +code execution), and it accepts an unevaluated "Integral(f, x)" since its derivative is f. Both are +rejected here: only arithmetic, whitelisted elementary functions, the variable, C, E and pi are allowed.""" +import ast +import math +import signal + +import sympy + +from run import Invalid + +MAX_LEN = 3000 +MAX_NODES = 600 +MAX_POW_NEST = 4 # nested powers with a variable exponent (x**x**x**...) blow up differentiation +TIME_LIMIT = 40 # seconds; a slower answer is rejected +FUNCS = {"sin": sympy.sin, "cos": sympy.cos, "tan": sympy.tan, "cot": sympy.cot, "sec": sympy.sec, + "csc": sympy.csc, "asin": sympy.asin, "acos": sympy.acos, "atan": sympy.atan, "acot": sympy.acot, + "arcsin": sympy.asin, "arccos": sympy.acos, "arctan": sympy.atan, "sinh": sympy.sinh, + "cosh": sympy.cosh, "tanh": sympy.tanh, "asinh": sympy.asinh, "acosh": sympy.acosh, + "atanh": sympy.atanh, "exp": sympy.exp, "log": sympy.log, "ln": sympy.log, "sqrt": sympy.sqrt, + "Abs": sympy.Abs, "abs": sympy.Abs} +POINTS = [0.3137, 0.5521, 0.8093, 1.1171, 1.4519, 1.9033, 2.3471, 2.8123, 3.3319, 3.9107, 4.6231, + -0.3547, -0.6529, -0.9511, -1.3027, -1.7519, -2.2013, -2.7131, -3.1397, -3.8203, -4.4111, + 0.1231, -0.1523, 0.2129, -0.2617, 0.0517, -0.0719, 5.4127, -5.3311, 6.3019, -6.2203, 7.2213, + -7.1117, 8.9021, -9.3107, 10.7129, -10.6337, 12.9011, -12.8231, 15.3113, -15.2719] +MIN_POINTS = 5 + + +def parse(s, var): + if not isinstance(s, str) or not s.strip(): + raise Invalid("antiderivative must be a non-empty string") + if len(s) > MAX_LEN: + raise Invalid("expression too long") + s = s.strip() + try: + tree = ast.parse(s, mode="eval") + except SyntaxError: + raise Invalid("expression does not parse (use ** for powers and * for products)") + if sum(1 for _ in ast.walk(tree)) > MAX_NODES: + raise Invalid("expression too large") + + def pow_nest(nd): + kids = [pow_nest(c) for c in ast.iter_child_nodes(nd)] + own = isinstance(nd, ast.BinOp) and isinstance(nd.op, ast.Pow) and any( + isinstance(c, ast.Name) and c.id == var for c in ast.walk(nd.right)) + return max(kids, default=0) + (1 if own else 0) + if pow_nest(tree) > MAX_POW_NEST: + raise Invalid("too many nested powers with a variable exponent") + x = sympy.Symbol(var, real=True) + names = {var: x, "C": sympy.Symbol("C"), "E": sympy.E, "pi": sympy.pi} + + def conv(nd): + if isinstance(nd, ast.Expression): + return conv(nd.body) + if isinstance(nd, ast.Constant): + v = nd.value + if isinstance(v, bool) or not isinstance(v, (int, float)): + raise Invalid(f"constant {v!r} not allowed") + if isinstance(v, int): + if abs(v) > 10 ** 18: + raise Invalid("integer constant too large") + return sympy.Integer(v) + if not math.isfinite(v): + raise Invalid("non-finite constant") + return sympy.Float(v, 30) + if isinstance(nd, ast.Name): + if nd.id not in names: + raise Invalid(f"unknown name {nd.id!r} (the variable is {var})") + return names[nd.id] + if isinstance(nd, ast.UnaryOp) and isinstance(nd.op, (ast.USub, ast.UAdd)): + a = conv(nd.operand) + return -a if isinstance(nd.op, ast.USub) else a + if isinstance(nd, ast.BinOp): + a, b = conv(nd.left), conv(nd.right) + if isinstance(nd.op, ast.Add): + return a + b + if isinstance(nd.op, ast.Sub): + return a - b + if isinstance(nd.op, ast.Mult): + return a * b + if isinstance(nd.op, ast.Div): + if b == 0: + raise Invalid("division by zero") + return a / b + if isinstance(nd.op, ast.Pow): + if not b.free_symbols: + bv = complex(b.evalf(20)) + if bv.imag != 0 or abs(bv.real) > 100: + raise Invalid("exponent too large") + if not a.free_symbols and abs(complex(a.evalf(20))) > 1e6: + raise Invalid("numeric power too large") + return a ** b + raise Invalid("only + - * / ** are allowed (use ** for powers)") + if isinstance(nd, ast.Call): + if not isinstance(nd.func, ast.Name) or nd.func.id not in FUNCS: + raise Invalid(f"function {ast.unparse(nd.func)!r} not allowed") + if nd.keywords or len(nd.args) != 1: + raise Invalid(f"{nd.func.id} takes exactly one argument") + return FUNCS[nd.func.id](conv(nd.args[0])) + raise Invalid(f"syntax element {type(nd).__name__} not allowed") + + return conv(tree), x + + +def value(expr, x, p): + v = expr.evalf(30, subs={x: sympy.Float(p, 30)}) + try: + z = complex(v) + except (TypeError, ValueError): + return None + if not (math.isfinite(z.real) and math.isfinite(z.imag)): + return None + return z + + +def _timeout(signum, frame): + raise Invalid(f"answer took more than {TIME_LIMIT} s to check") + + +def check(inst, ans): + if hasattr(signal, "SIGALRM"): + old = signal.signal(signal.SIGALRM, _timeout) + signal.alarm(TIME_LIMIT) + try: + return _check(inst, ans) + finally: + signal.alarm(0) + signal.signal(signal.SIGALRM, old) + return _check(inst, ans) + + +def _check(inst, ans): + var = inst["variable"] + F, x = parse(ans.get("antiderivative"), var) + f, x2 = parse(inst["integrand"], var) + if not F.has(x): + raise Invalid("antiderivative does not depend on the variable") + dF = sympy.diff(F, x) + used = 0 + for p in POINTS: + fv = value(f, x2, p) + if fv is None or abs(fv.imag) > 1e-20 * (1 + abs(fv.real)): + continue # outside the integrand's real domain + gv = value(dF, x, p) + if gv is None: + raise Invalid(f"derivative of the answer cannot be evaluated at {var} = {p}") + if abs(gv - fv) > 1e-9 * max(1.0, abs(fv)): + raise Invalid(f"derivative of the answer differs from the integrand at {var} = {p}") + used += 1 + if used < MIN_POINTS: + raise Invalid("too few evaluation points in the integrand's domain") + return None, {"points": used} diff --git a/tasks/construct-rg-intermediate-integration-l2-s9/tests/instance.json b/tasks/construct-rg-intermediate-integration-l2-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ad37d756abaaa76b1d7c41db4555b19b79ae0b6c --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l2-s9/tests/instance.json @@ -0,0 +1 @@ +{"variable": "x", "integrand": "5*sqrt(5*x - 3)", "problem_type": "radical", "family": "rg_intermediate_integration", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-intermediate-integration-l2-s9/tests/run.py b/tasks/construct-rg-intermediate-integration-l2-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l2-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rg-intermediate-integration-l2-s9/tests/test.sh b/tasks/construct-rg-intermediate-integration-l2-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l2-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rg-intermediate-integration-l6-s1/environment/Dockerfile b/tasks/construct-rg-intermediate-integration-l6-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l6-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rg-intermediate-integration-l6-s1/environment/instance.json b/tasks/construct-rg-intermediate-integration-l6-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..56b2f588b275ade305b6e2836a65ac5c601baede --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l6-s1/environment/instance.json @@ -0,0 +1 @@ +{"variable": "x", "integrand": "-2*x**5*exp(x)", "problem_type": "repeated_parts", "family": "rg_intermediate_integration", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-intermediate-integration-l6-s1/solution/solve.sh b/tasks/construct-rg-intermediate-integration-l6-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac8d0eb8823aadbcd0b9d085b450850ea7d67418 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l6-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"antiderivative": "(-2*x**5 + 10*x**4 - 40*x**3 + 120*x**2 - 240*x + 240)*exp(x) + C"} +RLMATH_EOF diff --git a/tasks/construct-rg-intermediate-integration-l6-s1/tests/check.py b/tasks/construct-rg-intermediate-integration-l6-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..a9e364a8ede6c8215a16a04ee6b0d3529adc647d --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l6-s1/tests/check.py @@ -0,0 +1,158 @@ +"""Antiderivative check (Reasoning Gym simple_integration / intermediate_integration, Apache-2.0). + +The answer string is parsed with a whitelist AST walker (no eval), differentiated with SymPy and compared +with the integrand numerically (30-digit evaluation) at fixed points inside the integrand's real domain. +Any additive constant (e.g. "+ C") is allowed. + +Upstream notes: upstream scores with sympy.parse_expr, which calls eval() on the model's string (arbitrary +code execution), and it accepts an unevaluated "Integral(f, x)" since its derivative is f. Both are +rejected here: only arithmetic, whitelisted elementary functions, the variable, C, E and pi are allowed.""" +import ast +import math +import signal + +import sympy + +from run import Invalid + +MAX_LEN = 3000 +MAX_NODES = 600 +MAX_POW_NEST = 4 # nested powers with a variable exponent (x**x**x**...) blow up differentiation +TIME_LIMIT = 40 # seconds; a slower answer is rejected +FUNCS = {"sin": sympy.sin, "cos": sympy.cos, "tan": sympy.tan, "cot": sympy.cot, "sec": sympy.sec, + "csc": sympy.csc, "asin": sympy.asin, "acos": sympy.acos, "atan": sympy.atan, "acot": sympy.acot, + "arcsin": sympy.asin, "arccos": sympy.acos, "arctan": sympy.atan, "sinh": sympy.sinh, + "cosh": sympy.cosh, "tanh": sympy.tanh, "asinh": sympy.asinh, "acosh": sympy.acosh, + "atanh": sympy.atanh, "exp": sympy.exp, "log": sympy.log, "ln": sympy.log, "sqrt": sympy.sqrt, + "Abs": sympy.Abs, "abs": sympy.Abs} +POINTS = [0.3137, 0.5521, 0.8093, 1.1171, 1.4519, 1.9033, 2.3471, 2.8123, 3.3319, 3.9107, 4.6231, + -0.3547, -0.6529, -0.9511, -1.3027, -1.7519, -2.2013, -2.7131, -3.1397, -3.8203, -4.4111, + 0.1231, -0.1523, 0.2129, -0.2617, 0.0517, -0.0719, 5.4127, -5.3311, 6.3019, -6.2203, 7.2213, + -7.1117, 8.9021, -9.3107, 10.7129, -10.6337, 12.9011, -12.8231, 15.3113, -15.2719] +MIN_POINTS = 5 + + +def parse(s, var): + if not isinstance(s, str) or not s.strip(): + raise Invalid("antiderivative must be a non-empty string") + if len(s) > MAX_LEN: + raise Invalid("expression too long") + s = s.strip() + try: + tree = ast.parse(s, mode="eval") + except SyntaxError: + raise Invalid("expression does not parse (use ** for powers and * for products)") + if sum(1 for _ in ast.walk(tree)) > MAX_NODES: + raise Invalid("expression too large") + + def pow_nest(nd): + kids = [pow_nest(c) for c in ast.iter_child_nodes(nd)] + own = isinstance(nd, ast.BinOp) and isinstance(nd.op, ast.Pow) and any( + isinstance(c, ast.Name) and c.id == var for c in ast.walk(nd.right)) + return max(kids, default=0) + (1 if own else 0) + if pow_nest(tree) > MAX_POW_NEST: + raise Invalid("too many nested powers with a variable exponent") + x = sympy.Symbol(var, real=True) + names = {var: x, "C": sympy.Symbol("C"), "E": sympy.E, "pi": sympy.pi} + + def conv(nd): + if isinstance(nd, ast.Expression): + return conv(nd.body) + if isinstance(nd, ast.Constant): + v = nd.value + if isinstance(v, bool) or not isinstance(v, (int, float)): + raise Invalid(f"constant {v!r} not allowed") + if isinstance(v, int): + if abs(v) > 10 ** 18: + raise Invalid("integer constant too large") + return sympy.Integer(v) + if not math.isfinite(v): + raise Invalid("non-finite constant") + return sympy.Float(v, 30) + if isinstance(nd, ast.Name): + if nd.id not in names: + raise Invalid(f"unknown name {nd.id!r} (the variable is {var})") + return names[nd.id] + if isinstance(nd, ast.UnaryOp) and isinstance(nd.op, (ast.USub, ast.UAdd)): + a = conv(nd.operand) + return -a if isinstance(nd.op, ast.USub) else a + if isinstance(nd, ast.BinOp): + a, b = conv(nd.left), conv(nd.right) + if isinstance(nd.op, ast.Add): + return a + b + if isinstance(nd.op, ast.Sub): + return a - b + if isinstance(nd.op, ast.Mult): + return a * b + if isinstance(nd.op, ast.Div): + if b == 0: + raise Invalid("division by zero") + return a / b + if isinstance(nd.op, ast.Pow): + if not b.free_symbols: + bv = complex(b.evalf(20)) + if bv.imag != 0 or abs(bv.real) > 100: + raise Invalid("exponent too large") + if not a.free_symbols and abs(complex(a.evalf(20))) > 1e6: + raise Invalid("numeric power too large") + return a ** b + raise Invalid("only + - * / ** are allowed (use ** for powers)") + if isinstance(nd, ast.Call): + if not isinstance(nd.func, ast.Name) or nd.func.id not in FUNCS: + raise Invalid(f"function {ast.unparse(nd.func)!r} not allowed") + if nd.keywords or len(nd.args) != 1: + raise Invalid(f"{nd.func.id} takes exactly one argument") + return FUNCS[nd.func.id](conv(nd.args[0])) + raise Invalid(f"syntax element {type(nd).__name__} not allowed") + + return conv(tree), x + + +def value(expr, x, p): + v = expr.evalf(30, subs={x: sympy.Float(p, 30)}) + try: + z = complex(v) + except (TypeError, ValueError): + return None + if not (math.isfinite(z.real) and math.isfinite(z.imag)): + return None + return z + + +def _timeout(signum, frame): + raise Invalid(f"answer took more than {TIME_LIMIT} s to check") + + +def check(inst, ans): + if hasattr(signal, "SIGALRM"): + old = signal.signal(signal.SIGALRM, _timeout) + signal.alarm(TIME_LIMIT) + try: + return _check(inst, ans) + finally: + signal.alarm(0) + signal.signal(signal.SIGALRM, old) + return _check(inst, ans) + + +def _check(inst, ans): + var = inst["variable"] + F, x = parse(ans.get("antiderivative"), var) + f, x2 = parse(inst["integrand"], var) + if not F.has(x): + raise Invalid("antiderivative does not depend on the variable") + dF = sympy.diff(F, x) + used = 0 + for p in POINTS: + fv = value(f, x2, p) + if fv is None or abs(fv.imag) > 1e-20 * (1 + abs(fv.real)): + continue # outside the integrand's real domain + gv = value(dF, x, p) + if gv is None: + raise Invalid(f"derivative of the answer cannot be evaluated at {var} = {p}") + if abs(gv - fv) > 1e-9 * max(1.0, abs(fv)): + raise Invalid(f"derivative of the answer differs from the integrand at {var} = {p}") + used += 1 + if used < MIN_POINTS: + raise Invalid("too few evaluation points in the integrand's domain") + return None, {"points": used} diff --git a/tasks/construct-rg-intermediate-integration-l6-s1/tests/instance.json b/tasks/construct-rg-intermediate-integration-l6-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..56b2f588b275ade305b6e2836a65ac5c601baede --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l6-s1/tests/instance.json @@ -0,0 +1 @@ +{"variable": "x", "integrand": "-2*x**5*exp(x)", "problem_type": "repeated_parts", "family": "rg_intermediate_integration", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-intermediate-integration-l6-s1/tests/run.py b/tasks/construct-rg-intermediate-integration-l6-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l6-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rg-intermediate-integration-l6-s1/tests/test.sh b/tasks/construct-rg-intermediate-integration-l6-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l6-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rg-intermediate-integration-l6-s6/environment/Dockerfile b/tasks/construct-rg-intermediate-integration-l6-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l6-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rg-intermediate-integration-l6-s6/environment/instance.json b/tasks/construct-rg-intermediate-integration-l6-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f965457c94f1cf6d35f4706bab4373d1524eb48b --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l6-s6/environment/instance.json @@ -0,0 +1 @@ +{"variable": "x", "integrand": "3*x**5*cos(x)", "problem_type": "repeated_parts", "family": "rg_intermediate_integration", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-intermediate-integration-l6-s6/solution/solve.sh b/tasks/construct-rg-intermediate-integration-l6-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e91a43aded74ac32d969e8512c815d5069fecef --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l6-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"antiderivative": "3*x**5*sin(x) + 15*x**4*cos(x) - 60*x**3*sin(x) - 180*x**2*cos(x) + 360*x*sin(x) + 360*cos(x) + C"} +RLMATH_EOF diff --git a/tasks/construct-rg-intermediate-integration-l6-s6/tests/check.py b/tasks/construct-rg-intermediate-integration-l6-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..a9e364a8ede6c8215a16a04ee6b0d3529adc647d --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l6-s6/tests/check.py @@ -0,0 +1,158 @@ +"""Antiderivative check (Reasoning Gym simple_integration / intermediate_integration, Apache-2.0). + +The answer string is parsed with a whitelist AST walker (no eval), differentiated with SymPy and compared +with the integrand numerically (30-digit evaluation) at fixed points inside the integrand's real domain. +Any additive constant (e.g. "+ C") is allowed. + +Upstream notes: upstream scores with sympy.parse_expr, which calls eval() on the model's string (arbitrary +code execution), and it accepts an unevaluated "Integral(f, x)" since its derivative is f. Both are +rejected here: only arithmetic, whitelisted elementary functions, the variable, C, E and pi are allowed.""" +import ast +import math +import signal + +import sympy + +from run import Invalid + +MAX_LEN = 3000 +MAX_NODES = 600 +MAX_POW_NEST = 4 # nested powers with a variable exponent (x**x**x**...) blow up differentiation +TIME_LIMIT = 40 # seconds; a slower answer is rejected +FUNCS = {"sin": sympy.sin, "cos": sympy.cos, "tan": sympy.tan, "cot": sympy.cot, "sec": sympy.sec, + "csc": sympy.csc, "asin": sympy.asin, "acos": sympy.acos, "atan": sympy.atan, "acot": sympy.acot, + "arcsin": sympy.asin, "arccos": sympy.acos, "arctan": sympy.atan, "sinh": sympy.sinh, + "cosh": sympy.cosh, "tanh": sympy.tanh, "asinh": sympy.asinh, "acosh": sympy.acosh, + "atanh": sympy.atanh, "exp": sympy.exp, "log": sympy.log, "ln": sympy.log, "sqrt": sympy.sqrt, + "Abs": sympy.Abs, "abs": sympy.Abs} +POINTS = [0.3137, 0.5521, 0.8093, 1.1171, 1.4519, 1.9033, 2.3471, 2.8123, 3.3319, 3.9107, 4.6231, + -0.3547, -0.6529, -0.9511, -1.3027, -1.7519, -2.2013, -2.7131, -3.1397, -3.8203, -4.4111, + 0.1231, -0.1523, 0.2129, -0.2617, 0.0517, -0.0719, 5.4127, -5.3311, 6.3019, -6.2203, 7.2213, + -7.1117, 8.9021, -9.3107, 10.7129, -10.6337, 12.9011, -12.8231, 15.3113, -15.2719] +MIN_POINTS = 5 + + +def parse(s, var): + if not isinstance(s, str) or not s.strip(): + raise Invalid("antiderivative must be a non-empty string") + if len(s) > MAX_LEN: + raise Invalid("expression too long") + s = s.strip() + try: + tree = ast.parse(s, mode="eval") + except SyntaxError: + raise Invalid("expression does not parse (use ** for powers and * for products)") + if sum(1 for _ in ast.walk(tree)) > MAX_NODES: + raise Invalid("expression too large") + + def pow_nest(nd): + kids = [pow_nest(c) for c in ast.iter_child_nodes(nd)] + own = isinstance(nd, ast.BinOp) and isinstance(nd.op, ast.Pow) and any( + isinstance(c, ast.Name) and c.id == var for c in ast.walk(nd.right)) + return max(kids, default=0) + (1 if own else 0) + if pow_nest(tree) > MAX_POW_NEST: + raise Invalid("too many nested powers with a variable exponent") + x = sympy.Symbol(var, real=True) + names = {var: x, "C": sympy.Symbol("C"), "E": sympy.E, "pi": sympy.pi} + + def conv(nd): + if isinstance(nd, ast.Expression): + return conv(nd.body) + if isinstance(nd, ast.Constant): + v = nd.value + if isinstance(v, bool) or not isinstance(v, (int, float)): + raise Invalid(f"constant {v!r} not allowed") + if isinstance(v, int): + if abs(v) > 10 ** 18: + raise Invalid("integer constant too large") + return sympy.Integer(v) + if not math.isfinite(v): + raise Invalid("non-finite constant") + return sympy.Float(v, 30) + if isinstance(nd, ast.Name): + if nd.id not in names: + raise Invalid(f"unknown name {nd.id!r} (the variable is {var})") + return names[nd.id] + if isinstance(nd, ast.UnaryOp) and isinstance(nd.op, (ast.USub, ast.UAdd)): + a = conv(nd.operand) + return -a if isinstance(nd.op, ast.USub) else a + if isinstance(nd, ast.BinOp): + a, b = conv(nd.left), conv(nd.right) + if isinstance(nd.op, ast.Add): + return a + b + if isinstance(nd.op, ast.Sub): + return a - b + if isinstance(nd.op, ast.Mult): + return a * b + if isinstance(nd.op, ast.Div): + if b == 0: + raise Invalid("division by zero") + return a / b + if isinstance(nd.op, ast.Pow): + if not b.free_symbols: + bv = complex(b.evalf(20)) + if bv.imag != 0 or abs(bv.real) > 100: + raise Invalid("exponent too large") + if not a.free_symbols and abs(complex(a.evalf(20))) > 1e6: + raise Invalid("numeric power too large") + return a ** b + raise Invalid("only + - * / ** are allowed (use ** for powers)") + if isinstance(nd, ast.Call): + if not isinstance(nd.func, ast.Name) or nd.func.id not in FUNCS: + raise Invalid(f"function {ast.unparse(nd.func)!r} not allowed") + if nd.keywords or len(nd.args) != 1: + raise Invalid(f"{nd.func.id} takes exactly one argument") + return FUNCS[nd.func.id](conv(nd.args[0])) + raise Invalid(f"syntax element {type(nd).__name__} not allowed") + + return conv(tree), x + + +def value(expr, x, p): + v = expr.evalf(30, subs={x: sympy.Float(p, 30)}) + try: + z = complex(v) + except (TypeError, ValueError): + return None + if not (math.isfinite(z.real) and math.isfinite(z.imag)): + return None + return z + + +def _timeout(signum, frame): + raise Invalid(f"answer took more than {TIME_LIMIT} s to check") + + +def check(inst, ans): + if hasattr(signal, "SIGALRM"): + old = signal.signal(signal.SIGALRM, _timeout) + signal.alarm(TIME_LIMIT) + try: + return _check(inst, ans) + finally: + signal.alarm(0) + signal.signal(signal.SIGALRM, old) + return _check(inst, ans) + + +def _check(inst, ans): + var = inst["variable"] + F, x = parse(ans.get("antiderivative"), var) + f, x2 = parse(inst["integrand"], var) + if not F.has(x): + raise Invalid("antiderivative does not depend on the variable") + dF = sympy.diff(F, x) + used = 0 + for p in POINTS: + fv = value(f, x2, p) + if fv is None or abs(fv.imag) > 1e-20 * (1 + abs(fv.real)): + continue # outside the integrand's real domain + gv = value(dF, x, p) + if gv is None: + raise Invalid(f"derivative of the answer cannot be evaluated at {var} = {p}") + if abs(gv - fv) > 1e-9 * max(1.0, abs(fv)): + raise Invalid(f"derivative of the answer differs from the integrand at {var} = {p}") + used += 1 + if used < MIN_POINTS: + raise Invalid("too few evaluation points in the integrand's domain") + return None, {"points": used} diff --git a/tasks/construct-rg-intermediate-integration-l6-s6/tests/instance.json b/tasks/construct-rg-intermediate-integration-l6-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f965457c94f1cf6d35f4706bab4373d1524eb48b --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l6-s6/tests/instance.json @@ -0,0 +1 @@ +{"variable": "x", "integrand": "3*x**5*cos(x)", "problem_type": "repeated_parts", "family": "rg_intermediate_integration", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-intermediate-integration-l6-s6/tests/run.py b/tasks/construct-rg-intermediate-integration-l6-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l6-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rg-intermediate-integration-l6-s6/tests/test.sh b/tasks/construct-rg-intermediate-integration-l6-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l6-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rg-simple-integration-l4-s2/environment/Dockerfile b/tasks/construct-rg-simple-integration-l4-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rg-simple-integration-l4-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rg-simple-integration-l4-s2/environment/instance.json b/tasks/construct-rg-simple-integration-l4-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c0133f7ef48d0f567d8a8743bac8a4769be87197 --- /dev/null +++ b/tasks/construct-rg-simple-integration-l4-s2/environment/instance.json @@ -0,0 +1 @@ +{"variable": "x", "integrand": "602*x**6/45 + 6*x**2 + 6*x + 6/7", "family": "rg_simple_integration", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-simple-integration-l4-s2/solution/solve.sh b/tasks/construct-rg-simple-integration-l4-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..6252a2905ebe510039513e66904210cb8497502a --- /dev/null +++ b/tasks/construct-rg-simple-integration-l4-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"antiderivative": "86*x**7/45 + 2*x**3 + 3*x**2 + 6*x/7 + C"} +RLMATH_EOF diff --git a/tasks/construct-rg-simple-integration-l4-s2/tests/check.py b/tasks/construct-rg-simple-integration-l4-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..a9e364a8ede6c8215a16a04ee6b0d3529adc647d --- /dev/null +++ b/tasks/construct-rg-simple-integration-l4-s2/tests/check.py @@ -0,0 +1,158 @@ +"""Antiderivative check (Reasoning Gym simple_integration / intermediate_integration, Apache-2.0). + +The answer string is parsed with a whitelist AST walker (no eval), differentiated with SymPy and compared +with the integrand numerically (30-digit evaluation) at fixed points inside the integrand's real domain. +Any additive constant (e.g. "+ C") is allowed. + +Upstream notes: upstream scores with sympy.parse_expr, which calls eval() on the model's string (arbitrary +code execution), and it accepts an unevaluated "Integral(f, x)" since its derivative is f. Both are +rejected here: only arithmetic, whitelisted elementary functions, the variable, C, E and pi are allowed.""" +import ast +import math +import signal + +import sympy + +from run import Invalid + +MAX_LEN = 3000 +MAX_NODES = 600 +MAX_POW_NEST = 4 # nested powers with a variable exponent (x**x**x**...) blow up differentiation +TIME_LIMIT = 40 # seconds; a slower answer is rejected +FUNCS = {"sin": sympy.sin, "cos": sympy.cos, "tan": sympy.tan, "cot": sympy.cot, "sec": sympy.sec, + "csc": sympy.csc, "asin": sympy.asin, "acos": sympy.acos, "atan": sympy.atan, "acot": sympy.acot, + "arcsin": sympy.asin, "arccos": sympy.acos, "arctan": sympy.atan, "sinh": sympy.sinh, + "cosh": sympy.cosh, "tanh": sympy.tanh, "asinh": sympy.asinh, "acosh": sympy.acosh, + "atanh": sympy.atanh, "exp": sympy.exp, "log": sympy.log, "ln": sympy.log, "sqrt": sympy.sqrt, + "Abs": sympy.Abs, "abs": sympy.Abs} +POINTS = [0.3137, 0.5521, 0.8093, 1.1171, 1.4519, 1.9033, 2.3471, 2.8123, 3.3319, 3.9107, 4.6231, + -0.3547, -0.6529, -0.9511, -1.3027, -1.7519, -2.2013, -2.7131, -3.1397, -3.8203, -4.4111, + 0.1231, -0.1523, 0.2129, -0.2617, 0.0517, -0.0719, 5.4127, -5.3311, 6.3019, -6.2203, 7.2213, + -7.1117, 8.9021, -9.3107, 10.7129, -10.6337, 12.9011, -12.8231, 15.3113, -15.2719] +MIN_POINTS = 5 + + +def parse(s, var): + if not isinstance(s, str) or not s.strip(): + raise Invalid("antiderivative must be a non-empty string") + if len(s) > MAX_LEN: + raise Invalid("expression too long") + s = s.strip() + try: + tree = ast.parse(s, mode="eval") + except SyntaxError: + raise Invalid("expression does not parse (use ** for powers and * for products)") + if sum(1 for _ in ast.walk(tree)) > MAX_NODES: + raise Invalid("expression too large") + + def pow_nest(nd): + kids = [pow_nest(c) for c in ast.iter_child_nodes(nd)] + own = isinstance(nd, ast.BinOp) and isinstance(nd.op, ast.Pow) and any( + isinstance(c, ast.Name) and c.id == var for c in ast.walk(nd.right)) + return max(kids, default=0) + (1 if own else 0) + if pow_nest(tree) > MAX_POW_NEST: + raise Invalid("too many nested powers with a variable exponent") + x = sympy.Symbol(var, real=True) + names = {var: x, "C": sympy.Symbol("C"), "E": sympy.E, "pi": sympy.pi} + + def conv(nd): + if isinstance(nd, ast.Expression): + return conv(nd.body) + if isinstance(nd, ast.Constant): + v = nd.value + if isinstance(v, bool) or not isinstance(v, (int, float)): + raise Invalid(f"constant {v!r} not allowed") + if isinstance(v, int): + if abs(v) > 10 ** 18: + raise Invalid("integer constant too large") + return sympy.Integer(v) + if not math.isfinite(v): + raise Invalid("non-finite constant") + return sympy.Float(v, 30) + if isinstance(nd, ast.Name): + if nd.id not in names: + raise Invalid(f"unknown name {nd.id!r} (the variable is {var})") + return names[nd.id] + if isinstance(nd, ast.UnaryOp) and isinstance(nd.op, (ast.USub, ast.UAdd)): + a = conv(nd.operand) + return -a if isinstance(nd.op, ast.USub) else a + if isinstance(nd, ast.BinOp): + a, b = conv(nd.left), conv(nd.right) + if isinstance(nd.op, ast.Add): + return a + b + if isinstance(nd.op, ast.Sub): + return a - b + if isinstance(nd.op, ast.Mult): + return a * b + if isinstance(nd.op, ast.Div): + if b == 0: + raise Invalid("division by zero") + return a / b + if isinstance(nd.op, ast.Pow): + if not b.free_symbols: + bv = complex(b.evalf(20)) + if bv.imag != 0 or abs(bv.real) > 100: + raise Invalid("exponent too large") + if not a.free_symbols and abs(complex(a.evalf(20))) > 1e6: + raise Invalid("numeric power too large") + return a ** b + raise Invalid("only + - * / ** are allowed (use ** for powers)") + if isinstance(nd, ast.Call): + if not isinstance(nd.func, ast.Name) or nd.func.id not in FUNCS: + raise Invalid(f"function {ast.unparse(nd.func)!r} not allowed") + if nd.keywords or len(nd.args) != 1: + raise Invalid(f"{nd.func.id} takes exactly one argument") + return FUNCS[nd.func.id](conv(nd.args[0])) + raise Invalid(f"syntax element {type(nd).__name__} not allowed") + + return conv(tree), x + + +def value(expr, x, p): + v = expr.evalf(30, subs={x: sympy.Float(p, 30)}) + try: + z = complex(v) + except (TypeError, ValueError): + return None + if not (math.isfinite(z.real) and math.isfinite(z.imag)): + return None + return z + + +def _timeout(signum, frame): + raise Invalid(f"answer took more than {TIME_LIMIT} s to check") + + +def check(inst, ans): + if hasattr(signal, "SIGALRM"): + old = signal.signal(signal.SIGALRM, _timeout) + signal.alarm(TIME_LIMIT) + try: + return _check(inst, ans) + finally: + signal.alarm(0) + signal.signal(signal.SIGALRM, old) + return _check(inst, ans) + + +def _check(inst, ans): + var = inst["variable"] + F, x = parse(ans.get("antiderivative"), var) + f, x2 = parse(inst["integrand"], var) + if not F.has(x): + raise Invalid("antiderivative does not depend on the variable") + dF = sympy.diff(F, x) + used = 0 + for p in POINTS: + fv = value(f, x2, p) + if fv is None or abs(fv.imag) > 1e-20 * (1 + abs(fv.real)): + continue # outside the integrand's real domain + gv = value(dF, x, p) + if gv is None: + raise Invalid(f"derivative of the answer cannot be evaluated at {var} = {p}") + if abs(gv - fv) > 1e-9 * max(1.0, abs(fv)): + raise Invalid(f"derivative of the answer differs from the integrand at {var} = {p}") + used += 1 + if used < MIN_POINTS: + raise Invalid("too few evaluation points in the integrand's domain") + return None, {"points": used} diff --git a/tasks/construct-rg-simple-integration-l4-s2/tests/instance.json b/tasks/construct-rg-simple-integration-l4-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c0133f7ef48d0f567d8a8743bac8a4769be87197 --- /dev/null +++ b/tasks/construct-rg-simple-integration-l4-s2/tests/instance.json @@ -0,0 +1 @@ +{"variable": "x", "integrand": "602*x**6/45 + 6*x**2 + 6*x + 6/7", "family": "rg_simple_integration", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-simple-integration-l4-s2/tests/run.py b/tasks/construct-rg-simple-integration-l4-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rg-simple-integration-l4-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rg-simple-integration-l4-s2/tests/test.sh b/tasks/construct-rg-simple-integration-l4-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rg-simple-integration-l4-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-antiderivative-l1-s4/environment/Dockerfile b/tasks/construct-rlve-antiderivative-l1-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l1-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-antiderivative-l1-s4/environment/instance.json b/tasks/construct-rlve-antiderivative-l1-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..1606b9c2e619006fc6f15bd603f042f2802fffd0 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l1-s4/environment/instance.json @@ -0,0 +1 @@ +{"f_prime": "cos(x + 1)", "max_ops": 28, "max_len": 600, "family": "rlve_antiderivative", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-antiderivative-l1-s4/solution/solve.sh b/tasks/construct-rlve-antiderivative-l1-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..b97a404147dc089bda8bfcfbe62aa68ebe3e0ec6 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l1-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"F": "sin(x + 1)"} +RLMATH_EOF diff --git a/tasks/construct-rlve-antiderivative-l1-s4/tests/check.py b/tasks/construct-rlve-antiderivative-l1-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..c6b30b93bbbb7795b54d973e43f25b23c82cb7fc --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l1-s4/tests/check.py @@ -0,0 +1,107 @@ +"""Antiderivative check. The answer string is tokenised against a whitelist (x, integers, + - * / ** ( ) and a few +elementary functions) before sympy parses it, so no Python eval of untrusted text and no `integrate`/`Integral`.""" +import re +import signal + +import sympy +from sympy.parsing.sympy_parser import auto_number, parse_expr + +from run import Invalid + +x = sympy.Symbol("x") +FUNCS = {"sin": sympy.sin, "cos": sympy.cos, "tan": sympy.tan, "exp": sympy.exp, "log": sympy.log, + "sqrt": sympy.sqrt, "asin": sympy.asin, "acos": sympy.acos, "atan": sympy.atan, "sinh": sympy.sinh, + "cosh": sympy.cosh, "tanh": sympy.tanh, "E": sympy.E, "pi": sympy.pi, "x": x} +TOK = re.compile(r"\s*(?:(\d+)|([A-Za-z]+)|(\*\*|[-+*/()]))") +NPTS = 40 + + +def safe_parse(s, max_len): + if not isinstance(s, str) or not s.strip(): + raise Invalid("F must be a non-empty string") + if len(s) > max_len: + raise Invalid("expression too long") + pos = 0 + while pos < len(s): + m = TOK.match(s, pos) + if not m or m.end() == pos: + if s[pos:].strip() == "": + break + raise Invalid(f"illegal character near position {pos}") + if m.group(1) and len(m.group(1)) > 12: + raise Invalid("integer literal too long") + if m.group(2) and m.group(2) not in FUNCS: + raise Invalid(f"unknown name {m.group(2)!r}") + pos = m.end() + try: + e = parse_expr(s, local_dict=dict(FUNCS), global_dict={"__builtins__": {}, "Integer": sympy.Integer}, + transformations=(auto_number,)) + except Invalid: + raise + except Exception as ex: + raise Invalid(f"cannot parse F: {type(ex).__name__}") + if not isinstance(e, sympy.Expr): + raise Invalid("F is not an expression") + if e.free_symbols - {x}: + raise Invalid("F may only contain the variable x") + return e + + +def _val(e, pt): + v = e.evalf(40, subs={x: pt}) + if not v.is_number or v.has(sympy.zoo, sympy.nan, sympy.oo, -sympy.oo): + return None + return v + + +class _Timeout(Exception): + pass + + +def _alarm(*_): + raise _Timeout() + + +def check(inst, ans): + old = None + try: + old = signal.signal(signal.SIGALRM, _alarm) + signal.alarm(40) + except ValueError: # not in main thread + old = None + try: + return _check(inst, ans) + except _Timeout: + raise Invalid("evaluation timed out") + except RecursionError: + raise Invalid("expression too deep") + finally: + if old is not None: + signal.alarm(0) + signal.signal(signal.SIGALRM, old) + + +def _check(inst, ans): + F = safe_parse(ans.get("F"), inst["max_len"]) + if sympy.count_ops(F) > inst["max_ops"]: + raise Invalid("expression too complex") + if any(isinstance(a, sympy.Rational) and max(abs(a.p), abs(a.q)) > 10 ** 12 for a in F.atoms(sympy.Rational)): + raise Invalid("numeric constants too large") + D = sympy.diff(F, x) + f = sympy.sympify(inst["f_prime"]) # trusted instance data + ok = 0 + for k in range(NPTS): + pt = sympy.Rational(2 * k + 1, NPTS // 2 * 2) * 2 - 2 + sympy.Rational(1, 997) + vf = _val(f, pt) + if vf is None: + continue + vd = _val(D, pt) + if vd is None: + continue + err = sympy.Abs(vd - vf).evalf(40) + if err > sympy.Float("1e-20", 40) * (1 + sympy.Abs(vf).evalf(40)): + raise Invalid(f"F'(x) != f(x) at x = {float(pt):.4f}") + ok += 1 + if ok < NPTS // 4: + raise Invalid("F' could not be compared with f on enough test points") + return None, {"points_checked": ok} diff --git a/tasks/construct-rlve-antiderivative-l1-s4/tests/instance.json b/tasks/construct-rlve-antiderivative-l1-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..1606b9c2e619006fc6f15bd603f042f2802fffd0 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l1-s4/tests/instance.json @@ -0,0 +1 @@ +{"f_prime": "cos(x + 1)", "max_ops": 28, "max_len": 600, "family": "rlve_antiderivative", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-antiderivative-l1-s4/tests/run.py b/tasks/construct-rlve-antiderivative-l1-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l1-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-antiderivative-l1-s4/tests/test.sh b/tasks/construct-rlve-antiderivative-l1-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l1-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-antiderivative-l5-s2/environment/Dockerfile b/tasks/construct-rlve-antiderivative-l5-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l5-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-antiderivative-l5-s2/environment/instance.json b/tasks/construct-rlve-antiderivative-l5-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a18867d9b6c825c7b9989ba80d4b123b6328d701 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l5-s2/environment/instance.json @@ -0,0 +1 @@ +{"f_prime": "-x**(3/2) - 3*sqrt(x)*(x - 1)/2", "max_ops": 40, "max_len": 740, "family": "rlve_antiderivative", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-antiderivative-l5-s2/solution/solve.sh b/tasks/construct-rlve-antiderivative-l5-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5b665c20711a1ad832bb60b4b56731ce777db30 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l5-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"F": "-x**(3/2)*(x - 1)"} +RLMATH_EOF diff --git a/tasks/construct-rlve-antiderivative-l5-s2/tests/check.py b/tasks/construct-rlve-antiderivative-l5-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..c6b30b93bbbb7795b54d973e43f25b23c82cb7fc --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l5-s2/tests/check.py @@ -0,0 +1,107 @@ +"""Antiderivative check. The answer string is tokenised against a whitelist (x, integers, + - * / ** ( ) and a few +elementary functions) before sympy parses it, so no Python eval of untrusted text and no `integrate`/`Integral`.""" +import re +import signal + +import sympy +from sympy.parsing.sympy_parser import auto_number, parse_expr + +from run import Invalid + +x = sympy.Symbol("x") +FUNCS = {"sin": sympy.sin, "cos": sympy.cos, "tan": sympy.tan, "exp": sympy.exp, "log": sympy.log, + "sqrt": sympy.sqrt, "asin": sympy.asin, "acos": sympy.acos, "atan": sympy.atan, "sinh": sympy.sinh, + "cosh": sympy.cosh, "tanh": sympy.tanh, "E": sympy.E, "pi": sympy.pi, "x": x} +TOK = re.compile(r"\s*(?:(\d+)|([A-Za-z]+)|(\*\*|[-+*/()]))") +NPTS = 40 + + +def safe_parse(s, max_len): + if not isinstance(s, str) or not s.strip(): + raise Invalid("F must be a non-empty string") + if len(s) > max_len: + raise Invalid("expression too long") + pos = 0 + while pos < len(s): + m = TOK.match(s, pos) + if not m or m.end() == pos: + if s[pos:].strip() == "": + break + raise Invalid(f"illegal character near position {pos}") + if m.group(1) and len(m.group(1)) > 12: + raise Invalid("integer literal too long") + if m.group(2) and m.group(2) not in FUNCS: + raise Invalid(f"unknown name {m.group(2)!r}") + pos = m.end() + try: + e = parse_expr(s, local_dict=dict(FUNCS), global_dict={"__builtins__": {}, "Integer": sympy.Integer}, + transformations=(auto_number,)) + except Invalid: + raise + except Exception as ex: + raise Invalid(f"cannot parse F: {type(ex).__name__}") + if not isinstance(e, sympy.Expr): + raise Invalid("F is not an expression") + if e.free_symbols - {x}: + raise Invalid("F may only contain the variable x") + return e + + +def _val(e, pt): + v = e.evalf(40, subs={x: pt}) + if not v.is_number or v.has(sympy.zoo, sympy.nan, sympy.oo, -sympy.oo): + return None + return v + + +class _Timeout(Exception): + pass + + +def _alarm(*_): + raise _Timeout() + + +def check(inst, ans): + old = None + try: + old = signal.signal(signal.SIGALRM, _alarm) + signal.alarm(40) + except ValueError: # not in main thread + old = None + try: + return _check(inst, ans) + except _Timeout: + raise Invalid("evaluation timed out") + except RecursionError: + raise Invalid("expression too deep") + finally: + if old is not None: + signal.alarm(0) + signal.signal(signal.SIGALRM, old) + + +def _check(inst, ans): + F = safe_parse(ans.get("F"), inst["max_len"]) + if sympy.count_ops(F) > inst["max_ops"]: + raise Invalid("expression too complex") + if any(isinstance(a, sympy.Rational) and max(abs(a.p), abs(a.q)) > 10 ** 12 for a in F.atoms(sympy.Rational)): + raise Invalid("numeric constants too large") + D = sympy.diff(F, x) + f = sympy.sympify(inst["f_prime"]) # trusted instance data + ok = 0 + for k in range(NPTS): + pt = sympy.Rational(2 * k + 1, NPTS // 2 * 2) * 2 - 2 + sympy.Rational(1, 997) + vf = _val(f, pt) + if vf is None: + continue + vd = _val(D, pt) + if vd is None: + continue + err = sympy.Abs(vd - vf).evalf(40) + if err > sympy.Float("1e-20", 40) * (1 + sympy.Abs(vf).evalf(40)): + raise Invalid(f"F'(x) != f(x) at x = {float(pt):.4f}") + ok += 1 + if ok < NPTS // 4: + raise Invalid("F' could not be compared with f on enough test points") + return None, {"points_checked": ok} diff --git a/tasks/construct-rlve-antiderivative-l5-s2/tests/instance.json b/tasks/construct-rlve-antiderivative-l5-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a18867d9b6c825c7b9989ba80d4b123b6328d701 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l5-s2/tests/instance.json @@ -0,0 +1 @@ +{"f_prime": "-x**(3/2) - 3*sqrt(x)*(x - 1)/2", "max_ops": 40, "max_len": 740, "family": "rlve_antiderivative", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-antiderivative-l5-s2/tests/run.py b/tasks/construct-rlve-antiderivative-l5-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l5-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-antiderivative-l5-s2/tests/test.sh b/tasks/construct-rlve-antiderivative-l5-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l5-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-antiderivative-l5-s5/environment/Dockerfile b/tasks/construct-rlve-antiderivative-l5-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l5-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-antiderivative-l5-s5/environment/instance.json b/tasks/construct-rlve-antiderivative-l5-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b9884dc1993d379d65aeb633d7e04fd680e9ac2c --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l5-s5/environment/instance.json @@ -0,0 +1 @@ +{"f_prime": "(-x**2*cos(x)/sin(x)**2 + 2*x/sin(x))*cos(x**2/sin(x))", "max_ops": 36, "max_len": 720, "family": "rlve_antiderivative", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-antiderivative-l5-s5/solution/solve.sh b/tasks/construct-rlve-antiderivative-l5-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..457dfddea3014a3e998b979ceb4b06b2b9c83ec3 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l5-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"F": "sin(x**2/sin(x))"} +RLMATH_EOF diff --git a/tasks/construct-rlve-antiderivative-l5-s5/tests/check.py b/tasks/construct-rlve-antiderivative-l5-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..c6b30b93bbbb7795b54d973e43f25b23c82cb7fc --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l5-s5/tests/check.py @@ -0,0 +1,107 @@ +"""Antiderivative check. The answer string is tokenised against a whitelist (x, integers, + - * / ** ( ) and a few +elementary functions) before sympy parses it, so no Python eval of untrusted text and no `integrate`/`Integral`.""" +import re +import signal + +import sympy +from sympy.parsing.sympy_parser import auto_number, parse_expr + +from run import Invalid + +x = sympy.Symbol("x") +FUNCS = {"sin": sympy.sin, "cos": sympy.cos, "tan": sympy.tan, "exp": sympy.exp, "log": sympy.log, + "sqrt": sympy.sqrt, "asin": sympy.asin, "acos": sympy.acos, "atan": sympy.atan, "sinh": sympy.sinh, + "cosh": sympy.cosh, "tanh": sympy.tanh, "E": sympy.E, "pi": sympy.pi, "x": x} +TOK = re.compile(r"\s*(?:(\d+)|([A-Za-z]+)|(\*\*|[-+*/()]))") +NPTS = 40 + + +def safe_parse(s, max_len): + if not isinstance(s, str) or not s.strip(): + raise Invalid("F must be a non-empty string") + if len(s) > max_len: + raise Invalid("expression too long") + pos = 0 + while pos < len(s): + m = TOK.match(s, pos) + if not m or m.end() == pos: + if s[pos:].strip() == "": + break + raise Invalid(f"illegal character near position {pos}") + if m.group(1) and len(m.group(1)) > 12: + raise Invalid("integer literal too long") + if m.group(2) and m.group(2) not in FUNCS: + raise Invalid(f"unknown name {m.group(2)!r}") + pos = m.end() + try: + e = parse_expr(s, local_dict=dict(FUNCS), global_dict={"__builtins__": {}, "Integer": sympy.Integer}, + transformations=(auto_number,)) + except Invalid: + raise + except Exception as ex: + raise Invalid(f"cannot parse F: {type(ex).__name__}") + if not isinstance(e, sympy.Expr): + raise Invalid("F is not an expression") + if e.free_symbols - {x}: + raise Invalid("F may only contain the variable x") + return e + + +def _val(e, pt): + v = e.evalf(40, subs={x: pt}) + if not v.is_number or v.has(sympy.zoo, sympy.nan, sympy.oo, -sympy.oo): + return None + return v + + +class _Timeout(Exception): + pass + + +def _alarm(*_): + raise _Timeout() + + +def check(inst, ans): + old = None + try: + old = signal.signal(signal.SIGALRM, _alarm) + signal.alarm(40) + except ValueError: # not in main thread + old = None + try: + return _check(inst, ans) + except _Timeout: + raise Invalid("evaluation timed out") + except RecursionError: + raise Invalid("expression too deep") + finally: + if old is not None: + signal.alarm(0) + signal.signal(signal.SIGALRM, old) + + +def _check(inst, ans): + F = safe_parse(ans.get("F"), inst["max_len"]) + if sympy.count_ops(F) > inst["max_ops"]: + raise Invalid("expression too complex") + if any(isinstance(a, sympy.Rational) and max(abs(a.p), abs(a.q)) > 10 ** 12 for a in F.atoms(sympy.Rational)): + raise Invalid("numeric constants too large") + D = sympy.diff(F, x) + f = sympy.sympify(inst["f_prime"]) # trusted instance data + ok = 0 + for k in range(NPTS): + pt = sympy.Rational(2 * k + 1, NPTS // 2 * 2) * 2 - 2 + sympy.Rational(1, 997) + vf = _val(f, pt) + if vf is None: + continue + vd = _val(D, pt) + if vd is None: + continue + err = sympy.Abs(vd - vf).evalf(40) + if err > sympy.Float("1e-20", 40) * (1 + sympy.Abs(vf).evalf(40)): + raise Invalid(f"F'(x) != f(x) at x = {float(pt):.4f}") + ok += 1 + if ok < NPTS // 4: + raise Invalid("F' could not be compared with f on enough test points") + return None, {"points_checked": ok} diff --git a/tasks/construct-rlve-antiderivative-l5-s5/tests/instance.json b/tasks/construct-rlve-antiderivative-l5-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b9884dc1993d379d65aeb633d7e04fd680e9ac2c --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l5-s5/tests/instance.json @@ -0,0 +1 @@ +{"f_prime": "(-x**2*cos(x)/sin(x)**2 + 2*x/sin(x))*cos(x**2/sin(x))", "max_ops": 36, "max_len": 720, "family": "rlve_antiderivative", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-antiderivative-l5-s5/tests/run.py b/tasks/construct-rlve-antiderivative-l5-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l5-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-antiderivative-l5-s5/tests/test.sh b/tasks/construct-rlve-antiderivative-l5-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l5-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-bezout-identity-l4-s1/environment/Dockerfile b/tasks/construct-rlve-bezout-identity-l4-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l4-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-bezout-identity-l4-s1/environment/instance.json b/tasks/construct-rlve-bezout-identity-l4-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..81409e0c8500010a23e662e3f5dfa3bc51d81a4a --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l4-s1/environment/instance.json @@ -0,0 +1 @@ +{"A": [20, 2010, -1060, -512, 1922, -1204, -1774, 1450], "target": 2, "family": "rlve_bezout_identity", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-bezout-identity-l4-s1/solution/solve.sh b/tasks/construct-rlve-bezout-identity-l4-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..e64d0feaaf9248eca5a68459b4f7f9e527b9c198 --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l4-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"X": [5100, -51, 0, -1, 0, 0, 0, 0]} +RLMATH_EOF diff --git a/tasks/construct-rlve-bezout-identity-l4-s1/tests/check.py b/tasks/construct-rlve-bezout-identity-l4-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..b4cb860ed36974a12b71adc9a0fa3f1ad85c814a --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l4-s1/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + A = inst["A"] + X = int_list(ans.get("X"), len(A), name="X") + S = sum(a * x for a, x in zip(A, X)) + if S != inst["target"]: + raise Invalid(f"S = {S}, required {inst['target']}") + return None, {} diff --git a/tasks/construct-rlve-bezout-identity-l4-s1/tests/instance.json b/tasks/construct-rlve-bezout-identity-l4-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..81409e0c8500010a23e662e3f5dfa3bc51d81a4a --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l4-s1/tests/instance.json @@ -0,0 +1 @@ +{"A": [20, 2010, -1060, -512, 1922, -1204, -1774, 1450], "target": 2, "family": "rlve_bezout_identity", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-bezout-identity-l4-s1/tests/run.py b/tasks/construct-rlve-bezout-identity-l4-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l4-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-bezout-identity-l4-s1/tests/test.sh b/tasks/construct-rlve-bezout-identity-l4-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l4-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-bezout-identity-l4-s8/environment/Dockerfile b/tasks/construct-rlve-bezout-identity-l4-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l4-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-bezout-identity-l4-s8/environment/instance.json b/tasks/construct-rlve-bezout-identity-l4-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..9d1f3649dced824c89090f77f620e19e6bbd585f --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l4-s8/environment/instance.json @@ -0,0 +1 @@ +{"A": [1178, 1650, 1340, -388, 1148, -146, -1374, -570], "target": 2, "family": "rlve_bezout_identity", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-bezout-identity-l4-s8/solution/solve.sh b/tasks/construct-rlve-bezout-identity-l4-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..006cca05d02cc26bdc1b9f2102b700f701421436 --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l4-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"X": [409, -292, 0, 0, 0, 0, 0, 0]} +RLMATH_EOF diff --git a/tasks/construct-rlve-bezout-identity-l4-s8/tests/check.py b/tasks/construct-rlve-bezout-identity-l4-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..b4cb860ed36974a12b71adc9a0fa3f1ad85c814a --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l4-s8/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + A = inst["A"] + X = int_list(ans.get("X"), len(A), name="X") + S = sum(a * x for a, x in zip(A, X)) + if S != inst["target"]: + raise Invalid(f"S = {S}, required {inst['target']}") + return None, {} diff --git a/tasks/construct-rlve-bezout-identity-l4-s8/tests/instance.json b/tasks/construct-rlve-bezout-identity-l4-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..9d1f3649dced824c89090f77f620e19e6bbd585f --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l4-s8/tests/instance.json @@ -0,0 +1 @@ +{"A": [1178, 1650, 1340, -388, 1148, -146, -1374, -570], "target": 2, "family": "rlve_bezout_identity", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-bezout-identity-l4-s8/tests/run.py b/tasks/construct-rlve-bezout-identity-l4-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l4-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-bezout-identity-l4-s8/tests/test.sh b/tasks/construct-rlve-bezout-identity-l4-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l4-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-construct-hack-interval-l2-s3/environment/Dockerfile b/tasks/construct-rlve-construct-hack-interval-l2-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l2-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-construct-hack-interval-l2-s3/environment/instance.json b/tasks/construct-rlve-construct-hack-interval-l2-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..cc234c4b8b436e8700d1c9c7a29731e17e4c7f65 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l2-s3/environment/instance.json @@ -0,0 +1 @@ +{"mod": 2458, "family": "rlve_construct_hack_interval", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-construct-hack-interval-l2-s3/solution/solve.sh b/tasks/construct-rlve-construct-hack-interval-l2-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cad3b868afa09e644fd476b13e34e4c682d65b6 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l2-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"L": 10, "R": 265} +RLMATH_EOF diff --git a/tasks/construct-rlve-construct-hack-interval-l2-s3/tests/check.py b/tasks/construct-rlve-construct-hack-interval-l2-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..34b46e9758e3a50ed16c9c2a29cfc0abe663926b --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l2-s3/tests/check.py @@ -0,0 +1,30 @@ +from run import Invalid, as_int + + +def digit_sum_prefix(n): + """sum of digit sums of all integers in [0, n] (exact, digit DP).""" + if n <= 0: + return 0 + s = str(n) + total, prefix_sum = 0, 0 + k = len(s) + for i, ch in enumerate(s): + d = int(ch) + rest = k - i - 1 + p = 10 ** rest + # numbers with this digit < d, free suffix of `rest` digits + total += d * prefix_sum * p + (d * (d - 1) // 2) * p + d * (45 * rest * p // 10 if rest else 0) + prefix_sum += d + return total + prefix_sum # include n itself + + +def check(inst, ans): + mod = inst["mod"] + L = as_int(ans.get("L"), "L", lo=1) + R = as_int(ans.get("R"), "R", lo=1, hi=10 * mod) + if L > R: + raise Invalid("need L <= R") + total = digit_sum_prefix(R) - digit_sum_prefix(L - 1) + if total % mod: + raise Invalid(f"sum of digit sums over [L, R] is {total}, not divisible by {mod}") + return None, {} diff --git a/tasks/construct-rlve-construct-hack-interval-l2-s3/tests/instance.json b/tasks/construct-rlve-construct-hack-interval-l2-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..cc234c4b8b436e8700d1c9c7a29731e17e4c7f65 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l2-s3/tests/instance.json @@ -0,0 +1 @@ +{"mod": 2458, "family": "rlve_construct_hack_interval", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-construct-hack-interval-l2-s3/tests/run.py b/tasks/construct-rlve-construct-hack-interval-l2-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l2-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-construct-hack-interval-l2-s3/tests/test.sh b/tasks/construct-rlve-construct-hack-interval-l2-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l2-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-construct-hack-interval-l2-s4/environment/Dockerfile b/tasks/construct-rlve-construct-hack-interval-l2-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l2-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-construct-hack-interval-l2-s4/environment/instance.json b/tasks/construct-rlve-construct-hack-interval-l2-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..756b1d89e73dc052bc6cb43565a1428c683949d9 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l2-s4/environment/instance.json @@ -0,0 +1 @@ +{"mod": 2190, "family": "rlve_construct_hack_interval", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-construct-hack-interval-l2-s4/solution/solve.sh b/tasks/construct-rlve-construct-hack-interval-l2-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..b421365aba302db4cdc5357d2f36240df1065951 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l2-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"L": 3, "R": 237} +RLMATH_EOF diff --git a/tasks/construct-rlve-construct-hack-interval-l2-s4/tests/check.py b/tasks/construct-rlve-construct-hack-interval-l2-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..34b46e9758e3a50ed16c9c2a29cfc0abe663926b --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l2-s4/tests/check.py @@ -0,0 +1,30 @@ +from run import Invalid, as_int + + +def digit_sum_prefix(n): + """sum of digit sums of all integers in [0, n] (exact, digit DP).""" + if n <= 0: + return 0 + s = str(n) + total, prefix_sum = 0, 0 + k = len(s) + for i, ch in enumerate(s): + d = int(ch) + rest = k - i - 1 + p = 10 ** rest + # numbers with this digit < d, free suffix of `rest` digits + total += d * prefix_sum * p + (d * (d - 1) // 2) * p + d * (45 * rest * p // 10 if rest else 0) + prefix_sum += d + return total + prefix_sum # include n itself + + +def check(inst, ans): + mod = inst["mod"] + L = as_int(ans.get("L"), "L", lo=1) + R = as_int(ans.get("R"), "R", lo=1, hi=10 * mod) + if L > R: + raise Invalid("need L <= R") + total = digit_sum_prefix(R) - digit_sum_prefix(L - 1) + if total % mod: + raise Invalid(f"sum of digit sums over [L, R] is {total}, not divisible by {mod}") + return None, {} diff --git a/tasks/construct-rlve-construct-hack-interval-l2-s4/tests/instance.json b/tasks/construct-rlve-construct-hack-interval-l2-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..756b1d89e73dc052bc6cb43565a1428c683949d9 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l2-s4/tests/instance.json @@ -0,0 +1 @@ +{"mod": 2190, "family": "rlve_construct_hack_interval", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-construct-hack-interval-l2-s4/tests/run.py b/tasks/construct-rlve-construct-hack-interval-l2-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l2-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-construct-hack-interval-l2-s4/tests/test.sh b/tasks/construct-rlve-construct-hack-interval-l2-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l2-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-crt-l3-s5/environment/Dockerfile b/tasks/construct-rlve-crt-l3-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-crt-l3-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-crt-l3-s5/environment/instance.json b/tasks/construct-rlve-crt-l3-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6fa7661ca7249719bccc5e2bc88cb587b685b39c --- /dev/null +++ b/tasks/construct-rlve-crt-l3-s5/environment/instance.json @@ -0,0 +1 @@ +{"moduli": [174, 16, 152, 37], "residues": [33, 15, 55, 22], "family": "rlve_crt", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-crt-l3-s5/solution/solve.sh b/tasks/construct-rlve-crt-l3-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..35bd6288047a58a2d9ee163ab12022cfa41f4a60 --- /dev/null +++ b/tasks/construct-rlve-crt-l3-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": 207} +RLMATH_EOF diff --git a/tasks/construct-rlve-crt-l3-s5/tests/check.py b/tasks/construct-rlve-crt-l3-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..886d95606ef325930b24794c0959c2ba7b254ebd --- /dev/null +++ b/tasks/construct-rlve-crt-l3-s5/tests/check.py @@ -0,0 +1,11 @@ +from run import Invalid, as_int + + +def check(inst, ans): + x = as_int(ans.get("x"), "x", lo=0) + if x.bit_length() > 20000: + raise Invalid("x is unreasonably large") + for a, b in zip(inst["residues"], inst["moduli"]): + if x % b != a: + raise Invalid(f"x mod {b} = {x % b}, need {a}") + return None, {} diff --git a/tasks/construct-rlve-crt-l3-s5/tests/instance.json b/tasks/construct-rlve-crt-l3-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6fa7661ca7249719bccc5e2bc88cb587b685b39c --- /dev/null +++ b/tasks/construct-rlve-crt-l3-s5/tests/instance.json @@ -0,0 +1 @@ +{"moduli": [174, 16, 152, 37], "residues": [33, 15, 55, 22], "family": "rlve_crt", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-crt-l3-s5/tests/run.py b/tasks/construct-rlve-crt-l3-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-crt-l3-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-crt-l3-s5/tests/test.sh b/tasks/construct-rlve-crt-l3-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-crt-l3-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/environment/Dockerfile b/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/environment/instance.json b/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..bad9c4de69de02283439ecd443b04ce100b4d378 --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/environment/instance.json @@ -0,0 +1 @@ +{"A": [7, 8, 5, 1, 10, 13, 12], "family": "rlve_distinct_subset_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/solution/solve.sh b/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..04c950ff98043b7a0925af21593d935ce9b77064 --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"B": [8, 10, 7, 5, 12, 1, 13]} +RLMATH_EOF diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/tests/check.py b/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..06bbbcf872c2fca05785f40fdfdcf85a5e5a0e7c --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/tests/check.py @@ -0,0 +1,22 @@ +from collections import Counter + +from run import Invalid, int_list + + +def check(inst, ans): + A = inst["A"] + n = len(A) + B = int_list(ans.get("B"), n, name="B") + if Counter(B) != Counter(A): + raise Invalid("B is not a permutation of A") + d = [a - b for a, b in zip(A, B)] + # count subsets (including empty and full) with sum 0; the empty and full sets always qualify + ways = Counter({0: 1}) + for x in d: + nxt = Counter(ways) + for s, c in ways.items(): + nxt[s + x] += c + ways = nxt + if ways[0] != 2: + raise Invalid(f"{ways[0] - 2} non-empty proper subsets have equal sums in A and B") + return None, {} diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/tests/instance.json b/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..bad9c4de69de02283439ecd443b04ce100b4d378 --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/tests/instance.json @@ -0,0 +1 @@ +{"A": [7, 8, 5, 1, 10, 13, 12], "family": "rlve_distinct_subset_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/tests/run.py b/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/tests/test.sh b/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l2-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/environment/Dockerfile b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/environment/instance.json b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..87d94c9bb87f88ef04e21f790c3774e79e50623a --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/environment/instance.json @@ -0,0 +1 @@ +{"A": [16, 36, 2, 8, 37, 28, 42, 35, 31, 30, 33, 20, 18, 40, 25, 19, 6, 39, 27, 13, 12, 4], "family": "rlve_distinct_subset_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/solution/solve.sh b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ef6218056b5f761968b9e8eedddb14c836954ae --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"B": [18, 37, 4, 12, 39, 30, 2, 36, 33, 31, 35, 25, 19, 42, 27, 20, 8, 40, 28, 16, 13, 6]} +RLMATH_EOF diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/tests/check.py b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..06bbbcf872c2fca05785f40fdfdcf85a5e5a0e7c --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/tests/check.py @@ -0,0 +1,22 @@ +from collections import Counter + +from run import Invalid, int_list + + +def check(inst, ans): + A = inst["A"] + n = len(A) + B = int_list(ans.get("B"), n, name="B") + if Counter(B) != Counter(A): + raise Invalid("B is not a permutation of A") + d = [a - b for a, b in zip(A, B)] + # count subsets (including empty and full) with sum 0; the empty and full sets always qualify + ways = Counter({0: 1}) + for x in d: + nxt = Counter(ways) + for s, c in ways.items(): + nxt[s + x] += c + ways = nxt + if ways[0] != 2: + raise Invalid(f"{ways[0] - 2} non-empty proper subsets have equal sums in A and B") + return None, {} diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/tests/instance.json b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..87d94c9bb87f88ef04e21f790c3774e79e50623a --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/tests/instance.json @@ -0,0 +1 @@ +{"A": [16, 36, 2, 8, 37, 28, 42, 35, 31, 30, 33, 20, 18, 40, 25, 19, 6, 39, 27, 13, 12, 4], "family": "rlve_distinct_subset_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/tests/run.py b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/tests/test.sh b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/environment/Dockerfile b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/environment/instance.json b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..81132cc9f0b40e231fa44385a5b9cb6963a012af --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/environment/instance.json @@ -0,0 +1 @@ +{"A": [7, 17, 38, 26, 3, 24, 33, 2, 28, 8, 6, 41, 25, 1, 14, 35, 18, 21, 43, 36, 5, 16], "family": "rlve_distinct_subset_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/solution/solve.sh b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..02b89865d2aa00caefd4db838132fa411b8b85ad --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"B": [8, 18, 41, 28, 5, 25, 35, 3, 33, 14, 7, 43, 26, 2, 16, 36, 21, 24, 1, 38, 6, 17]} +RLMATH_EOF diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/tests/check.py b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..06bbbcf872c2fca05785f40fdfdcf85a5e5a0e7c --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/tests/check.py @@ -0,0 +1,22 @@ +from collections import Counter + +from run import Invalid, int_list + + +def check(inst, ans): + A = inst["A"] + n = len(A) + B = int_list(ans.get("B"), n, name="B") + if Counter(B) != Counter(A): + raise Invalid("B is not a permutation of A") + d = [a - b for a, b in zip(A, B)] + # count subsets (including empty and full) with sum 0; the empty and full sets always qualify + ways = Counter({0: 1}) + for x in d: + nxt = Counter(ways) + for s, c in ways.items(): + nxt[s + x] += c + ways = nxt + if ways[0] != 2: + raise Invalid(f"{ways[0] - 2} non-empty proper subsets have equal sums in A and B") + return None, {} diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/tests/instance.json b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..81132cc9f0b40e231fa44385a5b9cb6963a012af --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/tests/instance.json @@ -0,0 +1 @@ +{"A": [7, 17, 38, 26, 3, 24, 33, 2, 28, 8, 6, 41, 25, 1, 14, 35, 18, 21, 43, 36, 5, 16], "family": "rlve_distinct_subset_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/tests/run.py b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/tests/test.sh b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l6-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-even-degree-partition-l3-s2/environment/Dockerfile b/tasks/construct-rlve-even-degree-partition-l3-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l3-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-even-degree-partition-l3-s2/environment/instance.json b/tasks/construct-rlve-even-degree-partition-l3-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c2edf2c322e4d8195845fca3bd07a83510c341ec --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l3-s2/environment/instance.json @@ -0,0 +1 @@ +{"n": 12, "edges": [[0, 2], [0, 3], [0, 9], [0, 11], [1, 2], [1, 3], [1, 5], [1, 6], [1, 8], [2, 3], [2, 5], [2, 8], [2, 9], [3, 4], [3, 5], [3, 7], [3, 8], [3, 10], [3, 11], [4, 6], [4, 7], [4, 9], [5, 6], [5, 7], [5, 8], [5, 11], [6, 8], [6, 9], [6, 10], [6, 11], [7, 8], [7, 9], [7, 11], [8, 9], [8, 11], [9, 10], [9, 11], [10, 11]], "family": "rlve_even_degree_partition", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-even-degree-partition-l3-s2/solution/solve.sh b/tasks/construct-rlve-even-degree-partition-l3-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d718b12c9bd4e926995307312bd7956f59918fe --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l3-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"groups": [1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1]} +RLMATH_EOF diff --git a/tasks/construct-rlve-even-degree-partition-l3-s2/tests/check.py b/tasks/construct-rlve-even-degree-partition-l3-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..9c7f0f71ea6d10264ececcc933b97a4a0e6eaf8e --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l3-s2/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + g = int_list(ans.get("groups"), n, 1, 2, "groups") + deg = [0] * n + for u, v in inst["edges"]: + if g[u] == g[v]: + deg[u] += 1 + deg[v] += 1 + for v in range(n): + if deg[v] % 2: + raise Invalid(f"vertex {v} has {deg[v]} same-group neighbours") + return None, {} diff --git a/tasks/construct-rlve-even-degree-partition-l3-s2/tests/instance.json b/tasks/construct-rlve-even-degree-partition-l3-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c2edf2c322e4d8195845fca3bd07a83510c341ec --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l3-s2/tests/instance.json @@ -0,0 +1 @@ +{"n": 12, "edges": [[0, 2], [0, 3], [0, 9], [0, 11], [1, 2], [1, 3], [1, 5], [1, 6], [1, 8], [2, 3], [2, 5], [2, 8], [2, 9], [3, 4], [3, 5], [3, 7], [3, 8], [3, 10], [3, 11], [4, 6], [4, 7], [4, 9], [5, 6], [5, 7], [5, 8], [5, 11], [6, 8], [6, 9], [6, 10], [6, 11], [7, 8], [7, 9], [7, 11], [8, 9], [8, 11], [9, 10], [9, 11], [10, 11]], "family": "rlve_even_degree_partition", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-even-degree-partition-l3-s2/tests/run.py b/tasks/construct-rlve-even-degree-partition-l3-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l3-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-even-degree-partition-l3-s2/tests/test.sh b/tasks/construct-rlve-even-degree-partition-l3-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l3-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-even-degree-partition-l3-s5/environment/Dockerfile b/tasks/construct-rlve-even-degree-partition-l3-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l3-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-even-degree-partition-l3-s5/environment/instance.json b/tasks/construct-rlve-even-degree-partition-l3-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b32a380149e146b45a26082c6209bb646c1e2fd8 --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l3-s5/environment/instance.json @@ -0,0 +1 @@ +{"n": 12, "edges": [[0, 1], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 4], [1, 6], [1, 7], [1, 8], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [3, 4], [3, 5], [3, 6], [3, 10], [4, 5], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [5, 6], [5, 7], [5, 8], [5, 10], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [7, 8], [7, 10], [8, 10]], "family": "rlve_even_degree_partition", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-even-degree-partition-l3-s5/solution/solve.sh b/tasks/construct-rlve-even-degree-partition-l3-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..f11ff25be7aa9813d0d856209cee3880506b09d1 --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l3-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"groups": [1, 2, 1, 2, 1, 2, 1, 2, 2, 2, 2, 2]} +RLMATH_EOF diff --git a/tasks/construct-rlve-even-degree-partition-l3-s5/tests/check.py b/tasks/construct-rlve-even-degree-partition-l3-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..9c7f0f71ea6d10264ececcc933b97a4a0e6eaf8e --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l3-s5/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + g = int_list(ans.get("groups"), n, 1, 2, "groups") + deg = [0] * n + for u, v in inst["edges"]: + if g[u] == g[v]: + deg[u] += 1 + deg[v] += 1 + for v in range(n): + if deg[v] % 2: + raise Invalid(f"vertex {v} has {deg[v]} same-group neighbours") + return None, {} diff --git a/tasks/construct-rlve-even-degree-partition-l3-s5/tests/instance.json b/tasks/construct-rlve-even-degree-partition-l3-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b32a380149e146b45a26082c6209bb646c1e2fd8 --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l3-s5/tests/instance.json @@ -0,0 +1 @@ +{"n": 12, "edges": [[0, 1], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 4], [1, 6], [1, 7], [1, 8], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [3, 4], [3, 5], [3, 6], [3, 10], [4, 5], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [5, 6], [5, 7], [5, 8], [5, 10], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [7, 8], [7, 10], [8, 10]], "family": "rlve_even_degree_partition", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-even-degree-partition-l3-s5/tests/run.py b/tasks/construct-rlve-even-degree-partition-l3-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l3-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-even-degree-partition-l3-s5/tests/test.sh b/tasks/construct-rlve-even-degree-partition-l3-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l3-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-graph-isomorphism-l1-s0/environment/Dockerfile b/tasks/construct-rlve-graph-isomorphism-l1-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l1-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-graph-isomorphism-l1-s0/environment/instance.json b/tasks/construct-rlve-graph-isomorphism-l1-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..e6cc32fc6d02f018331b841ba7ee8fb0600981eb --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l1-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 5, "edges1": [[1, 4], [2, 3], [2, 4], [1, 3], [0, 3]], "edges2": [[1, 4], [1, 3], [2, 3], [0, 3], [0, 4]], "family": "rlve_graph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-graph-isomorphism-l1-s0/solution/solve.sh b/tasks/construct-rlve-graph-isomorphism-l1-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..39b0ca013876ea7bc2d5560196f9a4d909dfba81 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l1-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"p": [2, 0, 1, 3, 4]} +RLMATH_EOF diff --git a/tasks/construct-rlve-graph-isomorphism-l1-s0/tests/check.py b/tasks/construct-rlve-graph-isomorphism-l1-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..64b755f5ab12e7270811ccfc2f02d104715517b7 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l1-s0/tests/check.py @@ -0,0 +1,13 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + p = int_list(ans.get("p"), n, 0, n - 1, "p") + if len(set(p)) != n: + raise Invalid("p is not a permutation") + e2 = {(min(u, v), max(u, v)) for u, v in inst["edges2"]} + img = {(min(p[u], p[v]), max(p[u], p[v])) for u, v in inst["edges1"]} + if img != e2: + raise Invalid(f"{len(img - e2)} edges of G1 are not mapped onto edges of G2") + return None, {} diff --git a/tasks/construct-rlve-graph-isomorphism-l1-s0/tests/instance.json b/tasks/construct-rlve-graph-isomorphism-l1-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..e6cc32fc6d02f018331b841ba7ee8fb0600981eb --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l1-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 5, "edges1": [[1, 4], [2, 3], [2, 4], [1, 3], [0, 3]], "edges2": [[1, 4], [1, 3], [2, 3], [0, 3], [0, 4]], "family": "rlve_graph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-graph-isomorphism-l1-s0/tests/run.py b/tasks/construct-rlve-graph-isomorphism-l1-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l1-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-graph-isomorphism-l1-s0/tests/test.sh b/tasks/construct-rlve-graph-isomorphism-l1-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l1-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-graph-isomorphism-l1-s7/environment/Dockerfile b/tasks/construct-rlve-graph-isomorphism-l1-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l1-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-graph-isomorphism-l1-s7/environment/instance.json b/tasks/construct-rlve-graph-isomorphism-l1-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..99adac51cd75d2d855d52f42a4e4dfa2770566b3 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l1-s7/environment/instance.json @@ -0,0 +1 @@ +{"n": 5, "edges1": [[1, 2], [1, 3], [3, 4], [0, 1], [2, 4]], "edges2": [[0, 4], [3, 4], [1, 2], [2, 4], [0, 1]], "family": "rlve_graph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-graph-isomorphism-l1-s7/solution/solve.sh b/tasks/construct-rlve-graph-isomorphism-l1-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a74af47e1c5d0ff06cc6b6b3e4bdd67f3228f40 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l1-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"p": [3, 4, 0, 2, 1]} +RLMATH_EOF diff --git a/tasks/construct-rlve-graph-isomorphism-l1-s7/tests/check.py b/tasks/construct-rlve-graph-isomorphism-l1-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..64b755f5ab12e7270811ccfc2f02d104715517b7 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l1-s7/tests/check.py @@ -0,0 +1,13 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + p = int_list(ans.get("p"), n, 0, n - 1, "p") + if len(set(p)) != n: + raise Invalid("p is not a permutation") + e2 = {(min(u, v), max(u, v)) for u, v in inst["edges2"]} + img = {(min(p[u], p[v]), max(p[u], p[v])) for u, v in inst["edges1"]} + if img != e2: + raise Invalid(f"{len(img - e2)} edges of G1 are not mapped onto edges of G2") + return None, {} diff --git a/tasks/construct-rlve-graph-isomorphism-l1-s7/tests/instance.json b/tasks/construct-rlve-graph-isomorphism-l1-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..99adac51cd75d2d855d52f42a4e4dfa2770566b3 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l1-s7/tests/instance.json @@ -0,0 +1 @@ +{"n": 5, "edges1": [[1, 2], [1, 3], [3, 4], [0, 1], [2, 4]], "edges2": [[0, 4], [3, 4], [1, 2], [2, 4], [0, 1]], "family": "rlve_graph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-graph-isomorphism-l1-s7/tests/run.py b/tasks/construct-rlve-graph-isomorphism-l1-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l1-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-graph-isomorphism-l1-s7/tests/test.sh b/tasks/construct-rlve-graph-isomorphism-l1-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l1-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-graph-isomorphism-l5-s1/environment/Dockerfile b/tasks/construct-rlve-graph-isomorphism-l5-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l5-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-graph-isomorphism-l5-s1/environment/instance.json b/tasks/construct-rlve-graph-isomorphism-l5-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..45897192fc53b2689277945818cd0d6f6165f8d3 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l5-s1/environment/instance.json @@ -0,0 +1 @@ +{"n": 26, "edges1": [[4, 14], [7, 14], [6, 8], [4, 13], [15, 25], [5, 11], [0, 9], [19, 21], [0, 16], [11, 21], [5, 14], [2, 4], [1, 12], [11, 13], [1, 25], [14, 17], [10, 17], [2, 18], [2, 19], [6, 21], [7, 9], [11, 25], [7, 10], [4, 7], [10, 13], [0, 10], [1, 22], [8, 24], [10, 18], [7, 17], [2, 25], [6, 18], [4, 19], [12, 23], [17, 20], [0, 19], [8, 23], [14, 21], [1, 10], [10, 22], [13, 23], [4, 10], [1, 21], [16, 25], [10, 15], [13, 21], [22, 23], [18, 24]], "edges2": [[19, 23], [15, 16], [7, 15], [20, 22], [13, 20], [7, 24], [0, 6], [0, 16], [11, 15], [12, 15], [5, 24], [8, 16], [14, 17], [9, 14], [12, 22], [6, 18], [3, 16], [10, 19], [3, 7], [8, 12], [6, 20], [17, 20], [3, 9], [1, 15], [4, 10], [4, 13], [15, 22], [3, 20], [20, 24], [3, 6], [2, 11], [4, 22], [1, 10], [11, 13], [12, 14], [18, 24], [1, 23], [20, 23], [2, 4], [3, 22], [6, 16], [5, 14], [0, 25], [11, 20], [0, 20], [11, 14], [7, 9], [9, 23]], "family": "rlve_graph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-graph-isomorphism-l5-s1/solution/solve.sh b/tasks/construct-rlve-graph-isomorphism-l5-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5db111dd6052f37b845bccee1c91f755c5a78d8 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l5-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"p": [24, 11, 9, 21, 3, 8, 1, 6, 10, 18, 20, 12, 2, 22, 16, 17, 5, 0, 23, 7, 25, 15, 13, 4, 19, 14]} +RLMATH_EOF diff --git a/tasks/construct-rlve-graph-isomorphism-l5-s1/tests/check.py b/tasks/construct-rlve-graph-isomorphism-l5-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..64b755f5ab12e7270811ccfc2f02d104715517b7 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l5-s1/tests/check.py @@ -0,0 +1,13 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + p = int_list(ans.get("p"), n, 0, n - 1, "p") + if len(set(p)) != n: + raise Invalid("p is not a permutation") + e2 = {(min(u, v), max(u, v)) for u, v in inst["edges2"]} + img = {(min(p[u], p[v]), max(p[u], p[v])) for u, v in inst["edges1"]} + if img != e2: + raise Invalid(f"{len(img - e2)} edges of G1 are not mapped onto edges of G2") + return None, {} diff --git a/tasks/construct-rlve-graph-isomorphism-l5-s1/tests/instance.json b/tasks/construct-rlve-graph-isomorphism-l5-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..45897192fc53b2689277945818cd0d6f6165f8d3 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l5-s1/tests/instance.json @@ -0,0 +1 @@ +{"n": 26, "edges1": [[4, 14], [7, 14], [6, 8], [4, 13], [15, 25], [5, 11], [0, 9], [19, 21], [0, 16], [11, 21], [5, 14], [2, 4], [1, 12], [11, 13], [1, 25], [14, 17], [10, 17], [2, 18], [2, 19], [6, 21], [7, 9], [11, 25], [7, 10], [4, 7], [10, 13], [0, 10], [1, 22], [8, 24], [10, 18], [7, 17], [2, 25], [6, 18], [4, 19], [12, 23], [17, 20], [0, 19], [8, 23], [14, 21], [1, 10], [10, 22], [13, 23], [4, 10], [1, 21], [16, 25], [10, 15], [13, 21], [22, 23], [18, 24]], "edges2": [[19, 23], [15, 16], [7, 15], [20, 22], [13, 20], [7, 24], [0, 6], [0, 16], [11, 15], [12, 15], [5, 24], [8, 16], [14, 17], [9, 14], [12, 22], [6, 18], [3, 16], [10, 19], [3, 7], [8, 12], [6, 20], [17, 20], [3, 9], [1, 15], [4, 10], [4, 13], [15, 22], [3, 20], [20, 24], [3, 6], [2, 11], [4, 22], [1, 10], [11, 13], [12, 14], [18, 24], [1, 23], [20, 23], [2, 4], [3, 22], [6, 16], [5, 14], [0, 25], [11, 20], [0, 20], [11, 14], [7, 9], [9, 23]], "family": "rlve_graph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-graph-isomorphism-l5-s1/tests/run.py b/tasks/construct-rlve-graph-isomorphism-l5-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l5-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-graph-isomorphism-l5-s1/tests/test.sh b/tasks/construct-rlve-graph-isomorphism-l5-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l5-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-graph-isomorphism-l5-s8/environment/Dockerfile b/tasks/construct-rlve-graph-isomorphism-l5-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l5-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-graph-isomorphism-l5-s8/environment/instance.json b/tasks/construct-rlve-graph-isomorphism-l5-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ec8e78d06d8db865b578bbd88a39380e0ad47b9b --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l5-s8/environment/instance.json @@ -0,0 +1 @@ +{"n": 26, "edges1": [[4, 9], [7, 25], [2, 5], [12, 22], [12, 23], [4, 25], [13, 17], [6, 18], [0, 4], [4, 20], [18, 19], [20, 25], [20, 22], [6, 12], [3, 24], [2, 18], [0, 19], [4, 19], [19, 21], [24, 25], [16, 17], [12, 20], [6, 13], [22, 25], [17, 25], [3, 14], [0, 3], [3, 16], [18, 25], [11, 22], [16, 24], [9, 17], [14, 18], [7, 18], [10, 12], [18, 21], [12, 13], [20, 23], [6, 23], [0, 17], [0, 22], [0, 5], [2, 4], [23, 24], [0, 24], [5, 8], [8, 10], [1, 3], [6, 14], [12, 18], [1, 20], [7, 15], [17, 18], [5, 7], [3, 8], [4, 22], [9, 10], [16, 25], [1, 21], [5, 19], [6, 9], [8, 25], [3, 25], [1, 10], [4, 17], [9, 13], [14, 20], [7, 24], [0, 8], [15, 23], [3, 19], [6, 8], [4, 12], [8, 11], [11, 12], [8, 13], [4, 16], [2, 20], [3, 17], [1, 16], [22, 24], [17, 20], [10, 18], [3, 9], [2, 11], [1, 4], [5, 16], [11, 13], [0, 12], [1, 17], [14, 15], [3, 4], [10, 14], [10, 16], [2, 19], [17, 19], [2, 15], [4, 21], [3, 22], [11, 18], [6, 11], [6, 24], [13, 16], [10, 25], [12, 25], [17, 23], [5, 12], [11, 19], [3, 18], [2, 8], [10, 11], [14, 25], [3, 11]], "edges2": [[7, 14], [11, 23], [5, 10], [0, 15], [2, 21], [0, 23], [4, 8], [14, 25], [15, 22], [0, 13], [15, 16], [8, 16], [1, 12], [18, 22], [0, 14], [1, 2], [3, 10], [0, 6], [18, 24], [2, 5], [10, 16], [10, 23], [3, 15], [17, 18], [18, 20], [11, 14], [1, 4], [1, 21], [0, 10], [3, 18], [0, 18], [6, 23], [1, 10], [13, 25], [14, 24], [19, 24], [14, 15], [11, 20], [0, 11], [3, 14], [8, 23], [7, 15], [4, 10], [1, 3], [6, 9], [15, 18], [0, 22], [5, 7], [1, 5], [15, 25], [2, 12], [3, 17], [6, 14], [12, 20], [9, 22], [1, 14], [20, 25], [10, 20], [21, 22], [8, 17], [8, 18], [16, 19], [2, 4], [4, 16], [0, 7], [18, 21], [2, 9], [0, 12], [14, 22], [10, 18], [2, 18], [15, 20], [9, 10], [9, 23], [8, 14], [5, 22], [0, 25], [20, 24], [21, 25], [3, 13], [6, 12], [6, 13], [12, 19], [2, 23], [10, 21], [15, 23], [1, 11], [3, 21], [6, 15], [8, 22], [11, 18], [21, 24], [14, 23], [16, 20], [4, 24], [3, 6], [8, 11], [0, 20], [4, 7], [10, 11], [14, 18], [7, 21], [17, 19], [3, 4], [9, 17], [4, 5], [22, 25], [5, 15], [3, 24], [3, 12], [2, 14], [9, 12], [1, 6]], "family": "rlve_graph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-graph-isomorphism-l5-s8/solution/solve.sh b/tasks/construct-rlve-graph-isomorphism-l5-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec1c37fd9c427cc425c5ccd566c0926051148288 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l5-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"p": [23, 25, 12, 14, 0, 9, 4, 17, 2, 7, 21, 1, 10, 5, 24, 19, 22, 15, 3, 6, 20, 13, 11, 16, 8, 18]} +RLMATH_EOF diff --git a/tasks/construct-rlve-graph-isomorphism-l5-s8/tests/check.py b/tasks/construct-rlve-graph-isomorphism-l5-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..64b755f5ab12e7270811ccfc2f02d104715517b7 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l5-s8/tests/check.py @@ -0,0 +1,13 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + p = int_list(ans.get("p"), n, 0, n - 1, "p") + if len(set(p)) != n: + raise Invalid("p is not a permutation") + e2 = {(min(u, v), max(u, v)) for u, v in inst["edges2"]} + img = {(min(p[u], p[v]), max(p[u], p[v])) for u, v in inst["edges1"]} + if img != e2: + raise Invalid(f"{len(img - e2)} edges of G1 are not mapped onto edges of G2") + return None, {} diff --git a/tasks/construct-rlve-graph-isomorphism-l5-s8/tests/instance.json b/tasks/construct-rlve-graph-isomorphism-l5-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ec8e78d06d8db865b578bbd88a39380e0ad47b9b --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l5-s8/tests/instance.json @@ -0,0 +1 @@ +{"n": 26, "edges1": [[4, 9], [7, 25], [2, 5], [12, 22], [12, 23], [4, 25], [13, 17], [6, 18], [0, 4], [4, 20], [18, 19], [20, 25], [20, 22], [6, 12], [3, 24], [2, 18], [0, 19], [4, 19], [19, 21], [24, 25], [16, 17], [12, 20], [6, 13], [22, 25], [17, 25], [3, 14], [0, 3], [3, 16], [18, 25], [11, 22], [16, 24], [9, 17], [14, 18], [7, 18], [10, 12], [18, 21], [12, 13], [20, 23], [6, 23], [0, 17], [0, 22], [0, 5], [2, 4], [23, 24], [0, 24], [5, 8], [8, 10], [1, 3], [6, 14], [12, 18], [1, 20], [7, 15], [17, 18], [5, 7], [3, 8], [4, 22], [9, 10], [16, 25], [1, 21], [5, 19], [6, 9], [8, 25], [3, 25], [1, 10], [4, 17], [9, 13], [14, 20], [7, 24], [0, 8], [15, 23], [3, 19], [6, 8], [4, 12], [8, 11], [11, 12], [8, 13], [4, 16], [2, 20], [3, 17], [1, 16], [22, 24], [17, 20], [10, 18], [3, 9], [2, 11], [1, 4], [5, 16], [11, 13], [0, 12], [1, 17], [14, 15], [3, 4], [10, 14], [10, 16], [2, 19], [17, 19], [2, 15], [4, 21], [3, 22], [11, 18], [6, 11], [6, 24], [13, 16], [10, 25], [12, 25], [17, 23], [5, 12], [11, 19], [3, 18], [2, 8], [10, 11], [14, 25], [3, 11]], "edges2": [[7, 14], [11, 23], [5, 10], [0, 15], [2, 21], [0, 23], [4, 8], [14, 25], [15, 22], [0, 13], [15, 16], [8, 16], [1, 12], [18, 22], [0, 14], [1, 2], [3, 10], [0, 6], [18, 24], [2, 5], [10, 16], [10, 23], [3, 15], [17, 18], [18, 20], [11, 14], [1, 4], [1, 21], [0, 10], [3, 18], [0, 18], [6, 23], [1, 10], [13, 25], [14, 24], [19, 24], [14, 15], [11, 20], [0, 11], [3, 14], [8, 23], [7, 15], [4, 10], [1, 3], [6, 9], [15, 18], [0, 22], [5, 7], [1, 5], [15, 25], [2, 12], [3, 17], [6, 14], [12, 20], [9, 22], [1, 14], [20, 25], [10, 20], [21, 22], [8, 17], [8, 18], [16, 19], [2, 4], [4, 16], [0, 7], [18, 21], [2, 9], [0, 12], [14, 22], [10, 18], [2, 18], [15, 20], [9, 10], [9, 23], [8, 14], [5, 22], [0, 25], [20, 24], [21, 25], [3, 13], [6, 12], [6, 13], [12, 19], [2, 23], [10, 21], [15, 23], [1, 11], [3, 21], [6, 15], [8, 22], [11, 18], [21, 24], [14, 23], [16, 20], [4, 24], [3, 6], [8, 11], [0, 20], [4, 7], [10, 11], [14, 18], [7, 21], [17, 19], [3, 4], [9, 17], [4, 5], [22, 25], [5, 15], [3, 24], [3, 12], [2, 14], [9, 12], [1, 6]], "family": "rlve_graph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-graph-isomorphism-l5-s8/tests/run.py b/tasks/construct-rlve-graph-isomorphism-l5-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l5-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-graph-isomorphism-l5-s8/tests/test.sh b/tasks/construct-rlve-graph-isomorphism-l5-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l5-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-grid-parity-construction-l1-s7/environment/Dockerfile b/tasks/construct-rlve-grid-parity-construction-l1-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l1-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-grid-parity-construction-l1-s7/environment/instance.json b/tasks/construct-rlve-grid-parity-construction-l1-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a1728a97935825b1960680afc5e572e7d363334a --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l1-s7/environment/instance.json @@ -0,0 +1 @@ +{"parity": ["101", "110", "011"], "family": "rlve_grid_parity_construction", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-grid-parity-construction-l1-s7/solution/solve.sh b/tasks/construct-rlve-grid-parity-construction-l1-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..482a2fc8f3fe3082ee014614e4a6c3c6c235a1c7 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l1-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"grid": ["111", "111", "011"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-grid-parity-construction-l1-s7/tests/check.py b/tasks/construct-rlve-grid-parity-construction-l1-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..89d5d286593348d0000ac10db74e1c6242be6c97 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l1-s7/tests/check.py @@ -0,0 +1,22 @@ +from run import Invalid + + +def check(inst, ans): + P = inst["parity"] + N, M = len(P), len(P[0]) + G = ans.get("grid") + if not isinstance(G, list) or len(G) != N: + raise Invalid(f"grid must be a list of {N} strings") + for r in G: + if not isinstance(r, str) or len(r) != M or set(r) - {"0", "1"}: + raise Invalid(f"each row must be a string of {M} characters '0'/'1'") + for i in range(N): + for j in range(M): + v = int(G[i][j]) + for di, dj in ((-1, 0), (1, 0), (0, -1), (0, 1)): + a, b = i + di, j + dj + if 0 <= a < N and 0 <= b < M: + v ^= int(G[a][b]) + if v != int(P[i][j]): + raise Invalid(f"parity mismatch at ({i}, {j})") + return None, {} diff --git a/tasks/construct-rlve-grid-parity-construction-l1-s7/tests/instance.json b/tasks/construct-rlve-grid-parity-construction-l1-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a1728a97935825b1960680afc5e572e7d363334a --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l1-s7/tests/instance.json @@ -0,0 +1 @@ +{"parity": ["101", "110", "011"], "family": "rlve_grid_parity_construction", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-grid-parity-construction-l1-s7/tests/run.py b/tasks/construct-rlve-grid-parity-construction-l1-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l1-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-grid-parity-construction-l1-s7/tests/test.sh b/tasks/construct-rlve-grid-parity-construction-l1-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l1-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-grid-parity-construction-l1-s9/environment/Dockerfile b/tasks/construct-rlve-grid-parity-construction-l1-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l1-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-grid-parity-construction-l1-s9/environment/instance.json b/tasks/construct-rlve-grid-parity-construction-l1-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5ff69843b4840d83f325be926f652ceb1e8dcf68 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l1-s9/environment/instance.json @@ -0,0 +1 @@ +{"parity": ["100", "110", "001"], "family": "rlve_grid_parity_construction", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-grid-parity-construction-l1-s9/solution/solve.sh b/tasks/construct-rlve-grid-parity-construction-l1-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..12181cd3f49ec6d1642b58ea57650426b621380a --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l1-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"grid": ["101", "001", "000"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-grid-parity-construction-l1-s9/tests/check.py b/tasks/construct-rlve-grid-parity-construction-l1-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..89d5d286593348d0000ac10db74e1c6242be6c97 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l1-s9/tests/check.py @@ -0,0 +1,22 @@ +from run import Invalid + + +def check(inst, ans): + P = inst["parity"] + N, M = len(P), len(P[0]) + G = ans.get("grid") + if not isinstance(G, list) or len(G) != N: + raise Invalid(f"grid must be a list of {N} strings") + for r in G: + if not isinstance(r, str) or len(r) != M or set(r) - {"0", "1"}: + raise Invalid(f"each row must be a string of {M} characters '0'/'1'") + for i in range(N): + for j in range(M): + v = int(G[i][j]) + for di, dj in ((-1, 0), (1, 0), (0, -1), (0, 1)): + a, b = i + di, j + dj + if 0 <= a < N and 0 <= b < M: + v ^= int(G[a][b]) + if v != int(P[i][j]): + raise Invalid(f"parity mismatch at ({i}, {j})") + return None, {} diff --git a/tasks/construct-rlve-grid-parity-construction-l1-s9/tests/instance.json b/tasks/construct-rlve-grid-parity-construction-l1-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5ff69843b4840d83f325be926f652ceb1e8dcf68 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l1-s9/tests/instance.json @@ -0,0 +1 @@ +{"parity": ["100", "110", "001"], "family": "rlve_grid_parity_construction", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-grid-parity-construction-l1-s9/tests/run.py b/tasks/construct-rlve-grid-parity-construction-l1-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l1-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-grid-parity-construction-l1-s9/tests/test.sh b/tasks/construct-rlve-grid-parity-construction-l1-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l1-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s1/environment/Dockerfile b/tasks/construct-rlve-grid-parity-construction-l5-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s1/environment/instance.json b/tasks/construct-rlve-grid-parity-construction-l5-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..aaff475e165ee1264afd835e102f16d21dd9c61c --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s1/environment/instance.json @@ -0,0 +1 @@ +{"parity": ["00", "10", "11", "00", "01", "00", "01", "01", "01", "10", "10", "01", "00", "00", "00"], "family": "rlve_grid_parity_construction", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s1/solution/solve.sh b/tasks/construct-rlve-grid-parity-construction-l5-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..18fbc28e74e9aae2ac37e36a49a725f312590f3e --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"grid": ["00", "00", "10", "00", "10", "10", "01", "00", "00", "01", "01", "00", "00", "00", "00"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s1/tests/check.py b/tasks/construct-rlve-grid-parity-construction-l5-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..89d5d286593348d0000ac10db74e1c6242be6c97 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s1/tests/check.py @@ -0,0 +1,22 @@ +from run import Invalid + + +def check(inst, ans): + P = inst["parity"] + N, M = len(P), len(P[0]) + G = ans.get("grid") + if not isinstance(G, list) or len(G) != N: + raise Invalid(f"grid must be a list of {N} strings") + for r in G: + if not isinstance(r, str) or len(r) != M or set(r) - {"0", "1"}: + raise Invalid(f"each row must be a string of {M} characters '0'/'1'") + for i in range(N): + for j in range(M): + v = int(G[i][j]) + for di, dj in ((-1, 0), (1, 0), (0, -1), (0, 1)): + a, b = i + di, j + dj + if 0 <= a < N and 0 <= b < M: + v ^= int(G[a][b]) + if v != int(P[i][j]): + raise Invalid(f"parity mismatch at ({i}, {j})") + return None, {} diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s1/tests/instance.json b/tasks/construct-rlve-grid-parity-construction-l5-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..aaff475e165ee1264afd835e102f16d21dd9c61c --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s1/tests/instance.json @@ -0,0 +1 @@ +{"parity": ["00", "10", "11", "00", "01", "00", "01", "01", "01", "10", "10", "01", "00", "00", "00"], "family": "rlve_grid_parity_construction", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s1/tests/run.py b/tasks/construct-rlve-grid-parity-construction-l5-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s1/tests/test.sh b/tasks/construct-rlve-grid-parity-construction-l5-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s6/environment/Dockerfile b/tasks/construct-rlve-grid-parity-construction-l5-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s6/environment/instance.json b/tasks/construct-rlve-grid-parity-construction-l5-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..7dec61f260c8e3668d5b3c8e4351d218f4e032bf --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s6/environment/instance.json @@ -0,0 +1 @@ +{"parity": ["100011", "000001", "001110", "011010", "010010", "100101", "010010", "001000", "010100", "010000", "100011", "111100", "011010", "100000"], "family": "rlve_grid_parity_construction", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s6/solution/solve.sh b/tasks/construct-rlve-grid-parity-construction-l5-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1bb5a0572bb9f68587aa5b452ca3e0aef5dd2a2 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"grid": ["101000", "001111", "111111", "011111", "001011", "010101", "011011", "100111", "101001", "011100", "010011", "000011", "101011", "110001"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s6/tests/check.py b/tasks/construct-rlve-grid-parity-construction-l5-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..89d5d286593348d0000ac10db74e1c6242be6c97 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s6/tests/check.py @@ -0,0 +1,22 @@ +from run import Invalid + + +def check(inst, ans): + P = inst["parity"] + N, M = len(P), len(P[0]) + G = ans.get("grid") + if not isinstance(G, list) or len(G) != N: + raise Invalid(f"grid must be a list of {N} strings") + for r in G: + if not isinstance(r, str) or len(r) != M or set(r) - {"0", "1"}: + raise Invalid(f"each row must be a string of {M} characters '0'/'1'") + for i in range(N): + for j in range(M): + v = int(G[i][j]) + for di, dj in ((-1, 0), (1, 0), (0, -1), (0, 1)): + a, b = i + di, j + dj + if 0 <= a < N and 0 <= b < M: + v ^= int(G[a][b]) + if v != int(P[i][j]): + raise Invalid(f"parity mismatch at ({i}, {j})") + return None, {} diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s6/tests/instance.json b/tasks/construct-rlve-grid-parity-construction-l5-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..7dec61f260c8e3668d5b3c8e4351d218f4e032bf --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s6/tests/instance.json @@ -0,0 +1 @@ +{"parity": ["100011", "000001", "001110", "011010", "010010", "100101", "010010", "001000", "010100", "010000", "100011", "111100", "011010", "100000"], "family": "rlve_grid_parity_construction", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s6/tests/run.py b/tasks/construct-rlve-grid-parity-construction-l5-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s6/tests/test.sh b/tasks/construct-rlve-grid-parity-construction-l5-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s8/environment/Dockerfile b/tasks/construct-rlve-grid-parity-construction-l5-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s8/environment/instance.json b/tasks/construct-rlve-grid-parity-construction-l5-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..76434dde6a4bafd807a82197b21dc5b568b4e2b7 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s8/environment/instance.json @@ -0,0 +1 @@ +{"parity": ["100111011000010", "101111010001101"], "family": "rlve_grid_parity_construction", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s8/solution/solve.sh b/tasks/construct-rlve-grid-parity-construction-l5-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f537e2353d8b5348d67e98ae8215d05a9e79f2e --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"grid": ["111110101111101", "111011111111011"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s8/tests/check.py b/tasks/construct-rlve-grid-parity-construction-l5-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..89d5d286593348d0000ac10db74e1c6242be6c97 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s8/tests/check.py @@ -0,0 +1,22 @@ +from run import Invalid + + +def check(inst, ans): + P = inst["parity"] + N, M = len(P), len(P[0]) + G = ans.get("grid") + if not isinstance(G, list) or len(G) != N: + raise Invalid(f"grid must be a list of {N} strings") + for r in G: + if not isinstance(r, str) or len(r) != M or set(r) - {"0", "1"}: + raise Invalid(f"each row must be a string of {M} characters '0'/'1'") + for i in range(N): + for j in range(M): + v = int(G[i][j]) + for di, dj in ((-1, 0), (1, 0), (0, -1), (0, 1)): + a, b = i + di, j + dj + if 0 <= a < N and 0 <= b < M: + v ^= int(G[a][b]) + if v != int(P[i][j]): + raise Invalid(f"parity mismatch at ({i}, {j})") + return None, {} diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s8/tests/instance.json b/tasks/construct-rlve-grid-parity-construction-l5-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..76434dde6a4bafd807a82197b21dc5b568b4e2b7 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s8/tests/instance.json @@ -0,0 +1 @@ +{"parity": ["100111011000010", "101111010001101"], "family": "rlve_grid_parity_construction", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s8/tests/run.py b/tasks/construct-rlve-grid-parity-construction-l5-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-grid-parity-construction-l5-s8/tests/test.sh b/tasks/construct-rlve-grid-parity-construction-l5-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l5-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-imp-party-l3-s1/environment/Dockerfile b/tasks/construct-rlve-imp-party-l3-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l3-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-imp-party-l3-s1/environment/instance.json b/tasks/construct-rlve-imp-party-l3-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2cbc414a8fc60f54c74f02f6ba459177bbadf2bc --- /dev/null +++ b/tasks/construct-rlve-imp-party-l3-s1/environment/instance.json @@ -0,0 +1 @@ +{"n": 8, "edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 22], [1, 23], [2, 3], [2, 4], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [3, 4], [3, 7], [3, 9], [3, 10], [3, 11], [3, 15], [3, 16], [3, 18], [3, 19], [3, 22], [4, 5], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 14], [4, 15], [4, 16], [4, 17], [4, 18], [4, 19], [4, 20], [4, 21], [4, 22], [4, 23], [5, 7], [5, 8], [5, 10], [5, 15], [5, 17], [5, 18], [5, 23], [6, 7], [6, 8], [6, 9], [6, 11], [6, 16], [6, 18], [6, 19], [7, 8], [7, 9], [7, 10], [7, 11], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [7, 20], [7, 22], [7, 23], [8, 9], [8, 10], [8, 11], [8, 13], [8, 15], [8, 16], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [9, 10], [9, 11], [9, 12], [9, 13], [9, 14], [9, 15], [9, 16], [9, 17], [9, 18], [9, 19], [9, 20], [9, 22], [9, 23], [10, 11], [10, 12], [10, 15], [10, 16], [10, 17], [10, 18], [10, 19], [10, 22], [10, 23], [11, 13], [11, 14], [11, 15], [11, 16], [11, 17], [11, 18], [11, 19], [11, 20], [11, 21], [11, 22], [11, 23], [12, 15], [12, 16], [12, 17], [12, 18], [12, 19], [12, 22], [12, 23], [13, 15], [13, 16], [13, 17], [13, 18], [13, 22], [13, 23], [14, 16], [14, 17], [14, 18], [14, 19], [14, 22], [14, 23], [15, 16], [15, 17], [15, 18], [15, 19], [15, 20], [15, 21], [15, 22], [15, 23], [16, 17], [16, 18], [16, 19], [16, 20], [16, 21], [16, 22], [16, 23], [17, 18], [17, 19], [17, 20], [17, 21], [17, 22], [17, 23], [18, 19], [18, 20], [18, 21], [18, 22], [18, 23], [19, 20], [19, 21], [19, 22], [19, 23], [20, 22], [20, 23], [22, 23]], "family": "rlve_imp_party", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-imp-party-l3-s1/solution/solve.sh b/tasks/construct-rlve-imp-party-l3-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2f8d292892cdb1e3ce5b9ca21652554d77eb6f5 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l3-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [0, 1, 7, 9, 10, 16, 17, 22]} +RLMATH_EOF diff --git a/tasks/construct-rlve-imp-party-l3-s1/tests/check.py b/tasks/construct-rlve-imp-party-l3-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..97b5a037a2ba8bf4495cf87cc074d1c60b11311c --- /dev/null +++ b/tasks/construct-rlve-imp-party-l3-s1/tests/check.py @@ -0,0 +1,14 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + c = int_list(ans.get("clique"), n, 0, 3 * n - 1, "clique") + if len(set(c)) != n: + raise Invalid("vertices must be distinct") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for i in range(n): + for j in range(i + 1, n): + if (min(c[i], c[j]), max(c[i], c[j])) not in es: + raise Invalid(f"{c[i]} and {c[j]} are not adjacent") + return None, {} diff --git a/tasks/construct-rlve-imp-party-l3-s1/tests/run.py b/tasks/construct-rlve-imp-party-l3-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-imp-party-l3-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-imp-party-l3-s1/tests/test.sh b/tasks/construct-rlve-imp-party-l3-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l3-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-imp-party-l3-s6/environment/Dockerfile b/tasks/construct-rlve-imp-party-l3-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l3-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-imp-party-l3-s6/environment/instance.json b/tasks/construct-rlve-imp-party-l3-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f180e37266f84636bc7aa81a137537eb6cc38634 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l3-s6/environment/instance.json @@ -0,0 +1 @@ +{"n": 8, "edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 11], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [1, 2], [1, 3], [1, 4], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 21], [2, 22], [2, 23], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [4, 5], [4, 6], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 14], [4, 15], [4, 16], [4, 17], [4, 18], [4, 19], [4, 20], [4, 21], [4, 22], [4, 23], [5, 6], [5, 8], [5, 9], [5, 11], [5, 17], [5, 18], [5, 19], [5, 21], [5, 23], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 17], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [6, 23], [7, 8], [7, 11], [7, 14], [7, 17], [7, 21], [7, 22], [7, 23], [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 14], [8, 15], [8, 16], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [9, 10], [9, 11], [9, 12], [9, 13], [9, 14], [9, 15], [9, 16], [9, 17], [9, 18], [9, 19], [9, 21], [9, 22], [9, 23], [10, 14], [10, 17], [10, 18], [10, 19], [10, 21], [10, 22], [10, 23], [11, 13], [11, 14], [11, 16], [11, 17], [11, 18], [11, 19], [11, 20], [11, 21], [11, 22], [11, 23], [12, 14], [12, 17], [12, 19], [12, 21], [12, 22], [12, 23], [13, 14], [13, 18], [13, 19], [13, 21], [13, 22], [13, 23], [14, 15], [14, 16], [14, 17], [14, 18], [14, 19], [14, 20], [14, 21], [14, 22], [14, 23], [15, 17], [15, 19], [15, 21], [15, 22], [15, 23], [16, 17], [16, 18], [16, 19], [16, 22], [16, 23], [17, 18], [17, 19], [17, 21], [17, 22], [17, 23], [18, 19], [18, 21], [18, 22], [18, 23], [19, 20], [19, 21], [19, 22], [19, 23], [20, 21], [20, 22], [21, 22], [21, 23], [22, 23]], "family": "rlve_imp_party", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-imp-party-l3-s6/solution/solve.sh b/tasks/construct-rlve-imp-party-l3-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..750a7fb349cc94e77d0e418601792752ce6c4556 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l3-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [1, 2, 3, 6, 8, 11, 22, 23]} +RLMATH_EOF diff --git a/tasks/construct-rlve-imp-party-l3-s6/tests/check.py b/tasks/construct-rlve-imp-party-l3-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..97b5a037a2ba8bf4495cf87cc074d1c60b11311c --- /dev/null +++ b/tasks/construct-rlve-imp-party-l3-s6/tests/check.py @@ -0,0 +1,14 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + c = int_list(ans.get("clique"), n, 0, 3 * n - 1, "clique") + if len(set(c)) != n: + raise Invalid("vertices must be distinct") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for i in range(n): + for j in range(i + 1, n): + if (min(c[i], c[j]), max(c[i], c[j])) not in es: + raise Invalid(f"{c[i]} and {c[j]} are not adjacent") + return None, {} diff --git a/tasks/construct-rlve-imp-party-l3-s6/tests/instance.json b/tasks/construct-rlve-imp-party-l3-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f180e37266f84636bc7aa81a137537eb6cc38634 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l3-s6/tests/instance.json @@ -0,0 +1 @@ +{"n": 8, "edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 11], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [1, 2], [1, 3], [1, 4], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 21], [2, 22], [2, 23], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [4, 5], [4, 6], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 14], [4, 15], [4, 16], [4, 17], [4, 18], [4, 19], [4, 20], [4, 21], [4, 22], [4, 23], [5, 6], [5, 8], [5, 9], [5, 11], [5, 17], [5, 18], [5, 19], [5, 21], [5, 23], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 17], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [6, 23], [7, 8], [7, 11], [7, 14], [7, 17], [7, 21], [7, 22], [7, 23], [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 14], [8, 15], [8, 16], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [9, 10], [9, 11], [9, 12], [9, 13], [9, 14], [9, 15], [9, 16], [9, 17], [9, 18], [9, 19], [9, 21], [9, 22], [9, 23], [10, 14], [10, 17], [10, 18], [10, 19], [10, 21], [10, 22], [10, 23], [11, 13], [11, 14], [11, 16], [11, 17], [11, 18], [11, 19], [11, 20], [11, 21], [11, 22], [11, 23], [12, 14], [12, 17], [12, 19], [12, 21], [12, 22], [12, 23], [13, 14], [13, 18], [13, 19], [13, 21], [13, 22], [13, 23], [14, 15], [14, 16], [14, 17], [14, 18], [14, 19], [14, 20], [14, 21], [14, 22], [14, 23], [15, 17], [15, 19], [15, 21], [15, 22], [15, 23], [16, 17], [16, 18], [16, 19], [16, 22], [16, 23], [17, 18], [17, 19], [17, 21], [17, 22], [17, 23], [18, 19], [18, 21], [18, 22], [18, 23], [19, 20], [19, 21], [19, 22], [19, 23], [20, 21], [20, 22], [21, 22], [21, 23], [22, 23]], "family": "rlve_imp_party", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-imp-party-l3-s6/tests/run.py b/tasks/construct-rlve-imp-party-l3-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-imp-party-l3-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-imp-party-l3-s6/tests/test.sh b/tasks/construct-rlve-imp-party-l3-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l3-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-integer-linear-system-l4-s1/environment/Dockerfile b/tasks/construct-rlve-integer-linear-system-l4-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l4-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-integer-linear-system-l4-s1/environment/instance.json b/tasks/construct-rlve-integer-linear-system-l4-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5836180665a89ab1351f57879cd0f6adaf7f7801 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l4-s1/environment/instance.json @@ -0,0 +1 @@ +{"coeffs": [[0, 0, 0, 0, 1, 1, 2, 1, 0, 1, 0, 2], [0, 0, 2, 1, 0, 1, 0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 2, 0, 1, 1, 0, 0, 2, 0], [2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0], [1, 1, 0, 2, 0, 0, 0, 2, 1, 0, 0, 0], [0, 1, 2, 2, 2, 2, 0, 0, 1, 2, 1, 0], [1, 0, 1, 0, 0, 0, 2, 1, 2, 0, 0, 0], [1, 1, 2, 0, 0, 1, 0, 1, 0, 2, 1, 0], [0, 2, 1, 1, 0, 1, 1, 0, 2, 2, 1, 2], [0, 1, 0, 0, 0, 0, 0, 1, 0, 2, 0, 2], [0, 0, 0, 0, 2, 1, 2, 2, 1, 2, 0, 2], [2, 2, 2, 1, 0, 0, 2, 0, 0, 0, 0, 0], [2, 2, 2, 0, 2, 1, 2, 0, 0, 2, 0, 2], [2, 0, 1, 2, 0, 0, 1, 1, 0, 1, 0, 1], [0, 0, 0, 0, 1, 0, 0, 0, 2, 2, 2, 1], [0, 2, 0, 2, 0, 2, 0, 0, 0, 1, 0, 1], [0, 0, 0, 0, 2, 2, 2, 2, 0, 0, 1, 1], [0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0], [2, 1, 0, 1, 2, 1, 2, 2, 2, 0, 1, 0], [2, 0, 0, 2, 1, 0, 0, 2, 0, 0, 1, 1], [0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 1, 0], [0, 2, 0, 2, 0, 2, 0, 0, 1, 2, 2, 2], [0, 0, 2, 0, 1, 1, 1, 1, 0, 0, 0, 0], [2, 2, 1, 2, 0, 1, 0, 1, 0, 2, 0, 0], [0, 2, 0, 1, 2, 2, 0, 0, 0, 0, 2, 0], [1, 0, 0, 2, 1, 0, 2, 1, 1, 0, 2, 2], [0, 0, 0, 2, 1, 1, 2, 2, 2, 2, 0, 0], [2, 0, 0, 0, 1, 2, 0, 2, 2, 0, 1, 2], [0, 0, 2, 0, 0, 1, 0, 2, 1, 0, 0, 0], [1, 0, 2, 2, 2, 2, 1, 0, 0, 1, 2, 0], [1, 0, 0, 0, 2, 0, 1, 1, 0, 1, 1, 2], [1, 0, 0, 2, 0, 0, 0, 1, 2, 2, 2, 0], [0, 0, 0, 0, 1, 2, 2, 0, 2, 1, 0, 1], [2, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0], [1, 1, 0, 1, 1, 1, 0, 0, 2, 0, 1, 1], [0, 1, 2, 1, 2, 2, 0, 0, 0, 2, 2, 2]], "rhs": [57, 25, 52, 25, 52, 94, 50, 43, 95, 35, 85, 59, 102, 63, 63, 59, 71, 26, 108, 70, 46, 97, 35, 67, 71, 102, 87, 92, 31, 95, 69, 74, 72, 39, 80, 99], "family": "rlve_integer_linear_system", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-integer-linear-system-l4-s1/solution/solve.sh b/tasks/construct-rlve-integer-linear-system-l4-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea226d60552316197fa0cfb66ffe0a3160b8a840 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l4-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [7, 6, 4, 11, 11, 6, 7, 3, 11, 3, 7, 10]} +RLMATH_EOF diff --git a/tasks/construct-rlve-integer-linear-system-l4-s1/tests/check.py b/tasks/construct-rlve-integer-linear-system-l4-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..ff19002b3fddc9597f84ee31ef5ffbee5d3fac32 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l4-s1/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = len(inst["coeffs"][0]) + x = int_list(ans.get("x"), n, name="x") + for k, (e, r) in enumerate(zip(inst["coeffs"], inst["rhs"])): + if sum(c * v for c, v in zip(e, x)) != r: + raise Invalid(f"equation {k} is violated") + return None, {} diff --git a/tasks/construct-rlve-integer-linear-system-l4-s1/tests/instance.json b/tasks/construct-rlve-integer-linear-system-l4-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5836180665a89ab1351f57879cd0f6adaf7f7801 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l4-s1/tests/instance.json @@ -0,0 +1 @@ +{"coeffs": [[0, 0, 0, 0, 1, 1, 2, 1, 0, 1, 0, 2], [0, 0, 2, 1, 0, 1, 0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 2, 0, 1, 1, 0, 0, 2, 0], [2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0], [1, 1, 0, 2, 0, 0, 0, 2, 1, 0, 0, 0], [0, 1, 2, 2, 2, 2, 0, 0, 1, 2, 1, 0], [1, 0, 1, 0, 0, 0, 2, 1, 2, 0, 0, 0], [1, 1, 2, 0, 0, 1, 0, 1, 0, 2, 1, 0], [0, 2, 1, 1, 0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 95, 35, 85, 59, 102, 63, 63, 59, 71, 26, 108, 70, 46, 97, 35, 67, 71, 102, 87, 92, 31, 95, 69, 74, 72, 39, 80, 99], "family": "rlve_integer_linear_system", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-integer-linear-system-l4-s1/tests/run.py b/tasks/construct-rlve-integer-linear-system-l4-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l4-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-integer-linear-system-l4-s1/tests/test.sh b/tasks/construct-rlve-integer-linear-system-l4-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l4-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-integer-linear-system-l4-s6/environment/Dockerfile b/tasks/construct-rlve-integer-linear-system-l4-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l4-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-integer-linear-system-l4-s6/environment/instance.json b/tasks/construct-rlve-integer-linear-system-l4-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..bb8e6b22354208e5f915377cdc02f15149e32986 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l4-s6/environment/instance.json @@ -0,0 +1 @@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[36, 58, 58, 22, 30, 57, 40, 40, 11, 43, 43, 61, 45, 43, 40, 37, 46, 20, 15, 58, 10, 33, 38, 63, 52, 36, 41, 52], "family": "rlve_integer_linear_system", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-integer-linear-system-l4-s6/solution/solve.sh b/tasks/construct-rlve-integer-linear-system-l4-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2b16c8799d1dd5494fffc339f0f0ec480e2d1e8 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l4-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [7, 1, 6, 3, 6, 6, 10, 2, 2, 9, 1, 4]} +RLMATH_EOF diff --git a/tasks/construct-rlve-integer-linear-system-l4-s6/tests/check.py b/tasks/construct-rlve-integer-linear-system-l4-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..ff19002b3fddc9597f84ee31ef5ffbee5d3fac32 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l4-s6/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = len(inst["coeffs"][0]) + x = int_list(ans.get("x"), n, name="x") + for k, (e, r) in enumerate(zip(inst["coeffs"], inst["rhs"])): + if sum(c * v for c, v in zip(e, x)) != r: + raise Invalid(f"equation {k} is violated") + return None, {} diff --git a/tasks/construct-rlve-integer-linear-system-l4-s6/tests/instance.json b/tasks/construct-rlve-integer-linear-system-l4-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..bb8e6b22354208e5f915377cdc02f15149e32986 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l4-s6/tests/instance.json @@ -0,0 +1 @@ +{"coeffs": [[2, 2, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1], [1, 0, 0, 2, 1, 2, 0, 0, 2, 2, 1, 1], [0, 0, 2, 2, 1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ear_system", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-integer-linear-system-l4-s6/tests/run.py b/tasks/construct-rlve-integer-linear-system-l4-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l4-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-integer-linear-system-l4-s6/tests/test.sh b/tasks/construct-rlve-integer-linear-system-l4-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l4-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-largest-convex-polygon-l3-s0/environment/Dockerfile b/tasks/construct-rlve-largest-convex-polygon-l3-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l3-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-largest-convex-polygon-l3-s0/environment/instance.json b/tasks/construct-rlve-largest-convex-polygon-l3-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..7470603de83bbde302c9837abefb453030d54f3e --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l3-s0/environment/instance.json @@ -0,0 +1 @@ +{"points": [[12, 7], [2, 10], [0, 9], [10, 13], [5, 13], [11, 12], [4, 5], [12, 6], [2, 6], [11, 5], [8, 12], [5, 3], [9, 7]], "k": 9, "family": "rlve_largest_convex_polygon", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-convex-polygon-l3-s0/solution/solve.sh b/tasks/construct-rlve-largest-convex-polygon-l3-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..001b8b02c885f30d1d212e0e7714beabf1128547 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l3-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [1, 4, 3, 5, 0, 7, 9, 11, 6]} +RLMATH_EOF diff --git a/tasks/construct-rlve-largest-convex-polygon-l3-s0/tests/check.py b/tasks/construct-rlve-largest-convex-polygon-l3-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..3a09cc858f41ce5745e4e491188cd42360c65dae --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l3-s0/tests/check.py @@ -0,0 +1,27 @@ +from run import Invalid, int_list + + +def _cross(o, a, b): + return (a[0] - o[0]) * (b[1] - o[1]) - (a[1] - o[1]) * (b[0] - o[0]) + + +def check(inst, ans): + P, k = inst["points"], inst["k"] + idx = int_list(ans.get("indices"), None, 0, len(P) - 1, "indices") + if len(set(idx)) != len(idx): + raise Invalid("indices must be distinct") + if len(idx) < k: + raise Invalid(f"{len(idx)} points given, need {k}") + pts = sorted(tuple(P[i]) for i in idx) + lower, upper = [], [] + for p in pts: # monotone chain, strict (collinear points dropped) + while len(lower) >= 2 and _cross(lower[-2], lower[-1], p) <= 0: + lower.pop() + lower.append(p) + for p in reversed(pts): + while len(upper) >= 2 and _cross(upper[-2], upper[-1], p) <= 0: + upper.pop() + upper.append(p) + if len(lower) + len(upper) - 2 != len(pts): + raise Invalid("the chosen points are not in convex position") + return None, {} diff --git a/tasks/construct-rlve-largest-convex-polygon-l3-s0/tests/instance.json b/tasks/construct-rlve-largest-convex-polygon-l3-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..7470603de83bbde302c9837abefb453030d54f3e --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l3-s0/tests/instance.json @@ -0,0 +1 @@ +{"points": [[12, 7], [2, 10], [0, 9], [10, 13], [5, 13], [11, 12], [4, 5], [12, 6], [2, 6], [11, 5], [8, 12], [5, 3], [9, 7]], "k": 9, "family": "rlve_largest_convex_polygon", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-convex-polygon-l3-s0/tests/run.py b/tasks/construct-rlve-largest-convex-polygon-l3-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l3-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-largest-convex-polygon-l3-s0/tests/test.sh b/tasks/construct-rlve-largest-convex-polygon-l3-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l3-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-largest-convex-polygon-l3-s9/environment/Dockerfile b/tasks/construct-rlve-largest-convex-polygon-l3-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l3-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-largest-convex-polygon-l3-s9/environment/instance.json b/tasks/construct-rlve-largest-convex-polygon-l3-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..0f898280fee921f82e8064207ab90f1fd254289f --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l3-s9/environment/instance.json @@ -0,0 +1 @@ +{"points": [[4, 4], [10, 11], [7, 7], [1, 5], [5, 8], [7, 0], [10, 1], [0, 2], [2, 6], [5, 6], [6, 0], [12, 5], [1, 9]], "k": 9, "family": "rlve_largest_convex_polygon", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-convex-polygon-l3-s9/solution/solve.sh b/tasks/construct-rlve-largest-convex-polygon-l3-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..171555e5213796abfa600a024079d357e4e251f1 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l3-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [7, 3, 8, 4, 1, 11, 6, 5, 10]} +RLMATH_EOF diff --git a/tasks/construct-rlve-largest-convex-polygon-l3-s9/tests/check.py b/tasks/construct-rlve-largest-convex-polygon-l3-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..3a09cc858f41ce5745e4e491188cd42360c65dae --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l3-s9/tests/check.py @@ -0,0 +1,27 @@ +from run import Invalid, int_list + + +def _cross(o, a, b): + return (a[0] - o[0]) * (b[1] - o[1]) - (a[1] - o[1]) * (b[0] - o[0]) + + +def check(inst, ans): + P, k = inst["points"], inst["k"] + idx = int_list(ans.get("indices"), None, 0, len(P) - 1, "indices") + if len(set(idx)) != len(idx): + raise Invalid("indices must be distinct") + if len(idx) < k: + raise Invalid(f"{len(idx)} points given, need {k}") + pts = sorted(tuple(P[i]) for i in idx) + lower, upper = [], [] + for p in pts: # monotone chain, strict (collinear points dropped) + while len(lower) >= 2 and _cross(lower[-2], lower[-1], p) <= 0: + lower.pop() + lower.append(p) + for p in reversed(pts): + while len(upper) >= 2 and _cross(upper[-2], upper[-1], p) <= 0: + upper.pop() + upper.append(p) + if len(lower) + len(upper) - 2 != len(pts): + raise Invalid("the chosen points are not in convex position") + return None, {} diff --git a/tasks/construct-rlve-largest-convex-polygon-l3-s9/tests/instance.json b/tasks/construct-rlve-largest-convex-polygon-l3-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..0f898280fee921f82e8064207ab90f1fd254289f --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l3-s9/tests/instance.json @@ -0,0 +1 @@ +{"points": [[4, 4], [10, 11], [7, 7], [1, 5], [5, 8], [7, 0], [10, 1], [0, 2], [2, 6], [5, 6], [6, 0], [12, 5], [1, 9]], "k": 9, "family": "rlve_largest_convex_polygon", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-convex-polygon-l3-s9/tests/run.py b/tasks/construct-rlve-largest-convex-polygon-l3-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l3-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-largest-convex-polygon-l3-s9/tests/test.sh b/tasks/construct-rlve-largest-convex-polygon-l3-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l3-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-largest-rectangle-l1-s0/environment/Dockerfile b/tasks/construct-rlve-largest-rectangle-l1-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l1-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-largest-rectangle-l1-s0/environment/instance.json b/tasks/construct-rlve-largest-rectangle-l1-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3859aa3099e7d57e1a26a7fb494f8345acc1053e --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l1-s0/environment/instance.json @@ -0,0 +1 @@ +{"points": [[-5, -3], [2, -1], [-6, -1], [3, -3], [-3, -2], [-4, 0]], "area": 5, "family": "rlve_largest_rectangle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-rectangle-l1-s0/solution/solve.sh b/tasks/construct-rlve-largest-rectangle-l1-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd28d7886db97b51cd5b2dedc509ced98881db22 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l1-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [0, 2, 5, 4]} +RLMATH_EOF diff --git a/tasks/construct-rlve-largest-rectangle-l1-s0/tests/check.py b/tasks/construct-rlve-largest-rectangle-l1-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2251b2af23a481e598fa1e48d0a8249f70b6cc44 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l1-s0/tests/check.py @@ -0,0 +1,24 @@ +from run import Invalid, int_list + + +def check(inst, ans): + P = inst["points"] + idx = int_list(ans.get("indices"), 4, 0, len(P) - 1, "indices") + if len(set(idx)) != 4: + raise Invalid("indices must be distinct") + A, *rest = [tuple(P[i]) for i in idx] + if len(set([A] + rest)) != 4: + raise Invalid("points must be distinct") + # the vertex farthest from A is opposite; the other two are A's neighbours + rest.sort(key=lambda X: (X[0] - A[0]) ** 2 + (X[1] - A[1]) ** 2) + B, D, C = rest + u = (B[0] - A[0], B[1] - A[1]) + v = (D[0] - A[0], D[1] - A[1]) + if u[0] * v[0] + u[1] * v[1] != 0: + raise Invalid("not a rectangle (no right angle at the first vertex)") + if (B[0] + D[0] - A[0], B[1] + D[1] - A[1]) != C: + raise Invalid("not a rectangle") + area = abs(u[0] * v[1] - u[1] * v[0]) + if area < inst["area"]: + raise Invalid(f"area {area} < {inst['area']}") + return None, {"area": area} diff --git a/tasks/construct-rlve-largest-rectangle-l1-s0/tests/instance.json b/tasks/construct-rlve-largest-rectangle-l1-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3859aa3099e7d57e1a26a7fb494f8345acc1053e --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l1-s0/tests/instance.json @@ -0,0 +1 @@ +{"points": [[-5, -3], [2, -1], [-6, -1], [3, -3], [-3, -2], [-4, 0]], "area": 5, "family": "rlve_largest_rectangle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-rectangle-l1-s0/tests/run.py b/tasks/construct-rlve-largest-rectangle-l1-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l1-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-largest-rectangle-l1-s0/tests/test.sh b/tasks/construct-rlve-largest-rectangle-l1-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l1-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-largest-rectangle-l1-s9/environment/Dockerfile b/tasks/construct-rlve-largest-rectangle-l1-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l1-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-largest-rectangle-l1-s9/environment/instance.json b/tasks/construct-rlve-largest-rectangle-l1-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4529c841ee030b0cbe4735cae72b9de89ebd79e8 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l1-s9/environment/instance.json @@ -0,0 +1 @@ +{"points": [[2, 0], [-1, -1], [-2, 2], [-6, 1], [5, 5], [1, 3]], "area": 10, "family": "rlve_largest_rectangle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-rectangle-l1-s9/solution/solve.sh b/tasks/construct-rlve-largest-rectangle-l1-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..007ce9952f46684940406b484230b42c27861fa2 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l1-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [0, 1, 2, 5]} +RLMATH_EOF diff --git a/tasks/construct-rlve-largest-rectangle-l1-s9/tests/check.py b/tasks/construct-rlve-largest-rectangle-l1-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2251b2af23a481e598fa1e48d0a8249f70b6cc44 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l1-s9/tests/check.py @@ -0,0 +1,24 @@ +from run import Invalid, int_list + + +def check(inst, ans): + P = inst["points"] + idx = int_list(ans.get("indices"), 4, 0, len(P) - 1, "indices") + if len(set(idx)) != 4: + raise Invalid("indices must be distinct") + A, *rest = [tuple(P[i]) for i in idx] + if len(set([A] + rest)) != 4: + raise Invalid("points must be distinct") + # the vertex farthest from A is opposite; the other two are A's neighbours + rest.sort(key=lambda X: (X[0] - A[0]) ** 2 + (X[1] - A[1]) ** 2) + B, D, C = rest + u = (B[0] - A[0], B[1] - A[1]) + v = (D[0] - A[0], D[1] - A[1]) + if u[0] * v[0] + u[1] * v[1] != 0: + raise Invalid("not a rectangle (no right angle at the first vertex)") + if (B[0] + D[0] - A[0], B[1] + D[1] - A[1]) != C: + raise Invalid("not a rectangle") + area = abs(u[0] * v[1] - u[1] * v[0]) + if area < inst["area"]: + raise Invalid(f"area {area} < {inst['area']}") + return None, {"area": area} diff --git a/tasks/construct-rlve-largest-rectangle-l1-s9/tests/instance.json b/tasks/construct-rlve-largest-rectangle-l1-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4529c841ee030b0cbe4735cae72b9de89ebd79e8 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l1-s9/tests/instance.json @@ -0,0 +1 @@ +{"points": [[2, 0], [-1, -1], [-2, 2], [-6, 1], [5, 5], [1, 3]], "area": 10, "family": "rlve_largest_rectangle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-rectangle-l1-s9/tests/run.py b/tasks/construct-rlve-largest-rectangle-l1-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l1-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-largest-rectangle-l1-s9/tests/test.sh b/tasks/construct-rlve-largest-rectangle-l1-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l1-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-largest-rectangle-l5-s6/environment/Dockerfile b/tasks/construct-rlve-largest-rectangle-l5-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l5-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-largest-rectangle-l5-s6/environment/instance.json b/tasks/construct-rlve-largest-rectangle-l5-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..56e44c1955a1489c6b801b9ed04768ced95f1c86 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l5-s6/environment/instance.json @@ -0,0 +1 @@ +{"points": [[-32, 1], [-27, -36], [5, 18], [20, 34], [-30, -32], [-26, -32], [-39, 0], [-12, 7], [36, 14], [-15, -8], [-9, 36], [36, -30], [-32, -21], [-4, 2], [-2, -2], [-37, 3], [-12, 38], [23, 19], [1, 10], [-12, -17], [20, -33], [-18, 18], [27, -17], [-7, 15], [21, -1], [-17, 27], [0, -4], [-5, 20], [-3, 30], [-31, 28], [4, 5], [30, 10], [21, -29], [-26, -34], [-25, -18], [-30, 32], [14, 12], [31, 4], [-3, -20], [-1, 12]], "area": 89, "family": "rlve_largest_rectangle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-rectangle-l5-s6/solution/solve.sh b/tasks/construct-rlve-largest-rectangle-l5-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..0645ec0248172a9024eee71dc7d243d466c81545 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l5-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [7, 13, 18, 23]} +RLMATH_EOF diff --git a/tasks/construct-rlve-largest-rectangle-l5-s6/tests/check.py b/tasks/construct-rlve-largest-rectangle-l5-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2251b2af23a481e598fa1e48d0a8249f70b6cc44 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l5-s6/tests/check.py @@ -0,0 +1,24 @@ +from run import Invalid, int_list + + +def check(inst, ans): + P = inst["points"] + idx = int_list(ans.get("indices"), 4, 0, len(P) - 1, "indices") + if len(set(idx)) != 4: + raise Invalid("indices must be distinct") + A, *rest = [tuple(P[i]) for i in idx] + if len(set([A] + rest)) != 4: + raise Invalid("points must be distinct") + # the vertex farthest from A is opposite; the other two are A's neighbours + rest.sort(key=lambda X: (X[0] - A[0]) ** 2 + (X[1] - A[1]) ** 2) + B, D, C = rest + u = (B[0] - A[0], B[1] - A[1]) + v = (D[0] - A[0], D[1] - A[1]) + if u[0] * v[0] + u[1] * v[1] != 0: + raise Invalid("not a rectangle (no right angle at the first vertex)") + if (B[0] + D[0] - A[0], B[1] + D[1] - A[1]) != C: + raise Invalid("not a rectangle") + area = abs(u[0] * v[1] - u[1] * v[0]) + if area < inst["area"]: + raise Invalid(f"area {area} < {inst['area']}") + return None, {"area": area} diff --git a/tasks/construct-rlve-largest-rectangle-l5-s6/tests/instance.json b/tasks/construct-rlve-largest-rectangle-l5-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..56e44c1955a1489c6b801b9ed04768ced95f1c86 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l5-s6/tests/instance.json @@ -0,0 +1 @@ +{"points": [[-32, 1], [-27, -36], [5, 18], [20, 34], [-30, -32], [-26, -32], [-39, 0], [-12, 7], [36, 14], [-15, -8], [-9, 36], [36, -30], [-32, -21], [-4, 2], [-2, -2], [-37, 3], [-12, 38], [23, 19], [1, 10], [-12, -17], [20, -33], [-18, 18], [27, -17], [-7, 15], [21, -1], [-17, 27], [0, -4], [-5, 20], [-3, 30], [-31, 28], [4, 5], [30, 10], [21, -29], [-26, -34], [-25, -18], [-30, 32], [14, 12], [31, 4], [-3, -20], [-1, 12]], "area": 89, "family": "rlve_largest_rectangle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-rectangle-l5-s6/tests/run.py b/tasks/construct-rlve-largest-rectangle-l5-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l5-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-largest-rectangle-l5-s6/tests/test.sh b/tasks/construct-rlve-largest-rectangle-l5-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l5-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-largest-rectangle-l5-s8/environment/Dockerfile b/tasks/construct-rlve-largest-rectangle-l5-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l5-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-largest-rectangle-l5-s8/environment/instance.json b/tasks/construct-rlve-largest-rectangle-l5-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a511ecf1ef4a55528dd5f736b752c3fdc6abd81f --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l5-s8/environment/instance.json @@ -0,0 +1 @@ +{"points": [[24, -30], [-39, -20], [33, -35], [-22, -26], [-39, -40], [-32, 26], [-35, 19], [-7, -28], [27, -10], [23, -24], [3, -33], [-28, 39], [-6, 27], [2, 38], [-26, 9], [-3, 33], [-38, -1], [-9, -22], [-27, 6], [8, -30], [29, -4], [-34, -40], [-11, 14], [25, 28], [-1, -12], [21, 20], [20, -25], [37, 30], [28, -37], [-22, -20], [22, -25], [21, -10], [19, -40], [-20, 3], [29, -17], [28, -18], [39, 28], [14, -18], [28, 15], [-13, -39]], "area": 113, "family": "rlve_largest_rectangle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-rectangle-l5-s8/solution/solve.sh b/tasks/construct-rlve-largest-rectangle-l5-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b37c15079c0801f7635c8dd88c61a7b9b1866a7 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l5-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [30, 34, 31, 37]} +RLMATH_EOF diff --git a/tasks/construct-rlve-largest-rectangle-l5-s8/tests/check.py b/tasks/construct-rlve-largest-rectangle-l5-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2251b2af23a481e598fa1e48d0a8249f70b6cc44 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l5-s8/tests/check.py @@ -0,0 +1,24 @@ +from run import Invalid, int_list + + +def check(inst, ans): + P = inst["points"] + idx = int_list(ans.get("indices"), 4, 0, len(P) - 1, "indices") + if len(set(idx)) != 4: + raise Invalid("indices must be distinct") + A, *rest = [tuple(P[i]) for i in idx] + if len(set([A] + rest)) != 4: + raise Invalid("points must be distinct") + # the vertex farthest from A is opposite; the other two are A's neighbours + rest.sort(key=lambda X: (X[0] - A[0]) ** 2 + (X[1] - A[1]) ** 2) + B, D, C = rest + u = (B[0] - A[0], B[1] - A[1]) + v = (D[0] - A[0], D[1] - A[1]) + if u[0] * v[0] + u[1] * v[1] != 0: + raise Invalid("not a rectangle (no right angle at the first vertex)") + if (B[0] + D[0] - A[0], B[1] + D[1] - A[1]) != C: + raise Invalid("not a rectangle") + area = abs(u[0] * v[1] - u[1] * v[0]) + if area < inst["area"]: + raise Invalid(f"area {area} < {inst['area']}") + return None, {"area": area} diff --git a/tasks/construct-rlve-largest-rectangle-l5-s8/tests/instance.json b/tasks/construct-rlve-largest-rectangle-l5-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a511ecf1ef4a55528dd5f736b752c3fdc6abd81f --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l5-s8/tests/instance.json @@ -0,0 +1 @@ +{"points": [[24, -30], [-39, -20], [33, -35], [-22, -26], [-39, -40], [-32, 26], [-35, 19], [-7, -28], [27, -10], [23, -24], [3, -33], [-28, 39], [-6, 27], [2, 38], [-26, 9], [-3, 33], [-38, -1], [-9, -22], [-27, 6], [8, -30], [29, -4], [-34, -40], [-11, 14], [25, 28], [-1, -12], [21, 20], [20, -25], [37, 30], [28, -37], [-22, -20], [22, -25], [21, -10], [19, -40], [-20, 3], [29, -17], [28, -18], [39, 28], [14, -18], [28, 15], [-13, -39]], "area": 113, "family": "rlve_largest_rectangle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-rectangle-l5-s8/tests/run.py b/tasks/construct-rlve-largest-rectangle-l5-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l5-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-largest-rectangle-l5-s8/tests/test.sh b/tasks/construct-rlve-largest-rectangle-l5-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l5-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/environment/Dockerfile b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/environment/instance.json b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..d205087f3bbfbc3c03089a3f6edfa57500deefe4 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/environment/instance.json @@ -0,0 +1 @@ +{"A": ["01", "11", "10", "11"], "B": ["10", "11", "01", "11"], "family": "rlve_matrix_permutation_equivalence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/solution/solve.sh b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..868c960a93a3553fea2ecd0704b580df660e95a9 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"a": [2, 3, 0, 1], "b": [0, 1]} +RLMATH_EOF diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/tests/check.py b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..310a1d2c8b6afd7a82a35ba2a4c802c1ce289d03 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + A, B = inst["A"], inst["B"] + N, M = len(A), len(A[0]) + a = int_list(ans.get("a"), N, 0, N - 1, "a") + b = int_list(ans.get("b"), M, 0, M - 1, "b") + if len(set(a)) != N or len(set(b)) != M: + raise Invalid("a and b must be permutations") + for i in range(N): + for j in range(M): + if A[a[i]][b[j]] != B[i][j]: + raise Invalid(f"mismatch at ({i}, {j})") + return None, {} diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/tests/instance.json b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..d205087f3bbfbc3c03089a3f6edfa57500deefe4 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/tests/instance.json @@ -0,0 +1 @@ +{"A": ["01", "11", "10", "11"], "B": ["10", "11", "01", "11"], "family": "rlve_matrix_permutation_equivalence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/tests/run.py b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/tests/test.sh b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/environment/Dockerfile b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/environment/instance.json b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5d131985fbebc25841cfd667233991e0a677d1d3 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/environment/instance.json @@ -0,0 +1 @@ +{"A": ["001", "010", "010"], "B": ["001", "010", "001"], "family": "rlve_matrix_permutation_equivalence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/solution/solve.sh b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..187df3db2a8db9ad51c068122a4cbeaddbe63a29 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"a": [2, 0, 1], "b": [0, 2, 1]} +RLMATH_EOF diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/tests/check.py b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..310a1d2c8b6afd7a82a35ba2a4c802c1ce289d03 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + A, B = inst["A"], inst["B"] + N, M = len(A), len(A[0]) + a = int_list(ans.get("a"), N, 0, N - 1, "a") + b = int_list(ans.get("b"), M, 0, M - 1, "b") + if len(set(a)) != N or len(set(b)) != M: + raise Invalid("a and b must be permutations") + for i in range(N): + for j in range(M): + if A[a[i]][b[j]] != B[i][j]: + raise Invalid(f"mismatch at ({i}, {j})") + return None, {} diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/tests/instance.json b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5d131985fbebc25841cfd667233991e0a677d1d3 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/tests/instance.json @@ -0,0 +1 @@ +{"A": ["001", "010", "010"], "B": ["001", "010", "001"], "family": "rlve_matrix_permutation_equivalence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/tests/run.py b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/tests/test.sh b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l2-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s1/environment/Dockerfile b/tasks/construct-rlve-max-achromatic-coloring-l3-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s1/environment/instance.json b/tasks/construct-rlve-max-achromatic-coloring-l3-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..cf8dcf6a9dcf4c9c41b00747dd83d1bb511fca09 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s1/environment/instance.json @@ -0,0 +1 @@ +{"n": 10, "k": 6, "edges": [[0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 3], [1, 4], [1, 6], [1, 9], [2, 3], [2, 6], [3, 4], [3, 6], [4, 5], [4, 6], [4, 8], [5, 6], [7, 8], [8, 9]], "family": "rlve_max_achromatic_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s1/solution/solve.sh b/tasks/construct-rlve-max-achromatic-coloring-l3-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..94c897e6274645f71429e0f6cfa5d0126f0b972b --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [0, 1, 1, 2, 3, 4, 5, 1, 2, 4]} +RLMATH_EOF diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s1/tests/check.py b/tasks/construct-rlve-max-achromatic-coloring-l3-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..bb676a518264e5db4fb0964e27ccffccf6980807 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s1/tests/check.py @@ -0,0 +1,16 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + if len(set(c)) != k: + raise Invalid(f"uses {len(set(c))} colours, need all {k}") + pairs = set() + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + pairs.add((min(c[u], c[v]), max(c[u], c[v]))) + if len(pairs) != k * (k - 1) // 2: + raise Invalid("some pair of colours is not joined by an edge") + return None, {} diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s1/tests/instance.json b/tasks/construct-rlve-max-achromatic-coloring-l3-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..cf8dcf6a9dcf4c9c41b00747dd83d1bb511fca09 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s1/tests/instance.json @@ -0,0 +1 @@ +{"n": 10, "k": 6, "edges": [[0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 3], [1, 4], [1, 6], [1, 9], [2, 3], [2, 6], [3, 4], [3, 6], [4, 5], [4, 6], [4, 8], [5, 6], [7, 8], [8, 9]], "family": "rlve_max_achromatic_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s1/tests/run.py b/tasks/construct-rlve-max-achromatic-coloring-l3-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s1/tests/test.sh b/tasks/construct-rlve-max-achromatic-coloring-l3-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s6/environment/Dockerfile b/tasks/construct-rlve-max-achromatic-coloring-l3-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s6/environment/instance.json b/tasks/construct-rlve-max-achromatic-coloring-l3-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f0a9f2366fd9ef33eb7e3847eafa1e8fd6f8d186 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s6/environment/instance.json @@ -0,0 +1 @@ +{"n": 10, "k": 5, "edges": [[0, 2], [0, 8], [1, 2], [1, 6], [1, 7], [1, 8], [1, 9], [2, 3], [2, 6], [2, 7], [3, 4], [3, 6], [3, 8], [3, 9], [4, 6], [4, 7], [5, 6], [5, 7], [5, 9], [6, 8]], "family": "rlve_max_achromatic_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s6/solution/solve.sh b/tasks/construct-rlve-max-achromatic-coloring-l3-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..578b00780a7f7695577a62ae5286b26297915b84 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [0, 0, 1, 0, 2, 1, 3, 4, 4, 2]} +RLMATH_EOF diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s6/tests/check.py b/tasks/construct-rlve-max-achromatic-coloring-l3-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..bb676a518264e5db4fb0964e27ccffccf6980807 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s6/tests/check.py @@ -0,0 +1,16 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + if len(set(c)) != k: + raise Invalid(f"uses {len(set(c))} colours, need all {k}") + pairs = set() + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + pairs.add((min(c[u], c[v]), max(c[u], c[v]))) + if len(pairs) != k * (k - 1) // 2: + raise Invalid("some pair of colours is not joined by an edge") + return None, {} diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s6/tests/instance.json b/tasks/construct-rlve-max-achromatic-coloring-l3-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f0a9f2366fd9ef33eb7e3847eafa1e8fd6f8d186 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s6/tests/instance.json @@ -0,0 +1 @@ +{"n": 10, "k": 5, "edges": [[0, 2], [0, 8], [1, 2], [1, 6], [1, 7], [1, 8], [1, 9], [2, 3], [2, 6], [2, 7], [3, 4], [3, 6], [3, 8], [3, 9], [4, 6], [4, 7], [5, 6], [5, 7], [5, 9], [6, 8]], "family": "rlve_max_achromatic_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s6/tests/run.py b/tasks/construct-rlve-max-achromatic-coloring-l3-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s6/tests/test.sh b/tasks/construct-rlve-max-achromatic-coloring-l3-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s8/environment/Dockerfile b/tasks/construct-rlve-max-achromatic-coloring-l3-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s8/environment/instance.json b/tasks/construct-rlve-max-achromatic-coloring-l3-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ab0d2fb3beb7e5ccae67be5b3a925ab82c6833b9 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s8/environment/instance.json @@ -0,0 +1 @@ +{"n": 10, "k": 5, "edges": [[0, 7], [1, 6], [1, 7], [2, 6], [2, 9], [3, 6], [3, 7], [3, 8], [4, 5], [4, 9], [6, 9], [7, 8], [8, 9]], "family": "rlve_max_achromatic_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s8/solution/solve.sh b/tasks/construct-rlve-max-achromatic-coloring-l3-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..e88894e83d6e3f889e83998bb9763513cfbb47e9 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [0, 0, 1, 1, 2, 3, 3, 2, 0, 4]} +RLMATH_EOF diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s8/tests/check.py b/tasks/construct-rlve-max-achromatic-coloring-l3-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..bb676a518264e5db4fb0964e27ccffccf6980807 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s8/tests/check.py @@ -0,0 +1,16 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + if len(set(c)) != k: + raise Invalid(f"uses {len(set(c))} colours, need all {k}") + pairs = set() + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + pairs.add((min(c[u], c[v]), max(c[u], c[v]))) + if len(pairs) != k * (k - 1) // 2: + raise Invalid("some pair of colours is not joined by an edge") + return None, {} diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s8/tests/instance.json b/tasks/construct-rlve-max-achromatic-coloring-l3-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ab0d2fb3beb7e5ccae67be5b3a925ab82c6833b9 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s8/tests/instance.json @@ -0,0 +1 @@ +{"n": 10, "k": 5, "edges": [[0, 7], [1, 6], [1, 7], [2, 6], [2, 9], [3, 6], [3, 7], [3, 8], [4, 5], [4, 9], [6, 9], [7, 8], [8, 9]], "family": "rlve_max_achromatic_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s8/tests/run.py b/tasks/construct-rlve-max-achromatic-coloring-l3-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-max-achromatic-coloring-l3-s8/tests/test.sh b/tasks/construct-rlve-max-achromatic-coloring-l3-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l3-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-maximum-clique-l1-s2/environment/Dockerfile b/tasks/construct-rlve-maximum-clique-l1-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l1-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-maximum-clique-l1-s2/environment/instance.json b/tasks/construct-rlve-maximum-clique-l1-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c99885fe773409ee9f98df9b99b260ae60648174 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l1-s2/environment/instance.json @@ -0,0 +1 @@ +{"n": 8, "k": 4, "edges": [[0, 4], [0, 5], [0, 6], [1, 3], [1, 4], [1, 5], [1, 7], [2, 5], [3, 5], [3, 6], [3, 7], [4, 5], [4, 6], [5, 6], [6, 7]], "family": "rlve_maximum_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-maximum-clique-l1-s2/solution/solve.sh b/tasks/construct-rlve-maximum-clique-l1-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb09dfeda303cb467c5ab44b0f1b9f38b54b676e --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l1-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [0, 4, 5, 6]} +RLMATH_EOF diff --git a/tasks/construct-rlve-maximum-clique-l1-s2/tests/check.py b/tasks/construct-rlve-maximum-clique-l1-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..95e00c78f7c986ba3aecbdc8af3cf8ed221abd05 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l1-s2/tests/check.py @@ -0,0 +1,16 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("clique"), None, 0, n - 1, "clique") + if len(set(c)) != len(c): + raise Invalid("vertices must be distinct") + if len(c) < k: + raise Invalid(f"clique has {len(c)} vertices, need {k}") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for i in range(len(c)): + for j in range(i + 1, len(c)): + if (min(c[i], c[j]), max(c[i], c[j])) not in es: + raise Invalid(f"{c[i]} and {c[j]} are not adjacent") + return None, {} diff --git a/tasks/construct-rlve-maximum-clique-l1-s2/tests/instance.json b/tasks/construct-rlve-maximum-clique-l1-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c99885fe773409ee9f98df9b99b260ae60648174 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l1-s2/tests/instance.json @@ -0,0 +1 @@ +{"n": 8, "k": 4, "edges": [[0, 4], [0, 5], [0, 6], [1, 3], [1, 4], [1, 5], [1, 7], [2, 5], [3, 5], [3, 6], [3, 7], [4, 5], [4, 6], [5, 6], [6, 7]], "family": "rlve_maximum_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-maximum-clique-l1-s2/tests/run.py b/tasks/construct-rlve-maximum-clique-l1-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l1-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-maximum-clique-l1-s2/tests/test.sh b/tasks/construct-rlve-maximum-clique-l1-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l1-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-maximum-clique-l1-s5/environment/Dockerfile b/tasks/construct-rlve-maximum-clique-l1-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l1-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-maximum-clique-l1-s5/environment/instance.json b/tasks/construct-rlve-maximum-clique-l1-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..cbaaece71ff4ed3185fcdb0221ed4130ddfc78a0 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l1-s5/environment/instance.json @@ -0,0 +1 @@ +{"n": 8, "k": 3, "edges": [[0, 3], [0, 4], [2, 4], [2, 5], [2, 6], [2, 7], [3, 4], [3, 6], [6, 7]], "family": "rlve_maximum_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-maximum-clique-l1-s5/solution/solve.sh b/tasks/construct-rlve-maximum-clique-l1-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb900ef747e7ef94234e8c8cb19436a45ed3b7f1 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l1-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [0, 3, 4]} +RLMATH_EOF diff --git a/tasks/construct-rlve-maximum-clique-l1-s5/tests/check.py b/tasks/construct-rlve-maximum-clique-l1-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..95e00c78f7c986ba3aecbdc8af3cf8ed221abd05 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l1-s5/tests/check.py @@ -0,0 +1,16 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("clique"), None, 0, n - 1, "clique") + if len(set(c)) != len(c): + raise Invalid("vertices must be distinct") + if len(c) < k: + raise Invalid(f"clique has {len(c)} vertices, need {k}") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for i in range(len(c)): + for j in range(i + 1, len(c)): + if (min(c[i], c[j]), max(c[i], c[j])) not in es: + raise Invalid(f"{c[i]} and {c[j]} are not adjacent") + return None, {} diff --git a/tasks/construct-rlve-maximum-clique-l1-s5/tests/instance.json b/tasks/construct-rlve-maximum-clique-l1-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..cbaaece71ff4ed3185fcdb0221ed4130ddfc78a0 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l1-s5/tests/instance.json @@ -0,0 +1 @@ +{"n": 8, "k": 3, "edges": [[0, 3], [0, 4], [2, 4], [2, 5], [2, 6], [2, 7], [3, 4], [3, 6], [6, 7]], "family": "rlve_maximum_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-maximum-clique-l1-s5/tests/run.py b/tasks/construct-rlve-maximum-clique-l1-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l1-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-maximum-clique-l1-s5/tests/test.sh b/tasks/construct-rlve-maximum-clique-l1-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l1-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-min-chromatic-number-l2-s1/environment/Dockerfile b/tasks/construct-rlve-min-chromatic-number-l2-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l2-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-min-chromatic-number-l2-s1/environment/instance.json b/tasks/construct-rlve-min-chromatic-number-l2-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..bebbbad629e0a903ec7e30d452b58be04e00f003 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l2-s1/environment/instance.json @@ -0,0 +1 @@ +{"n": 10, "k": 7, "edges": [[0, 1], [0, 2], [0, 4], [0, 6], [0, 7], [0, 8], [0, 9], [1, 2], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [3, 4], [3, 5], [3, 6], [4, 6], [4, 8], [5, 6], [5, 9], [6, 7], [6, 8], [6, 9], [7, 8], [7, 9], [8, 9]], "family": "rlve_min_chromatic_number", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-chromatic-number-l2-s1/solution/solve.sh b/tasks/construct-rlve-min-chromatic-number-l2-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..6123c4e59babaefe452b977b55992df4b8c9d986 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l2-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [0, 1, 2, 0, 3, 3, 4, 3, 5, 6]} +RLMATH_EOF diff --git a/tasks/construct-rlve-min-chromatic-number-l2-s1/tests/check.py b/tasks/construct-rlve-min-chromatic-number-l2-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..d2b77793fb15e0d97174b3c28e69a86e2a26996f --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l2-s1/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + return None, {} diff --git a/tasks/construct-rlve-min-chromatic-number-l2-s1/tests/instance.json b/tasks/construct-rlve-min-chromatic-number-l2-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..bebbbad629e0a903ec7e30d452b58be04e00f003 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l2-s1/tests/instance.json @@ -0,0 +1 @@ +{"n": 10, "k": 7, "edges": [[0, 1], [0, 2], [0, 4], [0, 6], [0, 7], [0, 8], [0, 9], [1, 2], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [3, 4], [3, 5], [3, 6], [4, 6], [4, 8], [5, 6], [5, 9], [6, 7], [6, 8], [6, 9], [7, 8], [7, 9], [8, 9]], "family": "rlve_min_chromatic_number", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-chromatic-number-l2-s1/tests/run.py b/tasks/construct-rlve-min-chromatic-number-l2-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l2-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-min-chromatic-number-l2-s1/tests/test.sh b/tasks/construct-rlve-min-chromatic-number-l2-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l2-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-min-chromatic-number-l6-s0/environment/Dockerfile b/tasks/construct-rlve-min-chromatic-number-l6-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l6-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-min-chromatic-number-l6-s0/environment/instance.json b/tasks/construct-rlve-min-chromatic-number-l6-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6c791d757b2ffe7b1f8102eb10f2ea7a32d93132 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l6-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 30, "k": 5, "edges": [[0, 7], [0, 9], [0, 12], [0, 13], [0, 14], [0, 16], [0, 24], [0, 25], [1, 5], [1, 6], [1, 10], [1, 12], [1, 15], [1, 19], [1, 24], [1, 28], [2, 10], [2, 11], [2, 12], [2, 21], [2, 27], [3, 15], [4, 11], [4, 12], [4, 19], [4, 24], [4, 28], [4, 29], [5, 9], [5, 10], [5, 15], [5, 18], [5, 26], [5, 27], [5, 28], [6, 7], [6, 8], [6, 10], [6, 13], [6, 15], [6, 19], [6, 21], [6, 26], [6, 29], [7, 9], [7, 22], [7, 23], [7, 25], [7, 26], [7, 28], [8, 11], [8, 28], [9, 14], [9, 15], [9, 19], [9, 24], [9, 25], [9, 28], [9, 29], [10, 12], [10, 15], [10, 20], [10, 26], [11, 14], [11, 15], [11, 21], [11, 23], [11, 24], [11, 25], [11, 27], [11, 28], [12, 13], [12, 26], [12, 29], [13, 16], [13, 18], [13, 21], [13, 22], [13, 24], [13, 28], [14, 25], [15, 17], [15, 21], [15, 23], [15, 25], [16, 25], [17, 20], [17, 21], [17, 25], [17, 29], [18, 23], [18, 24], [18, 28], [19, 20], [19, 28], [20, 23], [20, 24], [20, 26], [20, 29], [21, 28], [21, 29], [23, 24], [23, 25], [24, 27], [26, 28], [27, 28], [27, 29], [28, 29]], "family": "rlve_min_chromatic_number", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-chromatic-number-l6-s0/solution/solve.sh b/tasks/construct-rlve-min-chromatic-number-l6-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..27dc1f07114c58845c5b67e0f0e87651e9eab6bc --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l6-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [0, 0, 0, 0, 0, 1, 1, 2, 0, 3, 2, 2, 1, 2, 4, 4, 3, 0, 0, 2, 1, 3, 0, 3, 4, 1, 0, 3, 4, 2]} +RLMATH_EOF diff --git a/tasks/construct-rlve-min-chromatic-number-l6-s0/tests/check.py b/tasks/construct-rlve-min-chromatic-number-l6-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..d2b77793fb15e0d97174b3c28e69a86e2a26996f --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l6-s0/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + return None, {} diff --git a/tasks/construct-rlve-min-chromatic-number-l6-s0/tests/instance.json b/tasks/construct-rlve-min-chromatic-number-l6-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6c791d757b2ffe7b1f8102eb10f2ea7a32d93132 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l6-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 30, "k": 5, "edges": [[0, 7], [0, 9], [0, 12], [0, 13], [0, 14], [0, 16], [0, 24], [0, 25], [1, 5], [1, 6], [1, 10], [1, 12], [1, 15], [1, 19], [1, 24], [1, 28], [2, 10], [2, 11], [2, 12], [2, 21], [2, 27], [3, 15], [4, 11], [4, 12], [4, 19], [4, 24], [4, 28], [4, 29], [5, 9], [5, 10], [5, 15], [5, 18], [5, 26], [5, 27], [5, 28], [6, 7], [6, 8], [6, 10], [6, 13], [6, 15], [6, 19], [6, 21], [6, 26], [6, 29], [7, 9], [7, 22], [7, 23], [7, 25], [7, 26], [7, 28], [8, 11], [8, 28], [9, 14], [9, 15], [9, 19], [9, 24], [9, 25], [9, 28], [9, 29], [10, 12], [10, 15], [10, 20], [10, 26], [11, 14], [11, 15], [11, 21], [11, 23], [11, 24], [11, 25], [11, 27], [11, 28], [12, 13], [12, 26], [12, 29], [13, 16], [13, 18], [13, 21], [13, 22], [13, 24], [13, 28], [14, 25], [15, 17], [15, 21], [15, 23], [15, 25], [16, 25], [17, 20], [17, 21], [17, 25], [17, 29], [18, 23], [18, 24], [18, 28], [19, 20], [19, 28], [20, 23], [20, 24], [20, 26], [20, 29], [21, 28], [21, 29], [23, 24], [23, 25], [24, 27], [26, 28], [27, 28], [27, 29], [28, 29]], "family": "rlve_min_chromatic_number", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-chromatic-number-l6-s0/tests/run.py b/tasks/construct-rlve-min-chromatic-number-l6-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l6-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-min-chromatic-number-l6-s0/tests/test.sh b/tasks/construct-rlve-min-chromatic-number-l6-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l6-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-min-chromatic-number-l6-s7/environment/Dockerfile b/tasks/construct-rlve-min-chromatic-number-l6-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l6-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-min-chromatic-number-l6-s7/environment/instance.json b/tasks/construct-rlve-min-chromatic-number-l6-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..68db4ab5d5235a27c547e4c2a808db7bfd417865 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l6-s7/environment/instance.json @@ -0,0 +1 @@ +{"n": 30, "k": 6, "edges": [[0, 2], [0, 7], [0, 8], [0, 10], [0, 11], [0, 12], [0, 14], [0, 16], [0, 17], [0, 19], [0, 20], [0, 21], [0, 23], [0, 24], [1, 6], [1, 10], [1, 14], [1, 19], [1, 22], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 15], [2, 20], [2, 23], [2, 24], [2, 27], [3, 4], [3, 5], [3, 7], [3, 9], [3, 13], [3, 14], [3, 17], [3, 18], [3, 24], [4, 5], [4, 8], [4, 9], [4, 15], [4, 16], [4, 21], [4, 24], [5, 7], [5, 8], [5, 10], [5, 11], [5, 14], [5, 16], [5, 20], [5, 21], [5, 22], [5, 24], [5, 27], [6, 8], [6, 9], [6, 11], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [6, 24], [6, 25], [6, 26], [6, 28], [7, 17], [7, 19], [7, 21], [7, 27], [7, 29], [8, 11], [8, 13], [8, 24], [9, 12], [9, 16], [9, 20], [9, 21], [9, 22], [9, 28], [10, 12], [10, 13], [10, 14], [10, 19], [10, 20], [10, 22], [10, 23], [10, 28], [11, 12], [11, 14], [11, 25], [11, 29], [12, 16], [12, 17], [12, 21], [12, 26], [13, 14], [13, 15], [13, 17], [13, 19], [13, 20], [13, 21], [13, 22], [13, 29], [14, 22], [14, 25], [14, 26], [14, 27], [15, 16], [15, 18], [15, 23], [15, 24], [15, 27], [15, 28], [15, 29], [16, 19], [16, 20], [16, 24], [16, 26], [16, 29], [17, 21], [17, 24], [17, 25], [17, 27], [18, 19], [18, 20], [18, 23], [18, 24], [19, 20], [19, 24], [19, 25], [19, 26], [20, 22], [20, 26], [20, 28], [21, 22], [21, 23], [21, 28], [22, 23], [22, 24], [23, 24], [23, 27], [23, 29], [24, 25], [24, 27], [24, 28], [25, 26], [25, 28], [26, 27], [27, 29]], "family": "rlve_min_chromatic_number", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-chromatic-number-l6-s7/solution/solve.sh b/tasks/construct-rlve-min-chromatic-number-l6-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d24f9af64c3e9f8b3ed51829286f9aa9bd47607f --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l6-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [0, 0, 1, 0, 1, 2, 1, 3, 3, 2, 3, 4, 1, 2, 5, 3, 4, 4, 2, 1, 5, 5, 1, 4, 5, 0, 2, 0, 4, 1]} +RLMATH_EOF diff --git a/tasks/construct-rlve-min-chromatic-number-l6-s7/tests/check.py b/tasks/construct-rlve-min-chromatic-number-l6-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..d2b77793fb15e0d97174b3c28e69a86e2a26996f --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l6-s7/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + return None, {} diff --git a/tasks/construct-rlve-min-chromatic-number-l6-s7/tests/instance.json b/tasks/construct-rlve-min-chromatic-number-l6-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..68db4ab5d5235a27c547e4c2a808db7bfd417865 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l6-s7/tests/instance.json @@ -0,0 +1 @@ +{"n": 30, "k": 6, "edges": [[0, 2], [0, 7], [0, 8], [0, 10], [0, 11], [0, 12], [0, 14], [0, 16], [0, 17], [0, 19], [0, 20], [0, 21], [0, 23], [0, 24], [1, 6], [1, 10], [1, 14], [1, 19], [1, 22], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 15], [2, 20], [2, 23], [2, 24], [2, 27], [3, 4], [3, 5], [3, 7], [3, 9], [3, 13], [3, 14], [3, 17], [3, 18], [3, 24], [4, 5], [4, 8], [4, 9], [4, 15], [4, 16], [4, 21], [4, 24], [5, 7], [5, 8], [5, 10], [5, 11], [5, 14], [5, 16], [5, 20], [5, 21], [5, 22], [5, 24], [5, 27], [6, 8], [6, 9], [6, 11], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [6, 24], [6, 25], [6, 26], [6, 28], [7, 17], [7, 19], [7, 21], [7, 27], [7, 29], [8, 11], [8, 13], [8, 24], [9, 12], [9, 16], [9, 20], [9, 21], [9, 22], [9, 28], [10, 12], [10, 13], [10, 14], [10, 19], [10, 20], [10, 22], [10, 23], [10, 28], [11, 12], [11, 14], [11, 25], [11, 29], [12, 16], [12, 17], [12, 21], [12, 26], [13, 14], [13, 15], [13, 17], [13, 19], [13, 20], [13, 21], [13, 22], [13, 29], [14, 22], [14, 25], [14, 26], [14, 27], [15, 16], [15, 18], [15, 23], [15, 24], [15, 27], [15, 28], [15, 29], [16, 19], [16, 20], [16, 24], [16, 26], [16, 29], [17, 21], [17, 24], [17, 25], [17, 27], [18, 19], [18, 20], [18, 23], [18, 24], [19, 20], [19, 24], [19, 25], [19, 26], [20, 22], [20, 26], [20, 28], [21, 22], [21, 23], [21, 28], [22, 23], [22, 24], [23, 24], [23, 27], [23, 29], [24, 25], [24, 27], [24, 28], [25, 26], [25, 28], [26, 27], [27, 29]], "family": "rlve_min_chromatic_number", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-chromatic-number-l6-s7/tests/run.py b/tasks/construct-rlve-min-chromatic-number-l6-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l6-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-min-chromatic-number-l6-s7/tests/test.sh b/tasks/construct-rlve-min-chromatic-number-l6-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l6-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-min-harmonious-coloring-l2-s5/environment/Dockerfile b/tasks/construct-rlve-min-harmonious-coloring-l2-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l2-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-min-harmonious-coloring-l2-s5/environment/instance.json b/tasks/construct-rlve-min-harmonious-coloring-l2-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f7b07ddfd5c02ed80b3a4ba4c5f3099e3229bb85 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l2-s5/environment/instance.json @@ -0,0 +1 @@ +{"n": 8, "k": 4, "edges": [[0, 7], [1, 7], [2, 6], [2, 7], [4, 5]], "family": "rlve_min_harmonious_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-harmonious-coloring-l2-s5/solution/solve.sh b/tasks/construct-rlve-min-harmonious-coloring-l2-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b87e92b5685c4b2e21a5f018f37c531e8123e3f --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l2-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [0, 1, 2, 0, 0, 1, 0, 3]} +RLMATH_EOF diff --git a/tasks/construct-rlve-min-harmonious-coloring-l2-s5/tests/check.py b/tasks/construct-rlve-min-harmonious-coloring-l2-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..91282a31c765b6103e6575180adb47abddb6a506 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l2-s5/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + seen = set() + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + pair = (min(c[u], c[v]), max(c[u], c[v])) + if pair in seen: + raise Invalid(f"colour pair {pair} appears on two edges") + seen.add(pair) + return None, {} diff --git a/tasks/construct-rlve-min-harmonious-coloring-l2-s5/tests/instance.json b/tasks/construct-rlve-min-harmonious-coloring-l2-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f7b07ddfd5c02ed80b3a4ba4c5f3099e3229bb85 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l2-s5/tests/instance.json @@ -0,0 +1 @@ +{"n": 8, "k": 4, "edges": [[0, 7], [1, 7], [2, 6], [2, 7], [4, 5]], "family": "rlve_min_harmonious_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-harmonious-coloring-l2-s5/tests/run.py b/tasks/construct-rlve-min-harmonious-coloring-l2-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l2-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-min-harmonious-coloring-l2-s5/tests/test.sh b/tasks/construct-rlve-min-harmonious-coloring-l2-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l2-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-min-harmonious-coloring-l6-s3/environment/Dockerfile b/tasks/construct-rlve-min-harmonious-coloring-l6-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l6-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-min-harmonious-coloring-l6-s3/environment/instance.json b/tasks/construct-rlve-min-harmonious-coloring-l6-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..91cea1e7f411245862b37aeac69606397b778244 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l6-s3/environment/instance.json @@ -0,0 +1 @@ +{"n": 18, "k": 9, "edges": [[0, 15], [1, 3], [1, 5], [1, 7], [2, 10], [2, 13], [2, 15], [2, 16], [3, 9], [3, 10], [4, 6], [4, 11], [4, 13], [4, 15], [5, 7], [5, 11], [6, 17], [7, 13], [8, 11], [8, 12], [8, 13], [8, 15], [8, 17], [9, 11], [9, 15], [11, 14], [13, 17], [14, 15], [15, 17], [16, 17]], "family": "rlve_min_harmonious_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-harmonious-coloring-l6-s3/solution/solve.sh b/tasks/construct-rlve-min-harmonious-coloring-l6-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7ca60db9b4daabb0fea26cd6eca03fa87857b17 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l6-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [0, 1, 1, 0, 2, 3, 0, 4, 5, 4, 5, 6, 2, 7, 7, 8, 2, 3]} +RLMATH_EOF diff --git a/tasks/construct-rlve-min-harmonious-coloring-l6-s3/tests/check.py b/tasks/construct-rlve-min-harmonious-coloring-l6-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..91282a31c765b6103e6575180adb47abddb6a506 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l6-s3/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + seen = set() + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + pair = (min(c[u], c[v]), max(c[u], c[v])) + if pair in seen: + raise Invalid(f"colour pair {pair} appears on two edges") + seen.add(pair) + return None, {} diff --git a/tasks/construct-rlve-min-harmonious-coloring-l6-s3/tests/instance.json b/tasks/construct-rlve-min-harmonious-coloring-l6-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..91cea1e7f411245862b37aeac69606397b778244 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l6-s3/tests/instance.json @@ -0,0 +1 @@ +{"n": 18, "k": 9, "edges": [[0, 15], [1, 3], [1, 5], [1, 7], [2, 10], [2, 13], [2, 15], [2, 16], [3, 9], [3, 10], [4, 6], [4, 11], [4, 13], [4, 15], [5, 7], [5, 11], [6, 17], [7, 13], [8, 11], [8, 12], [8, 13], [8, 15], [8, 17], [9, 11], [9, 15], [11, 14], [13, 17], [14, 15], [15, 17], [16, 17]], "family": "rlve_min_harmonious_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-harmonious-coloring-l6-s3/tests/run.py b/tasks/construct-rlve-min-harmonious-coloring-l6-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l6-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-min-harmonious-coloring-l6-s3/tests/test.sh b/tasks/construct-rlve-min-harmonious-coloring-l6-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l6-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-min-harmonious-coloring-l6-s4/environment/Dockerfile b/tasks/construct-rlve-min-harmonious-coloring-l6-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l6-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-min-harmonious-coloring-l6-s4/environment/instance.json b/tasks/construct-rlve-min-harmonious-coloring-l6-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..11c2c615adde0a4d90dba943666caad7bd76ecbe --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l6-s4/environment/instance.json @@ -0,0 +1 @@ +{"n": 18, "k": 12, "edges": [[0, 2], [0, 4], [0, 5], [0, 9], [1, 3], [1, 4], [1, 5], [1, 8], [1, 11], [2, 3], [2, 4], [2, 6], [2, 8], [2, 14], [2, 15], [3, 7], [3, 8], [3, 12], [4, 5], [4, 12], [4, 13], [4, 16], [5, 6], [5, 13], [5, 14], [5, 16], [5, 17], [6, 8], [6, 11], [6, 12], [6, 17], [7, 10], [7, 14], [7, 17], [9, 10], [10, 13], [10, 17], [11, 13], [11, 17], [12, 14], [12, 15], [12, 16], [12, 17], [13, 17], [14, 16]], "family": "rlve_min_harmonious_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-harmonious-coloring-l6-s4/solution/solve.sh b/tasks/construct-rlve-min-harmonious-coloring-l6-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba2ae3cf8c213a41c80d9fc5392c5e7d560a0e7b --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l6-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [0, 1, 2, 3, 4, 5, 6, 0, 7, 1, 8, 9, 10, 3, 9, 1, 7, 11]} +RLMATH_EOF diff --git a/tasks/construct-rlve-min-harmonious-coloring-l6-s4/tests/check.py b/tasks/construct-rlve-min-harmonious-coloring-l6-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..91282a31c765b6103e6575180adb47abddb6a506 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l6-s4/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + seen = set() + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + pair = (min(c[u], c[v]), max(c[u], c[v])) + if pair in seen: + raise Invalid(f"colour pair {pair} appears on two edges") + seen.add(pair) + return None, {} diff --git a/tasks/construct-rlve-min-harmonious-coloring-l6-s4/tests/instance.json b/tasks/construct-rlve-min-harmonious-coloring-l6-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..11c2c615adde0a4d90dba943666caad7bd76ecbe --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l6-s4/tests/instance.json @@ -0,0 +1 @@ +{"n": 18, "k": 12, "edges": [[0, 2], [0, 4], [0, 5], [0, 9], [1, 3], [1, 4], [1, 5], [1, 8], [1, 11], [2, 3], [2, 4], [2, 6], [2, 8], [2, 14], [2, 15], [3, 7], [3, 8], [3, 12], [4, 5], [4, 12], [4, 13], [4, 16], [5, 6], [5, 13], [5, 14], [5, 16], [5, 17], [6, 8], [6, 11], [6, 12], [6, 17], [7, 10], [7, 14], [7, 17], [9, 10], [10, 13], [10, 17], [11, 13], [11, 17], [12, 14], [12, 15], [12, 16], [12, 17], [13, 17], [14, 16]], "family": "rlve_min_harmonious_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-harmonious-coloring-l6-s4/tests/run.py b/tasks/construct-rlve-min-harmonious-coloring-l6-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l6-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-min-harmonious-coloring-l6-s4/tests/test.sh b/tasks/construct-rlve-min-harmonious-coloring-l6-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l6-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/environment/Dockerfile b/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/environment/instance.json b/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ec369d748c1ce59beafc7754c9fa35cbe8a1d01d --- /dev/null +++ b/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/environment/instance.json @@ -0,0 +1 @@ +{"n": 12, "sums": [11, 28, 25, 36, 21, 15, 17, 31, 31, 22, 16, 23, 12, 28, 21, 22, 24, 9, 31, 27, 19, 18, 23, 13, 26, 34, 25, 17, 20, 22, 21, 17, 25, 26, 24, 36, 32, 15, 29, 18, 24, 18, 19, 37, 33, 10, 15, 23, 29, 39, 22, 34, 27, 30, 13, 41, 32, 26, 29, 27, 20, 16, 14, 25, 20, 29], "family": "rlve_pairwise_sums_recovery", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/solution/solve.sh b/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d510dca80a02917b43224b52caaf711389d6bdbc --- /dev/null +++ b/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"numbers": [3, 6, 7, 8, 9, 10, 12, 14, 15, 17, 19, 22]} +RLMATH_EOF diff --git a/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/tests/check.py b/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..01b5b475e927688c0209fb93478a95f6dd1d3407 --- /dev/null +++ b/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/tests/check.py @@ -0,0 +1,14 @@ +from collections import Counter + +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + x = int_list(ans.get("numbers"), n, 1, None, "numbers") + if len(set(x)) != n: + raise Invalid("numbers must be distinct") + got = Counter(x[i] + x[j] for i in range(n) for j in range(i + 1, n)) + if got != Counter(inst["sums"]): + raise Invalid("pairwise sums do not match") + return None, {} diff --git a/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/tests/instance.json b/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ec369d748c1ce59beafc7754c9fa35cbe8a1d01d --- /dev/null +++ b/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/tests/instance.json @@ -0,0 +1 @@ +{"n": 12, "sums": [11, 28, 25, 36, 21, 15, 17, 31, 31, 22, 16, 23, 12, 28, 21, 22, 24, 9, 31, 27, 19, 18, 23, 13, 26, 34, 25, 17, 20, 22, 21, 17, 25, 26, 24, 36, 32, 15, 29, 18, 24, 18, 19, 37, 33, 10, 15, 23, 29, 39, 22, 34, 27, 30, 13, 41, 32, 26, 29, 27, 20, 16, 14, 25, 20, 29], "family": "rlve_pairwise_sums_recovery", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/tests/run.py b/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/tests/test.sh b/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-pairwise-sums-recovery-l4-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s0/environment/Dockerfile b/tasks/construct-rlve-pan-solar-panels-l1-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s0/environment/instance.json b/tasks/construct-rlve-pan-solar-panels-l1-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a48a2c0b06b1b31291215a8b251c9089547cf1c2 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s0/environment/instance.json @@ -0,0 +1 @@ +{"A": 5, "B": 19, "C": 23, "D": 47, "target": 19, "family": "rlve_pan_solar_panels", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s0/solution/solve.sh b/tasks/construct-rlve-pan-solar-panels-l1-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..912eff4780b1f054d741c4eb1439368cc1081b5f --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"X": 19, "Y": 38} +RLMATH_EOF diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s0/tests/check.py b/tasks/construct-rlve-pan-solar-panels-l1-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..8bb2e7cc0b0280ab877755cc5d97b510680f7aa3 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s0/tests/check.py @@ -0,0 +1,12 @@ +import math + +from run import Invalid, as_int + + +def check(inst, ans): + X = as_int(ans.get("X"), "X", lo=inst["A"], hi=inst["B"]) + Y = as_int(ans.get("Y"), "Y", lo=inst["C"], hi=inst["D"]) + g = math.gcd(X, Y) + if g < inst["target"]: + raise Invalid(f"gcd(X, Y) = {g} < {inst['target']}") + return None, {"gcd": g} diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s0/tests/instance.json b/tasks/construct-rlve-pan-solar-panels-l1-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a48a2c0b06b1b31291215a8b251c9089547cf1c2 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s0/tests/instance.json @@ -0,0 +1 @@ +{"A": 5, "B": 19, "C": 23, "D": 47, "target": 19, "family": "rlve_pan_solar_panels", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s0/tests/run.py b/tasks/construct-rlve-pan-solar-panels-l1-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s0/tests/test.sh b/tasks/construct-rlve-pan-solar-panels-l1-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s7/environment/Dockerfile b/tasks/construct-rlve-pan-solar-panels-l1-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s7/environment/instance.json b/tasks/construct-rlve-pan-solar-panels-l1-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b22624ce736368bd6dd0f5a14693dd34573495e7 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s7/environment/instance.json @@ -0,0 +1 @@ +{"A": 47, "B": 48, "C": 13, "D": 14, "target": 2, "family": "rlve_pan_solar_panels", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s7/solution/solve.sh b/tasks/construct-rlve-pan-solar-panels-l1-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f0258b6c9db48403afe2de73901dd71dc67f525 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"X": 48, "Y": 14} +RLMATH_EOF diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s7/tests/check.py b/tasks/construct-rlve-pan-solar-panels-l1-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..8bb2e7cc0b0280ab877755cc5d97b510680f7aa3 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s7/tests/check.py @@ -0,0 +1,12 @@ +import math + +from run import Invalid, as_int + + +def check(inst, ans): + X = as_int(ans.get("X"), "X", lo=inst["A"], hi=inst["B"]) + Y = as_int(ans.get("Y"), "Y", lo=inst["C"], hi=inst["D"]) + g = math.gcd(X, Y) + if g < inst["target"]: + raise Invalid(f"gcd(X, Y) = {g} < {inst['target']}") + return None, {"gcd": g} diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s7/tests/instance.json b/tasks/construct-rlve-pan-solar-panels-l1-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b22624ce736368bd6dd0f5a14693dd34573495e7 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s7/tests/instance.json @@ -0,0 +1 @@ +{"A": 47, "B": 48, "C": 13, "D": 14, "target": 2, "family": "rlve_pan_solar_panels", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s7/tests/run.py b/tasks/construct-rlve-pan-solar-panels-l1-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s7/tests/test.sh b/tasks/construct-rlve-pan-solar-panels-l1-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s9/environment/Dockerfile b/tasks/construct-rlve-pan-solar-panels-l1-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s9/environment/instance.json b/tasks/construct-rlve-pan-solar-panels-l1-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..54c3a6eb8c3040783906f99a158b947b8bb31021 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s9/environment/instance.json @@ -0,0 +1 @@ +{"A": 10, "B": 20, "C": 30, "D": 43, "target": 20, "family": "rlve_pan_solar_panels", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s9/solution/solve.sh b/tasks/construct-rlve-pan-solar-panels-l1-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..80ee0afa7428844eddb47f6fdec003d7aa058d4b --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"X": 20, "Y": 40} +RLMATH_EOF diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s9/tests/check.py b/tasks/construct-rlve-pan-solar-panels-l1-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..8bb2e7cc0b0280ab877755cc5d97b510680f7aa3 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s9/tests/check.py @@ -0,0 +1,12 @@ +import math + +from run import Invalid, as_int + + +def check(inst, ans): + X = as_int(ans.get("X"), "X", lo=inst["A"], hi=inst["B"]) + Y = as_int(ans.get("Y"), "Y", lo=inst["C"], hi=inst["D"]) + g = math.gcd(X, Y) + if g < inst["target"]: + raise Invalid(f"gcd(X, Y) = {g} < {inst['target']}") + return None, {"gcd": g} diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s9/tests/instance.json b/tasks/construct-rlve-pan-solar-panels-l1-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..54c3a6eb8c3040783906f99a158b947b8bb31021 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s9/tests/instance.json @@ -0,0 +1 @@ +{"A": 10, "B": 20, "C": 30, "D": 43, "target": 20, "family": "rlve_pan_solar_panels", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s9/tests/run.py b/tasks/construct-rlve-pan-solar-panels-l1-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-pan-solar-panels-l1-s9/tests/test.sh b/tasks/construct-rlve-pan-solar-panels-l1-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l1-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-pan-solar-panels-l5-s1/environment/Dockerfile b/tasks/construct-rlve-pan-solar-panels-l5-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l5-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-pan-solar-panels-l5-s1/environment/instance.json b/tasks/construct-rlve-pan-solar-panels-l5-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..80d28d57209a590a8447c2136e54e83c8af24675 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l5-s1/environment/instance.json @@ -0,0 +1 @@ +{"A": 530628814, "B": 552764264, "C": 48604901, "D": 402446563, "target": 276382132, "family": "rlve_pan_solar_panels", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pan-solar-panels-l5-s1/solution/solve.sh b/tasks/construct-rlve-pan-solar-panels-l5-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..6adcf64bc91cd6b2b105b4dbd187a78320f36965 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l5-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"X": 552764264, "Y": 276382132} +RLMATH_EOF diff --git a/tasks/construct-rlve-pan-solar-panels-l5-s1/tests/check.py b/tasks/construct-rlve-pan-solar-panels-l5-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..8bb2e7cc0b0280ab877755cc5d97b510680f7aa3 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l5-s1/tests/check.py @@ -0,0 +1,12 @@ +import math + +from run import Invalid, as_int + + +def check(inst, ans): + X = as_int(ans.get("X"), "X", lo=inst["A"], hi=inst["B"]) + Y = as_int(ans.get("Y"), "Y", lo=inst["C"], hi=inst["D"]) + g = math.gcd(X, Y) + if g < inst["target"]: + raise Invalid(f"gcd(X, Y) = {g} < {inst['target']}") + return None, {"gcd": g} diff --git a/tasks/construct-rlve-pan-solar-panels-l5-s1/tests/instance.json b/tasks/construct-rlve-pan-solar-panels-l5-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..80d28d57209a590a8447c2136e54e83c8af24675 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l5-s1/tests/instance.json @@ -0,0 +1 @@ +{"A": 530628814, "B": 552764264, "C": 48604901, "D": 402446563, "target": 276382132, "family": "rlve_pan_solar_panels", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pan-solar-panels-l5-s1/tests/run.py b/tasks/construct-rlve-pan-solar-panels-l5-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l5-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-pan-solar-panels-l5-s1/tests/test.sh b/tasks/construct-rlve-pan-solar-panels-l5-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l5-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-polynomial-global-minimum-l4-s5/environment/Dockerfile b/tasks/construct-rlve-polynomial-global-minimum-l4-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-polynomial-global-minimum-l4-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-polynomial-global-minimum-l4-s5/environment/instance.json b/tasks/construct-rlve-polynomial-global-minimum-l4-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..33e3a2423cdaa20f572f0cd0c41e3aabe1613a3a --- /dev/null +++ b/tasks/construct-rlve-polynomial-global-minimum-l4-s5/environment/instance.json @@ -0,0 +1 @@ +{"coeffs": [131, -374, 493, -312, 122, -24, 2, 0, 1], "fmin": "29.3026078113689615574615525109518708194956206", "family": "rlve_polynomial_global_minimum", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-global-minimum-l4-s5/solution/solve.sh b/tasks/construct-rlve-polynomial-global-minimum-l4-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..adcaa766b29332ed034a86f95cfbbfaeecf13345 --- /dev/null +++ b/tasks/construct-rlve-polynomial-global-minimum-l4-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x0": 0.7048002815465262} +RLMATH_EOF diff --git a/tasks/construct-rlve-polynomial-global-minimum-l4-s5/tests/check.py b/tasks/construct-rlve-polynomial-global-minimum-l4-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..3be068f4391ad0838c29a4f7d521b8072cf39991 --- /dev/null +++ b/tasks/construct-rlve-polynomial-global-minimum-l4-s5/tests/check.py @@ -0,0 +1,19 @@ +from fractions import Fraction + +from run import Invalid, num + + +def check(inst, ans): + x0 = Fraction(num(ans.get("x0"), "x0")) + if abs(x0) > 10 ** 6: + raise Invalid("x0 out of range") + v = Fraction(0) + for a in reversed(inst["coeffs"]): + v = v * x0 + a + fmin = Fraction(inst["fmin"]) + tol = Fraction(1, 10 ** 9) * max(Fraction(1), abs(fmin)) + if v > fmin + tol: + raise Invalid(f"f(x0) = {float(v)} is above the global minimum {float(fmin)}") + if v < fmin - tol: # cannot happen for a correct f_min; guards against a bad instance + raise Invalid("internal: f(x0) below recorded minimum") + return None, {"f_x0": float(v)} diff --git a/tasks/construct-rlve-polynomial-global-minimum-l4-s5/tests/instance.json b/tasks/construct-rlve-polynomial-global-minimum-l4-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..33e3a2423cdaa20f572f0cd0c41e3aabe1613a3a --- /dev/null +++ b/tasks/construct-rlve-polynomial-global-minimum-l4-s5/tests/instance.json @@ -0,0 +1 @@ +{"coeffs": [131, -374, 493, -312, 122, -24, 2, 0, 1], "fmin": "29.3026078113689615574615525109518708194956206", "family": "rlve_polynomial_global_minimum", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-global-minimum-l4-s5/tests/run.py b/tasks/construct-rlve-polynomial-global-minimum-l4-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-polynomial-global-minimum-l4-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-polynomial-global-minimum-l4-s5/tests/test.sh b/tasks/construct-rlve-polynomial-global-minimum-l4-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-polynomial-global-minimum-l4-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-polynomial-integer-roots-l3-s0/environment/Dockerfile b/tasks/construct-rlve-polynomial-integer-roots-l3-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l3-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-polynomial-integer-roots-l3-s0/environment/instance.json b/tasks/construct-rlve-polynomial-integer-roots-l3-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6c2ce809bc0738ec2302e02b7058e098943774ad --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l3-s0/environment/instance.json @@ -0,0 +1 @@ +{"coeffs": [147456, 18432, -40960, -512, 3328, -72, -100, 2, 1], "family": "rlve_polynomial_integer_roots", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-integer-roots-l3-s0/solution/solve.sh b/tasks/construct-rlve-polynomial-integer-roots-l3-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..1288bbf9965ab6e4bad15aa889fc55a844f1d293 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l3-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"roots": [-8, -6, -4, -2, 4, 4, 4, 6]} +RLMATH_EOF diff --git a/tasks/construct-rlve-polynomial-integer-roots-l3-s0/tests/check.py b/tasks/construct-rlve-polynomial-integer-roots-l3-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2d30553cb884c5e03c8afe73ef652efc483ab791 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l3-s0/tests/check.py @@ -0,0 +1,20 @@ +from run import Invalid, int_list + + +def check(inst, ans): + c = inst["coeffs"] # c[i] = coefficient of x^i, monic of degree len(c) - 1 + n = len(c) - 1 + r = int_list(ans.get("roots"), n, name="roots") + bound = 1 + max(abs(v) for v in c) # Cauchy bound on roots + if any(abs(a) > bound for a in r): # any integer root divides the constant term / is bounded by max|c_i| + raise Invalid("root out of range") + prod = [1] + for a in r: # multiply by (x - a) + nxt = [0] * (len(prod) + 1) + for i, v in enumerate(prod): + nxt[i + 1] += v + nxt[i] -= a * v + prod = nxt + if prod != c: + raise Invalid("the product does not expand to P(x)") + return None, {} diff --git a/tasks/construct-rlve-polynomial-integer-roots-l3-s0/tests/instance.json b/tasks/construct-rlve-polynomial-integer-roots-l3-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6c2ce809bc0738ec2302e02b7058e098943774ad --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l3-s0/tests/instance.json @@ -0,0 +1 @@ +{"coeffs": [147456, 18432, -40960, -512, 3328, -72, -100, 2, 1], "family": "rlve_polynomial_integer_roots", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-integer-roots-l3-s0/tests/test.sh b/tasks/construct-rlve-polynomial-integer-roots-l3-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l3-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-polynomial-integer-roots-l3-s7/environment/Dockerfile b/tasks/construct-rlve-polynomial-integer-roots-l3-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l3-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-polynomial-integer-roots-l3-s7/environment/instance.json b/tasks/construct-rlve-polynomial-integer-roots-l3-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..30cbb626acbf0713ac75cce0719f1fd0fdd9ad66 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l3-s7/environment/instance.json @@ -0,0 +1 @@ +{"coeffs": [-60480, -41256, 10908, 12298, 1365, -520, -82, 6, 1], "family": "rlve_polynomial_integer_roots", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-integer-roots-l3-s7/solution/solve.sh b/tasks/construct-rlve-polynomial-integer-roots-l3-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd15f7bf47f5561c74d46a959eb7b41919914e19 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l3-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"roots": [-8, -5, -3, -3, -2, 2, 6, 7]} +RLMATH_EOF diff --git a/tasks/construct-rlve-polynomial-integer-roots-l3-s7/tests/check.py b/tasks/construct-rlve-polynomial-integer-roots-l3-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2d30553cb884c5e03c8afe73ef652efc483ab791 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l3-s7/tests/check.py @@ -0,0 +1,20 @@ +from run import Invalid, int_list + + +def check(inst, ans): + c = inst["coeffs"] # c[i] = coefficient of x^i, monic of degree len(c) - 1 + n = len(c) - 1 + r = int_list(ans.get("roots"), n, name="roots") + bound = 1 + max(abs(v) for v in c) # Cauchy bound on roots + if any(abs(a) > bound for a in r): # any integer root divides the constant term / is bounded by max|c_i| + raise Invalid("root out of range") + prod = [1] + for a in r: # multiply by (x - a) + nxt = [0] * (len(prod) + 1) + for i, v in enumerate(prod): + nxt[i + 1] += v + nxt[i] -= a * v + prod = nxt + if prod != c: + raise Invalid("the product does not expand to P(x)") + return None, {} diff --git a/tasks/construct-rlve-polynomial-integer-roots-l3-s7/tests/instance.json b/tasks/construct-rlve-polynomial-integer-roots-l3-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..30cbb626acbf0713ac75cce0719f1fd0fdd9ad66 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l3-s7/tests/instance.json @@ -0,0 +1 @@ +{"coeffs": [-60480, -41256, 10908, 12298, 1365, -520, -82, 6, 1], "family": "rlve_polynomial_integer_roots", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-integer-roots-l3-s7/tests/run.py b/tasks/construct-rlve-polynomial-integer-roots-l3-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l3-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-polynomial-integer-roots-l3-s7/tests/test.sh b/tasks/construct-rlve-polynomial-integer-roots-l3-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l3-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-polynomial-interpolation-l4-s0/environment/Dockerfile b/tasks/construct-rlve-polynomial-interpolation-l4-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-polynomial-interpolation-l4-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-polynomial-interpolation-l4-s0/environment/instance.json b/tasks/construct-rlve-polynomial-interpolation-l4-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3e7343fffe163ddaf9704a51a0f84e4cb10240a5 --- /dev/null +++ b/tasks/construct-rlve-polynomial-interpolation-l4-s0/environment/instance.json @@ -0,0 +1 @@ +{"X": [-5, -1, -2, 7, 5, 1, 2, -3, -7, 6], "Y": [-7731801, -9, -2073, 159192375, 7581699, 3, 1575, -77725, -160345053, 39524903], "family": "rlve_polynomial_interpolation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-interpolation-l4-s0/solution/solve.sh b/tasks/construct-rlve-polynomial-interpolation-l4-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a20c493b6e5aabccc3730d0c010ec0f2fe2baded --- /dev/null +++ b/tasks/construct-rlve-polynomial-interpolation-l4-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"coeffs": [-1, 0, -2, 4, 5, 0, -5, -2, 0, 4]} +RLMATH_EOF diff --git a/tasks/construct-rlve-polynomial-interpolation-l4-s0/tests/check.py b/tasks/construct-rlve-polynomial-interpolation-l4-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..f05264e3fd4584db7cb3768800e4a2497564b4f5 --- /dev/null +++ b/tasks/construct-rlve-polynomial-interpolation-l4-s0/tests/check.py @@ -0,0 +1,13 @@ +from run import Invalid, int_list + + +def check(inst, ans): + X, Y = inst["X"], inst["Y"] + c = int_list(ans.get("coeffs"), len(X), name="coeffs") + for x, y in zip(X, Y): + v = 0 + for a in reversed(c): + v = v * x + a + if v != y: + raise Invalid(f"f({x}) = {v}, need {y}") + return None, {} diff --git a/tasks/construct-rlve-polynomial-interpolation-l4-s0/tests/instance.json b/tasks/construct-rlve-polynomial-interpolation-l4-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3e7343fffe163ddaf9704a51a0f84e4cb10240a5 --- /dev/null +++ b/tasks/construct-rlve-polynomial-interpolation-l4-s0/tests/instance.json @@ -0,0 +1 @@ +{"X": [-5, -1, -2, 7, 5, 1, 2, -3, -7, 6], "Y": [-7731801, -9, -2073, 159192375, 7581699, 3, 1575, -77725, -160345053, 39524903], "family": "rlve_polynomial_interpolation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-interpolation-l4-s0/tests/run.py b/tasks/construct-rlve-polynomial-interpolation-l4-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-polynomial-interpolation-l4-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-polynomial-interpolation-l4-s0/tests/test.sh b/tasks/construct-rlve-polynomial-interpolation-l4-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-polynomial-interpolation-l4-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-polynomial-interpolation-l4-s9/environment/Dockerfile b/tasks/construct-rlve-polynomial-interpolation-l4-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-polynomial-interpolation-l4-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-polynomial-interpolation-l4-s9/environment/instance.json b/tasks/construct-rlve-polynomial-interpolation-l4-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..cb32917192f31543e352dd1d732496e86ca9e9f1 --- /dev/null +++ b/tasks/construct-rlve-polynomial-interpolation-l4-s9/environment/instance.json @@ -0,0 +1 @@ +{"X": [-2, 6, 0, 1, 7, -7, 3, -3, -5, -4], "Y": [-495, 23683633, 1, 18, 92653002, -68897310, 55570, -25238, -3092094, -385647], "family": "rlve_polynomial_interpolation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-interpolation-l4-s9/solution/solve.sh b/tasks/construct-rlve-polynomial-interpolation-l4-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..21a2f3ade2f04e60ee652a74ffcf85cc67a695b8 --- /dev/null +++ b/tasks/construct-rlve-polynomial-interpolation-l4-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"coeffs": [1, 4, 2, 2, -2, 4, 3, 0, 2, 2]} +RLMATH_EOF diff --git a/tasks/construct-rlve-polynomial-interpolation-l4-s9/tests/check.py b/tasks/construct-rlve-polynomial-interpolation-l4-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..f05264e3fd4584db7cb3768800e4a2497564b4f5 --- /dev/null +++ b/tasks/construct-rlve-polynomial-interpolation-l4-s9/tests/check.py @@ -0,0 +1,13 @@ +from run import Invalid, int_list + + +def check(inst, ans): + X, Y = inst["X"], inst["Y"] + c = int_list(ans.get("coeffs"), len(X), name="coeffs") + for x, y in zip(X, Y): + v = 0 + for a in reversed(c): + v = v * x + a + if v != y: + raise Invalid(f"f({x}) = {v}, need {y}") + return None, {} diff --git a/tasks/construct-rlve-polynomial-interpolation-l4-s9/tests/instance.json b/tasks/construct-rlve-polynomial-interpolation-l4-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..cb32917192f31543e352dd1d732496e86ca9e9f1 --- /dev/null +++ b/tasks/construct-rlve-polynomial-interpolation-l4-s9/tests/instance.json @@ -0,0 +1 @@ +{"X": [-2, 6, 0, 1, 7, -7, 3, -3, -5, -4], "Y": [-495, 23683633, 1, 18, 92653002, -68897310, 55570, -25238, -3092094, -385647], "family": "rlve_polynomial_interpolation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-interpolation-l4-s9/tests/run.py b/tasks/construct-rlve-polynomial-interpolation-l4-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-polynomial-interpolation-l4-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-polynomial-interpolation-l4-s9/tests/test.sh b/tasks/construct-rlve-polynomial-interpolation-l4-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-polynomial-interpolation-l4-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-prefix-product-permutation-l4-s5/environment/Dockerfile b/tasks/construct-rlve-prefix-product-permutation-l4-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-prefix-product-permutation-l4-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-prefix-product-permutation-l4-s5/environment/instance.json b/tasks/construct-rlve-prefix-product-permutation-l4-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..fa643850a5ea3dd2122719dc1af56bd9a6ee8718 --- /dev/null +++ b/tasks/construct-rlve-prefix-product-permutation-l4-s5/environment/instance.json @@ -0,0 +1 @@ +{"n": 733, "family": "rlve_prefix_product_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prefix-product-permutation-l4-s5/solution/solve.sh b/tasks/construct-rlve-prefix-product-permutation-l4-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..17ae4f56e82c10cd2abb1ef675908b4608f503e6 --- /dev/null +++ b/tasks/construct-rlve-prefix-product-permutation-l4-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"perm": [1, 2, 368, 490, 551, 441, 612, 420, 276, 164, 221, 201, 673, 283, 577, 392, 505, 346, 449, 464, 111, 385, 101, 256, 337, 89, 142, 544, 289, 456, 563, 403, 253, 312, 540, 378, 225, 318, 599, 95, 56, 591, 193, 359, 51, 620, 495, 79, 169, 375, 45, 116, 438, 84, 639, 41, 145, 644, 595, 411, 282, 722, 202, 129, 127, 204, 523, 187, 637, 86, 556, 383, 113, 242, 526, 519, 300, 239, 48, 567, 395, 182, 296, 54, 97, 70, 180, 397, 26, 594, 677, 146, 248, 135, 40, 680, 85, 666, 188, 349, 23, 480, 425, 428, 586, 371, 409, 597, 320, 270, 21, 351, 73, 494, 689, 52, 298, 521, 206, 155, 508, 419, 728, 442, 468, 605, 65, 532, 64, 609, 469, 499, 262, 486, 94, 696, 319, 627, 410, 676, 645, 27, 192, 693, 57, 92, 488, 370, 630, 429, 260, 501, 517, 528, 120, 228, 391, 720, 284, 273, 198, 561, 458, 10, 515, 503, 394, 655, 49, 361, 402, 704, 457, 573, 199, 223, 380, 382, 664, 87, 339, 82, 440, 730, 491, 211, 68, 99, 387, 288, 707, 143, 43, 377, 700, 313, 461, 161, 175, 513, 12, 63, 607, 66, 213, 119, 581, 518, 660, 243, 186, 668, 205, 617, 299, 659, 527, 582, 502, 570, 11, 535, 176, 356, 37, 418, 614, 156, 345, 718, 393, 569, 516, 583, 261, 603, 470, 434, 78, 688, 621, 74, 210, 550, 731, 369, 588, 93, 601, 263, 303, 331, 33, 424, 633, 24, 399, 329, 305, 151, 235, 133, 250, 433, 498, 604, 610, 443, 414, 110, 715, 450, 160, 538, 314, 9, 572, 562, 705, 290, 323, 61, 14, 159, 463, 716, 347, 190, 29, 280, 413, 467, 611, 729, 552, 83, 682, 117, 215, 77, 497, 471, 251, 405, 259, 585, 631, 426, 427, 632, 481, 34, 196, 275, 727, 613, 509, 38, 137, 109, 466, 444, 281, 675, 596, 628, 372, 335, 258, 431, 252, 703, 564, 362, 328, 478, 25, 647, 181, 654, 568, 504, 719, 578, 229, 18, 287, 546, 100, 713, 112, 663, 557, 381, 558, 224, 699, 541, 44, 685, 170, 334, 408, 629, 587, 489, 732, 3, 246, 148, 106, 327, 401, 565, 50, 691, 194, 36, 511, 177, 354, 178, 72, 623, 22, 635, 189, 448, 717, 506, 157, 16, 231, 167, 81, 554, 88, 710, 257, 407, 373, 171, 32, 483, 304, 477, 400, 363, 107, 139, 60, 454, 291, 269, 626, 598, 697, 226, 122, 8, 460, 539, 701, 254, 103, 308, 309, 104, 150, 476, 330, 484, 264, 238, 658, 520, 618, 53, 652, 183, 6, 124, 268, 322, 455, 706, 545, 388, 19, 272, 576, 721, 674, 412, 445, 30, 173, 163, 726, 421, 197, 575, 285, 20, 625, 321, 292, 125, 131, 237, 302, 485, 602, 500, 584, 430, 406, 336, 711, 102, 311, 702, 404, 432, 472, 134, 642, 147, 366, 4, 185, 525, 661, 114, 47, 657, 301, 265, 132, 474, 152, 219, 166, 342, 17, 390, 579, 121, 317, 698, 379, 559, 200, 724, 165, 233, 153, 208, 76, 436, 118, 530, 67, 549, 492, 75, 217, 154, 616, 522, 669, 128, 672, 723, 222, 560, 574, 274, 422, 35, 358, 692, 592, 28, 447, 348, 636, 667, 524, 244, 5, 295, 653, 396, 648, 71, 353, 355, 512, 536, 162, 278, 31, 333, 374, 686, 80, 341, 232, 220, 725, 277, 174, 537, 462, 451, 15, 344, 507, 615, 207, 218, 234, 475, 306, 105, 365, 247, 643, 678, 42, 543, 708, 90, 59, 325, 108, 416, 39, 641, 249, 473, 236, 266, 126, 671, 203, 670, 130, 267, 293, 7, 316, 227, 580, 529, 214, 437, 683, 46, 241, 662, 384, 714, 465, 415, 138, 326, 364, 149, 307, 310, 255, 712, 386, 547, 69, 650, 55, 695, 600, 487, 589, 58, 141, 709, 338, 555, 665, 638, 681, 439, 553, 340, 168, 687, 496, 435, 216, 209, 493, 622, 352, 179, 649, 98, 548, 212, 531, 608, 606, 533, 13, 453, 324, 140, 91, 590, 694, 96, 651, 297, 619, 690, 360, 566, 656, 240, 115, 684, 376, 542, 144, 679, 640, 136, 417, 510, 357, 195, 423, 482, 332, 172, 279, 446, 191, 593, 646, 398, 479, 634, 350, 624, 271, 286, 389, 230, 343, 158, 452, 62, 534, 514, 571, 459, 315, 123, 294, 184, 245, 367, 733]} +RLMATH_EOF diff --git a/tasks/construct-rlve-prefix-product-permutation-l4-s5/tests/check.py b/tasks/construct-rlve-prefix-product-permutation-l4-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..3d93850acd79cc0f8fff05cdbb0c63aabc484815 --- /dev/null +++ b/tasks/construct-rlve-prefix-product-permutation-l4-s5/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + p = int_list(ans.get("perm"), n, 1, n, "perm") + if len(set(p)) != n: + raise Invalid("not a permutation") + seen, acc = set(), 1 + for v in p: + acc = acc * v % n + if acc in seen: + raise Invalid(f"prefix product residue {acc} repeats") + seen.add(acc) + return None, {} diff --git a/tasks/construct-rlve-prefix-product-permutation-l4-s5/tests/instance.json b/tasks/construct-rlve-prefix-product-permutation-l4-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..fa643850a5ea3dd2122719dc1af56bd9a6ee8718 --- /dev/null +++ b/tasks/construct-rlve-prefix-product-permutation-l4-s5/tests/instance.json @@ -0,0 +1 @@ +{"n": 733, "family": "rlve_prefix_product_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prefix-product-permutation-l4-s5/tests/run.py b/tasks/construct-rlve-prefix-product-permutation-l4-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-prefix-product-permutation-l4-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-prefix-product-permutation-l4-s5/tests/test.sh b/tasks/construct-rlve-prefix-product-permutation-l4-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-prefix-product-permutation-l4-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-prefix-sum-permutation-l5-s3/environment/Dockerfile b/tasks/construct-rlve-prefix-sum-permutation-l5-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l5-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-prefix-sum-permutation-l5-s3/environment/instance.json b/tasks/construct-rlve-prefix-sum-permutation-l5-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5044bafa713d7785e220999f0c7318948beb3407 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l5-s3/environment/instance.json @@ -0,0 +1 @@ +{"n": 6502, "family": "rlve_prefix_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prefix-sum-permutation-l5-s3/solution/solve.sh b/tasks/construct-rlve-prefix-sum-permutation-l5-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2b1f6636fe144dc4d2ac203a026a23dc891705a --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l5-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"perm": [6502, 1, 6500, 3, 6498, 5, 6496, 7, 6494, 9, 6492, 11, 6490, 13, 6488, 15, 6486, 17, 6484, 19, 6482, 21, 6480, 23, 6478, 25, 6476, 27, 6474, 29, 6472, 31, 6470, 33, 6468, 35, 6466, 37, 6464, 39, 6462, 41, 6460, 43, 6458, 45, 6456, 47, 6454, 49, 6452, 51, 6450, 53, 6448, 55, 6446, 57, 6444, 59, 6442, 61, 6440, 63, 6438, 65, 6436, 67, 6434, 69, 6432, 71, 6430, 73, 6428, 75, 6426, 77, 6424, 79, 6422, 81, 6420, 83, 6418, 85, 6416, 87, 6414, 89, 6412, 91, 6410, 93, 6408, 95, 6406, 97, 6404, 99, 6402, 101, 6400, 103, 6398, 105, 6396, 107, 6394, 109, 6392, 111, 6390, 113, 6388, 115, 6386, 117, 6384, 119, 6382, 121, 6380, 123, 6378, 125, 6376, 127, 6374, 129, 6372, 131, 6370, 133, 6368, 135, 6366, 137, 6364, 139, 6362, 141, 6360, 143, 6358, 145, 6356, 147, 6354, 149, 6352, 151, 6350, 153, 6348, 155, 6346, 157, 6344, 159, 6342, 161, 6340, 163, 6338, 165, 6336, 167, 6334, 169, 6332, 171, 6330, 173, 6328, 175, 6326, 177, 6324, 179, 6322, 181, 6320, 183, 6318, 185, 6316, 187, 6314, 189, 6312, 191, 6310, 193, 6308, 195, 6306, 197, 6304, 199, 6302, 201, 6300, 203, 6298, 205, 6296, 207, 6294, 209, 6292, 211, 6290, 213, 6288, 215, 6286, 217, 6284, 219, 6282, 221, 6280, 223, 6278, 225, 6276, 227, 6274, 229, 6272, 231, 6270, 233, 6268, 235, 6266, 237, 6264, 239, 6262, 241, 6260, 243, 6258, 245, 6256, 247, 6254, 249, 6252, 251, 6250, 253, 6248, 255, 6246, 257, 6244, 259, 6242, 261, 6240, 263, 6238, 265, 6236, 267, 6234, 269, 6232, 271, 6230, 273, 6228, 275, 6226, 277, 6224, 279, 6222, 281, 6220, 283, 6218, 285, 6216, 287, 6214, 289, 6212, 291, 6210, 293, 6208, 295, 6206, 297, 6204, 299, 6202, 301, 6200, 303, 6198, 305, 6196, 307, 6194, 309, 6192, 311, 6190, 313, 6188, 315, 6186, 317, 6184, 319, 6182, 321, 6180, 323, 6178, 325, 6176, 327, 6174, 329, 6172, 331, 6170, 333, 6168, 335, 6166, 337, 6164, 339, 6162, 341, 6160, 343, 6158, 345, 6156, 347, 6154, 349, 6152, 351, 6150, 353, 6148, 355, 6146, 357, 6144, 359, 6142, 361, 6140, 363, 6138, 365, 6136, 367, 6134, 369, 6132, 371, 6130, 373, 6128, 375, 6126, 377, 6124, 379, 6122, 381, 6120, 383, 6118, 385, 6116, 387, 6114, 389, 6112, 391, 6110, 393, 6108, 395, 6106, 397, 6104, 399, 6102, 401, 6100, 403, 6098, 405, 6096, 407, 6094, 409, 6092, 411, 6090, 413, 6088, 415, 6086, 417, 6084, 419, 6082, 421, 6080, 423, 6078, 425, 6076, 427, 6074, 429, 6072, 431, 6070, 433, 6068, 435, 6066, 437, 6064, 439, 6062, 441, 6060, 443, 6058, 445, 6056, 447, 6054, 449, 6052, 451, 6050, 453, 6048, 455, 6046, 457, 6044, 459, 6042, 461, 6040, 463, 6038, 465, 6036, 467, 6034, 469, 6032, 471, 6030, 473, 6028, 475, 6026, 477, 6024, 479, 6022, 481, 6020, 483, 6018, 485, 6016, 487, 6014, 489, 6012, 491, 6010, 493, 6008, 495, 6006, 497, 6004, 499, 6002, 501, 6000, 503, 5998, 505, 5996, 507, 5994, 509, 5992, 511, 5990, 513, 5988, 515, 5986, 517, 5984, 519, 5982, 521, 5980, 523, 5978, 525, 5976, 527, 5974, 529, 5972, 531, 5970, 533, 5968, 535, 5966, 537, 5964, 539, 5962, 541, 5960, 543, 5958, 545, 5956, 547, 5954, 549, 5952, 551, 5950, 553, 5948, 555, 5946, 557, 5944, 559, 5942, 561, 5940, 563, 5938, 565, 5936, 567, 5934, 569, 5932, 571, 5930, 573, 5928, 575, 5926, 577, 5924, 579, 5922, 581, 5920, 583, 5918, 585, 5916, 587, 5914, 589, 5912, 591, 5910, 593, 5908, 595, 5906, 597, 5904, 599, 5902, 601, 5900, 603, 5898, 605, 5896, 607, 5894, 609, 5892, 611, 5890, 613, 5888, 615, 5886, 617, 5884, 619, 5882, 621, 5880, 623, 5878, 625, 5876, 627, 5874, 629, 5872, 631, 5870, 633, 5868, 635, 5866, 637, 5864, 639, 5862, 641, 5860, 643, 5858, 645, 5856, 647, 5854, 649, 5852, 651, 5850, 653, 5848, 655, 5846, 657, 5844, 659, 5842, 661, 5840, 663, 5838, 665, 5836, 667, 5834, 669, 5832, 671, 5830, 673, 5828, 675, 5826, 677, 5824, 679, 5822, 681, 5820, 683, 5818, 685, 5816, 687, 5814, 689, 5812, 691, 5810, 693, 5808, 695, 5806, 697, 5804, 699, 5802, 701, 5800, 703, 5798, 705, 5796, 707, 5794, 709, 5792, 711, 5790, 713, 5788, 715, 5786, 717, 5784, 719, 5782, 721, 5780, 723, 5778, 725, 5776, 727, 5774, 729, 5772, 731, 5770, 733, 5768, 735, 5766, 737, 5764, 739, 5762, 741, 5760, 743, 5758, 745, 5756, 747, 5754, 749, 5752, 751, 5750, 753, 5748, 755, 5746, 757, 5744, 759, 5742, 761, 5740, 763, 5738, 765, 5736, 767, 5734, 769, 5732, 771, 5730, 773, 5728, 775, 5726, 777, 5724, 779, 5722, 781, 5720, 783, 5718, 785, 5716, 787, 5714, 789, 5712, 791, 5710, 793, 5708, 795, 5706, 797, 5704, 799, 5702, 801, 5700, 803, 5698, 805, 5696, 807, 5694, 809, 5692, 811, 5690, 813, 5688, 815, 5686, 817, 5684, 819, 5682, 821, 5680, 823, 5678, 825, 5676, 827, 5674, 829, 5672, 831, 5670, 833, 5668, 835, 5666, 837, 5664, 839, 5662, 841, 5660, 843, 5658, 845, 5656, 847, 5654, 849, 5652, 851, 5650, 853, 5648, 855, 5646, 857, 5644, 859, 5642, 861, 5640, 863, 5638, 865, 5636, 867, 5634, 869, 5632, 871, 5630, 873, 5628, 875, 5626, 877, 5624, 879, 5622, 881, 5620, 883, 5618, 885, 5616, 887, 5614, 889, 5612, 891, 5610, 893, 5608, 895, 5606, 897, 5604, 899, 5602, 901, 5600, 903, 5598, 905, 5596, 907, 5594, 909, 5592, 911, 5590, 913, 5588, 915, 5586, 917, 5584, 919, 5582, 921, 5580, 923, 5578, 925, 5576, 927, 5574, 929, 5572, 931, 5570, 933, 5568, 935, 5566, 937, 5564, 939, 5562, 941, 5560, 943, 5558, 945, 5556, 947, 5554, 949, 5552, 951, 5550, 953, 5548, 955, 5546, 957, 5544, 959, 5542, 961, 5540, 963, 5538, 965, 5536, 967, 5534, 969, 5532, 971, 5530, 973, 5528, 975, 5526, 977, 5524, 979, 5522, 981, 5520, 983, 5518, 985, 5516, 987, 5514, 989, 5512, 991, 5510, 993, 5508, 995, 5506, 997, 5504, 999, 5502, 1001, 5500, 1003, 5498, 1005, 5496, 1007, 5494, 1009, 5492, 1011, 5490, 1013, 5488, 1015, 5486, 1017, 5484, 1019, 5482, 1021, 5480, 1023, 5478, 1025, 5476, 1027, 5474, 1029, 5472, 1031, 5470, 1033, 5468, 1035, 5466, 1037, 5464, 1039, 5462, 1041, 5460, 1043, 5458, 1045, 5456, 1047, 5454, 1049, 5452, 1051, 5450, 1053, 5448, 1055, 5446, 1057, 5444, 1059, 5442, 1061, 5440, 1063, 5438, 1065, 5436, 1067, 5434, 1069, 5432, 1071, 5430, 1073, 5428, 1075, 5426, 1077, 5424, 1079, 5422, 1081, 5420, 1083, 5418, 1085, 5416, 1087, 5414, 1089, 5412, 1091, 5410, 1093, 5408, 1095, 5406, 1097, 5404, 1099, 5402, 1101, 5400, 1103, 5398, 1105, 5396, 1107, 5394, 1109, 5392, 1111, 5390, 1113, 5388, 1115, 5386, 1117, 5384, 1119, 5382, 1121, 5380, 1123, 5378, 1125, 5376, 1127, 5374, 1129, 5372, 1131, 5370, 1133, 5368, 1135, 5366, 1137, 5364, 1139, 5362, 1141, 5360, 1143, 5358, 1145, 5356, 1147, 5354, 1149, 5352, 1151, 5350, 1153, 5348, 1155, 5346, 1157, 5344, 1159, 5342, 1161, 5340, 1163, 5338, 1165, 5336, 1167, 5334, 1169, 5332, 1171, 5330, 1173, 5328, 1175, 5326, 1177, 5324, 1179, 5322, 1181, 5320, 1183, 5318, 1185, 5316, 1187, 5314, 1189, 5312, 1191, 5310, 1193, 5308, 1195, 5306, 1197, 5304, 1199, 5302, 1201, 5300, 1203, 5298, 1205, 5296, 1207, 5294, 1209, 5292, 1211, 5290, 1213, 5288, 1215, 5286, 1217, 5284, 1219, 5282, 1221, 5280, 1223, 5278, 1225, 5276, 1227, 5274, 1229, 5272, 1231, 5270, 1233, 5268, 1235, 5266, 1237, 5264, 1239, 5262, 1241, 5260, 1243, 5258, 1245, 5256, 1247, 5254, 1249, 5252, 1251, 5250, 1253, 5248, 1255, 5246, 1257, 5244, 1259, 5242, 1261, 5240, 1263, 5238, 1265, 5236, 1267, 5234, 1269, 5232, 1271, 5230, 1273, 5228, 1275, 5226, 1277, 5224, 1279, 5222, 1281, 5220, 1283, 5218, 1285, 5216, 1287, 5214, 1289, 5212, 1291, 5210, 1293, 5208, 1295, 5206, 1297, 5204, 1299, 5202, 1301, 5200, 1303, 5198, 1305, 5196, 1307, 5194, 1309, 5192, 1311, 5190, 1313, 5188, 1315, 5186, 1317, 5184, 1319, 5182, 1321, 5180, 1323, 5178, 1325, 5176, 1327, 5174, 1329, 5172, 1331, 5170, 1333, 5168, 1335, 5166, 1337, 5164, 1339, 5162, 1341, 5160, 1343, 5158, 1345, 5156, 1347, 5154, 1349, 5152, 1351, 5150, 1353, 5148, 1355, 5146, 1357, 5144, 1359, 5142, 1361, 5140, 1363, 5138, 1365, 5136, 1367, 5134, 1369, 5132, 1371, 5130, 1373, 5128, 1375, 5126, 1377, 5124, 1379, 5122, 1381, 5120, 1383, 5118, 1385, 5116, 1387, 5114, 1389, 5112, 1391, 5110, 1393, 5108, 1395, 5106, 1397, 5104, 1399, 5102, 1401, 5100, 1403, 5098, 1405, 5096, 1407, 5094, 1409, 5092, 1411, 5090, 1413, 5088, 1415, 5086, 1417, 5084, 1419, 5082, 1421, 5080, 1423, 5078, 1425, 5076, 1427, 5074, 1429, 5072, 1431, 5070, 1433, 5068, 1435, 5066, 1437, 5064, 1439, 5062, 1441, 5060, 1443, 5058, 1445, 5056, 1447, 5054, 1449, 5052, 1451, 5050, 1453, 5048, 1455, 5046, 1457, 5044, 1459, 5042, 1461, 5040, 1463, 5038, 1465, 5036, 1467, 5034, 1469, 5032, 1471, 5030, 1473, 5028, 1475, 5026, 1477, 5024, 1479, 5022, 1481, 5020, 1483, 5018, 1485, 5016, 1487, 5014, 1489, 5012, 1491, 5010, 1493, 5008, 1495, 5006, 1497, 5004, 1499, 5002, 1501, 5000, 1503, 4998, 1505, 4996, 1507, 4994, 1509, 4992, 1511, 4990, 1513, 4988, 1515, 4986, 1517, 4984, 1519, 4982, 1521, 4980, 1523, 4978, 1525, 4976, 1527, 4974, 1529, 4972, 1531, 4970, 1533, 4968, 1535, 4966, 1537, 4964, 1539, 4962, 1541, 4960, 1543, 4958, 1545, 4956, 1547, 4954, 1549, 4952, 1551, 4950, 1553, 4948, 1555, 4946, 1557, 4944, 1559, 4942, 1561, 4940, 1563, 4938, 1565, 4936, 1567, 4934, 1569, 4932, 1571, 4930, 1573, 4928, 1575, 4926, 1577, 4924, 1579, 4922, 1581, 4920, 1583, 4918, 1585, 4916, 1587, 4914, 1589, 4912, 1591, 4910, 1593, 4908, 1595, 4906, 1597, 4904, 1599, 4902, 1601, 4900, 1603, 4898, 1605, 4896, 1607, 4894, 1609, 4892, 1611, 4890, 1613, 4888, 1615, 4886, 1617, 4884, 1619, 4882, 1621, 4880, 1623, 4878, 1625, 4876, 1627, 4874, 1629, 4872, 1631, 4870, 1633, 4868, 1635, 4866, 1637, 4864, 1639, 4862, 1641, 4860, 1643, 4858, 1645, 4856, 1647, 4854, 1649, 4852, 1651, 4850, 1653, 4848, 1655, 4846, 1657, 4844, 1659, 4842, 1661, 4840, 1663, 4838, 1665, 4836, 1667, 4834, 1669, 4832, 1671, 4830, 1673, 4828, 1675, 4826, 1677, 4824, 1679, 4822, 1681, 4820, 1683, 4818, 1685, 4816, 1687, 4814, 1689, 4812, 1691, 4810, 1693, 4808, 1695, 4806, 1697, 4804, 1699, 4802, 1701, 4800, 1703, 4798, 1705, 4796, 1707, 4794, 1709, 4792, 1711, 4790, 1713, 4788, 1715, 4786, 1717, 4784, 1719, 4782, 1721, 4780, 1723, 4778, 1725, 4776, 1727, 4774, 1729, 4772, 1731, 4770, 1733, 4768, 1735, 4766, 1737, 4764, 1739, 4762, 1741, 4760, 1743, 4758, 1745, 4756, 1747, 4754, 1749, 4752, 1751, 4750, 1753, 4748, 1755, 4746, 1757, 4744, 1759, 4742, 1761, 4740, 1763, 4738, 1765, 4736, 1767, 4734, 1769, 4732, 1771, 4730, 1773, 4728, 1775, 4726, 1777, 4724, 1779, 4722, 1781, 4720, 1783, 4718, 1785, 4716, 1787, 4714, 1789, 4712, 1791, 4710, 1793, 4708, 1795, 4706, 1797, 4704, 1799, 4702, 1801, 4700, 1803, 4698, 1805, 4696, 1807, 4694, 1809, 4692, 1811, 4690, 1813, 4688, 1815, 4686, 1817, 4684, 1819, 4682, 1821, 4680, 1823, 4678, 1825, 4676, 1827, 4674, 1829, 4672, 1831, 4670, 1833, 4668, 1835, 4666, 1837, 4664, 1839, 4662, 1841, 4660, 1843, 4658, 1845, 4656, 1847, 4654, 1849, 4652, 1851, 4650, 1853, 4648, 1855, 4646, 1857, 4644, 1859, 4642, 1861, 4640, 1863, 4638, 1865, 4636, 1867, 4634, 1869, 4632, 1871, 4630, 1873, 4628, 1875, 4626, 1877, 4624, 1879, 4622, 1881, 4620, 1883, 4618, 1885, 4616, 1887, 4614, 1889, 4612, 1891, 4610, 1893, 4608, 1895, 4606, 1897, 4604, 1899, 4602, 1901, 4600, 1903, 4598, 1905, 4596, 1907, 4594, 1909, 4592, 1911, 4590, 1913, 4588, 1915, 4586, 1917, 4584, 1919, 4582, 1921, 4580, 1923, 4578, 1925, 4576, 1927, 4574, 1929, 4572, 1931, 4570, 1933, 4568, 1935, 4566, 1937, 4564, 1939, 4562, 1941, 4560, 1943, 4558, 1945, 4556, 1947, 4554, 1949, 4552, 1951, 4550, 1953, 4548, 1955, 4546, 1957, 4544, 1959, 4542, 1961, 4540, 1963, 4538, 1965, 4536, 1967, 4534, 1969, 4532, 1971, 4530, 1973, 4528, 1975, 4526, 1977, 4524, 1979, 4522, 1981, 4520, 1983, 4518, 1985, 4516, 1987, 4514, 1989, 4512, 1991, 4510, 1993, 4508, 1995, 4506, 1997, 4504, 1999, 4502, 2001, 4500, 2003, 4498, 2005, 4496, 2007, 4494, 2009, 4492, 2011, 4490, 2013, 4488, 2015, 4486, 2017, 4484, 2019, 4482, 2021, 4480, 2023, 4478, 2025, 4476, 2027, 4474, 2029, 4472, 2031, 4470, 2033, 4468, 2035, 4466, 2037, 4464, 2039, 4462, 2041, 4460, 2043, 4458, 2045, 4456, 2047, 4454, 2049, 4452, 2051, 4450, 2053, 4448, 2055, 4446, 2057, 4444, 2059, 4442, 2061, 4440, 2063, 4438, 2065, 4436, 2067, 4434, 2069, 4432, 2071, 4430, 2073, 4428, 2075, 4426, 2077, 4424, 2079, 4422, 2081, 4420, 2083, 4418, 2085, 4416, 2087, 4414, 2089, 4412, 2091, 4410, 2093, 4408, 2095, 4406, 2097, 4404, 2099, 4402, 2101, 4400, 2103, 4398, 2105, 4396, 2107, 4394, 2109, 4392, 2111, 4390, 2113, 4388, 2115, 4386, 2117, 4384, 2119, 4382, 2121, 4380, 2123, 4378, 2125, 4376, 2127, 4374, 2129, 4372, 2131, 4370, 2133, 4368, 2135, 4366, 2137, 4364, 2139, 4362, 2141, 4360, 2143, 4358, 2145, 4356, 2147, 4354, 2149, 4352, 2151, 4350, 2153, 4348, 2155, 4346, 2157, 4344, 2159, 4342, 2161, 4340, 2163, 4338, 2165, 4336, 2167, 4334, 2169, 4332, 2171, 4330, 2173, 4328, 2175, 4326, 2177, 4324, 2179, 4322, 2181, 4320, 2183, 4318, 2185, 4316, 2187, 4314, 2189, 4312, 2191, 4310, 2193, 4308, 2195, 4306, 2197, 4304, 2199, 4302, 2201, 4300, 2203, 4298, 2205, 4296, 2207, 4294, 2209, 4292, 2211, 4290, 2213, 4288, 2215, 4286, 2217, 4284, 2219, 4282, 2221, 4280, 2223, 4278, 2225, 4276, 2227, 4274, 2229, 4272, 2231, 4270, 2233, 4268, 2235, 4266, 2237, 4264, 2239, 4262, 2241, 4260, 2243, 4258, 2245, 4256, 2247, 4254, 2249, 4252, 2251, 4250, 2253, 4248, 2255, 4246, 2257, 4244, 2259, 4242, 2261, 4240, 2263, 4238, 2265, 4236, 2267, 4234, 2269, 4232, 2271, 4230, 2273, 4228, 2275, 4226, 2277, 4224, 2279, 4222, 2281, 4220, 2283, 4218, 2285, 4216, 2287, 4214, 2289, 4212, 2291, 4210, 2293, 4208, 2295, 4206, 2297, 4204, 2299, 4202, 2301, 4200, 2303, 4198, 2305, 4196, 2307, 4194, 2309, 4192, 2311, 4190, 2313, 4188, 2315, 4186, 2317, 4184, 2319, 4182, 2321, 4180, 2323, 4178, 2325, 4176, 2327, 4174, 2329, 4172, 2331, 4170, 2333, 4168, 2335, 4166, 2337, 4164, 2339, 4162, 2341, 4160, 2343, 4158, 2345, 4156, 2347, 4154, 2349, 4152, 2351, 4150, 2353, 4148, 2355, 4146, 2357, 4144, 2359, 4142, 2361, 4140, 2363, 4138, 2365, 4136, 2367, 4134, 2369, 4132, 2371, 4130, 2373, 4128, 2375, 4126, 2377, 4124, 2379, 4122, 2381, 4120, 2383, 4118, 2385, 4116, 2387, 4114, 2389, 4112, 2391, 4110, 2393, 4108, 2395, 4106, 2397, 4104, 2399, 4102, 2401, 4100, 2403, 4098, 2405, 4096, 2407, 4094, 2409, 4092, 2411, 4090, 2413, 4088, 2415, 4086, 2417, 4084, 2419, 4082, 2421, 4080, 2423, 4078, 2425, 4076, 2427, 4074, 2429, 4072, 2431, 4070, 2433, 4068, 2435, 4066, 2437, 4064, 2439, 4062, 2441, 4060, 2443, 4058, 2445, 4056, 2447, 4054, 2449, 4052, 2451, 4050, 2453, 4048, 2455, 4046, 2457, 4044, 2459, 4042, 2461, 4040, 2463, 4038, 2465, 4036, 2467, 4034, 2469, 4032, 2471, 4030, 2473, 4028, 2475, 4026, 2477, 4024, 2479, 4022, 2481, 4020, 2483, 4018, 2485, 4016, 2487, 4014, 2489, 4012, 2491, 4010, 2493, 4008, 2495, 4006, 2497, 4004, 2499, 4002, 2501, 4000, 2503, 3998, 2505, 3996, 2507, 3994, 2509, 3992, 2511, 3990, 2513, 3988, 2515, 3986, 2517, 3984, 2519, 3982, 2521, 3980, 2523, 3978, 2525, 3976, 2527, 3974, 2529, 3972, 2531, 3970, 2533, 3968, 2535, 3966, 2537, 3964, 2539, 3962, 2541, 3960, 2543, 3958, 2545, 3956, 2547, 3954, 2549, 3952, 2551, 3950, 2553, 3948, 2555, 3946, 2557, 3944, 2559, 3942, 2561, 3940, 2563, 3938, 2565, 3936, 2567, 3934, 2569, 3932, 2571, 3930, 2573, 3928, 2575, 3926, 2577, 3924, 2579, 3922, 2581, 3920, 2583, 3918, 2585, 3916, 2587, 3914, 2589, 3912, 2591, 3910, 2593, 3908, 2595, 3906, 2597, 3904, 2599, 3902, 2601, 3900, 2603, 3898, 2605, 3896, 2607, 3894, 2609, 3892, 2611, 3890, 2613, 3888, 2615, 3886, 2617, 3884, 2619, 3882, 2621, 3880, 2623, 3878, 2625, 3876, 2627, 3874, 2629, 3872, 2631, 3870, 2633, 3868, 2635, 3866, 2637, 3864, 2639, 3862, 2641, 3860, 2643, 3858, 2645, 3856, 2647, 3854, 2649, 3852, 2651, 3850, 2653, 3848, 2655, 3846, 2657, 3844, 2659, 3842, 2661, 3840, 2663, 3838, 2665, 3836, 2667, 3834, 2669, 3832, 2671, 3830, 2673, 3828, 2675, 3826, 2677, 3824, 2679, 3822, 2681, 3820, 2683, 3818, 2685, 3816, 2687, 3814, 2689, 3812, 2691, 3810, 2693, 3808, 2695, 3806, 2697, 3804, 2699, 3802, 2701, 3800, 2703, 3798, 2705, 3796, 2707, 3794, 2709, 3792, 2711, 3790, 2713, 3788, 2715, 3786, 2717, 3784, 2719, 3782, 2721, 3780, 2723, 3778, 2725, 3776, 2727, 3774, 2729, 3772, 2731, 3770, 2733, 3768, 2735, 3766, 2737, 3764, 2739, 3762, 2741, 3760, 2743, 3758, 2745, 3756, 2747, 3754, 2749, 3752, 2751, 3750, 2753, 3748, 2755, 3746, 2757, 3744, 2759, 3742, 2761, 3740, 2763, 3738, 2765, 3736, 2767, 3734, 2769, 3732, 2771, 3730, 2773, 3728, 2775, 3726, 2777, 3724, 2779, 3722, 2781, 3720, 2783, 3718, 2785, 3716, 2787, 3714, 2789, 3712, 2791, 3710, 2793, 3708, 2795, 3706, 2797, 3704, 2799, 3702, 2801, 3700, 2803, 3698, 2805, 3696, 2807, 3694, 2809, 3692, 2811, 3690, 2813, 3688, 2815, 3686, 2817, 3684, 2819, 3682, 2821, 3680, 2823, 3678, 2825, 3676, 2827, 3674, 2829, 3672, 2831, 3670, 2833, 3668, 2835, 3666, 2837, 3664, 2839, 3662, 2841, 3660, 2843, 3658, 2845, 3656, 2847, 3654, 2849, 3652, 2851, 3650, 2853, 3648, 2855, 3646, 2857, 3644, 2859, 3642, 2861, 3640, 2863, 3638, 2865, 3636, 2867, 3634, 2869, 3632, 2871, 3630, 2873, 3628, 2875, 3626, 2877, 3624, 2879, 3622, 2881, 3620, 2883, 3618, 2885, 3616, 2887, 3614, 2889, 3612, 2891, 3610, 2893, 3608, 2895, 3606, 2897, 3604, 2899, 3602, 2901, 3600, 2903, 3598, 2905, 3596, 2907, 3594, 2909, 3592, 2911, 3590, 2913, 3588, 2915, 3586, 2917, 3584, 2919, 3582, 2921, 3580, 2923, 3578, 2925, 3576, 2927, 3574, 2929, 3572, 2931, 3570, 2933, 3568, 2935, 3566, 2937, 3564, 2939, 3562, 2941, 3560, 2943, 3558, 2945, 3556, 2947, 3554, 2949, 3552, 2951, 3550, 2953, 3548, 2955, 3546, 2957, 3544, 2959, 3542, 2961, 3540, 2963, 3538, 2965, 3536, 2967, 3534, 2969, 3532, 2971, 3530, 2973, 3528, 2975, 3526, 2977, 3524, 2979, 3522, 2981, 3520, 2983, 3518, 2985, 3516, 2987, 3514, 2989, 3512, 2991, 3510, 2993, 3508, 2995, 3506, 2997, 3504, 2999, 3502, 3001, 3500, 3003, 3498, 3005, 3496, 3007, 3494, 3009, 3492, 3011, 3490, 3013, 3488, 3015, 3486, 3017, 3484, 3019, 3482, 3021, 3480, 3023, 3478, 3025, 3476, 3027, 3474, 3029, 3472, 3031, 3470, 3033, 3468, 3035, 3466, 3037, 3464, 3039, 3462, 3041, 3460, 3043, 3458, 3045, 3456, 3047, 3454, 3049, 3452, 3051, 3450, 3053, 3448, 3055, 3446, 3057, 3444, 3059, 3442, 3061, 3440, 3063, 3438, 3065, 3436, 3067, 3434, 3069, 3432, 3071, 3430, 3073, 3428, 3075, 3426, 3077, 3424, 3079, 3422, 3081, 3420, 3083, 3418, 3085, 3416, 3087, 3414, 3089, 3412, 3091, 3410, 3093, 3408, 3095, 3406, 3097, 3404, 3099, 3402, 3101, 3400, 3103, 3398, 3105, 3396, 3107, 3394, 3109, 3392, 3111, 3390, 3113, 3388, 3115, 3386, 3117, 3384, 3119, 3382, 3121, 3380, 3123, 3378, 3125, 3376, 3127, 3374, 3129, 3372, 3131, 3370, 3133, 3368, 3135, 3366, 3137, 3364, 3139, 3362, 3141, 3360, 3143, 3358, 3145, 3356, 3147, 3354, 3149, 3352, 3151, 3350, 3153, 3348, 3155, 3346, 3157, 3344, 3159, 3342, 3161, 3340, 3163, 3338, 3165, 3336, 3167, 3334, 3169, 3332, 3171, 3330, 3173, 3328, 3175, 3326, 3177, 3324, 3179, 3322, 3181, 3320, 3183, 3318, 3185, 3316, 3187, 3314, 3189, 3312, 3191, 3310, 3193, 3308, 3195, 3306, 3197, 3304, 3199, 3302, 3201, 3300, 3203, 3298, 3205, 3296, 3207, 3294, 3209, 3292, 3211, 3290, 3213, 3288, 3215, 3286, 3217, 3284, 3219, 3282, 3221, 3280, 3223, 3278, 3225, 3276, 3227, 3274, 3229, 3272, 3231, 3270, 3233, 3268, 3235, 3266, 3237, 3264, 3239, 3262, 3241, 3260, 3243, 3258, 3245, 3256, 3247, 3254, 3249, 3252, 3251, 3250, 3253, 3248, 3255, 3246, 3257, 3244, 3259, 3242, 3261, 3240, 3263, 3238, 3265, 3236, 3267, 3234, 3269, 3232, 3271, 3230, 3273, 3228, 3275, 3226, 3277, 3224, 3279, 3222, 3281, 3220, 3283, 3218, 3285, 3216, 3287, 3214, 3289, 3212, 3291, 3210, 3293, 3208, 3295, 3206, 3297, 3204, 3299, 3202, 3301, 3200, 3303, 3198, 3305, 3196, 3307, 3194, 3309, 3192, 3311, 3190, 3313, 3188, 3315, 3186, 3317, 3184, 3319, 3182, 3321, 3180, 3323, 3178, 3325, 3176, 3327, 3174, 3329, 3172, 3331, 3170, 3333, 3168, 3335, 3166, 3337, 3164, 3339, 3162, 3341, 3160, 3343, 3158, 3345, 3156, 3347, 3154, 3349, 3152, 3351, 3150, 3353, 3148, 3355, 3146, 3357, 3144, 3359, 3142, 3361, 3140, 3363, 3138, 3365, 3136, 3367, 3134, 3369, 3132, 3371, 3130, 3373, 3128, 3375, 3126, 3377, 3124, 3379, 3122, 3381, 3120, 3383, 3118, 3385, 3116, 3387, 3114, 3389, 3112, 3391, 3110, 3393, 3108, 3395, 3106, 3397, 3104, 3399, 3102, 3401, 3100, 3403, 3098, 3405, 3096, 3407, 3094, 3409, 3092, 3411, 3090, 3413, 3088, 3415, 3086, 3417, 3084, 3419, 3082, 3421, 3080, 3423, 3078, 3425, 3076, 3427, 3074, 3429, 3072, 3431, 3070, 3433, 3068, 3435, 3066, 3437, 3064, 3439, 3062, 3441, 3060, 3443, 3058, 3445, 3056, 3447, 3054, 3449, 3052, 3451, 3050, 3453, 3048, 3455, 3046, 3457, 3044, 3459, 3042, 3461, 3040, 3463, 3038, 3465, 3036, 3467, 3034, 3469, 3032, 3471, 3030, 3473, 3028, 3475, 3026, 3477, 3024, 3479, 3022, 3481, 3020, 3483, 3018, 3485, 3016, 3487, 3014, 3489, 3012, 3491, 3010, 3493, 3008, 3495, 3006, 3497, 3004, 3499, 3002, 3501, 3000, 3503, 2998, 3505, 2996, 3507, 2994, 3509, 2992, 3511, 2990, 3513, 2988, 3515, 2986, 3517, 2984, 3519, 2982, 3521, 2980, 3523, 2978, 3525, 2976, 3527, 2974, 3529, 2972, 3531, 2970, 3533, 2968, 3535, 2966, 3537, 2964, 3539, 2962, 3541, 2960, 3543, 2958, 3545, 2956, 3547, 2954, 3549, 2952, 3551, 2950, 3553, 2948, 3555, 2946, 3557, 2944, 3559, 2942, 3561, 2940, 3563, 2938, 3565, 2936, 3567, 2934, 3569, 2932, 3571, 2930, 3573, 2928, 3575, 2926, 3577, 2924, 3579, 2922, 3581, 2920, 3583, 2918, 3585, 2916, 3587, 2914, 3589, 2912, 3591, 2910, 3593, 2908, 3595, 2906, 3597, 2904, 3599, 2902, 3601, 2900, 3603, 2898, 3605, 2896, 3607, 2894, 3609, 2892, 3611, 2890, 3613, 2888, 3615, 2886, 3617, 2884, 3619, 2882, 3621, 2880, 3623, 2878, 3625, 2876, 3627, 2874, 3629, 2872, 3631, 2870, 3633, 2868, 3635, 2866, 3637, 2864, 3639, 2862, 3641, 2860, 3643, 2858, 3645, 2856, 3647, 2854, 3649, 2852, 3651, 2850, 3653, 2848, 3655, 2846, 3657, 2844, 3659, 2842, 3661, 2840, 3663, 2838, 3665, 2836, 3667, 2834, 3669, 2832, 3671, 2830, 3673, 2828, 3675, 2826, 3677, 2824, 3679, 2822, 3681, 2820, 3683, 2818, 3685, 2816, 3687, 2814, 3689, 2812, 3691, 2810, 3693, 2808, 3695, 2806, 3697, 2804, 3699, 2802, 3701, 2800, 3703, 2798, 3705, 2796, 3707, 2794, 3709, 2792, 3711, 2790, 3713, 2788, 3715, 2786, 3717, 2784, 3719, 2782, 3721, 2780, 3723, 2778, 3725, 2776, 3727, 2774, 3729, 2772, 3731, 2770, 3733, 2768, 3735, 2766, 3737, 2764, 3739, 2762, 3741, 2760, 3743, 2758, 3745, 2756, 3747, 2754, 3749, 2752, 3751, 2750, 3753, 2748, 3755, 2746, 3757, 2744, 3759, 2742, 3761, 2740, 3763, 2738, 3765, 2736, 3767, 2734, 3769, 2732, 3771, 2730, 3773, 2728, 3775, 2726, 3777, 2724, 3779, 2722, 3781, 2720, 3783, 2718, 3785, 2716, 3787, 2714, 3789, 2712, 3791, 2710, 3793, 2708, 3795, 2706, 3797, 2704, 3799, 2702, 3801, 2700, 3803, 2698, 3805, 2696, 3807, 2694, 3809, 2692, 3811, 2690, 3813, 2688, 3815, 2686, 3817, 2684, 3819, 2682, 3821, 2680, 3823, 2678, 3825, 2676, 3827, 2674, 3829, 2672, 3831, 2670, 3833, 2668, 3835, 2666, 3837, 2664, 3839, 2662, 3841, 2660, 3843, 2658, 3845, 2656, 3847, 2654, 3849, 2652, 3851, 2650, 3853, 2648, 3855, 2646, 3857, 2644, 3859, 2642, 3861, 2640, 3863, 2638, 3865, 2636, 3867, 2634, 3869, 2632, 3871, 2630, 3873, 2628, 3875, 2626, 3877, 2624, 3879, 2622, 3881, 2620, 3883, 2618, 3885, 2616, 3887, 2614, 3889, 2612, 3891, 2610, 3893, 2608, 3895, 2606, 3897, 2604, 3899, 2602, 3901, 2600, 3903, 2598, 3905, 2596, 3907, 2594, 3909, 2592, 3911, 2590, 3913, 2588, 3915, 2586, 3917, 2584, 3919, 2582, 3921, 2580, 3923, 2578, 3925, 2576, 3927, 2574, 3929, 2572, 3931, 2570, 3933, 2568, 3935, 2566, 3937, 2564, 3939, 2562, 3941, 2560, 3943, 2558, 3945, 2556, 3947, 2554, 3949, 2552, 3951, 2550, 3953, 2548, 3955, 2546, 3957, 2544, 3959, 2542, 3961, 2540, 3963, 2538, 3965, 2536, 3967, 2534, 3969, 2532, 3971, 2530, 3973, 2528, 3975, 2526, 3977, 2524, 3979, 2522, 3981, 2520, 3983, 2518, 3985, 2516, 3987, 2514, 3989, 2512, 3991, 2510, 3993, 2508, 3995, 2506, 3997, 2504, 3999, 2502, 4001, 2500, 4003, 2498, 4005, 2496, 4007, 2494, 4009, 2492, 4011, 2490, 4013, 2488, 4015, 2486, 4017, 2484, 4019, 2482, 4021, 2480, 4023, 2478, 4025, 2476, 4027, 2474, 4029, 2472, 4031, 2470, 4033, 2468, 4035, 2466, 4037, 2464, 4039, 2462, 4041, 2460, 4043, 2458, 4045, 2456, 4047, 2454, 4049, 2452, 4051, 2450, 4053, 2448, 4055, 2446, 4057, 2444, 4059, 2442, 4061, 2440, 4063, 2438, 4065, 2436, 4067, 2434, 4069, 2432, 4071, 2430, 4073, 2428, 4075, 2426, 4077, 2424, 4079, 2422, 4081, 2420, 4083, 2418, 4085, 2416, 4087, 2414, 4089, 2412, 4091, 2410, 4093, 2408, 4095, 2406, 4097, 2404, 4099, 2402, 4101, 2400, 4103, 2398, 4105, 2396, 4107, 2394, 4109, 2392, 4111, 2390, 4113, 2388, 4115, 2386, 4117, 2384, 4119, 2382, 4121, 2380, 4123, 2378, 4125, 2376, 4127, 2374, 4129, 2372, 4131, 2370, 4133, 2368, 4135, 2366, 4137, 2364, 4139, 2362, 4141, 2360, 4143, 2358, 4145, 2356, 4147, 2354, 4149, 2352, 4151, 2350, 4153, 2348, 4155, 2346, 4157, 2344, 4159, 2342, 4161, 2340, 4163, 2338, 4165, 2336, 4167, 2334, 4169, 2332, 4171, 2330, 4173, 2328, 4175, 2326, 4177, 2324, 4179, 2322, 4181, 2320, 4183, 2318, 4185, 2316, 4187, 2314, 4189, 2312, 4191, 2310, 4193, 2308, 4195, 2306, 4197, 2304, 4199, 2302, 4201, 2300, 4203, 2298, 4205, 2296, 4207, 2294, 4209, 2292, 4211, 2290, 4213, 2288, 4215, 2286, 4217, 2284, 4219, 2282, 4221, 2280, 4223, 2278, 4225, 2276, 4227, 2274, 4229, 2272, 4231, 2270, 4233, 2268, 4235, 2266, 4237, 2264, 4239, 2262, 4241, 2260, 4243, 2258, 4245, 2256, 4247, 2254, 4249, 2252, 4251, 2250, 4253, 2248, 4255, 2246, 4257, 2244, 4259, 2242, 4261, 2240, 4263, 2238, 4265, 2236, 4267, 2234, 4269, 2232, 4271, 2230, 4273, 2228, 4275, 2226, 4277, 2224, 4279, 2222, 4281, 2220, 4283, 2218, 4285, 2216, 4287, 2214, 4289, 2212, 4291, 2210, 4293, 2208, 4295, 2206, 4297, 2204, 4299, 2202, 4301, 2200, 4303, 2198, 4305, 2196, 4307, 2194, 4309, 2192, 4311, 2190, 4313, 2188, 4315, 2186, 4317, 2184, 4319, 2182, 4321, 2180, 4323, 2178, 4325, 2176, 4327, 2174, 4329, 2172, 4331, 2170, 4333, 2168, 4335, 2166, 4337, 2164, 4339, 2162, 4341, 2160, 4343, 2158, 4345, 2156, 4347, 2154, 4349, 2152, 4351, 2150, 4353, 2148, 4355, 2146, 4357, 2144, 4359, 2142, 4361, 2140, 4363, 2138, 4365, 2136, 4367, 2134, 4369, 2132, 4371, 2130, 4373, 2128, 4375, 2126, 4377, 2124, 4379, 2122, 4381, 2120, 4383, 2118, 4385, 2116, 4387, 2114, 4389, 2112, 4391, 2110, 4393, 2108, 4395, 2106, 4397, 2104, 4399, 2102, 4401, 2100, 4403, 2098, 4405, 2096, 4407, 2094, 4409, 2092, 4411, 2090, 4413, 2088, 4415, 2086, 4417, 2084, 4419, 2082, 4421, 2080, 4423, 2078, 4425, 2076, 4427, 2074, 4429, 2072, 4431, 2070, 4433, 2068, 4435, 2066, 4437, 2064, 4439, 2062, 4441, 2060, 4443, 2058, 4445, 2056, 4447, 2054, 4449, 2052, 4451, 2050, 4453, 2048, 4455, 2046, 4457, 2044, 4459, 2042, 4461, 2040, 4463, 2038, 4465, 2036, 4467, 2034, 4469, 2032, 4471, 2030, 4473, 2028, 4475, 2026, 4477, 2024, 4479, 2022, 4481, 2020, 4483, 2018, 4485, 2016, 4487, 2014, 4489, 2012, 4491, 2010, 4493, 2008, 4495, 2006, 4497, 2004, 4499, 2002, 4501, 2000, 4503, 1998, 4505, 1996, 4507, 1994, 4509, 1992, 4511, 1990, 4513, 1988, 4515, 1986, 4517, 1984, 4519, 1982, 4521, 1980, 4523, 1978, 4525, 1976, 4527, 1974, 4529, 1972, 4531, 1970, 4533, 1968, 4535, 1966, 4537, 1964, 4539, 1962, 4541, 1960, 4543, 1958, 4545, 1956, 4547, 1954, 4549, 1952, 4551, 1950, 4553, 1948, 4555, 1946, 4557, 1944, 4559, 1942, 4561, 1940, 4563, 1938, 4565, 1936, 4567, 1934, 4569, 1932, 4571, 1930, 4573, 1928, 4575, 1926, 4577, 1924, 4579, 1922, 4581, 1920, 4583, 1918, 4585, 1916, 4587, 1914, 4589, 1912, 4591, 1910, 4593, 1908, 4595, 1906, 4597, 1904, 4599, 1902, 4601, 1900, 4603, 1898, 4605, 1896, 4607, 1894, 4609, 1892, 4611, 1890, 4613, 1888, 4615, 1886, 4617, 1884, 4619, 1882, 4621, 1880, 4623, 1878, 4625, 1876, 4627, 1874, 4629, 1872, 4631, 1870, 4633, 1868, 4635, 1866, 4637, 1864, 4639, 1862, 4641, 1860, 4643, 1858, 4645, 1856, 4647, 1854, 4649, 1852, 4651, 1850, 4653, 1848, 4655, 1846, 4657, 1844, 4659, 1842, 4661, 1840, 4663, 1838, 4665, 1836, 4667, 1834, 4669, 1832, 4671, 1830, 4673, 1828, 4675, 1826, 4677, 1824, 4679, 1822, 4681, 1820, 4683, 1818, 4685, 1816, 4687, 1814, 4689, 1812, 4691, 1810, 4693, 1808, 4695, 1806, 4697, 1804, 4699, 1802, 4701, 1800, 4703, 1798, 4705, 1796, 4707, 1794, 4709, 1792, 4711, 1790, 4713, 1788, 4715, 1786, 4717, 1784, 4719, 1782, 4721, 1780, 4723, 1778, 4725, 1776, 4727, 1774, 4729, 1772, 4731, 1770, 4733, 1768, 4735, 1766, 4737, 1764, 4739, 1762, 4741, 1760, 4743, 1758, 4745, 1756, 4747, 1754, 4749, 1752, 4751, 1750, 4753, 1748, 4755, 1746, 4757, 1744, 4759, 1742, 4761, 1740, 4763, 1738, 4765, 1736, 4767, 1734, 4769, 1732, 4771, 1730, 4773, 1728, 4775, 1726, 4777, 1724, 4779, 1722, 4781, 1720, 4783, 1718, 4785, 1716, 4787, 1714, 4789, 1712, 4791, 1710, 4793, 1708, 4795, 1706, 4797, 1704, 4799, 1702, 4801, 1700, 4803, 1698, 4805, 1696, 4807, 1694, 4809, 1692, 4811, 1690, 4813, 1688, 4815, 1686, 4817, 1684, 4819, 1682, 4821, 1680, 4823, 1678, 4825, 1676, 4827, 1674, 4829, 1672, 4831, 1670, 4833, 1668, 4835, 1666, 4837, 1664, 4839, 1662, 4841, 1660, 4843, 1658, 4845, 1656, 4847, 1654, 4849, 1652, 4851, 1650, 4853, 1648, 4855, 1646, 4857, 1644, 4859, 1642, 4861, 1640, 4863, 1638, 4865, 1636, 4867, 1634, 4869, 1632, 4871, 1630, 4873, 1628, 4875, 1626, 4877, 1624, 4879, 1622, 4881, 1620, 4883, 1618, 4885, 1616, 4887, 1614, 4889, 1612, 4891, 1610, 4893, 1608, 4895, 1606, 4897, 1604, 4899, 1602, 4901, 1600, 4903, 1598, 4905, 1596, 4907, 1594, 4909, 1592, 4911, 1590, 4913, 1588, 4915, 1586, 4917, 1584, 4919, 1582, 4921, 1580, 4923, 1578, 4925, 1576, 4927, 1574, 4929, 1572, 4931, 1570, 4933, 1568, 4935, 1566, 4937, 1564, 4939, 1562, 4941, 1560, 4943, 1558, 4945, 1556, 4947, 1554, 4949, 1552, 4951, 1550, 4953, 1548, 4955, 1546, 4957, 1544, 4959, 1542, 4961, 1540, 4963, 1538, 4965, 1536, 4967, 1534, 4969, 1532, 4971, 1530, 4973, 1528, 4975, 1526, 4977, 1524, 4979, 1522, 4981, 1520, 4983, 1518, 4985, 1516, 4987, 1514, 4989, 1512, 4991, 1510, 4993, 1508, 4995, 1506, 4997, 1504, 4999, 1502, 5001, 1500, 5003, 1498, 5005, 1496, 5007, 1494, 5009, 1492, 5011, 1490, 5013, 1488, 5015, 1486, 5017, 1484, 5019, 1482, 5021, 1480, 5023, 1478, 5025, 1476, 5027, 1474, 5029, 1472, 5031, 1470, 5033, 1468, 5035, 1466, 5037, 1464, 5039, 1462, 5041, 1460, 5043, 1458, 5045, 1456, 5047, 1454, 5049, 1452, 5051, 1450, 5053, 1448, 5055, 1446, 5057, 1444, 5059, 1442, 5061, 1440, 5063, 1438, 5065, 1436, 5067, 1434, 5069, 1432, 5071, 1430, 5073, 1428, 5075, 1426, 5077, 1424, 5079, 1422, 5081, 1420, 5083, 1418, 5085, 1416, 5087, 1414, 5089, 1412, 5091, 1410, 5093, 1408, 5095, 1406, 5097, 1404, 5099, 1402, 5101, 1400, 5103, 1398, 5105, 1396, 5107, 1394, 5109, 1392, 5111, 1390, 5113, 1388, 5115, 1386, 5117, 1384, 5119, 1382, 5121, 1380, 5123, 1378, 5125, 1376, 5127, 1374, 5129, 1372, 5131, 1370, 5133, 1368, 5135, 1366, 5137, 1364, 5139, 1362, 5141, 1360, 5143, 1358, 5145, 1356, 5147, 1354, 5149, 1352, 5151, 1350, 5153, 1348, 5155, 1346, 5157, 1344, 5159, 1342, 5161, 1340, 5163, 1338, 5165, 1336, 5167, 1334, 5169, 1332, 5171, 1330, 5173, 1328, 5175, 1326, 5177, 1324, 5179, 1322, 5181, 1320, 5183, 1318, 5185, 1316, 5187, 1314, 5189, 1312, 5191, 1310, 5193, 1308, 5195, 1306, 5197, 1304, 5199, 1302, 5201, 1300, 5203, 1298, 5205, 1296, 5207, 1294, 5209, 1292, 5211, 1290, 5213, 1288, 5215, 1286, 5217, 1284, 5219, 1282, 5221, 1280, 5223, 1278, 5225, 1276, 5227, 1274, 5229, 1272, 5231, 1270, 5233, 1268, 5235, 1266, 5237, 1264, 5239, 1262, 5241, 1260, 5243, 1258, 5245, 1256, 5247, 1254, 5249, 1252, 5251, 1250, 5253, 1248, 5255, 1246, 5257, 1244, 5259, 1242, 5261, 1240, 5263, 1238, 5265, 1236, 5267, 1234, 5269, 1232, 5271, 1230, 5273, 1228, 5275, 1226, 5277, 1224, 5279, 1222, 5281, 1220, 5283, 1218, 5285, 1216, 5287, 1214, 5289, 1212, 5291, 1210, 5293, 1208, 5295, 1206, 5297, 1204, 5299, 1202, 5301, 1200, 5303, 1198, 5305, 1196, 5307, 1194, 5309, 1192, 5311, 1190, 5313, 1188, 5315, 1186, 5317, 1184, 5319, 1182, 5321, 1180, 5323, 1178, 5325, 1176, 5327, 1174, 5329, 1172, 5331, 1170, 5333, 1168, 5335, 1166, 5337, 1164, 5339, 1162, 5341, 1160, 5343, 1158, 5345, 1156, 5347, 1154, 5349, 1152, 5351, 1150, 5353, 1148, 5355, 1146, 5357, 1144, 5359, 1142, 5361, 1140, 5363, 1138, 5365, 1136, 5367, 1134, 5369, 1132, 5371, 1130, 5373, 1128, 5375, 1126, 5377, 1124, 5379, 1122, 5381, 1120, 5383, 1118, 5385, 1116, 5387, 1114, 5389, 1112, 5391, 1110, 5393, 1108, 5395, 1106, 5397, 1104, 5399, 1102, 5401, 1100, 5403, 1098, 5405, 1096, 5407, 1094, 5409, 1092, 5411, 1090, 5413, 1088, 5415, 1086, 5417, 1084, 5419, 1082, 5421, 1080, 5423, 1078, 5425, 1076, 5427, 1074, 5429, 1072, 5431, 1070, 5433, 1068, 5435, 1066, 5437, 1064, 5439, 1062, 5441, 1060, 5443, 1058, 5445, 1056, 5447, 1054, 5449, 1052, 5451, 1050, 5453, 1048, 5455, 1046, 5457, 1044, 5459, 1042, 5461, 1040, 5463, 1038, 5465, 1036, 5467, 1034, 5469, 1032, 5471, 1030, 5473, 1028, 5475, 1026, 5477, 1024, 5479, 1022, 5481, 1020, 5483, 1018, 5485, 1016, 5487, 1014, 5489, 1012, 5491, 1010, 5493, 1008, 5495, 1006, 5497, 1004, 5499, 1002, 5501, 1000, 5503, 998, 5505, 996, 5507, 994, 5509, 992, 5511, 990, 5513, 988, 5515, 986, 5517, 984, 5519, 982, 5521, 980, 5523, 978, 5525, 976, 5527, 974, 5529, 972, 5531, 970, 5533, 968, 5535, 966, 5537, 964, 5539, 962, 5541, 960, 5543, 958, 5545, 956, 5547, 954, 5549, 952, 5551, 950, 5553, 948, 5555, 946, 5557, 944, 5559, 942, 5561, 940, 5563, 938, 5565, 936, 5567, 934, 5569, 932, 5571, 930, 5573, 928, 5575, 926, 5577, 924, 5579, 922, 5581, 920, 5583, 918, 5585, 916, 5587, 914, 5589, 912, 5591, 910, 5593, 908, 5595, 906, 5597, 904, 5599, 902, 5601, 900, 5603, 898, 5605, 896, 5607, 894, 5609, 892, 5611, 890, 5613, 888, 5615, 886, 5617, 884, 5619, 882, 5621, 880, 5623, 878, 5625, 876, 5627, 874, 5629, 872, 5631, 870, 5633, 868, 5635, 866, 5637, 864, 5639, 862, 5641, 860, 5643, 858, 5645, 856, 5647, 854, 5649, 852, 5651, 850, 5653, 848, 5655, 846, 5657, 844, 5659, 842, 5661, 840, 5663, 838, 5665, 836, 5667, 834, 5669, 832, 5671, 830, 5673, 828, 5675, 826, 5677, 824, 5679, 822, 5681, 820, 5683, 818, 5685, 816, 5687, 814, 5689, 812, 5691, 810, 5693, 808, 5695, 806, 5697, 804, 5699, 802, 5701, 800, 5703, 798, 5705, 796, 5707, 794, 5709, 792, 5711, 790, 5713, 788, 5715, 786, 5717, 784, 5719, 782, 5721, 780, 5723, 778, 5725, 776, 5727, 774, 5729, 772, 5731, 770, 5733, 768, 5735, 766, 5737, 764, 5739, 762, 5741, 760, 5743, 758, 5745, 756, 5747, 754, 5749, 752, 5751, 750, 5753, 748, 5755, 746, 5757, 744, 5759, 742, 5761, 740, 5763, 738, 5765, 736, 5767, 734, 5769, 732, 5771, 730, 5773, 728, 5775, 726, 5777, 724, 5779, 722, 5781, 720, 5783, 718, 5785, 716, 5787, 714, 5789, 712, 5791, 710, 5793, 708, 5795, 706, 5797, 704, 5799, 702, 5801, 700, 5803, 698, 5805, 696, 5807, 694, 5809, 692, 5811, 690, 5813, 688, 5815, 686, 5817, 684, 5819, 682, 5821, 680, 5823, 678, 5825, 676, 5827, 674, 5829, 672, 5831, 670, 5833, 668, 5835, 666, 5837, 664, 5839, 662, 5841, 660, 5843, 658, 5845, 656, 5847, 654, 5849, 652, 5851, 650, 5853, 648, 5855, 646, 5857, 644, 5859, 642, 5861, 640, 5863, 638, 5865, 636, 5867, 634, 5869, 632, 5871, 630, 5873, 628, 5875, 626, 5877, 624, 5879, 622, 5881, 620, 5883, 618, 5885, 616, 5887, 614, 5889, 612, 5891, 610, 5893, 608, 5895, 606, 5897, 604, 5899, 602, 5901, 600, 5903, 598, 5905, 596, 5907, 594, 5909, 592, 5911, 590, 5913, 588, 5915, 586, 5917, 584, 5919, 582, 5921, 580, 5923, 578, 5925, 576, 5927, 574, 5929, 572, 5931, 570, 5933, 568, 5935, 566, 5937, 564, 5939, 562, 5941, 560, 5943, 558, 5945, 556, 5947, 554, 5949, 552, 5951, 550, 5953, 548, 5955, 546, 5957, 544, 5959, 542, 5961, 540, 5963, 538, 5965, 536, 5967, 534, 5969, 532, 5971, 530, 5973, 528, 5975, 526, 5977, 524, 5979, 522, 5981, 520, 5983, 518, 5985, 516, 5987, 514, 5989, 512, 5991, 510, 5993, 508, 5995, 506, 5997, 504, 5999, 502, 6001, 500, 6003, 498, 6005, 496, 6007, 494, 6009, 492, 6011, 490, 6013, 488, 6015, 486, 6017, 484, 6019, 482, 6021, 480, 6023, 478, 6025, 476, 6027, 474, 6029, 472, 6031, 470, 6033, 468, 6035, 466, 6037, 464, 6039, 462, 6041, 460, 6043, 458, 6045, 456, 6047, 454, 6049, 452, 6051, 450, 6053, 448, 6055, 446, 6057, 444, 6059, 442, 6061, 440, 6063, 438, 6065, 436, 6067, 434, 6069, 432, 6071, 430, 6073, 428, 6075, 426, 6077, 424, 6079, 422, 6081, 420, 6083, 418, 6085, 416, 6087, 414, 6089, 412, 6091, 410, 6093, 408, 6095, 406, 6097, 404, 6099, 402, 6101, 400, 6103, 398, 6105, 396, 6107, 394, 6109, 392, 6111, 390, 6113, 388, 6115, 386, 6117, 384, 6119, 382, 6121, 380, 6123, 378, 6125, 376, 6127, 374, 6129, 372, 6131, 370, 6133, 368, 6135, 366, 6137, 364, 6139, 362, 6141, 360, 6143, 358, 6145, 356, 6147, 354, 6149, 352, 6151, 350, 6153, 348, 6155, 346, 6157, 344, 6159, 342, 6161, 340, 6163, 338, 6165, 336, 6167, 334, 6169, 332, 6171, 330, 6173, 328, 6175, 326, 6177, 324, 6179, 322, 6181, 320, 6183, 318, 6185, 316, 6187, 314, 6189, 312, 6191, 310, 6193, 308, 6195, 306, 6197, 304, 6199, 302, 6201, 300, 6203, 298, 6205, 296, 6207, 294, 6209, 292, 6211, 290, 6213, 288, 6215, 286, 6217, 284, 6219, 282, 6221, 280, 6223, 278, 6225, 276, 6227, 274, 6229, 272, 6231, 270, 6233, 268, 6235, 266, 6237, 264, 6239, 262, 6241, 260, 6243, 258, 6245, 256, 6247, 254, 6249, 252, 6251, 250, 6253, 248, 6255, 246, 6257, 244, 6259, 242, 6261, 240, 6263, 238, 6265, 236, 6267, 234, 6269, 232, 6271, 230, 6273, 228, 6275, 226, 6277, 224, 6279, 222, 6281, 220, 6283, 218, 6285, 216, 6287, 214, 6289, 212, 6291, 210, 6293, 208, 6295, 206, 6297, 204, 6299, 202, 6301, 200, 6303, 198, 6305, 196, 6307, 194, 6309, 192, 6311, 190, 6313, 188, 6315, 186, 6317, 184, 6319, 182, 6321, 180, 6323, 178, 6325, 176, 6327, 174, 6329, 172, 6331, 170, 6333, 168, 6335, 166, 6337, 164, 6339, 162, 6341, 160, 6343, 158, 6345, 156, 6347, 154, 6349, 152, 6351, 150, 6353, 148, 6355, 146, 6357, 144, 6359, 142, 6361, 140, 6363, 138, 6365, 136, 6367, 134, 6369, 132, 6371, 130, 6373, 128, 6375, 126, 6377, 124, 6379, 122, 6381, 120, 6383, 118, 6385, 116, 6387, 114, 6389, 112, 6391, 110, 6393, 108, 6395, 106, 6397, 104, 6399, 102, 6401, 100, 6403, 98, 6405, 96, 6407, 94, 6409, 92, 6411, 90, 6413, 88, 6415, 86, 6417, 84, 6419, 82, 6421, 80, 6423, 78, 6425, 76, 6427, 74, 6429, 72, 6431, 70, 6433, 68, 6435, 66, 6437, 64, 6439, 62, 6441, 60, 6443, 58, 6445, 56, 6447, 54, 6449, 52, 6451, 50, 6453, 48, 6455, 46, 6457, 44, 6459, 42, 6461, 40, 6463, 38, 6465, 36, 6467, 34, 6469, 32, 6471, 30, 6473, 28, 6475, 26, 6477, 24, 6479, 22, 6481, 20, 6483, 18, 6485, 16, 6487, 14, 6489, 12, 6491, 10, 6493, 8, 6495, 6, 6497, 4, 6499, 2, 6501]} +RLMATH_EOF diff --git a/tasks/construct-rlve-prefix-sum-permutation-l5-s3/tests/check.py b/tasks/construct-rlve-prefix-sum-permutation-l5-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..60c3e0996cdfa8673fd7f34ad70cccb789b17654 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l5-s3/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + p = int_list(ans.get("perm"), n, 1, n, "perm") + if len(set(p)) != n: + raise Invalid("not a permutation") + seen, acc = set(), 0 + for v in p: + acc = (acc + v) % n + if acc in seen: + raise Invalid(f"prefix sum residue {acc} repeats") + seen.add(acc) + return None, {} diff --git a/tasks/construct-rlve-prefix-sum-permutation-l5-s3/tests/instance.json b/tasks/construct-rlve-prefix-sum-permutation-l5-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5044bafa713d7785e220999f0c7318948beb3407 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l5-s3/tests/instance.json @@ -0,0 +1 @@ +{"n": 6502, "family": "rlve_prefix_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prefix-sum-permutation-l5-s3/tests/run.py b/tasks/construct-rlve-prefix-sum-permutation-l5-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l5-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-prefix-sum-permutation-l5-s3/tests/test.sh b/tasks/construct-rlve-prefix-sum-permutation-l5-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l5-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-prefix-sum-permutation-l5-s4/environment/Dockerfile b/tasks/construct-rlve-prefix-sum-permutation-l5-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l5-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-prefix-sum-permutation-l5-s4/environment/instance.json b/tasks/construct-rlve-prefix-sum-permutation-l5-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f9cfa04b2d682605350b124a14317e6c8e6d3c89 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l5-s4/environment/instance.json @@ -0,0 +1 @@ +{"n": 6482, "family": "rlve_prefix_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prefix-sum-permutation-l5-s4/solution/solve.sh b/tasks/construct-rlve-prefix-sum-permutation-l5-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3b2e62213a70ac5d2697e5a74a3165589098fb6 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l5-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"perm": [6482, 1, 6480, 3, 6478, 5, 6476, 7, 6474, 9, 6472, 11, 6470, 13, 6468, 15, 6466, 17, 6464, 19, 6462, 21, 6460, 23, 6458, 25, 6456, 27, 6454, 29, 6452, 31, 6450, 33, 6448, 35, 6446, 37, 6444, 39, 6442, 41, 6440, 43, 6438, 45, 6436, 47, 6434, 49, 6432, 51, 6430, 53, 6428, 55, 6426, 57, 6424, 59, 6422, 61, 6420, 63, 6418, 65, 6416, 67, 6414, 69, 6412, 71, 6410, 73, 6408, 75, 6406, 77, 6404, 79, 6402, 81, 6400, 83, 6398, 85, 6396, 87, 6394, 89, 6392, 91, 6390, 93, 6388, 95, 6386, 97, 6384, 99, 6382, 101, 6380, 103, 6378, 105, 6376, 107, 6374, 109, 6372, 111, 6370, 113, 6368, 115, 6366, 117, 6364, 119, 6362, 121, 6360, 123, 6358, 125, 6356, 127, 6354, 129, 6352, 131, 6350, 133, 6348, 135, 6346, 137, 6344, 139, 6342, 141, 6340, 143, 6338, 145, 6336, 147, 6334, 149, 6332, 151, 6330, 153, 6328, 155, 6326, 157, 6324, 159, 6322, 161, 6320, 163, 6318, 165, 6316, 167, 6314, 169, 6312, 171, 6310, 173, 6308, 175, 6306, 177, 6304, 179, 6302, 181, 6300, 183, 6298, 185, 6296, 187, 6294, 189, 6292, 191, 6290, 193, 6288, 195, 6286, 197, 6284, 199, 6282, 201, 6280, 203, 6278, 205, 6276, 207, 6274, 209, 6272, 211, 6270, 213, 6268, 215, 6266, 217, 6264, 219, 6262, 221, 6260, 223, 6258, 225, 6256, 227, 6254, 229, 6252, 231, 6250, 233, 6248, 235, 6246, 237, 6244, 239, 6242, 241, 6240, 243, 6238, 245, 6236, 247, 6234, 249, 6232, 251, 6230, 253, 6228, 255, 6226, 257, 6224, 259, 6222, 261, 6220, 263, 6218, 265, 6216, 267, 6214, 269, 6212, 271, 6210, 273, 6208, 275, 6206, 277, 6204, 279, 6202, 281, 6200, 283, 6198, 285, 6196, 287, 6194, 289, 6192, 291, 6190, 293, 6188, 295, 6186, 297, 6184, 299, 6182, 301, 6180, 303, 6178, 305, 6176, 307, 6174, 309, 6172, 311, 6170, 313, 6168, 315, 6166, 317, 6164, 319, 6162, 321, 6160, 323, 6158, 325, 6156, 327, 6154, 329, 6152, 331, 6150, 333, 6148, 335, 6146, 337, 6144, 339, 6142, 341, 6140, 343, 6138, 345, 6136, 347, 6134, 349, 6132, 351, 6130, 353, 6128, 355, 6126, 357, 6124, 359, 6122, 361, 6120, 363, 6118, 365, 6116, 367, 6114, 369, 6112, 371, 6110, 373, 6108, 375, 6106, 377, 6104, 379, 6102, 381, 6100, 383, 6098, 385, 6096, 387, 6094, 389, 6092, 391, 6090, 393, 6088, 395, 6086, 397, 6084, 399, 6082, 401, 6080, 403, 6078, 405, 6076, 407, 6074, 409, 6072, 411, 6070, 413, 6068, 415, 6066, 417, 6064, 419, 6062, 421, 6060, 423, 6058, 425, 6056, 427, 6054, 429, 6052, 431, 6050, 433, 6048, 435, 6046, 437, 6044, 439, 6042, 441, 6040, 443, 6038, 445, 6036, 447, 6034, 449, 6032, 451, 6030, 453, 6028, 455, 6026, 457, 6024, 459, 6022, 461, 6020, 463, 6018, 465, 6016, 467, 6014, 469, 6012, 471, 6010, 473, 6008, 475, 6006, 477, 6004, 479, 6002, 481, 6000, 483, 5998, 485, 5996, 487, 5994, 489, 5992, 491, 5990, 493, 5988, 495, 5986, 497, 5984, 499, 5982, 501, 5980, 503, 5978, 505, 5976, 507, 5974, 509, 5972, 511, 5970, 513, 5968, 515, 5966, 517, 5964, 519, 5962, 521, 5960, 523, 5958, 525, 5956, 527, 5954, 529, 5952, 531, 5950, 533, 5948, 535, 5946, 537, 5944, 539, 5942, 541, 5940, 543, 5938, 545, 5936, 547, 5934, 549, 5932, 551, 5930, 553, 5928, 555, 5926, 557, 5924, 559, 5922, 561, 5920, 563, 5918, 565, 5916, 567, 5914, 569, 5912, 571, 5910, 573, 5908, 575, 5906, 577, 5904, 579, 5902, 581, 5900, 583, 5898, 585, 5896, 587, 5894, 589, 5892, 591, 5890, 593, 5888, 595, 5886, 597, 5884, 599, 5882, 601, 5880, 603, 5878, 605, 5876, 607, 5874, 609, 5872, 611, 5870, 613, 5868, 615, 5866, 617, 5864, 619, 5862, 621, 5860, 623, 5858, 625, 5856, 627, 5854, 629, 5852, 631, 5850, 633, 5848, 635, 5846, 637, 5844, 639, 5842, 641, 5840, 643, 5838, 645, 5836, 647, 5834, 649, 5832, 651, 5830, 653, 5828, 655, 5826, 657, 5824, 659, 5822, 661, 5820, 663, 5818, 665, 5816, 667, 5814, 669, 5812, 671, 5810, 673, 5808, 675, 5806, 677, 5804, 679, 5802, 681, 5800, 683, 5798, 685, 5796, 687, 5794, 689, 5792, 691, 5790, 693, 5788, 695, 5786, 697, 5784, 699, 5782, 701, 5780, 703, 5778, 705, 5776, 707, 5774, 709, 5772, 711, 5770, 713, 5768, 715, 5766, 717, 5764, 719, 5762, 721, 5760, 723, 5758, 725, 5756, 727, 5754, 729, 5752, 731, 5750, 733, 5748, 735, 5746, 737, 5744, 739, 5742, 741, 5740, 743, 5738, 745, 5736, 747, 5734, 749, 5732, 751, 5730, 753, 5728, 755, 5726, 757, 5724, 759, 5722, 761, 5720, 763, 5718, 765, 5716, 767, 5714, 769, 5712, 771, 5710, 773, 5708, 775, 5706, 777, 5704, 779, 5702, 781, 5700, 783, 5698, 785, 5696, 787, 5694, 789, 5692, 791, 5690, 793, 5688, 795, 5686, 797, 5684, 799, 5682, 801, 5680, 803, 5678, 805, 5676, 807, 5674, 809, 5672, 811, 5670, 813, 5668, 815, 5666, 817, 5664, 819, 5662, 821, 5660, 823, 5658, 825, 5656, 827, 5654, 829, 5652, 831, 5650, 833, 5648, 835, 5646, 837, 5644, 839, 5642, 841, 5640, 843, 5638, 845, 5636, 847, 5634, 849, 5632, 851, 5630, 853, 5628, 855, 5626, 857, 5624, 859, 5622, 861, 5620, 863, 5618, 865, 5616, 867, 5614, 869, 5612, 871, 5610, 873, 5608, 875, 5606, 877, 5604, 879, 5602, 881, 5600, 883, 5598, 885, 5596, 887, 5594, 889, 5592, 891, 5590, 893, 5588, 895, 5586, 897, 5584, 899, 5582, 901, 5580, 903, 5578, 905, 5576, 907, 5574, 909, 5572, 911, 5570, 913, 5568, 915, 5566, 917, 5564, 919, 5562, 921, 5560, 923, 5558, 925, 5556, 927, 5554, 929, 5552, 931, 5550, 933, 5548, 935, 5546, 937, 5544, 939, 5542, 941, 5540, 943, 5538, 945, 5536, 947, 5534, 949, 5532, 951, 5530, 953, 5528, 955, 5526, 957, 5524, 959, 5522, 961, 5520, 963, 5518, 965, 5516, 967, 5514, 969, 5512, 971, 5510, 973, 5508, 975, 5506, 977, 5504, 979, 5502, 981, 5500, 983, 5498, 985, 5496, 987, 5494, 989, 5492, 991, 5490, 993, 5488, 995, 5486, 997, 5484, 999, 5482, 1001, 5480, 1003, 5478, 1005, 5476, 1007, 5474, 1009, 5472, 1011, 5470, 1013, 5468, 1015, 5466, 1017, 5464, 1019, 5462, 1021, 5460, 1023, 5458, 1025, 5456, 1027, 5454, 1029, 5452, 1031, 5450, 1033, 5448, 1035, 5446, 1037, 5444, 1039, 5442, 1041, 5440, 1043, 5438, 1045, 5436, 1047, 5434, 1049, 5432, 1051, 5430, 1053, 5428, 1055, 5426, 1057, 5424, 1059, 5422, 1061, 5420, 1063, 5418, 1065, 5416, 1067, 5414, 1069, 5412, 1071, 5410, 1073, 5408, 1075, 5406, 1077, 5404, 1079, 5402, 1081, 5400, 1083, 5398, 1085, 5396, 1087, 5394, 1089, 5392, 1091, 5390, 1093, 5388, 1095, 5386, 1097, 5384, 1099, 5382, 1101, 5380, 1103, 5378, 1105, 5376, 1107, 5374, 1109, 5372, 1111, 5370, 1113, 5368, 1115, 5366, 1117, 5364, 1119, 5362, 1121, 5360, 1123, 5358, 1125, 5356, 1127, 5354, 1129, 5352, 1131, 5350, 1133, 5348, 1135, 5346, 1137, 5344, 1139, 5342, 1141, 5340, 1143, 5338, 1145, 5336, 1147, 5334, 1149, 5332, 1151, 5330, 1153, 5328, 1155, 5326, 1157, 5324, 1159, 5322, 1161, 5320, 1163, 5318, 1165, 5316, 1167, 5314, 1169, 5312, 1171, 5310, 1173, 5308, 1175, 5306, 1177, 5304, 1179, 5302, 1181, 5300, 1183, 5298, 1185, 5296, 1187, 5294, 1189, 5292, 1191, 5290, 1193, 5288, 1195, 5286, 1197, 5284, 1199, 5282, 1201, 5280, 1203, 5278, 1205, 5276, 1207, 5274, 1209, 5272, 1211, 5270, 1213, 5268, 1215, 5266, 1217, 5264, 1219, 5262, 1221, 5260, 1223, 5258, 1225, 5256, 1227, 5254, 1229, 5252, 1231, 5250, 1233, 5248, 1235, 5246, 1237, 5244, 1239, 5242, 1241, 5240, 1243, 5238, 1245, 5236, 1247, 5234, 1249, 5232, 1251, 5230, 1253, 5228, 1255, 5226, 1257, 5224, 1259, 5222, 1261, 5220, 1263, 5218, 1265, 5216, 1267, 5214, 1269, 5212, 1271, 5210, 1273, 5208, 1275, 5206, 1277, 5204, 1279, 5202, 1281, 5200, 1283, 5198, 1285, 5196, 1287, 5194, 1289, 5192, 1291, 5190, 1293, 5188, 1295, 5186, 1297, 5184, 1299, 5182, 1301, 5180, 1303, 5178, 1305, 5176, 1307, 5174, 1309, 5172, 1311, 5170, 1313, 5168, 1315, 5166, 1317, 5164, 1319, 5162, 1321, 5160, 1323, 5158, 1325, 5156, 1327, 5154, 1329, 5152, 1331, 5150, 1333, 5148, 1335, 5146, 1337, 5144, 1339, 5142, 1341, 5140, 1343, 5138, 1345, 5136, 1347, 5134, 1349, 5132, 1351, 5130, 1353, 5128, 1355, 5126, 1357, 5124, 1359, 5122, 1361, 5120, 1363, 5118, 1365, 5116, 1367, 5114, 1369, 5112, 1371, 5110, 1373, 5108, 1375, 5106, 1377, 5104, 1379, 5102, 1381, 5100, 1383, 5098, 1385, 5096, 1387, 5094, 1389, 5092, 1391, 5090, 1393, 5088, 1395, 5086, 1397, 5084, 1399, 5082, 1401, 5080, 1403, 5078, 1405, 5076, 1407, 5074, 1409, 5072, 1411, 5070, 1413, 5068, 1415, 5066, 1417, 5064, 1419, 5062, 1421, 5060, 1423, 5058, 1425, 5056, 1427, 5054, 1429, 5052, 1431, 5050, 1433, 5048, 1435, 5046, 1437, 5044, 1439, 5042, 1441, 5040, 1443, 5038, 1445, 5036, 1447, 5034, 1449, 5032, 1451, 5030, 1453, 5028, 1455, 5026, 1457, 5024, 1459, 5022, 1461, 5020, 1463, 5018, 1465, 5016, 1467, 5014, 1469, 5012, 1471, 5010, 1473, 5008, 1475, 5006, 1477, 5004, 1479, 5002, 1481, 5000, 1483, 4998, 1485, 4996, 1487, 4994, 1489, 4992, 1491, 4990, 1493, 4988, 1495, 4986, 1497, 4984, 1499, 4982, 1501, 4980, 1503, 4978, 1505, 4976, 1507, 4974, 1509, 4972, 1511, 4970, 1513, 4968, 1515, 4966, 1517, 4964, 1519, 4962, 1521, 4960, 1523, 4958, 1525, 4956, 1527, 4954, 1529, 4952, 1531, 4950, 1533, 4948, 1535, 4946, 1537, 4944, 1539, 4942, 1541, 4940, 1543, 4938, 1545, 4936, 1547, 4934, 1549, 4932, 1551, 4930, 1553, 4928, 1555, 4926, 1557, 4924, 1559, 4922, 1561, 4920, 1563, 4918, 1565, 4916, 1567, 4914, 1569, 4912, 1571, 4910, 1573, 4908, 1575, 4906, 1577, 4904, 1579, 4902, 1581, 4900, 1583, 4898, 1585, 4896, 1587, 4894, 1589, 4892, 1591, 4890, 1593, 4888, 1595, 4886, 1597, 4884, 1599, 4882, 1601, 4880, 1603, 4878, 1605, 4876, 1607, 4874, 1609, 4872, 1611, 4870, 1613, 4868, 1615, 4866, 1617, 4864, 1619, 4862, 1621, 4860, 1623, 4858, 1625, 4856, 1627, 4854, 1629, 4852, 1631, 4850, 1633, 4848, 1635, 4846, 1637, 4844, 1639, 4842, 1641, 4840, 1643, 4838, 1645, 4836, 1647, 4834, 1649, 4832, 1651, 4830, 1653, 4828, 1655, 4826, 1657, 4824, 1659, 4822, 1661, 4820, 1663, 4818, 1665, 4816, 1667, 4814, 1669, 4812, 1671, 4810, 1673, 4808, 1675, 4806, 1677, 4804, 1679, 4802, 1681, 4800, 1683, 4798, 1685, 4796, 1687, 4794, 1689, 4792, 1691, 4790, 1693, 4788, 1695, 4786, 1697, 4784, 1699, 4782, 1701, 4780, 1703, 4778, 1705, 4776, 1707, 4774, 1709, 4772, 1711, 4770, 1713, 4768, 1715, 4766, 1717, 4764, 1719, 4762, 1721, 4760, 1723, 4758, 1725, 4756, 1727, 4754, 1729, 4752, 1731, 4750, 1733, 4748, 1735, 4746, 1737, 4744, 1739, 4742, 1741, 4740, 1743, 4738, 1745, 4736, 1747, 4734, 1749, 4732, 1751, 4730, 1753, 4728, 1755, 4726, 1757, 4724, 1759, 4722, 1761, 4720, 1763, 4718, 1765, 4716, 1767, 4714, 1769, 4712, 1771, 4710, 1773, 4708, 1775, 4706, 1777, 4704, 1779, 4702, 1781, 4700, 1783, 4698, 1785, 4696, 1787, 4694, 1789, 4692, 1791, 4690, 1793, 4688, 1795, 4686, 1797, 4684, 1799, 4682, 1801, 4680, 1803, 4678, 1805, 4676, 1807, 4674, 1809, 4672, 1811, 4670, 1813, 4668, 1815, 4666, 1817, 4664, 1819, 4662, 1821, 4660, 1823, 4658, 1825, 4656, 1827, 4654, 1829, 4652, 1831, 4650, 1833, 4648, 1835, 4646, 1837, 4644, 1839, 4642, 1841, 4640, 1843, 4638, 1845, 4636, 1847, 4634, 1849, 4632, 1851, 4630, 1853, 4628, 1855, 4626, 1857, 4624, 1859, 4622, 1861, 4620, 1863, 4618, 1865, 4616, 1867, 4614, 1869, 4612, 1871, 4610, 1873, 4608, 1875, 4606, 1877, 4604, 1879, 4602, 1881, 4600, 1883, 4598, 1885, 4596, 1887, 4594, 1889, 4592, 1891, 4590, 1893, 4588, 1895, 4586, 1897, 4584, 1899, 4582, 1901, 4580, 1903, 4578, 1905, 4576, 1907, 4574, 1909, 4572, 1911, 4570, 1913, 4568, 1915, 4566, 1917, 4564, 1919, 4562, 1921, 4560, 1923, 4558, 1925, 4556, 1927, 4554, 1929, 4552, 1931, 4550, 1933, 4548, 1935, 4546, 1937, 4544, 1939, 4542, 1941, 4540, 1943, 4538, 1945, 4536, 1947, 4534, 1949, 4532, 1951, 4530, 1953, 4528, 1955, 4526, 1957, 4524, 1959, 4522, 1961, 4520, 1963, 4518, 1965, 4516, 1967, 4514, 1969, 4512, 1971, 4510, 1973, 4508, 1975, 4506, 1977, 4504, 1979, 4502, 1981, 4500, 1983, 4498, 1985, 4496, 1987, 4494, 1989, 4492, 1991, 4490, 1993, 4488, 1995, 4486, 1997, 4484, 1999, 4482, 2001, 4480, 2003, 4478, 2005, 4476, 2007, 4474, 2009, 4472, 2011, 4470, 2013, 4468, 2015, 4466, 2017, 4464, 2019, 4462, 2021, 4460, 2023, 4458, 2025, 4456, 2027, 4454, 2029, 4452, 2031, 4450, 2033, 4448, 2035, 4446, 2037, 4444, 2039, 4442, 2041, 4440, 2043, 4438, 2045, 4436, 2047, 4434, 2049, 4432, 2051, 4430, 2053, 4428, 2055, 4426, 2057, 4424, 2059, 4422, 2061, 4420, 2063, 4418, 2065, 4416, 2067, 4414, 2069, 4412, 2071, 4410, 2073, 4408, 2075, 4406, 2077, 4404, 2079, 4402, 2081, 4400, 2083, 4398, 2085, 4396, 2087, 4394, 2089, 4392, 2091, 4390, 2093, 4388, 2095, 4386, 2097, 4384, 2099, 4382, 2101, 4380, 2103, 4378, 2105, 4376, 2107, 4374, 2109, 4372, 2111, 4370, 2113, 4368, 2115, 4366, 2117, 4364, 2119, 4362, 2121, 4360, 2123, 4358, 2125, 4356, 2127, 4354, 2129, 4352, 2131, 4350, 2133, 4348, 2135, 4346, 2137, 4344, 2139, 4342, 2141, 4340, 2143, 4338, 2145, 4336, 2147, 4334, 2149, 4332, 2151, 4330, 2153, 4328, 2155, 4326, 2157, 4324, 2159, 4322, 2161, 4320, 2163, 4318, 2165, 4316, 2167, 4314, 2169, 4312, 2171, 4310, 2173, 4308, 2175, 4306, 2177, 4304, 2179, 4302, 2181, 4300, 2183, 4298, 2185, 4296, 2187, 4294, 2189, 4292, 2191, 4290, 2193, 4288, 2195, 4286, 2197, 4284, 2199, 4282, 2201, 4280, 2203, 4278, 2205, 4276, 2207, 4274, 2209, 4272, 2211, 4270, 2213, 4268, 2215, 4266, 2217, 4264, 2219, 4262, 2221, 4260, 2223, 4258, 2225, 4256, 2227, 4254, 2229, 4252, 2231, 4250, 2233, 4248, 2235, 4246, 2237, 4244, 2239, 4242, 2241, 4240, 2243, 4238, 2245, 4236, 2247, 4234, 2249, 4232, 2251, 4230, 2253, 4228, 2255, 4226, 2257, 4224, 2259, 4222, 2261, 4220, 2263, 4218, 2265, 4216, 2267, 4214, 2269, 4212, 2271, 4210, 2273, 4208, 2275, 4206, 2277, 4204, 2279, 4202, 2281, 4200, 2283, 4198, 2285, 4196, 2287, 4194, 2289, 4192, 2291, 4190, 2293, 4188, 2295, 4186, 2297, 4184, 2299, 4182, 2301, 4180, 2303, 4178, 2305, 4176, 2307, 4174, 2309, 4172, 2311, 4170, 2313, 4168, 2315, 4166, 2317, 4164, 2319, 4162, 2321, 4160, 2323, 4158, 2325, 4156, 2327, 4154, 2329, 4152, 2331, 4150, 2333, 4148, 2335, 4146, 2337, 4144, 2339, 4142, 2341, 4140, 2343, 4138, 2345, 4136, 2347, 4134, 2349, 4132, 2351, 4130, 2353, 4128, 2355, 4126, 2357, 4124, 2359, 4122, 2361, 4120, 2363, 4118, 2365, 4116, 2367, 4114, 2369, 4112, 2371, 4110, 2373, 4108, 2375, 4106, 2377, 4104, 2379, 4102, 2381, 4100, 2383, 4098, 2385, 4096, 2387, 4094, 2389, 4092, 2391, 4090, 2393, 4088, 2395, 4086, 2397, 4084, 2399, 4082, 2401, 4080, 2403, 4078, 2405, 4076, 2407, 4074, 2409, 4072, 2411, 4070, 2413, 4068, 2415, 4066, 2417, 4064, 2419, 4062, 2421, 4060, 2423, 4058, 2425, 4056, 2427, 4054, 2429, 4052, 2431, 4050, 2433, 4048, 2435, 4046, 2437, 4044, 2439, 4042, 2441, 4040, 2443, 4038, 2445, 4036, 2447, 4034, 2449, 4032, 2451, 4030, 2453, 4028, 2455, 4026, 2457, 4024, 2459, 4022, 2461, 4020, 2463, 4018, 2465, 4016, 2467, 4014, 2469, 4012, 2471, 4010, 2473, 4008, 2475, 4006, 2477, 4004, 2479, 4002, 2481, 4000, 2483, 3998, 2485, 3996, 2487, 3994, 2489, 3992, 2491, 3990, 2493, 3988, 2495, 3986, 2497, 3984, 2499, 3982, 2501, 3980, 2503, 3978, 2505, 3976, 2507, 3974, 2509, 3972, 2511, 3970, 2513, 3968, 2515, 3966, 2517, 3964, 2519, 3962, 2521, 3960, 2523, 3958, 2525, 3956, 2527, 3954, 2529, 3952, 2531, 3950, 2533, 3948, 2535, 3946, 2537, 3944, 2539, 3942, 2541, 3940, 2543, 3938, 2545, 3936, 2547, 3934, 2549, 3932, 2551, 3930, 2553, 3928, 2555, 3926, 2557, 3924, 2559, 3922, 2561, 3920, 2563, 3918, 2565, 3916, 2567, 3914, 2569, 3912, 2571, 3910, 2573, 3908, 2575, 3906, 2577, 3904, 2579, 3902, 2581, 3900, 2583, 3898, 2585, 3896, 2587, 3894, 2589, 3892, 2591, 3890, 2593, 3888, 2595, 3886, 2597, 3884, 2599, 3882, 2601, 3880, 2603, 3878, 2605, 3876, 2607, 3874, 2609, 3872, 2611, 3870, 2613, 3868, 2615, 3866, 2617, 3864, 2619, 3862, 2621, 3860, 2623, 3858, 2625, 3856, 2627, 3854, 2629, 3852, 2631, 3850, 2633, 3848, 2635, 3846, 2637, 3844, 2639, 3842, 2641, 3840, 2643, 3838, 2645, 3836, 2647, 3834, 2649, 3832, 2651, 3830, 2653, 3828, 2655, 3826, 2657, 3824, 2659, 3822, 2661, 3820, 2663, 3818, 2665, 3816, 2667, 3814, 2669, 3812, 2671, 3810, 2673, 3808, 2675, 3806, 2677, 3804, 2679, 3802, 2681, 3800, 2683, 3798, 2685, 3796, 2687, 3794, 2689, 3792, 2691, 3790, 2693, 3788, 2695, 3786, 2697, 3784, 2699, 3782, 2701, 3780, 2703, 3778, 2705, 3776, 2707, 3774, 2709, 3772, 2711, 3770, 2713, 3768, 2715, 3766, 2717, 3764, 2719, 3762, 2721, 3760, 2723, 3758, 2725, 3756, 2727, 3754, 2729, 3752, 2731, 3750, 2733, 3748, 2735, 3746, 2737, 3744, 2739, 3742, 2741, 3740, 2743, 3738, 2745, 3736, 2747, 3734, 2749, 3732, 2751, 3730, 2753, 3728, 2755, 3726, 2757, 3724, 2759, 3722, 2761, 3720, 2763, 3718, 2765, 3716, 2767, 3714, 2769, 3712, 2771, 3710, 2773, 3708, 2775, 3706, 2777, 3704, 2779, 3702, 2781, 3700, 2783, 3698, 2785, 3696, 2787, 3694, 2789, 3692, 2791, 3690, 2793, 3688, 2795, 3686, 2797, 3684, 2799, 3682, 2801, 3680, 2803, 3678, 2805, 3676, 2807, 3674, 2809, 3672, 2811, 3670, 2813, 3668, 2815, 3666, 2817, 3664, 2819, 3662, 2821, 3660, 2823, 3658, 2825, 3656, 2827, 3654, 2829, 3652, 2831, 3650, 2833, 3648, 2835, 3646, 2837, 3644, 2839, 3642, 2841, 3640, 2843, 3638, 2845, 3636, 2847, 3634, 2849, 3632, 2851, 3630, 2853, 3628, 2855, 3626, 2857, 3624, 2859, 3622, 2861, 3620, 2863, 3618, 2865, 3616, 2867, 3614, 2869, 3612, 2871, 3610, 2873, 3608, 2875, 3606, 2877, 3604, 2879, 3602, 2881, 3600, 2883, 3598, 2885, 3596, 2887, 3594, 2889, 3592, 2891, 3590, 2893, 3588, 2895, 3586, 2897, 3584, 2899, 3582, 2901, 3580, 2903, 3578, 2905, 3576, 2907, 3574, 2909, 3572, 2911, 3570, 2913, 3568, 2915, 3566, 2917, 3564, 2919, 3562, 2921, 3560, 2923, 3558, 2925, 3556, 2927, 3554, 2929, 3552, 2931, 3550, 2933, 3548, 2935, 3546, 2937, 3544, 2939, 3542, 2941, 3540, 2943, 3538, 2945, 3536, 2947, 3534, 2949, 3532, 2951, 3530, 2953, 3528, 2955, 3526, 2957, 3524, 2959, 3522, 2961, 3520, 2963, 3518, 2965, 3516, 2967, 3514, 2969, 3512, 2971, 3510, 2973, 3508, 2975, 3506, 2977, 3504, 2979, 3502, 2981, 3500, 2983, 3498, 2985, 3496, 2987, 3494, 2989, 3492, 2991, 3490, 2993, 3488, 2995, 3486, 2997, 3484, 2999, 3482, 3001, 3480, 3003, 3478, 3005, 3476, 3007, 3474, 3009, 3472, 3011, 3470, 3013, 3468, 3015, 3466, 3017, 3464, 3019, 3462, 3021, 3460, 3023, 3458, 3025, 3456, 3027, 3454, 3029, 3452, 3031, 3450, 3033, 3448, 3035, 3446, 3037, 3444, 3039, 3442, 3041, 3440, 3043, 3438, 3045, 3436, 3047, 3434, 3049, 3432, 3051, 3430, 3053, 3428, 3055, 3426, 3057, 3424, 3059, 3422, 3061, 3420, 3063, 3418, 3065, 3416, 3067, 3414, 3069, 3412, 3071, 3410, 3073, 3408, 3075, 3406, 3077, 3404, 3079, 3402, 3081, 3400, 3083, 3398, 3085, 3396, 3087, 3394, 3089, 3392, 3091, 3390, 3093, 3388, 3095, 3386, 3097, 3384, 3099, 3382, 3101, 3380, 3103, 3378, 3105, 3376, 3107, 3374, 3109, 3372, 3111, 3370, 3113, 3368, 3115, 3366, 3117, 3364, 3119, 3362, 3121, 3360, 3123, 3358, 3125, 3356, 3127, 3354, 3129, 3352, 3131, 3350, 3133, 3348, 3135, 3346, 3137, 3344, 3139, 3342, 3141, 3340, 3143, 3338, 3145, 3336, 3147, 3334, 3149, 3332, 3151, 3330, 3153, 3328, 3155, 3326, 3157, 3324, 3159, 3322, 3161, 3320, 3163, 3318, 3165, 3316, 3167, 3314, 3169, 3312, 3171, 3310, 3173, 3308, 3175, 3306, 3177, 3304, 3179, 3302, 3181, 3300, 3183, 3298, 3185, 3296, 3187, 3294, 3189, 3292, 3191, 3290, 3193, 3288, 3195, 3286, 3197, 3284, 3199, 3282, 3201, 3280, 3203, 3278, 3205, 3276, 3207, 3274, 3209, 3272, 3211, 3270, 3213, 3268, 3215, 3266, 3217, 3264, 3219, 3262, 3221, 3260, 3223, 3258, 3225, 3256, 3227, 3254, 3229, 3252, 3231, 3250, 3233, 3248, 3235, 3246, 3237, 3244, 3239, 3242, 3241, 3240, 3243, 3238, 3245, 3236, 3247, 3234, 3249, 3232, 3251, 3230, 3253, 3228, 3255, 3226, 3257, 3224, 3259, 3222, 3261, 3220, 3263, 3218, 3265, 3216, 3267, 3214, 3269, 3212, 3271, 3210, 3273, 3208, 3275, 3206, 3277, 3204, 3279, 3202, 3281, 3200, 3283, 3198, 3285, 3196, 3287, 3194, 3289, 3192, 3291, 3190, 3293, 3188, 3295, 3186, 3297, 3184, 3299, 3182, 3301, 3180, 3303, 3178, 3305, 3176, 3307, 3174, 3309, 3172, 3311, 3170, 3313, 3168, 3315, 3166, 3317, 3164, 3319, 3162, 3321, 3160, 3323, 3158, 3325, 3156, 3327, 3154, 3329, 3152, 3331, 3150, 3333, 3148, 3335, 3146, 3337, 3144, 3339, 3142, 3341, 3140, 3343, 3138, 3345, 3136, 3347, 3134, 3349, 3132, 3351, 3130, 3353, 3128, 3355, 3126, 3357, 3124, 3359, 3122, 3361, 3120, 3363, 3118, 3365, 3116, 3367, 3114, 3369, 3112, 3371, 3110, 3373, 3108, 3375, 3106, 3377, 3104, 3379, 3102, 3381, 3100, 3383, 3098, 3385, 3096, 3387, 3094, 3389, 3092, 3391, 3090, 3393, 3088, 3395, 3086, 3397, 3084, 3399, 3082, 3401, 3080, 3403, 3078, 3405, 3076, 3407, 3074, 3409, 3072, 3411, 3070, 3413, 3068, 3415, 3066, 3417, 3064, 3419, 3062, 3421, 3060, 3423, 3058, 3425, 3056, 3427, 3054, 3429, 3052, 3431, 3050, 3433, 3048, 3435, 3046, 3437, 3044, 3439, 3042, 3441, 3040, 3443, 3038, 3445, 3036, 3447, 3034, 3449, 3032, 3451, 3030, 3453, 3028, 3455, 3026, 3457, 3024, 3459, 3022, 3461, 3020, 3463, 3018, 3465, 3016, 3467, 3014, 3469, 3012, 3471, 3010, 3473, 3008, 3475, 3006, 3477, 3004, 3479, 3002, 3481, 3000, 3483, 2998, 3485, 2996, 3487, 2994, 3489, 2992, 3491, 2990, 3493, 2988, 3495, 2986, 3497, 2984, 3499, 2982, 3501, 2980, 3503, 2978, 3505, 2976, 3507, 2974, 3509, 2972, 3511, 2970, 3513, 2968, 3515, 2966, 3517, 2964, 3519, 2962, 3521, 2960, 3523, 2958, 3525, 2956, 3527, 2954, 3529, 2952, 3531, 2950, 3533, 2948, 3535, 2946, 3537, 2944, 3539, 2942, 3541, 2940, 3543, 2938, 3545, 2936, 3547, 2934, 3549, 2932, 3551, 2930, 3553, 2928, 3555, 2926, 3557, 2924, 3559, 2922, 3561, 2920, 3563, 2918, 3565, 2916, 3567, 2914, 3569, 2912, 3571, 2910, 3573, 2908, 3575, 2906, 3577, 2904, 3579, 2902, 3581, 2900, 3583, 2898, 3585, 2896, 3587, 2894, 3589, 2892, 3591, 2890, 3593, 2888, 3595, 2886, 3597, 2884, 3599, 2882, 3601, 2880, 3603, 2878, 3605, 2876, 3607, 2874, 3609, 2872, 3611, 2870, 3613, 2868, 3615, 2866, 3617, 2864, 3619, 2862, 3621, 2860, 3623, 2858, 3625, 2856, 3627, 2854, 3629, 2852, 3631, 2850, 3633, 2848, 3635, 2846, 3637, 2844, 3639, 2842, 3641, 2840, 3643, 2838, 3645, 2836, 3647, 2834, 3649, 2832, 3651, 2830, 3653, 2828, 3655, 2826, 3657, 2824, 3659, 2822, 3661, 2820, 3663, 2818, 3665, 2816, 3667, 2814, 3669, 2812, 3671, 2810, 3673, 2808, 3675, 2806, 3677, 2804, 3679, 2802, 3681, 2800, 3683, 2798, 3685, 2796, 3687, 2794, 3689, 2792, 3691, 2790, 3693, 2788, 3695, 2786, 3697, 2784, 3699, 2782, 3701, 2780, 3703, 2778, 3705, 2776, 3707, 2774, 3709, 2772, 3711, 2770, 3713, 2768, 3715, 2766, 3717, 2764, 3719, 2762, 3721, 2760, 3723, 2758, 3725, 2756, 3727, 2754, 3729, 2752, 3731, 2750, 3733, 2748, 3735, 2746, 3737, 2744, 3739, 2742, 3741, 2740, 3743, 2738, 3745, 2736, 3747, 2734, 3749, 2732, 3751, 2730, 3753, 2728, 3755, 2726, 3757, 2724, 3759, 2722, 3761, 2720, 3763, 2718, 3765, 2716, 3767, 2714, 3769, 2712, 3771, 2710, 3773, 2708, 3775, 2706, 3777, 2704, 3779, 2702, 3781, 2700, 3783, 2698, 3785, 2696, 3787, 2694, 3789, 2692, 3791, 2690, 3793, 2688, 3795, 2686, 3797, 2684, 3799, 2682, 3801, 2680, 3803, 2678, 3805, 2676, 3807, 2674, 3809, 2672, 3811, 2670, 3813, 2668, 3815, 2666, 3817, 2664, 3819, 2662, 3821, 2660, 3823, 2658, 3825, 2656, 3827, 2654, 3829, 2652, 3831, 2650, 3833, 2648, 3835, 2646, 3837, 2644, 3839, 2642, 3841, 2640, 3843, 2638, 3845, 2636, 3847, 2634, 3849, 2632, 3851, 2630, 3853, 2628, 3855, 2626, 3857, 2624, 3859, 2622, 3861, 2620, 3863, 2618, 3865, 2616, 3867, 2614, 3869, 2612, 3871, 2610, 3873, 2608, 3875, 2606, 3877, 2604, 3879, 2602, 3881, 2600, 3883, 2598, 3885, 2596, 3887, 2594, 3889, 2592, 3891, 2590, 3893, 2588, 3895, 2586, 3897, 2584, 3899, 2582, 3901, 2580, 3903, 2578, 3905, 2576, 3907, 2574, 3909, 2572, 3911, 2570, 3913, 2568, 3915, 2566, 3917, 2564, 3919, 2562, 3921, 2560, 3923, 2558, 3925, 2556, 3927, 2554, 3929, 2552, 3931, 2550, 3933, 2548, 3935, 2546, 3937, 2544, 3939, 2542, 3941, 2540, 3943, 2538, 3945, 2536, 3947, 2534, 3949, 2532, 3951, 2530, 3953, 2528, 3955, 2526, 3957, 2524, 3959, 2522, 3961, 2520, 3963, 2518, 3965, 2516, 3967, 2514, 3969, 2512, 3971, 2510, 3973, 2508, 3975, 2506, 3977, 2504, 3979, 2502, 3981, 2500, 3983, 2498, 3985, 2496, 3987, 2494, 3989, 2492, 3991, 2490, 3993, 2488, 3995, 2486, 3997, 2484, 3999, 2482, 4001, 2480, 4003, 2478, 4005, 2476, 4007, 2474, 4009, 2472, 4011, 2470, 4013, 2468, 4015, 2466, 4017, 2464, 4019, 2462, 4021, 2460, 4023, 2458, 4025, 2456, 4027, 2454, 4029, 2452, 4031, 2450, 4033, 2448, 4035, 2446, 4037, 2444, 4039, 2442, 4041, 2440, 4043, 2438, 4045, 2436, 4047, 2434, 4049, 2432, 4051, 2430, 4053, 2428, 4055, 2426, 4057, 2424, 4059, 2422, 4061, 2420, 4063, 2418, 4065, 2416, 4067, 2414, 4069, 2412, 4071, 2410, 4073, 2408, 4075, 2406, 4077, 2404, 4079, 2402, 4081, 2400, 4083, 2398, 4085, 2396, 4087, 2394, 4089, 2392, 4091, 2390, 4093, 2388, 4095, 2386, 4097, 2384, 4099, 2382, 4101, 2380, 4103, 2378, 4105, 2376, 4107, 2374, 4109, 2372, 4111, 2370, 4113, 2368, 4115, 2366, 4117, 2364, 4119, 2362, 4121, 2360, 4123, 2358, 4125, 2356, 4127, 2354, 4129, 2352, 4131, 2350, 4133, 2348, 4135, 2346, 4137, 2344, 4139, 2342, 4141, 2340, 4143, 2338, 4145, 2336, 4147, 2334, 4149, 2332, 4151, 2330, 4153, 2328, 4155, 2326, 4157, 2324, 4159, 2322, 4161, 2320, 4163, 2318, 4165, 2316, 4167, 2314, 4169, 2312, 4171, 2310, 4173, 2308, 4175, 2306, 4177, 2304, 4179, 2302, 4181, 2300, 4183, 2298, 4185, 2296, 4187, 2294, 4189, 2292, 4191, 2290, 4193, 2288, 4195, 2286, 4197, 2284, 4199, 2282, 4201, 2280, 4203, 2278, 4205, 2276, 4207, 2274, 4209, 2272, 4211, 2270, 4213, 2268, 4215, 2266, 4217, 2264, 4219, 2262, 4221, 2260, 4223, 2258, 4225, 2256, 4227, 2254, 4229, 2252, 4231, 2250, 4233, 2248, 4235, 2246, 4237, 2244, 4239, 2242, 4241, 2240, 4243, 2238, 4245, 2236, 4247, 2234, 4249, 2232, 4251, 2230, 4253, 2228, 4255, 2226, 4257, 2224, 4259, 2222, 4261, 2220, 4263, 2218, 4265, 2216, 4267, 2214, 4269, 2212, 4271, 2210, 4273, 2208, 4275, 2206, 4277, 2204, 4279, 2202, 4281, 2200, 4283, 2198, 4285, 2196, 4287, 2194, 4289, 2192, 4291, 2190, 4293, 2188, 4295, 2186, 4297, 2184, 4299, 2182, 4301, 2180, 4303, 2178, 4305, 2176, 4307, 2174, 4309, 2172, 4311, 2170, 4313, 2168, 4315, 2166, 4317, 2164, 4319, 2162, 4321, 2160, 4323, 2158, 4325, 2156, 4327, 2154, 4329, 2152, 4331, 2150, 4333, 2148, 4335, 2146, 4337, 2144, 4339, 2142, 4341, 2140, 4343, 2138, 4345, 2136, 4347, 2134, 4349, 2132, 4351, 2130, 4353, 2128, 4355, 2126, 4357, 2124, 4359, 2122, 4361, 2120, 4363, 2118, 4365, 2116, 4367, 2114, 4369, 2112, 4371, 2110, 4373, 2108, 4375, 2106, 4377, 2104, 4379, 2102, 4381, 2100, 4383, 2098, 4385, 2096, 4387, 2094, 4389, 2092, 4391, 2090, 4393, 2088, 4395, 2086, 4397, 2084, 4399, 2082, 4401, 2080, 4403, 2078, 4405, 2076, 4407, 2074, 4409, 2072, 4411, 2070, 4413, 2068, 4415, 2066, 4417, 2064, 4419, 2062, 4421, 2060, 4423, 2058, 4425, 2056, 4427, 2054, 4429, 2052, 4431, 2050, 4433, 2048, 4435, 2046, 4437, 2044, 4439, 2042, 4441, 2040, 4443, 2038, 4445, 2036, 4447, 2034, 4449, 2032, 4451, 2030, 4453, 2028, 4455, 2026, 4457, 2024, 4459, 2022, 4461, 2020, 4463, 2018, 4465, 2016, 4467, 2014, 4469, 2012, 4471, 2010, 4473, 2008, 4475, 2006, 4477, 2004, 4479, 2002, 4481, 2000, 4483, 1998, 4485, 1996, 4487, 1994, 4489, 1992, 4491, 1990, 4493, 1988, 4495, 1986, 4497, 1984, 4499, 1982, 4501, 1980, 4503, 1978, 4505, 1976, 4507, 1974, 4509, 1972, 4511, 1970, 4513, 1968, 4515, 1966, 4517, 1964, 4519, 1962, 4521, 1960, 4523, 1958, 4525, 1956, 4527, 1954, 4529, 1952, 4531, 1950, 4533, 1948, 4535, 1946, 4537, 1944, 4539, 1942, 4541, 1940, 4543, 1938, 4545, 1936, 4547, 1934, 4549, 1932, 4551, 1930, 4553, 1928, 4555, 1926, 4557, 1924, 4559, 1922, 4561, 1920, 4563, 1918, 4565, 1916, 4567, 1914, 4569, 1912, 4571, 1910, 4573, 1908, 4575, 1906, 4577, 1904, 4579, 1902, 4581, 1900, 4583, 1898, 4585, 1896, 4587, 1894, 4589, 1892, 4591, 1890, 4593, 1888, 4595, 1886, 4597, 1884, 4599, 1882, 4601, 1880, 4603, 1878, 4605, 1876, 4607, 1874, 4609, 1872, 4611, 1870, 4613, 1868, 4615, 1866, 4617, 1864, 4619, 1862, 4621, 1860, 4623, 1858, 4625, 1856, 4627, 1854, 4629, 1852, 4631, 1850, 4633, 1848, 4635, 1846, 4637, 1844, 4639, 1842, 4641, 1840, 4643, 1838, 4645, 1836, 4647, 1834, 4649, 1832, 4651, 1830, 4653, 1828, 4655, 1826, 4657, 1824, 4659, 1822, 4661, 1820, 4663, 1818, 4665, 1816, 4667, 1814, 4669, 1812, 4671, 1810, 4673, 1808, 4675, 1806, 4677, 1804, 4679, 1802, 4681, 1800, 4683, 1798, 4685, 1796, 4687, 1794, 4689, 1792, 4691, 1790, 4693, 1788, 4695, 1786, 4697, 1784, 4699, 1782, 4701, 1780, 4703, 1778, 4705, 1776, 4707, 1774, 4709, 1772, 4711, 1770, 4713, 1768, 4715, 1766, 4717, 1764, 4719, 1762, 4721, 1760, 4723, 1758, 4725, 1756, 4727, 1754, 4729, 1752, 4731, 1750, 4733, 1748, 4735, 1746, 4737, 1744, 4739, 1742, 4741, 1740, 4743, 1738, 4745, 1736, 4747, 1734, 4749, 1732, 4751, 1730, 4753, 1728, 4755, 1726, 4757, 1724, 4759, 1722, 4761, 1720, 4763, 1718, 4765, 1716, 4767, 1714, 4769, 1712, 4771, 1710, 4773, 1708, 4775, 1706, 4777, 1704, 4779, 1702, 4781, 1700, 4783, 1698, 4785, 1696, 4787, 1694, 4789, 1692, 4791, 1690, 4793, 1688, 4795, 1686, 4797, 1684, 4799, 1682, 4801, 1680, 4803, 1678, 4805, 1676, 4807, 1674, 4809, 1672, 4811, 1670, 4813, 1668, 4815, 1666, 4817, 1664, 4819, 1662, 4821, 1660, 4823, 1658, 4825, 1656, 4827, 1654, 4829, 1652, 4831, 1650, 4833, 1648, 4835, 1646, 4837, 1644, 4839, 1642, 4841, 1640, 4843, 1638, 4845, 1636, 4847, 1634, 4849, 1632, 4851, 1630, 4853, 1628, 4855, 1626, 4857, 1624, 4859, 1622, 4861, 1620, 4863, 1618, 4865, 1616, 4867, 1614, 4869, 1612, 4871, 1610, 4873, 1608, 4875, 1606, 4877, 1604, 4879, 1602, 4881, 1600, 4883, 1598, 4885, 1596, 4887, 1594, 4889, 1592, 4891, 1590, 4893, 1588, 4895, 1586, 4897, 1584, 4899, 1582, 4901, 1580, 4903, 1578, 4905, 1576, 4907, 1574, 4909, 1572, 4911, 1570, 4913, 1568, 4915, 1566, 4917, 1564, 4919, 1562, 4921, 1560, 4923, 1558, 4925, 1556, 4927, 1554, 4929, 1552, 4931, 1550, 4933, 1548, 4935, 1546, 4937, 1544, 4939, 1542, 4941, 1540, 4943, 1538, 4945, 1536, 4947, 1534, 4949, 1532, 4951, 1530, 4953, 1528, 4955, 1526, 4957, 1524, 4959, 1522, 4961, 1520, 4963, 1518, 4965, 1516, 4967, 1514, 4969, 1512, 4971, 1510, 4973, 1508, 4975, 1506, 4977, 1504, 4979, 1502, 4981, 1500, 4983, 1498, 4985, 1496, 4987, 1494, 4989, 1492, 4991, 1490, 4993, 1488, 4995, 1486, 4997, 1484, 4999, 1482, 5001, 1480, 5003, 1478, 5005, 1476, 5007, 1474, 5009, 1472, 5011, 1470, 5013, 1468, 5015, 1466, 5017, 1464, 5019, 1462, 5021, 1460, 5023, 1458, 5025, 1456, 5027, 1454, 5029, 1452, 5031, 1450, 5033, 1448, 5035, 1446, 5037, 1444, 5039, 1442, 5041, 1440, 5043, 1438, 5045, 1436, 5047, 1434, 5049, 1432, 5051, 1430, 5053, 1428, 5055, 1426, 5057, 1424, 5059, 1422, 5061, 1420, 5063, 1418, 5065, 1416, 5067, 1414, 5069, 1412, 5071, 1410, 5073, 1408, 5075, 1406, 5077, 1404, 5079, 1402, 5081, 1400, 5083, 1398, 5085, 1396, 5087, 1394, 5089, 1392, 5091, 1390, 5093, 1388, 5095, 1386, 5097, 1384, 5099, 1382, 5101, 1380, 5103, 1378, 5105, 1376, 5107, 1374, 5109, 1372, 5111, 1370, 5113, 1368, 5115, 1366, 5117, 1364, 5119, 1362, 5121, 1360, 5123, 1358, 5125, 1356, 5127, 1354, 5129, 1352, 5131, 1350, 5133, 1348, 5135, 1346, 5137, 1344, 5139, 1342, 5141, 1340, 5143, 1338, 5145, 1336, 5147, 1334, 5149, 1332, 5151, 1330, 5153, 1328, 5155, 1326, 5157, 1324, 5159, 1322, 5161, 1320, 5163, 1318, 5165, 1316, 5167, 1314, 5169, 1312, 5171, 1310, 5173, 1308, 5175, 1306, 5177, 1304, 5179, 1302, 5181, 1300, 5183, 1298, 5185, 1296, 5187, 1294, 5189, 1292, 5191, 1290, 5193, 1288, 5195, 1286, 5197, 1284, 5199, 1282, 5201, 1280, 5203, 1278, 5205, 1276, 5207, 1274, 5209, 1272, 5211, 1270, 5213, 1268, 5215, 1266, 5217, 1264, 5219, 1262, 5221, 1260, 5223, 1258, 5225, 1256, 5227, 1254, 5229, 1252, 5231, 1250, 5233, 1248, 5235, 1246, 5237, 1244, 5239, 1242, 5241, 1240, 5243, 1238, 5245, 1236, 5247, 1234, 5249, 1232, 5251, 1230, 5253, 1228, 5255, 1226, 5257, 1224, 5259, 1222, 5261, 1220, 5263, 1218, 5265, 1216, 5267, 1214, 5269, 1212, 5271, 1210, 5273, 1208, 5275, 1206, 5277, 1204, 5279, 1202, 5281, 1200, 5283, 1198, 5285, 1196, 5287, 1194, 5289, 1192, 5291, 1190, 5293, 1188, 5295, 1186, 5297, 1184, 5299, 1182, 5301, 1180, 5303, 1178, 5305, 1176, 5307, 1174, 5309, 1172, 5311, 1170, 5313, 1168, 5315, 1166, 5317, 1164, 5319, 1162, 5321, 1160, 5323, 1158, 5325, 1156, 5327, 1154, 5329, 1152, 5331, 1150, 5333, 1148, 5335, 1146, 5337, 1144, 5339, 1142, 5341, 1140, 5343, 1138, 5345, 1136, 5347, 1134, 5349, 1132, 5351, 1130, 5353, 1128, 5355, 1126, 5357, 1124, 5359, 1122, 5361, 1120, 5363, 1118, 5365, 1116, 5367, 1114, 5369, 1112, 5371, 1110, 5373, 1108, 5375, 1106, 5377, 1104, 5379, 1102, 5381, 1100, 5383, 1098, 5385, 1096, 5387, 1094, 5389, 1092, 5391, 1090, 5393, 1088, 5395, 1086, 5397, 1084, 5399, 1082, 5401, 1080, 5403, 1078, 5405, 1076, 5407, 1074, 5409, 1072, 5411, 1070, 5413, 1068, 5415, 1066, 5417, 1064, 5419, 1062, 5421, 1060, 5423, 1058, 5425, 1056, 5427, 1054, 5429, 1052, 5431, 1050, 5433, 1048, 5435, 1046, 5437, 1044, 5439, 1042, 5441, 1040, 5443, 1038, 5445, 1036, 5447, 1034, 5449, 1032, 5451, 1030, 5453, 1028, 5455, 1026, 5457, 1024, 5459, 1022, 5461, 1020, 5463, 1018, 5465, 1016, 5467, 1014, 5469, 1012, 5471, 1010, 5473, 1008, 5475, 1006, 5477, 1004, 5479, 1002, 5481, 1000, 5483, 998, 5485, 996, 5487, 994, 5489, 992, 5491, 990, 5493, 988, 5495, 986, 5497, 984, 5499, 982, 5501, 980, 5503, 978, 5505, 976, 5507, 974, 5509, 972, 5511, 970, 5513, 968, 5515, 966, 5517, 964, 5519, 962, 5521, 960, 5523, 958, 5525, 956, 5527, 954, 5529, 952, 5531, 950, 5533, 948, 5535, 946, 5537, 944, 5539, 942, 5541, 940, 5543, 938, 5545, 936, 5547, 934, 5549, 932, 5551, 930, 5553, 928, 5555, 926, 5557, 924, 5559, 922, 5561, 920, 5563, 918, 5565, 916, 5567, 914, 5569, 912, 5571, 910, 5573, 908, 5575, 906, 5577, 904, 5579, 902, 5581, 900, 5583, 898, 5585, 896, 5587, 894, 5589, 892, 5591, 890, 5593, 888, 5595, 886, 5597, 884, 5599, 882, 5601, 880, 5603, 878, 5605, 876, 5607, 874, 5609, 872, 5611, 870, 5613, 868, 5615, 866, 5617, 864, 5619, 862, 5621, 860, 5623, 858, 5625, 856, 5627, 854, 5629, 852, 5631, 850, 5633, 848, 5635, 846, 5637, 844, 5639, 842, 5641, 840, 5643, 838, 5645, 836, 5647, 834, 5649, 832, 5651, 830, 5653, 828, 5655, 826, 5657, 824, 5659, 822, 5661, 820, 5663, 818, 5665, 816, 5667, 814, 5669, 812, 5671, 810, 5673, 808, 5675, 806, 5677, 804, 5679, 802, 5681, 800, 5683, 798, 5685, 796, 5687, 794, 5689, 792, 5691, 790, 5693, 788, 5695, 786, 5697, 784, 5699, 782, 5701, 780, 5703, 778, 5705, 776, 5707, 774, 5709, 772, 5711, 770, 5713, 768, 5715, 766, 5717, 764, 5719, 762, 5721, 760, 5723, 758, 5725, 756, 5727, 754, 5729, 752, 5731, 750, 5733, 748, 5735, 746, 5737, 744, 5739, 742, 5741, 740, 5743, 738, 5745, 736, 5747, 734, 5749, 732, 5751, 730, 5753, 728, 5755, 726, 5757, 724, 5759, 722, 5761, 720, 5763, 718, 5765, 716, 5767, 714, 5769, 712, 5771, 710, 5773, 708, 5775, 706, 5777, 704, 5779, 702, 5781, 700, 5783, 698, 5785, 696, 5787, 694, 5789, 692, 5791, 690, 5793, 688, 5795, 686, 5797, 684, 5799, 682, 5801, 680, 5803, 678, 5805, 676, 5807, 674, 5809, 672, 5811, 670, 5813, 668, 5815, 666, 5817, 664, 5819, 662, 5821, 660, 5823, 658, 5825, 656, 5827, 654, 5829, 652, 5831, 650, 5833, 648, 5835, 646, 5837, 644, 5839, 642, 5841, 640, 5843, 638, 5845, 636, 5847, 634, 5849, 632, 5851, 630, 5853, 628, 5855, 626, 5857, 624, 5859, 622, 5861, 620, 5863, 618, 5865, 616, 5867, 614, 5869, 612, 5871, 610, 5873, 608, 5875, 606, 5877, 604, 5879, 602, 5881, 600, 5883, 598, 5885, 596, 5887, 594, 5889, 592, 5891, 590, 5893, 588, 5895, 586, 5897, 584, 5899, 582, 5901, 580, 5903, 578, 5905, 576, 5907, 574, 5909, 572, 5911, 570, 5913, 568, 5915, 566, 5917, 564, 5919, 562, 5921, 560, 5923, 558, 5925, 556, 5927, 554, 5929, 552, 5931, 550, 5933, 548, 5935, 546, 5937, 544, 5939, 542, 5941, 540, 5943, 538, 5945, 536, 5947, 534, 5949, 532, 5951, 530, 5953, 528, 5955, 526, 5957, 524, 5959, 522, 5961, 520, 5963, 518, 5965, 516, 5967, 514, 5969, 512, 5971, 510, 5973, 508, 5975, 506, 5977, 504, 5979, 502, 5981, 500, 5983, 498, 5985, 496, 5987, 494, 5989, 492, 5991, 490, 5993, 488, 5995, 486, 5997, 484, 5999, 482, 6001, 480, 6003, 478, 6005, 476, 6007, 474, 6009, 472, 6011, 470, 6013, 468, 6015, 466, 6017, 464, 6019, 462, 6021, 460, 6023, 458, 6025, 456, 6027, 454, 6029, 452, 6031, 450, 6033, 448, 6035, 446, 6037, 444, 6039, 442, 6041, 440, 6043, 438, 6045, 436, 6047, 434, 6049, 432, 6051, 430, 6053, 428, 6055, 426, 6057, 424, 6059, 422, 6061, 420, 6063, 418, 6065, 416, 6067, 414, 6069, 412, 6071, 410, 6073, 408, 6075, 406, 6077, 404, 6079, 402, 6081, 400, 6083, 398, 6085, 396, 6087, 394, 6089, 392, 6091, 390, 6093, 388, 6095, 386, 6097, 384, 6099, 382, 6101, 380, 6103, 378, 6105, 376, 6107, 374, 6109, 372, 6111, 370, 6113, 368, 6115, 366, 6117, 364, 6119, 362, 6121, 360, 6123, 358, 6125, 356, 6127, 354, 6129, 352, 6131, 350, 6133, 348, 6135, 346, 6137, 344, 6139, 342, 6141, 340, 6143, 338, 6145, 336, 6147, 334, 6149, 332, 6151, 330, 6153, 328, 6155, 326, 6157, 324, 6159, 322, 6161, 320, 6163, 318, 6165, 316, 6167, 314, 6169, 312, 6171, 310, 6173, 308, 6175, 306, 6177, 304, 6179, 302, 6181, 300, 6183, 298, 6185, 296, 6187, 294, 6189, 292, 6191, 290, 6193, 288, 6195, 286, 6197, 284, 6199, 282, 6201, 280, 6203, 278, 6205, 276, 6207, 274, 6209, 272, 6211, 270, 6213, 268, 6215, 266, 6217, 264, 6219, 262, 6221, 260, 6223, 258, 6225, 256, 6227, 254, 6229, 252, 6231, 250, 6233, 248, 6235, 246, 6237, 244, 6239, 242, 6241, 240, 6243, 238, 6245, 236, 6247, 234, 6249, 232, 6251, 230, 6253, 228, 6255, 226, 6257, 224, 6259, 222, 6261, 220, 6263, 218, 6265, 216, 6267, 214, 6269, 212, 6271, 210, 6273, 208, 6275, 206, 6277, 204, 6279, 202, 6281, 200, 6283, 198, 6285, 196, 6287, 194, 6289, 192, 6291, 190, 6293, 188, 6295, 186, 6297, 184, 6299, 182, 6301, 180, 6303, 178, 6305, 176, 6307, 174, 6309, 172, 6311, 170, 6313, 168, 6315, 166, 6317, 164, 6319, 162, 6321, 160, 6323, 158, 6325, 156, 6327, 154, 6329, 152, 6331, 150, 6333, 148, 6335, 146, 6337, 144, 6339, 142, 6341, 140, 6343, 138, 6345, 136, 6347, 134, 6349, 132, 6351, 130, 6353, 128, 6355, 126, 6357, 124, 6359, 122, 6361, 120, 6363, 118, 6365, 116, 6367, 114, 6369, 112, 6371, 110, 6373, 108, 6375, 106, 6377, 104, 6379, 102, 6381, 100, 6383, 98, 6385, 96, 6387, 94, 6389, 92, 6391, 90, 6393, 88, 6395, 86, 6397, 84, 6399, 82, 6401, 80, 6403, 78, 6405, 76, 6407, 74, 6409, 72, 6411, 70, 6413, 68, 6415, 66, 6417, 64, 6419, 62, 6421, 60, 6423, 58, 6425, 56, 6427, 54, 6429, 52, 6431, 50, 6433, 48, 6435, 46, 6437, 44, 6439, 42, 6441, 40, 6443, 38, 6445, 36, 6447, 34, 6449, 32, 6451, 30, 6453, 28, 6455, 26, 6457, 24, 6459, 22, 6461, 20, 6463, 18, 6465, 16, 6467, 14, 6469, 12, 6471, 10, 6473, 8, 6475, 6, 6477, 4, 6479, 2, 6481]} +RLMATH_EOF diff --git a/tasks/construct-rlve-prefix-sum-permutation-l5-s4/tests/check.py b/tasks/construct-rlve-prefix-sum-permutation-l5-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..60c3e0996cdfa8673fd7f34ad70cccb789b17654 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l5-s4/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + p = int_list(ans.get("perm"), n, 1, n, "perm") + if len(set(p)) != n: + raise Invalid("not a permutation") + seen, acc = set(), 0 + for v in p: + acc = (acc + v) % n + if acc in seen: + raise Invalid(f"prefix sum residue {acc} repeats") + seen.add(acc) + return None, {} diff --git a/tasks/construct-rlve-prefix-sum-permutation-l5-s4/tests/instance.json b/tasks/construct-rlve-prefix-sum-permutation-l5-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f9cfa04b2d682605350b124a14317e6c8e6d3c89 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l5-s4/tests/instance.json @@ -0,0 +1 @@ +{"n": 6482, "family": "rlve_prefix_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prefix-sum-permutation-l5-s4/tests/run.py b/tasks/construct-rlve-prefix-sum-permutation-l5-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l5-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-prefix-sum-permutation-l5-s4/tests/test.sh b/tasks/construct-rlve-prefix-sum-permutation-l5-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l5-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-prime-graph-coloring-l4-s2/environment/Dockerfile b/tasks/construct-rlve-prime-graph-coloring-l4-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l4-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-prime-graph-coloring-l4-s2/environment/instance.json b/tasks/construct-rlve-prime-graph-coloring-l4-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6cd9d2c7b984eb098b37f8973ab8b29b2663c981 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l4-s2/environment/instance.json @@ -0,0 +1 @@ +{"n": 214, "k": 4, "family": "rlve_prime_graph_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prime-graph-coloring-l4-s2/solution/solve.sh b/tasks/construct-rlve-prime-graph-coloring-l4-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..88b459aca2d3a9834c3c70c165106575eb2be264 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l4-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2]} +RLMATH_EOF diff --git a/tasks/construct-rlve-prime-graph-coloring-l4-s2/tests/check.py b/tasks/construct-rlve-prime-graph-coloring-l4-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..b3736f1375f1862241999142c975ced361b8fcb5 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l4-s2/tests/check.py @@ -0,0 +1,20 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + sieve = [True] * (n + 1) + sieve[0] = False + if n >= 1: + sieve[1] = False + for i in range(2, int(n ** 0.5) + 1): + if sieve[i]: + for j in range(i * i, n + 1, i): + sieve[j] = False + for p in range(2, n): + if sieve[p]: + for u in range(n - p): + if c[u] == c[u + p]: + raise Invalid(f"vertices {u + 1} and {u + p + 1} (difference {p}) share a colour") + return None, {} diff --git a/tasks/construct-rlve-prime-graph-coloring-l4-s2/tests/instance.json b/tasks/construct-rlve-prime-graph-coloring-l4-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6cd9d2c7b984eb098b37f8973ab8b29b2663c981 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l4-s2/tests/instance.json @@ -0,0 +1 @@ +{"n": 214, "k": 4, "family": "rlve_prime_graph_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prime-graph-coloring-l4-s2/tests/run.py b/tasks/construct-rlve-prime-graph-coloring-l4-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l4-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-prime-graph-coloring-l4-s2/tests/test.sh b/tasks/construct-rlve-prime-graph-coloring-l4-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l4-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-prime-graph-coloring-l4-s5/environment/Dockerfile b/tasks/construct-rlve-prime-graph-coloring-l4-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l4-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-prime-graph-coloring-l4-s5/environment/instance.json b/tasks/construct-rlve-prime-graph-coloring-l4-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b7eda9087780ba63dccb5b7c1170ca0429c1ee6f --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l4-s5/environment/instance.json @@ -0,0 +1 @@ +{"n": 245, "k": 4, "family": "rlve_prime_graph_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prime-graph-coloring-l4-s5/solution/solve.sh b/tasks/construct-rlve-prime-graph-coloring-l4-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a3dc779c07c8a38c67a4bfda57d56fc5dc4741c --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l4-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1]} +RLMATH_EOF diff --git a/tasks/construct-rlve-prime-graph-coloring-l4-s5/tests/check.py b/tasks/construct-rlve-prime-graph-coloring-l4-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..b3736f1375f1862241999142c975ced361b8fcb5 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l4-s5/tests/check.py @@ -0,0 +1,20 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + sieve = [True] * (n + 1) + sieve[0] = False + if n >= 1: + sieve[1] = False + for i in range(2, int(n ** 0.5) + 1): + if sieve[i]: + for j in range(i * i, n + 1, i): + sieve[j] = False + for p in range(2, n): + if sieve[p]: + for u in range(n - p): + if c[u] == c[u + p]: + raise Invalid(f"vertices {u + 1} and {u + p + 1} (difference {p}) share a colour") + return None, {} diff --git a/tasks/construct-rlve-prime-graph-coloring-l4-s5/tests/instance.json b/tasks/construct-rlve-prime-graph-coloring-l4-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b7eda9087780ba63dccb5b7c1170ca0429c1ee6f --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l4-s5/tests/instance.json @@ -0,0 +1 @@ +{"n": 245, "k": 4, "family": "rlve_prime_graph_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prime-graph-coloring-l4-s5/tests/run.py b/tasks/construct-rlve-prime-graph-coloring-l4-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l4-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-prime-graph-coloring-l4-s5/tests/test.sh b/tasks/construct-rlve-prime-graph-coloring-l4-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l4-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-recursive-sequence-sum-l2-s0/environment/Dockerfile b/tasks/construct-rlve-recursive-sequence-sum-l2-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l2-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-recursive-sequence-sum-l2-s0/environment/instance.json b/tasks/construct-rlve-recursive-sequence-sum-l2-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..e5f7593a504cd4caf9d4d1b8c7113c96de3b22ef --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l2-s0/environment/instance.json @@ -0,0 +1 @@ +{"F0": 13, "A": 4, "B": 8102, "S": 8154, "family": "rlve_recursive_sequence_sum", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-recursive-sequence-sum-l2-s0/solution/solve.sh b/tasks/construct-rlve-recursive-sequence-sum-l2-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9905329f0545a88db99d9b47a6808bfe6bf637d --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l2-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [1]} +RLMATH_EOF diff --git a/tasks/construct-rlve-recursive-sequence-sum-l2-s0/tests/check.py b/tasks/construct-rlve-recursive-sequence-sum-l2-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..feda076c3f95e5e12198151dee30e1b8223924bc --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l2-s0/tests/check.py @@ -0,0 +1,29 @@ +from run import Invalid, int_list + + +def F(inst, n): + F0, A, B = inst["F0"], inst["A"], inst["B"] + if A == 1: + return F0 + n * B + An = A ** n + return An * F0 + B * (An - 1) // (A - 1) + + +def check(inst, ans): + S = inst["S"] + idx = int_list(ans.get("indices"), None, 1, None, "indices") + if not idx: + raise Invalid("need at least one index") + if len(set(idx)) != len(idx): + raise Invalid("indices must be distinct") + total = 0 + for n in idx: + # F is strictly increasing with F(n) >= n and, when A >= 2, F(n) >= 2^(n-1); bail out before big powers + if n > S or (inst["A"] >= 2 and n - 1 > S.bit_length()): + raise Invalid(f"F({n}) exceeds S") + total += F(inst, n) + if total > S: + raise Invalid("sum exceeds S") + if total != S: + raise Invalid(f"sum is {total}, need {S}") + return None, {} diff --git a/tasks/construct-rlve-recursive-sequence-sum-l2-s0/tests/instance.json b/tasks/construct-rlve-recursive-sequence-sum-l2-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..e5f7593a504cd4caf9d4d1b8c7113c96de3b22ef --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l2-s0/tests/instance.json @@ -0,0 +1 @@ +{"F0": 13, "A": 4, "B": 8102, "S": 8154, "family": "rlve_recursive_sequence_sum", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-recursive-sequence-sum-l2-s0/tests/run.py b/tasks/construct-rlve-recursive-sequence-sum-l2-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l2-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-recursive-sequence-sum-l2-s0/tests/test.sh b/tasks/construct-rlve-recursive-sequence-sum-l2-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l2-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-recursive-sequence-sum-l2-s9/environment/Dockerfile b/tasks/construct-rlve-recursive-sequence-sum-l2-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l2-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-recursive-sequence-sum-l2-s9/environment/instance.json b/tasks/construct-rlve-recursive-sequence-sum-l2-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..0f97d5aab22ca97667805fd997a0197590c47d44 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l2-s9/environment/instance.json @@ -0,0 +1 @@ +{"F0": 92, "A": 4, "B": 4128, "S": 22112, "family": "rlve_recursive_sequence_sum", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-recursive-sequence-sum-l2-s9/solution/solve.sh b/tasks/construct-rlve-recursive-sequence-sum-l2-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..0522b8ac283d8e01f9b68293254f761e6b7bc69c --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l2-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [2]} +RLMATH_EOF diff --git a/tasks/construct-rlve-recursive-sequence-sum-l2-s9/tests/check.py b/tasks/construct-rlve-recursive-sequence-sum-l2-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..feda076c3f95e5e12198151dee30e1b8223924bc --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l2-s9/tests/check.py @@ -0,0 +1,29 @@ +from run import Invalid, int_list + + +def F(inst, n): + F0, A, B = inst["F0"], inst["A"], inst["B"] + if A == 1: + return F0 + n * B + An = A ** n + return An * F0 + B * (An - 1) // (A - 1) + + +def check(inst, ans): + S = inst["S"] + idx = int_list(ans.get("indices"), None, 1, None, "indices") + if not idx: + raise Invalid("need at least one index") + if len(set(idx)) != len(idx): + raise Invalid("indices must be distinct") + total = 0 + for n in idx: + # F is strictly increasing with F(n) >= n and, when A >= 2, F(n) >= 2^(n-1); bail out before big powers + if n > S or (inst["A"] >= 2 and n - 1 > S.bit_length()): + raise Invalid(f"F({n}) exceeds S") + total += F(inst, n) + if total > S: + raise Invalid("sum exceeds S") + if total != S: + raise Invalid(f"sum is {total}, need {S}") + return None, {} diff --git a/tasks/construct-rlve-recursive-sequence-sum-l2-s9/tests/instance.json b/tasks/construct-rlve-recursive-sequence-sum-l2-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..0f97d5aab22ca97667805fd997a0197590c47d44 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l2-s9/tests/instance.json @@ -0,0 +1 @@ +{"F0": 92, "A": 4, "B": 4128, "S": 22112, "family": "rlve_recursive_sequence_sum", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-recursive-sequence-sum-l2-s9/tests/run.py b/tasks/construct-rlve-recursive-sequence-sum-l2-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l2-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-recursive-sequence-sum-l2-s9/tests/test.sh b/tasks/construct-rlve-recursive-sequence-sum-l2-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l2-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-recursive-sequence-sum-l6-s1/environment/Dockerfile b/tasks/construct-rlve-recursive-sequence-sum-l6-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l6-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-recursive-sequence-sum-l6-s1/environment/instance.json b/tasks/construct-rlve-recursive-sequence-sum-l6-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a01a1b388d5f4866f96e435c7264dba1e94a073a --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l6-s1/environment/instance.json @@ -0,0 +1 @@ +{"F0": 28, "A": 1, "B": 8055, "S": 7218176, "family": "rlve_recursive_sequence_sum", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-recursive-sequence-sum-l6-s1/solution/solve.sh b/tasks/construct-rlve-recursive-sequence-sum-l6-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e2a5578e7a1190d4f03a86ea65608cbe46f0f74 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l6-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [1, 3, 4, 5, 6, 9, 10, 12, 13, 15, 16, 19, 20, 23, 24, 26, 27, 30, 31, 32, 37, 38, 39, 42, 44, 49, 50, 51, 52, 54, 56, 58]} +RLMATH_EOF diff --git a/tasks/construct-rlve-recursive-sequence-sum-l6-s1/tests/check.py b/tasks/construct-rlve-recursive-sequence-sum-l6-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..feda076c3f95e5e12198151dee30e1b8223924bc --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l6-s1/tests/check.py @@ -0,0 +1,29 @@ +from run import Invalid, int_list + + +def F(inst, n): + F0, A, B = inst["F0"], inst["A"], inst["B"] + if A == 1: + return F0 + n * B + An = A ** n + return An * F0 + B * (An - 1) // (A - 1) + + +def check(inst, ans): + S = inst["S"] + idx = int_list(ans.get("indices"), None, 1, None, "indices") + if not idx: + raise Invalid("need at least one index") + if len(set(idx)) != len(idx): + raise Invalid("indices must be distinct") + total = 0 + for n in idx: + # F is strictly increasing with F(n) >= n and, when A >= 2, F(n) >= 2^(n-1); bail out before big powers + if n > S or (inst["A"] >= 2 and n - 1 > S.bit_length()): + raise Invalid(f"F({n}) exceeds S") + total += F(inst, n) + if total > S: + raise Invalid("sum exceeds S") + if total != S: + raise Invalid(f"sum is {total}, need {S}") + return None, {} diff --git a/tasks/construct-rlve-recursive-sequence-sum-l6-s1/tests/instance.json b/tasks/construct-rlve-recursive-sequence-sum-l6-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a01a1b388d5f4866f96e435c7264dba1e94a073a --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l6-s1/tests/instance.json @@ -0,0 +1 @@ +{"F0": 28, "A": 1, "B": 8055, "S": 7218176, "family": "rlve_recursive_sequence_sum", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-recursive-sequence-sum-l6-s1/tests/run.py b/tasks/construct-rlve-recursive-sequence-sum-l6-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l6-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-recursive-sequence-sum-l6-s1/tests/test.sh b/tasks/construct-rlve-recursive-sequence-sum-l6-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l6-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-recursive-sequence-sum-l6-s6/environment/Dockerfile b/tasks/construct-rlve-recursive-sequence-sum-l6-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l6-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-recursive-sequence-sum-l6-s6/environment/instance.json b/tasks/construct-rlve-recursive-sequence-sum-l6-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6a8082d30ec492da6b25b960629200a70d1e3cf9 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l6-s6/environment/instance.json @@ -0,0 +1 @@ +{"F0": 121, "A": 14, "B": 3298, "S": 236342378210210665113249592011061048114378379331220912999513385202334756, "family": "rlve_recursive_sequence_sum", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-recursive-sequence-sum-l6-s6/solution/solve.sh b/tasks/construct-rlve-recursive-sequence-sum-l6-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..45dc6b253673cd1239ac1a284611660e188a9c1e --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l6-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60]} +RLMATH_EOF diff --git a/tasks/construct-rlve-recursive-sequence-sum-l6-s6/tests/check.py b/tasks/construct-rlve-recursive-sequence-sum-l6-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..feda076c3f95e5e12198151dee30e1b8223924bc --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l6-s6/tests/check.py @@ -0,0 +1,29 @@ +from run import Invalid, int_list + + +def F(inst, n): + F0, A, B = inst["F0"], inst["A"], inst["B"] + if A == 1: + return F0 + n * B + An = A ** n + return An * F0 + B * (An - 1) // (A - 1) + + +def check(inst, ans): + S = inst["S"] + idx = int_list(ans.get("indices"), None, 1, None, "indices") + if not idx: + raise Invalid("need at least one index") + if len(set(idx)) != len(idx): + raise Invalid("indices must be distinct") + total = 0 + for n in idx: + # F is strictly increasing with F(n) >= n and, when A >= 2, F(n) >= 2^(n-1); bail out before big powers + if n > S or (inst["A"] >= 2 and n - 1 > S.bit_length()): + raise Invalid(f"F({n}) exceeds S") + total += F(inst, n) + if total > S: + raise Invalid("sum exceeds S") + if total != S: + raise Invalid(f"sum is {total}, need {S}") + return None, {} diff --git a/tasks/construct-rlve-recursive-sequence-sum-l6-s6/tests/instance.json b/tasks/construct-rlve-recursive-sequence-sum-l6-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6a8082d30ec492da6b25b960629200a70d1e3cf9 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l6-s6/tests/instance.json @@ -0,0 +1 @@ +{"F0": 121, "A": 14, "B": 3298, "S": 236342378210210665113249592011061048114378379331220912999513385202334756, "family": "rlve_recursive_sequence_sum", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-recursive-sequence-sum-l6-s6/tests/run.py b/tasks/construct-rlve-recursive-sequence-sum-l6-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l6-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-recursive-sequence-sum-l6-s6/tests/test.sh b/tasks/construct-rlve-recursive-sequence-sum-l6-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l6-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-recursive-sequence-sum-l6-s8/environment/instance.json b/tasks/construct-rlve-recursive-sequence-sum-l6-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4832f714d87bc0ad8d212edb83251bdd13f9c23f --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l6-s8/environment/instance.json @@ -0,0 +1 @@ +{"F0": 35, "A": 1, "B": 11947, "S": 11040043, "family": "rlve_recursive_sequence_sum", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-round-robin-scores-l6-s2/environment/Dockerfile b/tasks/construct-rlve-round-robin-scores-l6-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l6-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-round-robin-scores-l6-s2/environment/instance.json b/tasks/construct-rlve-round-robin-scores-l6-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c9cfb05a04859b29c251f89cf28f3c169a145ab9 --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l6-s2/environment/instance.json @@ -0,0 +1 @@ +{"W": [28, 31, 26, 24, 29, 26, 24, 26, 24, 26, 24, 27, 22, 27, 21, 25, 30, 26, 26, 27, 30, 26, 25, 28, 24], "family": "rlve_round_robin_scores", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-round-robin-scores-l6-s2/solution/solve.sh b/tasks/construct-rlve-round-robin-scores-l6-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..83d792c6f335ef2fdd099e02210e10fc935e6307 --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l6-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"A": ["0121112121111111101101111", "1011001221111121121111201", "0101012111112111111111111", "1110121111111111000021111", "1221010111112111111111111", "1210102111101111111111111", "0101200011111111111211111", "1011112011011211111111111", "0011111101111111121111111", "1111111110111111211111111", "1111111211011111111110101", "1111121111101111102111111", "1101011111110010112111111", "1111111011112011111111211", "1011111111111101011011111", "1111111111112110111101111", "1112111110111121011102211", "2012111101121111100111110", "1112111111100111120111111", "1112110111111121111011111", "2110111111111112211100112", "1111111111211111011120011", "1011111111111011011112012", "1211111111211111111111101", "1111111111111111121101010"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-round-robin-scores-l6-s2/tests/check.py b/tasks/construct-rlve-round-robin-scores-l6-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..214446acaa90ce170daad3989b42317353060f9d --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l6-s2/tests/check.py @@ -0,0 +1,24 @@ +from run import Invalid + + +def check(inst, ans): + W = inst["W"] + n = len(W) + A = ans.get("A") + if not isinstance(A, list) or len(A) != n: + raise Invalid(f"A must be a list of {n} strings") + for r in A: + if not isinstance(r, str) or len(r) != n or set(r) - {"0", "1", "2"}: + raise Invalid(f"each row must be a string of {n} digits 0/1/2") + for i in range(n): + if A[i][i] != "0": + raise Invalid("diagonal must be 0") + w = 0 + for j in range(n): + if i != j: + if int(A[i][j]) + int(A[j][i]) != 2: + raise Invalid(f"A[{i}][{j}] + A[{j}][{i}] != 2") + w += 3 * (A[i][j] == "2") + (A[i][j] == "1") + if w != W[i]: + raise Invalid(f"W[{i}] = {w}, need {W[i]}") + return None, {} diff --git a/tasks/construct-rlve-round-robin-scores-l6-s2/tests/instance.json b/tasks/construct-rlve-round-robin-scores-l6-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c9cfb05a04859b29c251f89cf28f3c169a145ab9 --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l6-s2/tests/instance.json @@ -0,0 +1 @@ +{"W": [28, 31, 26, 24, 29, 26, 24, 26, 24, 26, 24, 27, 22, 27, 21, 25, 30, 26, 26, 27, 30, 26, 25, 28, 24], "family": "rlve_round_robin_scores", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-round-robin-scores-l6-s2/tests/run.py b/tasks/construct-rlve-round-robin-scores-l6-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l6-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-round-robin-scores-l6-s2/tests/test.sh b/tasks/construct-rlve-round-robin-scores-l6-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l6-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-round-robin-scores-l6-s5/environment/Dockerfile b/tasks/construct-rlve-round-robin-scores-l6-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l6-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-round-robin-scores-l6-s5/environment/instance.json b/tasks/construct-rlve-round-robin-scores-l6-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..da1959cbc3ae470dcf9f366ba39080607b87d8cd --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l6-s5/environment/instance.json @@ -0,0 +1 @@ +{"W": [38, 36, 31, 48, 37, 20, 20, 34, 29, 43, 35, 25, 40, 40, 30, 30, 25, 26, 21, 36, 29, 21, 27, 38, 31], "family": "rlve_round_robin_scores", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-round-robin-scores-l6-s5/solution/solve.sh b/tasks/construct-rlve-round-robin-scores-l6-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..555ea3c1f8e75dfd2d476e3df633047ade17b846 --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l6-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"A": ["0011221011210022222111121", "2021011112021201102022201", "1000222020020111110222010", "1120012221121020222222202", "0202022220212101012211100", "0101001100100110210201112", "1100010010000001212001122", "2120012001021121021121102", "1100021201200122001120012", "1021222110122002212022210", "0221012201020012220102111", "1000122020000121111012101", "2121022120220210122000211", "2012112112210002112202112", "0210212002101202102000120", "0112121100012000212012120", "0110200220011110001012121", "0210111021010121200121100", "0020020110210000120010201", "1200002112122022212012000", "1000122000212221101101111", "1000111120002020012010101", "1020111120110111110211021", "0212210211121100022212002", "1120200002111022121211100"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-round-robin-scores-l6-s5/tests/check.py b/tasks/construct-rlve-round-robin-scores-l6-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..214446acaa90ce170daad3989b42317353060f9d --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l6-s5/tests/check.py @@ -0,0 +1,24 @@ +from run import Invalid + + +def check(inst, ans): + W = inst["W"] + n = len(W) + A = ans.get("A") + if not isinstance(A, list) or len(A) != n: + raise Invalid(f"A must be a list of {n} strings") + for r in A: + if not isinstance(r, str) or len(r) != n or set(r) - {"0", "1", "2"}: + raise Invalid(f"each row must be a string of {n} digits 0/1/2") + for i in range(n): + if A[i][i] != "0": + raise Invalid("diagonal must be 0") + w = 0 + for j in range(n): + if i != j: + if int(A[i][j]) + int(A[j][i]) != 2: + raise Invalid(f"A[{i}][{j}] + A[{j}][{i}] != 2") + w += 3 * (A[i][j] == "2") + (A[i][j] == "1") + if w != W[i]: + raise Invalid(f"W[{i}] = {w}, need {W[i]}") + return None, {} diff --git a/tasks/construct-rlve-round-robin-scores-l6-s5/tests/instance.json b/tasks/construct-rlve-round-robin-scores-l6-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..da1959cbc3ae470dcf9f366ba39080607b87d8cd --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l6-s5/tests/instance.json @@ -0,0 +1 @@ +{"W": [38, 36, 31, 48, 37, 20, 20, 34, 29, 43, 35, 25, 40, 40, 30, 30, 25, 26, 21, 36, 29, 21, 27, 38, 31], "family": "rlve_round_robin_scores", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-round-robin-scores-l6-s5/tests/run.py b/tasks/construct-rlve-round-robin-scores-l6-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l6-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-round-robin-scores-l6-s5/tests/test.sh b/tasks/construct-rlve-round-robin-scores-l6-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l6-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-shortest-path-count-l1-s0/environment/Dockerfile b/tasks/construct-rlve-shortest-path-count-l1-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l1-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-shortest-path-count-l1-s0/environment/instance.json b/tasks/construct-rlve-shortest-path-count-l1-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..1720b8a91aae9dbc7fa6bbb5c95d147174fb109a --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l1-s0/environment/instance.json @@ -0,0 +1 @@ +{"K": 23, "n_max": 24, "family": "rlve_shortest_path_count", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-shortest-path-count-l1-s0/solution/solve.sh b/tasks/construct-rlve-shortest-path-count-l1-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d70add221033a8ac2b746940c308a17cce1413d --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l1-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"n": 15, "adj": ["NNYYNNNNNNYNNNN", "NNNNNNNNNNNNNNY", "YNNNYYNNNNNYNNN", "YNNNYYNNNNNYNNN", "NNYYNNYYNNNNYNN", "NNYYNNYYNNNNYNN", "NNNNYYNNYYNNNNN", "NNNNYYNNYYNNNNN", "NNNNNNYYNNNNNNY", "NNNNNNYYNNNNNNY", "YNNNNNNNNNNYNNN", "NNYYNNNNNNYNYNN", "NNNNYYNNNNNYNYN", "NNNNNNNNNNNNYNY", "NYNNNNNNYYNNNYN"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-shortest-path-count-l1-s0/tests/check.py b/tasks/construct-rlve-shortest-path-count-l1-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..c59d4c4f4bb4e824a2019380643a5b3ade0ca974 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l1-s0/tests/check.py @@ -0,0 +1,34 @@ +from run import Invalid, as_int + + +def check(inst, ans): + n = as_int(ans.get("n"), "n", lo=2, hi=inst["n_max"]) + adj = ans.get("adj") + if not isinstance(adj, list) or len(adj) != n: + raise Invalid(f"adj must be a list of {n} strings") + for r in adj: + if not isinstance(r, str) or len(r) != n or set(r) - {"Y", "N"}: + raise Invalid("each row must be a string of length n over {'Y','N'}") + for i in range(n): + if adj[i][i] != "N": + raise Invalid("self-loop") + for j in range(i + 1, n): + if adj[i][j] != adj[j][i]: + raise Invalid("matrix not symmetric") + nb = [[j for j in range(n) if adj[i][j] == "Y"] for i in range(n)] + dist = [-1] * n + cnt = [0] * n + dist[0], cnt[0] = 0, 1 + q = [0] + for u in q: # BFS with exact (Python int) path counts + for v in nb[u]: + if dist[v] < 0: + dist[v] = dist[u] + 1 + q.append(v) + if dist[v] == dist[u] + 1: + cnt[v] += cnt[u] + if dist[1] < 0: + raise Invalid("vertex 2 is unreachable from vertex 1") + if cnt[1] != inst["K"]: + raise Invalid(f"{cnt[1]} shortest paths, need {inst['K']}") + return None, {} diff --git a/tasks/construct-rlve-shortest-path-count-l1-s0/tests/instance.json b/tasks/construct-rlve-shortest-path-count-l1-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..1720b8a91aae9dbc7fa6bbb5c95d147174fb109a --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l1-s0/tests/instance.json @@ -0,0 +1 @@ +{"K": 23, "n_max": 24, "family": "rlve_shortest_path_count", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-shortest-path-count-l1-s0/tests/run.py b/tasks/construct-rlve-shortest-path-count-l1-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l1-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-shortest-path-count-l1-s0/tests/test.sh b/tasks/construct-rlve-shortest-path-count-l1-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l1-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-shortest-path-count-l1-s7/environment/Dockerfile b/tasks/construct-rlve-shortest-path-count-l1-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l1-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-shortest-path-count-l1-s7/environment/instance.json b/tasks/construct-rlve-shortest-path-count-l1-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..9cfe8a1650b4718998933de0dc46562a029fea7a --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l1-s7/environment/instance.json @@ -0,0 +1 @@ +{"K": 40, "n_max": 39, "family": "rlve_shortest_path_count", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-shortest-path-count-l1-s7/solution/solve.sh b/tasks/construct-rlve-shortest-path-count-l1-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4494a4a0451c7488829a78ca77940d975ef3fbd --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l1-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"n": 18, "adj": ["NNYYNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNY", "YNNNYYNNNNNNNNNNNN", "YNNNYYNNNNNNNNNNNN", "NNYYNNYYNNNNNNNNNN", "NNYYNNYYNNNNNNNNNN", "NNNNYYNNYYNNNNNYNN", "NNNNYYNNYYNNNNNYNN", "NNNNNNYYNNYYNNNNNN", "NNNNNNYYNNYYNNNNNN", "NNNNNNNNYYNNNNNNNY", "NNNNNNNNYYNNNNNNNY", "NNNNNNNNNNNNNYNNNN", "NNNNNNNNNNNNYNYNNN", "NNNNNNNNNNNNNYNYNN", "NNNNNNYYNNNNNNYNYN", "NNNNNNNNNNNNNNNYNY", "NYNNNNNNNNYYNNNNYN"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-shortest-path-count-l1-s7/tests/check.py b/tasks/construct-rlve-shortest-path-count-l1-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..c59d4c4f4bb4e824a2019380643a5b3ade0ca974 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l1-s7/tests/check.py @@ -0,0 +1,34 @@ +from run import Invalid, as_int + + +def check(inst, ans): + n = as_int(ans.get("n"), "n", lo=2, hi=inst["n_max"]) + adj = ans.get("adj") + if not isinstance(adj, list) or len(adj) != n: + raise Invalid(f"adj must be a list of {n} strings") + for r in adj: + if not isinstance(r, str) or len(r) != n or set(r) - {"Y", "N"}: + raise Invalid("each row must be a string of length n over {'Y','N'}") + for i in range(n): + if adj[i][i] != "N": + raise Invalid("self-loop") + for j in range(i + 1, n): + if adj[i][j] != adj[j][i]: + raise Invalid("matrix not symmetric") + nb = [[j for j in range(n) if adj[i][j] == "Y"] for i in range(n)] + dist = [-1] * n + cnt = [0] * n + dist[0], cnt[0] = 0, 1 + q = [0] + for u in q: # BFS with exact (Python int) path counts + for v in nb[u]: + if dist[v] < 0: + dist[v] = dist[u] + 1 + q.append(v) + if dist[v] == dist[u] + 1: + cnt[v] += cnt[u] + if dist[1] < 0: + raise Invalid("vertex 2 is unreachable from vertex 1") + if cnt[1] != inst["K"]: + raise Invalid(f"{cnt[1]} shortest paths, need {inst['K']}") + return None, {} diff --git a/tasks/construct-rlve-shortest-path-count-l1-s7/tests/instance.json b/tasks/construct-rlve-shortest-path-count-l1-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..9cfe8a1650b4718998933de0dc46562a029fea7a --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l1-s7/tests/instance.json @@ -0,0 +1 @@ +{"K": 40, "n_max": 39, "family": "rlve_shortest_path_count", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-shortest-path-count-l1-s7/tests/run.py b/tasks/construct-rlve-shortest-path-count-l1-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l1-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-shortest-path-count-l1-s7/tests/test.sh b/tasks/construct-rlve-shortest-path-count-l1-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l1-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-shortest-path-count-l5-s8/environment/Dockerfile b/tasks/construct-rlve-shortest-path-count-l5-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l5-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-shortest-path-count-l5-s8/environment/instance.json b/tasks/construct-rlve-shortest-path-count-l5-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..16af7c5cd14c2e1b0d4dc9c01b91a816c879cb5d --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l5-s8/environment/instance.json @@ -0,0 +1 @@ +{"K": 149274712750, "n_max": 231, "family": "rlve_shortest_path_count", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-shortest-path-count-l5-s8/solution/solve.sh b/tasks/construct-rlve-shortest-path-count-l5-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..682c65b71a456e2bf3fb7d970b0c01766a9b7859 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l5-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"n": 114, "adj": ["NNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNY", "YNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "YNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN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NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNY", "NYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYN"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-shortest-path-count-l5-s8/tests/check.py b/tasks/construct-rlve-shortest-path-count-l5-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..c59d4c4f4bb4e824a2019380643a5b3ade0ca974 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l5-s8/tests/check.py @@ -0,0 +1,34 @@ +from run import Invalid, as_int + + +def check(inst, ans): + n = as_int(ans.get("n"), "n", lo=2, hi=inst["n_max"]) + adj = ans.get("adj") + if not isinstance(adj, list) or len(adj) != n: + raise Invalid(f"adj must be a list of {n} strings") + for r in adj: + if not isinstance(r, str) or len(r) != n or set(r) - {"Y", "N"}: + raise Invalid("each row must be a string of length n over {'Y','N'}") + for i in range(n): + if adj[i][i] != "N": + raise Invalid("self-loop") + for j in range(i + 1, n): + if adj[i][j] != adj[j][i]: + raise Invalid("matrix not symmetric") + nb = [[j for j in range(n) if adj[i][j] == "Y"] for i in range(n)] + dist = [-1] * n + cnt = [0] * n + dist[0], cnt[0] = 0, 1 + q = [0] + for u in q: # BFS with exact (Python int) path counts + for v in nb[u]: + if dist[v] < 0: + dist[v] = dist[u] + 1 + q.append(v) + if dist[v] == dist[u] + 1: + cnt[v] += cnt[u] + if dist[1] < 0: + raise Invalid("vertex 2 is unreachable from vertex 1") + if cnt[1] != inst["K"]: + raise Invalid(f"{cnt[1]} shortest paths, need {inst['K']}") + return None, {} diff --git a/tasks/construct-rlve-shortest-path-count-l5-s8/tests/instance.json b/tasks/construct-rlve-shortest-path-count-l5-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..16af7c5cd14c2e1b0d4dc9c01b91a816c879cb5d --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l5-s8/tests/instance.json @@ -0,0 +1 @@ +{"K": 149274712750, "n_max": 231, "family": "rlve_shortest_path_count", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-shortest-path-count-l5-s8/tests/run.py b/tasks/construct-rlve-shortest-path-count-l5-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l5-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-shortest-path-count-l5-s8/tests/test.sh b/tasks/construct-rlve-shortest-path-count-l5-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l5-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/environment/Dockerfile b/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/environment/instance.json b/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..1f9ae2e43fd5274b8cbf370b736fd67dd1ecf2d3 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/environment/instance.json @@ -0,0 +1 @@ +{"points": [[0, 169], [3, 142], [7, 91], [9, 35], [10, 72], [10, 138], [13, 161], [13, 223], [15, 71], [16, 67], [18, 209], [23, 123], [23, 238], [24, 61], [24, 202], [28, 228], [32, 95], [33, 169], [35, 100], [38, 166], [40, 58], [42, 50], [44, 100], [47, 3], [49, 7], [55, 54], [55, 216], [57, 118], [60, 106], [61, 106], [66, 16], [67, 216], [68, 93], [68, 228], [71, 213], [72, 134], [75, 22], [75, 121], [77, 6], [78, 101], [80, 139], [86, 172], [91, 177], [95, 139], [95, 221], [96, 25], [100, 127], [103, 173], [106, 96], [107, 21], [109, 179], [110, 232], [113, 174], [114, 77], [114, 203], [115, 168], [118, 56], [119, 226], [120, 22], [122, 207], [128, 38], [128, 64], [133, 182], [134, 74], [135, 40], [135, 230], [137, 219], [138, 210], [139, 127], [141, 16], [144, 182], [146, 105], [146, 179], [149, 5], [150, 11], [152, 223], [155, 122], [157, 189], [160, 85], [161, 57], [167, 2], [167, 25], [168, 57], [174, 4], [175, 118], [176, 5], [176, 81], [177, 32], [179, 238], [180, 195], [184, 85], [188, 218], [194, 35], [195, 232], [196, 155], [198, 73], [204, 186], [207, 159], [211, 11], [211, 183], [214, 181], [214, 236], [215, 221], [219, 203], [220, 62], [220, 210], [221, 88], [222, 163], [223, 91], [223, 165], [226, 199], [228, 166], [231, 123], [233, 65], [235, 78], [235, 83], [236, 153], [237, 43], [238, 0], [238, 115]], "r_opt": 160.36598766571421, "r2_num": 102869, "r2_den": 4, "family": "rlve_smallest_enclosing_circle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/solution/solve.sh b/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5002a940ea102e664559789a82df48003088032 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": 130.5, "y": 119.0, "r": 160.3659876667142} +RLMATH_EOF diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/tests/check.py b/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..0eabf3219588f98db42bf5fd305dc24ce21ca495 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/tests/check.py @@ -0,0 +1,17 @@ +import math + +from run import Invalid, num + +TOL = 1e-6 + + +def check(inst, ans): + x, y, r = num(ans.get("x"), "x"), num(ans.get("y"), "y"), num(ans.get("r"), "r") + if r <= 0: + raise Invalid("r must be positive") + if r > inst["r_opt"] + TOL: + raise Invalid(f"r = {r} exceeds the minimum radius {inst['r_opt']} by more than {TOL}") + for px, py in inst["points"]: + if math.hypot(px - x, py - y) > r + TOL: + raise Invalid(f"point ({px}, {py}) is outside the circle") + return None, {"r": r} diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/tests/instance.json b/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..1f9ae2e43fd5274b8cbf370b736fd67dd1ecf2d3 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/tests/instance.json @@ -0,0 +1 @@ +{"points": [[0, 169], [3, 142], [7, 91], [9, 35], [10, 72], [10, 138], [13, 161], [13, 223], [15, 71], [16, 67], [18, 209], [23, 123], [23, 238], [24, 61], [24, 202], [28, 228], [32, 95], [33, 169], [35, 100], [38, 166], [40, 58], [42, 50], [44, 100], [47, 3], [49, 7], [55, 54], [55, 216], [57, 118], [60, 106], [61, 106], [66, 16], [67, 216], [68, 93], [68, 228], [71, 213], [72, 134], [75, 22], [75, 121], [77, 6], [78, 101], [80, 139], [86, 172], [91, 177], [95, 139], [95, 221], [96, 25], [100, 127], [103, 173], [106, 96], [107, 21], [109, 179], [110, 232], [113, 174], [114, 77], [114, 203], [115, 168], [118, 56], [119, 226], [120, 22], [122, 207], [128, 38], [128, 64], [133, 182], [134, 74], [135, 40], [135, 230], [137, 219], [138, 210], [139, 127], [141, 16], [144, 182], [146, 105], [146, 179], [149, 5], [150, 11], [152, 223], [155, 122], [157, 189], [160, 85], [161, 57], [167, 2], [167, 25], [168, 57], [174, 4], [175, 118], [176, 5], [176, 81], [177, 32], [179, 238], [180, 195], [184, 85], [188, 218], [194, 35], [195, 232], [196, 155], [198, 73], [204, 186], [207, 159], [211, 11], [211, 183], [214, 181], [214, 236], [215, 221], [219, 203], [220, 62], [220, 210], [221, 88], [222, 163], [223, 91], [223, 165], [226, 199], [228, 166], [231, 123], [233, 65], [235, 78], [235, 83], [236, 153], [237, 43], [238, 0], [238, 115]], "r_opt": 160.36598766571421, "r2_num": 102869, "r2_den": 4, "family": "rlve_smallest_enclosing_circle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/tests/run.py b/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/tests/test.sh b/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l6-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/environment/Dockerfile b/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/environment/instance.json b/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2d063fdd552c08ddac1c332aa85b4736a9596df2 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/environment/instance.json @@ -0,0 +1 @@ +{"points": [[2, 122], [4, 90], [5, 150], [5, 232], [7, 183], [8, 110], [10, 15], [14, 28], [14, 108], [15, 13], [17, 51], [19, 72], [19, 214], [20, 7], [21, 194], [28, 233], [28, 237], [29, 209], [31, 101], [31, 114], [39, 6], [40, 118], [40, 143], [43, 146], [45, 115], [48, 5], [51, 128], [53, 40], [56, 25], [59, 89], [60, 145], [60, 236], [62, 117], [64, 171], [64, 192], [66, 88], [68, 135], [70, 226], [72, 183], [73, 214], [73, 228], [79, 160], [79, 238], [84, 137], [89, 111], [90, 66], [90, 220], [91, 216], [92, 121], [99, 235], [103, 175], [104, 193], [104, 201], [107, 39], [108, 125], [109, 3], [110, 142], [111, 48], [114, 141], [119, 89], [120, 154], [122, 5], [128, 107], [128, 167], [130, 167], [131, 23], [133, 204], [143, 140], [143, 159], [148, 225], [154, 113], [156, 3], [156, 17], [158, 69], [158, 83], [159, 115], [160, 91], [161, 239], [162, 229], [165, 75], [165, 92], [168, 206], [169, 130], [171, 209], [172, 198], [173, 51], [175, 6], [175, 77], [176, 205], [177, 226], [179, 37], [182, 151], [184, 77], [185, 32], [188, 176], [194, 166], [195, 15], [197, 224], [200, 152], [203, 87], [204, 73], [205, 40], [205, 223], [212, 44], [212, 83], [214, 102], [215, 151], [220, 68], [220, 87], [221, 159], [221, 184], [222, 112], [225, 133], [228, 171], [230, 131], [233, 222], [234, 34], [236, 31], [236, 52], [239, 177]], "r_opt": 153.27681816893897, "r2_num": 1574717064029, "r2_den": 67026969, "family": "rlve_smallest_enclosing_circle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/solution/solve.sh b/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..12b87c5a6a0130cb6dfd1950bb414e8cac0ac452 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": 115.70844021008917, "y": 125.99328203249054, "r": 153.27681816993896} +RLMATH_EOF diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/tests/check.py b/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..0eabf3219588f98db42bf5fd305dc24ce21ca495 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/tests/check.py @@ -0,0 +1,17 @@ +import math + +from run import Invalid, num + +TOL = 1e-6 + + +def check(inst, ans): + x, y, r = num(ans.get("x"), "x"), num(ans.get("y"), "y"), num(ans.get("r"), "r") + if r <= 0: + raise Invalid("r must be positive") + if r > inst["r_opt"] + TOL: + raise Invalid(f"r = {r} exceeds the minimum radius {inst['r_opt']} by more than {TOL}") + for px, py in inst["points"]: + if math.hypot(px - x, py - y) > r + TOL: + raise Invalid(f"point ({px}, {py}) is outside the circle") + return None, {"r": r} diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/tests/instance.json b/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2d063fdd552c08ddac1c332aa85b4736a9596df2 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/tests/instance.json @@ -0,0 +1 @@ +{"points": [[2, 122], [4, 90], [5, 150], [5, 232], [7, 183], [8, 110], [10, 15], [14, 28], [14, 108], [15, 13], [17, 51], [19, 72], [19, 214], [20, 7], [21, 194], [28, 233], [28, 237], [29, 209], [31, 101], [31, 114], [39, 6], [40, 118], [40, 143], [43, 146], [45, 115], [48, 5], [51, 128], [53, 40], [56, 25], [59, 89], [60, 145], [60, 236], [62, 117], [64, 171], [64, 192], [66, 88], [68, 135], [70, 226], [72, 183], [73, 214], [73, 228], [79, 160], [79, 238], [84, 137], [89, 111], [90, 66], [90, 220], [91, 216], [92, 121], [99, 235], [103, 175], [104, 193], [104, 201], [107, 39], [108, 125], [109, 3], [110, 142], [111, 48], [114, 141], [119, 89], [120, 154], [122, 5], [128, 107], [128, 167], [130, 167], [131, 23], [133, 204], [143, 140], [143, 159], [148, 225], [154, 113], [156, 3], [156, 17], [158, 69], [158, 83], [159, 115], [160, 91], [161, 239], [162, 229], [165, 75], [165, 92], [168, 206], [169, 130], [171, 209], [172, 198], [173, 51], [175, 6], [175, 77], [176, 205], [177, 226], [179, 37], [182, 151], [184, 77], [185, 32], [188, 176], [194, 166], [195, 15], [197, 224], [200, 152], [203, 87], [204, 73], [205, 40], [205, 223], [212, 44], [212, 83], [214, 102], [215, 151], [220, 68], [220, 87], [221, 159], [221, 184], [222, 112], [225, 133], [228, 171], [230, 131], [233, 222], [234, 34], [236, 31], [236, 52], [239, 177]], "r_opt": 153.27681816893897, "r2_num": 1574717064029, "r2_den": 67026969, "family": "rlve_smallest_enclosing_circle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/tests/run.py b/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/tests/test.sh b/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l6-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s0/environment/Dockerfile b/tasks/construct-rlve-subgraph-isomorphism-l2-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s0/environment/instance.json b/tasks/construct-rlve-subgraph-isomorphism-l2-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..1fcbcb1e9df6539c80b8ebeb4559a12efdd1c23b --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s0/environment/instance.json @@ -0,0 +1 @@ +{"n1": 4, "n2": 8, "edges1": [[0, 1], [0, 2], [1, 2]], "edges2": [[4, 5], [4, 7], [1, 2], [2, 3], [5, 7], [3, 6], [2, 7]], "family": "rlve_subgraph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s0/solution/solve.sh b/tasks/construct-rlve-subgraph-isomorphism-l2-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..0abd570fbe62c2b1a1f59bc4ef2425e7e19fb9f7 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"p": [5, 4, 7, 6]} +RLMATH_EOF diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s0/tests/check.py b/tasks/construct-rlve-subgraph-isomorphism-l2-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..b8467dd00c27c8902c06206c376ff7a11ac78ae0 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s0/tests/check.py @@ -0,0 +1,16 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n1, n2 = inst["n1"], inst["n2"] + p = int_list(ans.get("p"), n1, 0, n2 - 1, "p") + if len(set(p)) != n1: + raise Invalid("p is not injective") + e1 = {(min(u, v), max(u, v)) for u, v in inst["edges1"]} + e2 = {(min(u, v), max(u, v)) for u, v in inst["edges2"]} + for u in range(n1): + for v in range(u + 1, n1): + a, b = min(p[u], p[v]), max(p[u], p[v]) + if ((u, v) in e1) != ((a, b) in e2): + raise Invalid(f"pair ({u}, {v}) is not preserved") + return None, {} diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s0/tests/instance.json b/tasks/construct-rlve-subgraph-isomorphism-l2-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..1fcbcb1e9df6539c80b8ebeb4559a12efdd1c23b --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s0/tests/instance.json @@ -0,0 +1 @@ +{"n1": 4, "n2": 8, "edges1": [[0, 1], [0, 2], [1, 2]], "edges2": [[4, 5], [4, 7], [1, 2], [2, 3], [5, 7], [3, 6], [2, 7]], "family": "rlve_subgraph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s0/tests/run.py b/tasks/construct-rlve-subgraph-isomorphism-l2-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s0/tests/test.sh b/tasks/construct-rlve-subgraph-isomorphism-l2-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s7/environment/Dockerfile b/tasks/construct-rlve-subgraph-isomorphism-l2-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s7/environment/instance.json b/tasks/construct-rlve-subgraph-isomorphism-l2-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..253f74912789650a662d7c57903ef95fe86df35e --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s7/environment/instance.json @@ -0,0 +1 @@ +{"n1": 4, "n2": 8, "edges1": [[0, 2]], "edges2": [[3, 7], [6, 7], [1, 6], [0, 2], [3, 6], [1, 3], [4, 5], [1, 4], [5, 6], [1, 7], [2, 7], [0, 3]], "family": "rlve_subgraph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s7/solution/solve.sh b/tasks/construct-rlve-subgraph-isomorphism-l2-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..64a742e6a721d50843f06ed907d8ffbb2385c82b --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"p": [5, 2, 4, 3]} +RLMATH_EOF diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s7/tests/check.py b/tasks/construct-rlve-subgraph-isomorphism-l2-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..b8467dd00c27c8902c06206c376ff7a11ac78ae0 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s7/tests/check.py @@ -0,0 +1,16 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n1, n2 = inst["n1"], inst["n2"] + p = int_list(ans.get("p"), n1, 0, n2 - 1, "p") + if len(set(p)) != n1: + raise Invalid("p is not injective") + e1 = {(min(u, v), max(u, v)) for u, v in inst["edges1"]} + e2 = {(min(u, v), max(u, v)) for u, v in inst["edges2"]} + for u in range(n1): + for v in range(u + 1, n1): + a, b = min(p[u], p[v]), max(p[u], p[v]) + if ((u, v) in e1) != ((a, b) in e2): + raise Invalid(f"pair ({u}, {v}) is not preserved") + return None, {} diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s7/tests/instance.json b/tasks/construct-rlve-subgraph-isomorphism-l2-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..253f74912789650a662d7c57903ef95fe86df35e --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s7/tests/instance.json @@ -0,0 +1 @@ +{"n1": 4, "n2": 8, "edges1": [[0, 2]], "edges2": [[3, 7], [6, 7], [1, 6], [0, 2], [3, 6], [1, 3], [4, 5], [1, 4], [5, 6], [1, 7], [2, 7], [0, 3]], "family": "rlve_subgraph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s7/tests/run.py b/tasks/construct-rlve-subgraph-isomorphism-l2-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s7/tests/test.sh b/tasks/construct-rlve-subgraph-isomorphism-l2-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s9/environment/Dockerfile b/tasks/construct-rlve-subgraph-isomorphism-l2-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s9/environment/instance.json b/tasks/construct-rlve-subgraph-isomorphism-l2-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c91421700a3a560ef4c73b344a0ffc7dd923c8fe --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s9/environment/instance.json @@ -0,0 +1 @@ +{"n1": 7, "n2": 8, "edges1": [[0, 5], [3, 4], [1, 2], [2, 3], [0, 3], [1, 6], [2, 4], [1, 5], [5, 6], [0, 1], [3, 5], [1, 3], [0, 6], [0, 2], [2, 6]], "edges2": [[5, 7], [1, 4], [2, 5], [3, 7], [0, 7], [0, 3], [0, 1], [3, 5], [1, 6], [1, 2], [3, 4], [2, 6], [2, 3], [0, 4], [0, 2], [1, 3], [4, 6], [0, 6]], "family": "rlve_subgraph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s9/solution/solve.sh b/tasks/construct-rlve-subgraph-isomorphism-l2-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..aaef6ba1f8bf83b382da8f030e37592a47b6182e --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"p": [0, 1, 2, 3, 5, 4, 6]} +RLMATH_EOF diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s9/tests/check.py b/tasks/construct-rlve-subgraph-isomorphism-l2-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..b8467dd00c27c8902c06206c376ff7a11ac78ae0 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s9/tests/check.py @@ -0,0 +1,16 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n1, n2 = inst["n1"], inst["n2"] + p = int_list(ans.get("p"), n1, 0, n2 - 1, "p") + if len(set(p)) != n1: + raise Invalid("p is not injective") + e1 = {(min(u, v), max(u, v)) for u, v in inst["edges1"]} + e2 = {(min(u, v), max(u, v)) for u, v in inst["edges2"]} + for u in range(n1): + for v in range(u + 1, n1): + a, b = min(p[u], p[v]), max(p[u], p[v]) + if ((u, v) in e1) != ((a, b) in e2): + raise Invalid(f"pair ({u}, {v}) is not preserved") + return None, {} diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s9/tests/instance.json b/tasks/construct-rlve-subgraph-isomorphism-l2-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c91421700a3a560ef4c73b344a0ffc7dd923c8fe --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s9/tests/instance.json @@ -0,0 +1 @@ +{"n1": 7, "n2": 8, "edges1": [[0, 5], [3, 4], [1, 2], [2, 3], [0, 3], [1, 6], [2, 4], [1, 5], [5, 6], [0, 1], [3, 5], [1, 3], [0, 6], [0, 2], [2, 6]], "edges2": [[5, 7], [1, 4], [2, 5], [3, 7], [0, 7], [0, 3], [0, 1], [3, 5], [1, 6], [1, 2], [3, 4], [2, 6], [2, 3], [0, 4], [0, 2], [1, 3], [4, 6], [0, 6]], "family": "rlve_subgraph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s9/tests/run.py b/tasks/construct-rlve-subgraph-isomorphism-l2-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-subgraph-isomorphism-l2-s9/tests/test.sh b/tasks/construct-rlve-subgraph-isomorphism-l2-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l2-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-subgraph-isomorphism-l6-s6/environment/Dockerfile b/tasks/construct-rlve-subgraph-isomorphism-l6-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l6-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-subgraph-isomorphism-l6-s6/environment/instance.json b/tasks/construct-rlve-subgraph-isomorphism-l6-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..57247c78605f403a90377ae1615b1a5d49731c76 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l6-s6/environment/instance.json @@ -0,0 +1 @@ +{"n1": 23, "n2": 36, "edges1": [[9, 20], [14, 17], [10, 11], [7, 14], [5, 14], [7, 18], [8, 19], [2, 17], [1, 18], [13, 22], [8, 15], [5, 10], [14, 22], [8, 14], [16, 17], [5, 16], [20, 21], [2, 19], [4, 7], [0, 11], [12, 20], [13, 19], [10, 22], [0, 13], [5, 18], [8, 13], [3, 8], [10, 19], [4, 20], [1, 17], [1, 4], [15, 16], [0, 1], [11, 18], [10, 20], [3, 7], [1, 16], [13, 14], [1, 3], [3, 20], [12, 18], [2, 12], [1, 13], [1, 14], [12, 21], [0, 8], [18, 21], [6, 11], [14, 15], [1, 5], [4, 16], [5, 13], [13, 20], [3, 17], [4, 9], [13, 21], [4, 5], [7, 17], [2, 4], [8, 21], [2, 7], [0, 5], [12, 14], [17, 18], [6, 16], [18, 20], [4, 19], [12, 17], [10, 14], [4, 21], [0, 12], [8, 11], [1, 12], [1, 6], [4, 14], [15, 17], [0, 18], [11, 14], [7, 21], [0, 16], [17, 20], [7, 8], [4, 8], [11, 12], [3, 4], [11, 19], [14, 20], [8, 12], [8, 18], [2, 14], [4, 12], [7, 10], [16, 18], [21, 22], [10, 15], [3, 11], [16, 22], [0, 20], [1, 8], [1, 10], [2, 13], [8, 9], [3, 10], [14, 18], [12, 22], [11, 22], [12, 16], [1, 22], [3, 6], [3, 21], [1, 2], [6, 15], [2, 11], [9, 17]], "edges2": [[18, 22], [19, 31], [18, 20], [11, 24], [13, 25], [29, 35], [18, 21], [9, 24], [4, 31], [4, 25], [4, 28], [0, 2], [25, 27], [10, 16], [13, 27], [18, 30], [19, 25], [14, 30], [26, 31], [3, 16], [12, 29], [7, 16], [0, 14], [8, 18], [10, 23], [8, 10], [30, 32], [16, 32], [21, 28], [19, 30], [0, 5], [0, 16], [5, 12], [31, 35], [20, 33], [0, 25], [3, 25], [5, 20], [22, 34], [26, 27], [16, 26], [24, 28], [0, 6], [6, 23], [3, 26], [22, 31], [15, 16], [3, 33], [15, 26], [5, 15], [22, 23], [13, 21], [4, 32], [1, 14], [31, 33], [4, 7], [21, 29], [0, 12], [14, 28], [16, 33], [7, 17], [3, 11], [0, 18], [11, 33], [1, 7], [6, 27], [11, 16], [5, 7], [3, 15], [1, 30], [25, 34], [18, 34], [17, 22], [8, 32], [9, 10], [4, 26], [2, 9], [0, 23], [1, 12], [8, 26], [3, 29], [31, 32], [9, 33], [4, 10], [1, 10], [10, 34], [8, 33], [18, 24], [10, 13], [1, 8], [5, 29], [16, 24], [0, 4], [11, 12], [20, 32], [12, 13], [3, 14], [3, 10], [13, 18], [2, 6], [14, 29], [9, 35], [5, 22], [8, 11], [0, 30], [6, 33], [17, 26], [2, 14], [27, 35], [5, 10], [12, 34], [23, 31], [13, 24], [3, 24], [23, 28], [20, 27], [4, 30], [17, 33], [10, 30], [1, 25], [4, 13], [4, 18], [3, 35], [21, 31], [14, 34], [4, 17], [7, 20], [7, 27], [2, 16], [16, 19], [6, 12], [29, 34], [8, 23], [1, 33], [0, 21], [13, 35], [16, 28], [0, 33], [10, 33], [19, 21], [15, 20], [17, 23], [5, 16], [19, 28], [5, 14], [28, 30], [24, 31], [28, 35], [18, 35], [17, 27], [12, 27], [0, 27], [7, 18], [16, 25], [9, 13], [13, 34], [9, 31], [6, 18], [17, 29], [8, 30], [2, 5], [12, 21], [26, 29], [32, 34], [33, 35], [17, 32], [22, 29], [10, 29], [2, 4], [2, 29], [33, 34], [7, 13], [7, 29], [5, 8], [17, 18], [4, 5], [17, 20], [2, 13], [15, 31], [3, 7], [7, 30], [1, 21], [0, 1], [2, 3], [18, 31], [0, 28], [8, 25], [25, 35], [29, 30], [8, 27], [9, 18], [7, 33], [11, 31], [12, 25], [30, 35], [7, 10], [4, 34], [6, 34], [2, 27], [4, 35], [7, 19], [23, 26], [4, 21], [21, 27], [1, 4], [7, 28], [5, 32], [7, 15], [10, 11], [2, 8], [17, 19], [8, 9], [23, 35], [26, 32], [6, 24], [21, 22], [9, 25], [0, 35], [11, 21], [12, 35], [4, 33], [21, 23], [3, 21], [15, 18], [8, 19], [3, 19], [17, 30], [28, 34], [9, 28], [6, 15], [22, 28], [12, 20], [20, 22], [15, 22], [7, 26], [22, 33], [22, 30], [11, 34], [26, 33], [3, 17], [27, 30], [2, 11], [9, 27], [2, 15], [13, 14], [6, 10], [1, 29], [23, 24], [15, 23], [24, 26], [16, 31], [3, 5], [18, 26], [4, 29], [0, 3], [2, 12], [1, 24], [13, 17], [15, 24], [0, 9], [8, 21], [9, 17], [29, 31], [16, 30], [18, 27], [8, 16], [23, 29], [1, 11], [14, 21], [18, 25], [4, 6], [6, 26], [25, 28], [0, 7], [11, 25], [2, 32], [27, 32], [4, 24], [14, 27], [1, 18], [0, 31], [25, 31], [5, 9]], "family": "rlve_subgraph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-subgraph-isomorphism-l6-s6/solution/solve.sh b/tasks/construct-rlve-subgraph-isomorphism-l6-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..7639a90addf980d5fafebd2252be9ef51cbdf8fd --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l6-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"p": [9, 18, 1, 22, 21, 13, 20, 29, 31, 19, 34, 33, 0, 24, 4, 32, 27, 30, 35, 11, 28, 23, 6]} +RLMATH_EOF diff --git a/tasks/construct-rlve-subgraph-isomorphism-l6-s6/tests/check.py b/tasks/construct-rlve-subgraph-isomorphism-l6-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..b8467dd00c27c8902c06206c376ff7a11ac78ae0 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l6-s6/tests/check.py @@ -0,0 +1,16 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n1, n2 = inst["n1"], inst["n2"] + p = int_list(ans.get("p"), n1, 0, n2 - 1, "p") + if len(set(p)) != n1: + raise Invalid("p is not injective") + e1 = {(min(u, v), max(u, v)) for u, v in inst["edges1"]} + e2 = {(min(u, v), max(u, v)) for u, v in inst["edges2"]} + for u in range(n1): + for v in range(u + 1, n1): + a, b = min(p[u], p[v]), max(p[u], p[v]) + if ((u, v) in e1) != ((a, b) in e2): + raise Invalid(f"pair ({u}, {v}) is not preserved") + return None, {} diff --git a/tasks/construct-rlve-subgraph-isomorphism-l6-s6/tests/instance.json b/tasks/construct-rlve-subgraph-isomorphism-l6-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..57247c78605f403a90377ae1615b1a5d49731c76 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l6-s6/tests/instance.json @@ -0,0 +1 @@ +{"n1": 23, "n2": 36, "edges1": [[9, 20], [14, 17], [10, 11], [7, 14], [5, 14], [7, 18], [8, 19], [2, 17], [1, 18], [13, 22], [8, 15], [5, 10], [14, 22], [8, 14], [16, 17], [5, 16], [20, 21], [2, 19], [4, 7], [0, 11], [12, 20], [13, 19], [10, 22], [0, 13], [5, 18], [8, 13], [3, 8], [10, 19], [4, 20], [1, 17], [1, 4], [15, 16], [0, 1], [11, 18], [10, 20], [3, 7], [1, 16], [13, 14], [1, 3], [3, 20], [12, 18], [2, 12], [1, 13], [1, 14], [12, 21], [0, 8], [18, 21], [6, 11], [14, 15], [1, 5], [4, 16], [5, 13], [13, 20], [3, 17], [4, 9], [13, 21], [4, 5], [7, 17], [2, 4], [8, 21], [2, 7], [0, 5], [12, 14], [17, 18], [6, 16], [18, 20], [4, 19], [12, 17], [10, 14], [4, 21], [0, 12], [8, 11], [1, 12], [1, 6], [4, 14], [15, 17], [0, 18], [11, 14], [7, 21], [0, 16], [17, 20], [7, 8], [4, 8], [11, 12], [3, 4], [11, 19], [14, 20], [8, 12], [8, 18], [2, 14], [4, 12], [7, 10], [16, 18], [21, 22], [10, 15], [3, 11], [16, 22], [0, 20], [1, 8], [1, 10], [2, 13], [8, 9], [3, 10], [14, 18], [12, 22], [11, 22], [12, 16], [1, 22], [3, 6], [3, 21], [1, 2], [6, 15], [2, 11], [9, 17]], "edges2": [[18, 22], [19, 31], [18, 20], [11, 24], [13, 25], [29, 35], [18, 21], [9, 24], [4, 31], [4, 25], [4, 28], [0, 2], [25, 27], [10, 16], [13, 27], [18, 30], [19, 25], [14, 30], [26, 31], [3, 16], [12, 29], [7, 16], [0, 14], [8, 18], [10, 23], [8, 10], [30, 32], [16, 32], [21, 28], [19, 30], [0, 5], [0, 16], [5, 12], [31, 35], [20, 33], [0, 25], [3, 25], [5, 20], [22, 34], [26, 27], [16, 26], [24, 28], [0, 6], [6, 23], [3, 26], [22, 31], [15, 16], [3, 33], [15, 26], [5, 15], [22, 23], [13, 21], [4, 32], [1, 14], [31, 33], [4, 7], [21, 29], [0, 12], [14, 28], [16, 33], [7, 17], [3, 11], [0, 18], [11, 33], [1, 7], [6, 27], [11, 16], [5, 7], [3, 15], [1, 30], [25, 34], [18, 34], [17, 22], [8, 32], [9, 10], [4, 26], [2, 9], [0, 23], [1, 12], [8, 26], [3, 29], [31, 32], [9, 33], [4, 10], [1, 10], [10, 34], [8, 33], [18, 24], [10, 13], [1, 8], [5, 29], [16, 24], [0, 4], [11, 12], [20, 32], [12, 13], [3, 14], [3, 10], [13, 18], [2, 6], [14, 29], [9, 35], [5, 22], [8, 11], [0, 30], [6, 33], [17, 26], [2, 14], [27, 35], [5, 10], [12, 34], [23, 31], [13, 24], [3, 24], [23, 28], [20, 27], [4, 30], [17, 33], [10, 30], [1, 25], [4, 13], [4, 18], [3, 35], [21, 31], [14, 34], [4, 17], [7, 20], [7, 27], [2, 16], [16, 19], [6, 12], [29, 34], [8, 23], [1, 33], [0, 21], [13, 35], [16, 28], [0, 33], [10, 33], [19, 21], [15, 20], [17, 23], [5, 16], [19, 28], [5, 14], [28, 30], [24, 31], [28, 35], [18, 35], [17, 27], [12, 27], [0, 27], [7, 18], [16, 25], [9, 13], [13, 34], [9, 31], [6, 18], [17, 29], [8, 30], [2, 5], [12, 21], [26, 29], [32, 34], [33, 35], [17, 32], [22, 29], [10, 29], [2, 4], [2, 29], [33, 34], [7, 13], [7, 29], [5, 8], [17, 18], [4, 5], [17, 20], [2, 13], [15, 31], [3, 7], [7, 30], [1, 21], [0, 1], [2, 3], [18, 31], [0, 28], [8, 25], [25, 35], [29, 30], [8, 27], [9, 18], [7, 33], [11, 31], [12, 25], [30, 35], [7, 10], [4, 34], [6, 34], [2, 27], [4, 35], [7, 19], [23, 26], [4, 21], [21, 27], [1, 4], [7, 28], [5, 32], [7, 15], [10, 11], [2, 8], [17, 19], [8, 9], [23, 35], [26, 32], [6, 24], [21, 22], [9, 25], [0, 35], [11, 21], [12, 35], [4, 33], [21, 23], [3, 21], [15, 18], [8, 19], [3, 19], [17, 30], [28, 34], [9, 28], [6, 15], [22, 28], [12, 20], [20, 22], [15, 22], [7, 26], [22, 33], [22, 30], [11, 34], [26, 33], [3, 17], [27, 30], [2, 11], [9, 27], [2, 15], [13, 14], [6, 10], [1, 29], [23, 24], [15, 23], [24, 26], [16, 31], [3, 5], [18, 26], [4, 29], [0, 3], [2, 12], [1, 24], [13, 17], [15, 24], [0, 9], [8, 21], [9, 17], [29, 31], [16, 30], [18, 27], [8, 16], [23, 29], [1, 11], [14, 21], [18, 25], [4, 6], [6, 26], [25, 28], [0, 7], [11, 25], [2, 32], [27, 32], [4, 24], [14, 27], [1, 18], [0, 31], [25, 31], [5, 9]], "family": "rlve_subgraph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-subgraph-isomorphism-l6-s6/tests/run.py b/tasks/construct-rlve-subgraph-isomorphism-l6-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l6-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-subgraph-isomorphism-l6-s6/tests/test.sh b/tasks/construct-rlve-subgraph-isomorphism-l6-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l6-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-subgraph-isomorphism-l6-s8/environment/Dockerfile b/tasks/construct-rlve-subgraph-isomorphism-l6-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l6-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-subgraph-isomorphism-l6-s8/environment/instance.json b/tasks/construct-rlve-subgraph-isomorphism-l6-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..e09fc22ade04824aea30b010a2933a41893a31fa --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l6-s8/environment/instance.json @@ -0,0 +1 @@ +{"n1": 27, "n2": 36, "edges1": [[7, 23], [13, 16], [12, 21], [4, 13], [1, 21], [4, 25], [0, 3], [7, 15], [24, 26], [22, 26], [11, 19], [6, 16], [9, 20], [6, 17], [10, 11], [1, 15], [0, 13], [2, 20], [0, 9], [17, 19], [3, 13], [10, 15], [18, 23], [3, 15], [6, 24], [5, 14], [13, 18], [8, 22], [19, 23], [8, 17], [0, 26], [12, 13], [20, 23], [2, 18], [0, 1], [10, 24], [3, 12], [9, 21], [0, 15], [12, 24], [6, 9], [0, 25], [3, 24], [5, 23], [11, 15], [17, 22], [13, 24], [2, 15], [14, 22], [2, 22], [1, 12], [5, 7], [4, 10], [11, 22], [6, 10], [13, 19], [5, 15], [4, 12], [18, 19], [1, 26], [1, 20], [2, 25], [10, 17], [11, 17], [5, 17], [0, 21], [3, 10], [6, 22], [21, 24], [22, 25], [6, 18], [0, 14], [5, 26], [18, 21], [14, 18], [0, 5], [18, 25], [6, 14], [9, 26], [1, 11], [12, 14], [4, 24], [12, 23], [3, 14], [0, 19], [0, 10], [8, 18], [15, 20], [7, 13], [4, 23], [20, 21], [10, 23], [8, 13], [7, 21], [2, 8], [18, 24], [8, 21], [6, 26], [17, 18], [7, 26], [4, 16], [4, 6], [6, 19], [8, 19], [6, 23], [14, 21], [7, 19], [10, 21], [0, 6], [17, 21], [0, 18], [7, 16], [23, 24], [16, 24]], "edges2": [[12, 16], [6, 12], [14, 24], [7, 33], [5, 21], [15, 34], [2, 21], [9, 10], [11, 20], [8, 20], [17, 19], [13, 34], [3, 11], [5, 15], [20, 21], [22, 33], [12, 31], [15, 35], [15, 27], [5, 33], [2, 30], [4, 11], [0, 26], [27, 33], [3, 33], [25, 28], [17, 23], [17, 18], [1, 12], [23, 30], [27, 32], [10, 13], [16, 21], [2, 10], [10, 12], [4, 32], [16, 28], [19, 33], [4, 14], [1, 4], [24, 28], [2, 9], [18, 23], [6, 26], [20, 31], [12, 29], [4, 27], [24, 25], [18, 20], [20, 23], [31, 33], [5, 7], [12, 26], [13, 32], [27, 35], [16, 30], [23, 32], [13, 16], [2, 29], [17, 24], [32, 33], [21, 22], [9, 29], [10, 23], [11, 26], [4, 28], [25, 35], [15, 20], [15, 18], [9, 30], [2, 15], [9, 17], [4, 20], [10, 19], [17, 28], [9, 33], [17, 34], [0, 30], [12, 30], [15, 24], [10, 28], [20, 27], [26, 30], [0, 2], [23, 26], [5, 20], [3, 7], [23, 31], [13, 26], [4, 30], [14, 33], [18, 29], [22, 30], [13, 20], [22, 23], [6, 29], [16, 27], [10, 24], [5, 34], [1, 31], [4, 21], [11, 22], [2, 28], [15, 31], [2, 33], [11, 30], [3, 29], [24, 27], [2, 3], [14, 23], [6, 33], [12, 23], [22, 25], [4, 34], [25, 32], [4, 35], [9, 27], [24, 33], [18, 22], [5, 28], [11, 28], [18, 35], [11, 17], [3, 20], [15, 26], [24, 32], [5, 30], [3, 6], [20, 25], [10, 18], [2, 32], [8, 14], [12, 33], [10, 17], [20, 26], [11, 21], [14, 16], [1, 8], [0, 17], [28, 35], [6, 16], [1, 17], [16, 26], [6, 21], [5, 16], [14, 34], [4, 24], [31, 35], [33, 35], [7, 11], [18, 31], [19, 20], [6, 24], [28, 31], [9, 16], [21, 30], [26, 33], [22, 31], [8, 13], [2, 5], [6, 19], [1, 23], [1, 18], [7, 14], [3, 31], [11, 27], [22, 27], [5, 17], [6, 28], [1, 29], [9, 23], [0, 21], [9, 31], [29, 34], [15, 16], [21, 32], [8, 19], [6, 31], [29, 32], [10, 33], [2, 19], [1, 26], [21, 28], [26, 32], [16, 19], [15, 23], [2, 31], [2, 27], [34, 35], [19, 32], [23, 25], [3, 24], [9, 22], [27, 30], [5, 14], [15, 29], [3, 26], [25, 27], [22, 35], [11, 13], [8, 28], [0, 22], [0, 25], [1, 14], [0, 9], [21, 31], [13, 23], [11, 16], [9, 14], [28, 30], [7, 22], [2, 35], [13, 33], [1, 6], [14, 25], [26, 28], [7, 21], [13, 14], [4, 13], [20, 33]], "family": "rlve_subgraph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-subgraph-isomorphism-l6-s8/solution/solve.sh b/tasks/construct-rlve-subgraph-isomorphism-l6-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd74010487c597435f9dff48926b9952f5cd5e26 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l6-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"p": [33, 13, 1, 7, 30, 24, 2, 25, 18, 19, 5, 34, 11, 22, 3, 14, 0, 15, 31, 35, 8, 20, 29, 28, 21, 12, 32]} +RLMATH_EOF diff --git a/tasks/construct-rlve-subgraph-isomorphism-l6-s8/tests/check.py b/tasks/construct-rlve-subgraph-isomorphism-l6-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..b8467dd00c27c8902c06206c376ff7a11ac78ae0 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l6-s8/tests/check.py @@ -0,0 +1,16 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n1, n2 = inst["n1"], inst["n2"] + p = int_list(ans.get("p"), n1, 0, n2 - 1, "p") + if len(set(p)) != n1: + raise Invalid("p is not injective") + e1 = {(min(u, v), max(u, v)) for u, v in inst["edges1"]} + e2 = {(min(u, v), max(u, v)) for u, v in inst["edges2"]} + for u in range(n1): + for v in range(u + 1, n1): + a, b = min(p[u], p[v]), max(p[u], p[v]) + if ((u, v) in e1) != ((a, b) in e2): + raise Invalid(f"pair ({u}, {v}) is not preserved") + return None, {} diff --git a/tasks/construct-rlve-subgraph-isomorphism-l6-s8/tests/instance.json b/tasks/construct-rlve-subgraph-isomorphism-l6-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..e09fc22ade04824aea30b010a2933a41893a31fa --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l6-s8/tests/instance.json @@ -0,0 +1 @@ +{"n1": 27, "n2": 36, "edges1": [[7, 23], [13, 16], [12, 21], [4, 13], [1, 21], [4, 25], [0, 3], [7, 15], [24, 26], [22, 26], [11, 19], [6, 16], [9, 20], [6, 17], [10, 11], [1, 15], [0, 13], [2, 20], [0, 9], [17, 19], [3, 13], [10, 15], [18, 23], [3, 15], [6, 24], [5, 14], [13, 18], [8, 22], [19, 23], [8, 17], [0, 26], [12, 13], [20, 23], [2, 18], [0, 1], [10, 24], [3, 12], [9, 21], [0, 15], [12, 24], [6, 9], [0, 25], [3, 24], [5, 23], [11, 15], [17, 22], [13, 24], [2, 15], [14, 22], [2, 22], [1, 12], [5, 7], [4, 10], [11, 22], [6, 10], [13, 19], [5, 15], [4, 12], [18, 19], [1, 26], [1, 20], [2, 25], [10, 17], [11, 17], [5, 17], [0, 21], [3, 10], [6, 22], [21, 24], [22, 25], [6, 18], [0, 14], [5, 26], [18, 21], [14, 18], [0, 5], [18, 25], [6, 14], [9, 26], [1, 11], [12, 14], [4, 24], [12, 23], [3, 14], [0, 19], [0, 10], [8, 18], [15, 20], [7, 13], [4, 23], [20, 21], [10, 23], [8, 13], [7, 21], [2, 8], [18, 24], [8, 21], [6, 26], [17, 18], [7, 26], [4, 16], [4, 6], [6, 19], [8, 19], [6, 23], [14, 21], [7, 19], [10, 21], [0, 6], [17, 21], [0, 18], [7, 16], [23, 24], [16, 24]], "edges2": [[12, 16], [6, 12], [14, 24], [7, 33], [5, 21], [15, 34], [2, 21], [9, 10], [11, 20], [8, 20], [17, 19], [13, 34], [3, 11], [5, 15], [20, 21], [22, 33], [12, 31], [15, 35], [15, 27], [5, 33], [2, 30], [4, 11], [0, 26], [27, 33], [3, 33], [25, 28], [17, 23], [17, 18], [1, 12], [23, 30], [27, 32], [10, 13], [16, 21], [2, 10], [10, 12], [4, 32], [16, 28], [19, 33], [4, 14], [1, 4], [24, 28], [2, 9], [18, 23], [6, 26], [20, 31], [12, 29], [4, 27], [24, 25], [18, 20], [20, 23], [31, 33], [5, 7], [12, 26], [13, 32], [27, 35], [16, 30], [23, 32], [13, 16], [2, 29], [17, 24], [32, 33], [21, 22], [9, 29], [10, 23], [11, 26], [4, 28], [25, 35], [15, 20], [15, 18], [9, 30], [2, 15], [9, 17], [4, 20], [10, 19], [17, 28], [9, 33], [17, 34], [0, 30], [12, 30], [15, 24], [10, 28], [20, 27], [26, 30], [0, 2], [23, 26], [5, 20], [3, 7], [23, 31], [13, 26], [4, 30], [14, 33], [18, 29], [22, 30], [13, 20], [22, 23], [6, 29], [16, 27], [10, 24], [5, 34], [1, 31], [4, 21], [11, 22], [2, 28], [15, 31], [2, 33], [11, 30], [3, 29], [24, 27], [2, 3], [14, 23], [6, 33], [12, 23], [22, 25], [4, 34], [25, 32], [4, 35], [9, 27], [24, 33], [18, 22], [5, 28], [11, 28], [18, 35], [11, 17], [3, 20], [15, 26], [24, 32], [5, 30], [3, 6], [20, 25], [10, 18], [2, 32], [8, 14], [12, 33], [10, 17], [20, 26], [11, 21], [14, 16], [1, 8], [0, 17], [28, 35], [6, 16], [1, 17], [16, 26], [6, 21], [5, 16], [14, 34], [4, 24], [31, 35], [33, 35], [7, 11], [18, 31], [19, 20], [6, 24], [28, 31], [9, 16], [21, 30], [26, 33], [22, 31], [8, 13], [2, 5], [6, 19], [1, 23], [1, 18], [7, 14], [3, 31], [11, 27], [22, 27], [5, 17], [6, 28], [1, 29], [9, 23], [0, 21], [9, 31], [29, 34], [15, 16], [21, 32], [8, 19], [6, 31], [29, 32], [10, 33], [2, 19], [1, 26], [21, 28], [26, 32], [16, 19], [15, 23], [2, 31], [2, 27], [34, 35], [19, 32], [23, 25], [3, 24], [9, 22], [27, 30], [5, 14], [15, 29], [3, 26], [25, 27], [22, 35], [11, 13], [8, 28], [0, 22], [0, 25], [1, 14], [0, 9], [21, 31], [13, 23], [11, 16], [9, 14], [28, 30], [7, 22], [2, 35], [13, 33], [1, 6], [14, 25], [26, 28], [7, 21], [13, 14], [4, 13], [20, 33]], "family": "rlve_subgraph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-subgraph-isomorphism-l6-s8/tests/run.py b/tasks/construct-rlve-subgraph-isomorphism-l6-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l6-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-subgraph-isomorphism-l6-s8/tests/test.sh b/tasks/construct-rlve-subgraph-isomorphism-l6-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-subgraph-isomorphism-l6-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/optimize-ae-p41-sphere-max-volume-n50/environment/Dockerfile b/tasks/optimize-ae-p41-sphere-max-volume-n50/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/optimize-ae-p41-sphere-max-volume-n50/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/optimize-ae-p41-sphere-max-volume-n50/environment/instance.json b/tasks/optimize-ae-p41-sphere-max-volume-n50/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3e20c696abbb2b1b211f3d5ada6cdbab1b0dd776 --- /dev/null +++ b/tasks/optimize-ae-p41-sphere-max-volume-n50/environment/instance.json @@ -0,0 +1 @@ +{"n": 50, "direction": "maximize", "family": "ae_p41_sphere_max_volume", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-ae-p41-sphere-max-volume-n50/solution/solve.sh b/tasks/optimize-ae-p41-sphere-max-volume-n50/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac4771c93485dbca5f380de54f1c1f16e10fd973 --- /dev/null +++ b/tasks/optimize-ae-p41-sphere-max-volume-n50/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"points": [[0.108239756805971, -0.274116369713229, 0.955585878349939], [-0.268317701055155, 0.080827479275903, 0.959933607024142], [0.306312215078131, 0.182654237268408, 0.934243146349935], [-0.309445201827034, -0.482616032762051, 0.819344513612708], [-0.102015294265133, 0.569040521158302, 0.815956962722843], [0.571873085769119, -0.306084679999271, 0.761100087007385], [-0.699640190525624, -0.130163699546839, 0.702538977652876], [0.445497745309614, 0.600938296191464, 0.663630110147626], [0.165223664134315, -0.708809612624089, 0.685776985514767], [-0.609049287505965, 0.419554436677581, 0.673077291291746], [0.778736061427695, 0.136811671162383, 0.612252164770233], [-0.642124706499063, -0.592466144853355, 0.486476853001348], [0.069339875366016, 0.882518824439281, 0.465137083228736], [0.598151524839524, -0.680088922223633, 0.423903068166356], [-0.924085539846004, 0.127179912104478, 0.360404196707832], [0.783672967786633, 0.540931081509199, 0.305369030220451], [-0.241543648519118, -0.885692840732724, 0.396490677992398], [-0.425797197000797, 0.823335784062067, 0.375253159492582], [0.906906794934011, -0.30770704825992, 0.287813199408379], [-0.920074778491026, -0.347592526661213, 0.180670521651882], [0.444998360861118, 0.88391042405489, 0.143801325021794], [0.256678767955825, -0.946560841156608, 0.195291024037398], [-0.830157693098645, 0.535965898460124, 0.153553769986181], [0.985386476931111, 0.153790383965314, 0.073225739198006], [-0.63033893199543, -0.776211719813949, 0.012969072223291], [-0.064367411362658, 0.997841991259206, -0.012969072223292], [0.714271363794145, -0.696027592831317, -0.073225739198007], [-0.987168606266948, 0.043810758085231, -0.153553769986181], [0.757422602044879, 0.623034844805641, -0.195291024037397], [-0.149100697792126, -0.978309849096838, -0.143801325021793], [-0.548792791476523, 0.816201344417811, -0.180670521651882], [0.917550344753742, -0.274344540839801, -0.28781319940838], [-0.823934631297958, -0.424637244761611, -0.375253159492583], [0.315998774187193, 0.86193962490265, -0.396490677992398], [0.325626684362331, -0.894827926370996, -0.305369030220451], [-0.827009596605552, 0.431467197035539, -0.360404196707832], [0.88148982367623, 0.208042975258475, -0.423903068166357], [-0.454549278070178, -0.759626518501918, -0.465137083228736], [-0.180385239461795, 0.854869251335089, -0.486476853001349], [0.555632819806424, -0.56251173880029, -0.612252164770233], [-0.739495201435123, 0.010668036454439, -0.673077291291746], [0.545179194415918, 0.482171724714639, -0.685776985514767], [0.015179352633278, -0.747906855269481, -0.663630110147626], [-0.495000072875967, 0.511286527038645, -0.702538977652876], [0.643475564810745, -0.081644687817656, -0.761100087007386], [-0.412706614265295, -0.404830193446328, -0.815956962722843], [0.02721508390107, 0.572655138125043, -0.819344513612708], [0.143942629445798, -0.326297813241837, -0.934243146349935], [-0.26555348566258, 0.089491990468831, -0.959933607024142], [0.246986584229885, 0.160789478227366, -0.955585878349939]]} +RLMATH_EOF diff --git a/tasks/optimize-ae-p41-sphere-max-volume-n50/tests/check.py b/tasks/optimize-ae-p41-sphere-max-volume-n50/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..58b6521809868700c39ccbae7ef07cd7c99c8d83 --- /dev/null +++ b/tasks/optimize-ae-p41-sphere-max-volume-n50/tests/check.py @@ -0,0 +1,23 @@ +"""n points on the unit sphere maximizing the volume of their convex hull (AlphaEvolve problem 41). + +Upstream bug fixed: the notebook summed |det|/6 of origin-pyramids over (QJ-joggled) hull facets, which +over-counts whenever the origin lies outside the hull (e.g. all points in one hemisphere). We use the exact +hull volume (scipy ConvexHull.volume) of the normalized points, without joggling.""" +import numpy as np +from scipy.spatial import ConvexHull + +from run import Invalid, float_matrix + + +def check(inst, ans): + n = inst["n"] + p = np.array(float_matrix(ans.get("points"), n, 3, "points")) + nr = np.linalg.norm(p, axis=1) + if (nr < 1e-9).any() or (nr > 1e9).any(): + raise Invalid("every point needs a non-zero, finite norm (it is projected to the unit sphere)") + p = p / nr[:, None] + try: + v = ConvexHull(p).volume + except Exception as e: # degenerate (coplanar) input + raise Invalid(f"degenerate hull: {type(e).__name__}") + return float(v), {} diff --git a/tasks/optimize-ae-p41-sphere-max-volume-n50/tests/instance.json b/tasks/optimize-ae-p41-sphere-max-volume-n50/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3d726a1e148b090a5c9df7809caa5c52b6ba1900 --- /dev/null +++ b/tasks/optimize-ae-p41-sphere-max-volume-n50/tests/instance.json @@ -0,0 +1 @@ +{"n": 50, "direction": "maximize", "best_known": 3.740940879707, "baseline": 2.088419075520825, "family": "ae_p41_sphere_max_volume", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-ae-p41-sphere-max-volume-n50/tests/run.py b/tasks/optimize-ae-p41-sphere-max-volume-n50/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/optimize-ae-p41-sphere-max-volume-n50/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/optimize-ae-p41-sphere-max-volume-n50/tests/test.sh b/tasks/optimize-ae-p41-sphere-max-volume-n50/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/optimize-ae-p41-sphere-max-volume-n50/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/optimize-ae-p59-isosceles-free-grid-n100/environment/Dockerfile b/tasks/optimize-ae-p59-isosceles-free-grid-n100/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/optimize-ae-p59-isosceles-free-grid-n100/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/optimize-ae-p59-isosceles-free-grid-n100/environment/instance.json b/tasks/optimize-ae-p59-isosceles-free-grid-n100/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f1bc65886e47a723d0235be902a308014b350c92 --- /dev/null +++ b/tasks/optimize-ae-p59-isosceles-free-grid-n100/environment/instance.json @@ -0,0 +1 @@ +{"n": 100, "direction": "maximize", "family": "ae_p59_isosceles_free_grid", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-ae-p59-isosceles-free-grid-n100/solution/solve.sh b/tasks/optimize-ae-p59-isosceles-free-grid-n100/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..6fb4a96f407a7def015d7ba9eea8c9cff95ae604 --- /dev/null +++ b/tasks/optimize-ae-p59-isosceles-free-grid-n100/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"points": [[67, 4], [89, 4], [24, 97], [97, 81], [91, 7], [0, 51], [92, 15], [76, 6], [97, 38], [97, 56], [92, 51], [96, 97], [98, 39], [74, 2], [29, 98], [34, 94], [0, 16], [4, 87], [3, 97], [96, 81], [33, 95], [34, 5], [1, 99], [2, 43], [7, 94], [11, 0], [3, 81], [2, 61], [22, 94], [77, 94], [91, 93], [23, 93], [7, 51], [70, 98], [7, 5], [10, 95], [22, 5], [77, 5], [3, 1], [99, 51], [0, 48], [2, 45], [91, 13], [2, 54], [91, 86], [98, 0], [31, 99], [97, 99], [89, 95], [67, 95], [92, 94], [31, 1], [88, 99], [1, 39], [2, 38], [91, 6], [23, 6], [92, 5], [2, 56], [66, 4], [68, 1], [1, 60], [26, 59], [99, 83], [8, 93], [76, 99], [25, 97], [31, 94], [32, 4], [23, 99], [7, 48], [8, 13], [8, 86], [96, 98], [31, 5], [75, 2], [8, 6], [1, 0], [24, 2], [96, 18], [73, 59], [7, 4], [29, 1], [0, 84], [2, 81], [74, 97], [65, 94], [22, 4], [92, 48], [77, 4], [2, 99], [68, 99], [98, 45], [3, 18], [98, 54], [96, 2], [92, 84], [65, 5], [99, 16], [22, 43], [77, 43], [31, 0], [97, 0], [95, 12], [66, 95], [3, 2], [92, 4], [97, 18], [70, 1], [26, 40], [88, 0], [0, 15], [8, 92], [32, 95], [68, 94], [96, 43], [95, 87], [7, 84], [4, 12], [99, 48], [96, 61], [76, 0], [91, 92], [68, 5], [99, 84], [3, 98], [3, 43], [22, 56], [77, 56], [23, 0], [11, 99], [3, 61], [1, 45], [7, 95], [98, 60], [1, 54], [33, 4], [73, 40], [31, 98], [22, 95], [77, 95], [97, 43], [0, 83], [76, 93], [97, 61], [96, 38], [7, 15], [68, 98], [98, 99], [96, 56], [96, 1], [8, 7], [10, 4], [2, 0], [25, 2], [68, 0], [99, 15], [97, 45], [92, 95], [2, 18], [3, 38], [97, 54], [75, 97], [3, 56]]} +RLMATH_EOF diff --git a/tasks/optimize-ae-p59-isosceles-free-grid-n100/tests/check.py b/tasks/optimize-ae-p59-isosceles-free-grid-n100/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..cfcfd7aba30ca03b3dccafd9ecd2dedab8e57a41 --- /dev/null +++ b/tasks/optimize-ae-p59-isosceles-free-grid-n100/tests/check.py @@ -0,0 +1,25 @@ +"""Largest subset of the n x n grid with no (possibly flat) isosceles triangle (AlphaEvolve problem 59). +Exact: for every point b, the squared distances from b to all other chosen points must be pairwise distinct.""" +import numpy as np + +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + pts = ans.get("points") + if not isinstance(pts, list) or not (1 <= len(pts) <= 4 * n): + raise Invalid(f"points must be a list of 1..{4 * n} [x, y] pairs") + p = [tuple(int_list(q, 2, 0, n - 1, "point")) for q in pts] + if len(set(p)) != len(p): + raise Invalid("points must be distinct") + a = np.array(p, dtype=np.int64) + d = ((a[:, None, :] - a[None, :, :]) ** 2).sum(-1) + for i in range(len(p)): + row = np.delete(d[i], i) + vals, cnt = np.unique(row, return_counts=True) + if (cnt > 1).any(): + dup = vals[np.argmax(cnt > 1)] + a2 = [p[k] for k in range(len(p)) if k != i and d[i, k] == dup][:2] + raise Invalid(f"isosceles: {a2[0]} and {a2[1]} are equidistant from {p[i]}") + return float(len(p)), {"size": len(p)} diff --git a/tasks/optimize-ae-p59-isosceles-free-grid-n100/tests/instance.json b/tasks/optimize-ae-p59-isosceles-free-grid-n100/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6df8ef064d612b90cda761fbb58f0dd26ffd9f7f --- /dev/null +++ b/tasks/optimize-ae-p59-isosceles-free-grid-n100/tests/instance.json @@ -0,0 +1 @@ +{"n": 100, "direction": "maximize", "best_known": 164.0, "baseline": 115.0, "family": "ae_p59_isosceles_free_grid", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-ae-p59-isosceles-free-grid-n100/tests/run.py b/tasks/optimize-ae-p59-isosceles-free-grid-n100/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/optimize-ae-p59-isosceles-free-grid-n100/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/optimize-ae-p59-isosceles-free-grid-n100/tests/test.sh b/tasks/optimize-ae-p59-isosceles-free-grid-n100/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/optimize-ae-p59-isosceles-free-grid-n100/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/optimize-ea-second-autocorrelation/environment/Dockerfile b/tasks/optimize-ea-second-autocorrelation/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/optimize-ea-second-autocorrelation/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/optimize-ea-second-autocorrelation/environment/instance.json b/tasks/optimize-ea-second-autocorrelation/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4d2f9fc86608b14d2dbb9b9ae83c95638bb2b582 --- /dev/null +++ b/tasks/optimize-ea-second-autocorrelation/environment/instance.json @@ -0,0 +1 @@ +{"max_len": 200000, "direction": "maximize", "family": "ea_second_autocorrelation", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-ea-second-autocorrelation/solution/solve.sh b/tasks/optimize-ea-second-autocorrelation/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..70b5ed48d3b12e7e1f7afa2063a7544c44c400ab --- /dev/null +++ b/tasks/optimize-ea-second-autocorrelation/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"values": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,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0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.1019629505133081e-67, 2.5187949314773164, 14.520296558752307, 18.16003579669632, 11.136266837329515, 7.27080657430912, 9.68275292348659, 11.890282105832739, 0.544980966034192, 6.878918247359461e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0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0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.8429909441015866, 18.300691386648623, 12.248659885820018, 6.860838070146258, 9.406646408106326, 9.75338008631752, 10.294549689184862, 11.547406995901838, 0.4896323035791852, 1.7087800138271503e-69, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.177276758599725e-71, 2.659211623763497, 12.866443373754066, 15.911410275579385, 9.230400770430606, 5.505993621462096, 7.540332968662881, 9.216168374699919, 9.455540249537592, 12.22793667456267, 1.1281165372066084, 2.635357569142577e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.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.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.4278658649911904, 16.411390087862173, 11.01816517276552, 9.583513644073719, 8.63547962874236, 5.191527847961197, 6.92933790051535, 7.9965083251429405, 8.887371362377564, 12.6535714438524, 1.3196256203414691, 3.86811200423904e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0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0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 7.615517773840751e-72, 3.232296387950683, 12.286098809436453, 12.233629930932693, 8.280422330504337, 8.278899332470303, 7.51027868547277, 6.095565929103998, 6.867281868647353, 6.861080376186294, 8.47964645743383, 12.68169815296369, 1.3728428997640094, 9.689543034466672e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0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0.0, 0.0, 2.9639375364554468, 15.9901271796071, 9.059722467922256, 7.1236776083606514, 6.839196442198045, 6.227195836559588, 6.861788583830503, 6.79982630511455, 7.9812179890155335, 7.564377901293483, 8.370085685322067, 11.369324280460432, 1.0624328582485418, 8.098155081053782e-74, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.03465575019812683, 7.163571008964084, 11.724427622335497, 8.107625376957003, 6.600961578761201, 6.775702944810348, 6.123660879248064, 5.737996213102633, 6.1617957492237565, 7.0555336034368, 7.601668039790695, 6.98727088968559, 8.382115475455976, 11.829872240337465, 0.9823101913821155, 5.62632454117275e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.31535195057063, 15.130852496491798, 8.318645952195084, 6.774635541326063, 6.599615255840035, 5.757068854440149, 5.758707347922609, 4.783398819428442, 5.4002341103937965, 5.5543043300722275, 7.09446885828271, 7.65558686915989, 8.892536539752655, 11.69849617201777, 1.3932347190259406, 5.1683406837721965e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.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.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004220508631258335, 6.978570227567843, 10.67705589626263, 7.08225470957791, 6.604886176688751, 7.77170296497593, 6.339717106442549, 5.437820437266282, 5.143615850051958, 4.136490358563606, 5.1997883022124824, 6.236614011392305, 7.0801546981284105, 6.403966886248384, 8.246368133527596, 11.982227697889357, 2.179626421890646, 1.3423993274593401e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0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566168, 7.713158901779252, 5.679493040063107, 5.8866669883696545, 6.937499159078527, 5.851816639224637, 5.038293637313984, 5.5882179621985415, 5.215603620341426, 5.194388917193976, 5.1012707135387245, 5.800429889132829, 5.677377291271114, 7.479406746735776, 12.116683410641599, 2.9231845174290925, 8.052815328676294e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.01610786553420951, 5.7857210940937875, 10.209354627606672, 9.564815439041524, 6.645188234584168, 4.836063956682665, 5.494099522716681, 6.292376581171993, 5.645004049156569, 4.676096494559033, 4.9490162869062715, 4.713226523585945, 5.102890626149929, 5.890227381663863, 6.171933153182692, 4.735207901765136, 6.508421490612818, 11.738004483281713, 3.339561002509427, 1.574333042885933e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.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.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.5685342492529912, 13.156435474116734, 8.350099783886492, 6.454001772637241, 5.480489004338779, 5.433065696907363, 5.4864885089855875, 5.0792013835600756, 4.705960068622744, 4.384549859389381, 4.538616104824143, 4.136461264352192, 5.044819322171179, 5.4524768127905645, 5.896388002844333, 5.0867310339165215, 6.620780272063712, 11.001597956422358, 3.4921418204084063, 2.215225591685086e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0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0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4133167951914096, 6.906478095199645, 8.479552036853022, 7.851686595222475, 6.222051701997827, 5.853070554672968, 5.3740661267057135, 4.703676360583131, 4.73510621525071, 4.184313284622704, 4.418606461265483, 4.4391239586971665, 4.652136053563538, 4.5073057618267285, 5.068636606984228, 5.071511937808282, 5.455313114437615, 5.016181685935464, 6.048760640822422, 10.537536368070732, 3.4983857236289992, 1.2222408365380532e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.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.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.9286987111523217, 12.276420041245956, 7.645076595454384, 5.38799993908674, 5.113622572809845, 4.763857335865623, 4.963922049921678, 4.975754517563701, 4.582253955329691, 3.807728570347763, 3.908956521800988, 3.5979914941744937, 4.109014902411445, 4.1151114650702425, 4.656545167551997, 4.921305971481672, 5.1908868505279315, 5.358376416326394, 5.991536535380874, 10.317658583860577, 3.360586756389594, 4.276535223990513e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5433391759447126, 6.0044794140663384, 8.149741387457254, 8.55824286456118, 6.196576569027513, 5.780583847467824, 4.58919957141967, 3.2857055148572414, 3.80278936936611, 4.145132954774056, 4.025495016969728, 3.384574542840838, 3.744669984829457, 3.74591854897416, 4.420766756462399, 3.9333128029372944, 4.577160922076473, 4.661138585362096, 5.050885194345028, 5.1963311552810865, 5.839152363851326, 9.364640032463797, 3.0163461339416386, 1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0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.416500579625236, 10.949899236327894, 7.9290046185562915, 5.665046305589897, 5.662785736287844, 5.894954635959039, 4.302941273353099, 2.679533544044034, 2.5080379181457744, 2.373024695101776, 3.148965794198432, 3.580983402247867, 3.7452384109913197, 3.8112223614816685, 4.1452242124842655, 3.611132486455304, 4.404919171711811, 4.049009759510454, 4.841214027230535, 4.80748958429308, 5.928269175811295, 9.66384841594845, 3.1116945229570234, 3.2437040852326327e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.264021091432042, 5.748089888066318, 8.236098776847541, 10.272703070958414, 6.637141848291378, 3.870710895945706, 3.576610183495532, 4.030856283168362, 3.271563314832747, 1.923808254018752, 2.5175577571062604, 3.3037239719118503, 3.141843018201044, 2.6041266721409215, 3.1459465622901917, 3.7069646293463308, 3.866940510819461, 3.3593303072848357, 3.9132585696319353, 3.5385136604100467, 4.7021697064161, 5.825350867356121, 6.315236162036172, 9.549005648534376, 2.6581157340001624, 1.71655789692195e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.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.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.538242779025552, 10.431329194643922, 7.9376338212796895, 6.541533732947812, 4.410385130707311, 2.462716133633208, 2.9552904594828675, 3.2273358931709026, 2.554009170004875, 1.6262870830759226, 2.4368035899999683, 3.4035900758915574, 3.070187320297592, 2.6544568894230594, 3.4276012484638727, 3.1595508666659953, 3.2338221082065957, 2.880361795740157, 3.699258624028076, 4.046407057253475, 4.766247214276746, 5.4324477445243815, 6.344512082422682, 11.447484045559634, 4.219655089686114, 3.710000185945967e-71, 6.023809223226346e-69, 5.547756384008785e-72, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0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410986, 2.3133235919914483, 3.2118721982283347, 4.098924183814233, 3.5394604812660333, 2.0828919383134803, 2.8713095425988655, 3.096297613122317, 2.759026780907803, 2.4727982104651005, 3.0802417310216157, 3.021401226817261, 3.8505190758259147, 3.8535428679108605, 4.341798491674126, 4.215994478141113, 5.177086768828815, 6.620515254850034, 7.271198737729719, 11.193164651886264, 6.4199485537238274, 1.2053381514217563, 2.2989412575895427e-67, 3.752957313849178e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002442243894024712, 5.980298330003336, 9.49871087930751, 7.530387588988162, 4.648426033898488, 3.3842846187553732, 4.11003471026703, 4.130128921199002, 3.9792093295341715, 3.641853376113943, 4.186180406039966, 4.375428643181522, 3.8497499810519145, 2.635309036486433, 3.0853266103404167, 3.1149367021507715, 2.703448022108205, 2.355590709845501, 3.0544589561549316, 3.5204783429357036, 4.162804193238344, 4.398748516906892, 4.6650627428235225, 4.678171350589992, 5.233669183394397, 5.882246055246071, 7.015015561271468, 11.571670080962804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, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.365009763434728, 16.984938640849577, 8.309809268082574, 5.155919225892433, 3.542629731306434, 2.7701479342056388, 3.532812988705757, 3.579320127674009, 3.8391149806302707, 4.133157797371098, 4.392817044336198, 3.982218520568722, 3.5542447689639545, 2.672916634536037, 2.902379853410153, 2.980174254742508, 2.8873812268733587, 2.584240462343587, 2.9878713549042146, 3.533380339360747, 3.8911553968274006, 3.8319821248923205, 4.118731895164785, 4.032283811833622, 4.73201567378419, 5.823393380022935, 6.030193951387957, 9.27700493532626, 7.146587852331322, 3.703867224339774, 4.7095216354945185e-70, 6.047603822775621e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2611221954159113, 9.801701185469028, 12.533755403113048, 7.219994820003706, 6.176850323702695, 5.379095792295857, 4.459506719490491, 3.9231744424114368, 4.219276028096829, 3.691233571920648, 3.4025230732977576, 3.0710717731045065, 3.0781628568822725, 2.4150613013989783, 2.702196081486875, 2.8349306765608304, 3.338769823228759, 3.3600470007741023, 3.2487312505264185, 3.3470365171433656, 3.115134897072963, 3.09421164945617, 3.1522815103563886, 3.2821605183631277, 3.3373414940888892, 3.0543514525254665, 3.350668302346449, 3.840202581099007, 5.1793676011062075, 10.04969709889798, 8.132720884715638, 5.5814589716248975, 0.00011168460040401895, 4.523239981033563e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0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, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 5.952156484756927, 17.058697028377537, 7.992626738895581, 6.295303845321598, 5.6815432606892955, 4.729156343502439, 4.481624830605369, 4.353994354738688, 3.6202679969510996, 2.2928087759410687, 2.72084635818716, 2.5357019283323012, 2.8122507877981207, 2.629743633194849, 2.9851449957118916, 2.824407703260036, 3.075322431750692, 2.8683292090414056, 3.240741018698273, 3.168670661602846, 2.5744957889480844, 2.4513259505113325, 2.666953030336927, 2.8934155154639143, 2.977447296343044, 2.7348186910149366, 2.915689715100825, 4.3617237959679755, 5.295575904729276, 8.580769566226309, 7.9058049644359585, 7.486288646128969, 0.5281331849396906, 2.2595053870924515e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0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0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8479038700493824, 14.867553337788252, 12.457927382009132, 3.8451248701586707, 4.877698263625518, 5.332168127210025, 5.622888344123794, 5.0642961664473205, 4.206307114321191, 3.0485011938122284, 2.7721641373637027, 1.884674083449923, 1.995885819718879, 2.309272302556792, 2.2434469561094517, 1.752131381540508, 2.179442686643597, 2.4955499930219958, 2.888742211850115, 2.7103302431085154, 2.5903618631687664, 2.463386658420191, 2.309704555972658, 2.26347837690264, 2.5385277284891004, 2.6857819578282403, 3.1551225214685843, 2.9581995727154577, 3.0866911612989156, 4.028166590858348, 5.201528181947879, 8.365369694439323, 7.850363873542449, 7.980389534779761, 0.9539793489366843, 1.7622136703556054e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.7730332741539883, 17.580052048624793, 3.8114550896082164, 1.3535002150626096e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.942084559609034e-72, 0.20445766800282072, 8.779831364478241, 18.101613453991604, 7.412706457843342, 4.14860728131822, 3.8425193844534675, 3.6936452129169908, 3.6940227903193232, 3.364924730513067, 2.903932882546542, 2.59674637485665, 2.323392667281553, 1.6146796456050652, 1.7434297152299791, 1.9965901888036228, 2.148382114132019, 1.9248887697390415, 2.0999737798431397, 2.3809280418528402, 2.1149445889460026, 2.000375224679601, 2.318520754774468, 2.6601440270351304, 2.6047072822502884, 2.3419250576409922, 2.412369529402042, 2.2601189880422368, 2.9975297026985572, 3.880958823522306, 3.4360743528182525, 3.5404226814562776, 4.840778630098214, 7.255777334652521, 7.906506184699765, 9.265232945297669, 1.9466226639369921, 1.3814125353133904e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 5.460400705123902, 24.878154806850944, 3.303633401721129, 1.7847695064112157e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.6906453550482325, 15.339142913085709, 12.770215197624623, 4.284908607105763, 4.308254533625814, 3.7516167824498012, 3.870955284037919, 2.76499843894635, 2.8344923304411083, 2.9622827783646386, 2.9200832613141756, 2.3915150349564698, 2.2121301969667826, 1.6139826131144588, 2.0245187813600296, 2.655436634487174, 2.5936168747207944, 1.9088403620669538, 2.3382126172237037, 2.3539366612664168, 1.9633545816391376, 1.4345667306804586, 1.9924035299229672, 2.6195117470093834, 2.576592579964668, 2.3943633757090197, 2.940381230462222, 3.5456383307703163, 3.344226769738782, 3.8200085831136334, 3.444899530505211, 3.3187888620359587, 4.183781709196467, 6.131961328770785, 7.444991374718995, 9.801226459836698, 1.6149441392906425, 6.856857497391073e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.1644761923454576e-20, 6.330260962052364, 16.869441645700135, 19.357055241991702, 5.179726807437191, 0.004570688378979781, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 5.171798950879975, 14.618730469697994, 6.25752675507465, 4.895673636755419, 3.5958016231683274, 2.5558997754217216, 2.3964895788797094, 2.374054645594015, 2.457526398711721, 2.3757760136877693, 2.7867510083713256, 3.4405611488745222, 3.196255956724613, 2.8444417255095686, 2.518592876735056, 2.0363811851468796, 1.804864815423585, 1.1367313842255413, 1.4345213266756787, 1.7157319470357493, 1.9447636225212506, 2.024346453509679, 2.4841824974655538, 2.5975751556078563, 3.270479270476301, 3.108209812685473, 2.950257420242451, 3.2444229046462993, 3.0693673203386993, 3.3405518514662305, 2.969633810878861, 2.9950353611386618, 4.141414572405665, 5.31641880103075, 6.727213788984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0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.029564357315084777, 10.892289339208446, 7.909116928148308, 1.2407526410249972, 2.7378878358731527, 2.282119005542782, 2.8621961080426814, 2.2490398716219175, 2.3064290621346686, 1.720855528066977, 2.437235707475338, 3.2116517221517284, 3.2837636307852023, 3.1962367756589174, 2.9900600994498205, 2.334334098000056, 2.2791838325703253, 2.341197217933555, 2.2817080684617395, 2.0170743348192133, 2.0488453876080257, 2.217010483978413, 2.394623842066949, 2.0054132217656075, 2.0886701332034505, 2.112391357565002, 2.5132247485390877, 2.3693357518786797, 2.0783424438775597, 1.8764616965626288, 2.002763021033971, 2.504562003800004, 2.8606804924652494, 3.344648832478981, 3.9693672497975427, 4.28725120612404, 7.016024690551603, 11.300482272025874, 2.193486899574637, 9.193432714833096e-76, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0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.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.3096907870087904, 9.249983168567496, 2.9470493315386648, 2.0242979452211927, 1.7278001802292806, 1.222130739189197, 1.9935324242993033, 2.346819659080438, 2.304939324324792, 1.6717956244208523, 2.0920806807541936, 2.448024982755115, 2.640919067701603, 2.586284470140754, 2.408236082388626, 2.039061359357447, 2.123373967412604, 2.193023646275506, 2.2653185098836417, 2.2722710407818028, 2.6592897713902772, 2.7498827240108312, 2.4582627549085743, 1.9604709335886241, 2.082613577898101, 1.871333086904329, 2.1642670090848384, 2.46282052295561, 1.9827244851185242, 1.8791897582389225, 1.9561516025171386, 2.4049827525442566, 2.575578896859554, 2.726198655443625, 3.679755188216305, 4.750802706105105, 7.054583695167423, 11.361056765899832, 2.6638962876587016, 7.030203506079726e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0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0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.039943492118226454, 5.57985603011781, 5.287265997414806, 2.9895913686434596, 2.7042450407725624, 1.6683897409428852, 1.5382008208580942, 0.9168130620606121, 1.362859505577049, 1.0147998311115458, 1.6081372302733286, 1.767480123034204, 1.7661098129638617, 1.6270454611573228, 1.9557234656676883, 2.0920079181910864, 2.1462935578575895, 2.2439065759704704, 2.7895994659249936, 2.7347883315659516, 3.2137892916782818, 3.41226292032394, 3.2401084050662945, 2.4444008109824154, 2.326905661649917, 2.0355963555417134, 1.8932845998579637, 1.7470572151694483, 1.7864372755457794, 1.7480799708666837, 1.4795225937305077, 1.1701627640946413, 1.6777011239947939, 1.6271823164460244, 2.2892617424878523, 2.945594067067759, 3.533624592017887, 3.378542209011414, 6.744060424937061, 11.914463124705946, 3.321107339820628, 9.352962683241413e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0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0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.4008914755899156, 6.847081112483977, 3.09406276881424, 2.8840257176198634, 1.9466758874987278, 1.4044791493006414, 0.9809041168919066, 0.2972309408360161, 0.9219111499153456, 1.46457728784668, 1.7361351329646482, 1.7793587913258904, 1.948583101540308, 1.829946601209386, 1.978915275075451, 1.8093906626450575, 2.1085865591263797, 2.659743905695805, 2.652859073106711, 2.348592510101085, 2.2291597957321443, 1.9488873039893093, 2.2061956046709383, 2.5410958957028384, 2.4829106503211875, 2.0738916560677723, 1.6180597039647324, 1.2305573721189376, 1.268969238690488, 1.889895986274496, 2.2071274177481115, 2.070218785178909, 1.8784854999085496, 1.6487730439397552, 2.2263453354417493, 2.456054017223451, 3.4434818570912853, 3.2890781686578663, 6.384078050615244, 11.811856469463237, 3.0143713119205273, 5.284479175833734e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8723903220157467, 11.891370620033058, 12.588470488999576, 7.764301767854761, 5.691854519184062, 5.584119033153513, 7.566435729789248, 13.472115487871235, 4.514323030396156, 1.0370707610336394e-73, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.9757667526148796e-05, 5.601372402907202, 4.29566337706143, 1.6695943747282058, 1.2579812832519934, 0.6508843196616141, 0.8528098686038135, 0.3377820123766959, 0.7418293588949076, 0.768087710266574, 1.0794358584064412, 0.6636996826917461, 0.8917810573796068, 0.6961618869662836, 1.3610723551224169, 1.957641110100269, 2.4217173416627844, 2.725477915681168, 2.1982511457977694, 1.9802540539703983, 1.973385833130635, 1.5872926740617146, 1.511365540302961, 1.395314331005025, 1.597186887396461, 1.8313998510939768, 2.2001872903802564, 2.8791213179292754, 2.495435119992649, 2.0256275539950366, 2.0114721865110283, 2.4351700037300503, 2.6846200559393907, 2.5622126971595662, 2.436081618728295, 2.062441434738105, 2.3300162365643615, 2.39678042766991, 2.9032714842799123, 2.1750736907739707, 4.851838533000375, 11.681630292719092, 3.8866596419475172, 3.372419559166601e-72, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 5.010663964812068, 16.768511691779167, 10.092520344238665, 4.033086249415874, 5.209706250050715, 4.067964724838248, 7.075586504370449, 9.867972167229766, 3.241568144714847, 1.5896858923966142e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.9453125958244186, 6.953512931373552, 2.7544257503519134, 2.868869908127536, 1.2913152452439505, 0.5422658349608014, 0.8457068228512163, 0.7518818436656147, 0.644568422484614, 0.4594550990134394, 0.35359065306694504, 0.06006635093925983, 0.22276363459019421, 0.5755894424614247, 0.8371661389921634, 0.6333618196671331, 0.8076988636565865, 0.6740393033124157, 0.7511291017549979, 0.9850243193472217, 1.4753179471928348, 1.5960607777220872, 1.724304190815488, 1.925693979256394, 2.0598304515443147, 2.209426802054182, 2.2411135137974867, 2.0191349700866255, 2.448427129551888, 2.82413524358914, 2.837072315856304, 2.5690653232325076, 2.8105070328911665, 2.8956480987836244, 2.6205452308079344, 2.0325924725332243, 2.2395654582027333, 2.2195501452484336, 3.0311397234365813, 2.381761744439487, 5.152943210310923, 10.908566189414671, 4.582309074761781, 1.7258966806640404e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.03592393118105974, 8.608675073665836, 8.59710029553753, 2.5502681319291156, 3.473361813902457, 3.7048386669120106, 3.858556122209066, 2.4549806527395504, 4.231201597418988, 8.216294084342962, 2.6313251921744865, 1.2262450254235588e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.059637762257392035, 5.975831879190082, 4.79019461506374, 2.2928315198778506, 2.0091197553995244, 1.3024681930119186, 0.8295719131270154, 0.456141755988714, 0.8242639669990695, 1.384110648876927, 1.0507236825749402, 0.2816790243845304, 1.0360259870001443, 1.610704249135381, 2.1403485934801125, 2.1014472467597898, 2.3523757080863703, 1.9306970596739035, 1.7591678868203786, 1.3386325990950354, 1.6228106614074846, 1.9441156610747043, 1.7495678344122467, 1.5309190547583427, 1.6667194971819868, 1.3124711060684149, 1.3005451779704913, 1.0260451281796037, 1.1767556178288174, 1.4642097192338497, 1.9114972461252933, 1.7998059597014162, 1.6889812431686693, 1.5065311101382264, 2.254066276247059, 2.6479133223115383, 2.864215670195236, 2.747939852978348, 2.9308485308372525, 2.743150636570192, 3.2127439219323293, 2.6250918134692256, 5.376008499526733, 11.129225054220626, 4.555227302900903, 1.1691072449698267e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.6255440805491759, 9.137700180055845, 5.035696316339454, 0.8523913690196991, 0.29255771313729895, 1.915926499341592e-68, 0.0, 0.0, 0.6009809836556634, 4.001616641278872, 0.3045017382653761, 2.495796197176502e-72, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.15118833331619985, 4.153330736222927, 0.9731949997594711, 3.553441654328967e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.9011819029003618, 2.772914050379768, 1.179346989572437, 1.538411659896056, 0.84577709562042, 4.140713587389266e-10, 0.23499022184319074, 1.093705806737276, 2.030951033803433, 2.478600442006851, 3.5825789208537486, 3.7857254877199153, 3.905723999683289, 2.8093072662968552, 2.1833330499875956, 1.4055403308649517, 1.5036982543370527, 1.504097646903574, 2.0581106670082505, 1.9848397203535484, 1.5208744496110427, 1.394757889190501, 1.3890149569465962, 1.2936736783594824, 0.4796929599666697, 8.370983692761206e-51, 0.0, 0.0, 0.17720381651318817, 0.17685489842595192, 0.20287886740690286, 0.17492121653322457, 0.1345396895288795, 0.04219033124195448, 0.47603559368531023, 1.1277635606384138, 1.0756480295018633, 0.7058332916417989, 0.9629783432193371, 1.4241413094355835, 2.0672820095063713, 1.5535328667849626, 3.645979933711274, 9.689659666869431, 3.568943662008465, 1.0421145060021708e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0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0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2931567036036462, 0.8787995236731128, 0.6283025019460098, 0.28254856035104936, 0.3373722569100188, 0.29654911566376896, 1.8328623928155707, 8.427950929213694, 2.3979296006041437, 2.753153507000491e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.30445687680927236, 3.7813638628506396, 2.7958177745250765, 0.3402251158004219, 0.0, 0.0, 0.6554981898528958, 2.5000128777285227, 4.491933270074696, 4.488176580636946, 5.754218065486384, 6.919204542012324, 2.027722089194995, 6.108014407232968e-72, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.192120998465512, 26.83011103514582, 6.833731855465487, 4.0694260829128527e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.019422489839503e-70, 1.2096253842795603e-35, 2.9830095237151824, 8.699168199972519, 4.917293434485202, 3.5322438912428424, 2.3174172670947115, 1.0477232457117367, 2.2095891150742233, 3.448458715565849, 2.873654426331086, 2.2819014671938618, 1.6309216025437223, 0.635223427130601, 0.7650844664090108, 0.6024629320678834, 1.463805562423559, 1.8413059826258547, 1.8831180494685782, 1.503572833793342, 1.551935708668907, 1.5815717261148166, 1.3407795614114093, 0.6696008573822496, 0.35604393421695946, 0.0032702441405153687, 0.07627972137516181, 0.527551433414434, 1.2163371971951307, 1.79416590668815, 1.9109860239416463, 1.5609721106020515, 1.4535898427471352, 1.5710667648982621, 1.9658174607015013, 2.377453156079582, 2.1871433161301326, 1.243539525992233, 1.1571739293291472, 1.4993945582739485, 1.867879136718841, 2.4165821286380975, 3.190120101581684, 4.11625005514361, 4.988389140954098, 4.867129624155723, 7.881129240209702, 13.55581720409242, 7.3272901879763594, 1.1956640776908358, 2.97178776651349e-67, 2.4610810502477344e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.08089503223530503, 1.951941293522296, 3.913825499795408, 4.811593050959573, 4.301717808139131, 3.895485756343774, 5.427636476229111, 4.832017149325111, 6.061597265502826, 5.858407253187181, 5.53689925117942, 6.1489290827069, 1.9311638634974315, 3.8781063339790375e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 5.77036316230766, 26.928300636757058, 5.472466883177788, 4.718850858560081e-69, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.7375388629582211, 6.903462124762484, 6.05972372556613, 5.873918810777695, 5.03238401854469, 4.681147282715358, 4.810481261095504, 5.164157815114834, 4.951503091644781, 5.377673669849173, 4.558536487083131, 2.595774445410143, 2.1653800763616005, 1.221300102087298, 1.1501866791277848, 1.2633051485687616, 1.0951863842567633, 0.7861056730485529, 0.27216339055445715, 0.07178575083455119, 0.0, 0.0, 0.0924463291099551, 0.4394545472326996, 0.44442261616700307, 0.2502475993648581, 0.6667752469945221, 1.1774558403633364, 1.4882700534574411, 1.6989442696072388, 2.0503666983030513, 2.215469712328755, 2.016845440285252, 1.6590910641417054, 1.5132572524185548, 1.4802520384847782, 1.785630188993892, 1.7172750303621456, 1.8854066726369325, 2.2757135359606764, 2.49064858548104, 2.677309053459126, 2.7405576790457076, 2.751641584482286, 3.9950328997749693, 3.5287563703742677, 5.789816471093445, 9.262391249101313, 4.1849599989701005, 1.9726288197675635e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 9.191075934227892e-69, 0.21137123777159506, 2.3357341916721595, 5.878385170632328, 5.174028724746904, 3.9249327732569697, 4.339117220480659, 3.661159527712755, 3.7282025502594394, 2.466960462497866, 2.4702745425916106, 1.7561536745808013, 3.09893784889033, 5.0606226277725455, 0.9641547204651602, 3.963640526639128e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.10555410442671942, 9.393291471690702, 17.732677332177445, 18.782358342898306, 6.174583442567382, 4.968991026811122e-06, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.7687146595571586e-71, 0.002385507287986144, 2.659588375883132, 5.070952483577059, 4.709589490950975, 5.556914075514442, 6.123599520298967, 6.325621284874217, 5.483474388886179, 4.239846303172271, 4.763559683928179, 5.293279497909737, 5.0418466407447795, 4.054780321741646, 3.361039572672567, 2.132532401363335, 1.3846745017286963, 0.7463128186120684, 0.7704870907318515, 0.8103869924134735, 0.7044980915566477, 0.7371272623357896, 1.4032740428711463, 1.857757722448298, 2.188075682164495, 1.418932490453301, 1.3390447486318067, 1.4751314574068743, 1.1959021106397358, 0.4691787041163167, 0.3206293719487441, 0.19058687573448285, 0.7249109165089216, 1.537138861331698, 1.6575421227787643, 1.3940056301915007, 1.4486915309755801, 1.755705682966223, 2.136568523194015, 2.3451402146253173, 2.277823103650917, 2.205261155896565, 2.2212245170362763, 2.1536600814221316, 2.1370913000238403, 1.8224144492652528, 1.4757251382134342, 0.39160991625962893, 3.033284876829967, 9.700217463308945, 5.55154464620955, 0.0006794981936210226, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.29588266313954037, 2.7381612317732476, 4.488141223894274, 5.340680729659653, 4.005572351025023, 2.381827240056978, 2.3860491902283343, 2.1821857928034802, 2.8786892768550842, 3.632980123484458, 3.7525048669982084, 2.991033544372442, 4.727773140264219, 6.389898617337394, 1.2081434367384105, 4.99315234311885e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.6752250388244647, 15.720054023041484, 15.544828053385174, 15.417352341982223, 5.991202725505218, 1.8114488818952587e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5292840335081372, 6.172765972274874, 4.960164037809648, 3.656783200153825, 4.3566025858354465, 5.518713803964204, 5.551036831224337, 4.47552776629982, 3.3051316529089405, 2.7904285985669617, 2.592981449567233, 1.751956548963122, 2.3304187621139505, 2.2031695440912245, 2.137680371864249, 1.087991705782997, 1.303766690988951, 2.2392504169648078, 2.612245689329029, 2.383201751857996, 2.7353375876487576, 2.999453580252748, 2.9248258739755784, 2.393680548877697, 2.6447116438394005, 3.038918527609212, 2.133732006187202, 0.8489856682857386, 1.3960872257573698, 2.4913180097457968, 2.6296400170767953, 2.452841348764423, 2.207527332488098, 1.6572578961589812, 1.4976609182878207, 1.2047173491455396, 1.198460699306679, 1.474099316469676, 2.005473320494744, 2.2937890336326205, 1.8869656167371431, 1.745396859794269, 1.361427855373222, 0.7062321546553427, 0.471186032067866, 0.061984273684780655, 0.29261020110516256, 0.38249483539312124, 2.7186511682239143, 7.20005036745556, 3.5028920339238, 2.252409877980743e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8826220110109126, 4.150420762380236, 4.18695703265621, 3.2260622132913, 3.205419996666606, 3.066244554038576, 3.253074276373141, 3.519767103020527, 3.2012833788435415, 2.811958125417732, 3.024528445905389, 2.9055574468252985, 4.805390424208099, 6.932260334572277, 1.4827273987174436, 5.667723246333874e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 5.104714412573287, 17.375175356297405, 13.837185163076583, 14.839281599829576, 6.212819247740299, 6.966431915695719e-74, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4480374393441622, 6.563195501949849, 7.114706705752042, 5.360822695486206, 4.329151432186563, 4.3049435026923675, 4.599930570460856, 4.535002411557855, 4.153080992291734, 3.3742230542215026, 3.176132237637731, 3.367597023653218, 2.5744104814011735, 1.5441426610374407, 1.2775997506107615, 0.8507557818675195, 1.225366640641269, 1.7042699466565523, 1.6623020843390037, 0.9494586971623562, 1.23555659430464, 1.7760931405078395, 1.9627255753362647, 1.9060892087984485, 2.268629329631949, 2.6795046638408735, 3.0655419628062788, 3.178410973928422, 3.368806443747019, 3.7524014133637706, 3.258410411645073, 2.6409582004746426, 2.3570323020430948, 2.006451233069143, 1.6714975403274934, 1.0964227946237912, 0.9949773595284483, 0.9773178523801427, 0.9238526153453144, 0.6908181421374735, 0.7194210345539354, 0.8273469307494317, 0.6627615714535295, 0.1868728041378951, 0.00023019424823989, 5.423139873104036e-68, 0.0, 0.0, 0.0, 0.0, 1.634755410435119, 8.947699456303098, 4.654147979979427, 1.013909302405293e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.40925543443322354, 2.749721022489794, 3.0456590952500306, 3.034701417701001, 2.657600716627769, 1.4499756942536948, 2.0815859731947626, 2.883700193290281, 3.1745148394204534, 3.285574136551773, 3.3109180797936375, 3.245668418313258, 3.5839405365461516, 3.3543330596330634, 4.809407245579678, 7.178609258848155, 2.1350120725792863, 2.2937765055103317e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0397291164798759, 10.392245064417693, 10.581259943691293, 10.231704256524665, 9.382849511640416, 13.236565488342933, 5.744705296020584, 1.7270650943741736e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 8.27423306618414e-68, 1.750882588219958e-67, 2.8745610371328354, 7.1842688036445566, 6.115621936881382, 6.689936251456174, 5.985525880591069, 5.29641537502863, 3.6921607510272594, 2.2557482431384557, 1.8593864715683281, 1.9454323095583845, 1.8823322593582361, 1.111252800605044, 1.2845679143270559, 1.22913356533617, 1.5101956872263713, 1.9013906652196653, 1.9629674118255593, 1.4365535020626794, 1.3342515758868245, 0.8697691484214012, 0.7406240409184797, 0.628937269662643, 0.6582147172167083, 0.7383612820785999, 0.8782535885899314, 1.4974724381037419, 1.6713418813285585, 1.7914690243004685, 1.6267115584071377, 1.43910017723465, 0.9353629291238121, 0.2052295024065467, 0.25632952253749863, 0.6281310108854576, 1.0620082473065509, 1.6572591238673482, 1.9730311646914203, 2.142502306524875, 2.085910366093927, 1.738059183138617, 1.876371557338885, 2.0188666621471754, 1.6256404424080415, 1.1759361538897792, 1.4307866693119564, 1.5369331343027284, 1.7355574660996496, 1.8195986407023526, 1.623662101455011, 1.9914351032257969, 3.3225204573338942, 8.180779089882208, 5.157605185846478, 3.085532787132189e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.084219416954113, 4.420860999453225, 4.060731794339745, 3.410960739715293, 3.5907380384078493, 3.0946092412313106, 2.1525206479350913, 1.3051279365882351, 1.987223270678001, 2.617752052056005, 2.936471262106352, 2.561900529606703, 2.9456922738327194, 2.5382846197185813, 3.146488716083752, 2.704624185317698, 4.337754550172633, 6.895437365282305, 2.795095861398295, 2.316466556698879e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.4917323873628417e-67, 0.028828471961706015, 4.1557994263840214, 12.447565411830567, 6.869283834602413, 5.917997574666515, 6.898315070662875, 14.144876483833343, 6.326587943915513, 4.28513492441136e-72, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.1581115231606987, 8.748643784079434, 7.637992930068322, 4.387609688052407, 4.519064723587007, 4.216510471379479, 3.5690179803734736, 2.6006847417651358, 2.581588520811934, 3.287265400755132, 2.9608779100813223, 1.761057195036301, 1.3720781427560382, 0.9054659053387901, 0.7931228603638374, 0.5032004090427478, 0.8405146302107056, 1.3874115190915859, 2.2793490478952663, 3.3574327498202052, 2.4307044411455223, 0.9176774447689162, 0.5083063590331136, 0.18321441277457584, 0.1672567277000505, 0.10113739399054111, 0.05315243267738001, 0.44899163818685395, 0.3104436269495636, 0.00843271884747665, 0.12576429236156628, 0.5484464980718826, 0.5924216516587535, 0.23517422481629158, 0.17419176424116145, 0.2073598908155283, 0.5929365040675663, 1.2166022615201797, 1.5893647588336677, 1.993213985821285, 1.8804544864238437, 1.2459838084865282, 1.392286782277452, 1.5675027415239953, 2.120796554965864, 2.2952531306651878, 2.6385607880752247, 3.2213641075038737, 3.3401958435220536, 3.12362700492082, 2.470101797371399, 0.9107141742345313, 1.575024688816086, 6.095071484558105, 3.7661232945725374, 1.923297977457474e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4483812554690445, 2.333099391140422, 2.2906150579840414, 2.862125117619726, 3.9949723792966694, 5.232527104220935, 5.458421977760736, 4.4152683151880865, 3.580609842339996, 1.8525538311247516, 2.1073092488880008, 2.353966656532421, 1.9774217175964282, 2.14335180843824, 2.4359394699798855, 2.8056376195095822, 2.3997921924514145, 1.8579702546796852, 2.9003566234929536, 3.1999875549922905, 3.2325278592868614, 2.1415584191579597, 2.9312995715745274, 4.3525069878128875, 0.8620258003393246, 7.334502237676635e-69, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.4250687192433276, 11.40127156486983, 8.764781895890565, 2.7717378159483275, 3.3046384103579527, 6.225970283247136, 6.701643251763244, 8.419182268789882, 2.4677873694582217, 2.054323199839025e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0018934612475296625, 1.2735598388053546, 5.875538016844587, 11.475187263509724, 7.573480893816452, 5.063671656681436, 3.8839546028214045, 2.204905345485031, 2.212438714486794, 1.7324709817703479, 1.1498410038507814, 0.8147762668599832, 1.4391230583569268, 2.0542580445504086, 2.708774555065375, 2.4663276427245364, 1.3560644101375061, 0.7190199801154904, 0.9255752216655679, 1.1339872152513095, 1.3940779756239863, 0.8531523837803867, 0.8188500769324527, 0.8296683321450224, 1.006806711499749, 0.7992893829332957, 0.44639424610126355, 0.16583774520972838, 0.061042517022294795, 0.5172680380383099, 0.7744329318686596, 0.5923275156743699, 0.523730542091144, 0.2660647655132067, 0.6218206271690896, 1.0845039362939133, 1.0125616620251918, 0.7349172732760998, 1.0452823034297722, 1.729905870355438, 1.7409861073355302, 1.379510148608972, 1.230831916527734, 0.6495011937598214, 0.8473682773705526, 1.49875497938865, 1.9276074404672414, 2.1878746636099464, 1.59987693691086, 1.1666135633941508, 1.7919566624247096, 1.900391373509379, 1.8329889242955346, 0.6313611378573114, 1.0588648876908024, 5.8401756026180465, 3.847000300455875, 0.07709797864681267, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.7446688614709842, 7.8162308497681465, 6.952732110109139, 4.07490280373537, 3.987757051695567, 3.7423021605738995, 4.514739437609251, 5.489597303680057, 5.334808862977525, 4.3154192627227985, 4.005164858908984, 3.531132266952582, 3.429974199936524, 3.0579484340023697, 2.5766924666697832, 2.5395211766914514, 1.7664960699935506, 1.1882435287905224, 1.1949780079606995, 1.3784700381131785, 1.6980229814866021, 1.3497410774904353, 1.558793599597493, 1.51437635859169, 1.9579900556548182, 2.113397075922933, 0.15967201369456152, 1.7769027061987367e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.348201523682519, 9.996099707626001, 5.92726843183442, 3.634159477553581, 3.7872597261068677, 3.8019046515817223, 5.222825007832, 9.852385144144193, 3.7482796698220824, 2.939317779107592e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.2178577647705993, 7.360422360951816, 7.272646619523812, 4.399508610391933, 3.7501364133905923, 2.943218371563731, 2.206237746282355, 1.710258979256892, 0.9197424896447046, 0.2025200258675861, 0.31126253200114107, 0.310455117784759, 0.6246250776364981, 1.1396135057011634, 1.7641465441201944, 2.3150913660590646, 2.69717281529212, 2.646165442853899, 1.753204552302364, 0.868601189358742, 0.5397430497762343, 0.12448340980023431, 0.02292368360043895, 2.7838043801883403e-67, 0.29400161962621496, 0.6503546957766417, 0.9396158112341624, 1.2006335216941721, 1.3220445691309237, 1.0574561495298127, 0.8922279207072279, 1.1730920981449486, 1.6228859849508268, 1.7626781326512742, 2.088770748290031, 2.356406057402637, 2.206316718621167, 1.5351223848384166, 1.0350746759700655, 0.7172856244835657, 0.5896188584164044, 0.4240471517722746, 0.8914198430637867, 1.4683179132685495, 1.2338356527254888, 0.8263674372570371, 0.8132119151497506, 0.885054081119975, 1.2564412075153655, 1.479156923887004, 1.3495084152545047, 0.6482156089973934, 1.493058221211868, 2.1486239463588532, 2.7213183040487507, 6.5254415423098635, 4.531537340392106, 0.5507538130643752, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.09667495293820139, 2.0677088166930844, 5.979861054805951, 8.663789677064472, 6.657714797661868, 5.823317434762657, 4.283789361071285, 2.43048476452401, 3.0671760394126437, 3.3696283082028913, 3.4946301550466075, 2.28248387376658, 2.784823402710245, 4.207049417833332, 3.6018809148868627, 2.9200669647107134, 3.3701097450111774, 3.276968104069965, 2.6450842653680553, 2.2677277057173484, 2.085108474501851, 1.238727417394557, 1.3496203122076764, 1.6140801461978214, 2.0602581999410177, 2.051673079712387, 2.2073859944416796, 2.517583481185511, 0.43257689810184274, 1.5106222574084336e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.14707733210209373, 7.356016801141095, 7.160369262028553, 1.8854043810279109, 2.698028042559386, 4.787556680996715, 4.746845760601218, 3.450119647975555, 4.223394704898965, 8.234482709496888, 3.365433823574918, 5.2677319024700375e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.40231175553005, 8.800692578099415, 4.452125716628018, 1.0370901482599635, 1.272180470801473, 1.1849233926170797, 1.3723800538702022, 2.0700304590041583, 1.6693713414625222, 1.34001744122601, 1.108608360084773, 0.7288148541802322, 0.844183575714851, 1.0758149446715493, 1.4883616751276918, 2.3624662947715933, 2.305484841954751, 2.1647096760114124, 2.2457976907664943, 1.6499822136838702, 1.2019649257183573, 0.6562377049691328, 1.1504426452563763, 1.4987631520600644, 1.4539488889097498, 1.2563845520062955, 1.2600663378488122, 1.0820576945889684, 0.934246656765513, 0.925025491600536, 1.287928682822681, 1.6360936101046377, 1.945732275146156, 2.0835492041953785, 2.4359387257565146, 2.5397651045882554, 2.0022468206523314, 0.9035746886957128, 0.6566283873619341, 0.9229092842634259, 1.093956406866937, 0.8842000490999489, 1.198274869595707, 1.3834123038304966, 0.8963183796607019, 0.5876429553000015, 0.8988084508687599, 1.0468021922002322, 0.9354921762189328, 0.4184915607968378, 0.680441770965956, 1.3014151186996656, 1.913027035995185, 1.3013637136793932, 1.8381394231916062, 5.841567720001194, 3.3137489572343526, 2.462641548585797e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.507350394998923, 10.253571388198907, 9.022332676988526, 5.61576602041265, 4.298403358839153, 2.697000141621686, 2.724823388627783, 2.8243792546505233, 2.9104196294671425, 3.0548093977870394, 2.7353813570170047, 2.1625174797666205, 2.7511306345113553, 3.339203740346889, 3.0097353005743486, 2.7692464366243854, 2.8469546273445303, 2.2452832172441504, 2.0020471060690994, 1.8424841126090996, 1.8704313944110709, 1.8727974547555846, 2.3292735117047982, 2.176610553988226, 2.561308684664837, 3.757000472726091, 3.4173502781701615, 2.6201905507742254, 0.659288014032601, 7.762667295445003e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.53340287897322, 10.475219463194264, 4.736393979191234, 1.521034992428568, 2.3986983306173357, 3.176875010794916, 4.046447343355396, 3.143819842195228, 3.3477047852922084, 6.748069443288443, 2.015677467805986, 2.5064400535709907e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0550641324579288, 5.890743537085882, 5.298889181517609, 2.7886366797616233, 1.8683659847013132, 0.9319233546381476, 1.3446669521914743, 1.3928182511610885, 1.1310635372647084, 1.2168205405305486, 1.2190396811906936, 1.0849484172768484, 1.2335027826639475, 1.4252386395469898, 1.5556622018618924, 1.6911400428145953, 2.0388016031415788, 2.2880043943050765, 2.0383029039739995, 1.992742433914728, 1.9649728233673613, 1.4391487998369143, 1.3978340684462296, 1.3492428170522999, 1.5239936124019096, 1.42412879047248, 1.7688246459403132, 1.7940678665673317, 1.4316272345877792, 1.1267867062603187, 0.928902882201843, 0.859947703936573, 1.2263562783214752, 1.1558980781211545, 0.9594019094971742, 0.8164258126952042, 1.177285615652238, 1.363286502762108, 1.7247713288956135, 1.8179472328667003, 1.736124137863854, 1.4376847616227337, 1.481841196874484, 1.8188603018565033, 2.173821742028167, 2.3184761019834355, 1.6447301870795314, 0.7663311201476972, 1.1423038221548723, 1.5094632944488353, 1.3736031195504808, 0.8858982027399556, 0.6205060298579532, 0.27190306067110726, 0.8316255015201115, 1.287245033164254, 1.6565802705475932, 4.218911674866831, 2.760492252605573, 3.162796313235588e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3708927941487481, 3.4718663275130126, 7.028661996625999, 9.494959332646943, 6.469683062067816, 2.87481530185687, 2.371436497073219, 2.4627426984480394, 2.8038919241180906, 2.439874278501989, 2.5290793789295662, 2.192100110418224, 2.607948960121931, 2.6416734901550285, 2.603073735984495, 2.511189043912111, 2.2290099358133943, 2.128637493588542, 1.6762200688390294, 0.8815307361773108, 1.398557754118329, 1.7376109913445958, 1.8853222113961152, 1.5573660058032743, 1.8453418571296112, 2.0211603891677896, 2.8494175265821156, 3.8208669763482703, 3.6041771927275477, 3.4334209663061444, 1.250373781869044, 1.7677023703719338e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.42453603711303245, 6.515010441380639, 7.122352800928638, 4.138598021393193, 2.3635372031731663, 2.856656663263962, 3.437681906408571, 3.949261469257692, 3.6082977537775065, 1.8552004901089845, 2.877016434895495, 7.103635422532761, 2.175440448860172, 7.062533229275567e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3376106965845338, 3.0123896880821945, 3.7517793360895126, 3.964018565036568, 2.3061799546035786, 1.388988543848427, 0.7755320063266744, 0.227390274024458, 1.0818607853709636, 2.1995451143780542, 1.7686648362122384, 1.1553539530441412, 1.460092587695172, 2.470724982613447, 2.1813599684042515, 1.3322284519838377, 1.32918468722211, 1.5144139137561439, 1.6587855169535857, 1.2374291083133926, 1.8031804092824046, 2.582202626264518, 2.3540339636785035, 1.6142464438713091, 2.023407599125676, 2.2801078914710615, 2.3819567621315088, 2.4094860697273504, 1.9272115652885446, 1.613951415265774, 1.1512698073804728, 0.8192688930140015, 0.5561212970679321, 0.21602028481464775, 0.4048703671362688, 0.8932238297019381, 1.2099759246116406, 1.0150839796529567, 0.9829000856648271, 0.6557299433998196, 1.0220229737935824, 1.7095319474368722, 2.000026231262396, 1.7750825508676513, 0.9903032957118398, 0.2311123619894042, 0.5043778763224651, 0.887895182528414, 1.1193873924867148, 0.9600435202528956, 1.1672481682026614, 1.0544128128981498, 1.6383575075997356, 2.186050754245116, 2.517686378816734, 2.2417545896363578, 1.9581551984732783, 1.725345945396839, 1.805814321484732, 4.824199870428458, 2.858634362856037, 1.1823340216984008e-13, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.8047725690348813, 8.480574028733429, 8.852170763744653, 7.2587331200953145, 3.8928039896246815, 0.5677418370951592, 0.7819448394592463, 1.1145431483360113, 1.1698522645934304, 1.367149492057763, 1.8573362686464776, 2.1045143634559196, 2.317641936217342, 2.5595697965176356, 1.9664730403858357, 1.7654403797065612, 1.7519840040432086, 1.7035276963639632, 1.5141011638617243, 1.773448615862435, 2.0198651153992273, 1.7479047101232936, 1.9260126028871696, 2.0071398994559786, 1.6578576858438652, 1.3633675117308144, 2.583825779188885, 3.53010727232585, 3.579941723999184, 3.940873924173104, 1.7075203219176274, 2.7669167051538922e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.639341217920987e-71, 0.0021642173578456103, 3.1433062393038114, 8.986582515367502, 5.333130521496287, 1.8815296273169793, 2.4847161314867208, 4.087752532505874, 3.400794936848243, 2.401489242550511, 3.2896779230688935, 3.148604069878175, 3.8610878640907345, 7.030973094338208, 2.6768893093623234, 1.7946150457712275e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.584560878434267e-46, 0.7728598207496908, 2.1612309454781666, 4.841488914538786, 3.567848344104064, 2.201994797387897, 1.8388134469214492, 1.6025713626100355, 1.074437478614584, 0.711714318996215, 1.4249847590136255, 2.1359921487436537, 1.8444665246433942, 1.4325907511533984, 1.5500710210401394, 1.6656491339347212, 1.6419932032732163, 1.4938597651482866, 1.1062960557200228, 0.7201698607742948, 1.2458193446420864, 1.7210003393589801, 1.742777499234819, 1.4807985872412388, 1.7933953899419066, 2.635558683209993, 1.9711608915213361, 0.6801076716107133, 0.9603403406825386, 1.629513997785935, 1.8996775667529988, 2.1694717310363245, 1.9651058408704216, 1.7341904843379439, 1.3246440892182818, 0.8833308557454735, 0.8828015476465225, 0.8899608727990795, 0.8602858997992371, 0.7393088964859231, 0.8216439906184156, 0.5634867700448467, 1.0003416830056864, 1.9540410484953696, 1.7702585000936324, 1.0541636017035358, 1.2360228006905913, 1.433768410317171, 1.6054127521865666, 1.2271408281266218, 1.3898066234535378, 1.6095159128681757, 1.647037685177466, 1.5195704267893149, 1.8261917933731553, 1.6969556562696795, 1.7805045297084376, 1.794343471510743, 1.4857240999845658, 2.2378920331803442, 1.88431242412571, 4.651856310923051, 3.2106434396508945, 0.418584878282914, 1.0167622753978247e-67, 4.766874511811567e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.015241283072566836, 0.8505907483396733, 3.8924667169845293, 7.7610587919807585, 5.749313204328757, 2.2857354776329544, 1.4649835711862238, 1.1047197751253321, 1.531150635419408, 1.2753661431279397, 1.428072705762645, 1.3180479768934674, 1.4532989587569887, 1.886573609863845, 1.721898430501426, 1.5332394873581165, 1.238664528957102, 1.5481442670113807, 2.0209285514292787, 2.2807422779283684, 1.9053200312502128, 1.6318994295434095, 1.7525167382905806, 1.9226933291138835, 1.7032373757765527, 1.695743363356783, 1.9215189076540042, 2.115396053596669, 2.532016058770651, 2.3903526557219834, 2.9272516521459693, 4.06763966246308, 2.0330371004674817, 0.020791864361152657, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.7966611284324223, 8.220529006613106, 7.538785362167403, 3.7567430727651754, 2.6146762253306974, 2.172788391254471, 2.504283174544085, 3.20908603982231, 3.226042514769688, 2.71408629828899, 3.2659100631775715, 2.924463398683784, 3.6582404691790202, 6.459818974909467, 2.8982979744180284, 1.3014009160993378e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.6651142670277501, 5.323314653877787, 4.217131271689368, 2.8820841803863573, 2.143860403500085, 1.6475104569181553, 1.8048273400438575, 2.425137161836588, 1.7967232404103584, 1.0675296360722228, 1.4567822792787979, 1.6304384309478905, 1.7268924050729453, 1.7579114402207239, 1.468722692486736, 1.6487494712192188, 1.116158408434842, 0.6390001009345383, 0.6545581792161101, 0.7825235637660768, 1.022201343497727, 1.1717850455766552, 1.6815539388636012, 1.912148980483849, 1.8725834236320793, 1.5833994576683494, 1.3885114653799633, 1.2815440346941074, 0.9624217072180272, 0.726173680357963, 1.007014372654126, 1.350378231481514, 1.4169905835888699, 1.0953904911396108, 1.0917675562018871, 1.1965401974977254, 1.044421044073843, 0.9283587116687073, 1.2627282643348394, 1.3198800701405986, 1.4735401135936286, 1.0169543949024415, 1.085284445736093, 1.635427338370178, 1.5779119422405898, 1.5897982165643185, 1.7582149191668037, 1.3876802859483774, 1.1891455249614324, 0.8700306546616368, 1.3906718971067136, 2.060415964758832, 1.9693995748139628, 1.5855965905675617, 1.568846577657098, 2.4611127821579117, 2.9260129440803126, 2.6960499480254754, 1.97477969739181, 1.737695533620581, 1.6940970283030907, 5.170065135031621, 3.938546579229296, 0.799494556176402, 2.51583837951698e-71, 3.806404075079195e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.9816324806727152, 5.478624946927312, 5.379843421944543, 4.261323911162037, 2.4560723258574058, 0.6142240712535774, 0.24486331833750175, 0.016534591678283528, 0.2505465749874567, 0.6799219761674955, 1.0637256425415131, 1.791399777408742, 1.4769215505476865, 1.2487629710370953, 0.8433235552354432, 0.7603339640418518, 1.2589275567160172, 1.7585396074136952, 2.198365678476023, 2.439840389115716, 2.244067650479579, 2.319010874642359, 1.9364868936978752, 1.2828463749191457, 1.462148843280886, 1.8421478816463974, 2.000678047500571, 1.7696380751740435, 2.056188178095354, 2.2195451724555824, 2.7262809305415345, 4.011781772317647, 2.901926981748204, 0.16583645874813957, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.0538765974122966e-67, 0.9427152120910165, 4.847490116346535, 8.542094039168887, 5.839289481862636, 3.2766694472741165, 2.94908959841473, 3.0530373944186664, 2.9213072661807473, 2.6349282028686503, 2.9396907584683163, 3.708114151394412, 3.7024499818699184, 1.8732669957476134, 2.7107957804668246, 5.394200011944349, 2.4248457113017707, 7.681479412232562e-69, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.771677941417338e-67, 1.0877895327360108, 3.2172873447895114, 4.790265582185441, 3.3233970714678804, 2.785794682982271, 2.242065523012627, 1.998070408695881, 2.189283045718696, 2.5778575718222783, 2.2813425420338405, 2.001245986384731, 1.838155585384257, 1.1867007914760421, 1.5874002113258854, 1.9527454775841449, 1.916481862385865, 1.5920467117189787, 1.0234110523340547, 0.783541937840937, 0.36248466491906584, 0.07798936547659707, 0.5306635441573384, 1.5261052642244977, 1.530022692988723, 1.48749472711701, 1.8299127365592085, 1.809750511989705, 1.0726428077164343, 0.27034233362600446, 0.40286603268143395, 1.0738382647566738, 1.2410588647258578, 1.0377455684784422, 1.6399557768696837, 1.8709224882241529, 1.5898463153780682, 1.0365237736419317, 0.6876046170990016, 0.6327046252008586, 1.1472746108580054, 1.1889045259136424, 0.9074132648328295, 0.5572008715546559, 1.008234934089515, 1.5227403269636994, 1.8295221869079938, 1.965326766821832, 2.037329169742307, 1.916676272457508, 1.54065223610543, 0.8413400859619777, 1.2916728968947524, 1.652501489384818, 1.8904742032557351, 2.358212547267854, 2.2732289252645046, 2.501846814713872, 2.328049602318117, 2.225879692207755, 2.4406232567685606, 2.621070154990562, 2.040336890063429, 4.226912453425541, 3.6355431333482926, 0.9578016209212059, 1.174587467624122e-68, 1.1352369669863968e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.35016350775268634, 2.222807454984732, 3.4273620122339707, 4.530901933412679, 2.949933502592117, 1.5974439177809927, 0.6839934145081408, 2.13136421970678e-67, 0.0, 0.0, 0.5244195549802413, 1.36361974063243, 1.1592094134866784, 0.9373030347396458, 0.8037322196355525, 0.9021730576073992, 1.2531605022673489, 1.79091221506701, 1.86870557753997, 2.083300738620494, 1.842763735158087, 1.6681335312813559, 1.5920755913207927, 1.8094904033978452, 1.854312757714979, 1.5727610414438118, 1.4917457971478711, 1.2539615876903696, 1.685768071621169, 2.1267629995136303, 2.079425287541895, 1.8004066972267196, 2.1763745381176705, 4.495557063749004, 3.1591342928454793, 0.06747954246344534, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8495372641800856, 6.493943608694281, 5.997407739597804, 2.8216232239242913, 2.5253593027091625, 3.1445732023312303, 3.5326570424791157, 3.1829381453519545, 3.053769382395558, 3.11685158775623, 3.2644116831966272, 3.3292903783058705, 3.2369831530782136, 2.344339595311112, 3.4187356719505715, 6.321591136766983, 3.0687169958106466, 1.553982921209952e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3928741312265629, 4.076816601669236, 3.8880162755504557, 3.3597961493574644, 2.8409790543392432, 2.620087123032647, 2.3175784179944827, 2.527989414375398, 2.1329275894965036, 2.0942624208956317, 2.368931713888415, 1.9756157159714007, 1.8034157305576173, 1.6121706090804224, 1.428389263825025, 1.4906615750742844, 1.5873121987133345, 1.6660941023160944, 1.2505372129637635, 0.8792743099536757, 0.44017713681013504, 0.3064477653865971, 0.791092380642354, 1.139746113554807, 1.219783969332866, 1.3763247029530703, 1.4873853950201834, 1.123845286784686, 0.8221959291515759, 0.5501370946834392, 0.4615353982831607, 0.463946510541863, 0.9735426585739901, 1.3652467039883618, 1.5331556461561036, 1.6505353521566235, 1.9334937561680476, 1.9007161145044762, 1.3725099333444177, 0.7037344590087038, 0.9390442521800288, 1.286463400665582, 0.9870513581023523, 0.645933450555404, 1.159235083343674, 1.688456087027589, 1.625327960709967, 1.2962139521620344, 1.5404758654882613, 1.8293228968730233, 1.8971179047699849, 1.8948343255624565, 1.6754061838925196, 1.1764876897263008, 1.399371877580279, 2.0571137467641165, 2.141995617285147, 1.9282993266284763, 1.883126228829056, 2.073640677079368, 1.9675193191552722, 2.624113434603842, 2.897712300341496, 5.4397231381372535, 4.723668271356075, 0.9717902958346123, 1.6155540650682721e-68, 3.515636897497311e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.4953584554015446e-71, 3.238413624939097e-22, 1.4693220183886666, 5.0771232194174445, 4.4574406708161405, 2.8119337375734546, 1.3494790569211688, 0.040905666797247164, 0.0, 0.0, 1.1243929448300199e-70, 2.0966131141571136e-67, 0.3673070236820877, 0.5644831821366694, 0.6596271264263578, 0.8903820828794586, 0.6058475514869635, 1.028892494432526, 1.200889553874518, 1.581103116336763, 1.8235781499370773, 1.8002313917873494, 1.8166175844513077, 1.6273033621420296, 1.550743723337348, 1.3820273537300096, 1.3408320151725661, 1.3231597077808743, 1.3466377965353473, 1.198059826230974, 1.2996834104569643, 1.4430833710463418, 2.021022776274606, 2.3848726762029315, 2.808386633151713, 4.896198014604636, 3.1931131614010724, 1.195758423195087e-06, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.017082624286805848, 1.196651821512674, 3.6047611088434337, 6.3112177094890285, 4.012552557105664, 1.8390979640398655, 2.4669574667100846, 3.2304796258477495, 3.454524758908576, 3.4924483581829833, 3.4623864207027424, 3.0011347947016844, 2.8837418950079297, 2.9406146765737162, 3.536628917658291, 3.0237510499178057, 3.2599917864793184, 5.656464893013492, 2.857270414453751, 2.7093926499470858e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 7.122292966256388e-71, 0.16095457410081426, 2.45616835389184, 5.142788578051295, 3.8236208231282944, 2.8711132025262174, 2.417250791876441, 2.397075723682974, 2.3184016816205855, 2.180233296008339, 2.206141423190516, 2.3233639576808542, 2.2377390268042205, 1.6551502848693076, 1.738606457786375, 1.2090650124237214, 1.117755176953338, 1.3308707454365418, 1.41475534798316, 1.2734828886951988, 0.9031440250228719, 0.7900918916628861, 1.007108162129967, 1.3305951618980458, 1.3525232202169377, 1.1420941161762954, 1.321842814093145, 1.3306652927263372, 1.391877488146065, 1.220599866781015, 1.0167620590328994, 1.1702223413840471, 1.1185513415856718, 1.173135481131581, 1.1758125738152216, 0.8813607296238821, 0.8360981130874876, 1.094112516581447, 1.2026035819265104, 1.2263660473418128, 1.0401263937612981, 0.7659468243879566, 1.0656550943176626, 1.2076117772062958, 1.3433565290043248, 2.106292523589687, 1.616839553352989, 0.90372506559277, 1.2256915483087596, 1.61371971252494, 1.6655315934281703, 1.5715503237609028, 1.7030634442114803, 1.8329863419767776, 2.035438523385494, 2.0862850252167533, 1.7072904082561422, 1.1718616983058752, 1.4191054527680222, 1.590426865315976, 1.8405658399461942, 2.1636774414300817, 2.1245901073622377, 2.518534607771983, 2.6078469293281614, 4.969565988303884, 5.205433096216439, 2.3967723072865397, 0.1217040035185315, 1.4929756000922349e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.09393000283368114, 1.4714689197394506, 2.9222988003169945, 4.0304829270281175, 3.0310288952148454, 2.110453720292881, 1.1402488717294545, 1.446050080531516e-52, 0.0, 0.0, 1.9248323521582258e-67, 5.957154460152748e-71, 0.0864709107251338, 0.5849832448581118, 1.051756241685112, 1.2385368995256272, 1.224371070901725, 1.1144381906206604, 0.8455236450050876, 1.1058101166128296, 1.0183804110752703, 0.8451000331844263, 1.1253724229366213, 1.724392791902801, 1.3739127437961685, 0.8431886898311092, 0.7816869127541537, 0.9232186345905724, 1.3166400663494784, 1.6989946136275194, 1.6810348847049141, 1.734860875591849, 2.216928125574725, 2.6279345108299736, 2.7266442942669187, 5.000890497118235, 3.9529769602509646, 0.9629509696688707, 1.1842380596498515e-67, 7.756657478870424e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.006086680788359777, 0.7679115742467992, 2.2377664891019435, 4.823952704173337, 4.523757181841802, 3.3630369613092626, 2.5405931029809494, 1.87003002364294, 1.750235828920509, 1.7929647007305363, 2.690389061999454, 3.225801855078828, 3.1874336345797616, 3.1853797406574955, 3.4876326369415125, 3.513559555477187, 3.220063369768255, 2.5783736092237177, 3.165199145992176, 4.348460049979849, 2.3980806046052408, 1.247948437644168e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.014679613940638492, 1.076812996538834, 2.9255235696172264, 4.572570334662544, 3.440023852317836, 2.408328580699859, 2.3210278089966465, 2.5823508959798716, 2.3743709484165407, 2.5860252826387295, 1.9823605863095963, 1.1635825155665316, 1.2928778969865249, 1.7743834712346143, 1.7027790743448037, 1.316525441652857, 1.2334373791084232, 1.396612938967806, 1.5894417067929822, 1.5149643850609351, 1.4802804658160227, 1.4653044825095662, 1.4082028184944306, 1.4266840830578218, 1.4519822968761673, 1.4318808502469125, 1.447520952693381, 1.3285621718105176, 1.2736892601424756, 1.1322051062205816, 1.4061817557230825, 1.569278124598, 1.1313272567676904, 0.5681939143008528, 0.47343285963870585, 0.45435678581214134, 0.5983619494109007, 0.8020610696485733, 1.2005930293085498, 1.3246402475716081, 1.1355288461061406, 0.9038828217978825, 1.276349099082438, 1.379953749726667, 0.9192178103092061, 0.9917969345730313, 1.0555432010139754, 0.981966876931839, 1.076352870530073, 1.5839803297708954, 1.7749465991102085, 1.8835450358233317, 2.135645455499798, 2.2072992101641375, 2.0625759992505124, 1.8541117973224033, 1.9213877041240721, 2.396374794430031, 2.2558044627405707, 1.7695118466077133, 1.7421169087010782, 2.0606877040070373, 1.979589136505652, 2.972267171246642, 2.869171171096255, 4.241600068604612, 4.5017051846743925, 2.7628235500606166, 0.5971461860976355, 2.1266344010711203e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.17119975980541824, 0.7751118250310043, 0.4753250644900078, 0.33001391301610283, 1.3840632455867308, 3.2105926024797213, 3.523740230791205, 2.144911295422972, 1.7197188303675972, 0.9765949789636039, 0.1806234902175028, 1.2401008280279765e-68, 0.0, 0.0, 0.0, 0.0, 0.30049038191851096, 0.8429429603936889, 1.0814360284013134, 1.4034240173860013, 1.2542098933727317, 1.3855241446033375, 1.2271104554930048, 1.1458710035221884, 0.9401662758812144, 0.7716122637614262, 0.6959417908876873, 0.6323017892784186, 0.6443370232458143, 0.5299560342815859, 0.7899780928990232, 1.2209744597896588, 1.5553886331167774, 1.8635224913125512, 1.497815270801084, 1.4049547238654583, 1.71029826582334, 2.0385193965978488, 2.8595825470822547, 5.343595828777836, 4.422047143391467, 2.0069267683948198, 0.13138534420437864, 2.1960191316877764e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3912828649937552, 3.829000862329849, 4.073855603554023, 3.0947640069612703, 2.9158826879793764, 2.5032223315094058, 2.378979748579013, 2.0112016832553223, 1.6981258177875134, 1.3637659104404207, 1.6916969360763687, 2.0790175552068746, 2.870916465195478, 3.156466837522899, 3.502111184462265, 3.4830769757582516, 3.4814672940503897, 3.264064063377191, 3.567633083460592, 4.304740686528078, 2.230603478769865, 1.1177794164285213e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.569380087102447e-67, 7.216687913644878e-68, 0.24212944295256023, 1.4470333513783231, 0.931084839635421, 4.358560342908302e-68, 0.005053484837675093, 0.23653298871629946, 1.7547520745347924, 4.221653525236491, 3.392993891530068, 2.7330056994641296, 2.4431019239443827, 2.2803102230842, 2.0205618411083037, 2.184257556314151, 1.6319533388373344, 1.12254727847818, 1.3107421546919795, 1.3378396518138658, 1.3850445750290987, 1.2010100029424962, 1.4769679104166613, 1.728483440668299, 1.8590350486338139, 1.7382537528249031, 1.815029201011896, 1.7687843757450992, 1.6527408638305587, 1.5848026138897353, 1.3858508269919554, 0.9850783892683381, 1.0612616981706111, 1.4299760016147047, 1.792815935009017, 1.75915998124907, 1.722711325131968, 1.6366614965818371, 1.066977173145517, 0.4967465825038744, 0.4994169248835192, 0.6615712244550345, 0.6705806944333723, 0.7411086571700167, 0.7909705582823143, 0.9997739919583637, 1.300495149587789, 0.9908331677627444, 0.9635359592545321, 1.0115506880631528, 0.8498732970315928, 1.1720101071796876, 0.7287318124298601, 0.21813301706519272, 0.5091658959760856, 1.4803242676464379, 1.7171731779817492, 1.9431314583190584, 2.030488288319475, 1.7155639365228126, 1.9435236470460637, 2.313580337938234, 2.2392475627853514, 2.030554537192316, 1.9254580890224702, 2.111920117755517, 2.1998612399695503, 2.444010549534724, 2.6112423533688798, 3.1751507884740846, 2.8224735241909826, 4.15054802204628, 4.644408173453712, 3.075170243391767, 0.783173605355362, 1.4584876740083316e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.006783615006734911, 0.36145202845752067, 1.3083657527218406, 2.8438651373008383, 2.3451716142464107, 1.5507867741275874, 1.510654548547791, 1.9760309428471743, 2.248630136201669, 2.105760726580286, 1.2655496310487848, 2.677922156666348e-10, 0.0, 0.0, 0.0, 0.0, 0.10327099943389673, 0.46570236514728336, 0.8879628057270885, 1.1173509004232898, 1.2565654799688133, 1.4370973542560392, 1.3835342911652901, 1.2782005073036231, 1.0324656083111137, 0.7307221460319511, 0.712335868801123, 0.744036855171121, 0.549934457014789, 0.5725141274544967, 0.7847265482462404, 0.8279401552572416, 0.9433277156892963, 1.113927064345276, 0.999852305144092, 1.2810857812695673, 1.4801699488461963, 1.289903817706545, 1.2741652966332282, 1.7395965490237728, 2.3184514160721506, 4.001759722610188, 4.358254902656483, 2.9807163385659265, 0.9246006348827365, 3.3375566717267646e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.030976644828337507, 0.8313142906836788, 2.3134740840034738, 3.9758528032081273, 3.3213815097838193, 2.731928596553246, 2.0616752197404367, 1.3342171515034806, 1.7291821984555469, 2.538430483583909, 2.000637242644089, 1.6940371371456422, 1.83019269374563, 2.0466349132449437, 2.564419019618981, 2.7242468559542345, 2.825078090127647, 2.3980436838724586, 3.0304897261453903, 3.4184434067530134, 3.948027308215174, 4.249745194920251, 2.3140449102448315, 0.027573271232449237, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.24276739684925364, 1.8798006580723836, 1.420267044159118, 0.4559738236481259, 0.05188289314891481, 8.785994514044519e-68, 0.0023934454166705255, 0.6817289867760792, 1.97663794294931, 3.0548506520483585, 3.1996378384093447, 3.136417874840447, 2.7401030114174887, 2.0743771769940764, 1.7400651248448327, 1.5683225295197332, 1.489836153687122, 1.0743929951423183, 0.8851126238119491, 0.7898576277198686, 1.281512726198585, 1.743510621183205, 1.773609911635731, 1.8580440263542783, 1.7400877690330532, 1.5980424297268314, 1.9723677959023576, 2.3415470776390066, 2.2108048802620175, 1.7186050121841276, 1.4403079769754754, 1.21802826642039, 1.2132280058574594, 1.1515952290365163, 1.4113606251786592, 1.499122771662087, 1.858188324083713, 1.8898327286729142, 1.3793222557491305, 1.0391707711644358, 0.8878034123060985, 0.5028049854131531, 0.5088133716452745, 0.29054513268897963, 0.6069835301481277, 1.026945408908034, 1.1861876339600173, 0.8642623266132574, 0.7601145475874205, 0.920480837717097, 0.9579401096090265, 1.0956849575553775, 0.9761792858985565, 0.5964939756978573, 0.47352899628236855, 0.619720773282225, 1.0532353167605493, 1.563405525712426, 1.819650420084372, 1.8606812688256156, 1.8998185428204692, 1.9770328279506089, 2.0639681263512557, 2.1772046952910387, 2.3683174660102537, 2.6352916197144083, 2.7957970446318683, 2.955996288091697, 2.6360274317121366, 2.8016028203218326, 2.5218903328723172, 3.515067569657745, 4.875181633282466, 3.1516123019137012, 0.6410920601565842, 1.58982410988415e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.7051261928859311, 2.7876804289198844, 3.527866958734208, 3.0855703477714655, 2.119151108796359, 1.3451881479741132, 1.5241763956078245, 2.1216726509610595, 1.6915716581081597, 0.49684825070370664, 0.029557434794531767, 1.2912095529335693e-67, 0.04951220987195826, 0.08011644245439076, 0.0594212427669385, 0.037871323636765375, 0.40818724629057, 0.6464686517793474, 1.0063261585457894, 1.110996960096955, 1.078716389105594, 1.103858910855493, 1.0660479394121012, 1.1698718630114513, 1.0466514463914791, 0.9018750653058873, 0.8914504573318851, 0.6243954027125973, 0.7732061180804273, 0.8852588768505143, 1.263310240098292, 1.5542134533280318, 1.0361167495176602, 0.2674245027675717, 0.47013021408918476, 1.100007428103936, 1.475440735723069, 1.5759284485921512, 1.4439776766967185, 1.292263401414914, 1.6741824878944414, 3.245297745643768, 3.9105202433234467, 3.252870450822698, 1.2244660455180565, 1.1317411607192703e-72, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5883394109424103, 3.2367836927278972, 3.0453886468254865, 2.1728987442111816, 1.8135240267241812, 1.6701757482974386, 1.881549576568787, 1.9470607820335886, 1.8658343514662334, 2.066052571172804, 2.1186392067694584, 1.7797557183451005, 1.9489229178635128, 1.9386513532550822, 1.8768056171838907, 1.7177474649443525, 2.0545984095702465, 2.465198878860079, 3.0702211586140606, 3.4667949140999923, 3.765615743959202, 3.121474987674503, 2.6372929898347053, 1.8212739646759388, 0.3769130295194465, 9.826312228528276e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3993162321084043, 3.192600233533142, 2.6219109151355866, 1.2911182870359426, 0.33854102076988113, 1.4977523156898185e-67, 0.06907960322017548, 0.6856699900084919, 1.9007065822379445, 2.5711920154435575, 2.9708389790790903, 2.7401645787841176, 2.180703294266678, 1.8614299985769236, 1.7006137890001725, 1.6246359267717168, 1.4379023185998818, 1.1620281193928008, 1.3343531992568956, 1.6588410968106473, 1.6726419334782463, 1.3210480052294429, 1.7837653157485533, 2.0978981883469174, 1.8323453376215184, 1.5935400702289968, 1.766275527583062, 1.7173890711207065, 1.820250921755374, 1.5093519862990092, 1.3246671392153075, 1.079870875954839, 0.8427070062788324, 0.6365208925223129, 1.1527783398378233, 1.8670004292008713, 2.0373774936022215, 1.9827533567491287, 1.5208609244126734, 0.8406171479023783, 0.9432856872575854, 1.198026684127754, 1.0316697023998955, 0.7574290323236852, 0.7050536206748461, 0.4550716567257638, 0.5029805691524558, 0.6026408774059746, 0.761169824216168, 1.1189896303785787, 1.250785446032765, 1.650516361370137, 1.466022908696246, 1.390784363095591, 1.132063805526741, 0.46404517106657295, 0.39311648552459033, 0.5589812762992921, 1.0655925805354514, 1.610261294538816, 1.5413551555329832, 1.4415114170464136, 1.829620546022909, 2.1546234299623848, 2.550314963650635, 2.9740443624607593, 2.9758422378610163, 2.7122550633648643, 2.4956332305411166, 2.6907249963078925, 2.2086220585361502, 2.982324357726057, 4.006355901134384, 3.324727642315395, 1.2904194369266406, 2.0085637785421316e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.22229171551822446, 1.053597722623195, 2.739288098311036, 5.56853273774783, 4.556859860031409, 2.2374961532989346, 1.064634429491207, 0.443856645722974, 0.5978827223027707, 1.5863361132324485, 1.0891819979168673, 0.005634007331611679, 0.0, 0.0, 0.13681870354106085, 0.18730696159980553, 0.07954832673214529, 0.03282100371467345, 0.4166791817414186, 0.9930746472208831, 0.9718746740333053, 0.5311709845844668, 0.647603416582232, 1.0410352623475774, 1.1931220196681949, 1.2400614527351195, 1.050210769483101, 0.7119046077446143, 0.7596666663150842, 0.7539363346803754, 0.9745550566949, 1.4825032833482652, 1.5946080866996368, 1.4505809464541386, 1.1065628912093786, 0.7655888055072388, 0.7569826690834169, 0.6813233294281105, 1.0072237301685618, 1.1692226238594685, 1.3065918156799086, 1.1070013336507287, 1.3807495538668633, 2.972269637486761, 3.8492775217470268, 3.175929137444328, 1.2459343085176897, 3.822110328391123e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 7.608610647812022e-21, 0.0062350995304032986, 0.0016538080131137806, 3.2886423792899004e-63, 0.07418931901750003, 0.6514996000288562, 1.7233926397580177, 2.6000569090795125, 2.3921868589699358, 1.7687276177444033, 1.5757162512410474, 1.8769872252107689, 1.468651324790926, 1.2187651391414533, 1.5821363686860792, 2.2879575119251427, 2.0630608787809166, 1.5226956078261225, 1.7316046481205518, 1.7917495357689859, 1.636925344175566, 1.9567101848065391, 2.364907528070944, 2.2751909718582652, 2.488108301361663, 3.0668207138696744, 3.820451748035353, 3.46983420855031, 3.1419165515127503, 2.484510187059641, 1.110154754328633, 0.03214926847965871, 1.0889826987276077e-67, 1.6052515645023518e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.0664414524549045e-71, 0.5301005362821911, 2.1139093842293732, 2.9027324272898483, 1.9747669658113551, 1.0928577196547309, 0.33874760952699035, 5.249900990734898e-68, 0.3826657522221275, 1.687161360689288, 1.944832115262912, 1.7466034533515682, 2.3589789129985093, 2.0252478635859603, 2.092762503302822, 2.2142274760064993, 1.9842176925904056, 1.2983127830377725, 1.288840678470038, 1.5180898223675854, 1.449835596946528, 1.6234196780192747, 1.4254469978646398, 1.0613899120261436, 1.2805847110035415, 1.6171600105744801, 1.7073997555062448, 1.8598032807625628, 1.6399908889312087, 1.264676748574857, 1.225647996040621, 1.1243564079690174, 1.2391167243856813, 1.3704342738506625, 1.259472534109193, 1.136506177565039, 1.3648575592890353, 1.7775639492334108, 1.944013273762323, 1.865861707776176, 1.5918280174037278, 1.3680564855549306, 1.1913830153794294, 1.225441067351781, 1.1207398580381778, 0.9069427469880829, 0.8614636362219699, 0.8700845840935614, 0.9281245273325602, 0.8712479761684655, 1.10093883506579, 1.5285057588483966, 1.5873149021361002, 1.2242494560076835, 1.2054493997510605, 1.7030718449952928, 1.3047158663182614, 0.9314552676195298, 0.8950679852007539, 0.6423854698957463, 0.5843011717775539, 0.553097798573706, 0.9999386081581498, 1.7296377680067963, 1.8280010210475126, 1.9091882253594719, 2.4411782675563245, 2.686979284416239, 2.427354986996434, 2.262713698566813, 2.160724499546646, 2.7229366024523785, 2.8574154998771064, 3.3341457403736428, 3.8079504910374595, 3.1424029918162546, 0.8220568192841746, 1.2520808090820607e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.06229774651751541, 1.3216273698710665, 2.3029934347519543, 3.4895546074461805, 4.265258216399218, 4.376413157358968, 2.779008418828255, 1.0642814444938864, 0.8837677524070386, 1.492018661597072, 1.1459549711364758, 0.19423024976234515, 0.0, 0.0, 0.0311586229700902, 0.2185750326436784, 0.3249120869330149, 0.015058928268531224, 0.0949402376563393, 0.2716514295162007, 0.35886024230764235, 0.5236407379918298, 0.7260939381814211, 0.9394742628260566, 0.9210622793858079, 1.025848070832481, 0.8089888654598418, 0.2851815054340392, 0.33445301881664946, 0.39227107361092806, 0.7577783931936644, 1.0289028935060287, 1.1359038721185613, 1.2607614720132574, 1.4909966402942842, 1.5682974490690782, 1.253962121654709, 1.0183674187319411, 0.7944072302138103, 0.7393438493346913, 0.9203390226312003, 1.0284209637694772, 1.297788527263549, 1.4501852786805927, 1.6403426409329427, 2.4454319667484583, 3.6567558449383455, 4.022976396956665, 1.930330348485768, 0.0005641728203663356, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.2296391545603612e-67, 0.000966385003724788, 1.106884440619993, 3.023219161335021, 2.7196434746713294, 2.309927401489631, 2.0544982791824538, 1.090190959450311, 1.1310706370024945, 1.6226512120929328, 1.4077640346153117, 1.395738213617733, 1.5398240328641464, 1.7682269818674854, 1.7771710807551813, 1.4871109193785657, 1.473369942471038, 1.3586215578701655, 1.652687225283799, 1.9334433652534813, 1.8851788280403667, 1.9927579158181885, 2.532211442740845, 3.8377159961010534, 3.46660802653156, 2.052956989261986, 2.3329362448748725, 2.1413389646141354, 0.9149300943964569, 0.024232193862641305, 8.75760132259618e-71, 2.9739968976814423e-72, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.528777272878534e-73, 0.1838687897521618, 0.24295277406203297, 0.2549853244716793, 0.9514268473171548, 2.2139248645226104, 2.2595480432801764, 2.194779465398611, 1.6793950889598506, 1.2308967219389757, 0.35249503839374086, 1.7223594027299833e-71, 0.5523077959510978, 1.5073511904177082, 1.9604021660134094, 2.2307544605315, 1.9838230980903973, 1.4744336732054677, 1.844457134484756, 1.9930726153688738, 1.7605003874277827, 1.658520834499214, 1.5288981141794125, 1.706206782558084, 1.717220354629049, 1.1560557266016644, 1.019288877524005, 1.2584305716860769, 1.1089437642664421, 1.0792966514850946, 1.1224224949401105, 1.1689380261871065, 1.167546729081451, 1.009829717158027, 1.3001805909908768, 1.670040177845081, 1.5679367904819088, 1.3088697735293522, 1.3348682606592774, 1.257950798728885, 1.4529032078235247, 1.5230663257797374, 1.7236317733765105, 2.0956237816083245, 2.069867867339781, 1.5545460736258434, 1.3770774925667553, 1.171032072281605, 1.2843536382406597, 1.2184279922195316, 1.002950457244026, 0.8067074114957364, 0.9631896239671143, 1.245646908774006, 1.3266136661496972, 1.5064029378845731, 1.503190172669747, 1.5757970581388605, 1.761201156779876, 1.8444594010725837, 1.5816346924125924, 1.0738637125032255, 0.8482995270419771, 0.6041609134132422, 0.7652457826139312, 1.2330833826709409, 1.4247474068636166, 1.5317475157343239, 1.5110827061522656, 1.1829292359507235, 1.423804454700587, 2.060926945203448, 2.376975645033795, 3.1256069424889574, 3.0066302098499023, 3.060218163353113, 2.419054123062679, 1.6150498822312898, 2.5446008641883964, 2.8126550227671174, 1.189740197725996, 6.752068718368226e-71, 2.082015205742085e-71, 5.651006610864321e-72, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.988232270940447, 3.4116538546303588, 4.210013416470474, 5.509454896420948, 4.355225231045608, 2.060583660666694, 1.0914387451430798, 0.36885699831987395, 0.34898532644252, 0.5682088308830977, 0.31869864675642035, 0.016004175408817822, 0.0, 0.0, 0.14667602324433293, 0.1879399686784069, 0.1411278936051028, 0.000628167818433667, 0.059562422597284836, 0.2990298267609184, 0.6164728640604586, 0.7987769379181806, 0.8199678054470247, 0.7438405713035223, 0.6413064559972703, 0.6982206173684204, 0.5093078757113858, 0.11500607383951333, 0.2260187906154023, 0.434390412444273, 0.7189037387064587, 0.9354639278754462, 1.110081905473649, 1.112553569036109, 1.1785825310112727, 0.9977252321502625, 1.1351932554134692, 1.5545710438778002, 1.280572030367594, 0.5692341408123411, 0.5978635498377258, 1.1153953261100469, 1.3399950860276135, 1.541970600593018, 1.9373184182114898, 2.7501242967532704, 3.6543043213953297, 3.6347017265152317, 2.4622971019891935, 1.1017247347450763, 0.3544270348218248, 3.03051808664375e-72, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.15680252102634995, 2.40797191699302, 2.4795944843272224, 1.9582129166965387, 1.9732689464315314, 1.6373261891857425, 1.441687753918032, 2.114472024345119, 1.9154195475824878, 1.6723502486856887, 1.6626288599809413, 1.5027482289915497, 1.4911346363959552, 1.524913526369133, 1.523807897053885, 1.2994140647640648, 1.437336304522674, 1.4172761081247245, 1.6391296832762379, 1.750097047142404, 1.7274648678724134, 1.7587267831004283, 2.0364737281249887, 3.26460553128301, 2.909251993328837, 2.3266354489924765, 2.3907470882988946, 1.7238884535718313, 0.7765179844336814, 0.008860598937246777, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.39484487048652284, 1.575408605421913, 1.7408476927704584, 2.248587949159301, 1.8304262228014068, 1.02370967135586, 1.2336889407357745, 1.7233766772406511, 1.7754726469583062, 1.5973456833285695, 0.5578895598827707, 2.164883256941983e-68, 0.9048488119941709, 1.3240835421147636, 1.9283095899891691, 1.7900888066128715, 1.9707980554734519, 1.8624349381821617, 1.8927361298761411, 1.6857724054057712, 1.4269375453148, 1.40100252837874, 1.175637814753884, 0.9633483922474539, 0.7722607963953578, 0.8830343116456021, 1.1539556551929877, 1.25751175560778, 1.1088179817534183, 1.3513882899881082, 1.3348349301493414, 1.110358241378563, 1.2027254242741634, 1.3929822983005948, 1.4902828889991184, 1.4636772016629607, 1.3312552899100325, 1.2630197713456823, 1.2770675696032328, 1.5440306740062084, 1.901669133084397, 1.815084448642267, 1.8331432211425636, 1.3402975869899478, 1.435213315975048, 1.6518514959334993, 1.539071771165382, 1.045249396509064, 1.4406459197370083, 1.7826207568024444, 1.395185348275291, 1.0042414244770868, 1.2375717988115866, 1.2122174303840438, 1.1479971728256402, 1.6310449186690334, 1.7525249445461668, 1.5881978429845276, 1.6338983235136908, 1.6987870270386338, 1.4405477663151487, 1.225320191073834, 1.0741147472081138, 0.8825059883132589, 1.1035120042834023, 1.537196798439311, 1.1743918697072928, 0.7158013491648809, 0.9300441244342927, 1.155985488389888, 1.5468025087560733, 2.4204263507829324, 2.478253625200196, 2.4711833343658896, 2.2436240845286335, 2.709834132630263, 2.4763900881996648, 1.3031308333214753, 1.7277751090210245, 3.005557095419192, 1.5437714603476707, 1.6610721914968846e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 5.2260586180276924e-67, 0.0018058757774667283, 0.5688215683235853, 1.9026138400704582, 3.0116957771625152, 3.421869821949258, 3.9055006614873946, 3.789183646431468, 2.5060084673681473, 1.0218520909331943, 0.5039687036187388, 0.5147676344364562, 0.6015626892624368, 0.32599367123617995, 0.11686006589629017, 0.10063219807460033, 0.007234738509012628, 1.288018318911895e-67, 0.1789314523027521, 0.46980275060504084, 0.6324758396141625, 0.37632644897016476, 0.2926159402471207, 0.13115038732354733, 0.33126839138816777, 0.40875904414896524, 0.5062209537411491, 0.452680779520108, 0.5408123143340937, 0.7337431141698723, 0.6075335672287316, 0.3260597643061516, 0.2925798297291671, 0.5185507708486057, 0.8269881710852047, 0.9777919008358005, 0.7423065634793744, 0.5131271201009646, 0.7746586019842461, 0.9531888099063259, 1.0996076243192334, 1.0361235447324049, 1.1671368938460205, 1.14982438615597, 0.9532927451562188, 0.9569606368203587, 1.31645240178797, 1.5778613289353984, 1.731874785420814, 2.0354919271154728, 3.3255597647623745, 4.508061002933573, 3.2737008830338254, 1.647022998210005, 0.6245527226527123, 1.774477089534059e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.7000269201828834e-67, 3.934498587670075e-67, 8.148790050342e-22, 0.08246075104013073, 2.9249943026035693e-12, 5.982044139548706e-73, 8.078300577936187e-68, 1.9893865562620918e-67, 1.1178993630795873, 3.74635416503169, 3.233380088143477, 2.3077008787986983, 2.156469895744081, 1.774054147948064, 1.529361871758411, 1.6555570362309027, 1.841348040654239, 1.872768090005593, 1.8033472136631303, 1.4722319587182398, 1.1994814535551654, 0.974994651814086, 1.1503845964946322, 1.6434379733623814, 1.5901373287181428, 0.9707768686199678, 1.2645807632921446, 1.3924356058489593, 1.538070421336002, 1.6564369680281743, 1.8874998203045976, 3.054857319429871, 2.9135263319904112, 2.329737837333653, 2.1173886906883723, 1.5577938879381605, 0.8895264953590107, 0.025140472755712295, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.16341830017491876, 1.2423893710961806, 1.8609264921312985, 2.1868376251404698, 2.3594267801326083, 2.5041730054221176, 2.0629869104233336, 1.4465486997217027, 1.59851173425308, 1.881938117509904, 1.6979686130994764, 1.1252965473321552, 0.33223989385398056, 4.075306205937684e-71, 0.5444715439062442, 1.4758459161967608, 2.244346598059167, 1.7140784321214255, 1.57835611629622, 1.475850840104286, 1.4963957610080456, 1.1323989333636888, 1.2928559385190965, 1.4705152545963216, 1.3715383604395726, 0.8959187858383757, 1.0957558350419419, 1.3659326473427882, 1.1930241019104102, 1.2802768860696148, 0.8953592108830435, 0.5746287246200978, 0.870923985888826, 1.4152434370625997, 1.57581202260657, 1.6600235408328103, 1.5807484821635285, 1.2777889373506355, 1.365645098531104, 1.2566202687012265, 1.1678842338466353, 1.1650445335044566, 1.2435751528730776, 1.2429108221206207, 1.4027691028632603, 1.4209888393509118, 1.928084464477763, 1.9554744076121011, 1.7027205854564187, 1.2784592885505077, 1.6313405918725863, 1.8038880202568777, 1.462944355121195, 1.0110901008889783, 1.1296404899558752, 1.2300977507180164, 1.113143112311846, 1.0606725543823359, 1.2101401035807982, 1.3578846656601087, 1.491502074871974, 1.3946010579798553, 1.4930372458511556, 1.5223611177361818, 1.2322934945728434, 1.1935215449233425, 1.2443872650686814, 1.2550161217789082, 1.2975405612890114, 1.1081439994317321, 1.1778462653876574, 1.6562758751664575, 1.7300228384740421, 1.8588487851904034, 2.0378788023777474, 2.175590958728435, 1.996863413701945, 2.085320552774249, 2.6160384515867605, 1.8586986109893502, 1.8851676980535927, 2.327527974154009, 0.7606532190311697, 1.588106129119534e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.544407275421897e-71, 0.20973670589166105, 1.6188480130518315, 3.889938343264987, 3.8379112313887163, 3.638323968517639, 3.097850482663617, 1.7711458712744985, 1.2100346710781338, 0.40270208505036464, 0.2798176510045245, 0.433984071023108, 0.4897590194466126, 0.374926154440832, 0.270240878251915, 0.22299274507995293, 0.158226724346485, 0.002642853735954853, 0.2431895405156661, 0.5247350433720044, 0.7519143014771004, 0.9924176963952647, 0.619534506247593, 0.12867298591233123, 0.22200471519886378, 0.4135295733135571, 0.5895443498055251, 0.7558533968779422, 0.6911538705711706, 0.38535632707246137, 0.1441058579234431, 0.17139067370642724, 0.30931636881209457, 0.5758063409851424, 0.6248242639114245, 0.35937902549227374, 0.2936494504427998, 0.34216597956993056, 0.5761961916746827, 0.671821520919039, 0.8928427235879646, 1.1407802612184383, 1.1801878435363164, 1.157111864014965, 1.2072711992823884, 1.4137737526607594, 1.621735365511995, 1.7400487708005272, 1.7686524702842235, 2.2521079945367006, 3.4186488286491254, 4.104227847529728, 3.3097464228504236, 2.5674330610675042, 1.4941427315062015, 0.02701735006110173, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0329299622966923e-67, 0.08549265500559589, 0.4175513320091149, 0.9329996640782987, 0.5220703696270199, 0.015693478645695258, 0.16091268147278104, 1.6688874351570036, 2.3428643021662197, 2.1900041659865224, 2.0410507619799887, 1.9229412826862244, 1.8413900991629504, 1.72902983276812, 1.7961077804923207, 1.391629409242853, 1.7323322785142068, 2.1295503476108593, 1.538553607358054, 0.8772385960452347, 0.7682982433326657, 1.114694930463486, 1.3946889048966682, 1.404916855798902, 1.1509288291583744, 0.7676317412975919, 0.9056904066398062, 1.0889901639193909, 1.4201940223411071, 1.6621317925485215, 2.0790670585182767, 2.815804731724768, 2.7611451068686534, 2.7462868781277052, 2.4730486609592504, 1.8836425460092556, 1.0131670488777331, 0.00020228318614817775, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.11127982313699025, 0.8029959302465528, 1.5442733177065406, 2.5239671106248807, 3.1685340052468405, 3.595876220647881, 2.675858033343971, 1.8608403043799626, 1.8067381190567176, 1.96275830923787, 1.895843316774645, 1.2865050456830431, 1.0844192717517132, 0.9779261686595788, 0.5391745443328979, 3.47400351302122e-71, 0.3659054551951755, 1.1327706509269433, 2.0234225214082926, 1.4517389723029197, 1.325490484873626, 0.8446197759497096, 1.1869937773045791, 1.5669478792443101, 1.3867134647537114, 1.0722578838800132, 0.9241934097500213, 1.000203858273622, 1.0186790172110847, 1.1358718552856004, 1.0713685519147162, 0.9301121843690261, 1.0291730459914703, 1.0818699608432922, 1.2954947283476628, 1.228459891082423, 1.1806960748444908, 1.3393672847105478, 1.5780110747937783, 1.4183881113897456, 1.004098553209488, 0.5407275442058221, 0.7807348393306626, 1.1221335491654827, 1.386211794061424, 1.520112427866266, 1.7191732863429934, 1.5106627535990356, 1.7119477732176733, 1.726032479215064, 1.6800872534179376, 1.1076139941827847, 1.2997907760055938, 1.4144510793826726, 1.3032377968122546, 1.3635880019378988, 1.126000012235636, 1.0196035058615962, 0.8957916251336009, 1.084861252096303, 0.9537204174308158, 0.7935230457670208, 1.1194686182967075, 1.2570228020559284, 1.2818155709627632, 1.5038918039945202, 1.5880085563258604, 1.431213623947997, 1.311821386936586, 1.116403758305978, 1.1548448008324073, 1.344205287510377, 1.5188210725978166, 1.5848176210568, 1.8546244464241681, 1.8496285729558082, 2.118884912025365, 2.2530258331258324, 2.4146155940825906, 2.649071522938357, 2.999897893765592, 2.576815701211274, 1.4272571107125174, 0.22843524033455598, 0.0006789261546974595, 3.192822138603989e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.4874956747112595e-67, 0.0028239086425720927, 0.990562163096925, 2.9645294544739187, 3.4287737149748523, 3.744771024963711, 3.359223683810569, 2.265413604332082, 1.7699850683484897, 1.1757138178384139, 0.799166611331259, 0.49613124993472013, 0.4072794404936566, 0.46014178344302437, 0.4325660783292875, 0.29808567380213447, 0.34540944658246886, 0.5096236367544158, 0.6008785002627661, 0.17502855147174845, 0.5413744022079392, 0.5869206096154045, 0.3621476303149542, 0.2507193487354584, 0.15551718159247585, 0.12251996121653974, 0.3391304993940345, 0.4976022641699842, 0.4895841741987148, 0.5111840506886303, 0.3701192860032485, 0.17996965950182187, 0.16356160160688749, 0.5769600804838184, 0.604320482306381, 0.44041000977621536, 0.37867661230463057, 0.3870681057233618, 0.5196411224453676, 0.5606002781253352, 0.6610431816943816, 0.6553731120825468, 0.7616186684914261, 0.8687214054481416, 0.9416759973066782, 1.6831242638809272, 1.48965544135946, 0.9272756702121256, 0.9552272299641942, 1.603536730017595, 1.7715076094015245, 2.3949448328426683, 3.209859139522692, 3.628565722072622, 3.205808448446433, 2.6353225829044646, 1.725896852906331, 0.540067318646166, 0.05017935436514165, 2.3529855637825432e-67, 0.16139831985297892, 0.5875114620789788, 0.4237869057625545, 0.2485011104515742, 0.03216825182328109, 1.009515052981933e-70, 2.183574202463869e-73, 5.712967051408376e-71, 1.228621299620123e-70, 1.5125621048562697e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.6189393330951047e-67, 0.28415418615965393, 0.46431725235846955, 0.08105446688496531, 2.5254409627633624e-05, 0.0008300370313397837, 0.35729865905793545, 1.4710695456829512, 0.5809569234873244, 0.03799848998465993, 0.8311820192609822, 2.4965881131322476, 2.169710533034518, 1.7056278893223862, 1.5241313610467841, 1.7505641959001537, 1.6046555069289212, 1.9422049865722926, 2.1802702603281574, 2.0525177028648613, 1.7856461186656958, 1.2864893611168213, 1.3155410784580823, 1.468341603306044, 1.1680731032138283, 0.7608666821590226, 0.7209644224269631, 0.740503296305647, 0.9333020633572211, 1.0615178879834843, 1.3518769668085184, 1.578143156538104, 1.771898899323844, 1.6944017758744536, 1.5416982384199542, 1.7673637971712566, 2.4743074791861233, 2.5989156242248015, 2.151037422387404, 1.9551163519355583, 1.2956456131008878, 0.18932683510810566, 3.923797114069395e-45, 1.3983113904208152e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.6817342034378591, 2.6989993441222992, 3.176048532378047, 3.724761754460374, 3.5519927639406887, 3.255528854488375, 2.629657801787758, 1.7107151677419665, 1.9643078033837469, 2.3253020720534465, 2.0518168548790072, 0.8801961949404955, 0.46737049969038935, 0.6576079704011626, 0.2112518857991299, 1.4246748081980455e-68, 0.2217436375385171, 0.9469482155091704, 1.7364646880021297, 1.4860219892217543, 1.2766292435185846, 0.5044270660973247, 0.880056735122853, 1.074021594095953, 0.9857479380380028, 1.4222763062963537, 1.3911934964855845, 1.2382410686478948, 1.1601303690046194, 1.1155562316605625, 0.7655541764187923, 0.4968811060401812, 0.699641789831972, 0.7077274402301761, 0.8474377412142218, 1.1622818011676515, 1.3844949540322347, 1.2744766925206932, 1.2795035751451564, 1.256907862318485, 1.1029670828465896, 0.8997433442204716, 1.0509715091740333, 1.0844202648650167, 1.2840648126350516, 1.1932191601374598, 1.1732261231745724, 1.2077168420899085, 1.71414928961498, 2.0095253070451236, 1.7557495949915847, 1.0871744255215532, 1.1393796154525404, 1.1464542463642289, 1.2769848557264254, 1.3811227448297956, 1.284975980001036, 1.3216816404251972, 1.1680700110957787, 0.9211213146156751, 1.1899271850285373, 1.270500040632271, 1.1702971375308522, 1.0557359857577922, 1.2620392841091075, 1.2870240424001764, 1.2823994983410216, 1.323616372998515, 1.047919952256521, 1.1368831444102057, 1.2611587775996327, 1.3594712325377714, 1.6918994372544063, 1.8552303662909821, 1.8191429495942089, 2.2834698481805304, 2.452798407901824, 1.8329695569491946, 1.8429873837394695, 2.090709784713468, 2.2148955649568194, 2.104078240820911, 0.3727888268119983, 2.1532726028531473e-69, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.03912855800607318, 0.868904634323119, 2.4026140441122976, 3.8364246724377296, 3.598117218336995, 2.6211253522787956, 2.272300151744787, 2.133766484577393, 1.2500661444791064, 0.062288738800779564, 0.006593087280756471, 0.18818744063796444, 0.31677918688023965, 0.12502587522533393, 0.3204703587471194, 0.9330838380879527, 0.7661897239953284, 0.46153774689452476, 0.43704796938897417, 0.24302422970562532, 0.45093325959502195, 0.450396197991779, 0.31816177012296976, 0.07520046021183191, 0.10919438486794864, 0.1177840294519763, 0.18506771560807067, 0.21726574724199565, 0.3383549506081387, 0.4361989022327748, 0.5944468330135386, 0.9203889997655921, 1.0424744060179023, 0.9789064025260394, 0.7666744905594811, 0.3118163237241447, 0.30551232421558794, 0.4198091477521757, 0.38471204230825506, 0.2622479780819873, 0.4024838678346363, 0.7462673002949174, 1.0817278693796197, 1.319843640408692, 1.104854096197542, 0.9982788822213138, 1.236205437621507, 1.5259927551119858, 1.3031145034037905, 1.3193575022649071, 1.2433837308524431, 1.4354721051444272, 2.508913598883339, 3.529279052766526, 3.7001822242196027, 2.905164063918221, 1.704278350415521, 0.3757487286021046, 0.30366517591932407, 0.37872701056290126, 0.4443653989549148, 0.6413613493862158, 0.8240917838070381, 1.209788155292145, 0.7637163092387169, 0.12109443096562789, 0.0038408427284509217, 0.005358595933874, 0.13833296918868943, 0.40834461268133637, 0.41580832761736986, 0.20980724766079462, 0.06687576164652231, 5.14518520944903e-67, 0.0, 0.0, 1.9923223954477544e-70, 0.04325720807603162, 0.00026141326436108017, 1.385072933258754e-71, 0.0, 0.0, 4.79971844874787e-67, 0.09466135900545769, 0.5286272800791636, 0.36288109811586367, 0.16941205243412938, 0.02881823118599769, 0.023070629349072114, 0.22453117881073936, 0.49189663482196977, 0.16658096291725233, 0.4390777555724732, 2.157978458643939, 2.4435137288028272, 1.845244371798401, 1.569621612669053, 1.2406179995451225, 1.3454298401271103, 1.7384599645722574, 1.9454070363522646, 1.9480077113005336, 1.9801010660978733, 1.8215551909751326, 1.7125052737117272, 1.2881770816967588, 1.3413748337998186, 1.4597924118863972, 1.3058691731458936, 0.9235040937520331, 0.8060335461317472, 0.7905175971245626, 1.0555520192457521, 1.2440577612679249, 1.181997458913031, 1.2310974972870667, 1.307690331618815, 1.5888811715299767, 1.8850763679325269, 1.7612062192779518, 2.224163031453429, 2.6191760437110503, 2.283707637846888, 1.501630214650561, 0.9456781651044857, 0.500874153087242, 0.11841397707866097, 1.533606731623825e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.6336810208152223e-67, 5.585482369594233e-05, 0.10675789586515183, 0.12725309229225346, 0.47555727236329304, 0.6837139383569593, 0.6705196837679637, 0.36275859852344183, 7.273187887547093e-12, 3.9463348010258605e-67, 0.0, 0.0, 0.0, 0.0, 0.037228711669287984, 1.2333897176905708, 2.3679032422514865, 3.5134840291917158, 3.6370479988108997, 3.286790350581569, 2.804842166679066, 2.4639289073093096, 1.9175923439098028, 1.4927771053595649, 1.6733842102155592, 1.514093242848503, 1.5568218651097254, 0.7816227275543532, 0.26068956596668613, 0.00687902214435715, 0.0, 0.0, 0.20353589233610947, 1.0912003880921617, 1.5646172777088054, 1.3514869606624416, 1.12120962706571, 0.8887520082334142, 0.9550367455041489, 0.9219708991261086, 1.0690611709107998, 1.4092314418977736, 1.2773871343686238, 1.0490790896259483, 1.0998036416100518, 1.0067925970602687, 0.6367255811001229, 0.7444495572863161, 1.2025763904853335, 1.5043973723466166, 1.217663333782312, 0.9045385868650015, 0.7739485498536993, 0.6359102563365582, 0.7995310104888667, 1.243558934602845, 1.2766553739419493, 1.191540202536899, 1.1055388595843993, 1.2690935919785176, 1.2102329509310863, 1.006297936503472, 1.1033740082359742, 1.314799288649965, 1.70973551323641, 1.3427563966388902, 1.3128229336928143, 1.5704781070271565, 1.5508607041201685, 1.115029239982107, 1.3378818444812737, 1.3098208042938495, 1.468776147159815, 1.3142676145311185, 1.2824723973628807, 1.2848992262772754, 1.2510739712713672, 1.2721898828315261, 1.5459563495341087, 1.3705676897743615, 1.3507603189491988, 1.1210515959763967, 1.0336471955481699, 1.1447488382646611, 1.0790450119339425, 0.8332567501534562, 1.0578685694265602, 1.3672342398536443, 1.4835058376639267, 2.206317072760399, 2.1486274411439723, 1.6625323302496895, 1.6596177768497142, 2.227228021292049, 2.15819316006764, 1.9241416039204182, 1.6661393410187344, 0.20031804775444417, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.6943430535077923e-67, 1.10975445368715e-65, 6.9042792761870175e-65, 6.69464745553942e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5763489470546688, 2.212600428814099, 3.1496110265818658, 3.8297926105915536, 3.32659897711261, 2.1031155416813476, 1.3298881813861954, 0.46918344007968926, 0.04317323580239307, 2.227095484570524e-67, 0.0, 0.0, 0.11487908757857568, 0.2753150792401904, 0.6368550502956261, 0.8544116158720136, 0.9928463348380525, 1.0622065359516597, 0.811619317802581, 0.30908641791234004, 0.22066281046750547, 0.31559104893958434, 0.397738873857989, 0.437957895932616, 0.3353189261501974, 0.032745761028661, 0.052956361194196555, 0.07403821623537343, 0.05183759780260644, 0.34147048350418174, 0.5198754032190642, 0.6013045706240518, 0.7312413312240693, 0.8994339956028377, 0.8179924963984639, 0.6945239858090559, 0.6395027745304702, 0.7344158883260121, 0.743219193680833, 0.6724441727263333, 0.9351268254633851, 1.1705620382786606, 1.1773257130704593, 1.2065598084087128, 1.153999195117649, 1.1872153588638525, 1.1795976347350603, 1.1397288053741619, 1.1403293233254317, 1.3375520424029332, 1.2519256080295804, 1.386204776368686, 1.9450239678577077, 2.3272446316093607, 3.214550561179067, 3.1375626658155085, 1.9831105766371024, 0.42216552800102036, 0.23864543919214132, 0.31179841743602665, 0.27724071141750883, 0.7032969124219655, 0.6150897926051044, 0.5609905726669382, 0.32449602304167513, 0.09728876121086216, 0.4109560827163392, 1.0365276573816686, 0.9322332910890054, 0.46230679276053266, 0.4564554036935533, 0.6248977654478018, 0.40690590947997407, 0.04706783239216694, 0.0, 0.0, 0.32473829264990073, 0.6467688831043326, 0.14930474063217591, 3.293467727879059e-70, 0.0, 0.0, 0.15580229269702173, 1.8066115355310473, 1.206341927969845, 0.06892905781620584, 0.0, 0.0, 0.0, 0.0, 0.010664467044359194, 0.46882022843144355, 1.5788009520068869, 2.4983936603641723, 1.6139093137926608, 1.05528601879179, 1.3994096708439088, 2.014896299999137, 1.828297273134524, 1.5284117307530778, 1.4142857728843552, 1.2524125020551224, 1.3408071685262257, 1.6524781965103017, 1.479835522363615, 0.86943020500172, 0.7990492837430487, 1.1675304991654798, 1.0938698780053215, 0.6744993740985059, 0.865575754357284, 1.1149222454128136, 1.2133456580029502, 1.0464014469353202, 0.9245743854698993, 0.9737625060127506, 1.1626198295291488, 1.3649868037744142, 1.8208402623311173, 2.0461789104558648, 2.6699117942198427, 3.174163968947198, 2.25551298781744, 1.4335311841142016, 0.828030838646189, 0.30911637496052435, 0.13912659587325127, 5.4415720670981326e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.615664730828066e-67, 0.3183199405839332, 0.7500609881368661, 1.0155567679708497, 1.1151332184465588, 0.99773844936648, 0.8151472208028423, 0.48037832231875655, 0.2182504543019812, 0.013818398500475837, 0.0, 0.0, 6.679297057809971e-11, 0.5534605521774125, 1.5161219920821765, 2.6914974510043663, 3.0509164997116756, 3.164241017011605, 3.1378713855267506, 2.729652915034478, 2.249486833271831, 1.0938818472116196, 1.1445565077010542, 1.3586421225858345, 1.634967278432896, 1.7443720554059752, 1.0158612077209597, 0.3082017497344083, 0.0024946958423439775, 7.94193567781991e-69, 0.0, 0.0, 0.1892602917554962, 0.9665405692604878, 2.16023423231087, 2.3850877043588667, 1.545298319884992, 0.8732320603918566, 0.7886609975874457, 0.7859086716717343, 0.9964303696464505, 1.3035783128759846, 1.2580668558167787, 0.8116121223166637, 0.6421081327076195, 0.9098744554435712, 1.1617374603366812, 1.232081771345804, 0.8712399646933342, 0.6903179709090388, 0.6963421271088386, 0.9182639406279947, 0.8912480977633095, 0.6450221544353987, 0.7395784955634213, 0.9841398894025133, 0.9094620739431356, 0.6383080807395913, 0.6543661693105527, 0.8305441775318947, 1.0781345498461548, 1.1583822261943766, 1.350450821170753, 1.3450811356148193, 1.6783120142665808, 1.5469445462536555, 1.4663626998744803, 1.3594378742548088, 1.61569229195635, 1.7978863831490486, 1.7031969257828337, 1.2656333148616028, 1.2685132392521723, 1.1462931697238332, 1.1649763387645748, 1.1707315182577673, 1.1852504212203172, 1.3125393919040675, 1.4149751336345275, 1.1848849826948396, 1.2890469370667148, 1.1090080391228554, 1.2323506629628014, 1.4947702488888268, 1.4447774009937007, 1.2107313450265025, 1.4617060569349292, 1.8677357665411023, 2.150495810539951, 2.324185340354589, 2.1134570384365503, 1.3542600804939866, 1.366581693836352, 1.6905014028461665, 1.6879994689525688, 0.8291655598618632, 0.583317365656999, 0.4340114006105331, 1.982165967621994e-67, 4.0192536101662854e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 9.870854420495346e-46, 0.09947644839494174, 0.8007227350526058, 2.3134784356525415, 2.6379520210265497, 2.169836962942341, 1.8168402835176636, 1.5951063960076226, 1.0871587641896099, 0.010839573681942716, 0.06843419495959324, 0.35524983876132765, 0.3844076925662563, 0.20607470426856267, 0.3773513241330875, 0.7267126897186813, 0.8801539196667818, 0.867444451575583, 0.8842038603263838, 0.9198639073648707, 0.6279757915040705, 0.21410084111323968, 0.5136337967569524, 0.6096217170477338, 0.3588428893384368, 0.0777854413227752, 0.08096175519335702, 3.359983351293471e-05, 0.08353848766208571, 0.23916623054415087, 0.3255605905852832, 0.7004715408662641, 0.8050632254285262, 0.602710378533633, 0.40763076613279736, 0.4279345372651875, 0.7130525115005781, 0.8207788999131118, 0.6998749361997056, 0.7089646150933646, 0.9917853001116441, 1.4030404827032186, 1.2107266229168232, 0.5983987429577873, 0.7075841378645151, 1.1003727907787066, 1.37099058859134, 1.3055438857698078, 1.31824588350527, 1.639737785177445, 1.2223492499710034, 1.176139377084894, 1.033934940160691, 1.05660679836825, 1.6557245366107622, 2.6865728512224365, 3.576408636047063, 3.2692953922835386, 1.8566374171214761, 0.5705870200773724, 0.31773567224789545, 0.20206176591806813, 0.0621762233015597, 0.15458269507960054, 0.34077910489946817, 0.4603334513938684, 0.7689300156287437, 0.8794319297878737, 1.0061046978972286, 1.3395055263483755, 0.9613557875887615, 0.4064706058943699, 0.589088613394356, 0.9048854393044259, 0.6760895875149942, 0.6464103774040417, 0.34722430597540566, 0.147857872072791, 0.37513552843336484, 0.8373554998463852, 0.6971218447934326, 0.06531558030212015, 3.049251912851947e-67, 0.02611252562998434, 0.5898171438187525, 1.1558588599251038, 0.3590666534093998, 0.0009589041540858378, 0.0, 0.0, 0.0, 0.0, 0.04055941385430217, 1.0305354737511152, 1.7064995362691349, 1.289172811641265, 0.9699036731022694, 1.2724867830204403, 1.5091908896667974, 1.5840463447048592, 1.3273964128342328, 1.280508088542831, 1.3419147242274363, 1.4099954412531588, 1.3152804848889446, 0.8923102350277965, 0.9126061248886153, 1.1336713991165794, 1.1351797921737585, 1.0886072928810933, 1.2630449582729852, 1.3687520602144474, 1.4204335522895803, 1.322367518881947, 1.1972794122892907, 0.9622951736396459, 0.9566863762757158, 1.1208814599388148, 1.4273004057464647, 1.6660996417160732, 2.153543920272355, 2.1929689206490934, 2.729786057258025, 3.030479765043367, 2.723729012401023, 2.2371020914423667, 1.4398215921351607, 0.29893374743474865, 0.03058297720672365, 2.750753737881288e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.008433917583240635, 0.28404222941844637, 0.6667182058591017, 0.9109639012007307, 0.9380575178546771, 0.8529435195105748, 0.8564531189260869, 0.8402708206055856, 0.40202561521942926, 0.09202012051277109, 0.08428752459577993, 0.3672193923100373, 1.2578788674147745, 2.067474667215393, 2.2313142771241132, 3.0370913078104564, 3.203383784649816, 2.8603454012227303, 2.47053011167408, 1.9379489827372396, 1.4400496105652252, 0.8505919577210221, 1.2513777320330064, 1.557508825015944, 1.2401416345094276, 0.5324871847283283, 0.2675363417945995, 0.08216067195485266, 2.4833340363612206e-24, 2.8205428853050553e-11, 0.0, 0.0, 0.1850989740609501, 1.435255588991268, 1.9785081291971096, 1.753793357568668, 1.6382705347842261, 1.722429074386639, 1.81470736816118, 1.4876017368898289, 1.3340846906186385, 0.9154646125092682, 0.7043616196224924, 0.5403791535420375, 0.8159897406599725, 1.1271266207788813, 0.9706203080305045, 0.8953438701610139, 0.9320879264335566, 0.6454683840860334, 0.40541213285293054, 0.28697809102354555, 0.5684364678390921, 0.7385864493949725, 0.7438746029524204, 0.641693623856554, 0.6588988634703696, 0.6749315920106405, 0.7851155260319764, 0.9151305631612026, 0.9129670498857791, 1.018537047514215, 1.0685918600049717, 1.1203761765057294, 1.3329754168140084, 1.3946542726087188, 1.5683520888797489, 1.9571461011196902, 1.7744949463099289, 1.3516180651925112, 1.5006948622251457, 1.2607207811743706, 1.1389536354875105, 1.2621705294523053, 1.3620594139343325, 1.547782077332215, 1.511266472065472, 1.3029754310846329, 1.4297718738910135, 1.3217520841698303, 1.4307005445676992, 1.4402968178144562, 1.5231978532303856, 1.4658823269210188, 1.6282362949460207, 1.8476015822694194, 1.6436598788459378, 1.72558646725156, 1.607445843405003, 1.469153824913306, 1.3495870750046066, 1.5607552633300656, 1.4744255671391926, 1.211954943960336, 0.6407794081413307, 0.11803421780599255, 0.14838018324877655, 0.034689951058951785, 0.0, 0.0, 2.100342114742886e-67, 9.50412474251066e-68, 1.1485080029283058e-67, 8.80987111617977e-71, 1.5243391127721586e-70, 1.3196305696090998e-67, 0.15703799634878468, 0.24361531642399825, 0.007822276907077708, 1.2596160188918913e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.5598032553438203e-67, 0.02738296060822898, 0.15334051012525496, 0.36898566450054204, 0.3796048590177179, 0.6337566417376053, 0.42451638619355947, 4.7311552024655027e-07, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.809254040313603e-65, 0.07331543177417998, 0.37433660056140994, 0.9220693407456224, 1.8685608720198275, 2.544760221044399, 1.7908589318441415, 0.7754054046243688, 0.77685974165448, 0.8234919346372784, 0.4532691201682759, 0.013581102690412905, 0.07006140183271814, 0.12578883448779354, 0.16972015627294557, 0.15071801744085533, 0.5267223619881065, 1.3780356316699596, 1.0141975581463072, 0.394146744959599, 0.6730051091069669, 1.1775833876104258, 1.2126164641813375, 1.2069408845890308, 0.7629770325875143, 0.2712020896734799, 0.3241634995995355, 0.15963226491386706, 0.119939980467195, 0.06506633071605794, 0.2994113631075379, 0.6599648733574668, 0.7172067756521052, 0.6201348837070242, 0.5492721666462366, 0.16052134952716202, 0.18732726382140275, 0.5257091311499984, 0.7432034698742882, 0.8380008619244563, 0.9004793915785889, 1.2016126002354213, 1.158493339060044, 0.8941433025400478, 0.7349686782220033, 0.5399504585113846, 0.548025821846764, 0.6385131517061247, 0.9691182973515566, 1.4503733433526236, 1.2837730479989204, 0.9636197443032337, 0.7429070096276611, 1.0948495746365694, 1.46329417199928, 1.8688470293418504, 2.0907028899938638, 2.483779303574707, 3.17561430249134, 2.852621169442969, 1.4461911419362536, 0.48660277686835585, 0.36646156109756944, 0.7694025774726221, 0.7232260345560668, 0.7017045570621718, 0.5110206754798128, 0.3124332394435534, 0.7795025158689128, 1.468029603495097, 1.3490941045535152, 0.9505164916486706, 0.7451017013865204, 0.9340964114273653, 0.9154708857840923, 0.8572796295777927, 0.4594065372293734, 0.2024046479680317, 0.15197035134528747, 0.24096593701233715, 0.5053917037955991, 1.0804826747236262, 0.5776007102968492, 0.1863586554961536, 0.36585231217160086, 0.48933539053683717, 0.3889920527640811, 0.028829119660858993, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4039814886789408, 1.9515549176777682, 1.7509089986033501, 0.8371238193327635, 1.2682581516403388, 1.942655234881613, 1.6655709782667714, 1.0918617248535156, 1.2378277605581758, 1.4919601261390767, 1.6819206329112149, 1.3535817901926208, 1.1681720531523752, 1.3938125305646878, 1.169299966169092, 0.9580161834766301, 1.0945173065785099, 1.351459798151211, 1.2955061258100073, 0.8444783435914225, 1.08830855594357, 1.5110788961319486, 1.504924084209108, 1.3769029143270615, 1.0772398141867257, 0.6561053146469931, 1.117517995883702, 1.8217225212712407, 1.7652186361415403, 1.5685028758083632, 2.2774431366351564, 3.2561973895340657, 3.0771678061303334, 2.8704898874857463, 1.9916951891492687, 0.8262608076556752, 0.18395523850945583, 8.756738508041485e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.20271931920984176, 0.5386987291717702, 0.7189070741985439, 0.8652645746487089, 0.9744664435004324, 0.8914978429524787, 0.8801016920930103, 0.9023878644968342, 0.8692283599544339, 0.7491553090187644, 1.2440854176980451, 2.07941875525853, 2.7231435464602924, 3.7925834877137845, 3.6913650373676887, 2.420193044619964, 1.9212604707223733, 1.0773556262552688, 0.9258785948696904, 0.8406667695847005, 0.8247430577203119, 0.6657572448576197, 0.8936542630625723, 0.8777263625256673, 0.7639575004132872, 0.3920136044867242, 0.09489541250447076, 0.009968973362041444, 0.0, 0.0, 0.03902875738481271, 1.0459110469603274, 1.2843150001927484, 0.8740842352791702, 1.2699328001895225, 1.896111529100608, 1.874896651693291, 1.3572960180035807, 1.245587836267589, 1.3149805471247333, 1.266969680136981, 1.2364713323359524, 0.7817917858688794, 0.42039111265381734, 0.6630365383246648, 0.8305991504981911, 0.760439473988427, 0.8318199970972273, 0.8673695095669842, 0.8316118039744858, 0.8283541284473053, 0.4189364160986351, 0.2553946408718275, 0.2606078298705974, 0.37637903090116254, 0.31854475550291284, 0.5131050889275777, 0.8202887617446919, 0.6742361356648416, 0.5509325340099736, 0.7522826536818208, 1.2720608065976649, 1.409826715173267, 1.481514997340355, 1.2945898756107113, 1.1628851455227505, 1.3276208427919869, 1.4404916801468062, 1.374418053948844, 1.182094404685131, 1.4118764576965646, 1.7350367373677642, 1.6668847909219409, 1.7078100725598802, 1.6009353094423204, 1.5395418022535523, 1.657855536966565, 1.573576819723769, 1.5315377239787722, 1.5364629105751106, 1.3868336321465904, 1.2845279219732788, 1.7427318612744926, 1.9461320434984941, 1.9527451444164399, 1.816413857290172, 1.231237441303179, 1.020523596764761, 1.255840777549011, 1.406770163399429, 0.6479005528598378, 0.0012916299684931354, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1508906446989755, 0.6443082208718351, 0.4473419903182254, 0.05879377299276656, 8.840064273875717e-30, 0.0009866387260953347, 0.002364424662474107, 0.04951700450169483, 0.2012224895190151, 0.32433523909675444, 0.19899414580373787, 0.0759845954007341, 0.0, 0.0, 0.31302848785577453, 0.8224112645993955, 0.8111048672692824, 0.6176028297804947, 0.4242672550868889, 0.012587674569076945, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.7304564409349777e-70, 2.715527411499456e-74, 1.1186697014464132e-72, 7.1887002993486454e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.522240077191325e-67, 5.446447621656034e-67, 5.12779536425761e-68, 2.6822951403212944e-68, 0.0, 0.0, 0.0, 0.0, 0.06753819081468126, 0.6960386567225783, 1.080412045121193, 1.712235403437262, 1.769940978663854, 1.075624538776765, 0.7320704322976077, 0.5383750464278734, 0.43140068829785605, 0.05900030817938906, 0.28976205332043037, 0.4499696418710677, 0.03489113478202999, 0.00020897314084068752, 0.25966183048673486, 0.9036551450119532, 0.9125436052159444, 0.7213219763500298, 0.8239780510354109, 1.1466038458986674, 1.2221246770454997, 1.3149433648806195, 1.4317949778629213, 1.408487456327748, 0.8468413008694284, 0.1436168356892864, 0.07424637957831326, 0.1022562699532159, 0.32983129688080126, 0.39812539896821875, 0.7499499033517765, 1.122144156656816, 0.5945647604349347, 0.2722892167375903, 0.3575788953857604, 0.41078308573857214, 0.5915835908874421, 0.7153426238619573, 0.7283741560333965, 0.8977270908577708, 1.0171025059174923, 0.926815293571881, 0.8640846852508766, 0.9019143494679192, 0.6980982010596826, 0.6397767833825583, 0.6325885679964358, 0.9286113055208354, 1.3656802046126018, 1.2432292746580629, 0.9667938506962095, 0.6813055194876974, 0.7748167270381288, 1.2700851446084584, 1.3496435784933425, 1.6388586380492285, 1.9296208761421099, 2.1868355097063272, 3.378632047309921, 3.6193603220628034, 2.1920986984328152, 0.783798376221867, 0.19934870695250684, 0.026218389163923383, 0.07086988490304069, 0.19357718191628237, 0.3477407983453453, 0.6293958702963778, 0.7741981691277857, 0.5456646167756709, 0.8989923388892294, 1.3598137345800296, 0.9435179552588693, 0.46206179854222285, 0.44370464830480216, 0.597840322070752, 0.5014330738858916, 0.4116558538582673, 0.36809849090824187, 0.5969212520557257, 0.5393023509617514, 0.5180941857397556, 0.5305103694834976, 0.6456129151288792, 0.6960529783214611, 0.28183145875368965, 0.0491631130501935, 0.027633252800857377, 0.0, 0.0, 0.0, 0.0, 0.1884712487925846, 1.1018603752189762, 1.5617145095259275, 1.2338004304593255, 1.3065950860099207, 1.6677800435213754, 1.5761116262006567, 1.1725493621555785, 1.2696206167214683, 0.9842397035209274, 1.1977346880872233, 1.4990068830372962, 1.75946293544348, 1.7496690661757839, 1.4133230474698308, 0.9367297567380639, 0.8137740267844862, 0.7896674661215606, 0.8257744515652945, 0.9377911746641985, 1.203487732664371, 1.0941566582489628, 1.0996936297550661, 1.1460180126741761, 1.2832069030830553, 1.3284528000581872, 1.320302472609015, 1.2347513431823245, 1.4673242594795397, 1.4974348018406545, 1.4256172253883506, 1.7690339315015677, 2.5462760720458846, 3.4162057659714264, 2.9741187833934077, 2.5757824593416103, 2.2404104347055096, 1.2506723916124116, 0.796027421989848, 0.33701485913537965, 0.06321180220155131, 9.631947096367319e-46, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0287716191967482, 0.35581378992390356, 0.33138586555043403, 0.3007576450384022, 0.44107329138654805, 0.8620532492661823, 0.9242689338955188, 0.7419067774006329, 0.9947795038909959, 1.81896930674435, 2.3190711448097687, 2.7931259235774775, 2.840769287614421, 3.227613446552141, 3.0792086909505088, 1.9565724493486982, 1.4691020972406932, 0.9060894500846963, 0.8834333750130554, 0.9173742764744475, 1.0437878769664621, 1.1964131923925834, 0.9829565792222219, 0.5259619799758752, 0.5209163817414861, 0.44822760731466715, 0.15639816567628007, 0.02467823044173678, 0.0, 0.0, 0.03529052194000659, 1.3960432799393772, 1.3525939265503126, 0.6226000638353071, 1.166505151829611, 1.5406185000051806, 1.6925882800570093, 1.64518519650359, 1.534334061461223, 1.1560685440238103, 0.9920498228896122, 1.045816442987416, 0.6214205199069198, 0.32246167086825395, 0.453277788070384, 0.8083062238121421, 0.8261590608231586, 0.8574527065657414, 0.9759973228779586, 0.6637993286219093, 0.7475169831386665, 0.7746367784266148, 0.4821052083321007, 0.2904217091095376, 0.2649641301113661, 0.47299044524098477, 0.4999962739700017, 0.4453621404391015, 0.46292714600349427, 0.6748401233879839, 0.9787810306736446, 1.2861700116918797, 1.0761305115402706, 0.8126509648942069, 0.9109708417101139, 1.3710427925062163, 1.3968394825614183, 1.0904172559321523, 1.1300381128445594, 0.8483715544472581, 1.083945856772516, 1.7309063420208446, 1.9036587822352544, 1.761269501117809, 1.765628555883282, 1.5814889723153556, 1.4333961652090608, 1.2005454842822019, 1.339817631006568, 1.7569480681721785, 1.7903886699872515, 1.4670042821376796, 1.519955754935154, 1.9224807629798448, 1.7658484242537185, 1.0809364939998432, 0.9906980167571398, 1.6733891448868832, 1.3583072705696395, 0.48340228182838985, 0.013508793686631881, 9.35636921577842e-56, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.3673112155145112e-72, 0.29029330189667135, 0.4661313477712703, 0.6211205004746922, 0.6048279624179145, 0.6569937733218154, 0.2638267092848423, 0.034752436251360486, 0.04909339038603466, 0.11931909619205783, 0.14270337792255816, 0.38046592906610854, 0.36605993077643006, 0.18107546515013784, 0.15742522714948226, 0.055012297134002575, 0.10532604985869742, 0.34605641357885375, 0.30758863129083025, 0.39697885485315965, 0.5635793016995336, 0.7046463846983819, 0.6837981202242105, 0.24879068703402485, 1.7893484865302636e-18, 5.154847050819405e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.8094932565546763e-70, 5.333949521413109e-74, 8.835273851148306e-67, 6.8103232437651614e-71, 1.2911295120130047e-70, 0.004384918730952814, 0.06449181333677245, 0.10374615326400605, 1.1898690451958247e-66, 3.668287863871792e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 6.699262810700261e-71, 0.04179059486438064, 0.356869822389573, 0.6236515573499588, 1.0843393276225157, 2.2041708028698537, 1.7066390702787118, 0.703925978434782, 0.5242129071285149, 0.22685834111883096, 0.08039284190353158, 0.151365426919714, 0.33882358732251205, 0.1964579873187553, 0.18517455400601435, 0.43496328930703854, 0.38056446642116626, 0.45260025641277934, 0.7993143220671897, 1.0477605843680635, 0.9928414647765891, 1.0886470944019635, 1.3016854877390784, 1.7215089473717313, 1.438597124527874, 1.2926892229047695, 1.1207131036035776, 0.5421795465518677, 0.5566367615725234, 0.7866083286126049, 0.7743332739899103, 0.9261773140623042, 0.7721780388597068, 0.21096424806504288, 0.21475928753233475, 0.5473680335658315, 0.7349950456711127, 0.5763341050042072, 0.5098279848385232, 0.261306742837192, 0.29109176236660517, 0.5677895338894814, 0.9158311218666917, 1.0445436068608274, 0.7380201135098083, 0.37474843683243364, 0.47206987012075174, 0.6785522119383849, 0.6489516780211488, 0.5571344018663105, 0.9336728169034956, 1.3142930340336534, 1.4865309403017477, 1.3342777387151727, 0.9911739933137511, 0.9735965300752838, 1.116746386396926, 1.3768903249779783, 1.9271291515726716, 2.8633925904447466, 3.5873016794960364, 3.3472236429489044, 2.256685089197404, 1.0305492695824938, 0.398130062479197, 0.10170062452039019, 0.0915424283374513, 0.02908278532282793, 0.1150588976545075, 0.24230653720671658, 0.2173384330786945, 0.16445062142020905, 0.3613474699648158, 0.5771546863891217, 0.7995072404773964, 0.9567798909736247, 0.35125549583284865, 0.028088767995761765, 0.031246853800980467, 0.19676271546410362, 0.34453899556726597, 0.4557050835510381, 0.49709128824942184, 0.5451156199606011, 1.0040682122922249, 1.099408124659945, 0.6328960859591781, 0.12348802566685269, 0.037875296533817826, 0.0782448336449102, 0.09370531760305312, 0.014050515511585593, 0.0699671670320221, 0.36178544096586407, 1.1455328672224283, 2.2603612939946203, 2.027532990130169, 1.2272895274008988, 1.2532784734503366, 1.7750193390057234, 1.737362404968735, 1.2276455970843472, 0.9678553915052568, 0.8159272849525223, 1.0270021878949507, 1.0883849152737781, 1.1841239198830067, 1.2165580821272357, 1.1345626010780876, 1.315133656021672, 1.1519718750196404, 1.0514755622752006, 0.9903769662578874, 0.757696207804802, 0.7474187632888665, 0.8344313066976419, 0.9297684611852084, 1.2236720655510567, 1.2574647007215987, 1.0323788818153758, 1.1616128298811077, 1.3899614983329798, 1.282141938391078, 1.2787949344920548, 1.6518177892467065, 2.014965678361534, 2.418008895042533, 3.0007316897991956, 2.949826625954529, 3.0154956805694297, 2.822580471634865, 1.9111752110292315, 1.3262583478935, 0.8825628787989537, 0.5056799693171001, 0.19422294713309896, 0.13298706247642045, 0.17308958192075252, 0.15226805596307713, 0.20816200659186634, 0.03601504456698024, 1.5101674857123685e-65, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 9.487675731916768e-62, 0.032802487215033205, 0.05519581279860852, 0.1832839165197777, 0.29374803654042125, 0.5784680692096487, 0.8805889114026435, 0.9798094820763623, 1.6058952229390258, 2.722835493886123, 2.6382153467535687, 2.5224529931097663, 2.6425970002737955, 2.351713885684049, 1.7857270424957647, 0.9648941704981553, 1.1298589331308904, 1.2251850700653364, 1.329092056490481, 1.2246478266520313, 1.1635822583856594, 1.160642739763773, 1.1199593151196865, 0.9930805870192252, 0.7994922111906, 0.5770964551232716, 0.30955104793997634, 0.11038612097646539, 0.0, 0.0, 0.013868902782780745, 0.9210724616838526, 0.7140761203140222, 0.5254610094207237, 0.9573923969435647, 1.3862654098202256, 1.5299834702523327, 1.4730678261190064, 1.4859539806582376, 1.2101571515561318, 0.9210808134984205, 0.7699135675545712, 0.738021752077632, 0.4474128744291761, 0.5022998776641998, 0.704837427674704, 0.9145107546676492, 1.1501544616330648, 1.15123629565511, 0.592730719825397, 0.5057925516439923, 0.6320723183428214, 0.6592951767957267, 0.6046089088032467, 0.4950221632168592, 0.2441991977588751, 0.3577623343176697, 0.6033789414832178, 0.7378550371250903, 0.9401573756327366, 0.922142488561267, 0.9202250066510373, 0.6740572137701406, 0.5799541497572278, 0.6544549860621061, 0.6196792947739596, 0.8773611949183682, 1.30904980448355, 1.5923307058461091, 1.433402445017137, 1.1828151422459996, 1.372784236642076, 1.4643626267894092, 1.3325388820978787, 1.2841318151206451, 1.4023839636411708, 1.3591888120120075, 1.1948542131576687, 1.3516615833237324, 1.4492043817782019, 1.6281273832364604, 1.6000268190712177, 1.42516862090838, 1.3429865420499851, 1.2884076432587932, 1.3279161742714365, 1.2498792879059692, 1.2508027779404074, 0.8224400213663472, 0.16399277580712024, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.044555068270339726, 1.0056018383727547, 0.7579017834144821, 0.2526938376843333, 0.14019061693947865, 0.36573284459569777, 0.2088214776414299, 0.11110664743032217, 0.0, 0.0, 6.547654761667691e-05, 0.10875760847447768, 0.24867843863504735, 0.470985245531498, 0.46750734289318885, 0.29523457831817623, 0.1700640566390712, 0.28815894027505706, 0.2964992615061455, 0.17717892719148054, 0.18523344883556447, 0.5104264555113822, 0.7083801558764122, 0.5032759266714812, 0.1782872627011054, 5.90124219561229e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.031269837438131276, 0.4555365879514426, 0.16869453396617473, 0.0027553596299332433, 7.438520208324317e-67, 4.1650615023489665e-05, 0.0010742057358632678, 0.027252325080234563, 0.11975082539493442, 0.18375399922210622, 0.03790271810386603, 0.02542218142750219, 0.09552193824703537, 0.0012596465757870462, 0.0, 0.0, 0.009794467255679118, 0.154107709806258, 0.08335587222205731, 5.670223584267537e-67, 1.167879989278881e-70, 4.079924414676859e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.6470750166338434e-67, 2.717249822768191e-70, 0.051318595651048904, 0.49268403392085247, 0.9773908026274967, 1.2482400273474923, 1.5026362919320633, 1.9007992763263815, 1.7264478483548942, 0.4870850390065904, 0.0824135174861027, 0.0028147179499491415, 0.2577789261184513, 0.605902854392415, 0.5650532244948501, 0.41277758365569994, 0.34696262258339416, 0.24253702971269409, 0.5063437754288316, 0.844556014892305, 0.7470636591144775, 0.6387507437355886, 0.8304953986958594, 1.5733378656928068, 1.5206859843319762, 0.8703652665108308, 0.8750769945000094, 1.1608115001577204, 1.370670965973261, 1.0282628438407215, 0.9176184058105861, 0.785844313375069, 0.8872297593689069, 0.934979736884145, 0.8808612134143665, 0.8038800310371244, 0.42928892054283097, 0.09390145269350114, 0.23549581756674431, 0.47491865231728525, 0.4020532798910068, 0.3974708981147934, 0.30367673769120884, 0.2864262159762099, 0.3329592908558112, 0.45465486843228575, 0.5931156994507916, 0.6528801311878993, 0.7040377017979473, 1.0244993642563713, 1.0693779647090338, 0.9039420972636094, 1.01092492885806, 0.9989754203131476, 0.8526987943938913, 0.7923214129181169, 0.6145699875826303, 0.7817216940125604, 1.0644573147203573, 1.3430589327988542, 2.1239674002123508, 2.8888208257196766, 3.417367467145823, 2.494368998464779, 1.6453139437899722, 0.8429234787010706, 0.7898201232859634, 0.8096822001385249, 0.842329832856322, 0.697679038890783, 0.47705017973465047, 0.30274868709810576, 0.18585754913360475, 0.14774941467730063, 0.0, 0.0, 0.0, 0.0, 0.09176418191458513, 0.1066774009045881, 0.3053143545856898, 0.3384387902797812, 0.5094620426862093, 0.9291699137581624, 0.7703135047277101, 0.5973153290311508, 0.8521995451830868, 0.7136055618129298, 0.5658284344435494, 0.7295961462859992, 0.4626911503237494, 0.11567015224136412, 0.1395137965543478, 0.19648295398496973, 0.6797993072212627, 1.6983240427662736, 2.1436945885980094, 1.8829194600478019, 1.5581977221273178, 1.4101763517380874, 1.385231454178438, 1.4322275041518537, 1.5002436486798985, 1.4091635157061688, 1.1258616290655397, 0.6931583417458889, 0.7566915613645051, 1.20010508445381, 1.38898376703834, 1.2844814451551088, 1.1941923455653978, 1.0637721177618573, 1.0832420076096696, 1.2762736808327304, 1.1773205391716743, 0.8337918926504386, 0.8801402754829866, 0.8698318529677671, 0.762420155738571, 0.508846790305828, 0.8672967911572904, 1.189284363978814, 1.046194640688114, 1.0893280618474819, 1.079995005800484, 1.4745900088423838, 1.6029076083214022, 1.3815332570848113, 1.7608702117543231, 2.7132355984731618, 2.7302824148703166, 2.775107601866921, 2.903120364536335, 2.520341637563561, 1.5587915159113805, 0.8354233023051307, 0.7736940425714103, 0.8214603043937849, 0.954331594108826, 1.0824518148321118, 0.6310512468191973, 0.5428724175637853, 0.3074422056022428, 0.16186380243112808, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.09500250726746007, 0.1371212033940914, 0.19364025697152787, 0.19499134133717977, 1.0666979172858646, 2.3418579238298207, 2.710924143919385, 2.3618162449498072, 2.3508693746612295, 2.5338541042465437, 2.0790079296314303, 1.3723789366540728, 1.13921700079851, 0.8215341005680443, 1.2556753972639854, 1.4234949476399947, 1.2574462533075916, 1.1797915922945776, 1.4729500554353905, 1.4880911811815167, 1.029055016192629, 0.29960408213595713, 0.31121498063738784, 0.7317744675128814, 0.3504096002099324, 0.05509361440022431, 0.0, 0.0, 3.4152080618930784e-46, 0.1939830612100133, 0.4089335964692964, 0.8593720726365497, 0.8546868936044838, 0.8038650675871963, 0.8733250796724725, 1.2373198415980937, 1.3135032310302108, 1.166196167887179, 1.0387576387156514, 0.8009551906060466, 0.8415574763419933, 0.7237228759528911, 0.6187797780930602, 0.7704320517018779, 0.5471392765594487, 0.19238481254447848, 0.5378894424117711, 0.9384568148400128, 1.1222416469011023, 1.2818598400395018, 1.0699643419201408, 0.9079174129112744, 0.6337313033904515, 0.477231584173353, 0.4774685405771528, 0.4990079172062565, 0.284953518722034, 0.35285927545212203, 0.6486944336099363, 1.017011377896381, 0.686754072814665, 0.3861920361901525, 0.3742010979551402, 0.5221789041089018, 0.8436499259660799, 1.1371053375571591, 1.2641247489131189, 1.1166677788353354, 0.9375066321614476, 1.009724780556155, 1.343761390134901, 1.4267490128169271, 1.2941412293296253, 1.1074047372528781, 1.1029978813429722, 1.363660388973642, 1.5967891789114361, 1.6225373245215593, 1.5270997658890337, 1.1899602149106272, 1.2719871285167414, 1.2505380128159373, 1.3547356785557554, 1.3354917005001568, 1.100715201414971, 0.7558583716230807, 0.48722249167440523, 0.14895707973906358, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3284002638343395, 1.330457930839657, 0.5732873061889485, 0.2925261194561699, 0.12196862273646047, 0.08287060669687207, 0.0860248042401146, 0.0876926424515867, 2.3083953349223803e-13, 5.813858101895731e-70, 0.0, 0.0, 0.12721067714463263, 0.712410022239979, 0.6857259605607489, 0.23414508754093788, 0.18057728784492966, 0.1016431897294332, 0.025250097979999886, 0.01514087448787138, 0.12606591846435666, 0.42125251364752003, 0.41564161337422334, 0.2105914024565445, 0.49501033718783916, 0.502684960248164, 0.33130324720261584, 0.19553433430233103, 0.0073602502349798815, 8.582570434247508e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 7.93143458588659e-67, 3.359717048234812e-67, 0.00031004304028142693, 0.20750395863523696, 0.2661858528988468, 0.09345688385359185, 0.0, 0.0, 0.10282529801330842, 0.4714346608211919, 0.18678840305810596, 8.846932866943134e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3693768692238031, 1.3965005193040838, 1.5056664920687126, 1.16165471524711, 1.6244368841335586, 2.039663662519061, 1.5138743963817092, 0.4247342028243253, 0.5913785916101268, 1.1835532183809505, 0.8713979755866639, 0.19815827296244848, 0.0, 0.0, 0.19683778406422991, 0.8332147470527538, 0.6281619058933217, 0.3330470687107123, 0.496548653443881, 0.8418293631828853, 1.0626427378156222, 1.35247137008038, 1.3398264620827973, 1.1318469248494836, 0.9360608080442603, 0.9496252746612441, 1.3132715276515796, 1.4043915596758438, 0.8246037325321574, 0.3137370701808919, 0.43226662819576234, 0.5209193070631954, 0.41224002524542414, 0.11472291638539023, 0.05388004366437826, 0.10608723615905902, 0.39496076037028516, 0.7103245349117628, 0.8274049424136507, 0.598271768509008, 0.29996783361344015, 0.2040254340474945, 0.4414250385416416, 0.6477844534028918, 0.895947220522487, 1.056038793773041, 0.6435181769993257, 0.5310347631394485, 0.5223276835867097, 0.6129882773868225, 0.5726815496075233, 0.5952736742788289, 0.739210294955285, 0.9877859099964468, 1.0652487875098728, 1.2746142355740773, 1.4586395282790932, 1.1356309812016576, 1.9194611476965662, 2.6243517359091584, 2.7101936512000435, 1.6814021404659485, 1.1470021447935466, 0.9268282619796651, 1.1249356673952207, 1.4442131869717656, 0.7795199873363003, 0.31482886912272434, 0.4008460670927185, 0.605863047180776, 0.7663146319539607, 0.4871577567068677, 0.4737360677254401, 0.6924268708797889, 0.22022221217889992, 4.397724497559935e-16, 0.0, 0.0, 0.26276078131515135, 0.7214025698246509, 0.7735745109522476, 0.6073663281165729, 0.6301507029214726, 0.8967278836387926, 0.6798566103275903, 0.4547084838457671, 0.2610966721994288, 0.02408662051856525, 3.026722856642902e-22, 2.241532710991003e-23, 0.2506264791738886, 0.9614097883953185, 1.7522165919149444, 2.9009287580831824, 2.1581837031732363, 1.288398983296716, 1.6799886730746607, 1.8354943071051508, 1.6389911055515682, 1.4718316133775176, 1.2842317817558637, 1.0802938386360807, 1.0469280659481797, 1.0955686635476383, 1.118204402834536, 1.0774372923535793, 0.9851118731363648, 0.7809570011130837, 0.9628123531757069, 1.3799010963694514, 1.3283011160347655, 1.029354699335272, 0.9474621832467314, 0.9208273013139348, 0.9650980491022985, 1.018731957596529, 0.9942221894749679, 0.8798103868414273, 0.9127846992440745, 1.0166437815064597, 0.8235988181727159, 0.9689652735654732, 1.072048784880181, 1.2350313892373066, 1.569457331075924, 1.4342617666330995, 1.8471825782796856, 2.515743784435699, 2.395886898927202, 2.6522540946962323, 2.6575466912820644, 2.112681404079936, 1.677516149332007, 1.123056588469865, 0.8136873534531333, 0.9846232780806794, 1.209647600086683, 1.3226680236775792, 1.0421754963045373, 0.7820703925337966, 0.8411200997430548, 0.5019272731332514, 0.04230388758232895, 0.0005102757934975083, 0.017792823052688256, 0.07596473258571734, 0.0005462295789642746, 9.754748140138577e-72, 8.887736110414939e-71, 6.991636798908116e-67, 9.459642294456982e-71, 1.6828801108433065e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.017890385996665e-47, 0.06028081462636781, 0.23544586693219927, 0.3027299936511554, 0.6898837247632059, 1.318959620341559, 1.2038437336233443, 0.825883324817628, 1.635881059256704, 2.6023859993535012, 2.3719986400261064, 1.9010264192678648, 2.07407741089861, 2.0856324926862726, 1.6705519851234953, 0.7101446036654444, 0.7867580463609478, 1.0485260513760863, 1.2195614752531725, 1.0784140606920687, 0.9400854816637008, 1.0440826326899355, 1.0269403351175157, 0.7424977142614217, 0.49862803388128896, 0.47282821013665455, 0.3306955917602785, 0.2710542336004096, 0.16785822212774804, 4.201000221130609e-10, 0.0, 0.0, 0.022787566941231185, 0.8403488445737572, 0.8933225272475198, 0.47493549368755694, 0.4425310005063352, 0.669270503267061, 0.8196220893076003, 0.8144626307605449, 0.6456622451985972, 0.4714810711453197, 0.7368245466596477, 0.9884832821673548, 1.0391851107654162, 0.7842772790285188, 0.5384407374085107, 0.5276786343998197, 0.6461755812918888, 0.6024735728860833, 0.7597059415732019, 0.8860278012106306, 1.1589162838759535, 1.2134546488969136, 1.0522729559752406, 0.8815794244181099, 0.8955676772493462, 0.6558828594606894, 0.3651153419924391, 0.1730239975886585, 0.17938168525246567, 0.42969509017263263, 0.6319461792011261, 0.7291028910259492, 0.6555145010281649, 0.6723214960125148, 0.6304658627365178, 0.5600955606158919, 0.7701328244603509, 0.9174311381235754, 0.9284625478199047, 1.0186145280546413, 0.983201363996514, 1.062342916208081, 0.962641114172186, 1.0936741409032038, 1.2826330525213194, 1.4556676923566556, 1.5112949025588165, 1.6421969849262865, 1.4983609663104858, 1.309458738960089, 1.4216295150986866, 1.488934738114267, 1.2359374510472207, 0.7713597114062054, 0.7281709974658703, 0.7511098851102957, 0.6265826054377612, 0.3034268947886609, 0.1435046165545737, 1.312656161831271e-12, 5.198664041707744e-66, 8.431451270249726e-07, 0.011182029216525502, 5.469327624778538e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3462765062224413, 1.3744817832861287, 0.6254353061108873, 0.38935756840965396, 0.13349158218665114, 0.04067010011274963, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.06662684231408011, 0.2070940655007627, 0.33329897832090083, 0.4578871489421523, 0.5430188454759879, 0.3676551961235788, 0.2094354263174134, 0.07858360689967014, 0.10440668716911716, 0.12230391249437389, 0.0809732034455033, 0.18598597560812724, 0.5337194010067492, 0.90853702871199, 0.8044286444806517, 0.30392536902286693, 0.18069505983326994, 0.02362241020761524, 0.23734399866386013, 0.3729006328656084, 0.14495252132198377, 0.022127513320527648, 6.548963251575456e-62, 0.00031290602159374237, 0.12059913133993039, 0.4894598995652508, 0.49845556813753333, 0.19018758227099397, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.559810117605387e-67, 1.3767053190911123e-69, 0.10149118561821524, 0.4533655151136742, 0.858407593012064, 1.143098229406192, 1.6907342134470724, 2.067463011511691, 1.8220504465798513, 0.7072745179267628, 0.7528658125152674, 1.1150798439076794, 1.2495037511082643, 1.4953990642325152, 1.1628931157544145, 0.39177062044482014, 0.24365159177652007, 0.18385549961055236, 0.23159931362221187, 0.154653476160437, 0.23706749068274835, 0.7808513412840057, 0.8805858910329931, 0.7105433764854894, 0.6334579282025885, 0.6139006687320467, 0.7263024960775546, 0.754813620127269, 1.122176231995141, 1.168602688793058, 0.8865548204003204, 0.5610821847949978, 0.38027168607502304, 0.20471224955098766, 0.09329916988816933, 0.013962095945599329, 0.13528514682423864, 0.41933835427954946, 0.44449748091496133, 0.3948812012963323, 0.4814598892191704, 0.5229670647491993, 0.514751555024052, 0.4516976691393779, 0.5499551434428476, 0.878216498869083, 1.0086208809912165, 0.9434337750676356, 0.9194730441065282, 1.0592164826230146, 0.8452088578617492, 0.7713273600492734, 0.6670996296597629, 0.5804059764284517, 0.5055341734828858, 0.7458153849136728, 1.0435311567180747, 1.267848722532122, 1.1013666539852807, 1.1648808694818769, 1.084477121359896, 0.5562248687448381, 1.0479792607057448, 2.2198154873454, 2.728872246985702, 1.625384800962948, 1.078554943927216, 0.9101329379240362, 0.9606983150356463, 1.2638494643488798, 0.7955737592879473, 0.4052208041763983, 0.45924858778113276, 0.7355417146568612, 0.9604313467676207, 0.29387546064390335, 0.02028486808137253, 0.011174567828047766, 0.0, 0.0, 0.12379754379596708, 0.9465004927453471, 0.9283998319279476, 0.5233699057936327, 0.3297180687705783, 0.32025950437981976, 0.7203651212371689, 0.7578174120597261, 0.4371218163432786, 0.35061504916990316, 0.18730881893648998, 5.506370063048016e-75, 1.1208562094267157e-27, 0.3536884825166595, 1.3932884704278337, 2.3581773992221002, 2.5440277532108126, 2.0418475441347397, 1.8180288853364033, 1.9375563612971405, 1.927932512187013, 1.4006582635122413, 1.472617024268402, 1.4538997294496312, 1.3094437335644784, 1.3038755862788918, 1.1938156319857285, 0.9253798045381387, 0.8609795253223638, 1.1631036940257786, 0.9679157904486146, 0.5941883160085695, 0.7028570033730972, 0.8096759786464105, 0.9762284011544722, 1.3453053963758066, 1.2207068122281726, 0.9899559777846321, 0.6286839290488757, 0.5879918171412015, 0.7222453246470195, 0.6709579483947756, 0.6168347674547228, 0.7748560771866018, 0.9557285220171821, 1.1502045779309356, 1.2542528821214205, 1.4965439233356506, 1.5842672046647408, 1.420451453915362, 1.8978680170573767, 2.6937606967595116, 2.192526197786947, 2.059168042481417, 2.374075952207079, 2.4733017488171214, 1.9087089333343101, 1.0148831740253286, 0.6735840856841868, 0.7099543494101148, 0.9252620366916098, 1.1393246458203663, 1.2622037436415212, 1.061281347301147, 0.5971298811002725, 0.19007125143879477, 0.18528345009627945, 0.34583064236358396, 0.1080354654466511, 0.007161494996719364, 2.2950615401568297e-42, 6.376412157956982e-70, 0.012795048224502337, 0.24442584408690493, 0.5206226008324997, 0.4889686271497773, 0.41640212934362353, 0.308452954513573, 0.22669691885578747, 0.024004882650602077, 7.526036518734666e-67, 1.0556165580403778e-66, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.04174802583115622, 0.5509708477683581, 0.8103393457035999, 1.0790608623784124, 1.4513440082965303, 1.353785675551137, 1.6631681253766715, 2.4901180770285123, 2.695096399189211, 2.0505455926531937, 1.6765401831595597, 1.6357575604436079, 1.3019781925163585, 0.8095171241608377, 0.811803296805099, 1.0256152970766976, 1.083489668941695, 1.3804755763908503, 1.3849463703193123, 1.2028807429955037, 0.9150261068440138, 0.5593381973057063, 0.26144246851163544, 0.1577405347043106, 0.0889482210833572, 0.12421124340813439, 0.018080161399286476, 0.320298566239817, 0.3998648989544087, 0.0008629579216323929, 0.0, 0.0, 0.040398617921656665, 0.6776526256999524, 0.7273408547646341, 0.8544731032089636, 0.9361519251235819, 0.6871912858503073, 0.7395858769137362, 1.0998326456520005, 1.0902803300623987, 0.8990290735380633, 0.8514494054954049, 0.7008504234651269, 0.6367232981464355, 0.635803315820116, 0.42688117089325317, 0.30881024522477674, 0.39404653934798617, 0.6820819930911881, 0.9214572565042545, 1.0747839869566178, 1.0751285734641556, 0.8900190152309371, 0.8781675684475978, 0.8927504727616906, 0.7640090775499289, 0.8787995236731128, 0.6634490470082852, 0.3795219415166038, 0.23247783643762787, 0.3295184950930583, 0.6565312129684031, 0.7536490215216105, 0.6918064356095819, 0.4450202792544502, 0.5758617932452239, 0.6505772692422376, 0.6414816457223083, 0.7834447554932957, 0.9120205281789282, 0.7681114264454578, 0.7475036875242758, 0.925096463418388, 0.9453450224122584, 0.9802394021485306, 1.099738383913973, 1.2374439604723761, 1.1688612113758268, 1.088613760578724, 1.1945414969559351, 1.3139754445683707, 1.2021586221840295, 1.0294408149095489, 0.9448240975018507, 0.8698598706232907, 0.860436279559508, 1.1322134779925932, 0.851582839751245, 0.02445312847083958, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.116840698954424e-67, 5.889263726918664e-23, 1.0632201364256986, 1.0807062264349412, 0.5113169348083488, 0.18979974349127815, 0.07011857291581691, 0.09075332865084196, 0.14173150059605266, 0.12830513609056826, 9.284430458138298e-67, 7.752372372552265e-67, 0.0, 0.0, 0.18017969550670898, 0.5360583121587901, 0.42570402427146803, 0.3283575687624172, 0.21000706205370623, 0.09929802970651824, 0.3400389309116605, 0.5654326954393731, 0.41716611227906597, 0.27497528917948344, 0.2610331436913249, 0.07493005982854939, 0.4007389007949804, 1.1195561537573582, 1.065601686759706, 0.5064675452223675, 0.3590491525881454, 0.09646322248461647, 0.4226171360130735, 0.7715783364147342, 0.3777377791735148, 0.01194317473992812, 0.017154538597460522, 0.18718566134509818, 0.14683462639164535, 0.03929271012035329, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 7.44232467425342e-71, 0.005115585826676261, 0.3726342476217184, 0.9510154999895271, 1.2180143206212648, 1.1290415267936282, 1.4049290074362943, 1.7609724027408902, 0.9825040854110654, 0.5799881032837675, 1.1510290965818513, 1.4965596733056827, 1.3070518823053732, 0.7550227405074708, 0.5435171293047603, 0.5729119754944492, 0.34591154693135095, 0.4669740202076724, 0.6507322759335956, 0.8531092215401124, 0.5806906376246843, 0.555820593804274, 0.7466049103441605, 0.880600321734736, 0.5515519112725684, 0.16713052983600907, 0.23480608870372421, 0.7295523625007263, 0.971148060443344, 0.9233526528590552, 0.6845325161850866, 0.6028379156593964, 0.5240252847534208, 0.21991807482017922, 0.04553265618832203, 0.00023744601305170088, 0.12266598538703821, 0.3842734828163117, 0.5261448469974006, 0.5362295697386834, 0.6535585126016521, 0.8956492429348692, 0.8760958687820484, 0.7388436205697104, 0.7259344669639631, 0.9080081721626279, 0.8556476272648439, 0.4690448822052282, 0.3830602305767208, 0.519599445595432, 0.6878259614953919, 0.8117595824508186, 0.9122343408535016, 1.0560907360797955, 1.153709798093189, 1.0059129125804702, 0.9916169642157371, 0.9544088056218811, 0.8886987395170856, 0.8904865853992305, 0.6809772088681711, 0.23834125649426685, 0.4605246738684379, 1.7357908457620965, 2.6069784008270744, 1.926269373816524, 1.2693135752425064, 0.840088232452274, 0.7205251938528114, 0.6655498865545475, 0.574175629831192, 0.7059868335523447, 0.4166444778241072, 0.1394648216896508, 0.21055871723180886, 0.5235773362768583, 0.4518623281206011, 0.48697372654317306, 0.41372277665999846, 0.3144723908476976, 0.46961418603417826, 0.9873664202750412, 0.5825117017262791, 0.09932098309044424, 0.29962913885869114, 1.1892835839616964, 1.2925000204834447, 0.8322872490306885, 0.486207446954964, 3.735518324413296e-05, 0.0, 0.0, 0.23276859302222874, 1.2245660366637736, 1.729227972174968, 2.5095080462378974, 2.078044109852172, 1.575608811204404, 1.4183006569909509, 1.74343947421427, 1.48780209977582, 1.444495710031802, 1.1472541811650103, 1.2552292721425715, 1.3878417832552827, 1.4240716022726616, 1.221061135416349, 0.8427477158555554, 0.5481551145001653, 0.4667471753666099, 0.6383801804323106, 0.7169913516492876, 0.7351987450438493, 0.6780166486860253, 0.9254861116488691, 1.0917344237532376, 1.1636730449993138, 1.4011075093605996, 1.2019380028836082, 1.0882247378737162, 0.89251643161289, 0.6708994592719506, 0.6068318748426158, 0.9209046325597825, 1.1716694260008467, 0.905052369436735, 1.0534161448442916, 1.3714074101235383, 1.928230794565252, 2.169750919965793, 2.3268682018925233, 2.3907139104736075, 2.398847881749134, 2.274526075121287, 2.0967708426042577, 2.0269783051501236, 1.6914659196709323, 1.2157750829312732, 0.9294018165229865, 0.9846251707090268, 0.8852894973060508, 0.6496181195192463, 0.5312278934860757, 0.4256306815597135, 0.5408671072487437, 0.797832185513446, 0.7316450654656279, 0.7060620581555987, 0.48953654762590304, 0.1457462506950833, 0.009671209328763253, 0.039781676039759795, 0.10085155725423434, 0.08699745888492405, 0.3490812489737074, 0.8339699850648827, 0.7956754127301338, 0.6821127107332501, 0.6649334490299488, 0.5284133922344978, 0.24212612873615402, 0.08386761613918736, 0.0, 0.0, 0.0034849723789958653, 0.10837385627549967, 0.07334403294879976, 0.06430841092051853, 0.15373133732762145, 0.3857442672558733, 0.5025177096378144, 0.5219106032796503, 0.7221485768028835, 1.3825708779700676, 1.6178741046645797, 1.594367541066788, 2.434715004242719, 3.5467315814378395, 2.823026308087506, 1.862012303472639, 1.8234107344383688, 1.4821851382914843, 0.9997302475717937, 0.4791131217971021, 0.8556495018567354, 1.2568359608292354, 1.036561397676806, 0.8408381614606384, 0.4362444106309482, 0.2782738298212486, 0.2496269248057894, 0.2586920245168045, 0.08093263787977723, 0.031998936200938966, 1.6763792948694715e-71, 4.4912112566394186e-69, 0.0, 0.0, 0.013447805490575393, 0.02708540004378457, 1.008105159483731e-67, 7.265283507655548e-72, 0.35644885858006603, 1.0271710844572226, 1.008005603611096, 0.751741786940304, 0.7036292594260694, 0.889343578064711, 0.8974201218098301, 1.1246939329723773, 1.3104299072520007, 1.0349594613848154, 0.9996513432237499, 0.8373153570472915, 0.6657215481392456, 0.7055324660248949, 0.6107717544080096, 0.6116184453958908, 0.7419227955268504, 0.5317386460753859, 0.631451505496571, 0.8788982033913726, 0.9351603715791477, 0.9065774531569595, 0.68272642083015, 0.6436986419444679, 0.7637128713676624, 0.651711109640928, 0.6288123890493047, 0.4375435806702086, 0.3640118552741569, 0.5392970107925663, 0.5090339720957218, 0.27256018691005934, 0.24983662056791278, 0.4735457309616322, 0.6023997367970111, 0.7512729244481875, 0.7386132914649721, 0.6634236073651323, 0.724987447128175, 1.135284705947015, 1.0997671370663653, 0.7915187797459886, 1.0331515542316652, 0.9356877356307827, 0.8174327017265028, 0.6612587551087614, 0.8055858142591354, 1.0771673110816806, 1.1422365510682084, 0.8240834510730224, 0.7320617625955492, 0.9638357767479455, 1.1205687361280638, 1.2741222371022474, 1.0475692612899934, 0.44269453551102345, 0.11027111363786446, 3.1667946055519836e-49, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.9456995739014614e-71, 1.7616294486966987e-67, 0.663880721393074, 0.648865540115029, 0.27522195064199195, 0.0816950868707842, 0.04115926455114405, 0.02156959823196858, 0.20658755175196575, 0.4215699515653206, 0.32173924112544583, 0.5646239862120552, 0.5481345502119126, 0.3588083274729037, 0.40913235706472406, 0.8838784784352924, 0.5987632353687822, 0.22167782383861834, 0.2916054305329432, 0.23923220024768455, 0.38994654695478914, 0.7953959877068542, 0.609029521719183, 0.3235383586293814, 0.36306079201517605, 0.22400243331987113, 0.38771487911895974, 0.5713285307981018, 0.3268012003811691, 1.1527956652717022e-66, 0.010763847174827257, 0.25995786692250533, 0.6405122446382769, 0.7684867549808274, 0.5805988008769738, 0.13277087463110604, 0.15587869431341606, 0.3291105700796493, 0.16413229613842706, 0.10593205980038434, 0.0005987782366767697, 0.00699619080579833, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 6.619508657838604e-67, 7.538686248803792e-72, 0.08953981129408906, 0.20856187578438412, 0.8865440450149578, 1.2678463064253833, 1.354435714628167, 1.9076909257013455, 1.6040095581629998, 0.389737023479686, 0.1924523735538095, 0.7001959998180531, 1.0692657872191944, 1.7648841464865797, 1.1852221288677924, 0.3913039681690158, 0.18206327292063307, 0.030913613124372574, 0.07376504262888162, 0.5416324816289695, 0.609716565749352, 0.5170019448414678, 0.4253380736100212, 0.5467479255029026, 0.7822289559046567, 1.1951747897392693, 1.18647146698828, 0.8152892968872862, 0.7726465678639585, 0.6837169940483854, 0.5694603637832394, 0.4669977260264524, 0.4656389133204506, 0.5654869287787392, 0.7641913307095969, 0.932067325392282, 1.0046397497108615, 0.948800313133237, 0.7367244738137657, 0.5054144162373895, 0.37218248385676134, 0.47169539041375685, 0.5129518231196926, 0.6960418392873748, 0.8290973917218167, 0.6339723703503388, 0.6617493543411825, 0.8577070554665944, 0.8531104327105368, 0.4974229135052646, 0.4534459457163962, 0.6478698478594112, 0.7726945602963156, 1.0032295988430775, 1.1248871161378702, 1.1538506505187343, 0.9991074408849308, 0.5752299946664294, 0.46809169870711287, 0.626900458512182, 0.3984487502659704, 0.25598441122929216, 0.2043835043953699, 0.1378117396436176, 0.6686735952657195, 2.2103986428017066, 2.453417166032125, 1.462482995334554, 0.8681005266183526, 0.6810131155255341, 0.9126413144987424, 1.353523262674571, 0.8905871565850845, 0.10662573968595357, 0.0, 0.0, 0.1553298757708257, 0.4598714135093509, 0.33837318780003045, 0.413137861756141, 0.8297229503583026, 0.9702227971804724, 0.5284123523669138, 0.09653515627619313, 0.030035797142744736, 0.19738980151731145, 0.7158909130463122, 1.3185420868525313, 1.1144875226482895, 0.4972788173626306, 0.10993947482860733, 6.351483265992187e-67, 0.01930979156161161, 0.2424050715227546, 0.9231526599390385, 1.888145485408188, 2.142785687789228, 2.135116933119562, 1.647902495806207, 1.7508067845632382, 1.8077317133522683, 1.57083726485331, 1.1149819099865113, 0.7250088642450123, 0.7226599448022739, 0.7434944386149631, 0.9150465186905876, 1.1203070306923024, 1.0131044142617753, 0.9495855456464142, 0.8627637529233567, 0.7861365360158743, 0.899488602622128, 0.9443155954433315, 0.9264325942481832, 0.7779229998839732, 0.8074639318147234, 1.0707896848035858, 1.0453698139835979, 1.085174169020675, 1.181778438317238, 1.3283464554604194, 1.2299544341024102, 1.1978915108484358, 1.0657616673154422, 0.721147338855431, 0.9146509799317961, 1.4222219986095865, 1.3966901420591427, 1.2855279175824421, 1.6747834808970907, 1.8876190520212646, 1.8534187460841736, 2.2989656648441184, 2.3790705800958136, 2.178440374791535, 2.1707013504985753, 1.9747254209395493, 1.4084246411317167, 0.7795165140771907, 0.6939744089285718, 0.9267365669551033, 0.8388099066428936, 0.8978362028756237, 0.7399121283757637, 0.5389509191772959, 0.40861790507109674, 0.25836307949649395, 0.23880907944273133, 0.7240730995139444, 0.8496396713386645, 0.9080387291765533, 0.768524585491889, 0.6586037624689567, 0.7341242503181356, 0.7626939359254301, 0.722593163870787, 0.45008519918388856, 0.5961676359619474, 0.7816932365617646, 0.8603409638040063, 0.9955012249890594, 0.4754141598505299, 0.15781632080928887, 0.0, 0.0, 7.344581877500831e-67, 0.006778441696928594, 0.18573954486955646, 0.5387415150605115, 0.6614960815859519, 0.79741026317528, 1.1295670045401494, 1.4612039676305812, 1.3477754360437757, 1.1478267921941097, 1.4047215890196298, 2.4250027582674107, 2.9364892386549855, 2.2644731541630705, 2.020904826094977, 2.164634258082515, 1.6218067169496777, 1.0163183134270781, 0.837611651014246, 0.8706445481745142, 0.9562313444266834, 0.8128862201402285, 0.45408587182837223, 0.18454038727304578, 0.0, 0.0, 0.08872688027395625, 0.15236219826687236, 0.08493300621396216, 0.14486841036740827, 0.0, 0.0, 0.0, 0.0, 0.06220422743027165, 0.5700668449690092, 0.012717373380585428, 1.4084572549086225e-71, 0.2400679711295206, 0.2968352089173756, 0.48558164957870886, 0.7754069792089382, 0.779628083237359, 0.6575172966670983, 0.7069344953589649, 1.1220413671257035, 1.4272824610145562, 1.6714676409078635, 1.567751700359409, 1.073619624214416, 1.1080200190423426, 1.417703881103094, 1.0801506117704918, 0.5603298654771152, 0.5635039513638276, 0.6406990624022093, 0.5887600068832377, 0.6769941192005469, 0.7364931453280157, 0.8801521302596029, 0.8865358512761681, 0.7813640109851718, 0.46203335651387434, 0.22538729107233113, 0.25589569728277084, 0.3916160334569305, 0.3482206717625367, 0.4375673947393466, 0.550875464022571, 0.4869307190807035, 0.5157988658748422, 0.6154225793948207, 0.6663743559702198, 0.8003471863436431, 0.603774866113099, 0.523125613166485, 0.5609604833756556, 0.7667709403382474, 0.9210900806246549, 0.9375022460429285, 1.0726993546246035, 1.1232756576032585, 0.9293012604826032, 0.6886964601201271, 0.6753007612360307, 0.6268811094507534, 0.6869075014533941, 0.44068852568024397, 0.6852527013723062, 1.035147203808279, 0.9975068630706154, 0.6005173367829606, 0.057829429134589105, 1.838382904391577e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 5.983250582661724e-71, 2.7163212011797643e-67, 0.5885510162077168, 0.784335977640783, 0.4979435653319939, 0.2490750182304602, 0.22349510620030344, 0.17327328416457988, 0.18889174052084545, 0.4199658028415456, 0.8106151580077245, 1.1039671268038234, 1.186055207476798, 1.1022320528727505, 0.5623325532138814, 0.22942207338170206, 0.3256915390502435, 0.5244932813198488, 0.7068453932953709, 0.5566503694417548, 0.4773211051060322, 0.47768314516396515, 0.27692350973269697, 0.24474199273676422, 0.2642885297277111, 0.03881242168076526, 0.12231646145943742, 0.441498858305156, 0.31398958510786557, 0.0005964191259693087, 0.12337777177391729, 0.45339047833966006, 0.5448340978109769, 0.6054152365916856, 0.4001983823395818, 0.2915539982819979, 0.20429669186070498, 0.09713713333213381, 0.13549218156089982, 0.4514566240651199, 0.3395208294745231, 0.13334190419165282, 0.04876723518810189, 1.3403429500168269e-17, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 5.525954753679799e-67, 8.269906376194574e-67, 0.38625056306047156, 1.2286652245548026, 1.1925512365426272, 1.3531091680960259, 1.2914184714318253, 1.1539413128094225, 0.49573601226917674, 0.026570472743415507, 0.28039254034809247, 0.7309782502734699, 0.6436679410343551, 0.542497258726371, 0.6044291902544643, 0.757343546120083, 0.6777119972721266, 0.20261791634021975, 0.33629862700394497, 0.7380372161510564, 0.8963298914496001, 0.9923616441239034, 0.5907514375308551, 0.24553259375565606, 0.3763122619852233, 0.8365006008407505, 1.374509735215966, 1.6444250480056013, 1.3292927146745228, 0.8054228681685913, 0.8063672857133817, 0.9297462765535016, 0.773683556972177, 0.8366042909192153, 1.1315103570396445, 1.1056757374380055, 1.023866958336285, 0.8686961838230367, 0.7705437013667051, 0.7305825458263513, 0.5850428756571411, 0.19419247721204158, 0.14877558443011996, 0.48970187431679335, 0.7428942688143856, 0.8570307516543494, 0.9835167569494985, 1.0030731888000446, 0.9773673498277766, 0.7458712877362359, 0.5555517807989077, 0.4188010909011588, 0.60856677873916, 0.8112250092454474, 0.6857021703290798, 0.7354681048998515, 0.6787636482588368, 0.6125323361559687, 0.3404640048492844, 0.27136849147042597, 0.09559329913619852, 0.041554974827360036, 0.2692162381067398, 0.44114248945072987, 0.6724864034751512, 1.1493271891524728, 1.8927731950209505, 1.1477614020861893, 0.8650548981395332, 0.8547962235626336, 0.9705599422037636, 1.0732463809064399, 0.8995147196086215, 0.5714911834576384, 0.3815036374367651, 0.6894968310234617, 0.34476784463240406, 0.03608283261360512, 0.04978637298972388, 0.1719094825421621, 0.6786612158678942, 1.1393938670551194, 0.9788690142190859, 0.4606724050426614, 0.549596368637495, 1.698651853967604, 1.1175217764685073, 0.1445721178993873, 0.0, 0.0, 0.0, 0.0, 0.34910921125265304, 0.9389265420870743, 1.4569932183917587, 1.9304058742293364, 2.030352736301566, 1.8496052269018861, 1.596221626218849, 1.582549644155634, 1.2262034114230715, 1.033378395359307, 1.2041341187174481, 1.1380935209800214, 1.142143292156618, 1.1891320054901513, 0.8631145737439425, 0.5592765035147664, 0.7707480820166133, 1.1330576636845677, 1.2139250729735664, 1.1684173846160775, 1.0835601508875357, 0.8693347258170583, 0.8548128661351626, 0.9392369476270837, 0.8242848553097168, 0.644521048290926, 0.7199676474002104, 1.075629236901264, 1.2486976969944976, 1.310292901323976, 1.3475393453465045, 1.398249875851448, 1.4144944633058145, 1.1943174088539763, 1.2595391594642393, 1.3731826118166737, 1.2363522991631868, 1.0495968557680868, 1.3227522040432547, 1.6713153737856743, 1.6958656908883682, 2.342727819046786, 2.7413325164225313, 2.4943866962562566, 2.3988065239327625, 1.8477195471069194, 1.028574743432742, 0.2525143944324135, 0.244154399460772, 0.5659717379291216, 0.9989797096531028, 1.0458035206119263, 0.7096399935456112, 0.3079286186761152, 0.15731823250484922, 0.11454195704601844, 0.36769018146743804, 0.9271833791223258, 0.9734250403885767, 0.8014791126900036, 0.7535056959133932, 0.5996538121674035, 0.5542672646934967, 0.6791317025975765, 0.5962622606899828, 0.5436153896189353, 0.8885727664790153, 1.1537879061036307, 1.338466267552704, 1.3012959911549302, 0.9427819978494121, 0.6741008653905425, 0.3269817488671869, 0.04339528198951914, 0.014438253358452835, 0.052985142046552136, 0.2566540908267143, 0.5893214928169641, 1.0494417567542769, 1.7520187176708077, 1.814326794283275, 1.5770579140198748, 1.613911736884134, 1.3950560899052675, 1.6212887715369249, 2.512077744639157, 2.4420835547448974, 1.969725139883863, 1.7292132367334148, 1.0958089946612404, 0.9308106323435119, 0.886982970461986, 0.8847283185573964, 0.9816018905696389, 0.7452502972506103, 0.22524011261462196, 0.11878921042129864, 0.139772258974177, 0.11145739207580974, 0.13668204523221394, 0.0029456493083124813, 1.902780349599013e-71, 0.0, 0.0, 2.769673118174982e-60, 0.0893469873246886, 0.09951681445248628, 0.05474420680753078, 0.29275047153589995, 0.7650520383780446, 0.0030621354015716307, 6.6032249504731145e-71, 0.0, 0.0, 0.46361763671258416, 0.7635776545773219, 0.8174254805169632, 1.0694164269172148, 0.9460709640132201, 0.9067613395491527, 1.2538024713820874, 1.4410837876779539, 1.5971474156287968, 1.2146670100464831, 1.023000100301502, 0.881234942043708, 0.8377653823403222, 0.6319558453165861, 0.6434197783173659, 0.6129125864934082, 0.742852656435403, 0.9312984594526483, 0.9901500317946557, 0.8830363280221718, 0.8997229907032, 0.8503763715950505, 0.9132309837218635, 0.6822191448364698, 0.4485729335226587, 0.07907474268358783, 0.07727929257504229, 0.3714583427519216, 0.4228997364958218, 0.5431985914264637, 0.4409604800947733, 0.19647098563908472, 0.2694065934056198, 0.8380260704577758, 0.8985060428884175, 0.5572748204048459, 0.7901661725578037, 1.3058411107451775, 1.1925556627111291, 0.6964247947122573, 0.5425668008538196, 0.7222453246470195, 0.9321354593136135, 0.9930975749405349, 0.9048745530914495, 0.6729447705791394, 0.6631613744383493, 0.7994962616227816, 0.6515828333366223, 0.28948939573503196, 0.26234328151133823, 5.602367711937321e-10, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.732042992794779e-67, 0.06491096253202855, 0.8648174211187012, 1.1443440445782613, 0.6531421541171909, 0.039900374533786476, 0.005880497270729146, 0.0050336066876335295, 0.09946697380474134, 0.6105812482515063, 0.9808645653146222, 0.7861998492730358, 0.8783437466889978, 0.908545323499542, 0.8151674551254615, 0.8853777724254996, 0.6358225169215679, 0.2809562035061077, 0.39495619037603547, 0.7479348761040825, 0.5724185201802925, 0.5160130114241532, 0.36897871291239426, 0.2580156931940678, 0.12128111500729588, 0.013394442342030077, 0.1545621200435221, 0.42431749478183534, 0.6026585530784168, 0.33346031653502806, 0.20552576996133443, 0.3260127973780982, 0.43241845683681746, 0.8757242355989234, 0.6372315465162046, 0.4420151354210624, 0.18768271788645396, 0.05403286092314219, 0.05378704026350878, 0.23205995889861075, 0.30443681520411303, 0.23443295962664834, 0.15018668388542267, 0.020073687492868864, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.6677245708715986, 1.922984262931152, 2.0018187284588294, 1.7220051158956409, 0.9700951647328679, 0.23172445272951236, 0.09211528712058126, 0.4315134447452351, 0.49626300282912794, 0.2884108040757525, 0.18655021974929387, 0.4196351465567183, 0.6134735193833798, 0.6768276792053172, 0.8219319871159456, 0.7078471875531456, 0.7723570730830751, 0.8878498022908197, 0.7090698112254046, 0.6115169233774829, 0.7867103592889748, 0.7410577562933582, 0.8734547579302365, 1.3265400723714862, 1.5240616029422114, 1.4535593732964571, 1.303698905967451, 1.0634659901524088, 1.1420658340971954, 1.0810584540340642, 1.0552434030501132, 1.3856790613476875, 1.3930104377170807, 1.3152394704139283, 1.0887174951236034, 0.8034803409942128, 0.572845838342321, 0.3661881803668763, 0.19692088125588558, 0.11298078784037457, 0.0847732185063288, 0.10856372295152372, 0.3073651395388879, 0.7383560579487245, 0.5118111185604448, 0.3183469787541213, 0.3158370062318774, 0.5193538009756402, 0.6423020618203878, 0.9358082408455317, 0.7615429329956989, 0.46383438320896175, 0.6994516517299907, 0.9925319434256039, 0.7488356911031566, 0.34044793719209565, 0.30461601176979514, 0.6030136946633888, 0.7208528821257723, 0.5239903358138385, 0.6833415894107162, 0.6613247718022173, 0.952555660569999, 1.3631726488643494, 1.8274082665868718, 1.59778414571646, 0.8548109924599636, 0.15605100195250632, 0.202961323441869, 0.9329294260188057, 0.7419324475581881, 0.8221243731111514, 0.7009054133597239, 0.4833846279518106, 0.16388581580998007, 0.027083089951219996, 0.19440187478994986, 0.5072375648570073, 0.5667464108012297, 0.6482093704690328, 1.0122207766599445, 1.3226181199698317, 1.1298558920136657, 0.7787918247414041, 0.3280507924026246, 0.010419116126675343, 0.0, 0.0, 0.0, 0.0, 0.37897090627101093, 1.6133341839172886, 2.1061416621836457, 2.2182495945608025, 1.8571981773768584, 1.4180059441639656, 1.5192874136646992, 1.7783234273129125, 1.669609778128006, 1.4310958271619398, 1.0569065448197676, 1.0977618189582614, 0.8796660380773211, 0.810002424718764, 0.942356669732419, 1.1608348758523448, 1.0714134663022747, 0.8320219095172696, 0.755672762535653, 0.6599731050812672, 0.8221128076990603, 0.9509844607112115, 1.045912997602727, 0.9413288715679755, 0.8977999444198339, 0.817523670142478, 0.934341488071496, 1.2394540670812262, 1.3622311007598142, 1.188522149289625, 1.127213189478482, 0.9877949144237306, 0.9303205184288323, 1.1443606226239353, 1.1721531047917324, 1.0028664119500377, 0.9439385650876488, 1.0002291333785394, 1.1254513362787435, 1.3741427490103888, 1.5074492520661806, 2.103041895969696, 2.4945572760609593, 2.5689311922466374, 2.3714067578580966, 2.065123280408443, 1.2010405734066723, 0.3893452950084253, 0.06637823353374817, 0.027462511211987284, 0.06832462334375933, 0.6028280120757614, 0.4792667757102187, 0.14541355637478492, 0.23500299308622985, 0.3858008350338338, 0.44314040505391006, 0.7148915042535329, 0.8703504750635069, 0.9014906464472006, 0.7789083920588382, 0.6492725608154934, 0.583136925742199, 0.8855091276676355, 0.8927650027953895, 0.9910867639243328, 1.040791528909324, 0.7007579135735718, 0.9111409493438174, 1.3154401740032426, 1.0821144891157388, 0.7347764554162985, 0.9056430990995956, 1.4063692071824931, 1.6884254167149635, 2.1148097136939583, 1.7652848409762214, 1.10677532930481, 1.1388177661610968, 1.2316443558502357, 1.3712147653728266, 1.7072636171562863, 1.6248459223752434, 1.661276162254822, 1.7316027657045794, 1.9159287223083652, 1.898262837973462, 1.9753181467950185, 1.487855609708788, 0.8844544104336052, 0.5858585907186011, 0.6383377963680346, 0.44856566800996234, 0.14680288063593228, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.1731097625937986e-67, 0.03112480618439406, 0.15601069415223012, 0.4090232500457205, 0.4838812972921005, 0.9182670249377942, 0.6144129022150082, 0.2630786333482007, 0.2800732247409634, 0.04059522968564466, 0.0, 0.0, 0.0, 0.0, 0.34659021351268393, 0.6471658475611584, 0.554215879474441, 0.6994045947942062, 0.6866811681096721, 0.6202178726006338, 0.7156606604630724, 0.8585811151963441, 1.1921401594102008, 1.0048784959625578, 0.9779102540812836, 0.970503806018371, 0.823847987591364, 0.44236337280109694, 0.45517813558275577, 0.4927410180627909, 0.34718237100152294, 0.32011481410251363, 0.5640145887230155, 0.6018340878772541, 0.791174130931612, 1.1091777738688648, 0.9954984893516325, 0.5872679780488319, 0.9032743123302147, 1.0642452883599276, 0.9699015598727421, 1.0345961529674383, 0.705292172062034, 0.42493319186295153, 0.5765479756920264, 0.6535138929766617, 0.8391701291210474, 1.237284569635122, 1.1573611612281098, 0.8246751798764116, 0.7975049011976445, 0.780522503700368, 0.8903360767175315, 0.9870371459564389, 0.8297765930571046, 0.6375261036639621, 0.5298505993073945, 0.489028563845352, 0.38606121874194343, 0.40545517094944117, 0.7497637825112555, 0.8238265638158424, 0.5300588760269989, 1.7349693001745374e-07, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.45481162403171993, 1.166916421436838, 0.9767940812198503, 0.3525164838770287, 0.11964744854172071, 0.34506875324504804, 0.28720113631880295, 0.09774763411327658, 0.1642117277793922, 0.2463486982811105, 0.4032134061931494, 0.7500568584437275, 0.8752540892563196, 0.662076198237628, 0.9014453728241278, 1.2954241737442231, 1.2086985417884222, 0.920709480362575, 0.6913435713886997, 0.6411996354235185, 0.6823351389100232, 0.6664773167160689, 0.5072863844436917, 0.12727941662546982, 0.125694251608909, 0.0996159688263285, 0.23072878122596396, 0.5309762141368459, 0.6420729802203482, 1.060082346783929, 1.0613881926320232, 0.7524249322842458, 0.25217587272108233, 0.25903743876378726, 0.3906787950438826, 0.5140866176976147, 0.4339197556482901, 0.18930577647666613, 0.1631331375739018, 0.14643298756345757, 0.13372941067576338, 0.022718737486862928, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.2980508573849301e-68, 1.1071634133695684e-66, 1.1727334990694477e-07, 8.763624120732601e-67, 0.0009863939472163352, 0.01910303347373432, 0.00558670912731879, 3.4512585556161315e-70, 1.1711916020522596e-67, 0.0015526841091534488, 1.8625680195631247e-72, 3.1809728493774697e-72, 0.0, 0.0, 3.0346416975966254e-67, 0.9718440013116947, 2.100957531217219, 2.120495883580645, 1.6499411760960925, 1.0828988523786762, 0.6253099252723047, 0.8198239190969616, 0.6655457047071565, 0.376334200734707, 0.7589472152503731, 1.2204673768255958, 1.000756883734141, 0.6909472511837045, 0.21834491703593617, 0.15524339273575638, 0.2927447310747908, 0.5843299670314082, 0.5482252831082093, 0.35169628772054295, 0.4790487628175164, 0.582139275006174, 0.6245312430736796, 0.6326259251177504, 0.8531309126315278, 1.210181805763625, 1.2132500652002278, 1.2900917468123794, 1.140703104032582, 0.7486413538381989, 0.8675761353016789, 0.9899785136434645, 0.9680485574681938, 1.1770815174433125, 1.3191526663616884, 1.2055941611452567, 0.9533880726120039, 0.9559108002576977, 0.6729259947981667, 0.4085302007857514, 0.3842501315308624, 0.3007107068919055, 0.17239724764781617, 0.048632082468419435, 0.1823184515533285, 0.6478300283956493, 0.8567112917231476, 0.9110983924998095, 0.7449496220710081, 0.6172406074518086, 0.6562799065877698, 0.6869004866344, 0.7947181501025149, 1.0304754508579208, 0.7806951295299633, 0.23116334102173042, 0.24597602318482714, 0.7475592413028522, 0.8291816253729536, 0.8836398881645415, 1.1028924671341542, 0.9702636601246049, 0.6521801521384454, 0.31607669237070013, 0.6038542518922476, 1.1043085929088647, 1.863313547137352, 1.3927982735243774, 0.6655861622006256, 0.13034878131755168, 0.34775099151160305, 1.4512489377131175, 1.3401866292051636, 0.9942067371621874, 0.7019859879597448, 0.2660118253435293, 0.2572223980937203, 0.5319192106599644, 0.5932489201187572, 0.3812571613852924, 0.5607157811610364, 0.8871196095779545, 0.9988669983893352, 0.9572565137949738, 0.718522633892352, 0.12541360822314473, 0.03538716379752316, 0.006376548926766645, 0.0, 0.0, 0.011779676233928171, 0.45223983489865205, 1.3613424531894367, 1.9660504614605543, 1.7896084395548684, 1.7558623787529228, 1.4362903294230733, 1.0701902559194565, 1.0978877222672878, 1.044015151880572, 1.2674321123790975, 1.896850934732356, 1.5044114090017189, 0.8653546180494267, 0.7798184007552358, 0.9576534596114961, 1.0605974190007714, 1.0897775124604436, 1.189992204918454, 1.3282189574713499, 1.2659530554181089, 1.1210478094255905, 0.9487841728756052, 0.7467480932399582, 0.7553134234697154, 0.7385002916948658, 0.63819484386784, 0.6653823311859384, 0.8329627506808244, 1.2134317997979593, 1.1852914327528339, 0.9262383486417356, 0.7744270571211018, 1.0002837382331222, 1.1422994902449233, 1.0011623897458435, 0.7901771931306598, 0.601780080685618, 0.5157862805341473, 0.3602629330857532, 0.4697377944972949, 0.8333765627416057, 0.9098933314960647, 1.2387353780700892, 1.7502979670908303, 2.0099914040179243, 2.4040858476821683, 2.3493306342590046, 1.527397354516836, 0.8263228990563789, 0.3581366299682145, 0.046725010044515125, 0.04851710394326858, 0.29052534203148994, 0.5185641624694313, 0.8157235667436566, 0.8712429689921919, 0.4760394593889181, 0.6734323480368545, 1.2710856859917072, 1.111031388784113, 0.7403358910051026, 0.7445079803858334, 0.5564017185560175, 0.5022128594732891, 0.8085277720466735, 0.6352331182776005, 0.6138544352956075, 0.8037623579506068, 1.1831372118131753, 1.5369993437980725, 1.418274250835566, 1.2449854831220932, 1.2043101980837037, 1.529846047187803, 2.181709648101119, 2.5434303717980242, 2.305252075044578, 1.8436677990338382, 1.5466240074120066, 1.0766724745117386, 0.5909971088466683, 1.2349905858491326, 2.4093406282418073, 2.5535599635077233, 2.210665564257397, 1.9963793029603494, 2.1301032343002504, 1.9411289218124352, 1.3650996191564104, 0.7403400964212246, 0.5646154765614178, 0.3615390406785082, 0.35535415093059797, 0.05690863695816972, 3.153241155830789e-67, 0.0, 0.0, 0.0, 0.0, 2.604011750689022e-67, 0.007649668007703392, 2.7191827339703388e-67, 3.504040104144552e-71, 0.00025804417700615867, 0.26918327147031107, 0.5979946292654859, 0.9883108418491702, 0.5492850657430246, 0.18367863313255928, 0.1094579988221378, 1.782617664157156e-67, 0.0, 0.0, 1.571436069260075e-67, 0.11962767736628521, 0.20512040080633653, 0.112177847177656, 0.01987586607130254, 0.26966071146547677, 0.4065320177804921, 0.4557352615538015, 0.5846413838119737, 0.45987860833065497, 0.7694558020486966, 1.055893509104422, 1.1752095031742016, 0.9986653016094351, 0.8741488784671816, 0.7465673142336335, 0.9573859816424033, 0.9686847222284634, 0.8631409324809738, 0.6211118570799421, 0.7335005131330128, 0.9730458877402839, 1.109108221226279, 1.3175235825403888, 1.3655938333179165, 1.1801562445909894, 1.0673749418920266, 0.8168623244452569, 0.7279992961486279, 0.6560580011413464, 0.770406416322885, 0.9789709196748078, 0.985081938768019, 0.7908668735333357, 0.8534941968069667, 1.030768563090433, 1.0157151093924455, 0.8688669647110601, 0.9621910995747953, 1.2671900160269303, 0.997499362267277, 0.6921488505504527, 0.3871995387089875, 0.036002342817526234, 0.1446884264681927, 0.41096907424213214, 0.46160861297863676, 0.4994618282289629, 0.25216318182573616, 4.105084697600842e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.7077707898111427e-71, 0.00704917720487469, 0.6823178080993308, 0.9613498265537146, 0.8850513895485079, 0.5737795103684995, 0.22275888028957613, 0.22828433594675435, 0.07049430607765217, 0.048091739218909746, 0.24168460239537026, 0.3479253529316253, 0.5036227208758568, 0.7005983558449316, 0.8964857593184661, 0.84509488254254, 0.9157953004135244, 0.8029742452240249, 0.8961234804960583, 1.3053758092610224, 1.594433169990225, 1.2155495375910874, 0.6155337777296523, 0.24743674989142406, 0.48028661498860004, 0.5952397360937347, 0.4826945561226239, 0.5026069515739806, 0.5530942523154501, 0.74943443723987, 0.7108234584586661, 0.7110657985109015, 0.5028293302928013, 0.40403816578433194, 0.4456331455264859, 0.8619619390030984, 0.906353976839469, 0.671853374613022, 0.29590198696979897, 0.028912450080586183, 0.014976978279478637, 0.15678269561612979, 0.20272559902548526, 9.029825285002688e-06, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0303496710533596e-66, 1.1802548380088137e-67, 0.012770872044388926, 7.435365006684462e-67, 0.0, 0.0, 0.021636165953254682, 0.13522850304712453, 0.3814687372420309, 0.813921575627333, 0.8238760120414703, 0.2365906793778274, 4.274997047635092e-67, 3.207365745657216e-67, 0.0, 0.0, 0.246565803074561, 2.766232326467616, 2.1286625388011657, 1.3952737768404546, 0.9659988389065042, 0.7513793538382885, 0.7740851012936787, 0.6327645543299241, 0.6717786271070771, 1.3130496798922309, 1.2528381116126752, 0.8270591795904672, 0.887450191765371, 1.0202040101813168, 0.7367745093871783, 0.5350856659510015, 0.4786721844498629, 0.7453383915441272, 0.8939022036731927, 0.8333783039507949, 0.6137009901267199, 0.2717036851328345, 0.2738806866458141, 0.5614179812824318, 0.7698306221029725, 0.8328828944991393, 0.7540981276746415, 0.4754890425743987, 0.6016309261521116, 0.8210965582296836, 1.0018944167100585, 0.9145171386737481, 0.6689171234089066, 0.47140773242114165, 0.6442468864000297, 1.0281922498775344, 0.9717066263634457, 0.8641781026057203, 0.7152732581159995, 0.537453783423647, 0.5208683732234931, 0.3909663856528347, 0.3575155974155031, 0.42222888886371734, 0.6943641460638084, 1.226803052775324, 1.2101946575245535, 0.7503901612405031, 0.44758951112280343, 0.2783913740845634, 0.2909819837820784, 0.49768787283598215, 0.591005631744693, 0.6923535664871139, 0.8199373648211328, 0.787369753251145, 0.44054870285666325, 0.5654986722079833, 0.6361864421067231, 0.6053043995821241, 1.0259036120419438, 1.041156166666056, 0.8109610092276434, 0.5513558289587515, 0.5486859477810526, 0.3778047477017168, 0.7066641996730461, 1.1221891127718209, 0.9013504150928533, 0.13714837479171482, 0.0024042655154799114, 0.06032525963296487, 0.27881798696718363, 0.7679746716616229, 1.0029249090122363, 0.9888599773156592, 1.0668382794193008, 1.3033951200491742, 1.2254912142822292, 0.724380286796432, 0.6619679525684319, 0.8467280930833709, 0.39285388236965346, 4.46612321562484e-54, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4709313333709275, 1.9561292608841683, 1.6505387215011211, 1.6104912360429466, 1.665117465429148, 1.3986254242144156, 1.2854262786459572, 1.1302872646825222, 1.0736626094104054, 0.9997728000005424, 1.1236521931033536, 1.4620049880193307, 1.452927060565571, 1.3510551644927205, 1.1272359712677371, 1.0533510547338807, 1.2054897121775099, 1.2624383982656582, 1.126359797669977, 1.0743282486228054, 1.008819629353198, 0.7725058475560651, 0.6219798787937272, 0.5798049112826362, 0.5955957212921739, 0.7064972575277331, 0.6294789090618593, 0.7181107177789414, 0.4382591527398496, 0.055881434253551854, 0.15227959247204126, 0.6193010785900732, 0.7682405658965905, 0.8709371134445156, 0.9895758720860535, 1.0808596527959367, 0.8497084590110262, 0.7078776776016618, 0.6339777806466032, 0.27207036132370277, 0.31284830027074406, 0.4932695125244244, 0.7345135565885954, 0.8997875573761718, 1.5055875038070212, 1.8373941000732117, 2.204122309663944, 2.2334434321743544, 1.5825625411380315, 0.7830338283858964, 0.3954935330824725, 0.5772630967414649, 0.6656003615162831, 0.9521047528769486, 1.0289050700629474, 0.9558927348224167, 1.1004873385903835, 1.310030645015118, 1.2950478245343788, 1.36184238610673, 1.5699758927812724, 1.445842515478546, 1.4363689072197872, 1.4522940234326285, 1.2468510157814308, 1.1120023968263837, 0.6591943209308546, 0.5419194061777297, 0.840917414248171, 0.9603274903632588, 1.2485735478096558, 1.7900077840108821, 2.003271864030708, 1.9751985222599302, 1.873472907544965, 2.3171704702720177, 2.5639929498267975, 2.7376397004733377, 2.131351233492879, 1.217878813711252, 1.6514550044994394, 2.4540229300182546, 2.502678415959977, 2.0585957055767636, 1.8325431784654853, 1.776851033114113, 1.6137599942906036, 1.5953500087642993, 1.387505879411549, 1.07125182826627, 0.9267361079175807, 0.7447812005123069, 0.437111176322734, 0.24891747256071373, 0.022276874891835385, 3.3023382226074956e-67, 0.0, 0.0, 0.0, 0.0, 0.00016567064804759533, 0.2638408537744432, 0.4362850395109632, 0.6639997114509697, 0.4503824375433396, 0.1362490476937097, 0.10302596821440435, 0.31184814360132407, 0.4082199205534067, 0.3556009940234759, 0.18050168980396908, 0.4565965199153652, 0.018274775613580374, 1.8119953728229463e-71, 0.0, 0.0, 0.29530298252041476, 0.3588231088935032, 0.06911180037110753, 0.0883756013750494, 0.10002834902459146, 0.09779713537575763, 0.4327908908209146, 0.7843225696706781, 0.7422099189585687, 0.3136977428291665, 0.3958122140911655, 0.6035225707074119, 0.8817087066163367, 0.912120144917342, 0.8986300059252841, 0.8200818008956254, 0.6566817107604948, 0.3137147687994002, 0.5591623076584007, 1.0726615742106702, 1.034396821243618, 0.8616603728052183, 1.1547077307096174, 1.2466353835794166, 1.0045623245856063, 0.8077918602545289, 0.9553405976214755, 0.8509407351944134, 0.776932452243674, 0.7182793294495617, 0.6602941823521178, 0.6344168509151906, 0.7323092262687538, 0.8464649581020502, 0.853777698063741, 0.975954337327213, 0.8213839185803096, 0.7798132425074442, 0.6087169765286014, 0.5912746386484322, 0.5169202617937039, 0.10899607616440576, 0.13830933821537972, 0.47768380429262436, 0.49365321248373917, 0.07142538278586219, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.3328956864057185e-70, 0.12833265798532523, 1.0111462001197111, 1.6613434613964841, 1.3436569218334995, 0.5489524764834783, 0.30030129757154, 0.5190633811895538, 0.43008636325552985, 0.522215343214171, 0.3803070460758704, 0.0957086236132918, 0.0001514797945703951, 1.3074578985895322e-16, 0.10002523858176815, 0.3531985495762946, 0.3799217768944487, 0.20934402925960072, 0.512087559665364, 1.051370928317752, 1.034170353273467, 0.8756522833160183, 0.5957913284749203, 0.5069908708495774, 0.841456650953635, 1.5845114889089018, 1.1310716512525687, 0.6481940142194276, 0.5170859488294468, 0.6808225751233863, 0.8268149448051645, 1.1429022142774556, 0.9391490307653072, 0.663313018555133, 0.49481258665867145, 0.8461702823124142, 0.7412620887339507, 0.6440131532377222, 0.5762617074979062, 0.5267033284408171, 0.35414172273789646, 0.1453235630020311, 0.11988901957273868, 0.005868139900411018, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2604197577335441, 0.9199710405765735, 1.1173786227875695, 0.6689523206944301, 0.34691010114551446, 0.02022679272100647, 4.271334470868786e-37, 0.05733670580256334, 0.05619385255023723, 1.221722154550612e-66, 0.008305640316888019, 0.028863442938291906, 0.23471361604521235, 0.5783245520697768, 0.5943557528867274, 0.6375825483928566, 0.341462611911286, 5.856219551782292e-67, 0.0, 0.0, 6.102224008398498e-67, 1.7604063156163412e-62, 0.8082824308869228, 2.678291835848597, 1.7847678626208676, 1.2167395383238642, 0.8906507196032045, 1.3347487134879543, 1.1233216471471366, 0.5357677082313081, 0.7289854302606535, 1.4971080572652227, 1.5240245170049462, 1.5126027011074825, 1.4923981506490804, 0.8229125259418311, 0.383888351196763, 0.20459781249206888, 0.48730445663954924, 1.0438811711777731, 0.8209675865109602, 0.24178535487011743, 0.459429080567034, 1.125529240625056, 0.6249493133348096, 0.06465991028850127, 0.036603594074279044, 0.17147823512048266, 0.5160580552890828, 0.629851137557015, 0.8814670517493859, 0.9011718311460335, 0.7877291255163641, 1.03143747973769, 0.9762709215944518, 0.6131976416418752, 0.5927429263686612, 0.9527071504184192, 0.717539868281861, 0.32012553827394186, 0.29371618483196826, 0.4665852817724705, 0.5669377607464554, 0.5883584300841562, 0.42208784384776266, 0.3660754378288722, 0.5013046033841562, 0.7074164854973475, 0.7242702072454996, 0.48735122552569976, 0.3555119273038976, 0.35189214251681733, 0.3720110890577679, 0.29037230847714923, 0.3277619718801361, 0.7113263777278576, 0.7756155733108336, 0.679120798032784, 0.5670883862776464, 0.769054101331804, 0.8671150639730882, 0.607174960493527, 0.95787092234929, 1.4092600279928433, 1.2083502102623243, 0.8678700725471487, 0.7063332405476928, 0.6156825878509018, 0.9368600213043123, 1.1068781697090913, 0.6213869720139122, 0.09233244437842902, 0.001583946252800908, 0.008391852811244827, 0.07862112270316945, 0.3220803965445249, 0.48137792103312904, 0.40929737952453493, 0.6046234617063106, 1.1723929163946565, 1.1772659552321443, 1.1255092584090107, 0.9491778485287483, 0.3620492833661615, 0.010708669382318237, 4.648563031201978e-67, 0.0, 0.0, 0.0, 0.0, 0.3625351941527697, 1.4431352114389142, 1.5052905849877476, 1.0399848823813187, 1.2752837536123138, 2.0960024185624206, 2.0066099637381427, 0.9112215142192923, 0.9323936312048922, 1.6223851769630073, 1.4484186406625668, 0.9118082203712028, 0.8287071071004135, 0.686024804963381, 0.7747962653558069, 1.1716020699044662, 1.1076596619918888, 0.8384706104700399, 1.063166298253293, 1.3950822790259423, 0.9359115701556817, 0.4964565912273997, 0.6447309435540696, 0.9163801675647711, 0.8234000939012276, 0.44450423653674775, 0.42003873312665974, 0.9319438390069514, 0.8323224858197911, 0.5047278447247585, 0.3658907449353279, 0.21493497213392576, 0.14794617059443738, 0.2499732680314546, 0.35725362623353263, 0.45958689941727826, 0.6880036361590989, 1.1234464806547209, 1.04241184563422, 0.6242123901416932, 0.7691327185160759, 0.7857488904065235, 0.48090733872971114, 0.41272872112259407, 0.6328218310232501, 0.8850033905446395, 1.5383998312364753, 2.0549500813558694, 2.484079911014092, 2.1337351405747995, 1.8038585603793678, 1.8146614402508163, 1.4750581967874155, 1.3411036868574797, 0.938506588579969, 0.4273225133637517, 0.8287627789038687, 1.6516091218679918, 1.6028089041726759, 1.272837783082096, 1.1254725826512555, 1.1491462310232237, 1.3761627584035665, 1.6298783216053039, 1.530676872575043, 1.544800148280956, 1.4730542258241854, 0.8954383981705547, 0.5220525400409883, 0.6195380718020296, 1.024815519754668, 1.8651967457266352, 2.061061802584163, 2.1448418099012656, 2.213506280148195, 2.426797092960342, 2.7120803370263644, 2.7330068819110807, 2.6156590129890134, 2.3347719692537794, 2.225855504279494, 2.316147492438688, 2.8829233008958823, 2.8659114258279175, 2.3694286010805996, 1.5620130679945419, 1.5421375823410841, 2.1818793919544675, 1.8018388911473835, 0.9810933851777328, 0.550073523264075, 0.5776133942426895, 0.5852030002992628, 0.6575651460995147, 0.47227563923783933, 0.3278872870260443, 0.40583228840205265, 0.5274139454434454, 0.23909240074226545, 0.10922247331370816, 0.02897301795548035, 0.018647256127280798, 0.1662030106419934, 0.5474693756762896, 0.7376255788569921, 0.7356635877960258, 0.5472340717534543, 0.3698032219681977, 0.17315505466712366, 0.21335284503771224, 0.1732757156602851, 0.0008646774488481647, 1.6224718174247843e-21, 0.25073576384659546, 0.020907868339784308, 3.2268011423907215e-71, 0.16566482157432816, 0.18641477880245194, 0.09670948231321663, 0.2619989033840717, 0.04322672353654711, 6.738113244048425e-39, 0.0, 0.0, 0.12913537534758124, 0.3043388188316385, 0.5415517703744719, 1.1042542253654943, 0.9167842981698868, 0.3210896930027616, 0.3282420668895156, 0.4801714562020152, 0.38191755466891664, 0.07085132103867497, 0.2147531278568815, 0.4780299096279492, 0.45821761557371943, 0.5265265059238686, 0.7844976213222168, 0.9390644681002556, 1.086686988383235, 1.2856979555313188, 1.207691164963208, 0.7942150343706658, 0.7355844509002054, 0.613605084963865, 0.6392943039857393, 0.7418544116562522, 0.696102906158572, 0.6019991762516383, 0.7597518678981174, 0.7629737005081552, 0.6461049591326287, 0.5176297396116212, 0.4354029681854996, 0.5949253250463613, 0.4553184911689847, 0.16951842007110773, 0.21682053420598724, 0.6403353748876874, 0.9314453732437791, 0.8436958046724072, 0.1606477509058699, 5.929903146625127e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.821888516205363e-67, 0.9900736415161759, 1.4821508874835132, 0.9224021352175704, 0.7215048368695456, 0.8569872707052042, 0.7147816441561226, 0.6765158432108507, 0.4572838870854099, 0.17740198981721633, 0.11665000510490486, 0.12567789607805935, 0.09878121204235502, 0.15714312356220805, 0.1299743948157337, 0.04810226864402356, 0.11228070201470075, 0.212749864557793, 0.21715363040044622, 0.11240496539380729, 0.26969760753060257, 0.7183588434374002, 0.8343656446891714, 0.7949541965501794, 0.8542860034585296, 1.3303278566304613, 1.2295930065864837, 1.22857193707938, 1.126302612740119, 0.7755838677189821, 0.6407122303610926, 0.8849002195216968, 0.6782254490257209, 0.5878890763089117, 0.4900069093947792, 0.6669360655147081, 0.7044337559992897, 0.70933132969353, 0.5093204668410181, 0.31046003300463454, 0.4106434310081255, 0.36323607590838947, 0.43378156046811966, 0.2828047439764738, 0.26356586962208794, 0.007921672675227642, 6.3186287201569e-45, 0.16287230206666337, 0.4384522861483333, 0.5668349913997339, 0.5690738780226781, 0.368433507010252, 0.2480926376572592, 0.37316245270632464, 0.28337742500106344, 0.1236613483336777, 0.04431696985722078, 0.04275449343601445, 0.050505629001023955, 0.12193073995787529, 0.3688984847386223, 0.7700018523636665, 1.0249219617012528, 0.6316892013616702, 0.3756052993582024, 0.3258273451074025, 0.20513052408421917, 6.625364830903681e-67, 1.952516695412388e-71, 2.8974920971203777e-47, 0.49559341950768854, 0.8340277929866922, 1.3112291602456025, 1.2750802144537943, 1.0334479552657427, 0.7106399467766131, 1.182988618715072, 1.5290402116988844, 1.3691414806994686, 1.4925720385750907, 1.5989379960081038, 1.6414766260911762, 1.3870197895787584, 0.7450820475028763, 0.73011370905283, 0.6382619847872775, 0.622609940395197, 0.6829598842933251, 0.6610531647589291, 0.6720328833179714, 0.7452163370559539, 0.8431605577418431, 0.9067272851066868, 0.5605439590902428, 0.23750451975687614, 0.24583128181010583, 0.3180588324952147, 0.3294859229586997, 0.7229357148279156, 0.9453773604145823, 1.1513053661567483, 1.0896948822483523, 1.0189170191154062, 1.1153588155114136, 0.8330036594174182, 0.5122005970381593, 0.45660699173710384, 0.3578409144665926, 0.4777757571970511, 0.674582497239399, 0.6158164481444715, 0.5518072688863782, 0.5524258084776967, 0.21787336417954695, 0.17536857527034044, 0.4505707819289597, 0.6055898138613749, 0.3526140938384401, 0.30004109359652276, 0.44713806038888393, 0.6472942638203136, 0.8070828428628829, 0.6518933934106741, 0.38177508878619903, 0.4826133938650514, 0.8621177781017231, 1.3095182157375262, 1.5559997355790642, 1.398822804678744, 0.8591284158430881, 0.5340235614212361, 0.49667735325442663, 0.6683846946488394, 0.6532454364194251, 0.5573521560393289, 0.8964986266415877, 0.6940633912553871, 0.3027095299078155, 0.5602398316513622, 0.7584443421596667, 0.5890068191289153, 0.010837929251126754, 0.0, 0.0, 0.0, 0.0, 0.03330116110214476, 0.43941408712397845, 0.8328781076016902, 1.3101848299880317, 1.2782891908432816, 0.9548144793984683, 0.6764444644492329, 0.05451784692320083, 0.0, 0.0, 0.0, 0.0, 0.19846399778140267, 0.844823454967699, 1.332500902004142, 1.197843497465115, 1.1946876866859526, 1.6442220453063925, 1.8431615218430721, 1.6524067864839367, 1.2384968342619374, 0.7959128775023636, 0.8059327314042584, 0.9245269311452695, 0.7830391027620323, 0.5551932277342075, 0.6354968978777755, 0.8458290620731077, 0.9248785117765834, 0.9856299398877333, 0.904669201489142, 0.9709623381968981, 0.9309249571530565, 0.9326773967826654, 0.668348440275853, 0.5458591561055215, 0.7597559202875495, 0.7199228385748633, 0.8898235652332609, 1.532897642191756, 1.107411009655209, 0.46301377394462406, 0.5457012498709766, 0.8886617670217589, 0.8001355057216166, 0.5614401330927308, 0.41329257752196114, 0.48677567506098285, 0.6695639847687431, 0.7850209922910523, 0.928659094307168, 0.8050879335885988, 0.8809394213204911, 0.7092805280910888, 0.9510064322828136, 0.9179173885877958, 0.7188119651718949, 0.9756952663843812, 1.2407667163943756, 1.1969022120706683, 1.642967619952529, 2.121336150362879, 2.5650188606495163, 2.93855077822856, 2.6552963823351092, 2.853578021943818, 2.2009820068355026, 1.609672900587512, 1.163781839288859, 0.823204313906345, 0.8277950287799207, 0.9227439216431321, 0.9490896998941913, 0.897396406738963, 0.6245152278384616, 0.26484246207690276, 0.5241457596601009, 1.360798390127016, 1.49866478960179, 1.4706014129690317, 1.5745049947387457, 1.3592260587088845, 0.7961409110532749, 0.5756342117458644, 1.0288944291398963, 1.741390686902733, 1.9709878373216725, 2.4502274956171846, 3.0028334192312656, 3.3616830088892726, 2.9976333121363865, 2.5545914065015864, 2.4870918738290584, 1.8992385698987988, 1.880011832199898, 2.7067670277901925, 2.450224510006649, 1.429344279248653, 1.1630802954986308, 1.5542217758325592, 1.4076087367826062, 0.9249602549643363, 0.9983340293659104, 1.0973092262224924, 0.969688018160241, 0.8803033415833852, 0.787906779001478, 0.6941937964203504, 0.5039297756871406, 0.4333403470085706, 0.51329817665669, 0.6787842731649931, 0.6628946316040221, 0.6141474633062138, 0.6425444666089994, 0.7164590883017787, 0.6758278029327904, 0.4073916625641374, 0.1815494390612571, 0.13237686648096858, 0.424337839986638, 0.8567193464575809, 0.37493396476406815, 0.1028826069329023, 0.02955973537945855, 0.24444337798264915, 0.4099199446561421, 0.20247681564891096, 8.679871992470952e-19, 2.853810321801793e-67, 0.11135839589337948, 0.10801871553355458, 0.12893126707789193, 0.46451970007366583, 0.2536430391694786, 0.1956364272615616, 0.0779024833412203, 0.054065972711691224, 0.17586144474377363, 0.24203636022889796, 0.22722215613966057, 0.3168493718565202, 0.49275674994817464, 0.676745692717887, 0.5287638858835777, 0.5611987198001636, 0.4948752285432789, 0.15820187790172557, 0.13835247845499854, 0.1421942886649994, 0.24201099579699648, 0.41948658287566687, 0.40051035239265786, 0.3170071486802364, 0.7956721163346323, 1.213436527180093, 0.9902648599929762, 0.8623024125347776, 0.7225851584730805, 0.3197262347226939, 0.246863578751765, 0.37188727597117577, 0.3201434797422422, 0.22439800224362116, 0.3545650135198599, 0.40483729625897524, 0.4115352455774115, 0.4821699378453559, 0.5412130241766455, 0.6041847269452774, 0.7805642102057533, 0.7419037996911015, 0.9399591537442156, 1.1704547330978698, 0.8076173353291694, 0.269683802163744, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.579742172149951e-71, 0.18611431786816812, 0.9435605678464185, 1.658338148372934, 1.336131270109945, 1.140467319696711, 0.8006045466362686, 0.6928480247280646, 0.8225390522750473, 1.0663335113533776, 0.7338252155232148, 0.38915355753510994, 0.3735774315714515, 0.19063858327969285, 0.11706737892911079, 0.18718426879975514, 0.17355607224019654, 0.06025983829323267, 0.07449629777278588, 0.3844487139875561, 0.6057745295373849, 0.6712434001713063, 0.42854473601670406, 0.24935769620038073, 0.17019489790881526, 0.40880774735839864, 0.5259128750031437, 0.42809176500897195, 0.6593833594054246, 1.0865781315833942, 1.0481105750952793, 0.8908835033619198, 0.34940848478277076, 0.17064582718635624, 0.4491164967675765, 1.015609867436197, 1.1262226574845045, 0.9582918015221367, 0.6677953906729819, 0.28948394389241017, 0.3316832807708039, 0.7279826153461535, 0.8907880909703181, 0.856482023518712, 0.5518733314820565, 0.06280012609993779, 0.0, 0.0, 0.003357725129374836, 0.2475748452321449, 0.18470660153028362, 9.664677271941398e-67, 5.33759740491256e-64, 0.11880872728568992, 0.33138243435093173, 0.5441738314630129, 0.5206704259860864, 0.46382025661343107, 0.2581056217151776, 0.2122691545475286, 0.4982559525168462, 1.1537471871715752, 1.6668149171491677, 1.707335891302364, 1.0534538295115823, 0.5601475745618565, 0.14518894313472064, 1.0088637573463008e-71, 4.7484058070187976e-67, 0.2295172385560642, 0.9716311859116935, 0.9289233333477718, 0.7704073580231388, 0.5665611947183748, 1.0160770103260717, 1.237232590816589, 1.5025228978044112, 1.4500440228548683, 1.3663057814694781, 1.3893985371522746, 1.217297140570409, 1.1323215527372668, 1.175162721905508, 1.2457190217052272, 1.2664721833312456, 1.1612479709065724, 1.1405661118947705, 0.6720296583991967, 0.706249586195927, 0.9781249349671839, 0.905323210035025, 0.9091084349194176, 0.9953218702823428, 0.8099347270764525, 0.5371794018956599, 0.345192291187292, 0.3372439651068362, 0.25791373260494765, 0.33409083190214517, 0.38519908962939553, 0.636600310066374, 0.8839898838880487, 0.8693551772616992, 0.9239859920859637, 0.8458131649929932, 0.6789410326920375, 0.611663289300882, 0.7507458484622163, 0.8296687664775995, 0.7436644622487485, 0.41576889425957475, 0.23974543012504146, 0.12153199616748012, 0.04309585959406648, 0.050782216169516836, 0.1972002660323966, 0.45878879044153464, 0.6712232808150844, 0.8058404839617062, 0.5841997561700261, 0.762666347482309, 1.1117059970856644, 1.1576461418555937, 1.074233109376351, 0.9478456034664795, 0.9716853570299833, 0.9673638259355108, 0.8822984879703313, 0.7383476584061022, 0.17627581741841425, 0.08530551241200701, 0.2776089053986688, 0.6405162516792906, 0.959813080934456, 0.6713548434250107, 0.40644172567057524, 0.47311523518169807, 0.6558942516484336, 1.1167877068655798, 1.2276028025967776, 0.7999907045783097, 0.15992584134338372, 6.850781863156408e-67, 3.167394287328019e-71, 0.0, 0.0, 1.7405522225493943e-68, 0.09411391996241392, 0.910477221259498, 1.742925748042822, 1.09730972572153, 0.3814707251849292, 0.22436112869526426, 2.619798660682173e-58, 0.0, 0.0, 0.0, 0.0, 0.4024465839461868, 1.503942971015718, 1.3627512359564662, 0.7494965645304461, 1.1587848752793093, 1.7269243627288375, 1.4927928354957345, 0.8168965867210467, 0.8445074836044206, 0.8680776464366922, 0.7574605721413405, 0.595102889489457, 0.8050955279477421, 0.9923789821573905, 1.0347419052255304, 0.8928182805972398, 0.9606710907521574, 1.3958460956814775, 1.475022870182329, 1.1150478701495103, 1.0814060282896776, 1.1555915274659725, 0.854404012752866, 0.4442914988409399, 0.5846935225586982, 0.8026323442449126, 0.6589330220507215, 0.6092045262380594, 0.6812441212567286, 1.28411911693469, 1.5758263885624189, 1.5472227095526705, 1.4275741481017121, 1.0087705390815813, 0.6708778804564339, 0.6685860607547944, 0.9377245659160316, 1.232679406938587, 1.2717174419185682, 1.0643776178803819, 1.1275734218356916, 0.894320174131181, 1.1729823530995418, 0.9765240610500427, 0.8933065279600214, 0.9982730460035647, 1.3215980423081106, 1.322295962097897, 1.690225522888852, 2.087455018418268, 2.6524991065230665, 2.662169981565299, 2.4851881822999076, 2.53243453113123, 1.942115607691676, 1.3622722849460303, 0.6290719958083493, 0.13826423215920514, 0.19485263269247355, 0.2503304380585547, 0.48462184172467815, 0.8882430987615066, 0.8407820855376293, 0.6801790467471278, 0.7816395904058062, 0.8248875916216925, 0.7688218277564829, 0.7769494745783199, 0.9067236526705678, 1.0167461921358978, 1.286909902826224, 1.4043319437837596, 1.4515832782567628, 1.8337107536922872, 1.9733151648271274, 2.449130033126167, 2.650549032697441, 2.694344561105538, 2.3232927295640735, 1.8203207240376287, 1.8349975505982599, 1.8422640542269164, 1.8747725992921573, 1.5189770993529805, 1.2290970886397332, 1.2862451809780993, 1.1542791508390025, 1.4053161917650527, 1.5123778050970174, 1.121057654470988, 0.9874939992204332, 1.157285240714728, 1.0952312961197919, 1.0230459183299132, 0.7005159397692893, 0.765016587297751, 0.762685919609396, 1.180549966566332, 1.1260468165119306, 0.8000268503227659, 0.636834692033549, 0.6811324504775627, 0.7595866643001159, 0.6348933072143979, 0.6075572612979983, 0.44135637269347683, 0.5878545266937749, 0.8280739041477005, 0.8642400511805057, 0.7316935006682321, 0.5460499422338785, 0.39355692003597653, 0.29064769507371935, 0.542775102676444, 0.49214113453332686, 0.02396762987318035, 0.0, 0.0, 0.07677654660196342, 0.12439106390252164, 0.16652362855360536, 0.5490243743657288, 0.5270587934219861, 0.7759254193411493, 0.6719896895936053, 0.40483858569448117, 0.20986674237222136, 0.27111946655367447, 0.5145527213462628, 0.8523141086303809, 0.7566951907918771, 0.4297451031725963, 0.45766034486678464, 0.5527988002866238, 0.4318247759926841, 0.07553360036627854, 0.07194648082942479, 0.15603447324111475, 0.011105407361338193, 6.2898147676028705e-71, 1.3030680094507895e-67, 6.474459525821891e-25, 0.25853598138587586, 0.6052962379273055, 0.6645083319668608, 0.5767135422829597, 0.5296900806025775, 0.36839725628476927, 0.5069078606904895, 0.48067903504369625, 0.21117195307734793, 0.013797755935816058, 0.04123428391828643, 0.255201534150288, 0.5992865570739845, 0.6888144875838442, 0.39115320108397, 0.2264112285585549, 0.49633573052890156, 0.8559235451721179, 1.0479055525158856, 1.0284243487326563, 0.6514864179001769, 0.0438081851836023, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004786992576797433, 1.2347553171237138, 1.4721697627706476, 1.2588200198826058, 0.9016013452435487, 0.4539315705370086, 0.36897791638043387, 0.6440753376176787, 0.7329278642960766, 0.8016934259003392, 0.7772139751782703, 0.9657976768412624, 1.2538398467888925, 1.3692910150287076, 1.0986552890257286, 0.8125557547707594, 0.6406420982259533, 0.3245062091773434, 0.06829637964032376, 2.6927423807653625e-05, 0.035902836698628926, 0.20262910456225658, 0.041114419870169394, 0.02026022296698593, 2.201028242445154e-66, 2.0948425237279701e-66, 0.004855098594770679, 0.22079490216825182, 0.3403219131369042, 0.513403318418856, 0.6446216367863009, 0.8935372921152975, 0.5822193175993142, 0.13596283023458966, 0.30289320363613115, 0.7575621472665297, 0.7968199934848599, 0.7937969373488727, 1.0261443884951973, 1.2172692574242916, 1.0950803460119118, 0.9112396076683673, 0.873424565654787, 0.6773708179452775, 0.7113925354506279, 0.6581158781842902, 0.4197061173893104, 0.254369410123477, 0.15500375255844379, 0.16650611641786384, 0.2778800582916894, 0.23683836526533142, 0.5769953950792264, 0.9775332932724758, 0.6945998888102309, 0.16128610533320398, 0.181240010450062, 0.6243629991503816, 0.8644683602657075, 0.6737154880547678, 0.8619050523873604, 1.4009460886163652, 1.4488622798376696, 1.1641314042936415, 1.0568141409314649, 0.24044576080587277, 8.20122376655149e-67, 6.016425285041374e-67, 0.06310967047878169, 1.4984651558422826, 1.4271266599094048, 0.19250378434107063, 0.07953980374262315, 0.5255724884274429, 1.276649447430728, 1.7876117480029876, 1.9656112147359295, 1.90915099983755, 1.558091178622135, 1.0615395046457365, 1.0550937649341563, 1.5598293639417449, 1.699905285454463, 1.4560733134958923, 1.2101778715647384, 0.8081076386464616, 0.854388255671612, 1.1463421807525833, 1.0328837877280108, 0.7604133816848879, 0.7708774429136476, 1.2490070311419146, 1.243856729534457, 0.9172857904652609, 0.9587784889994424, 1.2152254513805474, 0.5822991837611688, 0.026079042010845876, 0.14091241128939203, 0.5404354143188961, 0.5761611730038716, 0.45843261195230767, 0.5904802595915157, 0.6125857973565871, 0.5561235195348537, 0.36121376606681466, 0.3900186092448763, 0.6022443997007123, 0.7379890834750427, 0.6841646773164598, 0.6316834218563514, 0.4145738679718569, 0.26539341239868364, 0.12252450946366267, 0.19570376572852766, 0.47617781256059644, 0.7236090943529838, 0.9990993382881221, 1.0564029068455625, 0.8650333886073582, 0.8314516815112825, 1.0533231595878902, 1.1768611422878763, 1.2199224788542438, 0.9295963935418428, 0.500300282105659, 0.44305859260476055, 0.7816947121205544, 0.9695876534601702, 0.6760296009474729, 0.3692556684873125, 0.20451537508475415, 0.368694116100162, 0.41345935661221134, 0.4674782447165313, 0.6740567244102103, 0.8585188174994443, 0.9047766935129999, 0.9448651173035074, 1.0960126603463891, 0.8048098549682017, 0.2321606379739558, 0.09959932053335763, 0.15087591961497537, 0.7062970732080522, 0.8363263810897479, 0.548211778612032, 0.5101961019399823, 0.335753957418806, 0.030366637753346026, 0.0007014794863382523, 8.271146591904274e-68, 0.0, 0.0, 0.0, 0.0, 0.15991716503620879, 1.2065815451567374, 1.0798609656958433, 0.23195812467770338, 0.5130945858602445, 1.3570740929115033, 1.296967858607104, 0.9144295885327871, 0.9245362155912176, 1.0118427752836965, 0.9916358389681967, 1.0515572194942848, 0.7938409088370832, 0.20227340603356936, 0.659886335609631, 1.4981937453070628, 1.4628944670860164, 0.9216261659572069, 0.8334190052337931, 0.924557764855308, 0.9935684238844864, 1.3454876392933244, 1.4057359372175284, 0.8050022588633965, 0.4764238051046199, 0.4128131984526249, 0.6681481818216071, 1.1338300633005929, 1.0794930795128863, 1.1733134114143127, 1.1562300496307785, 1.4030037700554345, 1.5004019307548475, 1.4313924675605136, 1.5056463059825234, 1.578240199709299, 1.6664818825534553, 1.7202144281691858, 1.6940495497337906, 1.3381300501101236, 1.0477151923632846, 0.9065691673573752, 0.9499419748254354, 0.8926281548401818, 1.1908480321778967, 1.0536711412618303, 1.1933090120809453, 1.335612383087792, 1.1237325625416048, 0.921473849226917, 1.352856803949308, 2.0255851381979397, 2.145128488581932, 1.8614173125006914, 1.4893257641781474, 1.5512600753102248, 1.495707835602289, 1.2146691121731834, 0.5287345002772135, 0.10439698062340597, 0.22926987298007262, 0.5212940742655157, 0.5471182022785435, 0.6319681649826556, 0.84365255382966, 0.8785140207013598, 0.7210684805052416, 0.5826007779342177, 0.6731154270552366, 0.7983437948725545, 1.160025597338418, 1.7237770144567008, 1.5395299692499975, 1.0340210046689577, 1.0957475991599495, 1.3679162206690307, 1.9022544094516434, 2.15562164842504, 1.9303333297371097, 1.8702947735307731, 1.5799065727154726, 1.35164107150581, 1.4584183925877028, 1.3243263489835613, 1.3320427065775817, 1.1207910961958447, 0.9928656964200542, 1.1956398325096984, 1.3683615795383872, 1.4234517103614621, 1.2812636213666906, 1.15865167768483, 1.142103543613814, 0.9916513899998449, 1.032633984394181, 1.1502416544661997, 0.8190792149693813, 0.47276935657924923, 0.48027199219660943, 0.7955052851068558, 1.2186101141947034, 1.3447982784810506, 1.3620513446415004, 0.9405322628344983, 0.692097577122869, 0.6460624152171022, 0.8459012038034786, 0.9813209327297869, 0.8743964393972625, 0.5075433415376871, 0.47094425891879155, 0.5371536276133071, 0.47764376305190126, 0.447317353624058, 0.1695301016887365, 0.05263712889622263, 0.33680457933096264, 0.5656845214843997, 0.22681235248768772, 7.700292966380954e-22, 0.0, 0.0, 0.008310987708285644, 0.3920322642378018, 0.41477568345959526, 0.4623896338090141, 0.7654790798818034, 1.0257821477831044, 0.9474766877452225, 0.6704725366270203, 0.5938808890812339, 0.7120512641009213, 0.48927535165609015, 0.43105851573671217, 0.6107901079149656, 0.7622582009432257, 0.6282229423009653, 0.29896307802070865, 0.27097696970566076, 0.395886166426763, 0.24522375646544337, 0.0418590467701494, 0.05348409686696787, 0.19442986431748555, 0.4300325780545542, 0.573231526745932, 0.41823479861604085, 0.393767318052344, 0.46971548985085576, 0.5375364611451552, 0.6106844625686705, 0.5846240655118642, 0.47874501379709855, 0.6776006163771662, 0.658209011043315, 0.4762229749924387, 0.5257590909873819, 0.6310556976495185, 0.5850333928803799, 0.7877927144859633, 0.9609502455886378, 1.048287545231247, 0.9043132081109349, 0.19470329518405638, 0.0024001007704038124, 1.2061117922644718e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.05544602822567435, 0.9026664607980628, 1.210084764057683, 1.4179772695025008, 0.7275045474978157, 0.09081085106774722, 0.07085801644272838, 0.1809446636285097, 0.18875591818956483, 0.3740865451911759, 0.6677076214348432, 1.341000978473005, 1.4665261138998744, 1.0832315856092123, 0.9294402016347227, 0.7795022001213034, 0.7275545740444755, 0.7962043067786659, 0.7327249899934465, 0.5318660030809497, 0.3298188367294621, 0.2157149944814316, 0.04919763928287879, 0.017807789318347922, 0.042883937391559934, 0.06918035592526905, 0.07383528486072066, 0.21314566602024243, 0.5385269027590454, 0.9672115269263628, 1.0920069717674465, 1.0746327225215282, 0.7175575397991771, 0.38969542320961637, 0.6416976345912104, 0.7601535226172906, 0.6828181268233813, 0.6909948154999235, 0.5624770226440923, 0.5850563705104186, 0.6991815943632815, 1.1202790196744559, 1.222094893688336, 1.3434911074717917, 1.4038443276463255, 1.355736538463134, 0.9142589462026649, 0.42653371093371106, 0.3885327059890642, 0.6386285126448001, 0.8246280892336131, 1.0267956165608325, 0.8809524003646771, 0.6182620715059706, 0.7661275346896481, 1.0984286390339548, 1.071196059803924, 0.9398287894579802, 0.9099973807211406, 0.9998298955783049, 0.9405027824104764, 0.8140902192540267, 1.0229475314065581, 1.3180622103448059, 0.8063125853659727, 0.23091239737802827, 0.34309396607801546, 1.105907897637067, 0.9166886500641027, 0.4964198863185665, 0.008145538641258554, 7.8567782732683e-68, 1.6714412641807094e-09, 0.21194073282739456, 1.0400991605827272, 2.00856252660914, 1.5919119437072027, 0.9183546443464365, 0.9429607221545702, 1.3480098865418455, 1.4835017721779877, 1.5593449323350796, 1.6249565478030945, 1.562197223073781, 1.3084451131959582, 0.7804315115562446, 0.8178062002963351, 1.0884572974375715, 0.8614067660520419, 0.3115518422450947, 0.3664928812106929, 1.0033501981170048, 0.9874815607991003, 0.7301883746303908, 0.7277198162221943, 0.8607182770323476, 0.6209172087278638, 0.45494026419015654, 0.6429600148316617, 0.7834223864685761, 0.9392935585594877, 1.1158753071873093, 0.8786633033578397, 0.5192359396757276, 0.686884085929762, 1.0591028764824983, 1.0409549877045379, 0.6789281651568082, 0.7004453012772416, 0.7646228227472172, 0.8449861747840401, 0.8976740056278345, 0.6756775765724257, 0.37117634980768344, 0.3095452113811916, 0.26951309055749917, 0.38404990122307936, 0.4660428010419402, 0.8481325362395751, 1.0974835582903921, 0.9360610387148114, 0.6654262844708825, 0.4107797239672806, 0.19102381293024084, 0.16005317652912598, 0.18091484810604275, 0.2983555771209012, 0.957923075077133, 0.8651266354712028, 0.6280708292138257, 0.5368039448314086, 0.5708762888901084, 0.6139508269743743, 0.6564011109999832, 0.7662690294558026, 0.8685405289447914, 0.6678026969184572, 0.6297378965592202, 0.5069789875879138, 0.5319103425453164, 1.0086752355257431, 1.08914318189251, 1.1360365180905916, 0.6763322073951805, 0.9683690185565865, 1.6356322367844456, 1.619794904937649, 1.0763548493561217, 0.5817509646404098, 8.603358671426885e-67, 0.0, 0.0, 0.0, 0.0, 8.542210385729929e-67, 0.10408449412568999, 0.46152932431596483, 0.9626497693301559, 0.8809094356185057, 0.7758476107754895, 0.8398109462069812, 0.897439997539152, 0.9336459782788076, 0.6501597469430322, 0.7283537066426824, 1.053184668104464, 1.122268924722448, 0.7616688141196768, 0.39955559171577093, 0.05674652084485232, 0.24255699092802363, 0.7036983582656973, 0.9161024293728168, 0.817061012544773, 0.7781907157837544, 0.9782120636953131, 1.1367738353840195, 1.1163294451802273, 0.8429264337747924, 0.5535636097192764, 0.7027839484177925, 0.9955339339885683, 1.1267130606534579, 1.3642061376927472, 1.0604793194177233, 0.7195507667887711, 0.6585148581093883, 0.8782986112010036, 0.8626887919391244, 0.7950433740501275, 1.0430823375089773, 1.4233055049553514, 1.42979268512876, 0.9612806331463162, 1.102156711125545, 1.2804349755856634, 1.142029653929967, 0.8694327615595263, 0.8095617434281657, 0.6538637593889831, 0.9922859998182822, 1.1301648397473087, 1.1574478572920412, 0.9547067339140227, 0.8248363807833812, 0.7190160378615964, 0.986740372355488, 1.6389553937393089, 1.4569408419072403, 1.2837063250039051, 1.1254720767829127, 1.0102773162091125, 0.9573829489620636, 0.8846848133292475, 0.8516248632561343, 1.046129042504674, 1.202844919437723, 1.17707505074236, 0.8666512297949716, 0.5092009424591062, 0.4819016118546102, 0.7037895619280476, 0.6472063179274734, 0.638174559433665, 1.0186277626031028, 1.4639627759663654, 1.5463556817494464, 1.502697374562615, 1.5146146070590163, 1.604784470663617, 1.4541156347890052, 1.3811785036651258, 1.3531011253590464, 1.196837264503813, 0.7070466576827563, 0.5603677907106466, 1.252017643753689, 2.211184919773146, 1.9984977628827352, 1.3671076766788701, 1.0671468623242077, 0.8017887447139493, 0.8361231839810443, 0.9169599703965083, 1.0506772488891016, 1.22822920869352, 1.352547897903733, 1.3303418812393488, 1.1846457132799202, 1.0572418798552832, 1.1921815502891064, 1.1842834814959957, 1.2290230796145494, 1.1418113111435702, 1.1956095915530227, 1.3712722781858702, 1.365436421693417, 1.2924780652252252, 1.2210039660405982, 0.9621444434785396, 0.9732512137222926, 0.9959752606519601, 0.871330652292329, 0.43525368366772454, 0.19545577276659643, 0.0702396669535057, 0.2305534232834825, 0.4946916747168508, 0.45767913553049766, 0.22771691175654496, 0.17128098203589648, 0.3472630822749103, 0.5346101770556402, 0.5123235446734533, 0.33735813184665986, 0.008705993884853491, 7.930337998792293e-26, 4.877934670295396e-67, 0.056578227484828325, 0.586132721133481, 0.8297213215585408, 0.9415918993266956, 0.6524204658057364, 0.2850823308313579, 0.15702580859276427, 0.3819737674960244, 0.563073870801535, 0.6411622169157596, 0.8093927115449482, 0.9828597847677543, 0.9278412256008437, 0.36738382712372086, 0.22734832398511173, 0.2664668768014202, 0.5159727647668753, 0.838336242834604, 0.8873759626181368, 0.5851429965852653, 0.4937549824763323, 0.19820051573504216, 0.21499364175383562, 0.5176763978562491, 0.8102920223175261, 0.791922591512062, 0.7110721314674926, 0.6180030183180953, 0.9077821343873929, 1.0545014393022853, 0.9358137761996801, 0.7198370684599844, 0.5137686223663174, 0.11955038136335361, 0.2131916512361096, 0.9251834907363587, 1.1566312988839087, 0.905998786778639, 0.9558435510830385, 0.9887349179482641, 0.9138347461746577, 0.5868492852988574, 0.1202632529765788, 1.7378309838520732e-69, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.007191259448733833, 0.19673738733914448, 0.028914542990172487, 6.49993887583387e-67, 0.09794319607056323, 0.8656183435303468, 1.214434998992374, 1.3346333032103672, 1.0321729815428995, 0.7543324115033556, 0.6365324006259563, 0.8024469513575383, 0.7212456394469804, 0.8560788374779804, 0.9067140040474584, 0.745656232918467, 0.8475433141498456, 0.9726559926459686, 0.721933627303347, 0.438638988006236, 0.7057966363555046, 1.1713275041667117, 0.8019774777355657, 0.36910464818592814, 0.26644829314847485, 0.41583008210239214, 0.39939917486237064, 0.5047831496499953, 0.6888601974991424, 0.9585387478801408, 0.9431068163889087, 0.821499417033781, 0.6338685351026108, 0.6693645195825617, 0.9900087595413574, 1.1633847518686622, 1.042331517933249, 0.7228895974708536, 0.9442887201275632, 1.3317903887493685, 1.3478009007542369, 1.1380538429698959, 1.0524473420578175, 1.1255239288794314, 1.167468929557586, 1.1702870785995856, 1.415923101609451, 1.4330664946037928, 1.4513224663507032, 1.175736050497619, 1.1903040649997365, 1.2751424052510316, 0.9600894245457745, 0.8534310927936986, 1.0311900303431685, 0.9576017808427792, 0.8274375816458281, 1.1159795769572156, 1.1304008241727956, 1.1314910826291111, 1.1202343541812212, 0.9521087077435055, 0.9398968597526078, 1.1044975117357012, 1.4022611481040173, 1.7007453089720457, 1.1186408584990204, 0.18906156121201523, 0.3032494269478434, 1.1631821193771117, 1.1953992189309162, 1.1699984830630825, 0.05654489361201187, 4.315007695246219e-67, 0.0, 0.0, 3.2223037059445833e-71, 0.13385381237200367, 1.0868346248094554, 1.6222105653038312, 1.5936616639752543, 0.9914706019499739, 0.8915390390758979, 0.9990533447582415, 1.1036404911187816, 1.0101867340932245, 0.9300052670072354, 1.1283839651178482, 1.2160379826919012, 1.1632147759588065, 1.2287624798577923, 1.1889744573183094, 1.0714386385135555, 0.9013842552363371, 0.8430641240638579, 0.643928109000317, 0.43647206698580376, 0.36980264202526314, 0.550213933471241, 0.9099073180949837, 0.9800159924389504, 0.9106684420709179, 0.7673497664061557, 0.7875799501539547, 0.8733245226560484, 0.9431827620774449, 0.608049459038412, 0.20263828074469448, 0.24670990193094955, 0.4663856408262781, 0.5455951405567703, 0.31027879340742004, 0.6442354044520506, 1.3832406893756257, 1.3797812297071346, 0.9231046694427647, 0.643614479203336, 0.5961630337833981, 0.4529880200976919, 0.3294796961163229, 0.3051378501090909, 0.37211739717790593, 0.5891164283981745, 0.8610534164495789, 0.6059009985492914, 0.13321134473507357, 0.0, 0.0, 0.23582677664731566, 0.6803415718758323, 0.6182568224221576, 0.5826155184741424, 0.8257501862662053, 1.1304137520657065, 0.8383434466751147, 0.27748355136916203, 0.24455640566049297, 0.3376875166101492, 0.39121806763407463, 0.43722838132111974, 0.17259699946094997, 0.02411336668388575, 0.21311534215874417, 1.1119307444133142, 1.5722411230857603, 2.151123792878934, 1.9214303365178154, 0.9461881934194025, 0.9429777388879899, 1.4324089792217478, 1.6501273805898222, 1.5701079365733364, 0.9920857997621546, 1.018136215607982e-66, 0.0, 0.0, 0.0, 0.0, 0.22842025590282677, 1.3719957583499678, 1.073858524103244, 0.16456939586902664, 0.1691946609069852, 0.4567114748724954, 0.6845763084146625, 0.49655503763665365, 0.44413124412003313, 0.6875531168791582, 0.7318734897302335, 0.46316628476694177, 0.6028079274877065, 0.8604583953385827, 0.6460124949762793, 0.21794807159091079, 0.07144975723839853, 0.049237567080840705, 0.18807136133909808, 0.43307608756240157, 0.5556170897146764, 0.6461648487747631, 0.7303533043525476, 0.6430280750861392, 0.5910580535011292, 0.6557602548890742, 0.7249694813547194, 0.8445505372504982, 0.7281150499078173, 0.9486763037433867, 1.1194310320742176, 1.2426314787351345, 1.3950997385762918, 1.164986889518346, 0.951298596932304, 0.862106377462851, 0.7516113546977898, 0.940626603296213, 1.0173576379998508, 0.9968511850998176, 0.9215562428900093, 0.7930419648886442, 0.6906203898934251, 0.6874344068292295, 0.8878699087381534, 1.045359575790883, 0.9948282525519971, 0.5948154525023917, 0.6569316447412099, 0.8900571406030764, 0.9486944169690368, 0.7469781416987509, 0.9934872678486641, 1.4974094195116692, 1.6192326829337276, 1.6225540277819164, 1.607721231554038, 1.3155443599687402, 1.361361647583692, 1.3701562983538338, 1.0458466767815935, 0.518512399661919, 0.4652343875817202, 0.7497880398807553, 0.7694765068015528, 0.6004693930810987, 0.6414911935337386, 1.1113817372875587, 1.273866317029615, 1.0956485214297942, 1.1553921375767828, 1.3871826524795239, 1.2124851958162708, 1.013031223006692, 1.2948855798115346, 1.3073171115322566, 1.2040773469857982, 1.259772495884036, 0.7681880102631489, 0.16823357674013906, 0.281099783263258, 0.6803169903017228, 1.189728235199766, 1.3511324836395175, 0.8490946330003659, 0.42699894378587544, 0.3077513600385515, 0.7794158981723207, 1.0665334344676012, 1.1427686583303966, 1.0994218740557358, 0.9572420512637478, 0.7822553144058162, 0.668483424579108, 0.7859052898893992, 0.796482384284193, 0.9163977415696856, 0.9554348621828126, 1.0541190503499962, 1.0116868942625388, 1.1507428855740187, 1.3611546890779778, 1.2771230729246241, 1.2833025123064203, 1.1312220188570024, 0.8922461624042768, 0.9513116192425173, 0.8224673731938914, 0.7835021567159437, 0.7039238780804489, 0.6580588218478169, 0.5530529392444841, 0.27497866478762845, 0.06562430804848418, 0.16318023003505377, 0.441250889547419, 0.36915962034596816, 0.011215811449653224, 0.08564315862626959, 0.4197285914501414, 0.88209672204529, 0.805554036873005, 0.7968424465546242, 0.47453581764148467, 0.26177800283767283, 0.36612116751442514, 0.24615496192410902, 0.22773750506532053, 0.43691676260449697, 0.5460787480220439, 0.46629096472669573, 0.38444450087587256, 0.4488823712172376, 0.765952353890512, 0.7868580775972909, 0.6974901632841615, 0.6663533366065622, 0.6775513565572489, 0.9023400770944399, 1.146532363674865, 1.2208058594808335, 1.1568854166753795, 1.008308430690704, 0.5442992389516945, 0.38428087261139865, 0.3500528366681124, 0.6459325882792974, 0.6369139388762193, 0.8529259042944091, 0.9262292851090024, 0.8143629039062183, 0.8022751403197539, 0.7706059650023214, 0.7206412626789103, 0.8904833231180511, 1.0576603878589594, 1.2965969863467421, 1.2108265762037718, 1.1183735791803429, 1.0326015194480078, 0.7147641076375386, 0.28160266451323324, 0.2583063671861261, 0.40713300443384526, 0.5182737919384728, 0.279572909182324, 0.005517630374953564, 2.403241030481073e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.747042506902616e-72, 1.5771627300273253e-72, 1.0111644331242917e-71, 2.2696924054434617e-70, 0.3023862683404701, 0.5927941401531065, 0.3820928374172219, 0.037775503722209613, 0.3433523007506132, 1.2019876666000897, 1.8113032133499019, 1.76962887746312, 1.54331440859643, 1.5943368344196642, 1.4142078014740491, 1.1110122895925088, 0.7114619138747003, 0.4772042436670745, 0.5367222841419448, 0.6647216510407503, 0.615027714781732, 0.33920422895434754, 0.5261338654329393, 1.1357989297393942, 1.4511685178985232, 1.3123580286310812, 1.015794164584861, 0.9151807408044341, 0.6135701612841018, 0.3383199338038736, 0.371144031336744, 0.604366447986596, 0.7817125243329635, 0.9220205771470233, 0.9228441222931316, 0.8187483559604516, 0.7850396873391539, 0.5435128229288502, 0.7781167896263383, 0.9524834104378819, 0.9743524173097775, 0.7987531791187052, 0.9778430606228063, 1.1854318636906669, 1.3302065880957912, 1.5621075280627252, 1.6081638366733984, 1.5171011959355383, 1.6249374008249475, 1.652667915620043, 1.468937672866005, 1.2328374419877406, 1.2246842372673115, 1.1991916300487446, 1.29099285930819, 1.336975262269391, 1.5571324509942883, 1.2895550748944515, 0.5767585363274783, 0.34538716749893084, 0.5128077997448521, 0.5441119245379014, 0.6660921792036447, 1.0505545711399833, 0.8616041600607929, 0.6222507661934884, 0.8775200949096416, 1.4094329658986595, 1.1397158243249237, 0.2954920421482008, 0.37616156006384927, 0.8777640003254419, 1.6116893152412928, 2.382178650459764, 2.0710823137562784, 0.12182723758741432, 0.0, 0.0, 0.0, 0.0, 3.5504882912214814e-67, 0.04085515935430184, 0.5670420654501527, 1.2511769097694838, 1.4349753990572935, 1.2019774723851242, 0.990988976628504, 0.7513824538364133, 0.7124697905069866, 0.6222249066412111, 0.7062973737638458, 0.9975883021792562, 0.9151476690213975, 0.729752353097922, 0.7260228342011175, 0.7917529716628771, 0.7025018580170581, 0.7022961466036328, 0.8175466286113, 0.8703033212133313, 0.7703282572081527, 0.4418254976772005, 0.4898041539420319, 0.7515081124765857, 0.9312363380777242, 0.8759693417592054, 0.761657369951255, 0.7520651257849842, 0.6903577877687361, 0.7743567716909325, 0.564663400167106, 0.24903126211221238, 0.5176140443880151, 1.044925961236359, 1.1185442812491289, 0.9059379688802096, 0.683639322462998, 0.561233727314491, 0.6173239644397519, 0.559744284383271, 0.5909073930357778, 0.9369159836200005, 0.9328925808809494, 0.913509767518704, 0.8068373998076481, 0.6424611437624073, 0.6331758850586233, 0.3417526668656592, 0.3272863201169116, 0.4670400069699667, 0.42688319595123403, 0.5150448727255394, 0.3802072924588664, 0.14465505465786066, 0.15239930953967828, 0.40444343194485555, 0.627699505016782, 0.9721808401736922, 0.9881701748754246, 1.0070028885286462, 1.1443519510158353, 0.994830630566014, 0.9378208434469606, 0.689118457324188, 0.7837277723339788, 0.7171266187989467, 0.9656991537346507, 1.6622424504812585, 1.7662134232968043, 1.9330508690296142, 1.7920240051025758, 1.5247460077662254, 1.5845117890239777, 1.3229564965242844, 1.2486952992050107, 1.3318638528699154, 0.7860958435320562, 0.057800278315326636, 0.0, 0.0, 0.16842309907885067, 0.7177914302045032, 0.8305631897156331, 0.5155688437924688, 0.05657743353825939, 0.00020049617820664615, 0.18643369433747026, 0.6733886202437454, 1.0645055278373547, 0.7808397539012191, 0.2947652905768372, 0.09517595941724721, 0.11394717479709104, 0.1362327672743504, 0.3823566109279142, 0.8454211573803185, 0.7599936793828341, 0.4279587122715043, 0.1528473974874709, 0.03179488367092009, 0.24556886388332888, 0.6498285547479554, 0.735726573173693, 0.3384518976683957, 0.46155556414086973, 0.9109163423559608, 0.9352418761609584, 0.8228837609153885, 0.8034358896343861, 0.7732487817434617, 0.7082486255724838, 0.5982132191083203, 0.688840904168103, 0.7847047945288068, 0.7439473983375002, 0.845084581305855, 0.5914168199969936, 0.27555294448251644, 0.3175492308493091, 0.42853630791432806, 0.5393845578856968, 0.6214555723143214, 0.7561569899513074, 0.7537899802855463, 0.44468602177438754, 0.3870868699028165, 0.5502386043695573, 0.7817093623869518, 0.7296924752381528, 0.820280340292868, 0.7213448579592843, 0.8552664661569374, 0.9712715326878083, 1.0267480235377349, 1.151594973183819, 1.4723771841387503, 1.5299477868462077, 1.220883572239373, 1.1412669463675797, 0.8846013939251272, 0.6635065307462042, 0.5795965179118099, 0.7216370859922883, 0.9561179239289039, 0.6428406313172133, 0.22111138842373723, 0.15663779578290704, 0.31530194395444155, 0.5496299518515713, 0.8023599223364819, 0.7073011858892642, 0.46111436457073296, 0.5138227968267053, 0.5939617348372082, 0.5424024357353119, 0.32821406535619246, 0.69004611781844, 1.5169728684681019, 1.4661352057576096, 0.9865856082984124, 0.42347592617376506, 0.019987654723287784, 0.0814805350887724, 0.3919820331992838, 0.5032719519181796, 0.1840971996255556, 0.03950136276955818, 0.25227357936172723, 0.3324455823052439, 0.4914278737633282, 0.609622368583814, 0.8367325222372166, 0.8049949858132663, 0.4909092205571284, 0.5759394128011905, 0.7324255261967352, 0.7201271700438703, 0.6859424607610123, 0.5496554050762512, 0.6765051557664528, 0.8718587370111983, 1.0530371333081803, 0.9423203332221561, 0.7651773749585686, 0.45273459925514103, 0.49661610955468305, 0.650742469328268, 0.611123593497954, 0.9389958503752496, 1.3596713908302718, 1.4814276492900404, 1.2667651955148926, 1.3397911379525027, 1.245841432197281, 0.9252380712218979, 0.46035650275975115, 0.2253202031953414, 0.24398711224233072, 0.3693299948531745, 0.6135128288420333, 0.7478447728772721, 0.6374733734091684, 0.8842411883606474, 1.2887402619508634, 0.9916138777953165, 0.19725169821651267, 0.07571934809622949, 0.2382200159223089, 0.2738986542600266, 0.25126139087751653, 0.33727989542956394, 0.33243726556692366, 0.4844203695243188, 0.6786486455988303, 0.6825251029599855, 0.7147638052856564, 0.831811516659414, 0.8838399252659315, 0.8568676486081728, 0.5696756546422534, 0.6989993924268134, 1.0134142465269633, 0.9481224244382247, 0.9510517712486752, 1.0890523650507475, 1.1738090532364964, 1.0266226441536332, 0.9374670420422717, 1.0667562772619164, 1.005058948635451, 1.0863191836690476, 1.1975264767252156, 0.8931023806167673, 0.4080468151659069, 0.4377208612034025, 0.40846856196482406, 0.7209067280904016, 1.0560451639872213, 1.3215051281591172, 1.3368275030557584, 0.9514275449856804, 0.6922756042332026, 0.7147876912813764, 0.5748033244731374, 0.6244215899266159, 0.7374310638779349, 0.6488265542688545, 0.6236562644337482, 0.4834679272395448, 0.020898108953588457, 0.0, 0.0, 0.015799166868859738, 0.41058629248256295, 0.5106716837653948, 0.13998028938753126, 0.0, 0.0, 0.0, 0.0, 0.005332434533078578, 0.0010723089473208547, 0.009548606662163062, 0.0013322801470375817, 0.0722134341305356, 0.1808681521997011, 0.32050943346349925, 0.5117897979103105, 0.8426029386856868, 1.105460898147669, 0.7227718275112807, 0.04010079646142395, 0.19974489864849065, 1.0753599767454602, 1.1631198931439855, 1.0123375972001583, 1.196477606870431, 1.5613158801357372, 1.6775742037207806, 1.1197213957259464, 0.8472312235719528, 0.7798849331537703, 0.5081726770016282, 0.20623378069126375, 0.40879776258294953, 0.6856769985415987, 0.6209965862497171, 0.48048664738746893, 0.559331064901599, 0.5264885327490312, 0.6295538188886809, 0.830468891421333, 0.8691544522936603, 0.6336825261258561, 0.3778090708194135, 0.3319948414342697, 0.49241689671376676, 0.7739294629775486, 0.8051397042962982, 0.5771157444707029, 0.4022993559339092, 0.25580181354649767, 0.38426897507619984, 0.6885786406104479, 1.0981110685168147, 1.6045259443671966, 1.6760472136411408, 1.6897330246513462, 1.333954714604161, 0.6207382756483639, 0.6365428626286338, 0.686477687649031, 0.3212944687149708, 0.12564918138338133, 0.4501047134399414, 1.0750947056284446, 1.1867989688685299, 1.3152832192100163, 1.735100803515266, 1.9717085560263428, 1.7199361341781696, 1.1408551291009559, 0.8716360204498983, 0.6827898558981502, 0.6649372401227538, 0.7948738454229556, 0.8988328627008038, 0.9583983486714978, 1.112218876559382, 1.4989085125812949, 1.3816075200827669, 1.029554028504208, 0.7702527176283844, 0.3711786738867886, 0.3599096259575987, 0.7487802962237424, 0.9526343127820383, 0.9654196613122998, 0.42282663576296287, 4.2933262432612585e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.9163660069582453e-06, 0.15606901500655468, 0.6913798494313284, 1.3123298965954433, 1.1942488837827483, 0.47201565021484626, 0.2107400633301717, 0.0478969472920312, 0.15698176182945645, 0.4973260624558442, 0.6378396747955186, 0.8184969391863639, 1.0641985568518066, 0.9854182237024958, 0.7616933673529367, 0.512295814043128, 0.5731218711900965, 1.019654785011781, 1.0343781500342288, 0.9346920484723, 0.8634766539511283, 0.8114936698721209, 0.664021179364088, 0.5436288373832134, 0.3879936544375404, 0.2773773115054077, 0.3762294124094865, 0.585455177190525, 0.6610441509206453, 0.7199686589022036, 0.8805202272399448, 1.113611789870049, 1.1772256001473238, 1.0914297782624658, 1.0074465104578536, 0.8787754971738337, 1.032718541015143, 1.1274435492850898, 0.8563018742216997, 0.4702972177961442, 0.4858839862822748, 0.8104535284510952, 0.5048129630563949, 0.14426532963722227, 0.20672059216181893, 0.39973540343712344, 0.5025379066929112, 0.5616635513796417, 0.6664560037727973, 0.702281561119694, 0.7024874702265151, 0.7895330425713496, 0.4655010425239112, 0.3742509787312578, 0.4801175164116991, 0.83468831717909, 1.405656788499087, 1.518784050476384, 1.01140753755773, 0.186764240447701, 0.20861547657347046, 1.0302987807131672, 1.3411876235114164, 0.9091254844033756, 1.000569901577876, 1.010166605285633, 0.8543087011584625, 0.9678543360064964, 1.3717860383642346, 1.2649998542941745, 1.2763310523698834, 0.9481216119066325, 0.6263141729870405, 0.16135756665005463, 0.0, 0.0, 0.08043930693908496, 0.5125886020345014, 1.199599220678138, 1.6448047945264221, 1.2039999093622669, 0.38303485038600016, 0.2859108851590122, 0.4880337072254406, 0.601904837265522, 0.45242335530078037, 0.322423492672673, 0.37734304930268436, 0.49784186923463736, 0.8115806558649297, 1.113821129156861, 1.2327707324902946, 1.1776400487453884, 1.248664927404107, 1.2234397234511931, 0.898166290148211, 0.5296025430819249, 0.39595892546509504, 0.5174369535755119, 0.6050888761595985, 1.0681054038082607, 1.3627106011677483, 1.0567933077216054, 0.7819450502871952, 0.45471338736219025, 0.5032262011007482, 1.0847778152037932, 1.7280042039491406, 1.298211454886328, 0.6277799760367522, 0.7902929137856063, 1.3496928815233247, 1.4528988971079002, 1.0956777201945442, 0.6051403423357193, 0.18319326318625428, 0.24708422858351753, 0.6321587560364748, 0.7054694850245511, 0.42537134948565836, 0.2685202856091564, 0.08311954073168781, 0.1351853705418984, 0.17261658725502205, 0.0, 0.0, 0.1690251169291921, 0.46536912863990665, 0.4901741516329281, 0.6581845424785229, 0.6942827928106823, 0.8472248594535046, 1.0098074356427702, 1.396278229078817, 1.271777130805404, 1.1910941719777526, 0.8875668759285418, 0.6556485692043204, 0.559464359218854, 0.6356880202543067, 0.5337955200833591, 0.34097774357952915, 0.17640497077628936, 0.21686560953484335, 0.2507623276192703, 0.30564036335989897, 0.13325838228937315, 0.007328111928335768, 0.0, 0.0, 0.04331221152477327, 0.04471577033717811, 0.07365275370503443, 0.23856231547356188, 0.710719338298734, 1.334536626842464, 0.85680155104939, 0.17154466146550718, 0.06601270002818271, 0.1918359013277291, 0.3934434795291999, 0.6432486265255335, 0.7250731174935687, 0.741016092763914, 0.3697966251441507, 0.2801800426954202, 0.12203222491398069, 0.14077607127088587, 0.42157769167147663, 0.8005662546070766, 1.1534232539713827, 1.0465585162775284, 1.0963863462320802, 0.9178026090734228, 0.642051870085826, 0.5619985387255753, 0.675848579190589, 0.8712516481068775, 0.8041094167769103, 0.7209318299040071, 0.8176008463688191, 0.9751460320025132, 0.8330470716487213, 0.7531065257567526, 0.6753146719461398, 0.5314868457515018, 0.40938196261777193, 0.46480874381945014, 0.6521264342238489, 0.9389371691918882, 0.8620286780288922, 0.5319347735104465, 0.5455910901151952, 0.6861169296942968, 0.7414085562846253, 1.1279147210297111, 1.0502943323004388, 0.6099612145080755, 0.30390545637146715, 0.1765882945160877, 0.26351330104859017, 0.7828720191586314, 0.5051119080531272, 0.18251948912306748, 0.25662226487890294, 0.6011733137689248, 0.46156738850328694, 0.24330401260119405, 0.133737453831273, 0.0861474319297919, 0.19473241111032635, 0.16259593227965752, 0.059760415528581357, 0.26771339611150324, 0.6212404807627223, 1.0385515892348849, 1.0392667754638438, 0.687788887038554, 0.772941671562549, 0.9263388535717674, 1.0409844213809407, 1.0497302256584504, 0.9579836300255273, 0.7656082064834244, 0.85194491395848, 0.9917801952164531, 0.914868293324421, 0.6891320148282745, 0.7320900158135579, 0.8303705791998404, 0.9059444363582294, 0.5964583455511843, 0.7286886651529336, 1.025264978907444, 1.1424052421585316, 1.0219427125043836, 0.7605233674160026, 0.45360779177832455, 0.29362813321364456, 0.3724528544644876, 0.6708841294894832, 1.1053140072190217, 1.0725672495455143, 0.666474397114655, 0.4452631001379679, 0.17630519815401513, 0.0, 0.0, 1.0274148165816248e-66, 0.002399800011522457, 0.14743297794944965, 0.1556148857461359, 0.47907541351156624, 1.0893332874847061, 0.6630005263576919, 0.02488261648401413, 1.2410171037350324e-05, 0.10399269242960063, 0.12899693751024088, 0.118507463020606, 0.052780868717228424, 0.005271482626280355, 6.10183195045548e-73, 1.5190728769440981e-66, 0.07033721494014245, 0.39982381690619206, 0.5480454133367516, 0.6858353417078469, 0.5058965827478836, 0.1077382545978276, 0.3691108767099003, 1.3951957680561122, 1.306292325307595, 0.8651523596283859, 0.9719625816792679, 1.1482181500477964, 1.2715206398371635, 1.1019439659419419, 0.9284798926987357, 0.7360830639541405, 0.6017835023022258, 0.7560821484421609, 0.6607135890564599, 0.4679692856158546, 0.3048894472829069, 0.17920905347990868, 0.3552894869508272, 0.8465443659347649, 1.0269304291816752, 0.9114386474639247, 0.7612421088517785, 0.27412510917770305, 0.3736850563291796, 0.8507950360358087, 0.8255077695050659, 0.5598630886945557, 0.3746836369519002, 0.19878590292592335, 0.40723463206724375, 0.692126635137825, 1.0130988948290565, 1.0390317550773034, 1.3236665698373287, 1.8605641917793179, 1.6227435398841408, 0.8477043200490506, 0.6558008965520266, 0.896011651575467, 0.8667261407675966, 0.7197178281703742, 0.8884970296285246, 0.9150814132125475, 0.8864532425456595, 0.929024903048262, 1.115739058622367, 1.2743518066272372, 1.271855642645292, 1.2799712560308762, 1.2059638264127557, 0.8857374240467522, 0.7607088434101037, 0.9209511930267276, 0.868324346236534, 0.8652225486059706, 0.5416157247760225, 0.31011626073542686, 0.6484921499232001, 0.8195583076269806, 0.36690204187607733, 0.3212370357495651, 0.29141929174983616, 0.3606811308966371, 0.5753277352668853, 1.2763418265112847, 1.2015365486189609, 0.2274063900074461, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0970314039477671, 0.7275819266844543, 0.6575593460755869, 0.2565856101131345, 0.13869484581938707, 0.0249011798297174, 0.10426215640436087, 0.47140273970200397, 0.6023965909989784, 0.5752636287926549, 0.7031938448113237, 0.8387685280489485, 0.9075147873383038, 0.9143114936803762, 0.4775715118086943, 0.14811100996871573, 0.37436927655008745, 0.7835530176444117, 0.817007782452496, 0.5309338245887183, 0.5107515085122181, 0.715130504316349, 0.7529374949024294, 0.7967542322854939, 0.6727155675073426, 0.772489502617649, 0.9959553929022356, 0.7579737051405608, 0.6623528662640297, 0.860105682548479, 1.0024915937194692, 0.8909899482149655, 0.8934408362847535, 0.7439694021633478, 0.7743571912959766, 0.8398145512900079, 0.8431719418770776, 0.8653441940662141, 1.2197421020329244, 1.5132126727467607, 1.3012454043948907, 1.2435796727377237, 1.0921023965243535, 0.8523158695119406, 0.64950186626902, 0.6389163412166887, 0.7856871802983392, 0.9365675444404111, 0.8829010118572569, 0.71311814543607, 0.7942941835186481, 0.9142478897673278, 1.012930919286248, 1.2867506027362197, 1.019395994957506, 0.7612240113691406, 0.7152773917362687, 0.597419811632026, 0.8064632031301109, 1.0602770185733021, 1.4996222824567127, 1.8851434740783048, 1.2682398937213293, 0.06585475224554305, 0.0, 0.0, 0.0, 0.0, 0.17686149090026504, 1.1729082458198405, 1.2095600194425202, 0.4377602968084062, 0.28348157066730906, 0.6625276082083111, 1.4207268121800212, 1.501608302688183, 1.0001752453326986, 0.5302811697808671, 0.559608103058995, 0.5683237670194927, 0.743326798310818, 1.0973307047837721, 1.1791805116902196, 1.0474723862411253, 0.7747558674430053, 0.7679580613291961, 0.8246407548605283, 0.8243632158907168, 0.6654497203334166, 0.4970317839377145, 0.20854736746116842, 0.001549499188575179, 0.10028798679002282, 0.2791101974594348, 0.3661508139941816, 0.28006546498615137, 0.3288910806450218, 0.5364788236895492, 0.5784989871088762, 0.570205733174717, 0.8894148539869917, 1.130439861565037, 1.0373628303728424, 0.9693989114632053, 1.0283351326361299, 0.9730522377037829, 0.9152854340436001, 0.960924653733187, 0.934530473675764, 1.0142904809463857, 0.7089968355986151, 0.301233312713979, 0.269373491373873, 0.33619459294199316, 0.3353914808149625, 0.1169094822634884, 0.23486004431285679, 0.5487021072210361, 0.3283679519484828, 0.09543889248416892, 0.0, 0.0, 0.24044541007842568, 0.46353152042701495, 0.579708787909258, 0.9271349396172468, 1.1565400181770116, 1.1430385819312647, 0.8565051916741062, 0.8284719604852775, 0.7536499529239258, 0.5217346732714567, 0.3247440669281474, 0.13156217548663562, 0.14514783812938337, 0.228670497636835, 0.18781960018199673, 0.33342479675113523, 0.37028647239418433, 0.5189038180308216, 0.4843559869128491, 0.4967089427018436, 0.3966054241030612, 0.22364853494997305, 0.5451053223083022, 1.0717733089473, 0.6876951672674956, 0.1763142080693889, 0.027460911068545535, 5.0965369443179643e-48, 0.0019483958277852764, 0.24427004106088646, 0.733363506199769, 0.6896528426680106, 0.4971205374370271, 0.4753655837618318, 0.36759368667293657, 0.09865993160489328, 0.02432912073025073, 0.052744258319714854, 0.10342601692408326, 0.10709662220415339, 0.35015962797332634, 0.8072158603215627, 1.0820056135819414, 1.2029034925390647, 1.1313647885801856, 0.9530365835084389, 0.6823206637291293, 0.4146685132436687, 0.36781286017140147, 0.8424024816879552, 0.951634763857502, 0.93425506809632, 0.9015775749903696, 0.8396625982891806, 0.8159122097950444, 0.8974902524956327, 0.6547179035371755, 0.4006295606590271, 0.10938329301882632, 0.015145251516580915, 0.23325285226525327, 0.7785404141101395, 1.0300633247391175, 1.4859449710934882, 1.4094247574766996, 1.0867252635308091, 0.9951788024841903, 0.8875475590598967, 0.5733245842550474, 0.22072206062242472, 0.13883661508986567, 0.45252198583534664, 0.26351281149396755, 0.07997539550953636, 0.2933399098353995, 0.7958626804730251, 1.2166882558531142, 1.251058237521704, 0.991757638860097, 0.5894759781099879, 0.4456995965243813, 0.3798041477588221, 0.49672633412956557, 0.7402396825523851, 0.7818205613301785, 0.5380674630331761, 0.4269876487235855, 0.23191486553575036, 0.13999471814785025, 0.3007531994858823, 0.39232177116972267, 0.2578966604142039, 0.2418395788231784, 0.4892908613474134, 0.5098066204185479, 0.6389081465903281, 0.6704638492394679, 0.5305622935680709, 0.5972753442805789, 0.583012673313533, 0.8980580618322733, 1.0140371742841268, 0.785287285693105, 0.26893778611389507, 0.135478140305346, 0.4099037641836425, 0.49049469552814173, 0.4945613880969155, 0.18270377109139702, 0.018755682381655703, 0.14864622276746875, 0.43581209799357623, 0.6185845579516958, 0.24970969049923042, 0.00022583574182956367, 3.002442071757314e-67, 0.0, 0.0, 0.09668835249500152, 0.523993960094149, 0.5803916271375442, 0.0817411427751944, 0.1755810797486399, 0.27929734037174114, 0.08565470642140216, 0.008146204365067133, 0.08154515014283081, 0.22280434360786305, 0.2597698472282559, 0.15518914761205682, 0.15850462524638065, 0.06432963441675899, 0.05019932409814154, 0.3221996812502681, 0.3045035801553162, 0.00010035172953138608, 0.05365432649768942, 0.24252126680397978, 0.4707198867820672, 0.3107852545707743, 0.23954185168983955, 0.793155347109419, 0.6843366518710923, 0.9141481569031384, 1.3154087276063962, 1.5884857005067374, 1.519769697946586, 0.9314375498210872, 0.8591218967027636, 1.2455303616598599, 1.2140769099176083, 1.1375935268827106, 1.1269793097567913, 0.8955491760062273, 0.7979700823835287, 0.9451295657573269, 0.7912694585871236, 0.5234483881702126, 0.6289801913737847, 0.9527549734478704, 1.196914732286146, 1.2206472804405735, 1.0649889492782592, 0.7635375502042194, 0.5005263668944195, 0.4366656727832243, 0.3712816669468708, 0.520756103875275, 0.450320278137216, 0.46976508368610226, 0.6722185735075961, 0.7827107539793623, 1.1905298574274639, 1.778709109709098, 1.6011866074411643, 1.0111310963275741, 1.0218617313348801, 0.9809328070424819, 1.124715930741914, 1.4282063340051678, 1.1469232454806502, 0.573372514978022, 0.5287950060442803, 0.8253526761109242, 0.6772797728146749, 0.4159553159809235, 0.2806430084829117, 0.3301928806523655, 0.5512128834680539, 0.9234643421795141, 0.8616690040582853, 0.7933224626469837, 0.6515804276750856, 0.34096333441258153, 0.3162440641987452, 0.7503892318546868, 0.5649405011782029, 0.01039373661416243, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.7782107515900616e-66, 1.2356071540502868e-08, 4.079881895604196e-05, 0.026819296792757408, 0.0, 0.0, 0.15080436501258365, 0.3146966456871638, 0.5289623251102604, 0.8398734354081085, 0.566436478075957, 0.1734249131041885, 0.3073874123571194, 0.6326669812973797, 0.7879745021006421, 1.0867712443071156, 0.9697390828959875, 0.252313577489204, 0.1173760995266413, 0.5381078627752665, 0.6860138451980937, 0.48030239463532, 0.4463443884747562, 0.43713048608539395, 0.5089674637646482, 0.6303287159446427, 0.5522526037285758, 0.41300615778837724, 0.46392523697224775, 0.5809048607549272, 0.46596280695565895, 0.642284673877441, 0.9049466754725621, 1.0090239056009978, 0.9646976898477675, 0.7930601182386035, 0.7647606340221991, 0.8277216026658749, 0.9231400608813125, 1.1206414234848694, 1.055673763598918, 0.7790950441767706, 0.767612105812546, 0.8619613856223083, 0.9958571277846637, 1.083688463695026, 0.9112812574224769, 0.828482051463709, 0.9301308093121499, 1.076754114714177, 0.9802519129009148, 1.0833534268903264, 1.0449191372181446, 0.8121456412993666, 0.8110767387980253, 0.990860816119099, 1.0455994551926437, 1.1600173801529223, 1.0663770890556776, 0.7140248468875967, 0.8352507200504675, 1.3428472920499104, 1.1907486467828363, 0.9023226384049146, 0.23594430882860085, 0.01609923522089307, 0.36591576697518136, 0.7581387332524834, 0.8796189679580948, 0.6314329388709581, 0.39579713946267603, 0.0005917066277394967, 0.0, 0.0, 0.021097118818946825, 0.4896903622707782, 1.2549325226306252, 1.2038950062833607, 0.8588055823770588, 0.5263047411799562, 0.6231316281237156, 1.1335053848013246, 1.2324120675253312, 0.7212965640146649, 0.5623709037473077, 0.8085753654686556, 0.7805297706628131, 0.8276417812203505, 0.9873758966078618, 0.9461324186814899, 0.8953598876826305, 1.0489206103403035, 1.0744567550718784, 0.9991167350805519, 0.7597404381399997, 0.6305531371296844, 0.5550864659636687, 0.2831726800399146, 0.18177081348585844, 0.03386933762658395, 0.0021482453579579897, 0.06626805015994908, 0.311182262088451, 0.7034239828875712, 0.6839439228595303, 0.47657801475481065, 0.6460075126396738, 1.2871565804835114, 1.5125481615561966, 1.0425338036057497, 0.6218163970320489, 0.5654459621978027, 0.5522518950181308, 0.5112928967606791, 0.4836684551500561, 0.288380139297292, 0.21669873768391668, 0.23129532803423647, 0.3808896566429354, 0.5712404106611224, 0.6237640615136151, 0.7039326795862202, 0.7033263045697744, 0.5413009020562107, 0.5013595516302907, 0.47957688172596136, 0.1816301587945226, 0.010739848404979435, 0.0, 0.0, 8.92652026044849e-66, 0.010063503748085845, 0.030831599901049778, 0.226492945391076, 0.6160026232629576, 1.0519684875697664, 0.8344913085696959, 0.12989365303586542, 0.03141415992615837, 0.17464414302922027, 0.3249869727634156, 0.8189960354504819, 0.6562885981651476, 0.17721754151388414, 0.23435054401844368, 0.5938439591009228, 0.5220942290179664, 0.6949345472936699, 0.6377748409263972, 0.3184817159053388, 0.3509038804795104, 0.7314137202701296, 1.0382632028853465, 1.0180902684842295, 0.5227320883043127, 0.19279381111985927, 0.20071210344482981, 0.18458586466317684, 0.4061027637666861, 0.8761638222506605, 1.0067583878971078, 0.8368280478704868, 0.7416413740074859, 0.7179472773068483, 0.40114771899988355, 0.09731283852709627, 0.0476012903221914, 0.13111682380383716, 0.2512428074705362, 0.3472500863536112, 0.45088611084578645, 0.8806907120757081, 1.0840215664354815, 1.0821750054481214, 0.9529545399184371, 0.5761504052027391, 0.34653175538048586, 0.31963241230768347, 0.5971706900716391, 0.9978140630521217, 1.0303917121614745, 0.8051653763389233, 0.8010278465534704, 0.9394376353011467, 0.9024352001854972, 0.5910975546471242, 0.630826074231905, 0.7002446794496144, 0.9373894801503866, 1.0022333202769573, 1.2203870434760233, 1.4286212197225865, 1.3816674924132855, 1.1640218219772578, 0.9673033269722318, 1.0073747203490626, 1.1817597771455581, 1.0039666810604473, 0.4853236702016126, 0.02518319888678011, 0.017258356975206945, 0.22303845745131312, 0.13419061466953508, 0.015744492755793482, 0.002722520660663419, 0.17866371549679716, 0.6345978395573901, 0.8970208469705199, 0.971317822117058, 0.7478797207385277, 0.5287339801853399, 0.6178422152140151, 0.5861448595482308, 0.5121395979629462, 0.5318074952045357, 0.6069890097820441, 0.38496088980224386, 0.16542582308201137, 0.17273307214526668, 0.334077189113998, 0.29933426676849706, 0.36084216198662844, 0.3530014107582389, 0.24021792955924415, 0.09773725460219396, 0.009615976341819987, 0.07698258464985486, 0.278060816605322, 0.23973016676849568, 0.07055652979765714, 0.19721432120268023, 0.3019902626117279, 0.15148766083292742, 0.003912700206718578, 0.002364361987223021, 0.01035221523221358, 0.08775789153396918, 0.07118671730383141, 2.3019751491035407e-05, 0.021641185574330146, 0.13948663670383699, 0.14842651973732135, 0.0627410496386469, 1.5934955267749336e-38, 0.0, 0.0, 2.588197637405373e-66, 0.2819134828456562, 0.5631562596253303, 0.1861581628561595, 0.155112915189207, 0.5555095763986664, 0.4882468412096195, 0.049088233337135856, 0.16702618084142173, 0.4032386136250352, 0.430106846294823, 0.3643262986344986, 0.4656939046539357, 0.5566986653791481, 0.7311576416812251, 1.030417849886419, 0.9871969200535347, 0.7955477089804539, 0.4484998020356876, 0.1281856667958472, 0.19310490486965648, 0.34921191356330894, 0.631401111004962, 0.2767422435581466, 0.4414089605919713, 1.3121512788609522, 0.8133799476838455, 1.022332720326645, 1.0377934157052238, 0.8997258175668321, 1.0444590548249977, 1.0997406341471248, 1.0690909992980693, 0.8902651013272624, 0.6807313966604944, 0.7352780656296751, 0.7159509280161416, 0.556960015643515, 0.5854445053136068, 0.8348034402135909, 0.9215558995754378, 0.7972831653760295, 0.7158050808814096, 0.7268329145502186, 0.7300237690950304, 0.4314814172839512, 0.3055230645026228, 0.4530751574113765, 0.6097149833258051, 0.709307535040594, 0.8925193597534076, 1.1044027997470494, 1.0003664829273617, 0.6730558659762131, 0.5563842012571776, 0.35247026719531505, 0.46073398017688305, 0.813598319155119, 1.0495956344712454, 1.0797811897674023, 0.9991597510874186, 0.7834826358436118, 0.9361219367344944, 0.9688474628706132, 0.8642990096679206, 0.5451344552344075, 0.33362913020031115, 0.07709435420935051, 0.06575518332351837, 0.2213450600385194, 0.4969378281671766, 0.7006947468969571, 0.6612883216492129, 0.47172052577184687, 0.47680130911659546, 0.7067288374319247, 0.4848974817034559, 0.3232608173031828, 0.14250593318956817, 0.0027280861938320383, 0.0, 0.0, 0.0, 0.0, 0.038458855542785386, 0.5547022263488124, 0.3652333398501959, 2.675918610738316e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0057092645909087025, 0.5563513904089632, 0.6695408667431799, 0.08030414095694383, 0.12240678296280194, 0.48952011657874905, 0.6749168038368225, 0.7343082155714455, 0.36310690769268206, 0.0843741217783398, 0.0, 0.0, 0.35053225538291954, 0.9814609932760163, 1.0755009076092392, 1.2422360396005985, 1.1869090986067619, 0.9710498521597835, 0.6996131727447938, 0.4190760075734943, 0.37420962995747686, 0.29023813213149197, 0.48690484896880903, 0.698585539402675, 0.6643557739484471, 0.6133845408665053, 0.31597737609628496, 0.07928677674147266, 0.13522745095294741, 0.5888439794476916, 0.7301368315453125, 0.6628884198920879, 0.6060375961965612, 0.5819426482735288, 0.7784666817024721, 1.103000385304668, 1.1673187477426836, 0.9031747266637922, 0.5881979657212391, 0.4987181083761385, 0.5828057063588545, 0.7929484412730723, 0.8937348399888414, 0.8946149989872119, 0.8047870760406681, 0.8125684348038398, 1.1021657219630612, 1.6653051396429532, 1.5288055479779814, 1.3547631514728806, 1.0794591430026799, 0.9101659189717601, 0.870146632806609, 0.6882752844570774, 0.5571331561536432, 0.5653545322928757, 0.8783678790098435, 1.0425101904276204, 1.2835010343566324, 1.4296033939675823, 1.5662134869866264, 1.3815674458397211, 0.8893372825369283, 0.60150555077918, 0.04897176682172599, 0.0024723162773411383, 0.4745705546898904, 1.4898859169773147, 1.2263678955392265, 0.029949005419276142, 8.421211322147623e-68, 3.558194862008711e-66, 0.0, 0.0, 4.51973844731862e-71, 0.07070085317195662, 0.04819120357988371, 0.11903157962116584, 0.1923952962734612, 0.18479416941035254, 0.3654394135589065, 0.6112842655828423, 0.845184199088326, 1.1393002152983769, 1.2170448886374743, 1.0797779690619933, 0.7250085597340252, 0.6798665378693194, 0.846117757107212, 1.0272554171230155, 0.8688148508713631, 0.6172705778556384, 0.398741519671276, 0.2226964601849346, 0.17113515095843468, 0.19274892981290837, 0.12084240663854473, 0.00022610344802894648, 0.002621155298868097, 0.04652688235712277, 0.2911800761582164, 0.605619778377914, 0.6186467212537536, 0.5745202908589278, 0.677753706130094, 0.86620227573707, 0.8403049146670902, 0.642689147779695, 0.5230456031313224, 0.5370058087584226, 0.5411810145460549, 0.4411880966341677, 0.5351852541934932, 0.642285533715242, 0.613918882381995, 0.7706211388745601, 1.1071315286471872, 1.2170848684311295, 1.1903139494734774, 1.0470190607922092, 0.8831761357441792, 0.6497538895813513, 0.7244183346692843, 0.812740699630595, 0.9123583363594925, 0.8717132612521397, 0.7473144697367253, 0.48705758407823296, 0.4438734829839177, 0.47147116681034973, 0.4006177144869447, 0.4154992140829563, 0.44675456213838416, 0.7804909086047616, 0.6012468897906729, 0.18142725063070486, 4.2126232795387083e-10, 1.6971713801615371e-71, 0.04042186281438731, 0.0808997282246402, 0.06234371014170481, 0.09045994841759697, 0.049979702313308394, 0.045635251809650335, 0.012683506850631743, 0.04359498328290101, 0.11293190850978263, 0.60058994880794, 0.689728083017144, 0.5548627614103943, 0.6575597327430529, 0.8563670699729506, 0.4230798408650607, 0.0007592630401558886, 1.8594089329330337e-66, 0.1511674524246054, 0.49847602005606007, 0.8022893415291179, 1.2191886786001902, 1.2405943650095566, 0.9605118422642569, 0.710841750625665, 0.6435877969376271, 0.6525780994070516, 0.4942805840576945, 0.6405538421505277, 0.8851515411938102, 0.8552363694036558, 0.8669563319227223, 0.8363635566226755, 1.0331042987975394, 1.1289911137078121, 1.1216479312964935, 1.0841069601788291, 0.9619134013890154, 0.42477778839330327, 0.15442106093264218, 0.2717236318241625, 0.4882201865051492, 0.757397493162685, 1.0813358643640782, 0.8875070167808055, 0.6698391882019372, 0.6289609993263277, 0.6798544479023718, 0.6835424363021616, 1.0153638435896397, 1.1330048770008858, 1.1891192660586967, 1.3604426939883183, 1.0438750813501088, 0.757740620567521, 0.7351544868345314, 0.5296787150649074, 0.5676232774733059, 0.5818354361263687, 0.5917282852835548, 0.5460280080606914, 0.5770279941265279, 0.612411613860079, 0.2328435970978262, 0.020446133863988303, 0.0, 0.0, 0.04034715548597578, 0.20017233675190838, 0.5725975648537975, 0.5222750440704296, 0.6474409175326947, 0.785072008116888, 0.9026589857018088, 1.137524106073343, 1.0899492539465427, 0.719130670886333, 0.44771489249047036, 0.23405574411370722, 0.17212841282253066, 0.14370975622839754, 0.1500450040886614, 0.28334804427945315, 0.2822230793643179, 0.3331288721244654, 0.23723204068950565, 0.0025851834310808286, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.010614248221686717, 0.03646725439018983, 0.20752019553003098, 0.35833462644902525, 0.5255912422593703, 0.7334970418604634, 0.9418929110802878, 0.5404102631111982, 0.4605542020278932, 0.15773056856406598, 0.3498495267948023, 0.8422040177429722, 0.900815734619357, 0.9505522884921902, 1.03463931978753, 0.850997698709989, 0.7500230986286773, 0.6517610570932142, 0.7056468202728219, 0.7948163479689505, 0.8564606208345573, 0.9853590561125571, 0.9042477991128841, 0.6326528532699882, 0.4945940838983951, 0.5336709802541009, 0.7778137606348992, 0.6444318555441555, 0.7925555112827887, 0.914198763528077, 0.3301060961798754, 0.2875807423089647, 0.8510245316056739, 1.5162297330689398, 1.4104246624867756, 0.6968283546630261, 0.42900247517587786, 0.05331223848469713, 0.03119258444082007, 0.34865019410591813, 0.46092132010855735, 0.5027689763592811, 0.5179817868042988, 0.5376125022948521, 1.0049827024170241, 1.320302472609015, 0.9642754061393113, 0.28715437394183496, 0.21734801984749996, 0.49429047371072343, 0.6070765944064647, 0.625890270676198, 0.6675993059769922, 0.7597419967383168, 0.6062221945121706, 0.41053572667584604, 0.45657259628086777, 0.7871715358789153, 0.36048019676002596, 0.031102238573767815, 0.11297455714089555, 0.481409599131414, 0.33629399524494374, 0.023527378301629875, 0.0, 0.0, 0.14386333411044916, 0.2575746346774146, 0.529489249559564, 0.6410769793409123, 0.6156192641867619, 0.607508944469842, 0.6498535401888716, 0.5397403348078491, 0.4244349135180734, 0.21510478500655328, 0.30748517115193863, 0.42667316072177996, 0.31137420885443134, 0.041488981692427984, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.045258898964093186, 0.339173819746609, 0.04397847241153219, 2.6268946609727887e-66, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1717526879690503, 0.8716769776825117, 0.500557150757718, 0.2181623873315317, 0.4519674691594311, 0.7532272589162545, 0.6673948747545957, 0.20044521143479077, 0.085465295426709, 0.42765571623944254, 0.4771723748486103, 0.6585963132335202, 0.6213822735017551, 0.11265233794462404, 0.07205866196602884, 0.2078132203811558, 0.26229193395069217, 0.19490931017083213, 0.3067283596667494, 0.6637671808232568, 0.878913737849448, 0.8677992210110119, 0.9817909899210377, 1.0416994712909968, 0.9726376520989675, 0.8945423875150347, 0.7151972419606523, 0.7018815183801195, 0.6759545234708639, 0.6368557162255826, 0.7129799351594137, 0.7845357382941565, 0.7080289339974719, 0.7242592504760559, 0.7210364929814581, 0.8190650817052756, 1.0134874516171664, 1.1705117383627481, 1.3326305319442469, 1.1850425192406533, 1.035944207067189, 1.0238273942161555, 0.8302255657181377, 0.8326516160433393, 0.7967294395280398, 1.0233485842359755, 0.9505226514471055, 1.071975716129728, 0.9040884241806602, 0.9979037314980275, 0.8178763822744628, 0.80859841233627, 0.6395474852593317, 0.62277079825407, 0.6442823854030308, 0.8998794925560141, 0.841582082152982, 0.2079149092910848, 0.24401405218264927, 0.4528694433680016, 0.5915460906010281, 0.730233705526885, 0.757799666653014, 0.5039527937606749, 0.1412832449742476, 0.14399369665455541, 0.873434481141576, 1.4675287398068235, 1.544799555620159, 0.07586200986055136, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 5.308107783501818e-66, 0.12280564216049417, 0.5253026258671447, 0.9135071469580147, 1.0284644851492573, 0.8876303310752611, 0.9129193248790024, 1.295854586711144, 1.5580757033321788, 1.339911462679666, 1.125846956394426, 0.6484008589802137, 0.4708257268377771, 0.4181035950396108, 0.6200748047152871, 0.6866330610267859, 0.5717915885161098, 0.4151847617977502, 0.402706699640337, 0.4683298832953966, 0.22837146019993781, 0.06538637248987644, 0.2207805065386106, 0.7305361852045031, 0.8535995956226685, 0.3069733492783513, 0.2712569097028883, 0.4254710294061539, 0.2879504918262832, 0.0733124622201764, 0.024014797286803224, 0.16869012740018263, 0.38086714409251954, 0.6233166468746276, 0.8075143862508618, 0.6836811147474329, 0.7613250063923402, 0.9525085406078269, 1.0865575040828759, 0.93055106978467, 0.8354927106750019, 0.8974628097270312, 0.9439747011406894, 0.7563352976654301, 0.7804970169400463, 0.8053913079618589, 0.7772185993475347, 0.7650337913958971, 0.6655741026268203, 0.5747637389518445, 0.6712341217899542, 0.7769833096490153, 0.7631949872042334, 0.5518024870289082, 0.3909144341446904, 0.45672855420849956, 0.5365375006406339, 0.5274679688062953, 0.3760956146180803, 0.06265378505972663, 3.185361879809095e-67, 4.000917260124346e-72, 0.0, 0.0, 0.0, 0.0, 0.07637808105389698, 0.2749364711750246, 0.3588334632100363, 0.7484040366448994, 1.1042502167516801, 1.4209484821822684, 1.5498279222670277, 1.8274611238748548, 1.6854876256912235, 1.1322043451519335, 0.7483182362989851, 0.5473875250969265, 0.8549853632655733, 1.3084985669679696, 1.5185569325751658, 1.6121261090884218, 1.2782223409595304, 0.7063765223484921, 0.43689706358696867, 0.3505865325589639, 0.34671325135363773, 0.5865297033095409, 0.8629999511440509, 0.9748668235749989, 1.1016471581535967, 1.1643958636128104, 0.9409663143874845, 0.510084307655351, 0.4207012669976393, 0.3231310360943098, 0.5662494288530731, 0.5341667872153835, 0.5132821202110449, 0.35693263584807156, 0.33444150576657705, 0.24193089397258039, 0.38843180499101493, 0.6365018710914825, 0.8906773829958183, 0.8963323743941523, 0.6760769430661675, 0.2551389076081847, 0.1636277786033702, 0.28897458361285544, 0.17873388786307487, 0.07258106522951469, 0.04137311827356882, 0.23068663885479257, 0.5037415888073724, 0.7033338026649858, 0.8489374492376243, 0.8370243505310135, 0.8291105258111067, 0.9184731142609373, 1.1170016280989472, 1.2211169888178262, 0.9321378762720975, 0.36866784113853157, 0.14346088352442976, 0.2602007402194637, 0.07599995841532348, 0.045444622012439595, 0.1276342736997691, 0.10910789672611632, 0.252993191313692, 0.6493264492412578, 0.9027406471432187, 0.8321937228993512, 0.7757788358721882, 0.8010710576002111, 0.759605573487093, 0.4566291440633883, 0.38706387828325717, 0.3766170484632312, 0.40046290036727683, 0.5274874490629031, 0.5594088105599582, 0.4711351359145546, 0.3217395792153752, 0.16395814030956135, 0.2807027534686455, 0.34410837760703217, 0.4573806273481438, 0.7212410836587537, 0.5281280736230123, 0.3914617753161487, 0.5327769847344968, 0.528683792522898, 0.20663171316798312, 5.3046480272495905e-67, 0.0, 0.0, 7.13308401861075e-66, 0.031400607325625884, 9.560959480001184e-06, 2.549962178945739e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.11388229645072911, 0.2881355196538813, 0.5539115219346655, 0.31903690739751767, 0.33644243479074376, 0.8811494474251482, 0.9315924136815887, 0.5614998915669425, 0.4974251835648289, 0.6233815887558336, 0.6315114699833977, 0.5492337353037016, 0.63681966137597, 0.9633524874019805, 1.230654966767716, 1.2191810442359952, 1.1657129475790953, 0.9738900265470853, 0.8561522974106452, 0.9432723726604628, 0.9332147701876217, 0.6893027320390424, 0.6185001783763688, 0.6833971692083338, 0.5774269542622648, 0.4490154422583714, 0.6941784014181884, 0.6918226966675753, 0.2619406951950829, 0.06368201286619524, 0.3475321173254997, 0.7529007740613594, 0.563428158662024, 0.3603525929298854, 0.5287550441108237, 0.781264434963024, 0.8175198976549645, 0.6826568820454213, 0.44870931252350843, 0.25592247267994495, 0.13507334146925487, 0.09689878974781241, 0.13207013935861855, 0.4550796985006542, 0.6016565391000803, 0.36743339597800073, 0.2677608919039045, 0.40109373641286084, 0.5608375453093686, 0.8056560049155372, 0.6312539175592633, 0.41755803372529954, 0.21796927580368575, 0.07005133658204787, 0.0008302905569914643, 2.3626311209651017e-14, 0.0, 0.0, 9.006491575242361e-63, 0.12794182094646445, 0.31861876939446176, 0.21245343342886613, 0.3272726805840307, 0.49422770123625526, 0.6131163372330981, 0.5795476017260945, 0.49438174814446256, 0.42368812168252035, 0.4233771783469287, 0.21872623383389111, 0.3576335728045166, 0.8806751619218289, 1.0582229420516, 0.97635219592593, 0.6989376006632853, 0.09903872076080233, 1.12776247528252e-66, 1.0505187029399975e-66, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1933266617180749, 0.24143322308849324, 0.0015149064771524806, 0.0015548664946083424, 0.0026451975999757793, 1.7312097908371094e-05, 0.0, 0.0, 0.019526207082663838, 0.3132862555744964, 0.5640948079956196, 0.8400825507933405, 0.8461202791570486, 0.8022559208380677, 0.686949788726654, 0.36555097699732997, 0.409377157392786, 0.5081811750181409, 0.6208569979207823, 0.9966820627823836, 1.118765683836287, 0.9521684970209776, 1.0107669612666683, 1.0332671528488078, 0.924821075876995, 0.8528470784303863, 0.61235041761174, 0.5956643549622562, 0.984564134361424, 1.3526674076393306, 1.1603055125989528, 0.9544286039488412, 0.8558678507246817, 1.0010302334703738, 1.2138654441062044, 1.5268540561442592, 1.0648934863747996, 0.5488075467853584, 0.5638489754605338, 0.9020590403015696, 1.0110028385122547, 1.1353441507690718, 1.1199608290037446, 1.414958684569001, 1.3895823372020146, 1.2904294578585365, 0.9234580415765414, 0.49274637357004636, 0.1293571160671556, 0.018104762528424523, 0.22961153806468904, 1.0812359528792967, 1.358181399115793, 1.2085701067153565, 1.0785153273248085, 0.8175534192061065, 0.8008646153393251, 0.7796557662557149, 0.7281003004550826, 0.6291374259201952, 0.39633835586707633, 0.015489675087734023, 0.002565362178813757, 0.38460919898716384, 0.1719493720558809, 0.04535762508269059, 0.4395030702099234, 0.9248922691430295, 0.8073893778265671, 1.7361804807102963e-66, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.11821781151127286, 0.41590434374763063, 0.48043434245427363, 0.7769620838353184, 0.8203766497317702, 0.7634233887165607, 1.0802328793285056, 1.0134327275625452, 0.6683949279159265, 0.5912570390514738, 0.48345864377951386, 0.09149511331827753, 0.10977423768423478, 0.5897939813389854, 0.667201088450188, 0.38131016026545694, 0.42174404372339325, 0.4222844303515103, 0.34234388754362044, 0.2901274872785429, 0.558661445669717, 0.9320766476229814, 0.9727825001028236, 0.5292032069980088, 0.5084211033399697, 0.4985605254348826, 0.31498139193758234, 0.20182217313973538, 0.2067159038594335, 0.21847336009031793, 0.3372010450721632, 0.49752456680494106, 0.4399480417018289, 0.06753253703877604, 0.14653539348746936, 0.6602324790905278, 1.0803225842721673, 1.6303531907101956, 1.5708229216571112, 1.141390990000346, 1.1387017493314175, 1.0133772849613365, 1.0242266891537497, 1.1240303083344685, 1.1694990054731988, 1.0688196009587045, 1.0071665434987978, 0.8312045166155855, 0.5708780002250933, 0.5026072896266811, 0.3518213598174533, 0.27388967037925127, 0.48051358595191473, 0.8708981760678149, 0.930532095651845, 0.7980334444001222, 0.2965660592417976, 7.934743244345833e-73, 0.0, 0.0, 7.455748299698939e-71, 0.10981221700227994, 0.15405565202890248, 0.016235425583134067, 0.15197202433484236, 0.8177793572944125, 1.1215701613923699, 1.087751984829083, 1.220992110807643, 1.6426684503132947, 1.719588767316523, 1.3762989701945116, 1.1035595911280893, 0.7236914380746704, 1.0209003252368944, 1.5284807040575856, 1.7363917999237088, 1.5399802470893178, 1.3786108430350055, 1.0487487141427323, 0.7110293091675466, 0.39679605983396016, 0.3164373643894578, 0.2524485646295602, 0.42296726144983054, 0.5440324355824941, 0.4679521604772141, 0.3970178375433342, 0.5975158257457203, 0.7841952524533014, 0.9114837160957592, 0.922210258766686, 0.874991130067432, 0.7417640594233923, 1.0024949357380706, 1.2870838189357983, 1.319274799224118, 1.0697887571178768, 0.707629964964557, 0.3553588410744659, 0.5501698101972217, 0.6347908212501387, 0.6953627255673069, 1.1035365489488527, 1.0718727822841743, 0.6889920919675774, 0.5625982625478834, 0.6901772344465371, 0.40025931857998387, 0.06085010659886425, 0.0, 0.0, 0.06158812865433938, 0.11244531582136919, 0.08894982098468862, 0.30371595738648693, 0.40165820379412764, 0.39813653126545034, 0.4262737925352589, 0.5305048993683528, 0.59340290916181, 0.5253536896424436, 0.31574141177407, 0.10559553024119683, 0.0, 0.0, 0.21520605788795422, 0.8456623146199185, 1.1458036274789265, 0.9682701297741438, 0.8084575635874138, 0.8699027874308776, 0.8415938930700264, 0.7108115988278065, 0.712988088489297, 0.8572857002224197, 0.8193772286660739, 0.6198956176353967, 0.4722850604737374, 0.4642158013838049, 0.29227227137324974, 0.1745419561604109, 0.3075656900652035, 0.35016435425285763, 0.12185669820243916, 0.0010831711209380451, 0.07264216275874791, 0.42481554882232686, 0.18699005948634806, 0.0038828897409946134, 0.11880770004233288, 0.2254185889593865, 0.1651343598653634, 0.0009730495729379542, 0.0021802826066244507, 0.020277695350927383, 1.0055695388691887e-67, 5.148807724544893e-66, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 8.391348757725556e-66, 0.1463749681081481, 0.10022212118844553, 0.07660179548176771, 0.5308083162804564, 0.7648811508813971, 0.8445864709047015, 0.7411732093844456, 0.581990392229784, 0.3204058468122959, 0.338877644292225, 0.5716376357092976, 0.7411353397794898, 1.0646265574107474, 1.1939229606446702, 1.225915392779143, 1.270104490585311, 0.9587381020764951, 0.876446822665585, 1.0099229188487158, 1.2237968167785453, 1.1936030729594336, 1.3183186993582154, 1.0622465890648982, 0.8391397709239676, 0.6727891937600958, 0.6508575832979204, 0.7922434231825406, 0.9883590762166286, 1.2326277896448943, 0.77475964486554, 0.481479906728314, 0.6065059682947869, 0.5671374920113159, 0.43872291810862407, 0.28617496532730513, 0.42501214771195706, 0.622029049736966, 0.2914015949251194, 3.307236228937074e-07, 0.0, 0.0, 0.0940642082318357, 0.3915639642074531, 0.7936977404450687, 1.2461874074066515, 1.345214970860539, 1.0670574598125313, 0.7937582774329712, 0.7905465327245373, 0.583270841898468, 0.17966976641192733, 0.11505034555972316, 0.19731928760121775, 0.12442747672652388, 2.0002839098851047e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.602097053004909e-57, 0.1514653674414399, 0.42173157972897357, 0.7518702665265664, 0.9442938171408208, 1.067237253794758, 0.774965843148042, 0.03002500844253575, 0.0011337803343330344, 0.15702510001684633, 0.026138995527663633, 1.386777775024417e-66, 0.0, 0.0, 0.0, 0.0, 1.2634378536552462e-70, 1.6938647155149866e-66, 2.5117488544844607e-66, 2.689972738247156e-66, 0.0, 0.0, 0.0, 0.0, 8.220594996468072e-74, 0.033032796915170914, 0.2797155676609151, 0.551342108928111, 0.44942132684724356, 0.06134532751517341, 0.0, 0.0, 0.046080529373888846, 0.5936008194706268, 1.3019504439973986, 0.8408784979299391, 0.45703055670864856, 0.17023689972121137, 0.27103406324835433, 0.38447569323240316, 0.2806646068876404, 0.34425020836281206, 0.3407361692474389, 0.39615300726234537, 0.3026661779159987, 0.3549220088911085, 0.5435214356977305, 0.6684747500877428, 0.5258750104100187, 0.4900546422932308, 0.6032140343595529, 0.7481834613128093, 0.8695813818363263, 0.983198645311635, 0.9451358239690677, 0.9438695378833017, 0.9894207672375366, 1.1750826014536528, 1.1527171604484607, 1.0132911239287665, 0.7044118445594485, 0.48725735714698715, 0.5057304941728944, 0.5706723881790801, 0.8499408852411285, 1.2864766512798411, 1.399626850982031, 1.2032588840247769, 0.7738171488201182, 0.5575708429016437, 0.8156531542085901, 1.5046488723409226, 1.443749061005306, 1.349106012328832, 1.0294202532793548, 0.6270822598853698, 0.36506038368679583, 0.1344854753058664, 0.008511189174777167, 0.016468108859252206, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.12978937901550935, 0.10363425650459224, 0.2744781759852266, 0.3786025982349237, 0.4167031136660171, 0.3270109930074483, 0.5545025666441603, 0.9528907694680697, 1.231037448134785, 2.055789567328489, 1.5536642172961024, 0.5326008855096376, 0.35416733298099246, 0.17801809717221673, 0.021779912921120692, 5.8569219572997736e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 9.731344464658197e-24, 0.09080749224900675, 0.42617526377370396, 1.0819805655439865, 1.1348737155299773, 0.8212437971213014, 0.782341562525346, 1.1245020305217537, 1.2531647726205506, 1.05452641205558, 0.9838770145900675, 0.9554852006640999, 0.5363717814475564, 0.10590164333862973, 0.180092393269903, 0.4781699530834125, 0.7857062002788098, 1.1140503681765637, 1.0581949824702406, 0.8177224386514723, 0.7016599207953824, 0.4680554053483412, 0.4181526976107399, 0.37550448418588545, 0.43820343846337906, 0.42937038906743297, 0.6275534991773704, 0.6186004969621628, 0.6720695306657944, 0.5696251795442642, 0.6034317239310703, 1.0204031739392718, 1.0678122035787965, 0.9474259805028886, 0.6219404870311251, 0.35161145780251957, 0.3339120507924953, 0.36204239742806976, 0.4928173367887645, 0.7476118080032848, 0.6889347019750858, 0.7507053594873838, 1.0392867060261466, 1.1551092282371798, 0.7296883001728851, 0.5141676491641647, 0.5296804502536112, 0.5391087210748289, 0.5948589405889493, 0.6516728082670085, 0.7478657002595277, 1.0095896647436007, 1.188955479447543, 1.040476079996452, 1.0270464041079777, 0.9135856514715215, 0.8384198529491336, 0.9936209453697167, 0.6742408341526698, 0.03313495608645334, 3.1091890874013127e-66, 2.5432434532332096e-66, 1.2715217171981611e-27, 0.2809900728895087, 0.67490446416015, 1.0794157942217595, 1.2936677124776566, 1.5026357074152799, 1.4028363099932903, 1.2925352577074278, 1.272950758914945, 0.8406874275009422, 0.9277382279493374, 1.1713042810971643, 1.3465464962628317, 1.1232789425394571, 0.8680870872518085, 0.6413839756928361, 0.586163021771938, 0.514507230179845, 0.5860879104803054, 0.7455388872158188, 0.4094316182606441, 0.06482294482681539, 0.20776618884282527, 0.5285590704626806, 0.9194064032936353, 1.2346376911654176, 1.2359711134428295, 1.2538198241802547, 1.5014254170782948, 1.8185982533234437, 1.6006143524464278, 1.2411515626101988, 0.8829118770935942, 0.5816174958269507, 0.30571325814713646, 0.13637252452412074, 0.12978620098005322, 0.11807079405476006, 0.07927962716536285, 0.0009864859112451857, 0.06987236542603004, 0.35146055653615704, 0.29791107642481407, 0.3750896772476473, 0.5424968197119462, 0.5879582699927575, 0.731476523457534, 0.830552977429889, 0.824452620770618, 0.5756002050193274, 0.11751876079273771, 0.0019499599344509205, 0.1408500155181125, 0.6123655298155803, 0.6929387210132063, 0.7842315674220259, 0.8431003544584179, 0.7431568132835906, 0.42749342437224414, 0.2670870929077864, 0.28932316969077476, 0.39932828501640927, 0.5142224430465525, 0.5626860712839097, 0.3497353099105318, 0.3450454347878349, 0.4817666494399795, 0.25918149512833466, 0.3763828339092612, 0.3098131528590251, 0.14398073690244928, 0.2718721675917415, 0.44464349325759045, 0.7981455853610555, 1.0925177794736243, 1.194736418583716, 1.2349312366695955, 1.1696962567259703, 1.3164461100591893, 1.4055030202162158, 1.0639599961951376, 0.5735556811471412, 0.507466230593824, 0.6825695203485829, 0.9646014473901801, 1.2002604950971687, 1.3537576577415535, 1.124547539503297, 0.48323454158220613, 0.01569112293052144, 8.452320875594101e-66, 8.760074650800264e-66, 6.803273958746347e-66, 4.6023687708483867e-38, 0.06260678258879526, 0.3616622661754185, 0.21007065557945825, 0.014681800381542098, 0.0, 0.0, 7.960991628892521e-66, 0.018451047876514082, 0.11197255812975815, 0.0277519815811047, 0.15568284536335852, 0.2173805330725722, 0.10524592259459098, 0.14595874697654754, 0.348067124093987, 0.5618987201011727, 0.3637494555101206, 0.15991532969369704, 0.41729955592523993, 0.8015231897101991, 0.8462962836569297, 0.4717242920395428, 0.39798761206783695, 0.35430220995352, 0.328961090505814, 0.3862487108763766, 0.4593658959786353, 0.6824560668280846, 0.6228836933681272, 0.4188243122005275, 0.48359508645722826, 0.7806314063636819, 1.0334937642874706, 1.0812530589846716, 1.1748520765514172, 1.1240581134354812, 1.1900470830878476, 1.3961680766011, 1.1643827428412266, 0.4913553394186607, 0.2838881820076189, 0.43315132425055936, 0.6772308189649721, 0.6764365228143312, 0.5748858438802564, 0.39074645390293483, 0.33204697706027275, 0.4667985669811969, 0.5774442562199944, 0.36436357179571033, 0.3792203128157645, 0.6776839303866069, 0.3754468502868349, 0.12784481220805421, 0.3001664137118496, 0.5946212006109732, 0.4838617274586454, 0.49974696522867035, 0.7497599633015994, 1.1633600647327427, 1.343136022802355, 1.3682441673154244, 1.150628053092305, 1.1745484487785376, 1.3988975309171678, 1.2546235237505812, 0.7844826281964288, 0.3108931900017211, 0.04208538256485128, 4.282221129829709e-09, 0.0, 0.0, 0.07318960126869811, 0.2318840096217265, 0.0931478286616425, 0.05898732216774172, 0.12772029594432244, 0.24692124210909938, 0.5574051104602837, 0.9085179394817402, 0.5975028329814904, 0.39082514822622727, 0.29087126151296516, 0.12259687550087861, 0.15425398656363143, 0.2352960757293978, 0.017357694074737973, 7.198815203287827e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.858701652407037e-66, 2.2754578307725884e-36, 6.103251002985103e-66, 6.114026985690296e-66, 0.0, 0.0, 0.0, 0.0, 0.004887929646049338, 0.177985883394137, 0.49766819396432993, 0.7308706259935072, 0.7042959897343657, 0.28768706412462564, 0.2547699886365571, 0.10965945093136398, 0.1723044787766561, 0.3593189268997641, 0.6843568681894716, 0.22839384917478256, 0.1988827273541327, 0.06304993970250994, 0.08220309920364688, 0.27670511954056565, 0.19682747086859909, 0.15027465829133746, 0.3500342873950082, 0.48603639498855955, 0.3821157546116325, 0.27498591616407353, 0.5276200975285974, 0.8814933534750367, 0.9508470569571728, 0.8541978599102471, 0.881309697281413, 1.0866723247065835, 1.035293237464785, 0.7101627866366158, 0.638999910348744, 1.0529304645033335, 1.3489933059561423, 1.0936382368900013, 0.6279234577044832, 0.41991605318708025, 0.34376406313418784, 0.44983331131972193, 0.6711689795918261, 0.7308473899731247, 0.7667857632446271, 0.8076554742184641, 0.4992277295838363, 0.3396747733047647, 0.3994800918968089, 0.5167125262295293, 0.4757292660302461, 0.6002978645284465, 0.48931887947743746, 0.5842658165502144, 0.8172536898037528, 0.7218617144917836, 0.5468360752712762, 0.4840937715448632, 0.3849296038089598, 0.2005252497171206, 0.1641728427570257, 0.27440148716837953, 0.2209648284546697, 0.018119398047504953, 5.73827485838451e-28, 0.04276933347884815, 0.08320799462411177, 0.0013259178931846471, 0.0, 0.0, 0.0, 0.0, 0.010961947836952979, 0.13982951209533212, 0.481706663018727, 1.4514502842357615, 1.719066688708054, 1.8425993248856685, 1.251024636963848, 1.044247080617211, 0.9741376802158044, 0.30254577929116877, 0.00011874165260040374, 4.514157217035504e-66, 0.0, 0.0, 6.157063801344162e-71, 3.6589051749290763e-66, 5.103044595626308e-66, 1.6734315752965472e-71, 0.0, 0.0, 0.0, 0.0, 0.04329755044341632, 0.4419501484106583, 0.5672871564178337, 0.5029670421127008, 0.7922780140745544, 1.233647629908333, 1.697680941150793, 2.143569620762321, 2.1773158639464327, 1.5977449679350144, 1.0434612582867118, 0.4895631548301971, 0.671500974098965, 1.1717723994077147, 1.1904947385353495, 0.8917069850341797, 0.6390395528058121, 0.46909468556751577, 0.8141051700103255, 1.3136559806372503, 1.2221062271354555, 0.628623248314625, 0.26058695666007736, 0.0036352314971289795, 0.010299660224908858, 0.454199546239181, 0.6929900255884469, 0.8066220788994691, 0.7127449178524472, 0.6699675902869764, 0.7260636677756338, 0.7360784615436877, 0.44168058259842624, 0.04998094157372268, 0.04241771315834009, 0.23621393283453163, 0.2090728466737355, 0.09052571670228904, 0.24826206868269285, 0.4907853624469318, 0.6152616448455319, 0.7269093432813953, 0.7244578040519087, 0.532174765833421, 0.3121518454617309, 0.08412347029857958, 0.03595876333674952, 0.10260796375747816, 0.37676476835671124, 1.1016006135097456, 1.2645051573381352, 1.3252719988943227, 1.3255626770383202, 1.5302376896994616, 1.3846380301606729, 0.924057267796119, 0.47263510548874876, 0.29768924302544875, 0.5345686014441107, 0.9176945744159504, 1.6856136067934955, 2.737913478487158, 2.8032152738957308, 1.9488114175670859, 1.516218577148777, 1.4674813730394476, 1.6050037511104733, 1.948596746874557, 2.1572633312719205, 1.6160502180577083, 1.3725928918376127, 1.0205353985839452, 0.9362746518437604, 1.0106231471838925, 0.8229511324253771, 0.5874405587070584, 0.8386931976092491, 1.105001959057418, 0.8822167487166013, 0.40482303675618425, 0.5855764968166568, 1.2040336572096209, 1.0489677377523918, 0.507224320296018, 0.5885758004713217, 1.188731655988832, 1.5199610458217307, 1.1743089335368495, 0.6695793970075101, 0.1261521727793138, 0.12179226813373933, 0.39573099448645976, 0.4112319292608255, 0.21146938042011598, 0.24169292437548862, 0.4528431307449523, 0.20264292257693128, 0.020699883526386964, 0.08822892884842304, 0.26350461152163973, 0.2756171519122894, 0.25025445733950846, 0.3238666265689325, 0.5582078335385496, 0.4945355675610621, 0.4696073239126832, 0.579434984367154, 0.6831013608973535, 0.7364660349026622, 0.9975418671924139, 0.9683888438430053, 0.7407906579723011, 0.49310626338115426, 0.33905532015764095, 0.45274614965993365, 0.5971961157791306, 0.6689990243393176, 0.9477917528460047, 0.573611024930333, 0.016254486334478457, 0.09293821789751266, 0.5723283319571806, 0.37211143421373905, 0.27954089009714167, 0.20932592131817174, 0.009259464448657662, 0.0, 0.0, 0.12200442945163559, 0.6219872120042034, 1.0435584347897588, 1.0369806484343371, 1.1792941710556448, 1.2582856139141683, 1.236539997729679, 0.9770363300251574, 1.1545606776053319, 1.0090375566852714, 1.0881871824563518, 1.3429580836257173, 1.02767616559737, 0.733809693522236, 0.5350139018859501, 0.4787314867496981, 0.6935533099351687, 1.004067495583186, 0.9147752535808742, 0.7219266384363578, 0.541529224935644, 0.030924638907524837, 0.018341605969294017, 0.24584298485932354, 0.4933798675041068, 0.6535854007569384, 0.49473854520698524, 0.20578279995863014, 0.27403792325290866, 0.3018045707560759, 0.23717552007721654, 0.14606346996161168, 0.3090421477646146, 0.6640804364907957, 0.9517061677301264, 1.043698240502863, 1.2056459946436462, 1.1326579874212825, 0.8260245999136693, 0.25643159209895217, 0.007152723507375391, 0.0005802861668923222, 0.03155916942073156, 0.14925117482481287, 0.21546704970774044, 0.10477149068648917, 0.13452477952843456, 0.2624165566487626, 0.24647441625359168, 0.21095031344453563, 0.05706190001774325, 0.008870427277287762, 0.05456520325359393, 0.22394271626480222, 0.1804205376686241, 0.010615496375319333, 0.09700565355211044, 0.33753139202099547, 0.4296118718659869, 0.6463051451377488, 0.7748420159521494, 0.782944166709413, 0.6113183784994511, 0.4130204074664654, 0.4185177040683108, 0.6484085383072546, 0.7438102416380765, 0.6865308267243222, 0.6253801558478109, 0.7365677271479996, 0.9098828700451946, 0.6920491815100185, 0.9391618541248228, 1.3475731108611768, 0.8453032220899992, 0.24136449080112143, 0.20008746313124082, 0.6304819540901896, 0.6280570360186175, 0.2588837783005147, 0.4020798116586697, 0.9074959359739445, 1.2249444042244164, 1.5804945969234865, 1.3784400865026782, 1.4580346122352381, 1.2772041746065952, 0.9932820754993408, 1.0944574438214119, 1.2664496453363085, 1.3347225460424994, 1.394255609920961, 1.017386976633361, 0.660801575755702, 0.5201611493866984, 0.3602066956530372, 0.45543151525839676, 0.554444513163844, 0.27514890981871076, 0.14627407722336816, 0.11430686499764775, 0.0769410309002092, 0.031160564179405492, 0.008284726386405039, 0.10899076311312683, 0.23486082423059518, 0.07081572330316366, 0.003779778107979373, 0.011657026831299933, 0.3604788368693477, 0.28286998095872207, 0.0059987702142341726, 0.0, 0.0, 0.0, 0.0, 0.00262142460878724, 0.2430130053029167, 0.307390452626354, 0.049824190650060496, 0.0010208244433932562, 0.050156071376150635, 0.04770142459348392, 0.144754637373822, 0.14171108138086286, 0.03190970235751345, 0.03271854838709487, 0.3765599876128931, 0.4986986616985156, 0.3773776870295933, 0.5374226716783461, 1.0174858172740784, 1.0204407450982131, 0.04446965643518852, 5.119750126531511e-66, 5.847482387698467e-66, 2.4914603296376424e-07, 4.932077222727442e-66, 4.790834412249593e-66, 0.0010808734943958953, 0.04604608539081312, 0.0991490850509571, 0.16099931819625013, 0.3775142029771814, 0.5208409284875906, 0.4040486984652034, 0.4027831846458554, 0.57959098183915, 0.6161461563535795, 0.441745549787246, 0.46556391558226906, 0.6040904021659941, 0.45991425990479584, 0.2838784006139896, 0.4937411612445466, 0.8010694571702892, 0.8455358123976318, 0.7528640541157507, 0.8625963408531021, 1.2914488169226388, 1.3538627953757896, 1.088502817350573, 0.6394178379838742, 0.3682658713981404, 0.4866159157200265, 0.43458182716518934, 0.5044564456438962, 0.7907484607176372, 0.6022622545838772, 0.2680149733807866, 0.13472904402633734, 0.14795474511533158, 0.10394658577439486, 0.3014832983389262, 0.4316753229825885, 0.5139991826772281, 0.5098925064016981, 0.5977947895828493, 0.42104587955714123, 0.18170258814532136, 0.07735488493601483, 0.026784806880542078, 0.08664853591200483, 0.357712637897837, 0.6233761297428373, 1.0623215371027896, 1.0013604019341074, 0.5474614373133626, 0.2670743402204643, 0.013572622697766157, 0.0117423659285123, 0.05075645714289667, 0.0005023586209740305, 3.171045099128778e-60, 0.12802302023019152, 0.5233607642730398, 0.6855056452404575, 0.7410307672231831, 1.2024339019017702, 2.0518878905497786, 1.7828802004160593, 1.5475222523651269, 1.4357052067488354, 0.6725607992928104, 0.3055339367645935, 0.047442782132884, 0.0115928549335243, 5.151745521262241e-66, 5.3797305308735056e-68, 0.07304003600981801, 0.35187078674665884, 0.6141744623912473, 0.6223458399301798, 0.629341869665101, 0.5548098391003329, 0.8147482900041645, 1.1067617848271425, 0.9923400311709543, 0.6579945155522218, 0.459273389298577, 0.5692579753092595, 0.39325484705445035, 0.1525862608148465, 0.2032067231571233, 0.6844637731005356, 1.168179783792823, 1.1817258245583275, 0.8201367503954913, 0.7418442467553632, 1.1031528819290202, 1.1581807995980853, 1.0076561522152048, 0.9699282102136664, 0.7257486086052864, 0.5557457639515953, 0.2791308550578755, 0.11441325153215587, 0.00033531309884039795, 0.10440445308290691, 0.4470986828738468, 0.5538151742599098, 0.6998223801418568, 0.2727452457847903, 0.020340391362428045, 0.16244226802800998, 0.83395735685896, 0.8178035051959256, 0.2527666517004299, 0.23083489856027573, 0.37109646401228247, 0.3174987163328211, 0.320472180831203, 0.47828594338375297, 0.6409856392040183, 1.0142938425744887, 1.573939921027204, 1.7655762837171665, 1.6592191259537827, 1.607488767338566, 1.6673887257647948, 1.583588169411442, 1.5213108165375075, 1.5739234698975366, 1.246760235013781, 0.7639961570532705, 0.6041948269897013, 0.646824776770373, 1.1485743130038486, 1.4141403224976443, 1.924106217193767, 1.6528227026046949, 0.8397050913093871, 0.3813147242301653, 0.5336511248970623, 0.6746505464968813, 0.5986840004789542, 0.8242238145649914, 0.904947469288345, 0.9421231562238432, 1.2588601450295442, 1.2869431704732506, 1.4120189585242002, 1.3232710555189584, 0.935368693746014, 0.7966649588836425, 0.4560692981665717, 0.05075163644528402, 2.6864758614789426e-66, 0.0, 0.0, 0.17082022195424784, 0.9953037929855135, 1.3599238336837516, 1.0555150319092377, 1.5041248402730076, 2.2687905707957867, 2.677719076905362, 2.254627220172779, 1.3777927074016958, 0.984143555471352, 0.9206370756925288, 0.9071114562947322, 0.9067585016545223, 0.7692296364523123, 0.8047692167313905, 0.8371641756853343, 0.947556522492107, 1.0923675148561074, 0.5699798121825097, 0.20302043037221384, 0.01848960674610467, 1.39004339511603e-26, 0.058473882035064983, 0.5123146707900936, 0.7466854619100474, 0.6823379945760877, 0.8256750094333256, 0.9584655709496737, 1.0358388928582372, 0.8925182335449477, 0.6076604984973564, 0.2324063681650026, 0.19700896966828996, 0.6562879221515097, 0.715511313611561, 0.372756802125096, 0.034576741590591986, 2.2218005159405752e-65, 0.07647671839026149, 0.399173720264244, 0.7462958263177235, 1.2329234787267183, 0.8934720486414314, 0.2060422632458705, 0.2168552007147042, 0.8007069476474591, 0.8966015685508779, 0.8794906216331242, 0.6314763245754875, 0.775273250191276, 0.6315016178027442, 0.27110394896468293, 0.48036782923475485, 1.0280438170519943, 0.5690087720893331, 0.2175926233984251, 0.5080864261547191, 0.9297898414434123, 1.0018345178849728, 0.847426657534843, 0.8095742928186525, 0.6511389196673214, 0.8219172888870077, 1.1915136569581506, 1.3890343454444434, 1.4353898385083, 1.4356706402423356, 1.1449365929666442, 0.6464815913473245, 0.3815682143692847, 0.6802174886270542, 1.2192924030200771, 1.496625882419508, 1.7040978297808493, 1.615512283142607, 1.3198398057293161, 1.0193504994498568, 0.3804650466996726, 0.14858379165503166, 0.16833551427133475, 0.18947785876240264, 0.17137362305631143, 0.03461020485889166, 0.0506293962360127, 0.34778297793423363, 0.8361946925945176, 0.8943173557723902, 0.20810933420705968, 0.13341336904251566, 0.3832066257602129, 0.6169028351292241, 0.3187278546265624, 0.023587162731658617, 3.203345851017997e-66, 0.0, 0.0, 0.009397462474204643, 0.06479189936650087, 0.007498533818961484, 0.004270655097906806, 0.0, 0.0, 0.0, 0.0, 5.50339552871378e-34, 0.02284022457983448, 0.19854730469752813, 0.43484678136787025, 0.5770788867023704, 0.7828938529350502, 0.6410331696230429, 0.23179954667792746, 0.34232345123146857, 0.6804721566425123, 0.8984351945645273, 1.2133966073537437, 1.2394784870598983, 0.7332378426873589, 0.7001988926177205, 1.0998891546252167, 1.1371816102328012, 1.0815669428490224, 1.0984046509875043, 0.8116341384561707, 0.27482728288706326, 0.04420106707714333, 0.13011232401601092, 0.4425681937381718, 0.6269889960754114, 0.6893834960686185, 0.3011893469094993, 0.12741146209214094, 0.2345700624921534, 0.344580770598796, 0.23118225541455573, 0.31558448603249545, 0.5407467418224918, 0.9718259034577983, 1.023849347383532, 0.9463503089547345, 1.1844713369112156, 1.1922963551662633, 1.1089756503881745, 1.1883235768585934, 0.7283100618883651, 0.40725053154929824, 0.45855264124453754, 0.6842242348650416, 0.6416920004675184, 0.4733550223572571, 0.39631313990625827, 0.5049462871835573, 0.6466007373066454, 1.2125718321399859, 0.9579751125471745, 0.5809264851318972, 0.707473436944511, 1.1642281291211134, 1.1591136674272917, 0.8266228778052778, 0.6177938659247708, 0.23316143430641123, 0.09984649770836995, 0.19560671659523, 0.05042199038689987, 1.0038165081152424e-68, 0.0, 0.0, 0.0, 0.0, 0.004711541807368713, 0.5232189084555472, 0.8382416134399051, 0.708815968598774, 0.39836741107240314, 0.2096974817194388, 0.095978292186083, 0.016794766580719767, 0.09406790096509443, 0.346168204603746, 0.4555364270345308, 0.4685217801397954, 0.6149245079857479, 1.0367995372440078, 0.9083999997565115, 0.4358300411588658, 0.14705067997656673, 3.869692609506499e-67, 0.0, 0.0, 0.0919948450655319, 0.43223214321655234, 0.6597881457891539, 0.8732020947565253, 0.8324651806902104, 0.9878690840307627, 0.9758345716216041, 1.0681840080213902, 0.8121802342458437, 0.4101901752051198, 0.4029555483980971, 0.43086060143195937, 0.6611820790625167, 0.938227249105811, 0.7114073157878273, 0.2474336367407668, 4.941232671110088e-16, 1.8922796132526282e-64, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.021196090098254183, 0.08331497214723615, 0.29587935610430804, 0.5004788856956885, 0.4837835349977446, 0.5882160682977009, 0.42903441050444613, 0.4076580140845323, 0.413025617087559, 0.3821921747888304, 0.22164044488454238, 0.2500010132799879, 0.19593310396006647, 0.04966477684045234, 0.0022448044223911112, 0.08783883338981369, 0.41614846988160537, 1.064548576185885, 1.263628883068023, 1.0479936609527982, 0.5323053061197811, 0.29390686859700565, 0.10580718230215869, 0.06459688995254087, 0.22909578364818461, 0.4818624699809426, 0.6337066298313268, 0.8748176298644559, 0.6250428023124641, 0.2643124924336604, 0.378116295305464, 0.883231031224696, 1.0855619009000748, 1.1921997729164246, 1.3619976427153233, 1.4457321449729221, 1.56258076533733, 1.1242125643932468, 1.2793412284090664, 0.6001695805144323, 0.3615979626421364, 0.2994157335018919, 0.649866129189153, 1.1134417161861734, 0.9145761917864981, 0.5760213803878287, 0.47105446050688116, 0.5975040308900113, 0.7378297447942259, 1.0691139255314397, 1.0918821535097436, 0.9401530989049469, 0.6597297582653141, 0.6545819051474524, 0.855298878637317, 1.3676390583228226, 1.1616017804932568, 0.4649783764168802, 0.3225010698864459, 0.5176646473281643, 0.5227476023621911, 0.2682077434855934, 0.321549397883647, 0.3654332881526443, 0.17232256538609736, 0.0002581713572312773, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.029025809153836235, 0.061887920832291776, 0.43202902325960224, 0.8676146652294534, 1.0555755347105702, 0.9737028659717595, 0.8164798855590085, 1.1132402107786135, 1.5012922039011443, 1.6646458652792404, 1.249109085177281, 0.6486479641346001, 0.2665162927793432, 0.045912026969681996, 0.17241509162955992, 0.7339021131201662, 0.956616767927926, 0.8049261073792877, 1.0785811903270002, 1.2778784151601599, 1.1154852202686385, 0.8994782011573221, 0.9887235385310902, 1.1886274201990545, 1.4921272901412976, 1.9030045497369343, 1.7584049229640755, 1.5733085584376028, 1.6955294560184484, 1.809382965723728, 1.6332736329395772, 1.4489885543753758, 1.379337656321752, 1.1851694385058096, 0.8776596886417707, 0.9053779955348205, 1.1337056696402783, 1.3198732224082619, 0.7663341464810038, 0.3865650541992096, 0.4756120241432349, 0.8008745367618673, 0.768707376409683, 0.6045391129191557, 0.7028701956438823, 0.679876465483531, 0.8386189622247606, 1.2418324270607286, 1.1701483213437882, 0.8462029606113362, 0.9385470090615087, 0.9139523543746151, 0.64406089144018, 0.6163054284111382, 0.5809382969363384, 0.5217807411611375, 0.8943300947894528, 1.1268089775707182, 1.4833803909496623, 1.5400669375683407, 1.5856016942743736, 1.78486469273372, 1.6633080289159494, 1.3475955291824562, 0.9007587113983959, 0.5884003098549471, 0.7610783032706792, 0.9635753939424063, 1.110878348558927, 1.0120936490295662, 0.9598161174612905, 0.9461254614490464, 0.5562450507864583, 0.3845016385497537, 0.5668995240760069, 1.0749473743908453, 1.2604712964403575, 1.5163662496263584, 1.3982586155179888, 0.7859394250887739, 0.6554637343687233, 0.8917228574206462, 0.8177736437805869, 0.6931999277185241, 0.7274818734303246, 0.6104733855709696, 0.5753477184100575, 0.665138086284415, 0.40654623134091494, 0.1552520117730296, 0.037999221975951514, 0.12394241754350421, 0.12262741002602073, 0.2024550915823653, 0.3527369925955668, 0.38742232851019764, 0.4822476686671031, 0.515054796861719, 0.9424088612961476, 1.5041192846184117, 1.3028932431053022, 0.5448545121015655, 0.39385596682456026, 0.37866135410469326, 0.1811625486587367, 0.4012661914223372, 0.38630450060885835, 0.20668514666235538, 0.2949912764729703, 0.5650085101643896, 0.2775892463071159, 0.2077667322155321, 0.47686197717851897, 0.57542855873875, 0.6279181677666799, 0.6961516422284717, 0.47877454301570666, 0.28312079177092997, 0.24783821380886284, 0.17397192304105502, 0.42080789930153983, 1.098192767953151, 1.4118761744018826, 1.2651449301193338, 1.231313104329402, 1.2207808338647652, 1.073510929856866, 0.7687575458143137, 0.7629369439905567, 0.8738698153369029, 1.1107813531516655, 1.2537925936890701, 1.5178363203069836, 1.791020060183257, 1.3769913211550744, 0.4821710967253381, 0.2417597984447326, 0.35802734508274625, 0.5740050089548419, 1.1044824778155657, 1.048408137578022, 0.6556016582617339, 0.2740688143171752, 0.04235462004118418, 0.0, 0.0, 0.11268318859422166, 0.23766811713489133, 0.26774960356121724, 0.343878069814739, 0.5541675138711675, 0.3948674178645071, 0.2245003662152536, 0.03334896641903584, 0.0, 0.0, 0.0, 0.0, 0.000931783745505621, 0.06683487463874371, 0.1734841929788935, 0.18774934492196937, 0.2638100547874842, 0.541325810856538, 0.6626371611349811, 0.664347417773147, 0.9352122482005463, 1.2018347579146962, 1.117598901794409, 0.8251748565061376, 0.8320331094694211, 0.9512672042294668, 0.48458034896700397, 0.14544192369535214, 0.04820931451515609, 0.0813498177693397, 0.1525987872936554, 0.014795754108043513, 0.049838154754869635, 0.48309425552162466, 0.7858712611096195, 0.584253970965861, 0.5007714832836427, 0.7155556824195664, 0.9514682427590095, 1.0471024965370503, 1.1417239289230565, 1.3652447539482324, 1.3009690983722209, 1.4940261612746895, 1.5017876933232088, 1.5332631050119403, 1.2429148091706708, 0.9105649232556381, 0.6487442653306061, 0.48250052341774463, 0.46353874382317883, 0.5018117439769618, 0.26478602446917776, 0.00879233314343747, 0.05887167657869785, 0.3794720778680585, 0.7367772721370471, 1.0580262517853498, 1.1772995849978543, 1.1760938701109467, 1.3385903945909519, 1.641367272452058, 1.5461769097274924, 1.4115826963785736, 1.4937271794224216, 1.5541733272796279, 1.2684428862123696, 0.6250648561752001, 0.18926117339142312, 0.1001723494556197, 0.29723133078563535, 0.5828360118883644, 0.5282256260707108, 0.39855275011611013, 0.3517027917698812, 0.11483004165535604, 0.18124701403533638, 0.381464245982702, 0.61585377446821, 0.4618541351548835, 0.5693222859695766, 0.9024581890180485, 0.9190530073110494, 0.7026231609415987, 0.34966164286379353, 0.0655025174612689, 0.03464647453492753, 0.48517685357254337, 0.46048875595881, 0.6822959479588384, 0.8175930854662425, 0.8558868197191352, 0.533194118396839, 0.021482052043062305, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.26443900410596655, 0.773011054262497, 0.8042236942972671, 0.5349649864906638, 0.41643320755662216, 0.16222884460180254, 0.1940662101282129, 0.4453764604300545, 0.28185734315434274, 0.07055092521410788, 0.13081503164590913, 0.2215366029384933, 0.1075443224456194, 1.1640188216390353e-08, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 6.626309566944242e-05, 3.2331566195022915e-66, 0.022314014431828122, 0.19783104412459807, 0.24977280893104226, 0.293433859111758, 0.3585293228099182, 0.6801918278142836, 0.6888465437292304, 0.3833379182084542, 0.273818615569553, 0.46009431742101015, 0.8771486063317901, 0.9644522927760733, 0.7393580972138949, 0.5555621766551475, 0.318576580422647, 0.11931427841659925, 0.20040216977620062, 0.6758166309261959, 0.8372153314869593, 0.9934505526637771, 1.397262751281815, 1.8275816671348935, 1.9042068583823948, 1.3833183632268629, 1.342209431475169, 1.6700192265387983, 1.7291147930538955, 1.5211896625699097, 1.4529868369720589, 0.9909803136662418, 1.0043797660410405, 1.4115450223553125, 1.4892512790650017, 1.4364969221970227, 1.3885027562285046, 1.066279102025888, 1.071348809624638, 0.48409385448693243, 0.6373068210443797, 1.0103714971593405, 1.3832746188402325, 1.1347792338156637, 0.2812336639750015, 0.002930254829525192, 0.13714709451921525, 0.9712604891798406, 1.4873441057523138, 1.6223560237542642, 1.606796008805361, 1.294950964840055, 0.8742254503012283, 0.7551954238894929, 0.7684090067986205, 0.8131660129273577, 0.7261240060547749, 0.5077555967293392, 0.7346972640718832, 0.9988555608152048, 0.6511646036560705, 0.3053384632622169, 0.1931189442984902, 0.01775068177217265, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.040360667636820446, 0.3460817999184975, 0.6542313645213973, 0.9299502012154335, 1.1314862640521284, 1.5003271691771403, 1.4293933068549904, 1.2729491449391759, 1.3808554542857934, 1.6452962063349332, 1.79900481247968, 1.979576389431159, 1.7523696601986103, 1.357044652397704, 1.0156295698533455, 0.695779501025541, 0.7289638527086915, 0.6573206972744607, 0.5920222215824111, 0.6067503435702726, 0.6693971927734879, 0.7156391801791848, 0.7068761624395847, 0.6771414508689908, 0.697619993847983, 0.9581447691812741, 1.1645646393440643, 1.6355215534577496, 2.0600193397609132, 1.676475972629433, 1.2723891571249766, 1.0629396520389491, 0.9048203497974363, 1.1297560442713461, 0.906502882323835, 0.7412835396292081, 0.38981948639093744, 0.03215446803320621, 0.06587688720262364, 0.06695054028722414, 0.10735720498989654, 0.37181269271435724, 0.5712393294746541, 1.0759121323572032, 1.3936799582443768, 1.401585053132294, 1.04390821022713, 0.4753960770909913, 0.3443064452132525, 0.41842431695931737, 0.4878719929894402, 0.8577460280531, 1.3955103511086833, 1.858171424059961, 2.094897667516321, 1.4898888271369657, 1.5519660042473902, 1.7865819522567108, 1.7117521859917275, 1.268935667033034, 0.978240360734052, 0.9109822196515474, 0.8100547823631565, 0.7169409830380715, 0.6443224784449377, 0.6121666606717646, 0.7436375285515773, 0.8851560274023349, 0.8787208520799119, 0.7726097886462391, 0.7900010850984387, 0.8417692074440062, 0.850323935858114, 0.9479738530217219, 0.9323207685529269, 0.9552921271729566, 1.1755292431803923, 1.2854595271111435, 1.1107469283388127, 0.8633227965833754, 0.7805016508655171, 0.6426294194307616, 0.782255947015301, 0.9742211012949475, 1.14177437072982, 1.234607490809836, 1.1725643360595228, 1.1808929726394126, 0.8345103658769837, 0.488161215557259, 0.5711950918057482, 0.6261024868728136, 0.7847877981964899, 0.6690862933473909, 0.5966294167922257, 0.6479793337046011, 0.6002506684556153, 0.6240846834168821, 0.7174155679290415, 0.8271178316622496, 0.7615564569151765, 0.22571200613369058, 0.16937805127726335, 0.4831360989073943, 0.2813456349692878, 0.01765375280687298, 0.059835938584954285, 0.0989056036801026, 0.03654029727205543, 0.01790286267011254, 0.026533914956416993, 0.07709538029715546, 0.3413608466544247, 0.5573497531252691, 0.8991233437325299, 0.976969048769579, 0.9341315520842386, 0.7907414643559605, 0.6336631675762341, 0.2523496264220739, 0.34732602812400515, 1.1745639522247444, 1.5879622879695034, 1.26201035748187, 0.7991637339849298, 0.21759746126459678, 0.08409653812633255, 0.0012974339255517192, 0.18266400314832598, 0.9115858074959569, 1.278418313107764, 1.0951719128526207, 0.8330323831731654, 0.4542837467752747, 0.5144952591545007, 1.444014062066401, 1.4425309420514623, 1.1673414160768516, 1.1925587870703112, 1.42687916156342, 1.025148621811752, 0.7879227571578582, 0.9157052935481715, 0.9022265021613407, 1.0093007772238707, 0.7103053451783445, 0.7279900403138981, 0.7485630690414524, 0.7879955603449531, 0.5474468837974769, 0.2485142437035961, 0.07175815768809546, 0.07808605605756558, 0.00043177228429947326, 0.0, 0.0, 0.16255863288785122, 0.5442166583425809, 0.7765936204994119, 1.1226450388480913, 1.241739703753538, 1.017236440259751, 0.9657505819350263, 0.7507284959107352, 0.9261820177835602, 0.9539964648023478, 0.9654693250739719, 0.5497646485242882, 0.40515509042649356, 0.6440240592041988, 0.6839065588369664, 0.8332566413357654, 1.0726892303961364, 1.3844618511967752, 1.1018956631314722, 0.1044336521636211, 0.0, 0.0, 0.0009941904850535727, 0.10394256946362734, 0.16360429568894475, 0.17319173969604496, 0.33980734856471884, 0.7281030468935832, 1.0182014127513526, 1.310503052791546, 1.091254433333745, 0.9101001849232127, 0.5938214525865284, 0.20951421125634884, 0.04464423941597517, 0.08514062644665277, 0.484213630247897, 1.4146095898826303, 2.0644545397371985, 1.7977012907422818, 1.4196340613873417, 1.3933284328750375, 1.2146901335402305, 0.8114173193426701, 0.4845777764745094, 0.24649773485594384, 0.09632898080898489, 0.13323721218675733, 0.17677514674289885, 0.2986145282202415, 0.30952252891383125, 0.42531894834532125, 0.38223071939684417, 0.16637463456711377, 0.008176660340149466, 0.00012823655301294826, 0.0, 0.0, 0.034860763224173974, 0.2220584153306504, 0.1369042158212972, 0.06875968539393185, 0.12723763492596962, 0.16529198173835002, 0.2873489227861228, 0.3596658671712625, 0.634153295584472, 1.3644776605023168, 1.595484319919379, 1.3184399723286333, 1.2179716943339969, 1.2321601068197765, 1.4241811428660753, 1.6199314549601382, 1.4961825717894186, 1.2356435209458283, 0.8643454464336173, 0.552432365098813, 0.28655791303876654, 0.19754874893921226, 0.4183192978303083, 0.9927307631865148, 1.3883047006416405, 1.3837286407176776, 1.0007859820179874, 0.025063932675451817, 0.15119368702898228, 0.6927696377542816, 1.0923553047524734, 0.9260138384892258, 0.9897198411332262, 1.0665789860741057, 1.0169608865553528, 0.821901293904844, 0.7888956134291938, 0.8041299412337963, 0.5704212549062504, 0.1789235103155642, 0.18116995666952462, 0.21991642566408487, 0.027326483165959425, 2.5538267423827586e-66, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0791909326322469e-64, 0.057633032669596185, 0.4109623491913794, 0.8376453637738592, 1.0915779855992156, 1.073039902233873, 1.0237275223378361, 0.9392240082249295, 0.8621890614752239, 0.6063489887221749, 0.4156549093185191, 0.593203930074143, 0.720929704330274, 0.709282736818583, 0.7161182771581629, 0.9030537357671733, 1.026656464428072, 1.1472659282162567, 1.3162633829306856, 1.1977273821190124, 0.8937833005887832, 0.49528321054607716, 0.5718988629695367, 1.0283510897025394, 1.0716691507480078, 0.6552766096143081, 0.3764639449447351, 0.4957592621213145, 0.9742620483500595, 1.3288411176404367, 1.0820522384246942, 0.6625471116539217, 0.5728626203959983, 0.5259042299987868, 1.044851873088092, 1.5072718652687058, 1.596024934311174, 1.4699064354932858, 1.4940372352511986, 1.4149966877271822, 0.9784971750706326, 0.5404215679370203, 0.4778215721618295, 0.6541240513241888, 0.5094000157507175, 0.4134566737779011, 0.5077525387164883, 0.6027291658114251, 0.38079600586374696, 0.4449297056553725, 0.6954779427437394, 1.1194355726581904, 1.1354513586129542, 0.9555635076040403, 0.9733611766905348, 1.2024974324658757, 0.9189367855097466, 0.595022609792295, 0.5835541101903097, 0.8561481059182938, 1.0117058391609959, 0.8349931872675285, 0.6251689104165195, 0.4825222186931377, 0.48175001834762554, 0.5145422034730451, 0.7280495431352882, 1.0690160593470779, 1.107984382238115, 0.9026467537928831, 0.7624913546780512, 0.5703211411675966, 0.16324322321338602, 0.07718883255038467, 0.25302071388546565, 0.6347404836300576, 0.9686794424798251, 1.0163784033156986, 1.191325243897623, 1.5149382676909227, 1.5032351890977793, 1.1433827233889957, 0.9362568882679625, 0.7599263382411472, 0.8692424750078978, 0.9837102970779519, 1.0060645219032835, 0.9876137674571375, 0.883571085117385, 0.4780996402974438, 0.4646670954628007, 0.6168445981798101, 0.32212877083340175, 0.02239702916603492, 0.007030820634802704, 0.07441157926802422, 0.5014911526814103, 0.8134962797975085, 0.9450582931408782, 1.1383158323681073, 1.4347654887428831, 1.7221912757441373, 1.7416870728341252, 1.1748450991323267, 0.8353175063967377, 0.5494251985672669, 0.5751452808081616, 1.0129227608288147, 1.1720387576269928, 1.023316024400188, 1.1130258954526795, 0.9973079227376189, 1.0027575403278775, 1.5264283828214644, 1.6948561551175914, 1.463278886463982, 1.502280926706149, 1.6046150369422918, 1.0709722602687322, 0.12257928282917252, 0.020110786102950584, 0.45697390349056377, 1.0804896138968303, 1.0703360274993088, 0.3616682165126264, 0.048788126590890935, 0.01813609031398955, 0.0028667672318048038, 0.05306012143905492, 0.26017058007241545, 0.48864199922162754, 0.5863436553801229, 0.78159226948992, 1.092282793094057, 1.175769399880565, 1.1086766418533358, 1.0825053949305499, 0.9976608143586105, 0.9524807345596855, 0.9662161924592425, 0.9452467368255988, 0.44745210629480425, 0.5010920976567377, 0.769513002220922, 0.9842238559176764, 1.309488750009237, 1.4567583949119722, 1.5972109925326237, 1.770897752970896, 1.842530391264873, 1.9217231578312663, 2.2296631625932974, 2.237457993755484, 2.1094777900316473, 1.8883364871642385, 1.3904764982658548, 1.0396863298186787, 1.05350228221711, 1.0179988556685657, 1.1528546243631013, 1.3873797855383287, 1.5849661958444727, 1.5322311832506443, 1.5255960610500239, 1.168087017795699, 0.7644226953547992, 0.6933310458364907, 0.5926540876321305, 0.5365852653492063, 0.4418981622422713, 0.3251434318017665, 0.16883550099248001, 0.2540894330483958, 0.29133357976806806, 0.14964229248185834, 0.008160616215230343, 0.0, 0.0, 0.0, 0.0, 0.14238200363225761, 0.9351030784049641, 0.8056327860215475, 0.20340272494824863, 0.43965189597958343, 1.0913000116975269, 1.1734784415441624, 0.9925046280489056, 0.6896918483366932, 0.41303626626819323, 0.2735285655700501, 0.155410766947913, 0.3474933962800755, 0.5917634987638145, 0.7179534388166395, 0.5750408662267006, 0.6076094827995462, 0.6417901714498022, 0.3328844549260026, 0.07269211671081521, 0.12022503664619322, 0.3796573022186891, 0.4269027457964434, 0.36500470930704765, 0.7166394140216568, 1.1639652321903213, 1.7336417077672763, 1.7478148766375767, 1.7214197947796492, 1.3479833126155114, 0.5987938607356433, 0.19656579126990792, 0.5099544781843548, 0.8653830070879884, 0.9321142822875714, 1.1478413519638622, 1.1117085109122513, 1.2291330366845301, 1.0454799996116435, 0.38450067759646345, 0.1246599126271839, 0.1797815557184288, 0.37213390465717566, 0.32625767516495685, 0.40515933965332707, 0.4513404102990535, 0.4924590582479347, 0.4098086722003167, 0.3714611036448332, 0.38894417289361627, 0.4405399992831214, 0.5009121191143642, 0.8663995526403347, 1.3001922809062307, 1.2923588053518529, 0.9645916126648899, 0.721809858461743, 1.1022580851713428, 1.3111131333380541, 1.3592552449100737, 1.2257229592127175, 0.9640538232059868, 1.0724055244972988, 1.0825748525873138, 0.6996072898621151, 0.30926863487113465, 0.4548638819022841, 1.1728710639552133, 1.4872815914022794, 1.6453521713888364, 1.7572249157774564, 1.9841202996623366, 1.86930727362801, 1.2961664500946881, 1.2332178794463857, 1.6207205233377096, 1.855300836064444, 1.7940828757932792, 1.0464019347100617, 0.23678876551366557, 0.0993665784053519, 0.37294860687788756, 0.25916589821407854, 0.0004864179339587743, 0.0, 0.0, 0.0, 0.0, 0.0016644802285481625, 0.1780528541031714, 0.09757993371750118, 2.6005745311282682e-48, 0.07532229763843734, 0.41122497272431247, 0.4745042844006129, 0.42591172030421376, 0.41570532824165696, 0.46742543017172977, 0.5919328865753073, 1.081920302640583, 1.3452946115217088, 1.390082649670731, 1.324456678234597, 1.0426153563290796, 0.7362265641019725, 0.6909931309024273, 0.8116002015072041, 0.6791216821834247, 0.3087877221879012, 0.07033754690529381, 0.27062777507423164, 0.719755146588458, 1.029836363877635, 0.9369956029907236, 0.9005331253195124, 0.9296643221520675, 0.9378550150779041, 0.9431267286822198, 1.417817434870372, 2.1162120716064834, 2.4046618291959163, 1.9682992770856487, 1.4828307529621867, 1.5894898002134283, 1.2441335512566098, 1.2246301492296539, 1.0808985688062336, 1.1669017411865212, 0.9573668525083576, 0.9771402611410309, 1.052846796882534, 1.1748089202544776, 1.1113234258146463, 0.814707724416408, 0.507242913671039, 0.6362375977217347, 0.4756848669819682, 0.16731138434707393, 0.0888713894335389, 3.325620869707133e-50, 0.301685522222229, 1.117686616183633, 1.08699196557383, 0.6556866011179672, 0.5412038158297605, 0.6989381986350054, 0.6512057760506309, 0.6323141123160134, 0.8172408654998122, 0.8411570536682724, 0.7320203527268774, 0.6666204823496891, 0.7846223232221838, 0.8833863162499824, 0.4953124903893844, 0.11695452648368221, 0.011446304153130749, 0.04304642248209589, 0.33649332798626475, 0.7492707720221148, 1.2661327930903923, 1.4408691382170815, 1.36514725371741, 1.1616709042718867, 1.0180241140625554, 0.8070479302734981, 0.7724391068127403, 0.6560232412855527, 0.6332024454743568, 0.7024975616475082, 0.511099163909595, 0.2086264480258473, 0.12796292857650826, 0.07339161170105601, 0.22552645031115404, 0.5375909130539327, 0.6422624138324728, 0.7828352083119263, 0.6056995636772768, 0.2559007024870539, 0.27523014332519224, 0.8894854581893838, 1.3725557417646996, 1.643992459463334, 1.8455504390448283, 1.7706855018741976, 1.3764086157934798, 1.046611200560065, 1.195054633641135, 1.3050124523038562, 1.346878788786853, 1.300689558752893, 1.1825148946564354, 0.7483819673360728, 0.675613492913044, 0.6168394487426134, 0.8895884464136685, 1.0553678238335493, 1.2592215676704654, 1.1957396825222446, 0.9491491620284229, 0.9210670845082092, 1.0767068619773, 1.1121635603378763, 1.0746959952384714, 1.0179319825766129, 0.8436388670850334, 0.479649614741394, 0.003105510712384296, 7.614164399503889e-62, 0.027811998065275567, 0.18164974454290306, 0.22905444679180675, 0.1499432945345811, 0.22280532832263944, 0.3122115911097012, 0.4754924950485453, 0.7796453455941652, 0.8968262101197979, 0.9034176392217432, 0.7909764954470724, 0.8012747520304266, 0.7920025811586697, 0.750322627369826, 0.7559137167668872, 0.8756791674665152, 1.0150558752775538, 0.5102534938630612, 0.29949740703643, 0.3244699472628696, 0.4391476659060487, 0.6039064992896535, 0.7872776224360223, 0.9273993061453076, 1.0966956775133099, 1.4883927980510094, 1.6293971306016743, 1.761435304929492, 1.6296984373367565, 1.4585911534141474, 1.3341149825487406, 0.964261007742607, 0.789405726797682, 0.7986642199363736, 0.6739288118165518, 0.4123657125549016, 0.13901941217942326, 0.03000048414494305, 0.0, 0.0, 0.16698915611161524, 0.3321772309743807, 0.8165508723752879, 1.307984801413923, 1.3774507466270194, 1.0962645231277435, 0.7976085942964382, 0.41288037290684443, 0.3545681368052698, 0.6511543107608055, 0.7770701073296529, 0.4339164575524137, 0.2882363758795101, 0.10845987638505505, 0.08283051203680802, 0.2933673505086887, 0.38322500092141354, 0.18802806698612873, 0.37601688245070264, 0.7742972938261552, 0.8928172668398737, 1.0900057573645796, 1.3377949779500256, 1.168676917675171, 1.5050229443497756, 1.1146574244657046, 0.835724274361894, 0.9689206830178279, 1.1575401998659487, 1.100313268287337, 1.019572690842324, 0.7060517408290821, 0.6116920051803199, 0.9995840028518757, 1.0771920558944572, 1.2688789990827445, 1.5691374546813677, 1.8064493869111544, 1.9019528822343688, 1.7329822233877081, 1.0309336537265068, 0.6359941990588744, 0.6163261109578322, 0.6353944582302837, 0.920645997441202, 1.184869670804801, 1.0651577420982363, 1.1078980532008842, 1.4740599488209796, 1.7755832031557617, 1.5987625405119985, 1.0837750853397665, 0.8466491153885869, 0.5695329625471146, 0.8255819638853588, 1.0768013684879065, 1.1380126396145442, 1.135765389856033, 0.9043066330960414, 0.7690331931826364, 1.0426450569191417, 1.4639650837509635, 1.7029271677239564, 1.9470531303454806, 1.4980881061323004, 0.643865453453202, 0.4338695788306133, 0.39965257650023034, 0.5345209265797735, 1.0138376725408307, 1.2381553771556355, 1.2321227913003128, 1.330941983746925, 1.0874454092832053, 0.8367341579042318, 0.8386935251255778, 0.9985904895534645, 1.215598167392784, 1.3778595933991369, 1.4059717005318504, 1.4791366263299466, 1.4561484027556304, 1.249581838925451, 1.0491567464039377, 1.1476467184655945, 1.0692603634017814, 1.1276481082686587, 1.1827383913951053, 1.3722722446091353, 1.8088515970300847, 1.7067907576929997, 1.4191994646217267, 1.5355377463893092, 1.1833229014701487, 1.7260857288761713, 1.9590717842689287, 2.053749599938385, 1.906738374535962, 1.441392052266167, 0.87658387556543, 0.7786117306591791, 0.6734373372041524, 0.534720617400243, 0.18899579004225675, 0.028902179198812883, 0.07677745496272337, 0.48558164957870886, 0.7691306275815037, 0.9765029746587892, 0.9142081099498824, 1.0363635757180987, 0.9357513890931877, 0.8424434027404004, 0.9757710999548728, 1.1292824611524708, 1.2505238821318585, 1.478263383365416, 1.628767519901885, 1.4253877906735966, 0.790212904553389, 0.32842765845416366, 0.20183714185073232, 0.06755080036182992, 0.006756143992738883, 4.720345968517988e-66, 0.03082209756211629, 0.28164871960104065, 0.5216471929335889, 0.6809775039875241, 0.6417655325013847, 0.7436640510435986, 1.0790757222758316, 1.269054378404931, 1.3719382303669505, 1.0390844926030383, 0.9400058466980887, 0.8158636471989702, 0.7710702484708953, 0.9785337308155171, 1.2258932185941376, 1.4206060377257614, 1.3614851625748656, 1.129024553417949, 1.0447607287723173, 1.023987826632947, 1.2653095918731196, 1.4292844211018405, 1.4275975071455491, 1.4560790673936594, 1.6552935317220232, 1.4279812495244784, 1.115864225662392, 0.844694495577869, 0.932751539811548, 0.6678632915878211, 0.25134248471730203, 0.2934482595398755, 0.7748857740935478, 1.1904026514560115, 1.3730451574701874, 1.4943913327135903, 1.8442285400658562, 2.0013063599243566, 1.586943953973389, 1.5968455179359466, 1.9804912639575036, 1.7909434834351146, 1.330604512568371, 0.8271039544593037, 0.495560858528453, 0.5702612751894129, 1.0400429932778934, 1.1117464700391935, 0.5809609214201181, 0.19479199113053713, 0.1813960245277748, 0.18360481490295033, 0.01743294666284001, 0.07992102682362034, 0.45533570532052536, 0.7014277751905098, 1.112674533398831, 0.8508306624514184, 0.1422932232352716, 2.2338874071206454e-66, 1.3684574244425628e-67, 0.0, 0.0, 0.13409744164790993, 0.6564075819884607, 0.8811517973526861, 0.8430426707832908, 0.9880908985744554, 1.5010012588289925, 1.6102246869458128, 1.3305041320891178, 1.2990689299596312, 1.413443228495126, 1.2003803901827723, 1.046311942194734, 1.003321062578891, 1.2029435008788738, 1.2727799521554175, 0.8637128389416695, 0.8564434106227203, 0.9921798414011427, 1.071349303179673, 0.9494404604853948, 1.0019373731452674, 1.119682039280633, 1.2189625535995674, 0.9965472274712148, 1.0367747752809464, 1.608808504444724, 1.6072372775198005, 1.2369538862868126, 1.1176626708220283, 1.0624522724672403, 0.9090991146024407, 1.046108558734943, 0.8852819823466831, 0.575837187671425, 0.4759978422135056, 0.7712213067986937, 0.8415090312854687, 0.9976889150249377, 0.9999479062189245, 0.5173900488817971, 0.18285600434029803, 0.04429470670871272, 0.06462850992551594, 0.8511052527848193, 0.7391050384162021, 2.7206823788718335e-08, 0.2147398144207182, 0.8412099713533259, 0.8552913818185495, 0.5693395560243175, 0.7485931860282022, 1.0524133441982144, 1.499725931881187, 1.824783446329107, 1.7152341851615347, 1.4514726888492646, 1.6575553217992365, 1.8192493903269593, 2.0314437356173585, 1.970141755191662, 1.9308146663916546, 1.9585188708471293, 1.9348303495803663, 1.7277773027444852, 1.3775786271531274, 1.1444072968436245, 1.0445012085822327, 0.8382956399487718, 0.8558605719802905, 0.9578753558593043, 1.0316190906453357, 1.0556646998941375, 0.9290424829831778, 0.5540333436507616, 0.38333725394048557, 0.5529807780539251, 0.49772151283379173, 0.2541987488149431, 0.08101623915082712, 0.005135531063695575, 0.029019361200647076, 0.1925543388742179, 0.411683465468343, 0.7915656577822894, 1.0641850295014734, 1.0987662485934067, 1.0272759571217307, 1.1141095061086617, 1.1757507862131575, 1.0145462207049292, 0.9626005290180082, 0.7077851062275755, 0.5710346432725579, 0.6967728283862016, 0.8162412029052213, 0.7861781808429811, 0.8089323607819665, 0.8056275430917914, 1.0870657928908258, 1.2353851351690537, 1.285766622691554, 1.3586393435611086, 1.3933585458019024, 1.1046934631851855, 0.5992090408499315, 0.15877573976086357, 0.17014668090684282, 0.4060412323889331, 0.4492496025048389, 0.755272500709939, 0.990561213933816, 0.58641230162198, 0.4777190683388568, 0.02132106875174089, 7.14737678794577e-67, 0.0599913760198314, 0.3237673147404543, 0.10830156141673797, 0.23503749451391798, 0.6858348480910195, 0.6904002801616684, 0.5247631950028477, 0.9171580356151168, 1.6342384491782838, 1.9317470334101472, 1.817578855153684, 1.7998129965149587, 1.6903265729345094, 1.4068264375682702, 1.1336274828323099, 1.1312811036355583, 1.0407825293186903, 1.0378240190783714, 1.0794742533537516, 1.2517476818886877, 1.2572633906098076, 1.2546523655969963, 1.6048566563743094, 1.6386852785303887, 1.489404324714144, 1.4923474716524652, 1.672942894974824, 1.6457766804900444, 1.3228947957901624, 0.9796829904761495, 0.6097587334390973, 0.2596941481016444, 0.009382088896789043, 3.0753818826752886e-66, 5.141957512269002e-66, 6.055731374925575e-66, 0.17833380046497282, 0.5161460934610638, 0.4393211623642088, 0.5030157403071058, 0.7208551087987338, 0.8376705669596483, 0.8044519529364749, 0.8332495682011007, 0.9748672943818661, 0.993485366722112, 0.8064400796596125, 0.9996992575773653, 1.3291574748919288, 1.1711964258584118, 0.7588944592271787, 0.6882976357758253, 0.5814766791928747, 0.7201167504605479, 0.7739940656620092, 0.7521646843169947, 0.5743230580121725, 0.6843071661664943, 1.138276404851709, 1.3645623254473236, 1.7013681546309414, 1.4950946975952775, 0.9554140047284285, 0.711518927372655, 0.8802087211424947, 1.171237967599211, 0.8801583931926871, 0.762801900026048, 0.8468885827179271, 0.8734171012243372, 1.0516479262898883, 1.4072246306759553, 1.391862580286002, 0.922179235272381, 0.8797993170746601, 1.3410879490272833, 1.876488804071471, 1.6934969233103772, 1.6981500515685752, 1.8958702356375312, 2.11230299609646, 2.032146533729474, 2.28132093547687, 2.1853873826312906, 1.799147758611582, 1.8107689961258444, 1.911986778242536, 1.6724686462112004, 1.1130455150119047, 0.7457947950833876, 0.3734839556182692, 0.2712424436304559, 0.29828779685914597, 0.639357118007311, 1.2055779306829209, 1.437984657202506, 1.299152899483488, 1.5717096335477123, 1.8457995220217072, 1.8968712934093332, 1.9643893374682762, 1.9521924583297192, 1.5940746357803306, 0.989135254321841, 0.47972631648293884, 0.4860735451167706, 0.8196733538785885, 1.0617424172269239, 1.5172277667861778, 1.5952626794320537, 1.381870399107484, 1.3396468106022894, 1.2881822231029219, 1.2168815569600753, 1.4450774621610805, 1.6978480737225823, 1.8767233085256976, 1.8185178741214827, 1.7101130616748748, 1.610078563261652, 1.4773304117266548, 1.2112665771185362, 0.8792733039149994, 0.7633790180330493, 0.6159316114435889, 0.842820929907262, 1.0445696797927582, 1.0933203624837375, 1.1535215814553936, 1.1032032156408746, 0.7177193200313958, 0.6391005436023676, 0.9902139694017684, 1.0046505034364515, 0.2644251500924497, 0.3010401357207684, 0.9628790282181541, 0.9405579285210344, 0.6556545538485672, 0.7165157971343525, 0.7349339311431891, 0.8754528403495989, 1.1849649175576502, 1.6863986958416177, 2.3671526686576385, 2.5275383325723766, 2.187975524397089, 1.757359871089875, 1.2311697169298128, 1.0737349944722752, 1.0880163259241868, 1.3115723569330981, 1.572916226371163, 1.587475008945205, 1.7021988965735204, 1.7669194486018256, 1.6090891506581926, 1.3586915897015075, 1.1404708842892433, 1.591859301501941, 2.2804315543533136, 2.0852227750879706, 1.8139513980614197, 1.4860196641169665, 1.4055239367310293, 1.5249205923824007, 1.7053763084695674, 1.681445422406469, 1.9998360679552576, 2.0398935076891576, 1.7418928587915303, 1.5245440555691516, 1.236946726831448, 1.2401195975383104, 1.558429571000616, 1.3310572343169866, 0.6608446022214629, 0.5599653133035787, 1.1178534846670942, 1.416951418450708, 1.3633700172012055, 1.4013290547158164, 1.4348643017537057, 1.2975153043100818, 1.3505741172894545, 1.0548425143226723, 0.4097682271084899, 0.20325358513959202, 0.31441884628336325, 0.4504691638817917, 0.47672023231899985, 0.6263804973430211, 0.698382593924407, 0.5974991471166504, 0.570624660499707, 0.55755241707908, 0.465812928080652, 0.3823342024879963, 0.5517889385452612, 1.130264452080155, 1.7454538721927406, 1.5966843367415464, 1.3586426783911207, 1.3294950374370842, 1.202287238984482, 1.2176609659769042, 1.374052756828462, 1.3172710018307185, 1.2649464920814921, 1.1027454965864223, 0.9969737809701975, 0.9535517350116471, 0.8062126094866926, 0.8157669570209727, 0.93625734965741, 0.8942002287085558, 0.962576903472101, 0.8298175320727843, 0.5895362035721661, 0.5977032689978081, 0.7947051850367224, 0.851633774132555, 0.7247977519755864, 0.3949159605839192, 0.04509848245450443, 1.6447252919082724e-20, 0.011693879139282937, 0.39542066689399746, 0.6833882013930328, 0.732308920228494, 0.782034127638326, 0.903461376015585, 1.1998846536744736, 0.7573385664899348, 0.06519142859880223, 0.03799524258450959, 0.33521324924107887, 0.28597985812395166, 0.15120242467723788, 0.4513598716580738, 0.7968050958880326, 0.9262671457298808, 1.0073211187358453, 1.2993681347325037, 1.4434829384699697, 1.5490500749567673, 1.706350664754396, 1.5433434351463262, 1.3630098098657442, 1.5943025155757482, 1.8139350215227665, 1.8034019630397466, 1.6543032000301992, 1.4504942279991297, 1.1528459206319894, 0.7006759870421462, 0.6970047000885558, 0.8080347694756398, 1.0048983330134433, 1.0051863508080174, 1.2772960570317906, 1.2041014159436259, 0.9732266346141252, 0.7744968211871459, 0.7601467668738593, 0.6577533707586589, 0.681639322370021, 1.017545460664465, 1.4348640161620665, 1.5787644042184326, 1.8082295747320956, 1.749680419453398, 1.7288875054539545, 1.530924069695402, 0.26731022176997854, 0.46966908481103076, 1.2308789994733615, 0.9927737602813522, 0.27291473585889037, 0.764289812730695, 1.641451883747834, 1.6062982941470096, 1.342956702156485, 1.3249031388170351, 1.4771745104283127, 1.224327542100255, 0.5918704294502142, 0.5407363101985538, 0.7980183224802353, 1.0943950885235978, 1.244186206713053, 1.3600130839552236, 1.6107808041562208, 1.4507500836139684, 1.2048612814697321, 1.1799358407638607, 1.336511612428012, 1.5257235747494633, 1.5819363483469715, 1.3689236104075917, 0.819007039502381, 0.7710928591708957, 1.0254496671075373, 1.1464565438942032, 1.4516326857950759, 1.3055463375331442, 1.0976983704234868, 1.234331466080917, 1.6358158025128802, 1.9207968480268391, 2.032442234636221, 1.8560481577960672, 1.7683595055577825, 1.9295016498927566, 2.1205774724381996, 1.8370599496263509, 1.3777358975576135, 1.0917623247292028, 0.7863667590420533, 0.5767847912085564, 0.5202821251587011, 0.6598066405519063, 0.8610288594657192, 1.3216630019274476, 2.0311032552950223, 2.1191205664663357, 1.7054827921597848, 1.6699874917222246, 1.637089153900945, 1.9225928298192798, 2.5739675169552925, 2.472919309943805, 2.0484607973998123, 1.3474502285607883, 0.809831952228933, 0.5711604957186864, 0.7466604307151705, 0.6277007328222339, 0.3563468765066524, 0.42178422394059467, 0.4896076964080045, 0.6045785985419485, 0.0007255463012777498, 0.0, 0.0, 0.12895202808635986, 0.35179484465538735, 0.8988449557218701, 1.8339273947953103, 1.907695865231517, 1.792290196603119, 1.9377919957660197, 1.8080413859721034, 1.9756244289201277, 2.1986177315746005, 2.245870936581028, 2.2166547918370725, 2.0692542613966367, 1.6023960096763545, 1.314488198402671, 1.142909860846487, 0.9862621468093948, 0.9157813827130532, 1.1438199851991158, 1.394441983264997, 1.6097216016092375, 1.5311901681357654, 1.3887719097227915, 1.3278749632560363, 1.1090936581331903, 0.8649441379932945, 1.0604103287332691, 1.4539937368614488, 1.9933523317604482, 2.653983009422646, 2.512587155899894, 2.2050827160421846, 2.170236294922688, 2.098979550885872, 2.254799777265873, 1.9736701937379308, 1.71508056182779, 1.7724346525952228, 1.5634377217116366, 1.2303032210208045, 0.9892755156929667, 0.5483497441378518, 0.2719855544137637, 0.46564363138444165, 0.7557176341120773, 0.8938687296827972, 1.0839443674286144, 0.9939596353375215, 0.929969399333519, 0.964425834841677, 1.3033414984329426, 1.4512207905245447, 1.613608864547146, 1.568707121542289, 1.4594888105529122, 1.2904654793674695, 1.0766432827057457, 0.86088240977098, 0.6791841636194285, 0.5566189737589902, 0.6237084201109298, 0.8953743261347569, 1.1830212928367843, 1.3509024726050853, 1.312580091106966, 0.6146638185215672, 0.5176790567533693, 0.5750209788096896, 0.6108431203540796, 0.9153605933398836, 1.2463455074515792, 1.1940326388453428, 1.2009661075717872, 1.4623679550723523, 1.5340139459733706, 1.4009618916352338, 0.9443162904996747, 0.5100482942837061, 0.7299780373114686, 1.2231594126902223, 1.4404018300916164, 1.7793378012255658, 1.9827557067748245, 1.9300527709474977, 2.078818172836705, 1.6316332464226093, 1.5854966196139344, 1.8904525676944672, 2.2183021490220654, 2.2617874344240505, 2.589327059688017, 2.5773140274488924, 2.1205677511302525, 1.4747712527497612, 1.383329019015548, 1.2512363813498837, 1.2478114710209098, 1.4050123747376944, 1.4066649704842717, 1.5829287773843959, 1.5114531802966127, 1.5060380572413692, 1.3077576750276876, 1.2172671530488657, 1.3393374850526385, 1.4395146397516925, 1.4323362166102385, 1.357534350759181, 1.3081958584929367, 1.3036754946826932, 1.3822112261951958, 1.7517757294995704, 2.062866029804411, 2.147843282603631, 2.13095862769741, 1.9967165235169801, 2.240372607181044, 2.4015420772016682, 2.330502474325513, 2.312261946486288, 2.388299183226138, 2.5581510450312095, 2.836796033492547, 3.1947919675235994, 3.1357663958307427, 2.828389917864115, 2.188350775150539, 1.569108186573942, 1.6412664748379626, 2.473532726222757, 2.5536620697423587, 2.20026155686719, 2.1153190723458124, 1.8513179860294713, 1.7885895475856728, 1.7179102699549418, 1.852013240108036, 2.2236144229342614, 2.6239871431610027, 2.898727831092188, 2.796552938114715, 2.504504651994978, 2.508412867511879, 2.47158475499306, 2.2320348060266184, 1.916945624265182, 1.7316830830288978, 1.4772579658622362, 1.6171912394188581, 1.6353395286930805, 1.3933149243780605, 1.4705057137236963, 1.6877857408692307, 1.5751743000124065, 1.3993459302619158, 1.2231185422141522, 1.206105214794718, 1.3818779663579903, 1.4118217823495485, 1.301469244659529, 1.0743786617751994, 0.8680931960418867, 0.92865116771668, 1.155400082089045, 1.2400378235014529, 1.2566582206209773, 1.3661773105700945, 1.3531177655309534, 1.2147810530473322, 1.3754186072694665, 1.5180654406004948, 1.9240658701080662, 1.9214637156988488, 1.3380307650959935, 1.4942173388408833, 1.7967660644935677, 1.9510140557457731, 2.1860645021179295, 2.283116068894188, 2.230309363878632, 2.079003116852064, 2.045823556823109, 1.7622827981756615, 1.4639068127467567, 1.52195607207274, 1.3251715453043857, 1.1111834342564322, 1.1385284983589372, 0.9204113012130541, 0.6238056765028865, 0.6402296844525814, 0.6362519558940818, 0.737633155222511, 0.7525065210690087, 1.1832476902166036, 2.0778612705498887, 2.120110527639781, 1.7290991175673867, 1.428344812511014, 1.6050729211912227, 1.5080933182653098, 1.0419233549919795, 0.9828496210356121, 0.8766657999231597, 0.7929944062201599, 0.8761215323439195, 1.0005293592823818, 1.254662246676176, 1.4082540285471765, 1.8536991971155317, 1.9020209457226542, 1.7334605803319079, 1.4907340577555175, 1.2406033939066816, 1.1663581218663808, 1.3544273904784774, 1.6488798886430232, 1.5688188053883465, 1.6498097979973778, 1.4210075971032552, 1.0654838010814274, 0.576103625251708, 0.33071238737490205, 0.4511774478976669, 0.85002518194473, 1.1049332893123989, 1.0825882482488538, 1.142149152577204, 1.4143881313439124, 1.4268822943197534, 1.207669680230211, 1.1111791617622657, 1.1931103005759383, 1.3812275387468986, 1.4601873713038458, 1.4514678057777388, 0.8661918466496878, 0.3119919524113044, 0.2541277720202437, 0.5107337880724039, 0.8269056749555013, 1.2404549523862443, 1.0477605843680635, 0.7981138485632897, 0.36220480823936896, 0.06463441964287142, 0.21752759546402345, 0.6432623943192226, 0.9281930912425764, 0.8965345201888795, 0.845047650792484, 1.4500138776853078, 1.5372624224003175, 1.2322413560400634, 1.5690099313525394, 2.1789590987037286, 2.4316070408070942, 2.256855575985938, 2.2676225099824023, 2.312221341933892, 2.466694593415241, 2.8727718004702183, 3.0858450874134746, 3.033043628568578, 2.8347937901131104, 2.7800351329609754, 2.5757702147544137, 2.426314280379316, 2.0486218636171003, 1.6567567222069215, 1.5181676690790624, 1.6089972121339002, 1.5770974361704617, 1.0602269373638507, 1.968552161116932, 2.6690762260916614, 2.7647419422658146, 2.542203887423966, 2.6144564824644476, 2.180988134339316, 2.0882515039832015, 2.3524173950452365, 2.4299447219051586, 2.0293982249203424, 2.264704211960421, 2.3156130500541536, 2.3830434880010785, 2.543574482217892, 2.5377585570009984, 2.5938368920249246, 2.5852773158039923, 2.49737023585476, 2.3768271448322054, 2.024486893370124, 1.6077429975946558, 1.3652311037063214, 1.3731071787015594, 1.5634678312330976, 2.027098129689776, 2.367054728680401, 1.9967700906420305, 1.6531310721399137, 1.745295121750189, 1.8808438952152216, 2.021720718599923, 1.992796620839954, 2.1502136679263373, 2.402105190286022, 2.1806311189575354, 2.164490090721202, 1.878146980006079, 1.6171481861392891, 1.7155658102006441, 1.9865339974285803, 2.020764171616193, 2.1509542006391627, 2.136505794271798, 2.2189332062663567, 2.3935820616336514, 2.380600634592284, 2.177888990426723, 2.1638619138116724, 2.282620751896104, 2.030333032374884, 2.132520911859629, 1.848765839616192, 1.7971924156586851, 1.865185349271087, 1.8893906105418523, 1.4913716319422434, 1.3923824335652313, 1.4781436659689007, 1.709311873086122, 2.6151982480371316, 2.7314096293464587, 2.8418314620165717, 2.779396743300836, 2.4142695786949844, 2.4658663720119876, 1.9987262880508894, 1.5945225840457766, 1.034205752413314, 0.43886047661443683, 0.1519276699903651, 0.5226655528449022, 1.3667238413815, 2.309258534881394, 2.855067583798032, 2.8511117146059064, 2.7120956498961846, 2.656401016872806, 2.868118031228292, 2.7357212715975407, 2.4373365776205134, 2.528201322998541, 2.6159405044356987, 2.8824294476983283, 3.2097673023645825, 3.685429440111662, 4.0551874493123705, 4.078703884561548, 4.1930242226371774, 3.9969969665902596, 3.8528539640931427, 3.130229658140834, 2.534406710696672, 2.458469851598366, 2.6624243985554727, 2.7621407789870887, 2.7586818575269376, 2.67783612075624, 2.6159281647671975, 2.760429268928931, 2.8110474511336747, 2.765496798038626, 2.5349502670199087, 2.45741913165881, 2.3916702614317273, 2.609587886608452, 2.8239942108041447, 2.9196273809905193, 2.739490927338707, 2.7812596470017894, 2.8461018538300777, 2.991509810843823, 3.111099865003112, 3.0242257678560804, 3.133931809585434, 3.0673443147421153, 2.7521375518836635, 2.8241941418457372, 2.987120936084523, 3.0213042525138576, 2.814390644348933, 2.6006393722577883, 2.431740140103912, 2.3779877018478714, 2.6403890602841926, 2.9185731667645456, 2.9552052083057703, 3.3597821648850754, 3.2860555817178607, 3.1060517686410662, 2.6924667940109117, 2.3395157754269036, 1.9613119317279057, 2.1877445354696192, 2.1825792148595156, 1.73879822861727, 1.0030918140892595, 1.0001597468272507, 1.0232060483401852, 1.2225656713349622, 1.555443939640341, 1.9456704178219866, 2.288912203987138, 2.622796213723632, 3.0930366382767858, 3.3879905287956404, 3.3354823798413378, 2.968816670918173, 2.703774185738439, 2.4842336035944754, 2.345455315700974, 2.2479827159273214, 2.108809176086254, 1.8930205239496587, 1.949217826558197, 2.229107468774828, 2.485872660438204, 2.941472087947105, 3.0556449550633857, 2.8836163858958486, 2.7195581543641225, 2.581049562672888, 2.521582903055105, 2.68939937050186, 2.9022571887175133, 2.988911629972236, 3.042684407149011, 3.0734132423448415, 2.976542700940854, 2.893802829648976, 2.6501799077377655, 2.5745933396688656, 2.4278308447558175, 2.5631432066589355, 2.7774506241385666, 2.895741006535687, 3.0343712357006467, 2.7516170641275153, 2.456996440035496, 2.6247569115861467, 2.9089547329352996, 2.8776675559111595, 2.626997336503564, 2.664998038824379, 2.761931169742539, 2.955780267715454, 2.7914725569534227, 2.7248757321570025, 2.893543671005375, 2.991897037242097, 3.014085699379976, 3.2635006742841597, 3.5011631271336228, 3.337354125120683, 3.1327032831555357, 2.9246953965923694, 2.8144562405461926, 3.270498241864118, 3.5919435023576085, 3.564747506810818, 3.1752765414536412, 3.3334709915919944, 3.197914697177339, 3.5140502726518577, 3.035951703503997, 2.95394052039525, 3.2443700829713293, 2.8492352170417234, 2.7174955403463628, 3.1337596072394405, 3.6259134662219026, 3.694654267494016, 3.382333985065088, 2.8273811722849587, 2.0455923548126975, 2.001217654981758, 2.436189163338213, 3.087118011885096, 3.6024791256968456, 3.7251611660957593, 3.4235728651516553, 3.1492970757494874, 3.027366063250213, 2.7943919762470273, 2.8270993490611005, 2.742479776802057, 2.6989938604776995, 2.614833135098266, 2.4075161362628847, 2.1412719791397308, 2.1234629075616027, 2.1752020350054977, 2.435676394101449, 2.848287945251343, 3.2925096577241817, 3.9444386778050102, 4.409627102151944, 4.4057238364012505, 3.951678709427725, 3.904110359937377, 3.9442611121042006, 4.005122870267087, 3.604154108643698, 3.387714500891036, 3.471542925395866, 3.6435934635642866, 3.6049272393570533, 3.1195157299549123, 2.8547872039030295, 2.803449198011677, 2.4856835831952253, 2.3239734388064335, 2.5747031342592805, 2.8558765730686133, 3.2312518694825485, 3.355134814883286, 3.769932634614648, 4.213888730712142, 4.6780352127282185, 4.45386045250649, 3.935448936392504, 3.817441901097837, 3.5816209353506565, 3.5114920372288907, 3.3393161451619022, 3.28750012884349, 3.2061474025230297, 3.040626562651383, 3.1125660055739814, 2.9077337254420854, 2.4729571775720274, 2.336626637919892, 2.2635415080912935, 2.642986527330379, 3.0866882291594635, 3.6572938496238407, 4.31487546141085, 4.527685996076855, 4.721435183939548, 4.348878680012206, 3.903586999798847, 3.692113106575462, 3.9151066679256843, 4.049582600641827, 3.8498823684136028, 3.728952040652999, 3.6460350188240795, 3.9147778650900023, 4.3320400235739385, 4.173063779072038, 3.582537855258124, 3.3867978529736007, 3.766227862575988, 4.086735492976516, 4.411171266114252, 4.346673392533432, 4.063254513972936, 3.7542739600578443, 3.6878501731084867, 3.4674523899705036, 3.1736449201073356, 3.0675773189725533, 3.0869094001588024, 3.375125734645735, 3.339595422678258, 3.118917798752193, 3.1159769801888615, 3.6115833015415433, 4.135617576729601, 4.081595355400225, 3.9976161694803523, 3.6035276981994144, 3.0092575854441748, 3.0352164544165703, 3.209930901565272, 3.809809388855001, 4.144898990127558, 4.062349127894379, 3.915663352695006, 3.553886989095659, 3.2369166656119432, 3.3709558440995266, 3.673276008194989, 3.246356559733968, 3.0165072118875855, 2.5360546401503257, 2.0521252542336157, 1.6653617516458894, 1.4170445074908002, 1.4845839687705507, 1.852107334914436, 2.1656537389858954, 2.6055084688469066, 2.9946054356383343, 3.5728407890014893, 3.649355461732341, 3.390881378597456, 3.644207871941262, 3.731338205057014, 3.666765557279689, 3.6663167892644566, 3.430649371865968, 3.1812365170896015, 2.6900472830749464, 1.1281403410575876, 1.7006859222557438, 2.0694922844288755, 1.5451264253073447, 0.4549755630137362, 0.16915712693425977, 0.1678438144460337, 0.3231708825915689, 0.29223753537630515, 0.5985937030799313, 0.7583584872419493, 1.1871584678385858, 1.2743722616562536, 1.3815895846853579, 1.3383214599489293, 0.95882342920547, 0.5275419091108837, 0.21145584025852315, 0.03614998176405848, 0.1272883692201896, 0.38611455047329457, 0.4606145556763863, 0.4669269362077557, 0.534665439385563, 0.46107146230851015, 0.43664424643285216, 0.5833435873012469, 0.6799000561446888, 0.6759167902821481, 0.9217065063728711, 1.363476084226022, 1.2081384576194978, 0.7676453191734822, 0.30703358811537385, 0.005109914249547265, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0313325663887698, 0.09921256953072088, 0.0952877200720792, 0.4668320422801777, 0.8213896446921218, 0.984521670266588, 1.1859471944863031, 1.5124185607606364, 1.2800292501001564, 1.0615090448669093, 1.1384791458686436, 1.236591166617984, 1.3985656488785168, 0.9656760759212943, 0.5603711817352099, 0.037837803005597914, 0.005045599370424869, 0.2642921455140055, 0.5541033550526322, 0.651923038587384, 0.5393517268931056, 0.3047081961738094, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.00021930160773276156, 0.10971438866349192, 0.33264294634149394, 0.5634564349180415, 0.5503692190205243, 0.1423310212303477, 0.01610728683000695, 0.03632602838766119, 0.2249124299868024, 0.30012801164645, 0.40016806677977, 0.34513731267202274, 0.2678353515781886, 0.39933514018898464, 0.5614219114104344, 0.6273797498080604, 0.49852719377271626, 0.4059108164757532, 0.37740112148844673, 0.2535725001785636, 0.25893060563709014, 0.26416370834228076, 0.2915409317368791, 0.20719788449383714, 0.08935145929813704, 0.011241760993600858, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0001296977887962937, 0.0436575610143477, 0.26142960749554334, 0.44664508971724004, 0.4633094893259262, 0.12085751199180894, 0.08078402960475106, 0.1451818117939263, 0.0345335576176089, 6.094126685108233e-66, 0.0, 0.0, 0.00415150984273277, 0.0858635556677747, 0.5137140235524953, 0.8078726473584972, 0.5147900433981398, 0.4525454823366637, 0.5662345380122566, 0.7479757026938074, 0.8452339553827279, 0.49623134359002563, 0.46240179310018803, 0.5522741310250332, 0.36327889758291576, 0.18447307770596755, 0.23869205886416367, 0.2967726669965174, 0.3146966456871638, 0.26955888894636715, 0.18524971325634, 0.10392254671796142, 0.14719132804054258, 0.6056225614975688, 0.9756817249854635, 1.1517804738486035, 1.0568906128266917, 0.855721730343376, 1.054446353392052, 0.9402163261149923, 0.6465621071244101, 0.41537919650239985, 0.27234476863910473, 0.20663623794769936, 0.17306912422648058, 0.10989412299739687, 0.13970561586779695, 0.2058097042721494, 0.16014981437264542, 0.032608739978906565, 3.134268400120668e-66, 5.358545316713846e-69, 0.11271664491454558, 0.20941011352661665, 0.18065720850748423, 0.27002966180225485, 0.114675881878612, 0.14869395683037112, 0.010609991541187469, 7.553985254757161e-06, 0.18973470081047683, 0.6713239782848213, 0.2774319986347109, 0.041356710319695233, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1534603865710693, 0.1951784695821468, 0.10066863733954179, 0.015832223818757152, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.00014757112812833432, 2.8644619350651906e-05, 0.015357276467789172, 0.02864910740172011, 0.05873024211347855, 0.1239944215658193, 0.08641886246663066, 0.2600053991520781, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 6.286512159067007e-66, 0.0065568389830596985, 0.1465928057339818, 0.09001846169724459, 0.05421291197365363, 0.3886050834047552, 0.3818986951976058, 0.22246095161728707, 0.04515525192573833, 8.092617281510165e-67, 0.0, 0.0, 3.493755227385361e-68, 0.06614137118291641, 0.5517268655934373, 1.0340294900961453, 0.9085648675322524, 0.5593742166411317, 0.14885010554463918, 0.0007894712385700699, 0.0, 0.0, 0.0, 0.0, 0.03154668127776006, 0.17774667229791508, 0.13053600419880595, 0.03435820237300291, 0.0, 0.0, 0.12703390661997194, 0.2244521039890266, 0.19164169365035733, 0.13491334296310242, 0.07945468296688407, 0.031111205761442884, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 6.356117463239137e-66, 0.0020471315298680737, 0.0011136620297751976, 1.2167952621868472e-36, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 6.015865246417259e-66, 0.05558600423994364, 0.3054156042472336, 0.2207969747294536, 0.2097582165983205, 0.015645723206017204, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.73444355084099e-18, 0.14482716929800077, 0.4577873708109479, 0.4738556220456793, 0.21911988060622978, 1.5064700071944246e-60, 0.0, 0.0, 0.0, 0.0, 1.136072123505836e-11, 0.006949729566960494, 0.19484489740847621, 0.05813423905345538, 2.4484550136644234e-66, 1.5211936253882128e-66, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.014374872664466631, 0.054553933032948976, 0.08467921847469828, 0.3412678711284265, 0.3524330412598289, 0.33564468971656325, 0.4860055622914139, 0.1369272632819616, 0.05670157654527608, 0.024969850929201565, 0.005443894119950221, 5.326881869547102e-56, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.527777066129826e-67, 0.027295666500609883, 7.251873816572365e-73, 1.8979076073247803e-66, 0.07292561241007434, 0.19721405650558044, 0.16989311936566853, 0.05668525563953808, 0.1236654775434296, 0.32494008316635714, 0.4363045672427148, 0.42548704770547374, 0.5906234447797978, 0.32406672101559764, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.1903510254674407e-05, 0.0638477565565978, 0.1838815436281358, 9.137779974284541e-66, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1378555325232469, 0.2588694034003858, 0.2842184346357932, 0.17043517492152294, 0.14166338244167154, 0.09011872508953989, 0.05745912821462085, 0.07441061997568355, 0.12878177298639404, 0.2030093119190477, 0.2625035841638237, 0.2904811367635354, 0.03230909662455961, 0.0015108672924814132, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.2687300240570514e-67, 0.1614452331115821, 0.5954362966753166, 0.522733036379023, 0.28559691474274373, 0.13928017477589183, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.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0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 6.565903076140041e-67, 9.59573624192176e-67, 2.092490638542445e-70, 1.1068001106465136e-66, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.537202753370634e-66, 1.4831223461998877e-66, 0.1352613392098414, 0.20074014301496224, 0.03398172460266502, 0.11491446451085441, 0.014270864648891435, 0.05653376088368134, 0.02795272544110028, 0.04216453925987995, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 9.221958626553606e-69, 1.4326868114918528e-66, 4.122862361657364e-69, 1.75207812356348e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.5161738534057055e-67, 0.10567894879243145, 0.23537157263483355, 0.3578989637835548, 0.4814296983086166, 0.5827608410606935, 0.5047855211387287, 0.45119202122387847, 0.23826723410493944, 0.008066351140447792, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 7.73837393407364e-67, 0.087657874039615, 0.30886052755585425, 0.22362102437961084, 0.23947376835900513, 5.793871316989771e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 9.758960354912204e-71, 2.0080119214030084e-70, 2.113515121496967e-70, 0.016888327504753997, 4.788998971127837e-66, 8.620290880957314e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.05226779604703413, 0.03812357094591179, 0.007578116006755842, 1.4998016728244924e-66, 2.1606012485663363e-66, 1.6194509501625688e-66, 0.05184124838759718, 0.13566690243216328, 0.1779076872094274, 0.3392963674549634, 0.30872062165616754, 2.3468361079519594e-66, 3.30731831851248e-73, 4.972586536870382e-70, 0.061680036390932225, 0.0825015094092274, 0.07745975775933633, 0.03340483981903142, 0.1479232223639224, 0.30258053242636507, 0.31798064868111453, 0.31623655598312794, 0.48360354222621993, 0.6287533090528541, 0.732664378070158, 0.8649605464563912, 0.9491471876698512, 0.9348113369728175, 1.1657101160024155, 1.3201052334739103, 1.3229789833717973, 1.0230314493679913, 0.5196724026636481, 7.175191048359331e-67, 1.1083704700138061e-66, 6.187699704306097e-67, 0.01298696942286881, 1.2093233737143049e-70, 7.196965583465033e-67, 3.662564565323648e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.6942877576266345e-67, 7.344896694924263e-67, 6.8483537409436355e-71, 1.721635378557602e-66, 0.006169314162454198, 8.679381729539439e-66, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.417453205680441e-70, 1.826262624006293e-66, 1.0765128546235786e-66, 1.2245516481055008e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.025938885379276577, 0.260637771911977, 0.4559598977619004, 0.5804732751531141, 0.7066137942939719, 0.8443026377783589, 0.7446156782684774, 0.6647615975062457, 0.49558662189532754, 0.2644296863224014, 0.08591293813420808, 5.863726162989708e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 7.48405312982977e-71, 1.1355719635478275e-66, 0.16521408203633214, 0.42259985440808023, 0.5441950248416596, 0.8131434385391323, 0.90077194877097, 0.9582042809127103, 1.0832233969297391, 0.9376270235780026, 1.0015505597761063, 1.050104976883759, 1.0242278956008164, 1.078748085283351, 1.3804456029998278, 1.6565618587419664, 1.5246270722002464, 1.3882339097313547, 1.230162801235565, 1.2248433421751201, 1.0831861760494945, 0.822975248419425, 0.5096564862862216, 0.17723289808615394, 0.09212044293048027, 9.122947707157419e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 5.065164668371383e-67, 0.0007298470906676041, 5.4548730207251276e-71, 6.762932237322227e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 6.142830985363091e-67, 0.2675058827638601, 0.5634124996482939, 1.060341831306019, 1.2247926807845602, 1.4324880214860656, 1.6612030259205, 1.8736148660076566, 1.855218026099692, 1.8885641948472767, 1.629403826004264, 1.8576829815865494, 1.6599743919119305, 1.7913407430970807, 1.8494019279105487, 1.9146240769223368, 1.8200431311786502, 2.0022987750650287, 2.0068913039440304, 2.02560753368347, 2.109191079825351, 2.098949845095376, 1.8638196548398724, 1.1826136765735242, 0.5418657885100089, 0.043028653580607035, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0977003551285936e-66, 0.2394546344262949, 0.4558027029419556, 0.8194607512790277, 0.9454049466745005, 1.1373496733884991, 0.9801692962020105, 1.0459286028074075, 1.1382313820067793, 1.2207255149920826, 1.1783904845506186, 1.269789868055696, 1.250867573674114, 1.2175091681463215, 1.1733642880103758, 1.3066010816255726, 1.3166428020833933, 1.4428808873850016, 1.575220680926023, 1.7451058275845668, 1.7601891197264194, 1.6032680401036146, 1.1632651759924215, 0.5045710086469377, 8.503664982019107e-67, 1.3592978380020392e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 7.337990367553157e-72, 2.1725485517451516e-67, 0.2802512870154352, 0.7012123385002269, 1.1123742722139127, 1.417968184521726, 1.69387019225411, 2.017407541791286, 2.1605233395695365, 2.387507807442546, 2.263391931646325, 2.2549522917288414, 1.899851076501946, 2.3877767426029095, 2.376598889954039, 2.5363291572791837, 2.4659678328914794, 2.355378479137471, 2.031870565625468, 2.0660412621748634, 2.095459842763603, 2.318184961806992, 2.0521986860672428, 1.4029484195867923, 0.5051420700704092, 5.665902348927024e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.08752604618690896, 0.3715865897913808, 0.7927621535708482, 1.464378495011843, 2.1090342285024235, 2.5826302063074422, 2.753332565971519, 2.850792078712402, 2.990157807860271, 2.927981458318655, 2.9012572838547754, 2.9414193394337076, 2.9500076212439694, 2.9129122647575514, 2.892850610468045, 2.9771033775780467, 3.108340538156199, 3.30181662665224, 3.534209936408402, 3.5100620656931056, 3.301233960629361, 2.6268520411415466, 1.7260174441653362, 0.6383898003821429, 3.790273701430094e-67, 9.601250521819093e-72, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.8078525469966475e-68, 6.054749517549286e-67, 0.24633810736327533, 0.6763188744251671, 1.259848763046648, 1.9076356034003226, 2.207288229417955, 2.26649710424239, 2.322456970999852, 2.5003736547123623, 2.512029753807056, 2.5659540805575034, 2.5370039326349456, 2.5971901422617663, 2.6672185782935145, 2.8032663691152635, 2.7196021904845935, 2.796542571795854, 2.8570842268905494, 2.969236935497065, 3.05078740383955, 2.916918092430606, 2.3793088831670417, 1.4640069126620716, 0.6625262497700568, 5.087945718159626e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.4413961402742532e-71, 4.366732676973527e-68, 0.5421719977399597, 1.3400867159262475, 2.3162099024949043, 2.870289132240501, 3.0731419823880515, 3.2870648294338025, 3.3748695030408413, 3.3986505475252358, 3.5141275927813354, 3.5579323887021843, 3.7391720439927667, 3.6824728116203573, 3.5876575246312683, 3.5638157631506715, 3.611441937400798, 3.7821863735580905, 3.9030811026443644, 4.02275068750555, 3.9762535718774075, 2.8239801878503954, 1.5783306562159538, 0.4160265131964138, 5.573612918432151e-69, 2.840690734686597e-69, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1036024450910924, 1.1345133346197969, 2.374639142692004, 3.618792459420334, 4.08651956911541, 4.540143063627511, 4.588904362536596, 4.494839264730274, 4.491552275422293, 4.223102686857828, 4.102085496270092, 3.9861798656384053, 4.002495201017155, 4.082552020121511, 3.9964335765350967, 4.151048336591202, 4.252260069397607, 4.47415796127666, 4.4311354926321656, 3.4416420601412625, 2.2186629451027784, 0.9222715059423905, 1.9489313466217945e-68, 2.1810689203791344e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.1169720158692603e-72, 0.41999848162490494, 1.173881897384618, 2.3911507702795376, 3.3599019078721994, 4.130067870472033, 4.177206623312543, 4.251352544544318, 3.968943554151579, 3.9705083005118382, 3.831597094624385, 3.749679340367962, 3.7477530144997786, 3.7032395483774962, 3.6188972294476116, 3.8524758419817005, 4.104078115897266, 4.292609110067133, 4.468677813761644, 3.8414263157449113, 2.9436200491909545, 1.4310108339447112, 0.17782337527452174, 2.0074506111547685e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0104572952326345, 1.6569368660288006, 2.9383640044115964, 4.225970388347378, 4.680605664845871, 4.77791166534098, 4.819924577608617, 4.788301656789429, 4.969822172279748, 4.959876244229463, 4.908055175147638, 4.715797305141734, 4.625154008235995, 4.691864341789426, 4.758852608400957, 5.0152429892680175, 5.15152966036203, 5.10393228823483, 4.58205083287703, 3.069300906389927, 1.6227004127600253, 0.29305247331672035, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.05812252703269771, 1.4586651557647343, 2.734226120799704, 4.195920765147321, 4.92305892924287, 5.194572582812725, 5.335170115359006, 5.392368405140587, 5.4142406171209245, 5.314799418853511, 5.311605352928893, 5.121735585773024, 5.154015949199277, 4.982768581696519, 5.2549846359716526, 5.4563099483530095, 5.450527352799384, 5.375933318637408, 4.8693264014857505, 3.5701405069858083, 2.125356801877288, 0.3298631329517008, 3.6439674645717705e-68, 1.50482306395574e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0006366538379505883, 0.7980784915316832, 2.0466512852696184, 3.761432646447375, 4.843322045827847, 5.086883748700529, 5.315103927423706, 5.1921026064269995, 5.068297376021519, 5.007044076967816, 4.9116496761782855, 4.8603162465624905, 4.74872427287869, 4.819317415684964, 4.736436527160151, 4.883592245329282, 4.9014855648593425, 5.077954863854984, 4.643229560679231, 3.7458447182542756, 2.4535445121791923, 1.1376169219183794, 0.014300786055310655, 1.6850134411004938e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.5593622761156854e-72, 0.1877889393769614, 1.2295940640876921, 2.794710028888403, 4.378189952023831, 5.439968923303468, 5.913760858152784, 6.059078149196523, 6.105003065806386, 5.927451856542177, 5.833667811828548, 5.708772095497125, 5.6896102173987515, 5.668363077360539, 5.710965475536852, 5.735381966589159, 5.812173813040374, 5.762187631380641, 5.799795979438386, 5.217392978129794, 4.221492849203571, 2.7325063355683596, 1.603325097090206, 0.35742479457255527, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 9.94071570018009e-68, 0.1496855740465577, 1.103415831898019, 2.5357497650958436, 4.066155888850119, 5.5899246960054825, 5.81206000512816, 5.9255271993961856, 5.775342310387771, 5.707140721890255, 5.600193139709745, 5.531314086711575, 5.51183466407474, 5.506951434167661, 5.361983106999105, 5.298308542409359, 5.324112309506802, 5.426200175907297, 5.534067616544235, 5.3510343103017135, 4.571813787113626, 3.5203808227723954, 2.3041669499225605, 1.2847743712441684, 0.6485856554050429, 0.23598886870530933, 0.033204149046630826, 1.3787351040822037e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.019521576473885638, 0.1349679061210196, 0.8433508142449888, 2.0917344664127455, 3.542485684513167, 4.7066614271543585, 5.411199823734933, 5.597630786225238, 5.636194443836814, 5.489798405877991, 5.387601484937704, 5.454782991819741, 5.453624830343472, 5.489271079060018, 5.559997781599634, 5.668140566747354, 5.616779667163655, 5.568171545459336, 5.639845874989987, 5.55726028934464, 5.199843756388475, 4.377018683589995, 3.305306333744795, 1.9815808676617195, 0.9306474383665773, 0.18305147257731225, 1.8351373537239032e-60, 2.321647427478329e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.3199626622164165e-70, 4.696238052097672e-71, 0.129640654318397, 0.8480834631724612, 1.9589860225177205, 3.3860884026225904, 4.683135546795029, 5.4885773253673165, 5.82430246021454, 5.916507070267073, 5.981410830175321, 5.942935922838842, 5.82529562510814, 5.668636680580676, 5.834920933251908, 5.930743535364172, 5.8918048514556745, 5.7853712761257725, 5.8123600465729055, 5.663976110378144, 5.574134404889492, 5.154638427085047, 4.565335736745112, 3.4913942454529803, 2.5187934179285207, 1.5518834346405583, 0.9238494070886851, 0.6912036223948235, 0.4067008483630765, 0.16488514333170556, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.06456187005545733, 0.5842323758633974, 1.5841771783657919, 2.91097445056495, 4.24227280161773, 5.3583808314897965, 6.050168015706788, 6.433116131324823, 6.490623070715685, 6.335494034076191, 6.132594244356596, 6.09356943795234, 6.07896122439621, 6.086945455864225, 6.104322094580311, 6.127529473488721, 6.1785984643656775, 6.059500704386721, 5.665610383408648, 5.260973193618156, 4.5383245590585375, 3.7082895334439314, 2.9175272876403966, 2.283705115770317, 1.773734698634044, 1.062693613384468, 0.5290091445098177, 0.34218752691812426, 0.05011587955386454, 1.2839616254929008e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.03870529134373246, 1.654998582937787e-67, 0.13593984211073362, 0.49467557659923855, 1.2853592423976465, 2.3556682862144953, 3.7378324150386675, 4.97954928752057, 5.975673351436853, 6.6032037132418395, 6.816520793178427, 6.745809037775189, 6.674923895116137, 6.631885085362285, 6.525327043495054, 6.386027584796693, 6.157877303282078, 6.0152432627551775, 5.996335788057024, 5.865938150946249, 5.5317660448054085, 5.141206673222371, 4.528213619705696, 3.7908880185582916, 3.062883031423155, 2.464573396630442, 1.9106445880232883, 1.190099101478154, 0.5369064006629287, 1.8250171775189246e-67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 5.494711734890774e-68, 0.34075822823160706, 0.9312010218494926, 1.7218430555146966, 2.6401624286114043, 3.6157017458715615, 4.753370198742232, 5.7131228050284335, 6.290793008121, 6.76226352563026, 7.130584891298497, 6.975044884732654, 6.905050846369761, 6.609587916875398, 6.410974827074881, 6.211598675293374, 6.16038965183202, 6.061942422866252, 5.927613226195035, 5.466370254726826, 5.012360169959948, 4.355555617110042, 3.8307612954969414, 3.4021642180164378, 3.1473210680260877, 2.6049970343628956, 1.8942770994363087, 1.220866448876734, 0.6848341586337483, 0.049189059466430374, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0736754829193984, 0.392818541519091, 0.7965641998012529, 1.445622352000612, 2.3097849965291886, 3.2574443003986744, 4.136476781252213, 4.965911036761611, 5.84773398180738, 6.455266527636979, 6.89849666924971, 7.096153080265196, 7.206793593311943, 6.994168485416822, 6.908456939596874, 6.806859681664946, 6.719623421842925, 6.714510779088926, 6.559415205445077, 5.9487344257468635, 5.362002981934211, 4.574078518453689, 4.05677966796793, 3.6602376179946674, 3.3344766098861243, 3.032322432378706, 2.5796976268011917, 1.938373178066982, 1.168562224735581, 0.2804569303488371, 6.943019029839393e-72, 3.069531957619938e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.38154977967886e-70, 0.3189936808171865, 0.7387212793767048, 1.4082370527359132, 2.177835157658592, 3.0513691897204467, 3.836822554433539, 4.506930189604702, 5.319999247478563, 6.176082405190812, 6.713029378525107, 6.945246750547085, 7.186757460018271, 7.094105620924495, 6.942557782372205, 6.829817098696367, 6.745361955843748, 6.450995448351989, 6.326635918992508, 5.959575097659581, 5.411376190821159, 4.850367140745448, 4.304896013601137, 3.7110590075263303, 3.379797862312003, 3.249310554143051, 3.073056301838747, 2.363651931569862, 1.7305575554240846, 0.9805536114426481, 0.4676124135954183, 0.12573427854592012, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.09109569619205615, 0.9337064521194094, 1.6003836090764167, 2.499315901674791, 3.1405520993781124, 3.705794631991921, 4.286774342043827, 5.070429566739222, 5.786462054941012, 6.560763528752034, 7.202059311320227, 7.436482177613527, 7.281725524357171, 7.0117423899387745, 6.7327593555100975, 6.44973595581456, 6.2018502873502825, 6.0193886509455865, 5.578034836304369, 4.954854475803586, 4.318753146931215, 3.9762231450777676, 3.787561785459971, 3.7670880588893993, 3.738897276025682, 3.4289220533378852, 2.802860015322736, 1.9983966497211583, 1.3303809305398318, 0.6863703292872039, 0.22419509410989136, 0.08407811333498305, 2.0385419735916724e-68, 6.915530629011004e-73, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 5.898861894823019e-71, 9.023334125947557e-68, 0.1273203544578161, 0.6005356279481511, 1.435354704517522, 2.412228444468397, 2.954151965892734, 3.414745105727789, 3.8627371045118366, 4.367893349612132, 5.180379053793388, 5.976006728415314, 6.814495412036422, 7.3814503409585654, 7.646706276538907, 7.526699336495085, 7.346227369231428, 7.117213816222886, 6.873024868609946, 6.4067510156658045, 5.845689728681691, 5.077976354278007, 4.369841853568289, 3.8559297031335973, 3.541260283358284, 3.70530309541779, 3.9683541228260424, 4.015631658961013, 3.7935697454309434, 3.2101602891885364, 2.435254088419825, 1.652173258888979, 1.0887092857349359, 0.6965562174522155, 0.5288634909597967, 0.3462225637263714, 0.30391813993208316, 0.033045705815504256, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.75158214175833e-71, 1.7192953578641363e-70, 0.00017839582674123236, 0.633268848950852, 1.2116846126573932, 1.9423272628703359, 2.681031234860498, 3.1550162251378424, 3.4136820824869574, 3.7226086137009275, 4.0023244419003845, 4.753251683814824, 5.62315293251595, 6.646129837702631, 7.272704486356417, 7.553509763083866, 7.412305303872074, 7.304868986176189, 7.129571376012848, 6.720806391510962, 6.007094675654173, 5.117425319986069, 4.227036958954159, 3.3467233439320268, 3.018693990862232, 3.0780022325072878, 3.5180072050170565, 3.9181203147932706, 4.05856432294263, 3.829724023385154, 3.398558685354658, 2.789908086399592, 2.08152990430564, 1.8253158613384244, 1.562064022439941, 1.4119835451222116, 1.1703092598900753, 0.5599401576912442, 0.31098731648343403, 0.08885324828970997, 1.2811416046193394e-18, 4.709679157134148e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.440549877528932e-68, 0.15114119692406636, 0.7587428477936555, 1.492682143705352, 2.2265662573236256, 2.653620247913878, 2.8213220649163873, 2.972557783583639, 3.226012538873931, 3.777522337270284, 4.648367434043621, 5.665445810519998, 6.469237949160345, 6.981421129114608, 7.175112930949638, 6.932854186218037, 6.90363627380998, 6.521500437662553, 5.997059753540782, 5.259294479021776, 4.396699592036612, 3.6637361075219275, 3.251130023551937, 3.132033624568308, 3.334020362531774, 3.9716428631902687, 4.399274574611866, 4.477079389236906, 4.23899017318854, 3.5903562900987254, 2.8926652947129696, 2.631286517580648, 2.5055340658337286, 2.3472875565852434, 2.308475656450483, 1.8242408043645355, 1.4024045745916425, 0.8508626608864347, 0.4293912456274853, 0.1876536949222194, 6.268422030322447e-06, 2.719173074135871e-72, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002602184814047226, 0.4451985111125545, 1.055944467850182, 1.9695086511719637, 2.8582316740165794, 3.3354244677595943, 3.48653428780068, 3.194329186561845, 2.8918620580715384, 2.9405529412366747, 3.420140747047995, 4.221852415048716, 5.114921991353242, 6.013360530435477, 6.625385792871441, 6.76151211610545, 6.72654347825079, 6.316435715441969, 5.752860413845212, 5.22035703871461, 4.572263425752908, 3.9977320072165554, 3.396697095732236, 3.2272695048561815, 3.3920080288442165, 3.825569810917159, 4.3601255838495945, 4.595129252735205, 4.516320136117656, 4.059715239694924, 3.632295776867579, 3.336214815115582, 3.2264022363815457, 3.184444514791963, 3.108680185025378, 2.7390675204019885, 2.325492583014025, 1.8299749832527965, 1.2686743604336357, 0.9337706141257094, 0.716221581386268, 0.6523497920476053, 0.357139774252321, 0.03804026542897909, 8.634353705652036e-70, 7.706647761318192e-73, 0.08418295069913118, 0.0015866457734495937, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 6.3277553266816e-69, 0.3009876818249637, 0.9624332851049964, 1.9155300885154816, 2.7884706577567755, 3.4723487932821087, 3.729473229478245, 3.5240853006671955, 3.0074116039404544, 2.5716389467049936, 2.575069643256157, 2.859229378460441, 3.5595942856455167, 4.568482460074449, 5.346856832580272, 5.6845692620299815, 5.838734106249888, 5.427907539525734, 5.075171164103779, 4.7393437323646594, 4.3255080812519395, 3.7696456290522207, 3.3473571204958716, 2.8638170266044796, 2.780306649659906, 3.1631753272568517, 3.8120597504903486, 4.298127541915164, 4.387311048117283, 4.1264385859363415, 3.7932869493864843, 3.531355832309657, 3.4031256057285333, 3.399876081249559, 3.4488297449545513, 3.5512585785468787, 3.2295853613511696, 2.7218264781805743, 2.119249678726419, 1.7290984905494042, 1.4606987949088222, 1.555388335772534, 1.4802073675157459, 1.192310673622515, 0.97871569424548, 0.8503289924834831, 0.7517297974504835, 0.7340930980181071, 0.6708116815498535, 0.6367665798401312, 0.6590773106947836, 0.5827196174714686, 0.6113015083315645, 0.36232448756186386, 2.6309812780780023e-68, 9.136770344324907e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.3504213825127595e-70, 0.2634017555439847, 0.9359942607771679, 1.6381448097423004, 2.4458089185112755, 3.2591545655669165, 3.7203066381264307, 3.5579054057559603, 3.0343990616666474, 2.359661899927815, 2.012917996597082, 2.061926500660377, 2.6173443316711342, 3.490648977744115, 4.184903421663023, 4.449334145523608, 4.66728967169098, 4.320871054675081, 3.950828492033466, 3.684012984191213, 3.5340665091030274, 3.4344609893588682, 3.0889426175863264, 2.964668617151119, 2.938268780658305, 3.020987231997779, 3.4511028461998308, 4.017324091393903, 4.187174618105075, 4.16948575191833, 4.0167162654781805, 3.827728264718644, 3.672206827452328, 3.642870803567405, 3.521149837241012, 3.674182192159847, 3.5079723563476364, 3.027978386684538, 2.7182368434501427, 2.3164624540982572, 2.00824356565262, 1.8587886497712702, 1.8269864025853764, 1.5708079808973707, 1.5714723157220902, 1.5488622456445142, 1.534603114234642, 1.4667700970120592, 1.2742602992968841, 1.217900389064198, 1.2641089333115474, 1.2469018651040784, 1.2371819390387486, 1.1031866880267813, 1.063557454991738, 0.811311873463044, 0.5291979170660852, 0.17851384224023636, 0.00029268369188312215, 6.629267619590329e-70, 4.256830230405868e-72, 0.0007776250222522041, 0.17525622039969235, 0.17896700431043655, 0.11051503840363441, 0.06359236756168585, 0.08525625264219716, 0.1829717888815594, 0.282429508082771, 0.25226100575514465, 0.11357648075596671, 0.030212368065601902, 9.862313753478294e-72, 1.971589497971873e-71, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.005604688788813983, 0.5352104579412789, 1.1707348718666708, 1.9091065273446617, 2.657994068791197, 3.406585701827737, 3.91410331999964, 3.962276652755591, 3.5737106115597186, 2.8973933094216733, 2.41103327625423, 2.237757929406655, 2.4625163408845907, 2.959745723756683, 3.414123483567039, 3.830012373736281, 4.042262497662762, 3.9036195026921092, 3.422965878604046, 3.009649681307792, 2.66942134467412, 2.657109067356501, 2.5636875452348704, 2.452296214414673, 2.461010299142586, 2.603376476600033, 2.8070195476189497, 3.4896312122359774, 3.9441754084894, 4.206923250956663, 4.1517274525304515, 3.9598177434672976, 3.733141457919885, 3.7257971398697833, 3.67269799158818, 3.6596647330880074, 3.5173538962148, 3.0901189464930354, 2.788901449299047, 2.5794498741272633, 2.3709974036624004, 2.2427135189025336, 2.1439679248005774, 2.02017754271219, 1.953389210661399, 1.895127082601121, 1.9493020427297694, 1.9706380701143331, 1.880643463992783, 1.8487561143447238, 1.8851614783694117, 1.8465497876322843, 1.6946894802472912, 1.430544842172722, 1.091734672867517, 0.8199859405565668, 0.5207570501563765, 0.35931721191261445, 0.2529677087856932, 0.20241623254836671, 0.2524158625681281, 0.34479038372595383, 0.5557055072195141, 0.5677506397426022, 0.6099031199491947, 0.6601911191776253, 0.607529850553906, 0.7148811226171006, 0.8399779898469752, 0.9393344581313023, 0.8888619221488661, 0.5540491379786125, 0.3174797744250668, 0.012171061737209499, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004771189331464143, 0.5299352935690536, 1.083720232836086, 1.671105170249362, 2.295838322264686, 2.9024659639482167, 3.491835741606849, 3.937397357261162, 3.9248978200555626, 3.426834133044622, 2.7003884523560515, 2.144852285033494, 2.0559625446135357, 2.4561627490911633, 2.8597494631299583, 3.2674165443328462, 3.4192303030536664, 3.1917039867317385, 2.66109565123044, 2.137394191322585, 1.8609154339685716, 1.7044900074734102, 1.606329115766144, 1.6589132598927705, 1.5813027841825402, 1.5503162168898257, 1.7103325639883593, 2.0761542422049075, 2.5203465581103615, 2.9943966729661042, 3.334859307071895, 3.353438403416945, 3.3741783832164316, 3.328003258665845, 3.2886276320978283, 3.265015215839412, 3.1742986227559555, 3.374490648491758, 3.121707090109581, 2.649386240291406, 2.5445738614923954, 2.5611926895436596, 2.7767394294642145, 2.8175665372390455, 2.719928540702554, 2.524145517062962, 2.434789408446761, 2.472581888435471, 2.5205982694116216, 2.5597628076184407, 2.545871293760001, 2.5391598657748204, 2.4711567240666596, 2.248510368936479, 1.9915451245646096, 1.6253221855527187, 1.3308740460111181, 0.9444086194242942, 0.9218476255792076, 0.8242649410594858, 0.7846164099531485, 0.9426598870325051, 1.0746529893609136, 1.0067509720013277, 0.9246712465062643, 1.0690569801789849, 1.1738196439119406, 1.134832569783839, 1.3270544477281874, 1.6650387069423687, 1.6770619392998611, 1.4581140704880369, 1.1804160419201395, 0.6985546523272355, 0.47422824905041594, 0.14023438437129698, 8.539739710179785e-18, 1.0026694740401147e-69, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.070366626109335e-71, 8.41678666441512e-68, 7.751840269001046e-39, 1.2831719265056232e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.2694256627907085e-68, 0.3773141247234548, 0.9230463724034657, 1.356058302089437, 1.9207856133885457, 2.597583609314839, 3.352962088052891, 3.6572614770365277, 3.845693856659693, 3.5585462783706703, 2.7895779626829267, 2.1637900177468197, 1.7417455978785625, 1.5878526286480934, 1.734067410184764, 2.1291728670924073, 2.4195640271229877, 2.597776127001964, 2.4017633978957207, 2.0345093426163317, 1.828922092345465, 1.6653528290380706, 1.4830935096052258, 1.4808914293244158, 1.5048945437912522, 1.4613869810098237, 1.636384250754773, 1.8197999733678358, 1.9216441665887487, 2.2087290657364065, 2.3904824093893353, 2.429721734887508, 2.567596187535642, 2.6598901078661044, 2.734029400107829, 2.6804437404507553, 2.6834720750414363, 2.6795729618697948, 2.5792082597181434, 2.52687542908825, 2.50168277364493, 2.5920370944024995, 2.5969350193975203, 2.5518747436299236, 2.538695632279996, 2.602047164775513, 2.7787747217826677, 3.126772524659046, 3.284874504885238, 3.1514430004754104, 3.011075586935604, 2.932984852458503, 2.8512361117555116, 2.7588101617539564, 2.6406149268246395, 2.339551878149507, 1.9870784159139134, 1.7356083496952266, 1.4917699666307414, 1.4497061277893977, 1.3334690128392737, 1.4729462937958147, 1.4531900284698764, 1.4078104276150185, 1.5091454912597015, 1.478085113462896, 1.475336480983188, 1.5867196039383913, 1.7643308510869815, 2.0091031962437143, 2.070363208686331, 2.021322412322718, 1.888501942462483, 1.6094091413948632, 1.378521824375639, 1.1669805520341612, 1.0377351248141764, 0.6491680563031288, 0.43636992533015473, 0.1854976672803197, 6.269199454082816e-68, 2.6625411886195926e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.542137942578213e-74, 0.09681088193873677, 0.09228890917963728, 5.978504448134333e-68, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.625172236189987e-71, 0.008464507276029265, 0.014394367268273867, 2.201192013041452e-68, 4.990994895940037e-71, 6.511084788206802e-69, 0.006179147192682477, 0.5377289343374834, 1.0757560901411125, 1.9728972094573152, 2.617187346575122, 3.205992437667703, 3.525547671387713, 3.8812392324189204, 4.088417773720948, 4.040950145045144, 3.480527372868792, 2.6964246026409455, 2.090011062694032, 1.8927554824285977, 1.886158395538601, 2.188033714370249, 2.362596388762782, 2.2852506891042736, 2.23740093336302, 1.8601937972764517, 1.69870157217305, 1.6276163378361161, 1.5342744064122513, 1.5005765763851429, 1.5625837456480127, 1.6188085778705954, 1.7405954149229643, 1.6655340549669404, 1.6466839922463947, 1.8758510130220571, 1.9995882623198327, 2.105885971360294, 2.183628631147272, 2.055036893210982, 2.06569857994738, 2.1013974777199564, 2.1396984708604947, 2.199170672850542, 2.193508086108764, 2.3047977971182263, 2.3014708076010635, 2.2063535492534925, 2.082508294381924, 2.007687471855789, 2.0401046361441786, 1.8874831150626505, 1.8969284296347269, 2.164048147709096, 2.22188477599731, 2.350124429822941, 2.429545582377969, 2.5552304950579128, 2.4487643912887194, 2.3860473488216627, 2.3935946029678803, 2.321595933589734, 2.180904687298849, 2.0509399388649854, 1.8997337593837074, 1.822560897382175, 1.6539545535932945, 1.7613413273834908, 1.796912437228059, 1.8040958473138744, 1.9095038333029066, 2.053853470604338, 2.010284474529783, 2.112262800902741, 2.1820575948883203, 2.3297149110794777, 2.5416941432269056, 2.4841505564019286, 2.293391128454928, 1.9187044680716667, 1.7170775769619127, 1.3696392161512136, 1.1196149330908725, 1.0366723318703066, 0.9667211797913957, 0.7023187244322493, 0.4603327234653989, 0.02764920735450005, 5.2911219143646224e-71, 0.014291564072601626, 0.1995148039723782, 0.2639436729513278, 0.49613410481521214, 0.5217504308441221, 0.6293148229342229, 0.622425308714142, 0.4924851591497692, 0.21763627735592284, 2.2692142203552496e-36, 1.2127489107127203e-68, 2.1504415405220906e-70, 0.11411131394121199, 0.2905165392608211, 0.5752894879561268, 0.5889486333770186, 0.5174319800337344, 0.3452955365603181, 0.015890385772811877, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.2028426200240666e-69, 0.17013497806516753, 0.3292294394594961, 0.2172097407626694, 0.06980987724320187, 0.0002945650868228823, 0.10023972726617458, 0.48212929514975045, 1.0305323273463642, 1.6284879010061246, 2.309987191140195, 2.969466183258703, 3.3207015369071655, 3.366474435102873, 3.5957464667416303, 3.6948128326489638, 3.6522044508658382, 3.1916860971543883, 2.7844589676176525, 2.2544485839976147, 2.0716454025347417, 2.0016601874095272, 2.1287648082818578, 2.1622566364296745, 2.0477394895298318, 1.9265063065045638, 1.8364078944017734, 1.4279547534044923, 1.4062620501429137, 1.474881278445551, 1.410546702348384, 1.2648633672588403, 1.1077131095794925, 1.12548826462627, 1.2116386855783645, 1.4415477713305904, 1.7280480815916377, 1.9003887441408693, 1.91733615197478, 1.927409828795362, 1.9041061854209715, 1.9548169972149623, 1.9820964113282713, 2.0673159467788196, 2.075255310686771, 2.072516436452375, 2.0310451522222053, 1.987392330594048, 1.8233949591433571, 1.827937518555757, 1.9335643708570984, 1.8255033362877384, 1.6723015342541316, 1.8269238844858506, 2.027375810365598, 1.9923621364751085, 2.1886964293105535, 2.0362148172134766, 2.1357541643228615, 2.1474152707060625, 2.2644892991229995, 2.2790751320712985, 2.2129242298674967, 2.226997460103476, 2.1671700729820174, 2.0482635681565995, 1.8565168939625352, 1.9459790490955697, 1.8625833109309156, 1.7374444270789269, 1.681095472959683, 1.7007959906022876, 1.7908008636056962, 1.9356246990812451, 1.8667144132946447, 2.130094187118644, 2.154283276490787, 2.3890726328921943, 2.4570898700672075, 2.409846546681379, 2.194639242445419, 1.9144310904910213, 1.5279413389507681, 1.3348514576229178, 1.2194066629446212, 1.176383733561707, 0.9968367835554659, 0.7290477219663991, 0.4565844371933423, 0.2517631633863324, 0.2478856635107718, 0.23127253931251346, 0.28502193062013603, 0.48727682909935766, 0.5067649429684593, 0.7409107077344323, 0.8507238953946086, 0.6909760868550165, 0.42488827734019097, 0.24489122098916827, 0.2712525015455327, 0.3962520545649717, 0.5543605451583886, 0.5282701601117914, 0.4603632160730662, 0.5221863985727992, 0.4341830940778415, 0.2706184109002585, 0.07649124088576187, 5.860639318400096e-59, 0.040141603878458776, 0.25433922914084306, 0.5252654744262522, 0.5532127921583765, 0.5925247877748916, 0.1566850029775111, 0.0, 0.0, 9.760167844650508e-69, 0.20506595535419425, 0.5418537665819692, 0.7329786893195411, 0.9159229603210974, 1.0787423898420911, 1.0559231532251943, 0.8693008258544523, 0.8492104156710276, 0.9636942879741497, 1.154841726273176, 1.5713551578608218, 2.098787503209735, 2.79862060528194, 2.910043406245677, 2.9891812078024174, 2.8755854408846204, 3.1016564693828172, 3.006399118565483, 2.897970022113668, 2.680220860746104, 2.347603167187472, 2.295291418699108, 2.3278200641750715, 2.3895296129241075, 2.3590305455532103, 2.1405020703074484, 1.9927767634340086, 1.9030821702376812, 1.9169000707916126, 1.914156637653619, 1.837406704021305, 1.7453593770119937, 1.5229580479348357, 1.4371925318264402, 1.363238343931755, 1.1572275325308965, 1.016871688249367, 0.8815010761838984, 0.9832169669563342, 1.2292059916855038, 1.5313326671618057, 1.732645153224567, 1.7803295596824142, 1.8714064710798652, 2.0068430052435957, 1.9478070601937958, 1.8682411709052218, 1.7889524248241742, 1.8224427728377037, 1.8540247936162046, 1.776965763860062, 1.655212245274015, 1.5223537634856399, 1.546976572310598, 1.5343334708114895, 1.490664485991374, 1.6104670309010203, 1.6896363310975318, 1.7072639286794953, 1.65048665019755, 1.5858640959145873, 1.6810998007339464, 1.7113650997208083, 1.7526906518948095, 1.823657031056669, 1.720981260200972, 1.6241545987692376, 1.679061726704333, 1.8534787945777822, 1.8271768638010712, 1.763154238770369, 1.477615575904622, 1.336278439630462, 1.4632076511543914, 1.5593928659746012, 1.72170196282201, 2.0362740148403304, 2.344757959351739, 2.4264312651723685, 2.60568357646207, 2.5724071169088916, 2.571716561480798, 2.418283991691169, 2.2253603920407983, 2.0952493201789935, 2.0974582630276615, 1.8438766100667294, 1.6831205521268657, 1.5977368310714155, 1.4633538728736681, 1.1723683920154713, 0.971071584426241, 0.9670435312276062, 0.9399660882679974, 1.1887165792078491, 1.3180017187073787, 1.3346063105957597, 1.1935254519542013, 1.0074663728397013, 0.6705885039989177, 0.3923394675542937, 0.3338815353304767, 0.4568254774316216, 0.6222153152348007, 0.821320824632167, 0.9965415153205051, 0.9053313767124713, 0.8758212921980544, 0.9265374700994613, 0.6855316034944394, 0.6405798889869061, 0.6740070063671375, 0.5978037300357677, 0.46259798509354155, 0.3041051381512858, 0.2290053552054241, 0.16856184812149255, 0.14164525625803837, 0.11686014739922257, 0.06065495385170849, 0.08507501922574434, 0.42450131820766046, 0.8646344020214691, 0.9741136781974689, 1.0508717884489585, 1.089552775566304, 1.0580188946487965, 1.0699389404182966, 1.2329404216998796, 1.4542001613517783, 1.9382095354017679, 2.311852291903179, 2.8127625837498726, 3.1191430689205077, 3.1096748517598485, 2.949160430950556, 2.7732860670969472, 2.7205930974506742, 2.7003449638542065, 2.5959365490635378, 2.473245505951823, 2.3509117793902448, 2.080184477507615, 2.0348691539240917, 2.092880807547104, 2.0677958976262403, 2.0914210361079313, 1.9595740454381172, 1.7742307147814387, 1.6028599160291037, 1.5944527385086218, 1.5949525290558455, 1.6210234552279559, 1.5401536304873389, 1.4061882583548737, 1.3438716666365167, 1.374819461619282, 1.2674801586400122, 1.4337153110506193, 1.5387881307399311, 1.5939852342853555, 1.6384899548479694, 1.5981430968261066, 1.6510717338366163, 1.5427232741802896, 1.5170128050387035, 1.6928243363366988, 1.7606199670927367, 1.835327314484175, 1.8206086323864525, 1.8434981690081855, 1.849442132885315, 1.7005065247033144, 1.70244588778678, 1.5530693211278503, 1.3218861243387892, 1.3649416789269395, 1.4205600026969165, 1.5163363035327535, 1.6871938776388475, 1.676419172031629, 1.693956456431124, 1.7917358128540997, 1.7500667682129603, 1.6123471014912525, 1.4821912338157404, 1.6594356445748417, 1.7608895107537705, 1.7304678552007005, 1.5894958119421432, 1.463754505896361, 1.5520016464830064, 1.7335017020216128, 1.7741821262694089, 1.863009590080992, 1.6486616107454353, 1.5964556842939146, 1.6918978866633552, 1.7648797121775175, 1.9177703017309256, 1.9774257407926257, 2.0507405417558857, 2.088971985733238, 2.1374980646271524, 2.1415252734741443, 2.183646951496158, 2.1661807636710364, 2.1463483965490013, 2.0336544932661127, 1.8848190842184067, 1.6216421555729, 1.5788437913466282, 1.5811010177927187, 1.4605212991626928, 1.4651965461816872, 1.3348239118904672, 1.2402826226566646, 1.1127980193953277, 1.121560819085289, 1.0980373667399022, 0.9560266562034627, 0.8524831615547015, 0.7569346485288406, 0.8340370467948475, 1.0603433043456931, 1.2873710902482003, 1.2363978969398346, 0.9901398304379114, 0.9777025512380852, 1.0487335762320527, 1.0853828053715375, 1.1516620075622654, 0.99069837271783, 0.8811111776177292, 0.7414580321250384, 0.5815895856881639, 0.41311295974546525, 0.44097417501192027, 0.4985079191533295, 0.482333850415273, 0.35674990819021346, 0.489450642153443, 0.8028977624576363, 1.194226737316967, 1.265816785209509, 1.1776431535045049, 1.0757120739395418, 1.0788382238338414, 1.215363176169376, 1.6468617518526685, 1.9451297069545035, 2.359948674038833, 2.690938534720999, 2.8977666847693087, 2.854108064849598, 2.6948259445728127, 2.385022163928184, 2.276039044960058, 2.341982341055896, 2.3873925015267474, 2.0958609002923936, 1.8947168352627983, 1.7681261657353389, 1.7994285507675158, 1.9277848692918411, 1.8787652266269674, 1.8755682381655703, 1.8313946886974577, 1.7394795721520637, 1.6320240009552123, 1.6986801311077215, 1.5822182397280358, 1.3119732194587783, 1.2164776145798584, 1.335800306099614, 1.3533793070071312, 1.3634983560414184, 1.6153244058514247, 1.8322565870427212, 1.8690810558283033, 1.9433853793850773, 1.8889292110521296, 1.633796231767576, 1.4929868473228822, 1.4567431435512503, 1.4154019919528906, 1.4786295225794674, 1.55561045984156, 1.5459685036512951, 1.54607581768596, 1.3324731053220518, 1.2146123553907415, 1.1259554858270349, 1.0676365491097073, 1.2334175200724076, 1.3099414129015372, 1.4015046100963815, 1.4721862518008635, 1.448211479272743, 1.4796820990937363, 1.3969054203426055, 1.4675284509827549, 1.455447069692596, 1.424565564095829, 1.47255713473443, 1.6070915916973263, 1.783423342276592, 2.032094873249889, 2.0891687529479555, 1.9381099590673898, 1.8331409615184526, 1.9349683125751795, 2.1463414106895016, 2.3039784001966837, 2.291324165866641, 2.2100962930772425, 2.1616845190530967, 2.051856812292513, 2.0317251121471145, 2.0211830991350013, 1.909587187145064, 1.8600994972780995, 2.001369095405167, 2.136887060930931, 2.2063124689526035, 2.2885619708142855, 2.1766179406824904, 2.16971123541272, 2.318135230213457, 2.372821963698698, 2.2738091455685208, 2.26570177064049, 2.2308484706246077, 2.2509996809084356, 2.2208386414636294, 1.9366431642134216, 1.5773115230923054, 1.3469753577488888, 1.3858530723649807, 1.2925553160340684, 1.3148944272870722, 1.2107712209865582, 1.0921863637925213, 1.1012585655703901, 1.0067914009258772, 0.9566184002554934, 0.982156365857211, 1.0277075862288712, 1.1075231632071478, 1.1403140474876636, 1.0329937980009305, 0.9128595280035512, 0.8349081143088064, 1.0359216392860304, 0.9220481639070819, 0.6565691738785837, 0.29385277816595945, 0.3102104687266696, 0.5244508923578941, 0.7500950585390456, 0.800565507974941, 0.8929851078435469, 1.0738506179940401, 1.3269901796866748, 1.3041965816015022, 1.2388667329094147, 1.0962325706471034, 1.0332952658590244, 1.1023724807421473, 1.227854825316399, 1.5140333958627252, 1.8628533905323366, 2.1143777257702965, 2.478106498128355, 2.475365929257478, 2.41869926155141, 2.3539238584671693, 2.167815228502846, 2.0582108853850514, 1.9652799736019375, 1.9542170233587655, 1.9335613871117516, 1.7657894956531806, 1.7236699611710407, 1.5731958177659635, 1.5167499968194988, 1.4902339922290508, 1.329667408782953, 1.1796828290825943, 1.3535082842714132, 1.6905661914036187, 1.7640493276570766, 1.5694558376463306, 1.4594939951304156, 1.353842266862614, 1.3908428472069687, 1.497037170068566, 1.5349094082830703, 1.7648619749969754, 1.9165482049522922, 1.7853125661722515, 1.7119390386215514, 1.7704558154678693, 1.8179903091379543, 1.8025459187786197, 1.681006136578219, 1.6135316366490429, 1.5721744577715526, 1.6094962521325584, 1.6295559979539718, 1.6469443628523095, 1.7734797314051889, 1.8398513940610997, 1.677883329374609, 1.5102648342804628, 1.5507048296889394, 1.5457627794248765, 1.6530145872252575, 1.8699344965725686, 1.8358467284563176, 1.6624013740113242, 1.554423900641325, 1.495459708029557, 1.4600006879848024, 1.4579862474022462, 1.4526256107923388, 1.6902087848293377, 1.9281089627932033, 1.9163538013759194, 1.8200418445866404, 1.940437394518085, 1.9802973345067585, 1.8983649988240927, 1.8323049961828843, 1.789408146174324, 1.663736385564846, 1.6516507930077893, 1.8638375570137669, 1.906536568276934, 2.029004257196121, 1.9400152979276442, 1.91653302197507, 1.9468126088579538, 2.0644846855511787, 2.338912281265948, 2.5795134385936223, 2.3892937468055067, 2.434011568684369, 2.3883194482944106, 2.4075871641883992, 2.3243390931511954, 2.02849215632979, 1.9785396529996433, 1.94580078494306, 2.0337092336046823, 1.8527887824229907, 1.635502649241971, 1.5341804963583314, 1.5059049321656772, 1.5159071086851696, 1.4712965546999754, 1.5158031951285835, 1.5457197984262763, 1.5267848249540208, 1.5595432216110225, 1.554696789979971, 1.7253725648291862, 1.9708469225891037, 1.8672444395866137, 1.688700839906744, 1.5288639174219156, 1.394849964763182, 1.4284023713958192, 1.2080336364451796, 1.1042677544908344, 1.0076566308743082, 0.7538502177857396, 0.6518651926181782, 0.7214549174955778, 0.9679517961521675, 1.1805424541510234, 1.282163265748423, 1.3541302350915885, 1.5762059129429105, 1.7491950997067676, 1.941059497803522, 2.0668353661133096, 1.799789966994524, 1.7706138025844211, 1.7241354480443647, 1.8208347931209232, 2.1574622382513695, 2.507591640328556, 2.6908352843204284, 2.5931833949835124, 2.6017310416232817, 2.5360204689334296, 2.2661618699051047, 2.241965922029422, 2.196215860626026, 2.2290754321653026, 2.2328883362480525, 2.1188946294752355, 2.0942907133721747, 1.8837564201593437, 1.8633932830182545, 1.6481470464114523, 1.5355350874240372, 1.6144251704108683, 1.6260295666602929, 1.506973902360187, 1.5164566768800256, 1.223813169419273, 1.1238925517705525, 1.0226827783323102, 1.0531736576882054, 1.2955234934680817, 1.427243153900747, 1.5687928251014114, 1.6788578328306016, 1.6870195285164868, 1.620605185971172, 1.6081980020326228, 1.5570899072270237, 1.345959758387437, 1.3089679706968695, 1.2835569474193562, 1.325353791787677, 1.4027227930046706, 1.3952718054724755, 1.3063389225553834, 1.2713803066715315, 1.2508793064144044, 1.2262686229069573, 1.342366879722249, 1.367192701954437, 1.352951091096216, 1.2526038172800327, 1.4142718796393297, 1.564182197574965, 1.8998182141988451, 1.82207941097937, 1.8808772469607362, 1.84229188441401, 1.7755295130782542, 1.6305891289625976, 1.554250013067545, 1.5547404901707438, 1.6174732222484778, 1.5470240189302444, 1.4629878997084234, 1.285852594398321, 1.206689446129431, 1.4333636246057182, 1.6455148730166371, 1.7296550137314313, 1.5445168693806863, 1.7039148289661767, 1.8178684753320908, 2.002062624075066, 2.0294114710514464, 1.9995282518359545, 1.956481073051691, 1.9194667630745812, 1.854515677076293, 1.8546257451819201, 1.9017223960850629, 1.9891451963490567, 2.1327364322505673, 2.1112961524096505, 2.044029526478198, 2.15598536260201, 2.076300246781159, 2.0658860236044916, 1.9175741854127324, 1.979013210975836, 2.009368488889095, 1.9771179781027968, 1.7744930407236694, 1.890788916325846, 1.8738087214220656, 1.8017256003824969, 1.874957700039559, 1.9079118936062969, 1.649576147776827, 1.4995633060732558, 1.4619017855984708, 1.6059224150576625, 1.5952807473736499, 1.928303630615119, 1.9714320361998858, 2.1079284710236266, 1.9876417323058035, 1.7258436061587332, 1.4601502065435312, 1.3514850204740156, 1.2651645066070074, 1.2898621177146765, 1.2946473860761785, 1.4556763220053313, 1.5667315125625834, 1.531894467039038, 1.4535099329805234, 1.4861129603743848, 1.6176803285200094, 1.6748510530762815, 1.8967455310712609, 1.8758768099417011, 2.001121869342626, 2.19126182410497, 2.187561516260658, 2.2334188468767593, 2.3641687936958675, 2.5612846459864613, 2.6081657340555466, 2.679393047221538, 2.920011149188454, 2.613266561791093, 2.3993179826993725, 2.3363584123927126, 2.198958538821799, 2.1008987830100665, 2.046907106660356, 1.995237142071474, 1.9435838083091426, 1.9650887956625098, 2.052814198947317, 2.0509576938720784, 1.8749874084178373, 1.8780339289960466, 2.121108706354576, 2.3335167510736596, 2.1578208542823774, 2.0315140779230347, 1.881298092918371, 1.9222186252832785, 2.0822963591655395, 2.0167171160437647, 1.8277679690836521, 1.8992310127624137, 2.0152360961592564, 1.9263110676185988, 2.100401529618523, 2.0572696813032962, 2.0826500492792235, 1.9267094978167734, 1.8070803974771934, 1.8085319155090929, 1.7455798697461091, 1.732645780885278, 1.648104807338541, 1.4357106345851776, 1.5183451082879316, 1.5710350881136037, 1.7464207048243594, 1.8492015580205248, 1.8632539904291576, 1.912473405606093, 1.9411558281018557, 2.0423739348530603, 2.0432445874634055, 2.201918378938217, 2.2059417011270313, 2.13867709892844, 2.127976631500644, 2.0971040081970074, 1.8988121080680145, 1.8662792420593775, 1.6067044380264548, 1.6503531063737142, 1.707135583523737, 1.7651879099175858, 1.4029631042985926, 1.3687674016639448, 1.409967980112711, 1.4366180844832002, 1.3180318274936695, 1.161433990434091, 1.0611015645390722, 1.176076288106799, 1.4551758446651206, 1.4297761501603787, 1.3926069456694137, 1.372599595663715, 1.5136051137242248, 1.561536937384517, 1.7583720430366725, 1.80521588573653, 1.9568012329400517, 1.935388864740517, 1.9857356519083282, 1.907377772543498, 2.107958932592794, 2.003033968510465, 2.1183806763676785, 2.0336364733158376, 2.028746500737043, 1.8111071641237828, 1.6339092947568048, 1.5384314730027313, 1.7634651353037043, 2.0114045589917993, 1.9927740709120059, 1.950859537533134, 1.9197591043918152, 1.6522792943079025, 1.4621459603404219, 1.2919910317141472, 1.293729270192344, 1.3253301868680865, 1.476466972633773, 1.6609046586509635, 1.7808700857409008, 1.7316661409382874, 1.4712002544684424, 1.3248372763484895, 1.2966208769585705, 1.104635327438018, 1.2551181539052436, 1.3163459915288058, 1.466254435879378, 1.7176980937401822, 1.8058450788920624, 1.930544341929874, 2.075099726331601, 2.180721250260831, 2.234178559445411, 2.188698898367022, 2.167051793185749, 2.0982507834596618, 2.091173825471415, 2.235257772879379, 2.3518206485239403, 2.322208815996646, 2.351656483378065, 2.5176829740820637, 2.4531131918158735, 2.571541834300106, 2.5361434863916656, 2.5620966815697557, 2.5375063700938796, 2.622325168397083, 2.431562799110054, 2.28848442538316, 2.2353336982977368, 2.2735301704315134, 2.1091699582257206, 1.8995247664336148, 1.6516854172223248, 1.5828591862374566, 1.6777879019333, 1.7979356148579342, 1.9004225973994835, 2.0114471641964116, 2.0487525639512114, 1.908729355547223, 1.94528133784479, 2.050500185523788, 2.035152468198831, 2.0044581780212525, 2.049344350789454, 1.9838516419078047, 1.927238374949468, 1.961847874147736, 1.9821843558095367, 1.9541077047083633, 1.8331832490005127, 1.7134105083505915, 1.528212778017192, 1.5162259165653182, 1.4958457579471087, 1.4480356045699097, 1.5203208477124122, 1.5585641048264876, 1.565239735336391, 1.7040302926218374, 1.7437316267780858, 1.8546426290740783, 1.938693180844794, 2.0333736631146735, 1.9075516335834095, 1.7999137523992346, 1.7911129116862554, 1.7005969995825723, 1.705161483073482, 1.6689049913204599, 1.7035995802018533, 1.6857597136237388, 1.4673020216588526, 1.3469023081292022, 1.4393833439253854, 1.4645960425841764, 1.5065767618467731, 1.3918307958697937, 1.5141011638617243, 1.5650747884139946, 1.5262372173683616, 1.5139644559481127, 1.5630749396780317, 1.7902253370351815, 1.9759789952086635, 2.0807302308826934, 2.020016243164946, 1.8848482159711608, 1.6733120414787805, 1.6910901253460366, 1.9125406679169288, 2.031868866372534, 1.9486939296612604, 2.133251427328574, 2.050582123565846, 2.002131443782801, 2.05671162706858, 2.089147042625328, 2.116683443114198, 2.293389323156191, 2.2586098864578616, 2.4069290861871764, 2.267846188476952, 2.2290729404386553, 2.179708788480866, 2.2071585878343427, 2.2577249438318745, 2.142596532205573, 2.131561473448315, 2.0990503620481746, 1.9050297786584593, 1.7284564837982543, 1.5776373223971518, 1.303889470755223, 1.2917750534654715, 1.5540734602525532, 1.6351288560604758, 1.646358787370957, 1.5906214078228373, 1.4608889808903456, 1.4008253113445335, 1.486519312805342, 1.5313211607831931, 1.5672341030876993, 1.7931067681784043, 1.9675383814642942, 1.9171020946663617, 1.8636624448964199, 1.8783191769553156, 1.9411040087477573, 2.0363570290538178, 2.057486836833405, 2.179531737434118, 2.1914421744874204, 2.301332280396821, 2.409584143436007, 2.3729468334661306, 2.41210143452696, 2.3472229028650418, 2.229418235834274, 2.2716432237899085, 2.253090249872969, 2.358019236257647, 2.3926445055240606, 2.392035671903514, 2.400747771389433, 2.328398114507081, 2.2626082605643774, 2.362078965703077, 2.5102253289873175, 2.4012069749609424, 2.4894683752246607, 2.2857711629836928, 2.106049971537743, 2.155961907538085, 2.3471914895145005, 2.50043435224876, 2.7286895032884786, 2.592343799029152, 2.5405714418273107, 2.4975932913694123, 2.470716363159454, 2.2948240375649362, 2.3714001491689487, 2.1677050047092195, 2.177618777753665, 2.0597986288385215, 1.888848603002998, 1.8231486802235395, 2.0026587634384327, 2.1273527327366537, 2.004946980760508, 2.0685001549029494, 2.100066720153123, 2.1703567690401684, 2.0912020970776126, 2.2281824153516396, 2.2371020914423667, 2.270924952318424, 2.220414430211136, 2.0492211401422225, 1.9433970122920528, 1.8907476087420605, 1.8239442371374395, 2.0478619732562606, 2.047681490157416, 2.09817929508246, 2.00497938967834, 2.056922256292637, 2.0569109723108028, 2.180878984523588, 2.07365544012886, 1.9994355407800555, 1.8833274466902026, 1.9269269310061787, 1.9992848477591565, 2.01193343650813, 2.0046718531028915, 2.0176425640705844, 1.8698376678685378, 1.842175710955999, 1.6265488768595446, 1.7635550534635058, 1.8683597927959141, 2.0015846296292352, 2.1884160241008885, 2.3877686374863174, 2.2213638100067925, 2.1647931634369257, 2.1129829072249464, 2.260595726611214, 2.2915053397798744, 2.5477752492597574, 2.5603922421964995, 2.3917222505222213, 2.2665609953978816, 2.209279024424177, 2.236638177124007, 2.01622010975575, 1.767455716473151, 1.7071754572302922, 1.761656494300098, 1.5922572981572216, 1.662248905641036, 1.7509058438044036, 1.8763542482429898, 2.1192548849484325, 2.200693741958787, 2.234672156766365, 2.1644066091401015, 2.1685257828785467, 2.260838775093376, 2.377254279216018, 2.3803795554572957, 2.305710742073245, 2.3013937671530584, 2.2391519488247127, 2.203314286066771, 2.2280535851283645, 2.3727444726422533, 2.1967596655159127, 2.24756163891675, 2.2619477151149567, 2.1231818491514787, 2.204281949894394, 2.2608624353779447, 2.4973766410262357, 2.301554721668836, 2.3078374243726927, 2.297213093406981, 2.239298581517474, 2.3759873238304863, 2.215655314814512, 1.9269113760174719, 2.047962282991648, 2.2145521056870763, 2.3639855027880827, 2.5005568805761555, 2.408256431864686, 2.352591460373233, 2.459349549003548, 2.5085691990903456, 2.7376953228522325, 2.7223032295496665, 2.4765540483278983, 2.3854945906625744, 2.5658093375405002, 2.3764426831906036, 2.4391779175102926, 2.4873261263548017, 2.5680378392952576, 2.568083687674644, 2.279952008646106, 2.1631331885228064, 2.2270871213697916, 2.3153035878531227, 2.3706607684403593, 2.220488682019095, 2.115894385031325, 2.3617491930395005, 2.1819533488104668, 2.2513305723268786, 2.0391083419340816, 1.8365843062472464, 1.7897554773394972, 1.8039485418469212, 1.9911646049664, 2.00912279688454, 2.015524133066947, 2.0526936167358514, 2.0993004559063735, 2.053300662865013, 1.972775649018331, 2.0488358321345004, 2.070892232814515, 2.309022679237515, 2.336633197976198, 2.4660868929689883, 2.4950359096982453, 2.806301781216817, 2.8120236932611533, 2.703092087136838, 2.557738460505007, 2.4305423775675905, 2.452123725615877, 2.4635801247789004, 2.665713462310478, 2.7914872956498584, 2.778104288370642, 2.6940894061686436, 2.7972866033185397, 2.6291111427265292, 2.5719819134524755, 2.312230042879392, 2.177023524608458, 2.1662063796870967, 2.168194363582657, 2.350596311989875, 2.1450261759651426, 2.0744451681942024, 2.0395169088956777, 2.035843660901392, 1.9737207712096847, 1.8215790028944099, 1.699537568449628, 1.8778607649715582, 2.0098386237113033, 2.1994531805503925, 2.0278188488591695, 1.9156036742481461, 1.9063090963754803, 1.8849068074814568, 1.7941339715012106, 1.8003433559554196, 1.7233165837206457, 1.9055872674694143, 1.9575633855453276, 2.1694510120707946, 2.2063510702589753, 2.1700905362479403, 2.2120415464860486, 2.307242376005888, 2.322829046679331, 2.223321835692559, 2.1001378951639396, 2.1480550332370427, 2.072582680958476, 2.1417524137774677, 2.2765689010980736, 2.4511400580679634, 2.548283699874446, 2.4269107465977555, 2.2777619325780165, 2.1296808210082787, 1.904393077475163, 1.918893706559416, 1.9376018276776819, 2.013644648814136, 2.147346792760402, 2.1959526394248883, 2.137475756053618, 2.198497182637823, 2.0729482461065487, 2.1801192366538658, 2.0557201733483907, 1.9200709596663188, 2.0249197773046603, 2.0993868177431665, 2.101882405341726, 1.9685889577662152, 2.092532802570531, 2.216666150825631, 2.2660168725843874, 2.207760426167681, 2.230532974886046, 2.3341428609610517, 2.4263495612103725, 2.4344069829340356, 2.410040489996291, 2.3674681445300507, 2.2891452266890724, 2.1755149998264187, 2.2986934646326063, 2.288184354977659, 2.4051010707018037, 2.5005244574035856, 2.609532040651402, 2.464981017873825, 2.275335183485595, 2.2305721435728287, 2.316901549286058, 2.3118254662320084, 2.1904730989832757, 2.0439313582503473, 2.1525150512166533, 2.2148870491157737, 2.1930402406326266, 2.1580467556546523, 2.1448672994342957, 2.201605289414843, 2.2333604127994136, 2.2609549267691733, 2.2582988828107773, 2.2538472156302447, 2.3133729093164135, 2.267090106199717, 2.288346650230096, 2.3084713095090734, 2.3323019223153665, 2.3780193206048352, 2.3115162572323698, 2.4466401047016575, 2.530835189560321, 2.6589748551282497, 2.4676079698111977, 2.4956837010251007, 2.603373399097336, 2.5899658739036227, 2.506270030138694, 2.341072091976514, 2.3326208934877855, 2.492043979524169, 2.5113114576338944, 2.558537348873017, 2.550970272104692, 2.5931162069474, 2.503595789021361, 2.4270362886761774, 2.2550808231801653, 2.111165896984758, 2.0943635156233, 2.100776796709397, 2.2973171664236816, 2.222181533589037, 1.9274700711462742, 1.9131121155451183, 2.0011815664612556, 2.1453184543137382, 2.192429468438206, 2.2425103630084777, 2.2901903675464297, 2.299658709434027, 2.3178960178129273, 2.343446042179721, 2.277730267874688, 2.3797145406866207, 2.4342738106724937, 2.551084512293201, 2.6025144622702925, 2.50021682473745, 2.4059123679525243, 2.404694364228149, 2.249178603765145, 2.262833843502804, 2.199686554787661, 2.085015865782239, 2.185273893428757, 2.350829894740073, 2.3617473610334514, 2.505293296874015, 2.777142296159184, 2.8749284916784745, 2.820580849711419, 2.8336093184685893, 2.8076055718760387, 2.7733865198593435, 2.6769630352646345, 2.642141231928022, 2.6493101786509357, 2.6707973664631623, 2.804047225866512, 2.8335101888953886, 2.7186971625793745, 2.5337322808481986, 2.390341597333645, 2.4130420539200372, 2.303379507427067, 2.694623993102141, 2.655397006079866, 2.7697753344511966, 2.7599384962145592, 2.654436690395997, 2.819812507368624, 2.9498970578506487, 3.1047640235637033, 3.0246627900569365, 2.7676092764750138, 2.6350427596808004, 2.3513903213315643, 2.2486626705469916, 2.224078406931085, 2.4020771069672833, 2.426700526601522, 2.290107382509987, 2.4418089704875143, 2.397730238300838, 2.5471473675430047, 2.553429666725208, 2.636927886376327, 2.746360763348221, 2.6324074225402825, 2.5013773321923196, 2.436269172113853, 2.449184881756082, 2.4414222687745593, 2.662958558177934, 2.7357894936576486, 2.7806429830162074, 2.7237667865581585, 2.786429827109771, 2.737008958565866, 2.949949063336831, 2.8775632098224833, 2.685640906567869, 2.5657879510556683, 2.610813181713695, 2.636127689692458, 2.7692841283465555, 2.894562527401888, 3.0320446888445076, 2.9877625568781383, 3.0524496178534264, 3.0601656118708433, 3.0294156816085547, 2.986319109987562, 2.969833902001838, 3.0980573655142507, 3.0692745916278454, 2.981903167938583, 3.063730959584575, 3.050980632224892, 3.1326720561482944, 3.097755646181227, 3.0452297119690144, 2.9813016962666694, 2.9355851681823566, 2.9134502313450525, 2.892403754131138, 2.7826948183633817, 2.7704435716477747, 2.7419329624108855, 2.6963161576146746, 2.5858968439411143, 2.565387734709944, 2.5910718034140245, 2.6990377297904757, 2.6958119364625333, 2.6091858090553757, 2.5814249504549025, 2.579067738000518, 2.5894544325698376, 2.702526089036837, 2.77043166647951, 2.991086735889681, 2.9293715643509586, 2.946362987963326, 2.871218239590135, 2.8770107732967176, 2.9839311631286733, 2.8249342287405312, 2.9485680023540795, 2.8497439275454326, 3.0393707423083924, 3.0648991394026694, 3.1367413172929446, 3.0995586270803557, 3.104512387770285, 3.026002663019213, 3.1480570806380115, 3.289451333144825, 3.203516496428179, 3.3796957358941313, 3.30697838854077, 3.2313200130577258, 3.162685585763839, 2.856667543374215, 2.761561896435083, 2.961780122196217, 3.0318462490882325, 3.0160475921038596, 2.859668826749896, 2.8230435333828154, 2.8877430174261463, 2.85559655634421, 2.8619286884809867, 2.8358994132215685, 2.771500852578356, 2.843303884420095, 2.9920883915931427, 3.092756547209902, 3.1178071462929893, 3.2046448709369457, 3.119319501143991, 3.168061672278455, 3.0312073836091855, 2.723003878063764, 2.791584492352058, 2.78232256878988, 2.914604056367139, 3.0481556930046736, 2.922878801464549, 2.9676755746386476, 3.1020553790042413, 3.1960875915570455, 3.172603552419787, 3.179662458992553, 3.1149367021507715, 3.0704893652000464, 3.1188479034938155, 3.107657937704289, 2.965083250979262, 2.920566883719303, 2.7298254490708587, 2.6534881995587654, 2.4903400559596776, 2.5618810674673256, 2.684745844882869, 2.770838044020877, 2.779650738873954, 2.7435261801173425, 2.6477845196669847, 2.8516318657198667, 2.8671179696339664, 2.974617962223647, 3.0549252437936616, 3.1021053494909125, 3.103300981889845, 2.933907716242402, 2.780510594054718, 2.691918338797805, 2.5725528107091264, 2.434541274852805, 2.636993703796179, 2.8892151268821777, 2.9980130911225302, 3.0503747318089722, 2.9481062195418986, 2.6937587402159267, 2.8503927603051125, 2.82246110720331, 2.7834815558890114, 2.628383640811549, 2.541612041558338, 2.2880325239635937, 2.474280477042626, 2.596623433019033, 2.763039534100301, 2.845365836019539, 2.9535352710104803, 3.1180020645405335, 3.0258985644561562, 3.0314302939368645, 3.170373171452084, 3.1279750092198952, 2.938397517000851, 3.0998033457763086, 2.91262580357602, 3.080798280464947, 3.096394105423542, 3.01472275809283, 2.89945894477205, 2.963154013287351, 3.026199667192543, 3.2427572964298292, 3.0993500151680564, 3.1732363370479675, 3.2228345996578724, 3.3146113915314004, 3.4449539601126986, 3.456966410775536, 3.481496209870457, 3.3171351010796712, 3.5576612147456785, 3.5726123091313298, 3.4027530848575793, 3.5187070863299965, 3.6091818462495127, 3.6123300400846006, 3.568251412353277, 3.5134800071046044, 3.486772018750571, 3.316102143935723, 3.2411238786489918, 3.0628216947153675, 3.0165399249007265, 2.948819378056214, 2.983291601090116, 3.0965388466944574, 3.216577918196947, 3.287677369232611, 3.3967063233180994, 3.2886371440671525, 3.1560030288392795, 3.039707015672221, 2.9293736046668215, 3.0096898022617466, 2.814834633533124, 2.747843814297596, 2.7254539057835814, 2.8260804127485386, 2.9383264051487004, 2.9838212013501106, 2.8947973927447634, 2.9501488997061784, 2.9056533582661928, 2.8195602864812486, 3.0158173813035773, 3.0311065162661635, 3.249170450759266, 3.1765116869873964, 3.033002106599781, 3.0404694150247593, 2.944685732100197, 2.8832443281592077, 2.763200437789237, 2.5566293755951506, 2.3930583058390766, 2.4913097307626373, 2.5066939191361968, 2.503557310293573, 2.6042624883224477, 2.6561531049236606, 2.668121618117084, 2.7269781535711104, 2.7451613379798943, 2.7359783903894055, 2.6045549091192157, 2.5257317554838323, 2.4295790285658683, 2.393069739332546, 2.3798263508320474, 2.5523942683832956, 2.7018958783455673, 2.6472895121548987, 2.4674806337266233, 2.3550901534256354, 2.374064564177857, 2.4268617192120843, 2.433219720820091, 2.390382513498267, 2.489801680095084, 2.6316821720939174, 2.749524931180659, 2.784935602594274, 2.8770568750487655, 2.916982429562168, 2.8908862411810787, 2.754286073374047, 2.663762038252017, 2.7005228379575783, 2.8096329604125145, 2.9259864352484897, 2.854941894556319, 2.7302776874421397, 2.567449488088428, 2.4634839519643634, 2.5156794979853316, 2.4797593013872756, 2.601256123840031, 2.614092192268359, 2.4721826360566865, 2.5634359818657373, 2.734638902448353, 2.853040376736317, 2.720249405305154, 2.5731910823035378, 2.6074519157196505, 2.6558115649336855, 2.650016119196664, 2.774492811703567, 2.7411536980764595, 2.9659269766426775, 2.9442344808222884, 3.1388381861148815, 3.1102664301986493, 3.217229612757876, 3.085899953044887, 3.246189887078131, 3.2677496890347015, 3.2519984591819053, 3.1632936341342344, 3.0544089542314765, 3.1551839285314145, 3.3029985785365312, 3.3566805164841895, 3.318674631577778, 3.2016054560791076, 3.046559567003456, 2.9389688951814605, 2.8755813978907696, 3.012435620605686, 3.0779461822795042, 3.3361725737977963, 3.5152682752505484, 3.575059721943262, 3.6266280858455957, 3.7135143300730675, 3.735081074173877, 3.919068482561684, 3.9298962901214054, 3.8883707503591722, 3.7848107526521204, 3.6758618754802797, 3.683993764367699, 3.643501534321558, 3.7118118255396126, 3.684550244307104, 3.8023277039972214, 3.957277545856641, 4.100600280798972, 4.108321891947583, 3.974854534919828, 3.9422096895179948, 4.081053969453535, 4.188997484163849, 4.236128852406239, 4.232172693185987, 4.309008747895859, 4.203528214397068, 4.2177540762734225, 4.272836569068716, 4.234077934000254, 4.395860760533253, 4.421826546677096, 4.739287676420645, 4.976429959509062, 4.982386468908828, 4.815901272821975, 4.5835146400643225, 4.5675468895797735, 4.66958926027479, 4.975236532517613, 5.140730959967698, 5.354495087816758, 5.300705942223431, 5.0510577318146375, 4.927946007312357, 4.8927146464102975, 5.010293591931486, 5.152722397999469, 5.339589838519032, 5.404754969321402, 5.315333688761314, 5.311819652835993, 5.49568674612425, 5.510476812710351, 5.638190413019629, 5.667054187342956, 5.709968432384812, 5.619416481097744, 5.6739499786445435, 5.683638186335486, 5.613903951302802, 5.479236590696246, 5.427227672255924, 5.382232645954218, 5.471177464633513, 5.633259437511015, 5.712719343188155, 5.760613877439255, 5.780942692568317, 5.74290081636542, 5.686096209322443, 5.756065506709604, 5.862803056525593, 5.97589599027566, 5.963052671048047, 6.193139531104009, 6.348682891205556, 6.341781137612145, 6.435905379496262, 6.483089705966449, 6.529918746082387, 6.344968498162018, 6.269683814427992, 6.329380396171075, 6.315206204617937, 6.309852158159629, 6.3749753306913135, 6.546256794467865, 6.536347892289086, 6.361589597310967, 6.2857314564712965, 6.410680237777854, 6.428891076368245, 6.499934387603901, 6.567669750429786, 6.59414929726978, 6.4554434093807345, 6.4225899325156774, 6.489769077688834, 6.466089849318507, 6.343867122908705, 6.3841443154320245, 6.312394118646125, 6.216116700034263, 6.195287568071365, 6.151328436219558, 6.0199490429170055, 5.867655590988363, 5.921229772102606, 5.896393792239962, 6.042953433336379, 5.9541506192672955, 6.0472994898100865, 5.941377192771199, 6.058201394182333, 6.09241595416421, 6.27023902212477, 6.155523994632176, 6.294040504390125, 6.1515011036604506, 6.081255169456426, 5.961615880671673, 5.880520699486681, 5.686042768389598, 5.758624960002635, 5.486721945200998, 5.363116037088048, 5.359873260931693, 5.2375348513671725, 5.014795564092367, 5.041380900106617, 5.208202230768677, 5.523281735426281, 5.734145289519802, 5.751924905521321, 5.7936183230577285, 6.078603826511483, 6.023350561641166, 6.0238690060941735, 5.982077913438445, 5.751396571354292, 5.868908891812907, 5.847570243913708, 5.920183213879682, 6.123175915941431, 6.185409681902968, 6.161653711899135, 6.092280603530753, 6.03753331166223, 5.985335726618587, 6.075973043097349, 5.982958473647159, 6.099121811373664, 6.036768244990526, 5.962362198312121, 5.722814726064826, 5.7118611793685545, 5.609212861396372, 5.669013605373948, 5.904581682299067, 6.019697506759769, 6.301939662171208, 6.335346408054704, 6.456336335723108, 6.2491691388668755, 6.064119253836964, 6.017437426938216, 5.961224693829138, 6.00920903649444, 6.165890678813923, 6.228396519809621, 6.33578929127907, 6.274049723471364, 6.213671461414435, 6.265147554511316, 6.17025228552302, 6.038993282415106, 5.965050959032453, 5.994982556880132, 6.139187481866429, 6.210593308412683, 6.232055211763509, 6.16549521431358, 5.960096610798246, 5.894629316042085, 5.780711104359909, 5.715244063311786, 5.715101569899161, 5.9980722108159625, 5.972569661847103, 5.926628789395409, 5.8771389502444435, 5.955942600236597, 6.020225153772344, 6.0894833014963865, 6.124899923801422, 6.087683106114184, 5.955894888158809, 6.1076000589494015, 6.109160405649391, 5.944236764582968, 5.866352762073404, 5.901604242273834, 5.842182009972078, 5.781284350969202, 5.808453216582166, 5.892027079872207, 5.932573802067282, 5.9241947489686595, 5.841912317715071, 5.794644451626084, 5.6731924061832615, 5.6942767685214335, 5.720746807176113, 5.641910447391695, 5.686192858455797, 5.6515066602160005, 5.770358580555751, 5.872562131852646, 6.036607739451995, 6.007950193104591, 5.980245856135525, 5.8275377500609125, 5.836858468529101, 5.679096449183874, 5.784811589374442, 5.789549137585311, 5.678997587711137, 5.81446860218017, 5.802121632925775, 5.8417428988398115, 5.7440161547565936, 5.776751893100084, 5.712859527466719, 5.703441375419288, 5.76517778356498, 5.773185867157338, 5.945227313271118, 6.121183166160563, 6.129425270892398, 6.020450961000336, 5.861934847082523, 5.7528032290020406, 5.757723308511231, 5.746090560718585, 5.714978457021061, 5.702981318900356, 5.757215302470286, 5.938742578619895, 5.932260221103206, 5.924714711797208, 5.817736813982322, 5.838963397129419, 5.832312334769085, 5.788647362780978, 5.674864357592924, 5.705872922831134, 5.649081059124001, 5.599830922064086, 5.612977551370534, 5.724644569826523, 5.807691313685211, 5.9112912035134855, 5.9998953164623, 6.180480806870037, 6.242826852205837, 6.309110749637114, 6.217374574517635, 6.219443567330018, 6.128238887623013, 6.203737355826888, 6.206803117863785, 6.132567084994719, 6.146696886308064, 6.048664476180932, 6.021566019393504, 6.004105517920436, 6.089393873744996, 6.062535318144228, 6.0767746781680785, 5.959903368893947, 5.928005630630651, 6.007493208308233, 6.023111827228661, 6.071467474721487, 6.027125300443231, 6.104476429020963, 6.127201339077374, 5.974084693107727, 5.8836952258027395, 5.94294522236396, 5.979194095162711, 5.944003090831984, 5.923494924311171, 5.849287299639627, 5.677938573964866, 5.57834341594662, 5.575305291806444, 5.560382321150939, 5.684763672072734, 5.696128219542743, 5.581176215396283, 5.445673588076033, 5.520678780051242, 5.597622889080412, 5.564456783315336, 5.5250536198314535, 5.441678451559767, 5.271034685124562, 5.248055639531458, 5.26096881876947, 5.189543057256799, 5.24125129620694, 5.244347702471771, 5.22786081918008, 5.314045330487772, 5.376810093159804, 5.327220985991744, 5.235473638822953, 5.173040667402859, 5.192018943953599, 5.302952349939233, 5.2176543829232855, 5.090907856164506, 5.007938255430474, 4.812712291845855, 4.744193826083176, 4.776574499060246, 4.861242434140877, 4.735373922910696, 4.635963898018019, 4.510031406873395, 4.631196140839165, 4.646570551176637, 4.533726079817143, 4.238339297346613, 4.164439779481256, 4.309870929309966, 4.477408311345243, 4.488698866458037, 4.485211139177636, 4.4404401596821685, 4.336902493390937, 4.313698828330473, 4.157898389705451, 4.101147789927438, 4.008612495337957, 3.954159743785013, 3.9908994997176706, 3.9553199442182176, 3.849020254120447, 3.8630684006676717, 3.845551255432511, 3.911774935155691, 3.8144146144595794, 3.69906648931925, 3.535806658104562, 3.3864459703506924, 3.360462193553815, 3.2693436744559676, 3.218414719963917, 3.1895912336825774, 3.2400225735103874, 3.3047237932970006, 3.1972547303894316, 3.0975047141727288, 3.113675303497132, 3.1475439777041316, 3.2340857912039525, 3.1610427906425684, 3.2310238723041493, 2.989676702123134, 2.985040778478165, 2.837420900589919, 2.788623541149505, 2.684309893310811, 2.418680351166941, 2.2891282726249216, 2.2977945593198825, 2.4601677003652753, 2.5046793506578666, 2.587070547157566, 2.4226494432327996, 2.2300846959552842, 2.238729202608866, 2.128990575118351, 2.17039294705188, 2.2681431270507915, 2.1512231036033427, 2.141302331803004, 2.03616480609584, 1.8427867143433474, 1.925765113087948, 1.9991034842714726, 1.9362453669613302, 1.8745153668660919, 1.8814609503735937, 1.8339545161923212, 1.7049924343414347, 1.4948049366922191, 1.3528909133319758, 1.2658747259767011, 1.1328406878220108, 1.0619650046579068, 1.3391330352288264, 1.2625010836714523, 1.0889152761141219, 0.9485792383778779, 0.8833763444349394, 0.8731099731424052, 0.9022164245713817, 0.8887209908120361, 0.7653866744762219, 0.7652321216945133, 0.6247039380360206, 0.6834480207902658, 0.8346700202093906, 0.820426858127238, 0.7694407442215834, 0.6734556309756954, 0.5485491760418348, 0.48717772590393693, 0.38979916755330635, 0.2246094201058355, 0.19618396029708052, 0.09541073990072846, 1.2979333969975974e-71, 1.9788536537528266e-70, 3.9368502143249396e-68, 0.0, 0.0, 3.455680302932628e-71, 1.1343752694080618e-68, 0.024245143700270866, 0.11978376771196597, 0.09283986648928622, 0.04756017287097536, 0.028974828970193878, 9.084536109841283e-71, 0.0, 0.0, 1.461755149194966e-70, 2.63357903535534e-68, 4.624999279859047e-68, 1.759749280766953e-70, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0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, 0.0, 0.0, 0.0]} +RLMATH_EOF diff --git a/tasks/optimize-ea-second-autocorrelation/tests/check.py b/tasks/optimize-ea-second-autocorrelation/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..42e9d498741d37ed998d81f42ce6402fe0f87a3d --- /dev/null +++ b/tasks/optimize-ea-second-autocorrelation/tests/check.py @@ -0,0 +1,32 @@ +"""Second autocorrelation inequality, lower bound (EinsteinArena second-autocorrelation-inequality, MIT). + +C = ||f*f||_2^2 / (||f*f||_1 ||f*f||_inf) with the upstream discretisation (scipy oaconvolve, piecewise +linear L2, discrete L1/Linf); maximize. Ported from the upstream verifier. Changes: values must be >= 0 +exactly (upstream tolerated >= -1e-6 and clipped), length capped at inst["max_len"] (upstream 2,000,000).""" +import numpy as np +from scipy.signal import oaconvolve + +from run import Invalid, float_list + + +def check(inst, ans): + v = ans.get("values") + if not isinstance(v, list) or not 1 <= len(v) <= inst["max_len"]: + raise Invalid(f"values must be a list of 1..{inst['max_len']} numbers") + f = np.array(float_list(v, None, "values")) + if np.any(f < 0): + raise Invalid("all values must be non-negative") + if np.sum(f) <= 0: + raise Invalid("f must have positive integral") + conv = oaconvolve(f, f, mode="full") + m = len(conv) + xi = np.diff(np.linspace(-0.5, 0.5, m + 2)) + y = np.concatenate(([0], conv, [0])) + y1, y2 = y[:-1], y[1:] + l2 = float(np.sum((xi / 3) * (y1 ** 2 + y1 * y2 + y2 ** 2))) + l1 = np.sum(np.abs(conv)) / (m + 1) + li = np.max(np.abs(conv)) + c = float(l2 / (l1 * li)) + if not np.isfinite(c): + raise Invalid("non-finite score") + return c, {} diff --git a/tasks/optimize-ea-second-autocorrelation/tests/instance.json b/tasks/optimize-ea-second-autocorrelation/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..cee8f6e5f0b3111e029775e29eeaee8792a9be62 --- /dev/null +++ b/tasks/optimize-ea-second-autocorrelation/tests/instance.json @@ -0,0 +1 @@ +{"max_len": 200000, "direction": "maximize", "best_known": 0.9612055422690106, "baseline": 0.6666666666666666, "family": "ea_second_autocorrelation", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-ea-second-autocorrelation/tests/run.py b/tasks/optimize-ea-second-autocorrelation/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/optimize-ea-second-autocorrelation/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/optimize-ea-second-autocorrelation/tests/test.sh b/tasks/optimize-ea-second-autocorrelation/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/optimize-ea-second-autocorrelation/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/optimize-finch-no4-concyclic-n12/environment/Dockerfile b/tasks/optimize-finch-no4-concyclic-n12/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/optimize-finch-no4-concyclic-n12/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/optimize-finch-no4-concyclic-n12/environment/instance.json b/tasks/optimize-finch-no4-concyclic-n12/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..9c14f5aa41511590ce79b132353a04288779db36 --- /dev/null +++ b/tasks/optimize-finch-no4-concyclic-n12/environment/instance.json @@ -0,0 +1 @@ +{"n": 12, "direction": "minimize", "family": "finch_no4_concyclic_12", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-finch-no4-concyclic-n12/solution/solve.sh b/tasks/optimize-finch-no4-concyclic-n12/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7f82c49089d5153371fb24e793eb6295e917293 --- /dev/null +++ b/tasks/optimize-finch-no4-concyclic-n12/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"points": [[-4, -1], [-5, -3], [4, 5], [-1, 6], [-5, 3], [-4, 2], [2, 3], [-6, 2], [2, -1], [-5, -5], [-1, -2], [5, 0]]} +RLMATH_EOF diff --git a/tasks/optimize-finch-no4-concyclic-n12/tests/check.py b/tasks/optimize-finch-no4-concyclic-n12/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..d0022c55d7ca334ca057fbb7e383c8d943b2486a --- /dev/null +++ b/tasks/optimize-finch-no4-concyclic-n12/tests/check.py @@ -0,0 +1,62 @@ +"""Erdos #654, n = 12: points with no four on a circle (or line); minimize max_i d(i), d(i) = number of +distinct distances from point i (Finch/EFT skydiscover erdos_654_no_four_concyclic_distances, Apache-2.0). + +Upstream bugs fixed: distance equality used a chained relative tolerance 1e-9 over sorted values (so a +chain of slightly different distances could collapse into one "distinct distance") and cocircularity a +float determinant with an absolute threshold. Here coordinates are exact rationals and both tests are +exact.""" +import itertools +import math +import re +from fractions import Fraction + +from run import Invalid + +RAT = re.compile(r"^[+-]?\d{1,30}(\.\d{1,30})?(/[1-9]\d{0,29})?$") + + +def rat(x): + if isinstance(x, bool): + raise Invalid("coordinates must be numbers or rational strings") + if isinstance(x, int): + return Fraction(x) + if isinstance(x, float): + if not math.isfinite(x): + raise Invalid("non-finite number") + return Fraction(x) + if isinstance(x, str) and RAT.fullmatch(x.strip()): + return Fraction(x.strip()) + raise Invalid("coordinates must be numbers or rational strings such as '1/3'") + + +def points(inst, ans): + n = inst["n"] + pts = ans.get("points") + if not isinstance(pts, list) or len(pts) != n: + raise Invalid(f"points must be a list of exactly {n} pairs") + P = [] + for q in pts: + if not isinstance(q, list) or len(q) != 2: + raise Invalid("each point is [x, y]") + P.append((rat(q[0]), rat(q[1]))) + if len(set(P)) != n: + raise Invalid("points must be distinct") + return P + + +def cocircular(a, b, c, d): + m = [(x - a[0], y - a[1]) for x, y in (b, c, d)] + m = [(x, y, x * x + y * y) for x, y in m] + return (m[0][0] * (m[1][1] * m[2][2] - m[1][2] * m[2][1]) + - m[0][1] * (m[1][0] * m[2][2] - m[1][2] * m[2][0]) + + m[0][2] * (m[1][0] * m[2][1] - m[1][1] * m[2][0])) == 0 + + +def check(inst, ans): + P = points(inst, ans) + for q in itertools.combinations(P, 4): + if cocircular(*q): + raise Invalid(f"four points {[(str(x), str(y)) for x, y in q]} lie on a common circle or line") + n = len(P) + d = [len({(P[i][0] - P[j][0]) ** 2 + (P[i][1] - P[j][1]) ** 2 for j in range(n) if j != i}) for i in range(n)] + return float(max(d)), {"d": d} diff --git a/tasks/optimize-finch-no4-concyclic-n12/tests/instance.json b/tasks/optimize-finch-no4-concyclic-n12/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4f8365850809006a7ee189227e5ba2331a55ff0e --- /dev/null +++ b/tasks/optimize-finch-no4-concyclic-n12/tests/instance.json @@ -0,0 +1 @@ +{"n": 12, "direction": "minimize", "best_known": 10.0, "baseline": 11.0, "family": "finch_no4_concyclic_12", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-finch-no4-concyclic-n12/tests/run.py b/tasks/optimize-finch-no4-concyclic-n12/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/optimize-finch-no4-concyclic-n12/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/optimize-finch-no4-concyclic-n12/tests/test.sh b/tasks/optimize-finch-no4-concyclic-n12/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/optimize-finch-no4-concyclic-n12/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/optimize-fs-cycle-indep-c9-n3/environment/Dockerfile b/tasks/optimize-fs-cycle-indep-c9-n3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/optimize-fs-cycle-indep-c9-n3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/optimize-fs-cycle-indep-c9-n3/environment/instance.json b/tasks/optimize-fs-cycle-indep-c9-n3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5811e4471f065ade4ddeb2973cde7ac13d70a862 --- /dev/null +++ b/tasks/optimize-fs-cycle-indep-c9-n3/environment/instance.json @@ -0,0 +1 @@ +{"m": 9, "n": 3, "direction": "maximize", "family": "fs_cycle_independent_set", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-fs-cycle-indep-c9-n3/solution/solve.sh b/tasks/optimize-fs-cycle-indep-c9-n3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a114d07770aed13b61ece3ea2c3eb1b7371e4e48 --- /dev/null +++ b/tasks/optimize-fs-cycle-indep-c9-n3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"vertices": [[0, 0, 4], [0, 1, 8], [0, 2, 3], [0, 3, 7], [0, 4, 2], [0, 5, 6], [0, 6, 1], [0, 7, 5], [0, 8, 0], [1, 0, 6], [1, 1, 1], [1, 2, 5], [1, 3, 0], [1, 4, 4], [1, 5, 8], [1, 6, 3], [1, 7, 7], [1, 8, 2], [2, 0, 8], [2, 1, 3], [2, 2, 7], [2, 3, 2], [2, 4, 6], [2, 5, 1], [2, 6, 5], [2, 7, 0], [2, 8, 4], [3, 0, 1], [3, 1, 5], [3, 2, 0], [3, 3, 4], [3, 4, 8], [3, 5, 3], [3, 6, 7], [3, 7, 2], [3, 8, 6], [4, 0, 3], [4, 1, 7], [4, 2, 2], [4, 3, 6], [4, 4, 1], [4, 5, 5], [4, 6, 0], [4, 7, 4], [4, 8, 8], [5, 0, 5], [5, 1, 0], [5, 2, 4], [5, 3, 8], [5, 4, 3], [5, 5, 7], [5, 6, 2], [5, 7, 6], [5, 8, 1], [6, 0, 7], [6, 1, 2], [6, 2, 6], [6, 3, 1], [6, 4, 5], [6, 5, 0], [6, 6, 4], [6, 7, 8], [6, 8, 3], [7, 0, 0], [7, 1, 4], [7, 2, 8], [7, 3, 3], [7, 4, 7], [7, 5, 2], [7, 6, 6], [7, 7, 1], [7, 8, 5], [8, 0, 2], [8, 1, 6], [8, 2, 1], [8, 3, 5], [8, 4, 0], [8, 5, 4], [8, 6, 8], [8, 7, 3], [8, 8, 7]]} +RLMATH_EOF diff --git a/tasks/optimize-fs-cycle-indep-c9-n3/tests/check.py b/tasks/optimize-fs-cycle-indep-c9-n3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..18467766f4b39df02d00aad7ae384bd83e857320 --- /dev/null +++ b/tasks/optimize-fs-cycle-indep-c9-n3/tests/check.py @@ -0,0 +1,38 @@ +"""Independent set in the strong product C_m^{⊠n}. Score = size. + +Two distinct vertices x, y of C_m^{⊠n} (n-tuples over Z_m) are adjacent iff x_i - y_i ∈ {-1, 0, 1} (mod m) +for every i. Check: mark the answer in a boolean table of size m^n and look up all 3^n - 1 neighbours of +every answer vertex (vectorised; 26244 vertices of C_9^7 take ~1 s). +""" +import itertools + +import numpy as np + +from run import Invalid, int_list + + +def check(inst, ans): + m, n = inst["m"], inst["n"] + vecs = ans.get("vertices") + # alpha(C_m^{⊠n}) <= (m/2)^n (fractional independence number is multiplicative under strong products), + # so longer lists are invalid; rejecting them early also bounds grading time + if not isinstance(vecs, list) or not vecs or 2 ** n * len(vecs) > m ** n: + raise Invalid(f"vertices must be a non-empty list of at most ({m}/2)^{n} tuples") + for v in vecs: + int_list(v, n, 0, m - 1, "vertex") + A = np.array(vecs, dtype=np.int64) + pw = m ** np.arange(n - 1, -1, -1, dtype=np.int64) + codes = A @ pw + if len(np.unique(codes)) != len(codes): + raise Invalid("duplicate vertices") + table = np.zeros(m ** n, bool) + table[codes] = True + for off in itertools.product((-1, 0, 1), repeat=n): + if not any(off): + continue + nb = ((A + np.array(off)) % m) @ pw + hit = table[nb] + if hit.any(): + k = int(np.nonzero(hit)[0][0]) + raise Invalid(f"vertices {vecs[k]} and {[(x + o) % m for x, o in zip(vecs[k], off)]} are adjacent") + return float(len(vecs)), {"size": len(vecs)} diff --git a/tasks/optimize-fs-cycle-indep-c9-n3/tests/instance.json b/tasks/optimize-fs-cycle-indep-c9-n3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..9d69357a1807d116872842f988e15878621f33e0 --- /dev/null +++ b/tasks/optimize-fs-cycle-indep-c9-n3/tests/instance.json @@ -0,0 +1 @@ +{"m": 9, "n": 3, "direction": "maximize", "best_known": 81, "baseline": 64, "family": "fs_cycle_independent_set", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-fs-cycle-indep-c9-n3/tests/run.py b/tasks/optimize-fs-cycle-indep-c9-n3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/optimize-fs-cycle-indep-c9-n3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/optimize-fs-cycle-indep-c9-n3/tests/test.sh b/tasks/optimize-fs-cycle-indep-c9-n3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/optimize-fs-cycle-indep-c9-n3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/optimize-fs-cycle-indep-c9-n4/environment/Dockerfile b/tasks/optimize-fs-cycle-indep-c9-n4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/optimize-fs-cycle-indep-c9-n4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/optimize-fs-cycle-indep-c9-n4/environment/instance.json b/tasks/optimize-fs-cycle-indep-c9-n4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..1241fa1df24fea117f5f15a000343e9951058ea8 --- /dev/null +++ b/tasks/optimize-fs-cycle-indep-c9-n4/environment/instance.json @@ -0,0 +1 @@ +{"m": 9, "n": 4, "direction": "maximize", "family": "fs_cycle_independent_set", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-fs-cycle-indep-c9-n4/solution/solve.sh b/tasks/optimize-fs-cycle-indep-c9-n4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..58accebf8f936f7cd89a6896769eb56a75293e95 --- /dev/null +++ b/tasks/optimize-fs-cycle-indep-c9-n4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"vertices": [[0, 0, 4, 8], [0, 1, 8, 8], [0, 2, 3, 8], [0, 3, 7, 8], [0, 4, 2, 8], [0, 5, 6, 8], [0, 6, 1, 8], [0, 7, 5, 8], [0, 8, 0, 8], [1, 0, 6, 8], [1, 1, 1, 8], [1, 2, 5, 8], [1, 3, 0, 8], [1, 4, 4, 8], [1, 5, 8, 8], [1, 6, 3, 8], [1, 7, 7, 8], [1, 8, 2, 8], [2, 0, 8, 8], [2, 1, 3, 8], [2, 2, 7, 8], [2, 3, 2, 8], [2, 4, 6, 8], [2, 5, 1, 8], [2, 6, 5, 8], [2, 7, 0, 8], [2, 8, 4, 8], [3, 0, 1, 8], [3, 1, 5, 8], [3, 2, 0, 8], [3, 3, 4, 8], [3, 4, 8, 8], [3, 5, 3, 8], [3, 6, 7, 8], [3, 7, 2, 8], [3, 8, 6, 8], [4, 0, 3, 8], [4, 1, 7, 8], [4, 2, 2, 8], [4, 3, 6, 8], [4, 4, 1, 8], [4, 5, 5, 8], [4, 6, 0, 8], [4, 7, 4, 8], [4, 8, 8, 8], [5, 0, 5, 8], [5, 1, 0, 8], [5, 2, 4, 8], [5, 3, 8, 8], [5, 4, 3, 8], [5, 5, 7, 8], [5, 6, 2, 8], [5, 7, 6, 8], [5, 8, 1, 8], [6, 0, 7, 8], [6, 1, 2, 8], [6, 2, 6, 8], [6, 3, 1, 8], [6, 4, 5, 8], [6, 5, 0, 8], [6, 6, 4, 8], [6, 7, 8, 8], [6, 8, 3, 8], [7, 0, 0, 8], [7, 1, 4, 8], [7, 2, 8, 8], [7, 3, 3, 8], [7, 4, 7, 8], [7, 5, 2, 8], [7, 6, 6, 8], [7, 7, 1, 8], [7, 8, 5, 8], [8, 0, 2, 8], [8, 1, 6, 8], [8, 2, 1, 8], [8, 3, 5, 8], [8, 4, 0, 8], [8, 5, 4, 8], [8, 6, 8, 8], [8, 7, 3, 8], [8, 8, 7, 8], [0, 0, 8, 6], [0, 1, 3, 6], [0, 2, 7, 6], [0, 3, 2, 6], [0, 4, 6, 6], [0, 5, 1, 6], [0, 6, 5, 6], [0, 7, 0, 6], [0, 8, 4, 6], [1, 0, 1, 6], [1, 1, 5, 6], [1, 2, 0, 6], [1, 3, 4, 6], [1, 4, 8, 6], [1, 5, 3, 6], [1, 6, 7, 6], [1, 7, 2, 6], [1, 8, 6, 6], [2, 0, 3, 6], [2, 1, 7, 6], [2, 2, 2, 6], [2, 3, 6, 6], [2, 4, 1, 6], [2, 5, 5, 6], [2, 6, 0, 6], [2, 7, 4, 6], [2, 8, 8, 6], [3, 0, 5, 6], [3, 1, 0, 6], [3, 2, 4, 6], [3, 3, 8, 6], [3, 4, 3, 6], [3, 5, 7, 6], [3, 6, 2, 6], [3, 7, 6, 6], [3, 8, 1, 6], [4, 0, 7, 6], [4, 1, 2, 6], [4, 2, 6, 6], [4, 3, 1, 6], [4, 4, 5, 6], [4, 5, 0, 6], [4, 6, 4, 6], [4, 7, 8, 6], [4, 8, 3, 6], [5, 0, 0, 6], [5, 1, 4, 6], [5, 2, 8, 6], [5, 3, 3, 6], [5, 4, 7, 6], [5, 5, 2, 6], [5, 6, 6, 6], [5, 7, 1, 6], [5, 8, 5, 6], [6, 0, 2, 6], [6, 1, 6, 6], [6, 2, 1, 6], [6, 3, 5, 6], [6, 4, 0, 6], [6, 5, 4, 6], [6, 6, 8, 6], [6, 7, 3, 6], [6, 8, 7, 6], [7, 0, 4, 6], [7, 1, 8, 6], [7, 2, 3, 6], [7, 3, 7, 6], [7, 4, 2, 6], [7, 5, 6, 6], [7, 6, 1, 6], [7, 7, 5, 6], [7, 8, 0, 6], [8, 0, 6, 6], [8, 1, 1, 6], [8, 2, 5, 6], [8, 3, 0, 6], [8, 4, 4, 6], [8, 5, 8, 6], [8, 6, 3, 6], [8, 7, 7, 6], [8, 8, 2, 6], [0, 0, 3, 4], [0, 0, 4, 1], [0, 1, 7, 4], [0, 1, 8, 1], [0, 2, 2, 4], [0, 2, 3, 1], [0, 3, 6, 4], [0, 3, 7, 1], [0, 4, 1, 4], [0, 4, 2, 1], [0, 5, 5, 4], [0, 5, 6, 1], [0, 6, 0, 4], [0, 6, 1, 1], [0, 7, 4, 4], [0, 7, 5, 1], [0, 8, 0, 1], [0, 8, 8, 4], [1, 0, 5, 4], [1, 0, 6, 1], [1, 1, 0, 4], [1, 1, 1, 1], [1, 2, 4, 4], [1, 2, 5, 1], [1, 3, 0, 1], [1, 3, 8, 4], [1, 4, 3, 4], [1, 4, 4, 1], [1, 5, 7, 4], [1, 5, 8, 1], [1, 6, 2, 4], [1, 6, 3, 1], [1, 7, 6, 4], [1, 7, 7, 1], [1, 8, 1, 4], [1, 8, 2, 1], [2, 0, 7, 4], [2, 0, 8, 1], [2, 1, 2, 4], [2, 1, 3, 1], [2, 2, 6, 4], [2, 2, 7, 1], [2, 3, 1, 4], [2, 3, 2, 1], [2, 4, 5, 4], [2, 4, 6, 1], [2, 5, 0, 4], [2, 5, 1, 1], [2, 6, 4, 4], [2, 6, 5, 1], [2, 7, 0, 1], [2, 7, 8, 4], [2, 8, 3, 4], [2, 8, 4, 1], [3, 0, 0, 4], [3, 0, 1, 1], [3, 1, 4, 4], [3, 1, 5, 1], [3, 2, 0, 1], [3, 2, 8, 4], [3, 3, 3, 4], [3, 3, 4, 1], [3, 4, 7, 4], [3, 4, 8, 1], [3, 5, 2, 4], [3, 5, 3, 1], [3, 6, 6, 4], [3, 6, 7, 1], [3, 7, 1, 4], [3, 7, 2, 1], [3, 8, 5, 4], [3, 8, 6, 1], [4, 0, 2, 4], [4, 0, 3, 1], [4, 1, 6, 4], [4, 1, 7, 1], [4, 2, 1, 4], [4, 2, 2, 1], [4, 3, 5, 4], [4, 3, 6, 1], [4, 4, 0, 4], [4, 4, 1, 1], [4, 5, 4, 4], [4, 5, 5, 1], [4, 6, 0, 1], [4, 6, 8, 4], [4, 7, 3, 4], [4, 7, 4, 1], [4, 8, 7, 4], [4, 8, 8, 1], [5, 0, 4, 4], [5, 0, 5, 1], [5, 1, 0, 1], [5, 1, 8, 4], [5, 2, 3, 4], [5, 2, 4, 1], [5, 3, 7, 4], [5, 3, 8, 1], [5, 4, 2, 4], [5, 4, 3, 1], [5, 5, 6, 4], [5, 5, 7, 1], [5, 6, 1, 4], [5, 6, 2, 1], [5, 7, 5, 4], [5, 7, 6, 1], [5, 8, 0, 4], [5, 8, 1, 1], [6, 0, 6, 4], [6, 0, 7, 1], [6, 1, 1, 4], [6, 1, 2, 1], [6, 2, 5, 4], [6, 2, 6, 1], [6, 3, 0, 4], [6, 3, 1, 1], [6, 4, 4, 4], [6, 4, 5, 1], [6, 5, 0, 1], [6, 5, 8, 4], [6, 6, 3, 4], [6, 6, 4, 1], [6, 7, 7, 4], [6, 7, 8, 1], [6, 8, 2, 4], [6, 8, 3, 1], [7, 0, 0, 1], [7, 0, 8, 4], [7, 1, 3, 4], [7, 1, 4, 1], [7, 2, 7, 4], [7, 2, 8, 1], [7, 3, 2, 4], [7, 3, 3, 1], [7, 4, 6, 4], [7, 4, 7, 1], [7, 5, 1, 4], [7, 5, 2, 1], [7, 6, 5, 4], [7, 6, 6, 1], [7, 7, 0, 4], [7, 7, 1, 1], [7, 8, 4, 4], [7, 8, 5, 1], [8, 0, 1, 4], [8, 0, 2, 1], [8, 1, 5, 4], [8, 1, 6, 1], [8, 2, 0, 4], [8, 2, 1, 1], [8, 3, 4, 4], [8, 3, 5, 1], [8, 4, 0, 1], [8, 4, 8, 4], [8, 5, 3, 4], [8, 5, 4, 1], [8, 6, 7, 4], [8, 6, 8, 1], [8, 7, 2, 4], [8, 7, 3, 1], [8, 8, 6, 4], [8, 8, 7, 1]]} +RLMATH_EOF diff --git a/tasks/optimize-fs-cycle-indep-c9-n4/tests/check.py b/tasks/optimize-fs-cycle-indep-c9-n4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..18467766f4b39df02d00aad7ae384bd83e857320 --- /dev/null +++ b/tasks/optimize-fs-cycle-indep-c9-n4/tests/check.py @@ -0,0 +1,38 @@ +"""Independent set in the strong product C_m^{⊠n}. Score = size. + +Two distinct vertices x, y of C_m^{⊠n} (n-tuples over Z_m) are adjacent iff x_i - y_i ∈ {-1, 0, 1} (mod m) +for every i. Check: mark the answer in a boolean table of size m^n and look up all 3^n - 1 neighbours of +every answer vertex (vectorised; 26244 vertices of C_9^7 take ~1 s). +""" +import itertools + +import numpy as np + +from run import Invalid, int_list + + +def check(inst, ans): + m, n = inst["m"], inst["n"] + vecs = ans.get("vertices") + # alpha(C_m^{⊠n}) <= (m/2)^n (fractional independence number is multiplicative under strong products), + # so longer lists are invalid; rejecting them early also bounds grading time + if not isinstance(vecs, list) or not vecs or 2 ** n * len(vecs) > m ** n: + raise Invalid(f"vertices must be a non-empty list of at most ({m}/2)^{n} tuples") + for v in vecs: + int_list(v, n, 0, m - 1, "vertex") + A = np.array(vecs, dtype=np.int64) + pw = m ** np.arange(n - 1, -1, -1, dtype=np.int64) + codes = A @ pw + if len(np.unique(codes)) != len(codes): + raise Invalid("duplicate vertices") + table = np.zeros(m ** n, bool) + table[codes] = True + for off in itertools.product((-1, 0, 1), repeat=n): + if not any(off): + continue + nb = ((A + np.array(off)) % m) @ pw + hit = table[nb] + if hit.any(): + k = int(np.nonzero(hit)[0][0]) + raise Invalid(f"vertices {vecs[k]} and {[(x + o) % m for x, o in zip(vecs[k], off)]} are adjacent") + return float(len(vecs)), {"size": len(vecs)} diff --git a/tasks/optimize-fs-cycle-indep-c9-n4/tests/instance.json b/tasks/optimize-fs-cycle-indep-c9-n4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a81094f3df9b0e04d29199296522a6c84c6e5d85 --- /dev/null +++ b/tasks/optimize-fs-cycle-indep-c9-n4/tests/instance.json @@ -0,0 +1 @@ +{"m": 9, "n": 4, "direction": "maximize", "best_known": 324, "baseline": 256, "family": "fs_cycle_independent_set", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-fs-cycle-indep-c9-n4/tests/run.py b/tasks/optimize-fs-cycle-indep-c9-n4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/optimize-fs-cycle-indep-c9-n4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/optimize-fs-cycle-indep-c9-n4/tests/test.sh b/tasks/optimize-fs-cycle-indep-c9-n4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/optimize-fs-cycle-indep-c9-n4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt