| {"task_id": "icgr-00965", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "2 0 2;4 4 1;2 0 2", "output": "3 3 3;3 4 3;3 3 3"}, {"input": "4 3 3;1 1 0;4 3 2", "output": "3 3 3;3 1 3;3 3 3"}, {"input": "1 3 2;1 1 3;3 0 2", "output": "3 3 3;3 1 3;3 3 3"}, {"input": "4 3 1;4 2 3;2 4 2", "output": "3 3 3;3 2 3;3 3 3"}], "query_input": "3 0 3;1 0 3;0 1 3", "query_output": "3 3 3;3 0 3;3 3 3"} |
| {"task_id": "icgr-00299", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "5 1 5;3 0 2;5 0 3;4 4 4", "output": "5 1 5;3 4 2;5 4 3;0 0 0"}, {"input": "3 0 1;0 1 5;1 3 5;1 3 4", "output": "3 4 1;4 1 5;1 3 5;1 3 0"}, {"input": "3 4 5;2 3 5;0 2 1;3 3 5", "output": "3 0 5;2 3 5;4 2 1;3 3 5"}], "query_input": "4 0 2;0 3 1;2 5 1;4 3 4", "query_output": "0 4 2;4 3 1;2 5 1;0 3 0"} |
| {"task_id": "icgr-00454", "rule": "flip_v+shift_rows", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "5 2 1;1 0 0;3 3 0;2 0 3", "output": "3 2 0;0 3 3;0 1 0;1 5 2"}, {"input": "1 1 3;1 3 4;2 2 5;0 0 3", "output": "3 0 0;5 2 2;4 1 3;3 1 1"}, {"input": "5 5 3;3 0 5;5 3 4;4 1 1", "output": "1 4 1;4 5 3;5 3 0;3 5 5"}], "query_input": "3 2 2;1 0 4;2 1 4;2 2 4", "query_output": "4 2 2;4 2 1;4 1 0;2 3 2"} |
| {"task_id": "icgr-00183", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "1 4 0;2 4 0;5 3 4", "output": "1 2 5;4 4 3;0 0 4"}, {"input": "2 1 1;0 4 1;3 1 4", "output": "2 0 3;1 4 1;1 1 4"}, {"input": "1 0 1;2 5 5;1 5 1", "output": "1 2 1;0 5 5;1 5 1"}, {"input": "1 2 2;0 5 2;3 2 0", "output": "1 0 3;2 5 2;2 2 0"}], "query_input": "5 5 3;1 0 3;4 4 2", "query_output": "5 1 4;5 0 4;3 3 2"} |
| {"task_id": "icgr-00890", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "0 3 0 4;2 2 3 1;1 3 2 2;1 0 2 3", "output": "4 4 4 4;4 2 3 4;4 3 2 4;4 4 4 4"}, {"input": "0 1 2 3;1 4 1 2;3 2 1 4;0 2 1 1", "output": "4 4 4 4;4 4 1 4;4 2 1 4;4 4 4 4"}], "query_input": "4 4 0 1;2 4 1 3;0 1 4 3;4 2 2 1", "query_output": "4 4 4 4;4 4 1 4;4 1 4 4;4 4 4 4"} |
| {"task_id": "icgr-00368", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "5 4 0 0 1;4 3 5 2 1;5 4 5 2 5;1 0 0 0 5;3 1 3 2 0", "output": "4 4 4 4 4;4 3 5 2 4;4 4 5 2 4;4 0 0 0 4;4 4 4 4 4"}, {"input": "0 1 5 3 2;4 0 0 5 1;4 5 5 3 3;2 2 5 3 3;5 0 5 1 3", "output": "4 4 4 4 4;4 0 0 5 4;4 5 5 3 4;4 2 5 3 4;4 4 4 4 4"}, {"input": "4 0 1 3 0;3 3 3 3 5;4 1 1 3 2;5 1 2 5 4;2 3 2 2 5", "output": "4 4 4 4 4;4 3 3 3 4;4 1 1 3 4;4 1 2 5 4;4 4 4 4 4"}], "query_input": "5 2 1 1 1;1 4 0 5 4;3 5 4 4 3;4 2 0 3 1;0 0 1 2 2", "query_output": "4 4 4 4 4;4 4 0 5 4;4 5 4 4 4;4 2 0 3 4;4 4 4 4 4"} |
| {"task_id": "icgr-00213", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "1 3 1 4 0;4 3 5 3 0;2 2 2 1 4", "output": "2 2 2 1 4;4 3 5 3 0;1 3 1 4 0"}, {"input": "3 5 3 2 3;3 3 0 5 3;1 4 1 4 0", "output": "1 4 1 4 0;3 3 0 5 3;3 5 3 2 3"}, {"input": "0 3 2 5 0;3 3 1 4 2;3 2 2 1 3", "output": "3 2 2 1 3;3 3 1 4 2;0 3 2 5 0"}, {"input": "5 5 0 2 2;2 0 2 2 4;3 4 1 0 4", "output": "3 4 1 0 4;2 0 2 2 4;5 5 0 2 2"}], "query_input": "3 3 3 4 3;3 5 3 0 0;2 1 1 1 0", "query_output": "2 1 1 1 0;3 5 3 0 0;3 3 3 4 3"} |
| {"task_id": "icgr-00628", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 6, "grid_w": 6, "num_support": 2, "support": [{"input": "3 2 3 2 2 3;3 0 2 2 1 2;2 0 1 3 1 0;0 1 2 0 2 3;1 1 1 0 2 3;2 2 1 1 1 2", "output": "3 3 3;2 3 3;2 1 3"}, {"input": "0 3 3 3 2 1;1 3 2 3 1 0;3 3 1 1 3 1;1 1 2 0 1 3;0 0 1 3 3 2;3 2 1 3 1 0", "output": "3 3 2;3 2 3;3 3 3"}], "query_input": "3 0 3 2 3 2;3 0 1 3 1 1;0 3 1 0 2 2;3 2 1 1 1 1;3 2 2 2 1 1;2 2 3 2 2 3", "query_output": "3 3 3;3 1 2;3 3 3"} |
| {"task_id": "icgr-00159", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "0 1 0 2;3 1 0 0;0 2 0 4;4 0 4 1", "output": "2 0 1 0;0 3 1 0;4 0 2 0;1 4 0 4"}, {"input": "0 0 4 2;1 4 4 4;4 3 0 4;2 1 0 1", "output": "2 0 0 4;4 1 4 4;4 4 3 0;1 2 1 0"}], "query_input": "4 0 0 3;1 3 1 3;4 0 0 2;0 2 0 3", "query_output": "3 4 0 0;3 1 3 1;2 4 0 0;3 0 2 0"} |
| {"task_id": "icgr-00168", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "1 3 3 3;3 3 0 2;4 4 5 1;4 3 3 5", "output": "1 3 3 3 1 3 3 3;3 3 0 2 3 3 0 2;4 4 5 1 4 4 5 1;4 3 3 5 4 3 3 5"}, {"input": "5 3 4 1;0 1 5 5;3 5 2 1;0 2 0 0", "output": "5 3 4 1 5 3 4 1;0 1 5 5 0 1 5 5;3 5 2 1 3 5 2 1;0 2 0 0 0 2 0 0"}], "query_input": "1 2 5 4;0 1 5 4;4 4 4 1;2 0 1 1", "query_output": "1 2 5 4 1 2 5 4;0 1 5 4 0 1 5 4;4 4 4 1 4 4 4 1;2 0 1 1 2 0 1 1"} |
| {"task_id": "icgr-00329", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "3 4 0;1 2 2;2 0 1;4 2 4;3 0 5", "output": "0 4 3;2 2 1;1 0 2;4 2 4;5 0 3"}, {"input": "4 2 3;3 2 3;1 2 2;2 5 4;5 2 2", "output": "3 2 4;3 2 3;2 2 1;4 5 2;2 2 5"}, {"input": "5 4 5;0 0 0;0 2 3;2 4 1;4 4 2", "output": "5 4 5;0 0 0;3 2 0;1 4 2;2 4 4"}], "query_input": "1 0 1;0 5 0;1 5 1;2 1 2;2 2 1", "query_output": "1 0 1;0 5 0;1 5 1;2 1 2;1 2 2"} |
| {"task_id": "icgr-00446", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "0 2 2 3 0;0 1 3 3 2;0 2 2 3 1", "output": "3 1 1 2 3;3 0 2 2 1;3 1 1 2 0"}, {"input": "1 0 2 2 2;1 3 3 0 0;3 3 2 1 1", "output": "0 3 1 1 1;0 2 2 3 3;2 2 1 0 0"}, {"input": "0 3 0 0 3;2 0 3 3 2;3 1 3 3 1", "output": "3 2 3 3 2;1 3 2 2 1;2 0 2 2 0"}], "query_input": "2 2 1 0 1;2 0 0 0 1;3 2 3 3 1", "query_output": "1 1 0 3 0;1 3 3 3 0;2 1 2 2 0"} |
| {"task_id": "icgr-00230", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "4 4 2 0 2;3 0 1 0 2;0 3 0 1 4", "output": "0 3 0 1 4;3 0 1 0 2;4 4 2 0 2"}, {"input": "2 1 2 4 1;4 4 0 1 0;4 3 0 2 4", "output": "4 3 0 2 4;4 4 0 1 0;2 1 2 4 1"}, {"input": "4 0 1 1 2;0 4 4 1 1;4 0 1 3 0", "output": "4 0 1 3 0;0 4 4 1 1;4 0 1 1 2"}, {"input": "0 4 1 1 0;2 2 1 2 2;3 1 2 0 0", "output": "3 1 2 0 0;2 2 1 2 2;0 4 1 1 0"}], "query_input": "3 2 3 4 2;3 3 4 2 2;1 2 4 3 0", "query_output": "1 2 4 3 0;3 3 4 2 2;3 2 3 4 2"} |
| {"task_id": "icgr-00238", "rule": "color_swap+flip_v", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "0 4 2 4 1;1 0 0 1 0;1 1 4 4 0", "output": "1 1 4 4 0;1 0 0 1 0;0 4 2 4 1"}, {"input": "1 0 3 3 2;4 3 1 4 2;3 3 4 1 2", "output": "3 3 4 1 2;4 3 1 4 2;1 0 3 3 2"}, {"input": "2 1 4 2 1;0 1 4 3 1;0 3 2 3 4", "output": "0 3 2 3 4;0 1 4 3 1;2 1 4 2 1"}, {"input": "4 1 0 1 0;0 0 1 1 0;4 0 3 3 2", "output": "4 0 3 3 2;0 0 1 1 0;4 1 0 1 0"}], "query_input": "1 0 1 0 3;2 1 2 2 4;3 2 1 1 0", "query_output": "3 2 1 1 0;2 1 2 2 4;1 0 1 0 3"} |
| {"task_id": "icgr-00493", "rule": "add_mod+shift_rows", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "3 4 2;0 2 4;5 2 0;1 1 4", "output": "3 4 5;5 1 3;1 0 3;5 2 2"}, {"input": "3 5 1;3 3 1;2 5 3;2 2 0", "output": "2 4 0;2 4 4;4 3 0;1 3 3"}], "query_input": "4 3 3;4 4 0;1 4 1;1 1 2", "query_output": "4 5 4;1 5 5;2 2 5;3 2 2"} |
| {"task_id": "icgr-00753", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 6, "grid_w": 6, "num_support": 4, "support": [{"input": "4 5 4 4 0 3;2 4 3 5 2 0;1 5 3 4 5 0;0 5 0 1 0 2;0 1 2 1 3 2;4 3 2 1 2 1", "output": "5 5 3;5 4 5;4 2 3"}, {"input": "1 0 5 1 1 4;0 5 0 3 2 4;2 0 0 0 4 5;5 0 2 4 0 1;1 0 2 2 2 0;5 1 5 5 3 2", "output": "5 5 4;5 4 5;5 5 3"}, {"input": "2 2 1 0 0 4;0 1 3 4 4 4;0 4 3 0 3 2;3 5 0 3 2 4;1 0 1 2 3 5;0 1 1 1 2 1", "output": "2 4 4;5 3 4;1 2 5"}, {"input": "1 1 1 5 3 0;2 5 4 1 4 5;4 1 2 2 0 4;2 2 1 3 3 2;0 0 3 4 3 2;4 2 0 1 3 3", "output": "5 5 5;4 3 4;4 4 3"}], "query_input": "1 0 0 5 2 3;5 5 4 4 0 4;2 4 1 1 0 0;1 1 5 3 3 4;4 1 0 2 5 3;2 1 2 1 3 3", "query_output": "5 5 4;4 5 4;4 2 5"} |
| {"task_id": "icgr-00129", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "2 0 1;1 0 3;3 2 3;1 3 0", "output": "3 0 1;1 0 2;2 3 2;1 2 0"}, {"input": "3 3 0;2 0 2;3 1 1;2 1 0", "output": "2 2 0;3 0 3;2 1 1;3 1 0"}], "query_input": "2 3 0;2 1 3;3 1 1;2 0 3", "query_output": "3 2 0;3 1 2;2 1 1;3 0 2"} |
| {"task_id": "icgr-00840", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "3 0 3 1;1 3 1 0;0 1 0 2;3 3 1 2;3 2 1 0", "output": "3 2 1 0;3 3 1 2;0 1 0 2;1 3 1 0;3 0 3 1"}, {"input": "3 1 2 3;0 1 2 1;2 3 1 2;0 0 3 3;0 3 3 0", "output": "0 3 3 0;0 0 3 3;2 3 1 2;0 1 2 1;3 1 2 3"}], "query_input": "1 1 1 3;2 3 3 2;0 3 1 2;3 0 3 0;3 1 3 2", "query_output": "3 1 3 2;3 0 3 0;0 3 1 2;2 3 3 2;1 1 1 3"} |
| {"task_id": "icgr-00924", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "0 2 1 1 2;1 0 2 0 2;1 3 0 0 2;2 1 1 3 1", "output": "0 2 1 1 2;1 0 2 0 2;1 3 0 0 2;2 1 1 3 1"}, {"input": "0 1 1 3 2;1 2 2 1 3;2 1 2 0 3;0 0 1 1 3", "output": "0 1 1 3 2;1 2 2 1 3;2 1 2 0 3;0 0 1 1 3"}, {"input": "1 2 0 1 0;2 3 2 2 0;3 3 0 0 1;1 2 2 3 0", "output": "1 2 0 1 0;2 3 2 2 0;3 3 0 0 1;1 2 2 3 0"}], "query_input": "0 1 0 2 1;1 1 2 3 0;2 1 3 2 3;1 3 2 2 0", "query_output": "0 1 0 2 1;1 1 2 3 0;2 1 3 2 3;1 3 2 2 0"} |
| {"task_id": "icgr-00334", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "2 5 2 3;1 2 3 2;2 4 2 3;1 3 1 5", "output": "2 0 2 3;1 2 3 2;2 4 2 3;1 3 1 0"}, {"input": "4 1 2 1;5 2 0 0;2 0 3 0;0 1 3 3", "output": "4 1 2 1;0 2 5 5;2 5 3 5;5 1 3 3"}, {"input": "2 1 0 3;0 1 0 2;1 1 2 4;3 4 5 4", "output": "2 1 5 3;5 1 5 2;1 1 2 4;3 4 0 4"}, {"input": "3 3 4 2;5 2 0 0;0 3 2 3;3 3 3 4", "output": "3 3 4 2;0 2 5 5;5 3 2 3;3 3 3 4"}], "query_input": "0 5 4 0;0 0 5 5;1 2 3 3;3 4 0 3", "query_output": "5 0 4 5;5 5 0 0;1 2 3 3;3 4 5 3"} |
| {"task_id": "icgr-00852", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "1 1 0 2;3 1 2 2;3 3 0 3;3 2 0 2;2 3 0 3", "output": "2 3 3 3 1;3 2 3 1 1;0 0 0 2 0;3 2 3 2 2"}, {"input": "0 0 1 3;2 3 3 0;0 2 1 0;3 3 2 2;2 1 0 1", "output": "2 3 0 2 0;1 3 2 3 0;0 2 1 3 1;1 2 0 0 3"}], "query_input": "1 0 2 2;1 2 2 0;3 3 3 3;2 1 1 3;2 1 2 0", "query_output": "2 2 3 1 1;1 1 3 2 0;2 1 3 2 2;0 3 3 0 2"} |
| {"task_id": "icgr-00901", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "3 0 1 4;0 2 2 2;1 4 2 4", "output": "3 0 1 4 3 0 1 4;0 2 2 2 0 2 2 2;1 4 2 4 1 4 2 4"}, {"input": "2 2 2 1;0 2 3 2;3 0 4 3", "output": "2 2 2 1 2 2 2 1;0 2 3 2 0 2 3 2;3 0 4 3 3 0 4 3"}, {"input": "0 4 3 1;4 2 2 0;4 1 1 3", "output": "0 4 3 1 0 4 3 1;4 2 2 0 4 2 2 0;4 1 1 3 4 1 1 3"}], "query_input": "3 0 3 2;3 3 3 0;1 3 1 1", "query_output": "3 0 3 2 3 0 3 2;3 3 3 0 3 3 3 0;1 3 1 1 1 3 1 1"} |
| {"task_id": "icgr-00988", "rule": "flip_h+shift_rows", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "1 2 5 1;5 0 3 1;4 3 3 2;0 1 0 0;0 0 1 5", "output": "1 1 5 2;5 1 3 0;4 2 3 3;0 0 0 1;0 5 1 0"}, {"input": "2 0 0 1;1 3 5 4;3 3 1 1;2 1 5 5;5 3 3 3", "output": "2 1 0 0;1 4 5 3;3 1 1 3;2 5 5 1;5 3 3 3"}], "query_input": "3 1 3 5;3 2 4 5;3 5 2 3;0 0 2 3;5 3 3 2", "query_output": "3 5 3 1;3 5 4 2;3 3 2 5;0 3 2 0;5 2 3 3"} |
| {"task_id": "icgr-00997", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "1 3 3;0 3 0;0 0 3", "output": "3 3 1;0 3 0;3 0 0"}, {"input": "2 3 2;2 0 3;0 0 0", "output": "2 3 2;3 0 2;0 0 0"}, {"input": "3 0 1;2 1 1;3 3 3", "output": "1 0 3;1 1 2;3 3 3"}, {"input": "3 0 2;1 3 2;0 1 2", "output": "2 0 3;2 3 1;2 1 0"}], "query_input": "2 2 1;2 1 2;0 1 2", "query_output": "1 2 2;2 1 2;2 1 0"} |
| {"task_id": "icgr-00980", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "4 2 5 4;3 3 4 4;2 5 5 0;4 2 5 3;2 3 4 4", "output": "0 0 0 0;0 3 4 0;0 5 5 0;0 2 5 0;0 0 0 0"}, {"input": "3 1 4 3;3 3 5 4;3 0 5 3;2 2 4 5;3 0 2 4", "output": "0 0 0 0;0 3 5 0;0 0 5 0;0 2 4 0;0 0 0 0"}, {"input": "2 4 5 5;2 0 5 0;0 2 0 3;3 2 0 2;3 5 4 1", "output": "0 0 0 0;0 0 5 0;0 2 0 0;0 2 0 0;0 0 0 0"}, {"input": "3 1 5 4;0 4 1 3;3 4 5 4;2 2 0 4;1 2 1 5", "output": "0 0 0 0;0 4 1 0;0 4 5 0;0 2 0 0;0 0 0 0"}], "query_input": "1 3 4 2;3 0 5 4;5 0 1 2;5 1 0 3;2 5 1 5", "query_output": "0 0 0 0;0 0 5 0;0 0 1 0;0 1 0 0;0 0 0 0"} |
| {"task_id": "icgr-00505", "rule": "border+shift_rows", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "0 1 4 1 5;0 4 4 1 0;4 0 5 4 0;0 5 3 3 3", "output": "3 3 3 3 3;3 3 4 4 1;3 3 0 5 4;3 3 3 3 3"}, {"input": "2 2 3 2 5;3 2 2 1 1;3 3 2 3 1;0 5 0 0 3", "output": "3 3 3 3 3;3 3 2 2 1;3 3 3 2 3;3 3 3 3 3"}, {"input": "2 4 2 5 4;2 0 2 0 0;5 4 1 4 3;0 1 4 3 1", "output": "3 3 3 3 3;3 3 0 2 0;3 3 4 1 4;3 3 3 3 3"}, {"input": "2 2 0 2 4;0 4 0 1 2;4 3 5 2 5;1 2 4 2 3", "output": "3 3 3 3 3;3 3 4 0 1;3 3 3 5 2;3 3 3 3 3"}], "query_input": "3 1 4 4 5;4 4 1 4 2;3 5 5 4 1;5 1 0 1 5", "query_output": "3 3 3 3 3;3 3 4 1 4;3 3 5 5 4;3 3 3 3 3"} |
| {"task_id": "icgr-00991", "rule": "color_swap+add_mod", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "3 2 2;2 1 2;3 3 2", "output": "0 1 1;1 2 1;0 0 1"}, {"input": "3 0 3;0 0 0;3 3 3", "output": "0 3 0;3 3 3;0 0 0"}, {"input": "2 3 0;1 2 1;3 1 2", "output": "1 0 3;2 1 2;0 2 1"}], "query_input": "2 0 3;1 3 3;1 2 2", "query_output": "1 3 0;2 0 0;2 1 1"} |
| {"task_id": "icgr-00875", "rule": "flip_v+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "1 1 2 0 2;3 3 3 0 2;2 3 1 3 1;2 1 3 1 3", "output": "0 3 1 3 1;0 1 3 1 3;1 1 1 2 0;3 3 0 2 0"}, {"input": "1 3 0 1 0;2 3 1 3 3;1 1 2 3 2;2 0 3 2 3", "output": "0 2 1 0 1;3 3 0 1 0;0 1 3 1 1;3 1 2 3 2"}, {"input": "0 3 3 2 2;1 0 1 2 1;1 3 0 0 2;1 2 3 1 0", "output": "3 0 1 3 2;3 1 2 2 0;3 2 3 0 3;2 1 1 0 0"}, {"input": "1 3 0 0 0;2 1 2 1 1;2 0 3 1 1;3 3 0 2 1", "output": "1 1 2 0 3;0 2 1 3 3;0 3 0 3 3;3 1 2 2 2"}], "query_input": "2 3 2 2 0;2 1 0 3 1;1 0 3 0 1;0 0 2 3 2", "query_output": "2 2 0 1 0;3 2 1 2 3;0 3 2 1 3;0 1 0 0 2"} |
| {"task_id": "icgr-00158", "rule": "flip_h+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "3 1 2 2;2 1 0 2;2 2 1 0;2 3 3 3;2 0 2 1", "output": "2 2 0 3;2 1 0 2;1 0 2 2;3 3 3 2;0 2 1 2"}, {"input": "3 0 3 0;3 2 2 0;1 1 0 1;3 0 1 2;0 2 0 0", "output": "1 3 1 3;1 2 2 3;0 1 0 0;2 0 1 3;1 1 2 1"}, {"input": "0 1 2 3;1 2 3 0;1 1 1 3;1 3 2 0;3 0 0 3", "output": "3 2 0 1;1 3 2 0;3 0 0 0;1 2 3 0;3 1 1 3"}], "query_input": "1 1 1 3;0 2 2 1;0 3 0 1;2 3 1 1;1 1 0 1", "query_output": "3 0 0 0;0 2 2 1;0 1 3 1;0 0 3 2;0 1 0 0"} |
| {"task_id": "icgr-00365", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "4 2 0 4 4;3 4 3 4 2;1 3 4 1 1", "output": "0 2 4 0 0;3 0 3 0 2;1 3 0 1 1"}, {"input": "0 0 1 0 4;1 0 4 1 4;4 0 2 1 2", "output": "4 4 1 4 0;1 4 0 1 0;0 4 2 1 2"}, {"input": "2 2 0 1 2;0 2 2 2 0;2 4 3 0 1", "output": "2 2 4 1 2;4 2 2 2 4;2 0 3 4 1"}, {"input": "3 0 3 0 1;1 3 2 1 3;4 1 0 3 1", "output": "3 4 3 4 1;1 3 2 1 3;0 1 4 3 1"}], "query_input": "4 4 1 1 2;0 4 2 0 3;3 0 0 2 1", "query_output": "0 0 1 1 2;4 0 2 4 3;3 4 4 2 1"} |
| {"task_id": "icgr-00638", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "3 3 0 0;3 0 3 1;2 3 0 0", "output": "0 0 3 3;1 3 0 3;0 0 3 2"}, {"input": "0 3 0 0;3 1 0 1;0 1 3 1", "output": "0 0 3 0;1 0 1 3;1 3 1 0"}, {"input": "3 1 1 3;2 2 3 0;0 1 0 3", "output": "3 1 1 3;0 3 2 2;3 0 1 0"}], "query_input": "2 3 2 1;2 0 1 1;3 2 0 3", "query_output": "1 2 3 2;1 1 0 2;3 0 2 3"} |
| {"task_id": "icgr-00721", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "1 2 4 2;0 2 1 2;0 4 0 1;1 4 0 2;1 1 3 1", "output": "1 2 3 2;0 2 1 2;0 3 0 1;1 3 0 2;1 1 4 1"}, {"input": "1 2 0 3;4 1 3 3;1 1 3 0;3 1 2 4;2 4 1 2", "output": "1 2 0 4;3 1 4 4;1 1 4 0;4 1 2 3;2 3 1 2"}, {"input": "1 4 0 4;4 4 4 4;1 0 0 4;3 0 1 2;1 1 1 4", "output": "1 3 0 3;3 3 3 3;1 0 0 3;4 0 1 2;1 1 1 3"}], "query_input": "0 3 0 0;0 2 3 4;1 4 4 2;1 1 3 0;1 1 0 4", "query_output": "0 4 0 0;0 2 4 3;1 3 3 2;1 1 4 0;1 1 0 3"} |
| {"task_id": "icgr-00274", "rule": "add_mod+color_swap", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "0 0 1;4 3 1;0 0 2;3 3 3", "output": "1 1 3;0 4 3;1 1 2;4 4 4"}, {"input": "0 1 3;3 0 2;4 1 3;2 0 3", "output": "1 3 4;4 1 2;0 3 4;2 1 4"}, {"input": "3 0 0;2 0 3;0 4 0;1 4 0", "output": "4 1 1;2 1 4;1 0 1;3 0 1"}, {"input": "1 0 2;3 0 4;4 2 3;4 4 2", "output": "3 1 2;4 1 0;0 2 4;0 0 2"}], "query_input": "2 1 4;1 1 0;2 1 0;2 0 3", "query_output": "2 3 0;3 3 1;2 3 1;2 1 4"} |
| {"task_id": "icgr-00502", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 6, "grid_w": 6, "num_support": 2, "support": [{"input": "2 0 5 2 4 0;2 1 3 2 3 5;5 5 3 4 0 2;2 4 2 5 3 2;0 2 4 0 2 4;4 5 1 1 0 0", "output": "2 5 5;5 5 3;5 4 4"}, {"input": "3 4 4 5 1 4;4 5 4 2 5 3;1 1 0 0 5 1;1 5 2 3 5 2;5 0 5 2 5 4;3 1 1 5 5 3", "output": "5 5 5;5 3 5;5 5 5"}], "query_input": "0 4 5 5 3 5;5 4 5 0 5 4;5 2 0 5 1 3;5 0 4 1 1 2;0 0 2 4 0 2;5 4 1 0 2 5", "query_output": "5 5 5;5 5 3;5 4 5"} |
| {"task_id": "icgr-00829", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "2 1 1 2 1;1 0 3 3 0;3 3 2 0 1;0 2 1 2 0;1 2 1 0 2", "output": "1 1 1 1 1;1 0 3 3 1;1 3 2 0 1;1 2 1 2 1;1 1 1 1 1"}, {"input": "0 3 2 2 3;1 1 2 3 3;1 3 0 3 0;2 2 3 3 1;2 0 0 2 1", "output": "1 1 1 1 1;1 1 2 3 1;1 3 0 3 1;1 2 3 3 1;1 1 1 1 1"}], "query_input": "2 2 2 1 1;3 3 3 2 3;1 1 1 3 1;3 2 3 3 3;2 0 3 3 2", "query_output": "1 1 1 1 1;1 3 3 2 1;1 1 1 3 1;1 2 3 3 1;1 1 1 1 1"} |
| {"task_id": "icgr-00769", "rule": "color_swap+add_mod", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "5 4 5 4 1;4 1 0 5 0;2 0 5 0 2", "output": "4 3 4 3 0;3 0 5 4 5;2 5 4 5 2"}, {"input": "3 2 2 1 1;3 1 2 3 2;0 1 3 4 1", "output": "1 2 2 0 0;1 0 2 1 2;5 0 1 3 0"}, {"input": "4 4 2 2 5;5 3 1 1 5;1 1 2 5 5", "output": "3 3 2 2 4;4 1 0 0 4;0 0 2 4 4"}], "query_input": "5 4 1 3 5;2 5 0 5 5;5 0 5 4 4", "query_output": "4 3 0 1 4;2 4 5 4 4;4 5 4 3 3"} |
| {"task_id": "icgr-00668", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "2 2 2 5;4 1 0 1;3 0 2 0", "output": "2 2 2 2;2 1 0 2;2 2 2 2"}, {"input": "0 0 1 1;4 0 0 4;5 1 0 5", "output": "2 2 2 2;2 0 0 2;2 2 2 2"}], "query_input": "4 2 1 0;2 3 2 4;3 1 3 1", "query_output": "2 2 2 2;2 3 2 2;2 2 2 2"} |
| {"task_id": "icgr-00586", "rule": "flip_v+flip_h", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "0 4 4 2 1;5 2 4 5 0;1 5 1 4 2", "output": "2 4 1 5 1;0 5 4 2 5;1 2 4 4 0"}, {"input": "0 4 0 4 4;0 5 5 5 1;0 4 5 5 4", "output": "4 5 5 4 0;1 5 5 5 0;4 4 0 4 0"}, {"input": "4 1 4 5 0;5 5 3 1 4;4 3 1 2 1", "output": "1 2 1 3 4;4 1 3 5 5;0 5 4 1 4"}, {"input": "3 2 2 2 5;5 5 4 5 4;4 0 2 2 3", "output": "3 2 2 0 4;4 5 4 5 5;5 2 2 2 3"}], "query_input": "2 3 3 2 5;2 0 0 1 0;4 1 4 4 5", "query_output": "5 4 4 1 4;0 1 0 0 2;5 2 3 3 2"} |
| {"task_id": "icgr-00797", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "1 1 3 0 1;1 2 3 0 3;3 1 1 3 3;1 2 0 1 1", "output": "1 0 3 1 1;3 0 3 2 1;3 3 1 1 3;1 1 0 2 1"}, {"input": "0 3 0 1 2;1 3 0 1 2;1 1 2 0 0;0 0 1 0 3", "output": "2 1 0 3 0;2 1 0 3 1;0 0 2 1 1;3 0 1 0 0"}, {"input": "2 2 2 0 2;0 3 2 2 1;1 1 2 1 3;3 1 3 0 1", "output": "2 0 2 2 2;1 2 2 3 0;3 1 2 1 1;1 0 3 1 3"}, {"input": "0 3 3 1 0;0 1 2 2 1;1 2 0 2 3;1 2 1 3 0", "output": "0 1 3 3 0;1 2 2 1 0;3 2 0 2 1;0 3 1 2 1"}], "query_input": "2 3 2 1 2;1 2 2 1 1;1 0 0 1 2;0 3 2 3 2", "query_output": "2 1 2 3 2;1 1 2 2 1;2 1 0 0 1;2 3 2 3 0"} |
| {"task_id": "icgr-00145", "rule": "border+flip_v", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "4 1 4;4 2 0;0 1 4", "output": "2 2 2;2 2 2;2 2 2"}, {"input": "2 1 2;0 0 3;4 1 0", "output": "2 2 2;2 0 2;2 2 2"}], "query_input": "4 2 1;0 1 4;3 4 2", "query_output": "2 2 2;2 1 2;2 2 2"} |
| {"task_id": "icgr-00187", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 4, "grid_w": 6, "num_support": 4, "support": [{"input": "2 1 2 3 3 1;2 1 3 1 0 0;2 0 0 0 1 0;1 3 1 1 1 1", "output": "2 3 3;3 1 1"}, {"input": "0 3 2 0 1 1;1 0 1 3 0 1;1 0 2 1 3 2;1 3 1 3 1 0", "output": "3 3 1;3 3 3"}, {"input": "1 3 2 3 3 1;2 0 0 1 3 1;3 0 1 1 3 2;2 2 1 2 3 3", "output": "3 3 3;3 2 3"}, {"input": "3 1 0 0 0 0;0 0 0 3 1 2;1 2 3 0 2 2;2 1 2 2 3 3", "output": "3 3 2;2 3 3"}], "query_input": "2 2 2 0 2 3;1 3 2 2 1 1;2 0 0 1 1 0;3 3 3 2 2 0", "query_output": "3 2 3;3 3 2"} |
| {"task_id": "icgr-00083", "rule": "color_swap+flip_h", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "0 2 0 2 4;1 0 4 4 2;2 2 3 4 3;0 2 4 0 1;1 1 2 0 3", "output": "4 1 0 1 0;1 4 4 0 2;3 4 3 1 1;2 0 4 1 0;3 0 1 2 2"}, {"input": "1 4 2 3 2;3 3 0 3 4;0 3 4 0 4;3 3 0 4 4;2 0 4 3 2", "output": "1 3 1 4 2;4 3 0 3 3;4 0 4 3 0;4 4 0 3 3;1 3 4 0 1"}], "query_input": "4 3 4 4 2;3 0 3 1 0;0 0 0 3 3;0 2 0 2 0;2 4 4 3 1", "query_output": "1 4 4 3 4;0 2 3 0 3;3 3 0 0 0;0 1 0 1 0;2 3 4 4 1"} |
| {"task_id": "icgr-00464", "rule": "flip_h+flip_v", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "3 0 0 2 0;0 1 3 2 1;3 0 3 0 0;2 0 1 1 3;1 1 2 2 2", "output": "2 2 2 1 1;3 1 1 0 2;0 0 3 0 3;1 2 3 1 0;0 2 0 0 3"}, {"input": "1 1 0 0 0;2 2 3 1 0;1 3 2 3 0;3 3 1 1 1;1 1 0 2 2", "output": "2 2 0 1 1;1 1 1 3 3;0 3 2 3 1;0 1 3 2 2;0 0 0 1 1"}, {"input": "1 1 0 3 1;3 1 2 0 1;3 3 2 2 1;0 3 3 1 3;3 3 1 2 3", "output": "3 2 1 3 3;3 1 3 3 0;1 2 2 3 3;1 0 2 1 3;1 3 0 1 1"}, {"input": "3 2 0 1 3;2 1 2 2 0;2 0 3 3 1;0 1 3 2 0;1 1 2 2 1", "output": "1 2 2 1 1;0 2 3 1 0;1 3 3 0 2;0 2 2 1 2;3 1 0 2 3"}], "query_input": "3 2 3 0 0;0 2 0 0 1;0 1 2 2 0;2 2 1 1 3;0 1 2 3 0", "query_output": "0 3 2 1 0;3 1 1 2 2;0 2 2 1 0;1 0 0 2 0;0 0 3 2 3"} |
| {"task_id": "icgr-00466", "rule": "color_swap+add_mod", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "5 4 0 3 5;1 5 3 1 3;2 5 5 3 4;1 2 5 3 2;1 4 4 5 2", "output": "3 4 5 2 3;0 3 2 0 2;1 3 3 2 4;0 1 3 2 1;0 4 4 3 1"}, {"input": "2 0 0 2 1;5 4 2 5 4;4 1 2 5 4;0 1 1 5 5;3 3 1 4 5", "output": "1 5 5 1 0;3 4 1 3 4;4 0 1 3 4;5 0 0 3 3;2 2 0 4 3"}, {"input": "2 1 4 1 4;3 0 0 4 3;5 4 4 3 4;3 4 2 1 3;3 3 3 0 5", "output": "1 0 4 0 4;2 5 5 4 2;3 4 4 2 4;2 4 1 0 2;2 2 2 5 3"}, {"input": "3 3 2 1 2;5 3 1 2 5;1 1 4 0 1;0 5 5 3 3;4 3 0 3 5", "output": "2 2 1 0 1;3 2 0 1 3;0 0 4 5 0;5 3 3 2 2;4 2 5 2 3"}], "query_input": "5 5 5 0 5;1 0 0 3 0;4 2 1 2 4;1 3 5 2 4;1 3 4 4 3", "query_output": "3 3 3 5 3;0 5 5 2 5;4 1 0 1 4;0 2 3 1 4;0 2 4 4 2"} |
| {"task_id": "icgr-00525", "rule": "border+add_mod", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "3 2 1;3 3 3;0 1 2", "output": "1 1 1;1 1 1;1 1 1"}, {"input": "1 3 0;3 3 2;2 2 1", "output": "1 1 1;1 1 1;1 1 1"}], "query_input": "1 0 3;2 2 0;1 1 0", "query_output": "1 1 1;1 0 1;1 1 1"} |
| {"task_id": "icgr-00243", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "3 1 1;0 3 3;1 3 5;4 0 3", "output": "1 5 5;4 1 1;5 1 3;2 4 1"}, {"input": "3 1 3;4 5 5;5 0 2;2 3 4", "output": "1 5 1;2 3 3;3 4 0;0 1 2"}, {"input": "5 1 4;4 5 5;2 1 2;5 1 0", "output": "3 5 2;2 3 3;0 5 0;3 5 4"}], "query_input": "4 2 3;4 3 0;2 2 0;5 2 1", "query_output": "2 0 1;2 1 4;0 0 4;3 0 5"} |
| {"task_id": "icgr-00474", "rule": "color_swap+border", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "3 1 0;3 2 0;3 3 1;1 3 2", "output": "2 2 2;2 2 2;2 3 2;2 2 2"}, {"input": "1 0 2;2 0 2;1 0 1;1 3 3", "output": "2 2 2;2 0 2;2 0 2;2 2 2"}, {"input": "3 0 3;3 3 1;1 0 0;1 2 3", "output": "2 2 2;2 3 2;2 0 2;2 2 2"}], "query_input": "3 1 0;2 3 1;0 3 1;0 0 1", "query_output": "2 2 2;2 3 2;2 3 2;2 2 2"} |
| {"task_id": "icgr-00849", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "0 5 1;3 1 2;4 1 3;2 3 2;0 4 5", "output": "0 5 4;3 4 2;1 4 3;2 3 2;0 1 5"}, {"input": "1 0 3;0 3 4;4 4 2;4 1 4;2 5 4", "output": "4 0 3;0 3 1;1 1 2;1 4 1;2 5 1"}, {"input": "4 0 3;1 1 3;1 1 1;3 5 2;1 4 2", "output": "1 0 3;4 4 3;4 4 4;3 5 2;4 1 2"}], "query_input": "5 0 1;5 5 4;0 5 4;1 1 0;4 1 0", "query_output": "5 0 4;5 5 1;0 5 1;4 4 0;1 4 0"} |
| {"task_id": "icgr-00272", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "4 2 0 2 2;0 1 5 0 4;1 3 5 3 5", "output": "4 1 0 1 1;0 2 5 0 4;2 3 5 3 5"}, {"input": "2 2 2 4 4;2 5 1 2 1;0 4 2 5 4", "output": "1 1 1 4 4;1 5 2 1 2;0 4 1 5 4"}], "query_input": "5 4 3 4 3;1 2 3 3 1;5 4 5 5 3", "query_output": "5 4 3 4 3;2 1 3 3 2;5 4 5 5 3"} |
| {"task_id": "icgr-00371", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "2 1 0 4 1;3 0 0 1 4;4 3 0 3 1", "output": "1 0 4 3 0;2 4 4 0 3;3 2 4 2 0"}, {"input": "0 2 3 1 3;4 1 4 2 4;0 4 1 1 3", "output": "4 1 2 0 2;3 0 3 1 3;4 3 0 0 2"}], "query_input": "4 2 3 0 4;0 3 0 1 4;2 0 4 0 1", "query_output": "3 1 2 4 3;4 2 4 0 3;1 4 3 4 0"} |
| {"task_id": "icgr-00795", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "0 1 1 0;1 2 3 5;5 1 1 4;3 3 3 3", "output": "0 1 1 0 0 1 1 0;1 2 3 5 1 2 3 5;5 1 1 4 5 1 1 4;3 3 3 3 3 3 3 3"}, {"input": "1 2 5 0;2 0 0 1;4 0 2 5;3 4 5 1", "output": "1 2 5 0 1 2 5 0;2 0 0 1 2 0 0 1;4 0 2 5 4 0 2 5;3 4 5 1 3 4 5 1"}, {"input": "4 3 5 2;2 5 3 0;2 0 2 5;3 3 3 3", "output": "4 3 5 2 4 3 5 2;2 5 3 0 2 5 3 0;2 0 2 5 2 0 2 5;3 3 3 3 3 3 3 3"}], "query_input": "1 4 2 0;5 1 1 0;3 5 1 2;3 2 0 4", "query_output": "1 4 2 0 1 4 2 0;5 1 1 0 5 1 1 0;3 5 1 2 3 5 1 2;3 2 0 4 3 2 0 4"} |
| {"task_id": "icgr-00306", "rule": "add_mod+shift_rows", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "0 4 2 4;1 4 0 2;0 4 4 0", "output": "4 1 2 1;2 4 3 1;1 2 2 1"}, {"input": "2 2 2 3;1 2 2 4;3 4 0 0", "output": "4 0 4 4;4 1 3 4;2 2 0 1"}, {"input": "4 2 4 0;1 2 0 0;3 0 4 4", "output": "1 2 1 4;2 2 3 4;1 1 0 2"}, {"input": "2 2 4 4;0 3 2 1;1 0 0 2", "output": "1 1 4 4;4 3 2 0;2 4 3 2"}], "query_input": "2 1 1 1;4 1 0 3;4 2 3 4", "query_output": "3 3 4 3;2 0 1 3;0 1 1 4"} |
| {"task_id": "icgr-00260", "rule": "flip_h+border", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "4 5 1;4 3 0;2 5 5;5 4 1", "output": "0 0 0;0 3 0;0 5 0;0 0 0"}, {"input": "4 5 0;0 5 4;0 0 0;3 0 0", "output": "0 0 0;0 5 0;0 0 0;0 0 0"}, {"input": "4 2 5;4 1 5;5 5 1;4 0 4", "output": "0 0 0;0 1 0;0 5 0;0 0 0"}], "query_input": "0 5 3;3 5 1;2 0 1;3 0 5", "query_output": "0 0 0;0 5 0;0 0 0;0 0 0"} |
| {"task_id": "icgr-00770", "rule": "flip_v+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "0 0 3 0;1 2 2 0;0 2 1 3", "output": "3 2 1 0;1 2 2 3;3 3 0 3"}, {"input": "3 1 3 1;2 2 2 1;3 1 3 3", "output": "0 1 0 0;2 2 2 1;0 1 0 1"}, {"input": "2 1 3 0;1 1 1 2;0 2 3 2", "output": "3 2 0 2;1 1 1 2;2 1 0 3"}, {"input": "1 2 1 2;1 3 0 2;1 2 2 3", "output": "1 2 2 0;1 0 3 2;1 2 1 2"}], "query_input": "3 0 2 3;1 3 0 3;1 3 1 3", "query_output": "1 0 1 0;1 0 3 0;0 3 2 0"} |
| {"task_id": "icgr-00027", "rule": "add_mod+flip_h", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "3 2 0 2 0;0 3 0 0 2;0 1 1 3 3", "output": "2 0 2 0 1;0 2 2 1 2;1 1 3 3 2"}, {"input": "3 1 2 1 2;2 3 2 0 2;1 1 2 1 0", "output": "0 3 0 3 1;0 2 0 1 0;2 3 0 3 3"}, {"input": "1 1 3 3 3;1 0 2 1 1;3 1 2 2 1", "output": "1 1 1 3 3;3 3 0 2 3;3 0 0 3 1"}, {"input": "1 0 1 0 2;3 2 2 1 3;1 0 0 0 3", "output": "0 2 3 2 3;1 3 0 0 1;1 2 2 2 3"}], "query_input": "0 3 2 2 0;0 2 0 0 3;1 1 0 1 3", "query_output": "2 0 0 1 2;1 2 2 0 2;1 3 2 3 3"} |
| {"task_id": "icgr-00303", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "4 3 0 2;2 4 2 3;3 0 2 3", "output": "0 2 4 3;2 3 2 4;2 3 3 0"}, {"input": "3 2 1 0;1 1 4 4;1 1 1 3", "output": "1 0 3 2;4 4 1 1;1 3 1 1"}], "query_input": "4 2 4 0;2 2 4 1;0 0 4 1", "query_output": "4 0 4 2;4 1 2 2;4 1 0 0"} |
| {"task_id": "icgr-00629", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "5 0 3;2 3 4;1 3 0;3 5 2", "output": "1 1 1;1 3 1;1 3 1;1 1 1"}, {"input": "5 1 0;2 3 5;2 0 1;1 0 2", "output": "1 1 1;1 3 1;1 0 1;1 1 1"}], "query_input": "1 1 0;2 3 0;2 2 1;4 4 1", "query_output": "1 1 1;1 3 1;1 2 1;1 1 1"} |
| {"task_id": "icgr-00207", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "1 4 1 3;4 2 2 0;5 4 4 3;1 5 0 1;5 0 3 5", "output": "1 4 5 1 5;4 2 4 5 0;1 2 4 0 3;3 0 3 1 5"}, {"input": "2 1 3 5;3 3 5 3;5 0 0 1;3 5 4 3;1 4 0 1", "output": "2 3 5 3 1;1 3 0 5 4;3 5 0 4 0;5 3 1 3 1"}, {"input": "3 1 3 5;0 0 5 0;3 5 3 3;0 5 0 0;3 3 5 1", "output": "3 0 3 0 3;1 0 5 5 3;3 5 3 0 5;5 0 3 0 1"}, {"input": "5 5 2 1;1 0 5 1;3 0 2 0;3 2 4 2;1 0 0 1", "output": "5 1 3 3 1;5 0 0 2 0;2 5 2 4 0;1 1 0 2 1"}], "query_input": "2 2 4 3;0 2 2 0;2 5 5 5;3 0 2 2;5 0 5 2", "query_output": "2 0 2 3 5;2 2 5 0 0;4 2 5 2 5;3 0 5 2 2"} |
| {"task_id": "icgr-00338", "rule": "flip_h+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "1 0 0 2 3;3 3 1 2 3;3 3 1 1 1;2 3 1 1 1", "output": "0 3 1 1 2;0 3 2 0 0;2 2 2 0 0;2 2 2 0 3"}, {"input": "3 3 0 0 1;0 0 0 1 0;0 1 1 3 2;2 0 2 1 3", "output": "2 1 1 0 0;1 2 1 1 1;3 0 2 2 1;0 2 3 1 3"}, {"input": "1 1 0 2 1;3 2 2 0 2;1 1 1 3 3;2 3 0 2 2", "output": "2 3 1 2 2;3 1 3 3 0;0 0 2 2 2;3 3 1 0 3"}], "query_input": "1 2 0 0 1;2 0 2 2 1;3 2 2 3 3;2 2 0 0 2", "query_output": "2 1 1 3 2;2 3 3 1 3;0 0 3 3 0;3 1 1 3 3"} |
| {"task_id": "icgr-00046", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "0 1 4;3 4 0;4 0 4;3 2 0", "output": "3 2 0;4 0 4;3 4 0;0 1 4"}, {"input": "4 3 4;4 2 4;2 1 0;0 4 3", "output": "0 4 3;2 1 0;4 2 4;4 3 4"}, {"input": "1 3 3;2 3 4;4 4 4;2 1 4", "output": "2 1 4;4 4 4;2 3 4;1 3 3"}, {"input": "4 1 1;3 3 4;4 3 3;1 2 4", "output": "1 2 4;4 3 3;3 3 4;4 1 1"}], "query_input": "2 4 4;2 3 0;4 0 4;2 1 0", "query_output": "2 1 0;4 0 4;2 3 0;2 4 4"} |
| {"task_id": "icgr-00053", "rule": "border+shift_rows", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "0 1 3;0 3 3;4 2 0;1 2 3", "output": "3 3 3;3 3 3;3 3 2;3 3 3"}, {"input": "2 4 0;4 3 2;3 4 3;2 1 0", "output": "3 3 3;3 3 3;3 3 4;3 3 3"}, {"input": "4 4 4;2 2 3;1 0 4;0 0 2", "output": "3 3 3;3 3 2;3 3 0;3 3 3"}], "query_input": "0 1 1;3 3 3;2 0 2;3 2 0", "query_output": "3 3 3;3 3 3;3 3 0;3 3 3"} |
| {"task_id": "icgr-00750", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "5 5 5 3;0 0 4 3;4 3 1 4;5 2 0 3", "output": "1 1 1 5;2 2 0 5;0 5 3 0;1 4 2 5"}, {"input": "5 3 2 1;3 4 2 0;5 2 1 0;0 2 5 5", "output": "1 5 4 3;5 0 4 2;1 4 3 2;2 4 1 1"}, {"input": "3 0 3 0;5 4 2 5;5 0 3 4;2 2 4 4", "output": "5 2 5 2;1 0 4 1;1 2 5 0;4 4 0 0"}], "query_input": "2 0 5 4;5 1 0 0;4 1 1 0;3 1 1 1", "query_output": "4 2 1 0;1 3 2 2;0 3 3 2;5 3 3 3"} |
| {"task_id": "icgr-00249", "rule": "color_swap+flip_v", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "2 1 4 3;0 0 2 4;3 1 4 0;0 1 3 3", "output": "0 1 4 4;4 1 3 0;0 0 2 3;2 1 3 4"}, {"input": "2 1 1 0;4 0 4 4;1 3 1 0;3 0 0 0", "output": "4 0 0 0;1 4 1 0;3 0 3 3;2 1 1 0"}, {"input": "2 0 3 4;1 0 4 4;1 0 0 2;1 3 0 0", "output": "1 4 0 0;1 0 0 2;1 0 3 3;2 0 4 3"}, {"input": "2 3 3 0;0 1 0 3;3 4 2 1;2 3 2 1", "output": "2 4 2 1;4 3 2 1;0 1 0 4;2 4 4 0"}], "query_input": "1 0 1 0;1 4 0 1;3 1 1 1;3 4 0 0", "query_output": "4 3 0 0;4 1 1 1;1 3 0 1;1 0 1 0"} |
| {"task_id": "icgr-00178", "rule": "color_swap+flip_h", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "2 1 2 2;1 2 2 3;3 3 1 1;3 0 2 2", "output": "3 3 1 3;2 3 3 1;1 1 2 2;3 3 0 2"}, {"input": "3 2 3 0;1 0 0 0;0 3 2 3;0 3 3 1", "output": "0 2 3 2;0 0 0 1;2 3 2 0;1 2 2 0"}, {"input": "3 2 3 0;2 3 1 3;3 3 1 2;2 0 3 1", "output": "0 2 3 2;2 1 2 3;3 1 2 2;1 2 0 3"}, {"input": "3 1 3 3;1 0 3 0;3 1 2 2;3 0 1 1", "output": "2 2 1 2;0 2 0 1;3 3 1 2;1 1 0 2"}], "query_input": "1 1 3 2;1 3 1 2;0 1 3 0;1 0 0 0", "query_output": "3 2 1 1;3 1 2 1;0 2 1 0;0 0 0 1"} |
| {"task_id": "icgr-00825", "rule": "flip_v+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "0 1 2 3;0 0 2 2;2 3 0 0", "output": "0 3 2 2;2 2 0 0;2 1 0 3"}, {"input": "3 3 1 1;2 2 1 3;0 2 2 1", "output": "2 0 0 1;0 0 1 3;3 3 1 1"}, {"input": "3 2 1 1;0 2 0 3;0 3 1 1", "output": "2 3 1 1;2 0 2 3;3 0 1 1"}], "query_input": "1 1 1 2;1 2 0 0;2 1 0 0", "query_output": "0 1 2 2;1 0 2 2;1 1 1 0"} |
| {"task_id": "icgr-00203", "rule": "color_swap+flip_h", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "3 3 3 0;0 0 3 1;0 2 1 2;2 2 0 2", "output": "0 3 3 3;1 3 0 0;2 1 2 0;2 0 2 2"}, {"input": "2 1 3 1;1 0 1 1;2 3 2 2;0 1 2 0", "output": "1 3 1 2;1 1 0 1;2 2 3 2;0 2 1 0"}], "query_input": "3 0 3 3;3 0 3 2;3 0 2 2;0 1 3 2", "query_output": "3 3 0 3;2 3 0 3;2 2 0 3;2 3 1 0"} |
| {"task_id": "icgr-00787", "rule": "shift_rows+flip_h", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "2 3 2 4;3 3 1 0;0 2 5 2;5 4 4 3;5 1 0 1", "output": "2 3 2 4;1 3 3 0;5 2 0 2;4 4 5 3;0 1 5 1"}, {"input": "1 3 3 1;5 5 0 3;3 1 1 4;1 3 0 3;4 0 5 4", "output": "3 3 1 1;0 5 5 3;1 1 3 4;0 3 1 3;5 0 4 4"}, {"input": "5 1 4 2;2 4 3 2;4 2 3 0;1 3 5 3;1 5 4 1", "output": "4 1 5 2;3 4 2 2;3 2 4 0;5 3 1 3;4 5 1 1"}], "query_input": "0 4 0 4;1 5 3 4;5 4 4 1;4 2 3 0;5 3 2 0", "query_output": "0 4 0 4;3 5 1 4;4 4 5 1;3 2 4 0;2 3 5 0"} |
| {"task_id": "icgr-00673", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "1 5 1;2 2 0;2 5 0", "output": "1 5 1 1 5 1;2 2 0 2 2 0;2 5 0 2 5 0"}, {"input": "4 3 3;3 0 2;4 0 5", "output": "4 3 3 4 3 3;3 0 2 3 0 2;4 0 5 4 0 5"}], "query_input": "4 1 0;0 4 5;5 3 3", "query_output": "4 1 0 4 1 0;0 4 5 0 4 5;5 3 3 5 3 3"} |
| {"task_id": "icgr-00542", "rule": "shift_rows+color_swap", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "3 3 1 4 4;4 0 2 0 2;0 1 3 4 3;1 4 4 3 0", "output": "3 3 4 4 1;0 2 3 0 2;3 4 0 1 4;4 0 1 3 3"}, {"input": "0 0 1 4 4;0 0 4 3 2;4 2 3 0 1;3 4 0 4 0", "output": "3 3 0 0 1;4 2 0 0 3;0 1 3 2 4;3 0 4 3 0"}], "query_input": "1 4 2 2 2;1 3 2 2 0;3 4 0 2 1;3 1 2 0 0", "query_output": "2 2 1 3 2;2 0 1 4 2;2 1 4 3 0;0 0 4 1 2"} |
| {"task_id": "icgr-00756", "rule": "add_mod+border", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "2 3 0 1;2 2 3 0;0 2 2 0;1 1 1 1;2 3 3 1", "output": "3 3 3 3;3 1 2 3;3 1 1 3;3 0 0 3;3 3 3 3"}, {"input": "0 2 1 3;1 1 1 3;0 2 0 2;2 2 3 2;1 0 0 3", "output": "3 3 3 3;3 0 0 3;3 1 3 3;3 1 2 3;3 3 3 3"}], "query_input": "0 0 0 2;2 1 3 0;1 2 0 0;3 3 1 3;3 3 1 3", "query_output": "3 3 3 3;3 0 2 3;3 1 3 3;3 2 0 3;3 3 3 3"} |
| {"task_id": "icgr-00859", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 5, "grid_h": 6, "grid_w": 6, "num_support": 4, "support": [{"input": "0 2 0 0 2 0;4 1 4 3 3 4;3 3 2 4 2 0;0 4 4 0 2 2;2 0 0 1 3 4;3 0 3 2 0 0", "output": "4 4 4;4 4 2;3 3 4"}, {"input": "3 4 3 3 0 0;4 2 4 3 1 1;2 2 1 2 3 0;2 2 3 2 2 0;3 4 4 0 4 1;2 0 2 4 1 3", "output": "4 4 1;2 3 3;4 4 4"}, {"input": "0 4 1 3 1 2;2 2 0 2 2 2;2 1 4 3 4 0;4 0 4 3 4 2;0 1 0 3 1 2;0 2 3 2 3 4", "output": "4 3 2;4 4 4;2 3 4"}, {"input": "3 1 1 0 1 2;4 3 2 0 3 0;1 0 3 4 1 2;4 1 1 0 1 0;2 0 0 4 4 1;3 3 2 0 3 2", "output": "4 2 3;4 4 2;3 4 4"}], "query_input": "3 4 0 0 0 0;2 1 2 3 0 1;2 3 0 0 2 1;0 2 3 3 3 0;4 3 0 4 1 3;4 2 1 1 4 3", "query_output": "4 3 1;3 3 3;4 4 4"} |
| {"task_id": "icgr-00748", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "2 5 3;5 3 4;5 4 5;1 1 3", "output": "2 5 5 1;5 3 4 1;3 4 5 3"}, {"input": "5 3 5;1 5 1;1 5 0;2 3 4", "output": "5 1 1 2;3 5 5 3;5 1 0 4"}, {"input": "4 5 4;4 2 2;5 5 2;2 0 2", "output": "4 4 5 2;5 2 5 0;4 2 2 2"}, {"input": "4 4 3;3 2 5;3 3 5;5 5 1", "output": "4 3 3 5;4 2 3 5;3 5 5 1"}], "query_input": "4 3 1;5 4 4;0 1 1;5 5 1", "query_output": "4 5 0 5;3 4 1 5;1 4 1 1"} |
| {"task_id": "icgr-00126", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "5 4 4 3 2;2 5 0 3 4;2 2 0 5 0", "output": "2 2 5;2 5 4;0 0 4;5 3 3;0 4 2"}, {"input": "2 3 1 5 4;3 2 1 0 3;5 2 3 3 2", "output": "5 3 2;2 2 3;3 1 1;3 0 5;2 3 4"}], "query_input": "0 4 2 0 5;0 4 4 4 3;2 1 5 0 5", "query_output": "2 0 0;1 4 4;5 4 2;0 4 0;5 3 5"} |
| {"task_id": "icgr-00494", "rule": "color_swap+border", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "2 5 3 2;2 0 5 1;5 4 1 5", "output": "4 4 4 4;4 0 2 4;4 4 4 4"}, {"input": "5 4 1 2;4 1 4 1;4 0 1 5", "output": "4 4 4 4;4 1 4 4;4 4 4 4"}, {"input": "2 2 2 2;4 4 0 3;5 3 3 0", "output": "4 4 4 4;4 4 0 4;4 4 4 4"}, {"input": "0 0 3 1;4 0 5 2;1 4 4 5", "output": "4 4 4 4;4 0 2 4;4 4 4 4"}], "query_input": "0 1 3 1;3 0 4 0;3 2 1 1", "query_output": "4 4 4 4;4 0 4 4;4 4 4 4"} |
| {"task_id": "icgr-00820", "rule": "shift_rows+border", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "4 3 2;0 4 1;1 2 1;2 2 4", "output": "4 4 4;4 1 4;4 1 4;4 4 4"}, {"input": "3 4 0;0 2 3;2 0 1;3 1 4", "output": "4 4 4;4 3 4;4 1 4;4 4 4"}], "query_input": "4 1 3;4 0 4;0 0 2;0 2 0", "query_output": "4 4 4;4 4 4;4 2 4;4 4 4"} |
| {"task_id": "icgr-00968", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "3 2 0;2 0 3;1 3 0", "output": "2 0 3;0 3 2;3 0 1"}, {"input": "2 2 3;1 2 2;3 0 2", "output": "2 3 2;2 2 1;0 2 3"}, {"input": "1 3 0;2 1 1;2 1 2", "output": "3 0 1;1 1 2;1 2 2"}, {"input": "1 1 2;2 0 3;2 0 1", "output": "1 2 1;0 3 2;0 1 2"}], "query_input": "1 2 1;3 2 0;3 2 2", "query_output": "2 1 1;2 0 3;2 2 3"} |
| {"task_id": "icgr-00842", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "2 3 3 0;1 0 0 1;0 3 2 2;3 0 2 1;2 1 2 1", "output": "2 2 2 2;2 0 0 2;2 3 2 2;2 0 2 2;2 2 2 2"}, {"input": "2 2 2 2;1 2 1 1;2 1 3 0;0 0 2 2;3 2 2 0", "output": "2 2 2 2;2 2 1 2;2 1 3 2;2 0 2 2;2 2 2 2"}, {"input": "1 1 3 1;1 0 3 0;0 3 0 3;1 3 3 2;2 2 0 2", "output": "2 2 2 2;2 0 3 2;2 3 0 2;2 3 3 2;2 2 2 2"}, {"input": "2 3 1 0;0 0 3 0;1 3 1 3;0 3 3 2;0 0 3 2", "output": "2 2 2 2;2 0 3 2;2 3 1 2;2 3 3 2;2 2 2 2"}], "query_input": "0 0 0 1;3 0 0 1;0 2 1 0;1 0 0 3;1 2 1 3", "query_output": "2 2 2 2;2 0 0 2;2 2 1 2;2 0 0 2;2 2 2 2"} |
| {"task_id": "icgr-00144", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "1 1 0;0 0 0;3 1 1;1 3 0", "output": "0 0 0;0 0 0;0 1 0;0 0 0"}, {"input": "0 2 1;3 0 2;2 3 1;1 1 2", "output": "0 0 0;0 0 0;0 3 0;0 0 0"}], "query_input": "2 1 1;2 3 0;1 0 2;1 2 2", "query_output": "0 0 0;0 3 0;0 0 0;0 0 0"} |
| {"task_id": "icgr-00801", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "3 1 3;2 0 1;2 2 0;2 1 0", "output": "3 3 1;1 2 0;0 2 2;0 2 1"}, {"input": "0 2 1;3 3 2;1 0 1;3 1 2", "output": "1 0 2;2 3 3;1 1 0;2 3 1"}], "query_input": "3 1 1;1 1 2;0 1 0;3 2 0", "query_output": "1 3 1;2 1 1;0 0 1;0 3 2"} |
| {"task_id": "icgr-00625", "rule": "border+flip_h", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "3 4 0 4;5 3 2 0;2 4 2 1", "output": "4 4 4 4;4 2 3 4;4 4 4 4"}, {"input": "5 2 2 1;3 4 4 1;4 1 1 2", "output": "4 4 4 4;4 4 4 4;4 4 4 4"}, {"input": "5 0 3 3;4 1 2 4;2 3 0 4", "output": "4 4 4 4;4 2 1 4;4 4 4 4"}], "query_input": "5 1 4 4;4 1 0 3;5 3 2 3", "query_output": "4 4 4 4;4 0 1 4;4 4 4 4"} |
| {"task_id": "icgr-00164", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "2 1 2 4;3 1 5 4;0 5 5 1", "output": "0 3 2;5 1 1;5 5 2;1 4 4"}, {"input": "1 3 2 2;5 5 4 0;1 4 1 1", "output": "1 5 1;4 5 3;1 4 2;1 0 2"}, {"input": "0 1 5 3;0 1 1 5;2 3 3 0", "output": "2 0 0;3 1 1;3 1 5;0 5 3"}, {"input": "1 0 5 1;3 2 5 4;3 0 4 1", "output": "3 3 1;0 2 0;4 5 5;1 4 1"}], "query_input": "5 4 2 0;1 0 3 3;3 1 2 2", "query_output": "3 1 5;1 0 4;2 3 2;2 3 0"} |
| {"task_id": "icgr-00360", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "1 4 0 0 2;3 3 1 1 2;2 4 2 1 2;1 0 4 4 4", "output": "1 4 0 0 2 1 4 0 0 2;3 3 1 1 2 3 3 1 1 2;2 4 2 1 2 2 4 2 1 2;1 0 4 4 4 1 0 4 4 4"}, {"input": "4 4 2 1 0;2 0 3 0 0;1 1 1 3 3;3 1 4 2 3", "output": "4 4 2 1 0 4 4 2 1 0;2 0 3 0 0 2 0 3 0 0;1 1 1 3 3 1 1 1 3 3;3 1 4 2 3 3 1 4 2 3"}, {"input": "1 1 1 0 2;2 1 2 1 0;4 4 4 2 3;4 1 4 4 4", "output": "1 1 1 0 2 1 1 1 0 2;2 1 2 1 0 2 1 2 1 0;4 4 4 2 3 4 4 4 2 3;4 1 4 4 4 4 1 4 4 4"}], "query_input": "4 2 2 3 2;4 0 0 2 1;4 1 4 3 0;3 2 2 1 1", "query_output": "4 2 2 3 2 4 2 2 3 2;4 0 0 2 1 4 0 0 2 1;4 1 4 3 0 4 1 4 3 0;3 2 2 1 1 3 2 2 1 1"} |
| {"task_id": "icgr-00553", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "1 4 0 0;5 3 2 1;5 3 3 3;5 3 4 2;2 0 0 5", "output": "2 0 0 5;5 3 4 2;5 3 3 3;5 3 2 1;1 4 0 0"}, {"input": "3 2 0 5;0 4 2 0;5 4 0 1;1 3 4 3;5 1 5 0", "output": "5 1 5 0;1 3 4 3;5 4 0 1;0 4 2 0;3 2 0 5"}, {"input": "3 1 2 5;0 4 3 1;3 1 0 3;0 1 1 5;1 0 5 2", "output": "1 0 5 2;0 1 1 5;3 1 0 3;0 4 3 1;3 1 2 5"}], "query_input": "2 1 0 5;2 2 1 5;0 1 5 1;3 0 2 4;4 2 3 4", "query_output": "4 2 3 4;3 0 2 4;0 1 5 1;2 2 1 5;2 1 0 5"} |
| {"task_id": "icgr-00858", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "0 2 2 3 1;3 2 4 0 4;3 1 4 2 2", "output": "0 3 3;2 2 1;2 4 4;3 0 2;1 4 2"}, {"input": "2 1 0 3 1;0 0 2 1 4;3 3 4 0 3", "output": "2 0 3;1 0 3;0 2 4;3 1 0;1 4 3"}], "query_input": "1 3 1 1 3;1 4 4 1 2;4 2 3 0 2", "query_output": "1 1 4;3 4 2;1 4 3;1 1 0;3 2 2"} |
| {"task_id": "icgr-00663", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "1 3 3 3;1 2 0 3;1 0 2 0;2 2 0 0;4 4 1 0", "output": "1 1 1 1;1 2 0 1;1 0 2 1;1 2 0 1;1 1 1 1"}, {"input": "1 2 0 1;2 1 1 2;3 0 4 0;4 0 0 4;3 2 2 1", "output": "1 1 1 1;1 1 1 1;1 0 4 1;1 0 0 1;1 1 1 1"}, {"input": "1 0 1 1;3 2 1 0;3 2 3 4;3 3 1 0;2 3 2 3", "output": "1 1 1 1;1 2 1 1;1 2 3 1;1 3 1 1;1 1 1 1"}], "query_input": "1 3 0 1;2 3 2 4;1 1 1 3;0 4 2 3;4 3 3 3", "query_output": "1 1 1 1;1 3 2 1;1 1 1 1;1 4 2 1;1 1 1 1"} |
| {"task_id": "icgr-00210", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "4 1 1 0 2;3 4 3 0 2;3 3 2 2 2;2 2 4 4 0;3 2 3 3 4", "output": "3 3 3 3 3;3 4 3 0 3;3 3 2 2 3;3 2 4 4 3;3 3 3 3 3"}, {"input": "1 0 1 0 1;2 0 3 0 3;1 2 4 4 0;2 0 1 1 2;4 1 1 3 0", "output": "3 3 3 3 3;3 0 3 0 3;3 2 4 4 3;3 0 1 1 3;3 3 3 3 3"}, {"input": "3 2 4 2 2;2 4 2 3 3;0 1 3 4 4;2 4 2 3 3;3 1 4 4 4", "output": "3 3 3 3 3;3 4 2 3 3;3 1 3 4 3;3 4 2 3 3;3 3 3 3 3"}], "query_input": "2 2 3 0 3;2 0 2 0 1;0 4 4 1 0;0 0 0 2 2;4 2 0 2 1", "query_output": "3 3 3 3 3;3 0 2 0 3;3 4 4 1 3;3 0 0 2 3;3 3 3 3 3"} |
| {"task_id": "icgr-00420", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "1 1 3 0;2 3 3 3;0 1 2 0;2 1 3 3", "output": "3 3;2 3"}, {"input": "3 3 1 3;1 3 3 2;1 1 0 2;0 1 1 3", "output": "3 3;1 3"}, {"input": "3 0 0 3;3 0 0 2;0 1 0 0;0 2 2 0", "output": "3 3;2 2"}, {"input": "1 3 1 0;3 2 1 0;3 2 3 3;1 2 1 3", "output": "3 1;3 3"}], "query_input": "2 3 1 1;3 2 2 1;0 0 1 0;3 3 3 2", "query_output": "3 2;3 3"} |
| {"task_id": "icgr-00661", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "3 0 2;0 3 2;0 2 1;2 2 1;1 1 2", "output": "1 1 2;2 2 1;0 2 1;0 3 2;3 0 2"}, {"input": "1 0 3;0 2 0;2 1 0;3 0 0;0 1 3", "output": "0 1 3;3 0 0;2 1 0;0 2 0;1 0 3"}], "query_input": "0 3 1;3 1 0;2 3 3;3 0 2;1 1 2", "query_output": "1 1 2;3 0 2;2 3 3;3 1 0;0 3 1"} |
| {"task_id": "icgr-00959", "rule": "color_swap+flip_h", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "2 0 3 4;1 1 2 0;3 0 1 1;1 3 2 2", "output": "4 1 0 2;0 2 3 3;3 3 0 1;2 2 1 3"}, {"input": "0 4 3 0;4 0 4 3;4 0 5 4;3 2 3 0", "output": "0 1 4 0;1 4 0 4;4 5 0 4;0 1 2 1"}, {"input": "3 5 2 3;0 2 4 0;4 4 3 4;1 3 4 5", "output": "1 2 5 1;0 4 2 0;4 1 4 4;5 4 1 3"}], "query_input": "3 1 3 2;0 1 1 4;2 0 5 2;0 2 0 1", "query_output": "2 1 3 1;4 3 3 0;2 5 0 2;3 0 2 0"} |
| {"task_id": "icgr-00087", "rule": "flip_v+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "0 3 2;4 4 2;1 3 4;3 4 1", "output": "3 4 0;0 3 4;4 4 2;1 3 2"}, {"input": "1 0 0;0 1 3;1 3 0;1 2 1", "output": "0 2 0;0 3 1;1 0 3;0 1 1"}], "query_input": "3 4 4;1 3 0;1 4 0;2 4 0", "query_output": "2 4 1;0 4 1;0 3 1;3 4 4"} |
| {"task_id": "icgr-00816", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "1 0 2 1;0 2 0 0;3 2 1 3;3 3 3 2;3 2 4 1", "output": "1 0 2 1 1 0 2 1;0 2 0 0 0 2 0 0;3 2 1 3 3 2 1 3;3 3 3 2 3 3 3 2;3 2 4 1 3 2 4 1"}, {"input": "0 0 4 1;3 3 1 0;0 2 3 1;2 3 4 3;4 2 3 1", "output": "0 0 4 1 0 0 4 1;3 3 1 0 3 3 1 0;0 2 3 1 0 2 3 1;2 3 4 3 2 3 4 3;4 2 3 1 4 2 3 1"}, {"input": "0 1 4 3;3 2 1 1;3 3 4 0;3 4 4 4;1 1 1 4", "output": "0 1 4 3 0 1 4 3;3 2 1 1 3 2 1 1;3 3 4 0 3 3 4 0;3 4 4 4 3 4 4 4;1 1 1 4 1 1 1 4"}], "query_input": "1 0 4 0;0 3 1 0;0 3 1 4;1 4 3 2;1 2 2 2", "query_output": "1 0 4 0 1 0 4 0;0 3 1 0 0 3 1 0;0 3 1 4 0 3 1 4;1 4 3 2 1 4 3 2;1 2 2 2 1 2 2 2"} |
| {"task_id": "icgr-00564", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "2 4 0;5 4 5;2 4 5;1 0 3;3 5 3", "output": "0 4 2;5 4 5;5 4 2;3 0 1;3 5 3"}, {"input": "3 4 3;4 5 5;3 3 3;4 0 5;1 0 5", "output": "3 4 3;5 5 4;3 3 3;5 0 4;5 0 1"}, {"input": "1 1 4;3 1 3;5 0 0;3 5 3;5 4 3", "output": "4 1 1;3 1 3;0 0 5;3 5 3;3 4 5"}], "query_input": "2 0 1;5 1 4;5 4 0;3 5 0;2 2 1", "query_output": "1 0 2;4 1 5;0 4 5;0 5 3;1 2 2"} |
| {"task_id": "icgr-00998", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "0 3 0 1 2;5 4 1 4 5;5 4 4 2 4", "output": "2 1 0 3 0;5 4 1 4 5;4 2 4 4 5"}, {"input": "5 2 1 5 5;5 2 1 3 0;5 3 0 4 3", "output": "5 5 1 2 5;0 3 1 2 5;3 4 0 3 5"}], "query_input": "4 3 0 3 4;5 0 3 1 0;4 5 3 0 4", "query_output": "4 3 0 3 4;0 1 3 0 5;4 0 3 5 4"} |
| {"task_id": "icgr-00823", "rule": "shift_rows+flip_h", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "2 3 0;3 2 1;1 1 1", "output": "3 2 0;2 3 1;1 1 1"}, {"input": "0 3 3;2 2 2;2 1 3", "output": "3 0 3;2 2 2;1 2 3"}, {"input": "0 3 1;3 2 0;2 1 2", "output": "3 0 1;2 3 0;1 2 2"}], "query_input": "2 3 0;3 2 0;1 2 0", "query_output": "3 2 0;2 3 0;2 1 0"} |
| {"task_id": "icgr-00467", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "3 0 3 0;1 0 3 3;2 1 3 3;2 3 2 0;2 3 2 0", "output": "0 3 0 3;3 1 0 3;3 2 1 3;0 2 3 2;0 2 3 2"}, {"input": "3 0 0 2;0 3 2 2;3 3 3 2;1 1 1 3;0 1 0 1", "output": "2 3 0 0;2 0 3 2;2 3 3 3;3 1 1 1;1 0 1 0"}, {"input": "2 3 3 1;0 1 3 3;0 1 2 1;3 3 1 1;2 1 3 2", "output": "1 2 3 3;3 0 1 3;1 0 1 2;1 3 3 1;2 2 1 3"}], "query_input": "3 2 1 2;0 1 0 2;1 1 0 1;1 0 3 1;2 3 2 1", "query_output": "2 3 2 1;2 0 1 0;1 1 1 0;1 1 0 3;1 2 3 2"} |
| {"task_id": "icgr-00675", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "2 3 2 1;0 3 3 2;3 3 1 1;2 4 3 3", "output": "2 3 2 1 2 3 2 1;0 3 3 2 0 3 3 2;3 3 1 1 3 3 1 1;2 4 3 3 2 4 3 3"}, {"input": "2 3 0 0;3 1 2 1;3 3 1 1;2 0 3 2", "output": "2 3 0 0 2 3 0 0;3 1 2 1 3 1 2 1;3 3 1 1 3 3 1 1;2 0 3 2 2 0 3 2"}], "query_input": "3 0 3 0;0 4 4 0;0 0 2 3;3 1 2 0", "query_output": "3 0 3 0 3 0 3 0;0 4 4 0 0 4 4 0;0 0 2 3 0 0 2 3;3 1 2 0 3 1 2 0"} |
| {"task_id": "icgr-00821", "rule": "add_mod+color_swap", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "4 1 0;3 4 4;4 0 2;0 4 1;4 3 0", "output": "0 3 2;1 0 0;0 2 4;2 0 3;0 1 2"}, {"input": "3 1 0;1 2 0;4 3 0;4 0 0;3 3 0", "output": "1 3 2;3 4 2;0 1 2;0 2 2;1 1 2"}, {"input": "3 3 0;2 3 1;1 0 4;2 2 2;0 1 3", "output": "1 1 2;4 1 3;3 2 0;4 4 4;2 3 1"}], "query_input": "4 1 1;3 3 1;2 1 4;0 0 2;4 4 0", "query_output": "0 3 3;1 1 3;4 3 0;2 2 4;0 0 2"} |
| {"task_id": "icgr-00347", "rule": "flip_v+flip_h", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "3 4 2 5;3 1 5 1;3 1 1 0;0 3 4 0", "output": "0 4 3 0;0 1 1 3;1 5 1 3;5 2 4 3"}, {"input": "5 3 0 2;0 2 5 2;5 0 4 4;1 3 2 0", "output": "0 2 3 1;4 4 0 5;2 5 2 0;2 0 3 5"}], "query_input": "4 2 1 1;3 5 3 1;4 4 3 5;1 0 1 5", "query_output": "5 1 0 1;5 3 4 4;1 3 5 3;1 1 2 4"} |
| {"task_id": "icgr-00546", "rule": "color_swap+add_mod", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "3 3 2 1 3;3 3 1 0 2;1 2 3 3 3", "output": "2 2 1 3 2;2 2 3 0 1;3 1 2 2 2"}, {"input": "0 1 1 1 2;3 2 0 0 2;2 1 3 1 1", "output": "0 3 3 3 1;2 1 0 0 1;1 3 2 3 3"}, {"input": "0 3 2 3 3;0 1 0 3 1;2 1 0 2 2", "output": "0 2 1 2 2;0 3 0 2 3;1 3 0 1 1"}], "query_input": "0 2 0 3 3;1 0 2 3 0;2 3 0 2 0", "query_output": "0 1 0 2 2;3 0 1 2 0;1 2 0 1 0"} |
| {"task_id": "icgr-00304", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "1 1 1 0 1;1 2 1 1 2;1 0 1 1 1", "output": "3 3 3 0 3;3 2 3 3 2;3 0 3 3 3"}, {"input": "3 2 2 3 0;3 3 1 1 2;1 0 0 2 3", "output": "1 2 2 1 0;1 1 3 3 2;3 0 0 2 1"}, {"input": "0 1 3 3 0;0 3 0 0 2;0 1 0 3 2", "output": "0 3 1 1 0;0 1 0 0 2;0 3 0 1 2"}], "query_input": "0 3 0 0 1;2 1 3 1 0;0 3 2 2 2", "query_output": "0 1 0 0 3;2 3 1 3 0;0 1 2 2 2"} |
| {"task_id": "icgr-00975", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "1 0 4;3 3 3;5 2 2;1 0 1;3 3 1", "output": "3 3 1;1 0 1;5 2 2;3 3 3;1 0 4"}, {"input": "4 3 2;1 4 1;3 3 1;2 3 3;0 0 1", "output": "0 0 1;2 3 3;3 3 1;1 4 1;4 3 2"}, {"input": "4 5 3;3 0 5;2 3 4;1 5 2;3 2 1", "output": "3 2 1;1 5 2;2 3 4;3 0 5;4 5 3"}, {"input": "2 4 2;2 3 3;2 0 3;0 3 2;3 0 4", "output": "3 0 4;0 3 2;2 0 3;2 3 3;2 4 2"}], "query_input": "5 1 5;1 1 3;5 0 5;4 4 3;1 4 0", "query_output": "1 4 0;4 4 3;5 0 5;1 1 3;5 1 5"} |
| {"task_id": "icgr-00739", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "3 0 1 4 1;2 2 1 4 1;3 1 4 4 0;3 4 1 4 0", "output": "1 4 1 0 3;1 4 1 2 2;0 4 4 1 3;0 4 1 4 3"}, {"input": "4 3 1 0 0;4 0 1 2 2;1 2 3 0 1;4 0 0 1 4", "output": "0 0 1 3 4;2 2 1 0 4;1 0 3 2 1;4 1 0 0 4"}, {"input": "2 4 1 4 4;2 4 3 3 4;0 3 0 0 4;2 3 3 3 1", "output": "4 4 1 4 2;4 3 3 4 2;4 0 0 3 0;1 3 3 3 2"}, {"input": "3 1 1 1 3;2 3 4 2 1;2 4 3 3 0;4 2 2 1 0", "output": "3 1 1 1 3;1 2 4 3 2;0 3 3 4 2;0 1 2 2 4"}], "query_input": "0 0 4 4 0;0 1 3 1 4;1 0 3 3 2;1 3 1 2 4", "query_output": "0 4 4 0 0;4 1 3 1 0;2 3 3 0 1;4 2 1 3 1"} |
| {"task_id": "icgr-00236", "rule": "border+add_mod", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "3 0 3;0 2 0;0 0 1;1 0 1;2 1 3", "output": "3 3 3;3 3 3;3 1 3;3 1 3;3 3 3"}, {"input": "1 3 0;3 3 0;1 3 0;0 0 0;0 1 0", "output": "3 3 3;3 0 3;3 0 3;3 1 3;3 3 3"}], "query_input": "0 0 1;3 0 0;2 0 3;1 0 3;3 1 0", "query_output": "3 3 3;3 1 3;3 1 3;3 1 3;3 3 3"} |
| {"task_id": "icgr-00672", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "1 3 3;3 2 3;4 0 4;3 3 1;1 0 0", "output": "0 2 2;2 1 2;3 4 3;2 2 0;0 4 4"}, {"input": "4 1 3;4 2 0;0 2 2;2 1 4;1 0 2", "output": "3 0 2;3 1 4;4 1 1;1 0 3;0 4 1"}, {"input": "4 4 3;0 2 1;0 1 0;3 0 2;1 4 3", "output": "3 3 2;4 1 0;4 0 4;2 4 1;0 3 2"}, {"input": "4 3 0;4 1 1;2 2 3;3 3 4;4 1 1", "output": "3 2 4;3 0 0;1 1 2;2 2 3;3 0 0"}], "query_input": "2 2 3;0 3 2;4 0 1;3 2 0;0 1 2", "query_output": "1 1 2;4 2 1;3 4 0;2 1 4;4 0 1"} |
| {"task_id": "icgr-00400", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "2 5 1 1 2;5 5 3 5 4;4 5 0 5 3;4 5 1 2 2;4 1 5 1 5", "output": "2 5 1 1 2 2 5 1 1 2;5 5 3 5 4 5 5 3 5 4;4 5 0 5 3 4 5 0 5 3;4 5 1 2 2 4 5 1 2 2;4 1 5 1 5 4 1 5 1 5"}, {"input": "5 2 3 0 1;2 3 4 0 3;0 3 4 3 0;1 3 5 2 1;2 0 2 5 0", "output": "5 2 3 0 1 5 2 3 0 1;2 3 4 0 3 2 3 4 0 3;0 3 4 3 0 0 3 4 3 0;1 3 5 2 1 1 3 5 2 1;2 0 2 5 0 2 0 2 5 0"}, {"input": "0 2 0 1 4;4 4 2 1 5;3 0 1 2 0;3 4 4 3 2;5 4 2 2 2", "output": "0 2 0 1 4 0 2 0 1 4;4 4 2 1 5 4 4 2 1 5;3 0 1 2 0 3 0 1 2 0;3 4 4 3 2 3 4 4 3 2;5 4 2 2 2 5 4 2 2 2"}], "query_input": "0 5 2 0 2;0 2 2 3 2;5 1 1 2 0;5 3 2 1 4;4 2 2 1 5", "query_output": "0 5 2 0 2 0 5 2 0 2;0 2 2 3 2 0 2 2 3 2;5 1 1 2 0 5 1 1 2 0;5 3 2 1 4 5 3 2 1 4;4 2 2 1 5 4 2 2 1 5"} |
| {"task_id": "icgr-00215", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "1 1 3;3 3 1;2 0 0;0 1 0", "output": "3 1 1;1 3 3;0 2 0;0 0 1"}, {"input": "2 3 1;1 0 3;0 0 2;1 1 0", "output": "1 2 3;3 1 0;2 0 0;0 1 1"}, {"input": "1 2 1;1 1 2;3 3 1;0 0 0", "output": "1 1 2;2 1 1;1 3 3;0 0 0"}], "query_input": "0 2 1;1 1 1;1 0 2;0 0 3", "query_output": "1 0 2;1 1 1;2 1 0;3 0 0"} |
| {"task_id": "icgr-00166", "rule": "color_swap+shift_rows", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "5 0 5;3 4 1;4 1 3", "output": "0 5 5;4 1 2;1 2 4"}, {"input": "1 5 3;1 3 2;0 5 2", "output": "5 2 1;2 3 1;5 3 0"}, {"input": "4 0 0;3 4 5;3 1 0", "output": "0 0 4;4 5 2;1 0 2"}, {"input": "0 5 2;5 3 2;3 5 1", "output": "5 3 0;2 3 5;5 1 2"}], "query_input": "0 5 5;2 1 3;0 4 3", "query_output": "5 5 0;1 2 3;4 2 0"} |
| {"task_id": "icgr-00761", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "0 3 4 2 5;4 4 4 0 0;2 1 1 3 0;5 3 3 4 3", "output": "5 2 4 0;3 1 4 3;3 1 4 4;4 3 0 2;3 0 0 5"}, {"input": "0 5 2 0 1;2 5 4 2 0;5 2 4 5 4;4 0 1 3 2", "output": "4 5 2 0;0 2 5 5;1 4 4 2;3 5 2 0;2 4 0 1"}, {"input": "2 2 3 3 1;2 3 0 2 3;2 3 0 0 4;4 3 4 5 2", "output": "4 2 2 2;3 3 3 2;4 0 0 3;5 0 2 3;2 4 3 1"}], "query_input": "2 5 3 1 5;5 0 3 2 5;0 0 4 2 2;3 1 0 3 4", "query_output": "3 0 5 2;1 0 0 5;0 4 3 3;3 2 2 1;4 2 5 5"} |
| {"task_id": "icgr-00473", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "3 0 1;1 3 3;3 3 3", "output": "3 1 3;0 3 3;1 3 3"}, {"input": "1 0 3;0 2 1;1 3 2", "output": "1 0 1;0 2 3;3 1 2"}, {"input": "2 1 3;2 3 0;0 3 3", "output": "2 2 0;1 3 3;3 0 3"}], "query_input": "3 2 3;1 2 0;1 3 3", "query_output": "3 1 1;2 2 3;3 0 3"} |
| {"task_id": "icgr-00562", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "1 2 3;2 3 2;0 2 1;1 3 1", "output": "1 3 1;0 2 1;2 3 2;1 2 3"}, {"input": "3 2 1;2 2 3;2 3 1;3 1 1", "output": "3 1 1;2 3 1;2 2 3;3 2 1"}], "query_input": "0 0 0;3 2 1;3 2 0;1 3 1", "query_output": "1 3 1;3 2 0;3 2 1;0 0 0"} |
| {"task_id": "icgr-00799", "rule": "border+color_swap", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "0 4 4 0 1;0 2 1 4 0;4 3 2 0 4;2 3 2 2 1;0 3 1 0 0", "output": "2 2 2 2 2;2 2 4 1 2;2 3 2 0 2;2 3 2 2 2;2 2 2 2 2"}, {"input": "4 0 3 0 3;2 2 0 3 0;3 2 0 3 3;1 1 1 2 2;2 3 0 0 0", "output": "2 2 2 2 2;2 2 0 3 2;2 2 0 3 2;2 4 4 2 2;2 2 2 2 2"}, {"input": "0 2 4 3 4;2 1 1 3 2;2 3 2 4 2;1 0 3 4 1;4 4 4 0 4", "output": "2 2 2 2 2;2 4 4 3 2;2 3 2 1 2;2 0 3 1 2;2 2 2 2 2"}], "query_input": "0 0 0 2 0;3 4 1 4 2;1 4 1 1 2;2 3 4 2 0;4 0 0 2 0", "query_output": "2 2 2 2 2;2 1 4 1 2;2 1 4 4 2;2 3 1 2 2;2 2 2 2 2"} |
| {"task_id": "icgr-00383", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "2 1 4;2 0 3;1 3 3;0 3 3;3 5 2", "output": "2 1 4;2 0 3;1 3 3;0 3 3;3 5 2"}, {"input": "0 5 3;5 0 1;5 2 5;1 2 4;2 4 0", "output": "0 5 3;5 0 1;5 2 5;1 2 4;2 4 0"}, {"input": "4 5 5;5 1 4;4 1 4;3 0 2;1 2 1", "output": "4 5 5;5 1 4;4 1 4;3 0 2;1 2 1"}, {"input": "5 2 3;1 3 1;1 2 1;0 2 0;3 4 3", "output": "5 2 3;1 3 1;1 2 1;0 2 0;3 4 3"}], "query_input": "1 0 0;2 5 2;3 1 0;3 2 5;3 0 3", "query_output": "1 0 0;2 5 2;3 1 0;3 2 5;3 0 3"} |
| {"task_id": "icgr-00247", "rule": "border+shift_rows", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "3 1 4 0;4 2 3 2;1 2 1 0", "output": "1 1 1 1;3 1 1 2;1 1 1 1"}, {"input": "3 3 4 4;4 2 3 0;1 3 4 2", "output": "1 1 1 1;3 1 1 2;1 1 1 1"}, {"input": "4 3 1 1;0 2 3 1;0 1 2 1", "output": "1 1 1 1;3 1 1 2;1 1 1 1"}, {"input": "1 4 1 1;2 3 0 3;4 3 2 3", "output": "1 1 1 1;0 1 1 3;1 1 1 1"}], "query_input": "1 2 3 4;4 1 0 0;2 2 3 0", "query_output": "1 1 1 1;0 1 1 1;1 1 1 1"} |
| {"task_id": "icgr-00091", "rule": "add_mod+border", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "5 1 1 4;5 1 1 2;3 1 1 0", "output": "0 0 0 0;0 2 2 0;0 0 0 0"}, {"input": "1 0 3 0;4 5 0 5;5 2 1 2", "output": "0 0 0 0;0 0 1 0;0 0 0 0"}, {"input": "2 4 3 2;4 3 1 4;4 4 1 2", "output": "0 0 0 0;0 4 2 0;0 0 0 0"}, {"input": "2 1 3 4;5 0 3 2;4 4 5 2", "output": "0 0 0 0;0 1 4 0;0 0 0 0"}], "query_input": "3 3 3 0;1 2 0 2;2 2 5 3", "query_output": "0 0 0 0;0 3 1 0;0 0 0 0"} |
| {"task_id": "icgr-00759", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "1 3 1 1;3 2 1 2;3 0 4 0", "output": "1 1 3 1;2 3 2 1;0 3 0 4"}, {"input": "4 3 1 1;0 3 1 3;1 0 4 0", "output": "1 4 3 1;3 0 3 1;0 1 0 4"}], "query_input": "4 0 4 2;2 2 3 1;2 4 1 3", "query_output": "2 4 0 4;1 2 2 3;3 2 4 1"} |
| {"task_id": "icgr-00949", "rule": "flip_h+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "2 3 0 0;1 3 2 3;0 1 1 1;0 2 1 3", "output": "3 3 2 1;2 1 2 0;0 0 0 3;2 0 1 3"}, {"input": "1 1 1 1;2 0 3 2;3 2 3 1;3 0 2 1", "output": "0 0 0 0;1 2 3 1;0 2 1 2;0 1 3 2"}, {"input": "0 3 3 1;0 0 3 1;3 2 0 1;0 3 0 0", "output": "0 2 2 3;0 2 3 3;0 3 1 2;3 3 2 3"}, {"input": "1 2 0 1;1 2 1 2;0 0 0 1;3 0 3 2", "output": "0 3 1 0;1 0 1 0;0 3 3 3;1 2 3 2"}], "query_input": "2 2 0 3;2 2 0 0;0 1 3 3;3 3 1 0", "query_output": "2 3 1 1;3 3 1 1;2 2 0 3;3 0 2 2"} |
| {"task_id": "icgr-00679", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "4 5 1 0 3;1 0 4 1 1;5 5 1 0 3;2 1 4 4 1", "output": "2 5 1 4;1 5 0 5;4 1 4 1;4 0 1 0;1 3 1 3"}, {"input": "4 0 3 0 1;2 3 2 0 4;0 2 2 4 0;4 5 0 2 2", "output": "4 0 2 4;5 2 3 0;0 2 2 3;2 4 0 0;2 0 4 1"}, {"input": "2 2 2 5 3;0 5 5 4 1;1 4 3 4 4;0 2 2 1 2", "output": "0 1 0 2;2 4 5 2;2 3 5 2;1 4 4 5;2 4 1 3"}, {"input": "3 4 1 3 2;2 0 3 3 5;0 1 4 4 4;1 5 4 2 5", "output": "1 0 2 3;5 1 0 4;4 4 3 1;2 4 3 3;5 4 5 2"}], "query_input": "3 2 0 0 0;1 1 0 0 2;5 3 3 0 4;4 1 0 5 5", "query_output": "4 5 1 3;1 3 1 2;0 3 0 0;5 0 0 0;5 4 2 0"} |
| {"task_id": "icgr-00848", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "5 2 3 2;1 3 0 5;1 3 0 0", "output": "1 3 0 0;1 3 0 5;5 2 3 2"}, {"input": "3 4 0 1;2 5 2 5;4 2 0 0", "output": "4 2 0 0;2 5 2 5;3 4 0 1"}], "query_input": "2 5 0 4;0 5 1 5;4 2 5 2", "query_output": "4 2 5 2;0 5 1 5;2 5 0 4"} |
| {"task_id": "icgr-00985", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 6, "grid_w": 6, "num_support": 3, "support": [{"input": "2 3 0 1 0 3;1 0 0 1 3 3;2 3 0 1 3 2;2 0 3 0 1 1;2 0 3 2 0 0;0 3 1 3 1 2", "output": "3 1 3;3 3 3;3 3 2"}, {"input": "3 3 2 1 2 1;0 3 3 2 1 2;0 0 0 3 3 3;0 2 1 2 0 1;0 2 0 1 1 0;3 1 2 3 0 0", "output": "3 3 2;2 3 3;3 3 1"}, {"input": "3 0 1 3 0 2;3 0 3 3 1 0;0 0 2 1 1 3;2 1 1 1 1 0;3 0 1 1 1 2;3 2 2 1 0 1", "output": "3 3 2;2 2 3;3 2 2"}], "query_input": "1 0 2 3 2 2;0 1 1 0 2 1;3 1 0 0 2 1;3 1 1 3 1 2;2 2 2 0 1 2;3 3 3 1 3 1", "query_output": "1 3 2;3 3 2;3 3 3"} |
| {"task_id": "icgr-00685", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "2 1 2 0 2;1 0 0 2 0;1 2 2 0 1;3 1 3 1 1;3 2 1 3 1", "output": "3 3 1 1 2;2 1 2 0 1;1 3 2 0 2;3 1 0 2 0;1 1 1 0 2"}, {"input": "3 1 0 2 2;2 1 0 1 0;1 0 1 1 0;1 0 0 2 2;3 1 3 2 1", "output": "3 1 1 2 3;1 0 0 1 1;3 0 1 0 0;2 2 1 1 2;1 2 0 0 2"}, {"input": "3 1 0 1 3;3 3 2 2 3;2 0 3 0 3;1 1 1 0 0;0 3 2 2 3", "output": "0 1 2 3 3;3 1 0 3 1;2 1 3 2 0;2 0 0 2 1;3 0 3 3 3"}], "query_input": "0 3 0 3 3;0 2 2 1 0;2 1 2 3 1;2 2 3 3 0;2 2 2 2 3", "query_output": "2 2 2 0 0;2 2 1 2 3;2 3 2 2 0;2 3 3 1 3;3 0 1 0 3"} |
| {"task_id": "icgr-00832", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "1 3 0 1;0 0 2 3;1 0 3 0;3 3 3 1", "output": "2 0 1 2;1 1 3 0;2 1 0 1;0 0 0 2"}, {"input": "2 1 0 0;1 3 3 3;2 2 3 0;3 1 2 3", "output": "3 2 1 1;2 0 0 0;3 3 0 1;0 2 3 0"}, {"input": "3 1 0 0;0 2 0 3;1 2 2 1;2 1 3 1", "output": "0 2 1 1;1 3 1 0;2 3 3 2;3 2 0 2"}], "query_input": "0 1 0 0;0 1 3 2;3 0 2 2;3 3 3 0", "query_output": "1 2 1 1;1 2 0 3;0 1 3 3;0 0 0 1"} |
| {"task_id": "icgr-00719", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "0 4 4 2;0 2 1 0;2 4 5 3", "output": "2 0 0;4 2 4;5 1 4;3 0 2"}, {"input": "1 5 4 4;3 0 4 5;4 0 5 4", "output": "4 3 1;0 0 5;5 4 4;4 5 4"}, {"input": "4 2 3 4;5 1 1 1;3 5 2 1", "output": "3 5 4;5 1 2;2 1 3;1 1 4"}, {"input": "5 1 4 2;1 4 4 2;3 4 4 5", "output": "3 1 5;4 4 1;4 4 4;5 2 2"}], "query_input": "2 3 2 2;3 5 3 3;3 4 5 0", "query_output": "3 3 2;4 5 3;5 3 2;0 3 2"} |
| {"task_id": "icgr-00204", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "3 2 3 2 1;3 1 0 1 0;4 0 4 3 0;4 0 2 3 1;1 2 4 3 2", "output": "1 3 2 3 2;0 3 1 0 1;0 4 0 4 3;1 4 0 2 3;2 1 2 4 3"}, {"input": "3 0 1 1 2;4 2 0 0 1;0 1 1 1 1;4 2 4 1 2;2 4 3 1 2", "output": "2 3 0 1 1;1 4 2 0 0;1 0 1 1 1;2 4 2 4 1;2 2 4 3 1"}], "query_input": "3 4 3 4 0;4 3 4 4 2;0 4 0 1 3;3 3 0 0 2;4 4 3 3 1", "query_output": "0 3 4 3 4;2 4 3 4 4;3 0 4 0 1;2 3 3 0 0;1 4 4 3 3"} |
| {"task_id": "icgr-00772", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "4 4 0 2;2 1 1 0;3 1 3 2", "output": "0 0 0 0;0 1 1 0;0 0 0 0"}, {"input": "0 0 4 4;4 0 4 2;0 2 1 3", "output": "0 0 0 0;0 0 4 0;0 0 0 0"}, {"input": "1 0 4 1;1 3 3 1;0 3 0 0", "output": "0 0 0 0;0 3 3 0;0 0 0 0"}, {"input": "0 2 3 3;0 4 4 0;4 3 0 1", "output": "0 0 0 0;0 4 4 0;0 0 0 0"}], "query_input": "0 2 2 2;1 0 0 4;3 2 0 0", "query_output": "0 0 0 0;0 0 0 0;0 0 0 0"} |
| {"task_id": "icgr-00577", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "0 1 3 0;0 2 2 3;3 0 1 3;2 0 0 3;3 1 1 0", "output": "0 3 1 0;3 2 2 0;3 1 0 3;3 0 0 2;0 1 1 3"}, {"input": "1 1 2 0;2 1 3 2;1 3 1 1;0 1 2 2;3 2 0 3", "output": "0 2 1 1;2 3 1 2;1 1 3 1;2 2 1 0;3 0 2 3"}, {"input": "3 1 3 1;2 1 1 3;3 3 2 3;1 0 1 3;3 1 0 2", "output": "1 3 1 3;3 1 1 2;3 2 3 3;3 1 0 1;2 0 1 3"}], "query_input": "3 1 2 1;2 1 0 2;3 2 2 3;0 2 3 1;2 1 2 1", "query_output": "1 2 1 3;2 0 1 2;3 2 2 3;1 3 2 0;1 2 1 2"} |
| {"task_id": "icgr-00943", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "2 4 0 1 0;3 1 1 2 1;2 0 3 0 4", "output": "2 3 2;4 1 0;0 1 3;1 2 0;0 1 4"}, {"input": "5 1 5 1 5;4 5 2 2 5;4 2 5 5 3", "output": "5 4 4;1 5 2;5 2 5;1 2 5;5 5 3"}], "query_input": "3 0 5 4 1;1 2 4 4 4;3 4 2 1 3", "query_output": "3 1 3;0 2 4;5 4 2;4 4 1;1 4 3"} |
| {"task_id": "icgr-00450", "rule": "add_mod+flip_h", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "1 1 3;4 4 5;5 2 2;4 4 5;2 4 1", "output": "2 0 0;4 3 3;1 1 4;4 3 3;0 3 1"}, {"input": "4 1 0;2 4 0;3 4 1;3 3 0;4 3 3", "output": "5 0 3;5 3 1;0 3 2;5 2 2;2 2 3"}], "query_input": "5 3 1;2 4 1;3 5 5;5 2 1;4 3 2", "query_output": "0 2 4;0 3 1;4 4 2;0 1 4;1 2 3"} |
| {"task_id": "icgr-00523", "rule": "flip_h+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "1 1 0 1;1 1 1 3;1 0 3 1;0 2 2 1", "output": "0 3 0 0;2 0 0 0;0 2 3 0;0 1 1 3"}, {"input": "1 2 0 2;1 1 2 1;2 2 3 3;0 1 0 3", "output": "1 3 1 0;0 1 0 0;2 2 1 1;2 3 0 3"}], "query_input": "3 3 0 1;3 0 1 3;2 3 2 3;3 2 2 0", "query_output": "0 3 2 2;2 0 3 2;2 1 2 1;3 1 1 2"} |
| {"task_id": "icgr-00874", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "2 0 2;3 3 2;1 0 1;3 4 4", "output": "1 1 1;1 3 1;1 0 1;1 1 1"}, {"input": "0 0 4;3 3 4;1 0 0;3 3 1", "output": "1 1 1;1 3 1;1 0 1;1 1 1"}], "query_input": "2 0 4;4 0 2;1 0 1;1 4 3", "query_output": "1 1 1;1 0 1;1 0 1;1 1 1"} |
| {"task_id": "icgr-00994", "rule": "color_swap+add_mod", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "3 1 3;4 5 0;3 4 0;3 1 1;0 1 0", "output": "5 4 5;1 2 3;5 1 3;5 4 4;3 4 3"}, {"input": "0 3 2;3 1 5;5 5 1;0 5 2;5 5 5", "output": "3 5 0;5 4 2;2 2 4;3 2 0;2 2 2"}], "query_input": "2 0 3;5 5 3;4 0 3;4 4 5;5 4 2", "query_output": "0 3 5;2 2 5;1 3 5;1 1 2;2 1 0"} |
| {"task_id": "icgr-00184", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "3 1 0;0 4 1;0 2 1;1 0 3", "output": "4 4 4;4 4 4;4 2 4;4 4 4"}, {"input": "0 0 2;1 0 3;1 1 1;3 3 0", "output": "4 4 4;4 0 4;4 1 4;4 4 4"}, {"input": "0 0 2;3 1 4;3 4 0;2 4 4", "output": "4 4 4;4 1 4;4 4 4;4 4 4"}, {"input": "2 2 0;0 3 1;3 3 2;1 4 3", "output": "4 4 4;4 3 4;4 3 4;4 4 4"}], "query_input": "0 1 0;2 0 3;2 1 0;0 1 4", "query_output": "4 4 4;4 0 4;4 1 4;4 4 4"} |
| {"task_id": "icgr-00608", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "1 4 4 4 1;0 2 1 3 4;2 3 3 4 1;4 4 2 3 2;2 1 4 3 3", "output": "2 4 2 0 1;1 4 3 2 4;4 2 3 1 4;3 3 4 3 4;3 2 1 4 1"}, {"input": "0 0 0 4 2;3 4 1 1 1;1 2 2 2 4;2 4 4 4 4;0 1 0 4 1", "output": "0 2 1 3 0;1 4 2 4 0;0 4 2 1 0;4 4 2 1 4;1 4 4 1 2"}, {"input": "1 3 0 3 3;4 4 4 4 2;1 0 0 4 1;4 2 1 1 1;2 3 2 4 1", "output": "2 4 1 4 1;3 2 0 4 3;2 1 0 4 0;4 1 4 4 3;1 1 1 2 3"}, {"input": "3 0 1 1 0;2 1 1 3 0;1 4 4 3 1;1 4 2 0 1;2 1 0 0 1", "output": "2 1 1 2 3;1 4 4 1 0;0 2 4 1 1;0 0 3 3 1;1 1 1 0 0"}], "query_input": "1 1 1 3 2;2 0 3 0 0;4 3 1 2 3;3 0 4 2 1;3 4 3 0 0", "query_output": "3 3 4 2 1;4 0 3 0 1;3 4 1 3 1;0 2 2 0 3;0 1 3 0 2"} |
| {"task_id": "icgr-00438", "rule": "flip_v+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "3 2 3 2 0;1 3 3 0 1;1 3 0 1 1", "output": "2 0 1 2 2;2 0 0 1 2;0 3 0 3 1"}, {"input": "0 0 2 0 0;0 1 3 1 0;2 0 0 0 2", "output": "3 1 1 1 3;1 2 0 2 1;1 1 3 1 1"}], "query_input": "2 0 2 0 1;1 1 3 2 1;1 1 1 1 2", "query_output": "2 2 2 2 3;2 2 0 3 2;3 1 3 1 2"} |
| {"task_id": "icgr-00155", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "3 1 1;0 1 5;0 4 5;5 1 5;4 0 4", "output": "3 1 1;2 1 5;2 4 5;5 1 5;4 2 4"}, {"input": "2 3 5;2 3 4;0 2 4;0 2 2;3 3 4", "output": "0 3 5;0 3 4;2 0 4;2 0 0;3 3 4"}], "query_input": "3 1 1;5 3 5;2 1 0;0 4 1;0 4 0", "query_output": "3 1 1;5 3 5;0 1 2;2 4 1;2 4 2"} |
| {"task_id": "icgr-00702", "rule": "border+add_mod", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "2 1 4;2 3 0;2 3 0;5 4 1;2 5 2", "output": "3 3 3;3 2 3;3 2 3;3 3 3;3 3 3"}, {"input": "1 4 1;5 3 1;0 0 2;1 5 5;3 1 0", "output": "3 3 3;3 2 3;3 5 3;3 4 3;3 3 3"}, {"input": "2 3 2;5 5 3;3 5 1;3 5 2;3 2 4", "output": "3 3 3;3 4 3;3 4 3;3 4 3;3 3 3"}], "query_input": "0 2 1;4 1 5;3 2 3;3 3 3;4 4 0", "query_output": "3 3 3;3 0 3;3 1 3;3 2 3;3 3 3"} |
| {"task_id": "icgr-00374", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "3 2 0;1 2 5;4 2 1;1 5 1;3 4 4", "output": "3 1 4 1 3;4 5 2 2 2;4 1 1 5 0"}, {"input": "3 4 5;1 2 2;0 3 4;3 0 3;5 0 1", "output": "5 3 0 1 3;0 0 3 2 4;1 3 4 2 5"}, {"input": "2 1 2;5 1 2;5 4 4;4 3 4;5 3 4", "output": "5 4 5 5 2;3 3 4 1 1;4 4 4 2 2"}, {"input": "2 4 2;1 1 1;2 4 2;4 4 2;1 2 3", "output": "1 4 2 1 2;2 4 4 1 4;3 2 2 1 2"}], "query_input": "0 2 1;3 0 1;0 5 3;4 0 2;2 1 2", "query_output": "2 4 0 3 0;1 0 5 0 2;2 2 3 1 1"} |
| {"task_id": "icgr-00726", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "2 2 3;0 3 4;3 3 3;2 3 4", "output": "0 0 1;3 1 2;1 1 1;0 1 2"}, {"input": "0 0 4;1 3 4;0 4 2;0 1 2", "output": "3 3 2;4 1 2;3 2 0;3 4 0"}, {"input": "2 2 1;3 2 2;0 3 3;2 1 4", "output": "0 0 4;1 0 0;3 1 1;0 4 2"}, {"input": "1 2 3;2 4 2;0 0 2;2 1 0", "output": "4 0 1;0 2 0;3 3 0;0 4 3"}], "query_input": "2 4 0;4 0 2;4 4 2;1 3 0", "query_output": "0 2 3;2 3 0;2 2 0;4 1 3"} |
| {"task_id": "icgr-00733", "rule": "color_swap+shift_rows", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "1 4 3 0 1;4 1 0 5 0;0 4 3 3 0;1 5 5 4 2", "output": "5 5 4 3 0;0 4 5 0 1;0 0 4 3 3;2 5 1 1 4"}, {"input": "4 1 5 0 4;0 3 5 0 5;5 1 1 0 0;4 3 2 5 2", "output": "4 4 5 1 0;1 0 3 1 0;0 1 5 5 0;2 4 3 2 1"}, {"input": "1 2 4 0 1;5 4 1 2 4;4 5 0 3 1;1 0 0 1 5", "output": "5 5 2 4 0;4 1 4 5 2;5 4 1 0 3;1 5 0 0 5"}, {"input": "3 4 1 2 4;3 5 2 1 0;1 1 0 1 4;4 1 2 2 1", "output": "4 3 4 5 2;0 3 1 2 5;4 5 5 0 5;5 4 5 2 2"}], "query_input": "0 3 1 2 2;2 5 0 1 4;4 2 2 4 2;0 1 5 2 0", "query_output": "2 0 3 5 2;4 2 1 0 5;2 4 2 2 4;0 0 5 1 2"} |
| {"task_id": "icgr-00367", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "4 0 2 2;3 3 1 5;0 4 1 3", "output": "4 3 0;0 3 4;2 1 1;2 5 3"}, {"input": "5 5 3 0;4 3 1 4;0 2 0 5", "output": "5 4 0;5 3 2;3 1 0;0 4 5"}], "query_input": "2 3 5 4;0 3 4 4;5 4 0 5", "query_output": "2 0 5;3 3 4;5 4 0;4 4 5"} |
| {"task_id": "icgr-00644", "rule": "color_swap+flip_h", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "2 4 4 2;0 0 4 2;1 1 2 1;3 4 3 3", "output": "2 4 4 2;2 4 0 0;3 2 3 3;1 1 4 1"}, {"input": "0 1 4 0;1 2 1 1;4 0 4 0;3 3 0 2", "output": "0 4 3 0;3 3 2 3;0 4 0 4;2 0 1 1"}], "query_input": "0 4 4 4;4 0 2 4;1 1 0 1;2 1 4 1", "query_output": "4 4 4 0;4 2 0 4;3 0 3 3;3 4 3 2"} |
| {"task_id": "icgr-00791", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "3 0 0 1;1 0 2 2;1 1 0 3;1 0 1 3", "output": "1 0 1 3;1 1 0 3;1 0 2 2;3 0 0 1"}, {"input": "1 1 1 0;1 0 2 0;1 0 1 2;2 2 0 0", "output": "2 2 0 0;1 0 1 2;1 0 2 0;1 1 1 0"}], "query_input": "2 0 3 0;0 0 1 0;0 3 0 1;3 1 0 3", "query_output": "3 1 0 3;0 3 0 1;0 0 1 0;2 0 3 0"} |
| {"task_id": "icgr-00455", "rule": "flip_v+border", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "0 2 0 3 0;2 3 0 3 3;1 0 1 2 0;3 3 3 2 1;3 1 2 2 2", "output": "2 2 2 2 2;2 3 3 2 2;2 0 1 2 2;2 3 0 3 2;2 2 2 2 2"}, {"input": "0 1 1 2 1;2 0 0 3 2;3 1 3 2 2;0 0 1 3 3;2 0 2 2 3", "output": "2 2 2 2 2;2 0 1 3 2;2 1 3 2 2;2 0 0 3 2;2 2 2 2 2"}, {"input": "3 0 0 3 3;2 0 1 0 2;3 2 3 0 0;0 3 0 1 3;1 2 3 1 0", "output": "2 2 2 2 2;2 3 0 1 2;2 2 3 0 2;2 0 1 0 2;2 2 2 2 2"}, {"input": "0 1 3 2 2;0 2 2 3 1;2 3 0 1 1;2 3 1 0 2;3 1 1 0 3", "output": "2 2 2 2 2;2 3 1 0 2;2 3 0 1 2;2 2 2 3 2;2 2 2 2 2"}], "query_input": "3 0 1 2 2;2 1 0 0 3;0 0 2 0 1;0 2 1 3 3;2 1 2 3 3", "query_output": "2 2 2 2 2;2 2 1 3 2;2 0 2 0 2;2 1 0 0 2;2 2 2 2 2"} |
| {"task_id": "icgr-00793", "rule": "flip_h+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "3 1 2;2 3 1;0 0 1;2 0 2;2 1 0", "output": "2 1 3;1 3 2;1 0 0;2 0 2;0 1 2"}, {"input": "2 1 0;1 3 2;3 1 1;0 0 2;1 1 2", "output": "0 1 2;2 3 1;1 1 3;2 0 0;2 1 1"}, {"input": "0 0 0;3 3 2;1 1 0;3 0 3;0 1 1", "output": "0 0 0;2 3 3;0 1 1;3 0 3;1 1 0"}, {"input": "1 3 2;0 3 3;0 0 3;0 2 1;2 2 0", "output": "2 3 1;3 3 0;3 0 0;1 2 0;0 2 2"}], "query_input": "2 3 0;3 3 0;2 1 2;0 2 0;0 0 0", "query_output": "0 3 2;0 3 3;2 1 2;0 2 0;0 0 0"} |
| {"task_id": "icgr-00953", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "3 2 3;1 3 1;1 1 0;0 2 1;3 1 2", "output": "0 0 0;0 3 0;0 1 0;0 2 0;0 0 0"}, {"input": "0 0 1;2 0 0;2 1 0;1 1 1;3 2 0", "output": "0 0 0;0 0 0;0 1 0;0 1 0;0 0 0"}, {"input": "0 3 3;2 2 1;0 2 2;3 1 3;2 3 0", "output": "0 0 0;0 2 0;0 2 0;0 1 0;0 0 0"}, {"input": "0 0 1;2 1 1;3 2 3;2 0 1;0 2 1", "output": "0 0 0;0 1 0;0 2 0;0 0 0;0 0 0"}], "query_input": "0 1 0;0 2 2;3 3 1;1 1 3;3 2 1", "query_output": "0 0 0;0 2 0;0 3 0;0 1 0;0 0 0"} |
| {"task_id": "icgr-00268", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "4 4 0 4;1 0 4 3;3 2 0 2", "output": "3 1 4;2 0 4;0 4 0;2 3 4"}, {"input": "3 1 0 2;2 4 2 2;3 4 0 1", "output": "3 2 3;4 4 1;0 2 0;1 2 2"}, {"input": "4 0 1 3;1 4 0 2;0 1 1 0", "output": "0 1 4;1 4 0;1 0 1;0 2 3"}], "query_input": "3 1 0 3;2 1 4 3;4 4 1 0", "query_output": "4 2 3;4 1 1;1 4 0;0 3 3"} |
| {"task_id": "icgr-00341", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "1 2 0;4 2 0;4 3 1;0 0 5", "output": "0 2 1;0 2 4;1 3 4;5 0 0"}, {"input": "5 5 4;3 4 0;2 5 5;2 3 4", "output": "4 5 5;0 4 3;5 5 2;4 3 2"}, {"input": "5 3 1;5 0 1;2 2 4;5 3 4", "output": "1 3 5;1 0 5;4 2 2;4 3 5"}], "query_input": "5 1 2;2 5 3;2 1 2;1 5 0", "query_output": "2 1 5;3 5 2;2 1 2;0 5 1"} |
| {"task_id": "icgr-00794", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "4 2 1;2 1 4;1 4 1", "output": "2 1 4;1 4 2;4 1 1"}, {"input": "2 1 3;4 0 1;0 0 4", "output": "1 3 2;0 1 4;0 4 0"}, {"input": "4 3 4;2 2 2;0 0 2", "output": "3 4 4;2 2 2;0 2 0"}, {"input": "1 4 1;4 4 0;4 0 3", "output": "4 1 1;4 0 4;0 3 4"}], "query_input": "1 4 1;4 3 3;4 2 0", "query_output": "4 1 1;3 3 4;2 0 4"} |
| {"task_id": "icgr-00851", "rule": "shift_rows+color_swap", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "5 5 3 3;1 4 0 2;1 4 1 4;2 1 0 2", "output": "3 5 5 3;0 1 4 2;4 1 4 1;0 0 1 2"}, {"input": "4 4 2 0;2 1 2 0;2 5 3 5;1 0 1 0", "output": "2 4 4 0;2 0 1 0;5 0 5 3;2 1 2 1"}, {"input": "4 0 4 3;2 1 5 1;0 3 5 1;2 4 3 4", "output": "3 4 2 4;1 0 1 5;1 2 3 5;4 0 4 3"}, {"input": "5 3 0 4;3 5 3 2;0 2 4 0;2 4 1 0", "output": "4 5 3 2;0 3 5 3;2 2 0 4;2 0 4 1"}], "query_input": "1 2 0 2;2 2 0 2;0 5 5 5;4 2 1 1", "query_output": "0 1 0 2;0 0 0 2;5 2 5 5;1 4 0 1"} |
| {"task_id": "icgr-00067", "rule": "shift_rows+add_mod", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "0 0 4 4 0;3 2 4 0 3;3 2 0 1 0", "output": "2 2 2 1 1;0 0 4 1 2;2 0 4 2 3"}, {"input": "2 0 0 4 4;2 2 0 3 3;2 4 3 3 1", "output": "1 4 2 2 1;0 4 4 2 0;3 4 1 0 0"}, {"input": "2 3 0 4 1;2 1 3 2 2;3 2 2 2 3", "output": "3 4 0 2 1;4 4 3 0 4;0 0 4 4 4"}, {"input": "3 3 4 4 1;2 4 4 1 0;1 0 2 1 2", "output": "3 0 0 1 1;2 4 1 1 3;4 3 2 4 3"}], "query_input": "1 4 4 1 1;0 0 4 3 0;3 3 4 4 3", "query_output": "3 3 1 1 3;2 2 2 1 0;0 0 0 1 1"} |
| {"task_id": "icgr-00300", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "1 2 3 0 3;1 3 3 1 3;0 2 1 2 2;3 2 0 1 1;2 3 0 2 2", "output": "1 0 3 2 3;1 3 3 1 3;2 0 1 0 0;3 0 2 1 1;0 3 2 0 0"}, {"input": "3 2 3 0 0;1 0 0 3 3;0 1 0 2 3;0 1 2 3 3;1 1 0 3 0", "output": "3 0 3 2 2;1 2 2 3 3;2 1 2 0 3;2 1 0 3 3;1 1 2 3 2"}], "query_input": "2 1 0 3 3;0 0 2 1 3;0 0 0 1 0;2 3 0 0 0;0 3 1 3 3", "query_output": "0 1 2 3 3;2 2 0 1 3;2 2 2 1 2;0 3 2 2 2;2 3 1 3 3"} |
| {"task_id": "icgr-00017", "rule": "border+flip_h", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "0 1 3;4 3 2;2 1 2;1 0 1", "output": "0 0 0;0 3 0;0 1 0;0 0 0"}, {"input": "0 1 0;5 4 4;3 3 0;0 5 2", "output": "0 0 0;0 4 0;0 3 0;0 0 0"}], "query_input": "2 2 3;5 0 5;3 4 4;4 0 0", "query_output": "0 0 0;0 0 0;0 4 0;0 0 0"} |
| {"task_id": "icgr-00633", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "1 2 3 2 0;4 3 2 4 1;4 1 0 2 3", "output": "0 1 2 3 2;1 4 3 2 4;3 4 1 0 2"}, {"input": "3 2 1 1 3;3 4 0 1 0;1 0 2 3 3", "output": "3 3 2 1 1;0 3 4 0 1;3 1 0 2 3"}, {"input": "0 3 0 4 2;1 2 4 1 0;0 2 4 3 3", "output": "2 0 3 0 4;0 1 2 4 1;3 0 2 4 3"}], "query_input": "3 0 0 3 2;3 0 3 4 1;0 3 0 0 2", "query_output": "2 3 0 0 3;1 3 0 3 4;2 0 3 0 0"} |
| {"task_id": "icgr-00884", "rule": "flip_v+shift_rows", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "0 0 1 0 2;3 2 2 0 3;3 0 2 3 0", "output": "0 3 0 2 3;3 3 2 2 0;2 0 0 1 0"}, {"input": "3 2 1 3 2;2 1 2 1 1;2 1 0 3 3", "output": "3 2 1 0 3;1 2 1 2 1;2 3 2 1 3"}, {"input": "1 0 1 0 2;0 1 3 3 0;2 1 3 0 3", "output": "3 2 1 3 0;0 0 1 3 3;2 1 0 1 0"}], "query_input": "3 2 1 3 3;2 3 1 0 0;1 2 0 0 1", "query_output": "1 1 2 0 0;0 2 3 1 0;3 3 2 1 3"} |
| {"task_id": "icgr-00401", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "3 5 4 0 3;2 5 5 5 4;4 2 1 2 0;4 4 5 1 2", "output": "3 0 4 5 3;4 5 5 5 2;0 2 1 2 4;2 1 5 4 4"}, {"input": "2 0 2 1 5;0 0 0 5 4;4 5 2 3 5;3 3 1 4 5", "output": "5 1 2 0 2;4 5 0 0 0;5 3 2 5 4;5 4 1 3 3"}], "query_input": "1 2 0 4 5;4 0 3 5 4;3 4 4 2 5;0 2 5 3 0", "query_output": "5 4 0 2 1;4 5 3 0 4;5 2 4 4 3;0 3 5 2 0"} |
| {"task_id": "icgr-00704", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "3 2 0 0 1;0 4 2 4 0;1 3 5 4 0", "output": "1 0 3;3 4 2;5 2 0;4 4 0;0 0 1"}, {"input": "5 5 1 0 3;1 2 4 5 2;5 2 1 5 2", "output": "5 1 5;2 2 5;1 4 1;5 5 0;2 2 3"}, {"input": "0 3 0 4 1;1 1 0 2 3;4 4 1 1 3", "output": "4 1 0;4 1 3;1 0 0;1 2 4;3 3 1"}, {"input": "2 1 0 1 4;1 5 0 2 4;3 5 1 1 2", "output": "3 1 2;5 5 1;1 0 0;1 2 1;2 4 4"}], "query_input": "5 2 3 5 1;2 5 2 0 3;3 0 0 5 0", "query_output": "3 2 5;0 5 2;0 2 3;5 0 5;0 3 1"} |
| {"task_id": "icgr-00373", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "3 0 0 0;2 0 1 4;0 3 4 2;1 3 1 1;1 1 3 0", "output": "4 4 4 4;4 0 1 4;4 3 4 4;4 3 1 4;4 4 4 4"}, {"input": "0 1 2 2;2 1 2 1;2 4 3 0;1 1 1 2;3 4 3 4", "output": "4 4 4 4;4 1 2 4;4 4 3 4;4 1 1 4;4 4 4 4"}, {"input": "3 0 2 0;1 2 0 1;2 0 4 1;3 2 2 4;1 4 3 0", "output": "4 4 4 4;4 2 0 4;4 0 4 4;4 2 2 4;4 4 4 4"}, {"input": "0 4 4 0;4 3 1 1;1 2 0 4;3 2 4 1;2 0 4 3", "output": "4 4 4 4;4 3 1 4;4 2 0 4;4 2 4 4;4 4 4 4"}], "query_input": "4 3 0 1;0 1 3 4;4 1 2 4;0 3 3 0;4 1 3 4", "query_output": "4 4 4 4;4 1 3 4;4 1 2 4;4 3 3 4;4 4 4 4"} |
| {"task_id": "icgr-00650", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "1 2 0 2 1;2 2 0 2 0;2 3 3 1 2;1 3 2 0 0", "output": "1 3 2 0 0;2 3 3 1 2;2 2 0 2 0;1 2 0 2 1"}, {"input": "1 0 3 3 1;0 1 3 3 3;0 3 3 2 1;0 3 2 0 2", "output": "0 3 2 0 2;0 3 3 2 1;0 1 3 3 3;1 0 3 3 1"}, {"input": "0 3 0 1 1;0 3 0 3 3;0 0 0 1 0;2 0 3 3 0", "output": "2 0 3 3 0;0 0 0 1 0;0 3 0 3 3;0 3 0 1 1"}, {"input": "2 0 2 3 1;2 0 2 3 2;0 1 0 3 2;2 2 3 3 1", "output": "2 2 3 3 1;0 1 0 3 2;2 0 2 3 2;2 0 2 3 1"}], "query_input": "1 2 2 1 0;3 1 3 0 1;2 0 3 3 2;2 3 0 1 3", "query_output": "2 3 0 1 3;2 0 3 3 2;3 1 3 0 1;1 2 2 1 0"} |
| {"task_id": "icgr-00695", "rule": "flip_v+shift_rows", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "0 5 3;0 5 2;4 5 4;0 3 3", "output": "3 3 0;5 4 4;5 2 0;5 3 0"}, {"input": "3 1 3;2 1 5;5 1 2;2 2 1", "output": "2 1 2;1 2 5;1 5 2;1 3 3"}, {"input": "4 5 1;2 5 1;0 1 1;1 4 1", "output": "4 1 1;1 1 0;5 1 2;5 1 4"}, {"input": "4 1 2;4 3 4;0 3 4;1 5 3", "output": "5 3 1;3 4 0;3 4 4;1 2 4"}], "query_input": "4 4 5;0 2 5;4 1 5;5 0 0", "query_output": "0 0 5;1 5 4;2 5 0;4 5 4"} |
| {"task_id": "icgr-00919", "rule": "add_mod+shift_rows", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "1 3 4;1 4 4;4 4 3;3 5 4", "output": "0 1 4;1 1 4;1 0 1;2 1 0"}, {"input": "5 1 1;2 2 1;3 3 5;4 5 3", "output": "4 4 2;5 4 5;0 2 0;2 0 1"}, {"input": "1 4 1;1 2 1;1 0 5;3 3 0", "output": "1 4 4;5 4 4;3 2 4;0 3 0"}, {"input": "4 0 2;1 2 0;4 0 3;4 2 5", "output": "3 5 1;5 3 4;3 0 1;5 2 1"}], "query_input": "0 4 0;3 4 3;4 2 5;4 2 1", "query_output": "1 3 3;1 0 0;5 2 1;5 4 1"} |
| {"task_id": "icgr-00220", "rule": "shift_rows+flip_h", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "1 0 0 3 0;0 2 0 0 3;1 1 3 1 3;2 0 2 2 3;3 3 2 2 3", "output": "0 0 1 0 3;0 2 0 3 0;3 1 1 3 1;2 0 2 3 2;2 3 3 3 2"}, {"input": "0 3 2 3 1;1 0 0 2 1;0 2 1 2 0;2 3 3 3 1;0 3 3 0 0", "output": "2 3 0 1 3;0 0 1 1 2;1 2 0 0 2;3 3 2 1 3;3 3 0 0 0"}], "query_input": "2 3 3 2 0;0 2 1 2 0;3 3 1 3 3;1 1 1 1 2;1 0 3 2 0", "query_output": "3 3 2 0 2;1 2 0 0 2;1 3 3 3 3;1 1 1 2 1;3 0 1 0 2"} |
| {"task_id": "icgr-00506", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "3 3 2 3;3 3 3 3;3 4 1 2;4 4 1 3", "output": "3 3;4 3"}, {"input": "3 3 5 5;5 0 3 0;0 5 4 2;5 4 5 3", "output": "5 5;5 5"}], "query_input": "1 0 3 1;5 3 3 1;1 1 3 5;5 4 2 4", "query_output": "5 3;5 5"} |
| {"task_id": "icgr-00176", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "1 0 2 3;2 3 1 3;3 1 2 3;3 1 0 3", "output": "1 0 2 3;2 3 1 3;3 1 2 3;3 1 0 3"}, {"input": "2 3 2 2;0 1 3 3;0 1 1 1;2 0 1 3", "output": "2 3 2 2;0 1 3 3;0 1 1 1;2 0 1 3"}, {"input": "2 2 1 2;3 3 0 2;1 0 1 2;2 0 2 1", "output": "2 2 1 2;3 3 0 2;1 0 1 2;2 0 2 1"}, {"input": "3 3 0 0;1 0 2 1;2 0 1 3;3 0 3 2", "output": "3 3 0 0;1 0 2 1;2 0 1 3;3 0 3 2"}], "query_input": "1 1 2 1;0 0 0 1;3 2 0 0;2 1 1 1", "query_output": "1 1 2 1;0 0 0 1;3 2 0 0;2 1 1 1"} |
| {"task_id": "icgr-00437", "rule": "add_mod+flip_v", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "0 3 4 1 1;1 4 4 3 0;0 1 0 2 4;0 1 2 2 3;0 1 1 4 4", "output": "3 4 4 2 2;3 4 0 0 1;3 4 3 0 2;4 2 2 1 3;3 1 2 4 4"}, {"input": "1 1 0 0 4;2 1 2 2 2;4 4 4 0 1;2 3 0 1 1;2 0 4 2 2", "output": "0 3 2 0 0;0 1 3 4 4;2 2 2 3 4;0 4 0 0 0;4 4 3 3 2"}, {"input": "1 4 2 4 2;2 1 4 1 3;1 1 4 2 0;4 4 3 0 0;4 1 0 4 3", "output": "2 4 3 2 1;2 2 1 3 3;4 4 2 0 3;0 4 2 4 1;4 2 0 2 0"}], "query_input": "4 3 1 4 2;2 2 2 3 3;4 2 1 0 4;3 0 4 0 2;0 1 1 0 4", "query_output": "3 4 4 3 2;1 3 2 3 0;2 0 4 3 2;0 0 0 1 1;2 1 4 2 0"} |
| {"task_id": "icgr-00082", "rule": "add_mod+flip_v", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "1 0 0 1;3 3 2 3;2 1 2 3", "output": "1 0 1 2;2 2 1 2;0 3 3 0"}, {"input": "3 2 0 3;1 1 2 2;2 2 3 1", "output": "1 1 2 0;0 0 1 1;2 1 3 2"}, {"input": "2 0 2 1;3 0 1 2;2 3 0 0", "output": "1 2 3 3;2 3 0 1;1 3 1 0"}], "query_input": "3 2 0 1;0 0 3 2;0 2 2 2", "query_output": "3 1 1 1;3 3 2 1;2 1 3 0"} |
| {"task_id": "icgr-00151", "rule": "color_swap+border", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "4 0 2;2 4 4;1 1 1;4 1 3;1 0 0", "output": "3 3 3;3 4 3;3 1 3;3 1 3;3 3 3"}, {"input": "0 0 3;1 0 1;2 4 1;4 0 4;4 1 2", "output": "3 3 3;3 0 3;3 4 3;3 0 3;3 3 3"}, {"input": "2 0 1;0 0 2;1 1 0;4 4 1;2 1 3", "output": "3 3 3;3 0 3;3 1 3;3 4 3;3 3 3"}], "query_input": "4 2 3;3 1 2;3 2 3;4 2 0;0 0 3", "query_output": "3 3 3;3 1 3;3 3 3;3 3 3;3 3 3"} |
| {"task_id": "icgr-00375", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "2 1 0 3;3 1 3 1;2 3 1 0", "output": "2 3 2;3 1 1;1 3 0;0 1 3"}, {"input": "3 2 2 3;0 1 0 1;2 1 3 0", "output": "2 0 3;1 1 2;3 0 2;0 1 3"}, {"input": "1 0 3 2;1 0 3 0;2 2 3 0", "output": "2 1 1;2 0 0;3 3 3;0 0 2"}], "query_input": "1 3 3 1;3 1 3 1;3 1 1 2", "query_output": "3 3 1;1 1 3;1 3 3;2 1 1"} |
| {"task_id": "icgr-00317", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "3 2 2 3;2 4 2 3;4 1 3 4;1 0 3 2", "output": "3 2 4 1;2 4 1 0;2 2 3 3;3 3 4 2"}, {"input": "4 4 3 1;4 2 4 3;0 0 4 4;4 1 0 1", "output": "4 4 0 4;4 2 0 1;3 4 4 0;1 3 4 1"}, {"input": "0 3 0 0;1 3 4 0;3 3 2 0;2 2 3 1", "output": "0 1 3 2;3 3 3 2;0 4 2 3;0 0 0 1"}], "query_input": "2 0 2 2;0 4 3 0;2 2 1 4;2 4 0 2", "query_output": "2 0 2 2;0 4 2 4;2 3 1 0;2 0 4 2"} |
| {"task_id": "icgr-00700", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "1 0 3 0 0;2 1 1 2 2;0 1 1 0 1", "output": "2 1 0 1 1;3 2 2 3 3;1 2 2 1 2"}, {"input": "2 3 2 0 0;0 2 1 0 2;2 2 2 2 1", "output": "3 0 3 1 1;1 3 2 1 3;3 3 3 3 2"}, {"input": "2 0 3 3 0;1 0 0 2 1;0 1 3 0 2", "output": "3 1 0 0 1;2 1 1 3 2;1 2 0 1 3"}], "query_input": "2 2 1 2 2;1 1 0 1 0;0 2 1 1 0", "query_output": "3 3 2 3 3;2 2 1 2 1;1 3 2 2 1"} |
| {"task_id": "icgr-00482", "rule": "flip_h+shift_rows", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "1 2 3 3;3 2 0 0;0 1 2 2", "output": "1 3 3 2;3 0 0 2;0 2 2 1"}, {"input": "3 0 2 3;0 2 2 1;1 3 1 1", "output": "3 3 2 0;0 1 2 2;1 1 1 3"}, {"input": "2 3 1 1;2 3 2 3;2 1 1 1", "output": "2 1 1 3;2 3 2 3;2 1 1 1"}], "query_input": "2 0 0 2;1 3 0 2;0 3 0 1", "query_output": "2 2 0 0;1 2 0 3;0 1 0 3"} |
| {"task_id": "icgr-00376", "rule": "border+shift_rows", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "4 3 5 0 1;2 2 3 1 4;5 4 1 1 1;2 1 1 1 1;5 0 1 4 0", "output": "2 2 2 2 2;2 2 2 3 1;2 2 4 1 1;2 2 1 1 1;2 2 2 2 2"}, {"input": "0 0 1 5 0;3 0 3 2 5;1 4 3 5 5;0 0 3 0 1;5 3 1 5 2", "output": "2 2 2 2 2;2 2 0 3 2;2 2 4 3 5;2 2 0 3 0;2 2 2 2 2"}], "query_input": "3 2 0 1 4;5 3 2 5 5;5 4 1 1 2;5 5 2 5 3;1 5 0 5 1", "query_output": "2 2 2 2 2;2 2 3 2 5;2 2 4 1 1;2 2 5 2 5;2 2 2 2 2"} |
| {"task_id": "icgr-00140", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "3 0 3;2 1 2;1 0 1;3 3 2;1 3 1", "output": "3 0 3 3 0 3;2 1 2 2 1 2;1 0 1 1 0 1;3 3 2 3 3 2;1 3 1 1 3 1"}, {"input": "2 1 0;1 2 2;2 3 1;2 0 0;3 2 2", "output": "2 1 0 2 1 0;1 2 2 1 2 2;2 3 1 2 3 1;2 0 0 2 0 0;3 2 2 3 2 2"}], "query_input": "0 2 2;3 2 0;1 2 1;0 1 3;2 2 0", "query_output": "0 2 2 0 2 2;3 2 0 3 2 0;1 2 1 1 2 1;0 1 3 0 1 3;2 2 0 2 2 0"} |
| {"task_id": "icgr-00617", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "0 0 0;1 1 2;0 2 0;1 0 1", "output": "0 0 0;2 1 1;0 2 0;1 0 1"}, {"input": "0 3 0;3 2 2;1 0 2;1 0 2", "output": "0 3 0;2 2 3;2 0 1;2 0 1"}], "query_input": "1 1 2;1 3 0;1 3 2;2 1 1", "query_output": "2 1 1;0 3 1;2 3 1;1 1 2"} |
| {"task_id": "icgr-00074", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "0 1 2;2 0 4;4 2 2;0 4 0;4 2 0", "output": "2 1 0;4 0 2;2 2 4;0 4 0;0 2 4"}, {"input": "3 0 2;0 4 1;4 1 3;2 0 3;3 2 2", "output": "2 0 3;1 4 0;3 1 4;3 0 2;2 2 3"}, {"input": "0 2 4;4 4 4;1 3 3;0 4 0;2 1 0", "output": "4 2 0;4 4 4;3 3 1;0 4 0;0 1 2"}], "query_input": "3 3 4;4 2 3;1 0 4;1 4 2;4 3 2", "query_output": "4 3 3;3 2 4;4 0 1;2 4 1;2 3 4"} |
| {"task_id": "icgr-00157", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "2 0 1;3 0 2;3 2 1;2 2 3", "output": "2 3 3 2;0 0 2 2;1 2 1 3"}, {"input": "3 0 3;1 1 0;2 3 0;1 1 0", "output": "3 1 2 1;0 1 3 1;3 0 0 0"}], "query_input": "0 0 3;2 2 0;0 1 0;1 0 1", "query_output": "0 2 0 1;0 2 1 0;3 0 0 1"} |
| {"task_id": "icgr-00783", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "2 0 2 0 1;3 1 3 3 0;3 0 2 2 3", "output": "2 0 2 0 1 2 0 2 0 1;3 1 3 3 0 3 1 3 3 0;3 0 2 2 3 3 0 2 2 3"}, {"input": "1 2 1 1 1;2 3 0 2 0;0 3 3 1 2", "output": "1 2 1 1 1 1 2 1 1 1;2 3 0 2 0 2 3 0 2 0;0 3 3 1 2 0 3 3 1 2"}, {"input": "3 2 3 1 1;2 2 1 3 1;0 1 1 0 3", "output": "3 2 3 1 1 3 2 3 1 1;2 2 1 3 1 2 2 1 3 1;0 1 1 0 3 0 1 1 0 3"}], "query_input": "0 1 3 0 0;1 1 3 1 3;0 2 1 0 1", "query_output": "0 1 3 0 0 0 1 3 0 0;1 1 3 1 3 1 1 3 1 3;0 2 1 0 1 0 2 1 0 1"} |
| {"task_id": "icgr-00271", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "3 4 1 2;0 3 1 3;0 5 1 3;0 1 3 3", "output": "0 0 0 0;0 3 1 0;0 5 1 0;0 0 0 0"}, {"input": "3 4 1 3;0 5 5 4;4 4 2 3;0 4 4 1", "output": "0 0 0 0;0 5 5 0;0 4 2 0;0 0 0 0"}, {"input": "2 3 2 3;0 4 2 0;3 5 5 2;2 0 3 3", "output": "0 0 0 0;0 4 2 0;0 5 5 0;0 0 0 0"}], "query_input": "4 4 2 3;0 5 1 4;0 0 3 3;3 2 1 3", "query_output": "0 0 0 0;0 5 1 0;0 0 3 0;0 0 0 0"} |
| {"task_id": "icgr-00275", "rule": "flip_v+shift_rows", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "5 4 1;1 3 1;3 5 4;4 4 5;5 1 0", "output": "1 0 5;4 5 4;5 4 3;3 1 1;4 1 5"}, {"input": "5 4 1;0 0 3;4 1 1;3 5 2;4 2 5", "output": "2 5 4;5 2 3;1 1 4;0 3 0;4 1 5"}], "query_input": "1 2 4;5 3 4;2 5 1;0 4 3;2 1 5", "query_output": "1 5 2;4 3 0;5 1 2;3 4 5;2 4 1"} |
| {"task_id": "icgr-00279", "rule": "flip_v+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "4 4 3 3;0 3 1 0;1 3 3 2", "output": "4 1 1 0;3 1 4 3;2 2 1 1"}, {"input": "2 4 0 1;4 3 1 1;1 3 2 4", "output": "4 1 0 2;2 1 4 4;0 2 3 4"}], "query_input": "0 4 1 3;1 3 0 1;3 1 4 4", "query_output": "1 4 2 2;4 1 3 4;3 2 4 1"} |
| {"task_id": "icgr-00068", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "3 1 0 4;2 1 0 2;4 1 2 2;1 0 3 0;4 0 4 0", "output": "3 1 0 4 3 1 0 4;2 1 0 2 2 1 0 2;4 1 2 2 4 1 2 2;1 0 3 0 1 0 3 0;4 0 4 0 4 0 4 0"}, {"input": "0 2 0 0;2 3 2 4;1 1 4 4;1 1 2 3;4 3 4 0", "output": "0 2 0 0 0 2 0 0;2 3 2 4 2 3 2 4;1 1 4 4 1 1 4 4;1 1 2 3 1 1 2 3;4 3 4 0 4 3 4 0"}], "query_input": "2 2 3 4;1 2 1 1;3 4 2 3;4 0 4 3;3 3 1 4", "query_output": "2 2 3 4 2 2 3 4;1 2 1 1 1 2 1 1;3 4 2 3 3 4 2 3;4 0 4 3 4 0 4 3;3 3 1 4 3 3 1 4"} |
| {"task_id": "icgr-00898", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "3 4 2;2 1 1;4 4 3", "output": "2 4 3;1 1 2;3 4 4"}, {"input": "1 1 0;1 2 3;3 2 2", "output": "0 1 1;3 2 1;2 2 3"}, {"input": "1 3 2;1 4 0;3 3 4", "output": "2 3 1;0 4 1;4 3 3"}], "query_input": "0 3 2;1 1 2;3 3 3", "query_output": "2 3 0;2 1 1;3 3 3"} |
| {"task_id": "icgr-00181", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "2 3 2 2 1;1 0 3 1 3;2 0 0 0 2;1 1 1 2 0;1 2 1 0 2", "output": "2 2 2 2 2;2 0 3 1 2;2 0 0 0 2;2 1 1 2 2;2 2 2 2 2"}, {"input": "2 2 1 1 1;2 3 2 1 3;2 0 2 0 0;0 2 3 2 3;0 0 3 1 2", "output": "2 2 2 2 2;2 3 2 1 2;2 0 2 0 2;2 2 3 2 2;2 2 2 2 2"}, {"input": "3 1 3 0 3;0 1 1 3 1;3 3 1 0 0;2 1 3 3 1;3 3 2 3 1", "output": "2 2 2 2 2;2 1 1 3 2;2 3 1 0 2;2 1 3 3 2;2 2 2 2 2"}], "query_input": "3 0 3 3 0;1 1 3 0 2;0 0 3 2 0;1 0 2 3 0;1 2 0 1 1", "query_output": "2 2 2 2 2;2 1 3 0 2;2 0 3 2 2;2 0 2 3 2;2 2 2 2 2"} |
| {"task_id": "icgr-00396", "rule": "add_mod+flip_h", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "5 2 4;5 5 4;5 0 4;5 0 0;5 3 4", "output": "2 0 3;2 3 3;2 4 3;4 4 3;2 1 3"}, {"input": "2 4 3;4 0 0;3 3 2;2 2 4;3 0 0", "output": "1 2 0;4 4 2;0 1 1;2 0 0;4 4 1"}], "query_input": "4 3 2;3 3 5;2 5 3;3 3 0;5 4 1", "query_output": "0 1 2;3 1 1;1 3 0;4 1 1;5 2 3"} |
| {"task_id": "icgr-00503", "rule": "border+add_mod", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "1 4 4 1 1;0 4 1 4 1;4 2 4 2 1", "output": "4 4 4 4 4;4 3 0 3 4;4 4 4 4 4"}, {"input": "4 3 3 4 3;1 1 1 3 1;0 3 2 2 3", "output": "4 4 4 4 4;4 0 0 2 4;4 4 4 4 4"}, {"input": "1 4 4 0 1;4 4 2 2 4;4 2 0 2 0", "output": "4 4 4 4 4;4 3 1 1 4;4 4 4 4 4"}], "query_input": "2 2 3 1 2;3 2 0 2 4;3 1 1 0 1", "query_output": "4 4 4 4 4;4 1 4 1 4;4 4 4 4 4"} |
| {"task_id": "icgr-00902", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "2 1 2 0 3;3 2 1 1 3;3 1 0 3 0;3 0 0 0 1", "output": "3 3 3 2;0 1 2 1;0 0 1 2;0 3 1 0;1 0 3 3"}, {"input": "3 1 2 3 0;0 2 1 3 2;1 3 1 0 3;3 0 3 2 1", "output": "3 1 0 3;0 3 2 1;3 1 1 2;2 0 3 3;1 3 2 0"}, {"input": "3 1 1 0 3;2 2 1 1 0;0 0 0 3 1;2 0 0 2 2", "output": "2 0 2 3;0 0 2 1;0 0 1 1;2 3 1 0;2 1 0 3"}], "query_input": "1 1 0 0 2;2 0 2 0 1;0 1 1 1 2;1 0 1 0 3", "query_output": "1 0 2 1;0 1 0 1;1 1 2 0;0 1 0 0;3 2 1 2"} |
| {"task_id": "icgr-00273", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "0 3 4;5 5 1;0 3 3", "output": "0 3 3;5 5 1;0 3 4"}, {"input": "2 5 3;3 5 2;2 5 0", "output": "2 5 0;3 5 2;2 5 3"}], "query_input": "2 1 5;3 2 5;2 3 1", "query_output": "2 3 1;3 2 5;2 1 5"} |
| {"task_id": "icgr-00736", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "0 3 3;3 3 2;1 1 3", "output": "3 0 0;0 0 2;1 1 0"}, {"input": "0 2 1;3 1 3;3 3 3", "output": "3 2 1;0 1 0;0 0 0"}, {"input": "2 2 2;3 1 1;0 2 1", "output": "2 2 2;0 1 1;3 2 1"}, {"input": "3 0 2;0 1 2;3 1 0", "output": "0 3 2;3 1 2;0 1 3"}], "query_input": "2 3 0;3 2 1;1 0 0", "query_output": "2 0 3;0 2 1;1 3 3"} |
| {"task_id": "icgr-00359", "rule": "flip_h+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "2 3 4 1 0;1 1 2 0 3;2 3 1 2 1", "output": "3 4 2 1 0;1 3 0 4 4;4 0 4 1 0"}, {"input": "4 1 3 3 3;2 0 4 1 4;3 4 1 3 4", "output": "1 1 1 4 2;2 4 2 3 0;2 1 4 2 1"}, {"input": "3 2 1 1 3;2 4 3 1 1;3 1 0 4 4", "output": "1 4 4 0 1;4 4 1 2 0;2 2 3 4 1"}, {"input": "0 1 0 1 1;3 2 1 0 0;1 1 2 1 4", "output": "4 4 3 4 3;3 3 4 0 1;2 4 0 4 4"}], "query_input": "0 0 2 2 3;1 4 3 3 0;4 4 4 4 2", "query_output": "1 0 0 3 3;3 1 1 2 4;0 2 2 2 2"} |
| {"task_id": "icgr-00986", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "3 0 1 4 3;1 1 1 2 3;4 3 3 1 4;4 4 4 4 4;4 1 5 0 3", "output": "3 3 0 1 4;3 1 1 1 2;4 4 3 3 1;4 4 4 4 4;3 4 1 5 0"}, {"input": "3 0 5 2 4;5 2 3 5 5;1 0 0 2 0;5 4 4 3 4;3 2 1 4 4", "output": "4 3 0 5 2;5 5 2 3 5;0 1 0 0 2;4 5 4 4 3;4 3 2 1 4"}, {"input": "3 5 0 1 5;3 4 2 4 4;0 0 1 0 4;2 5 2 1 5;3 0 0 3 0", "output": "5 3 5 0 1;4 3 4 2 4;4 0 0 1 0;5 2 5 2 1;0 3 0 0 3"}, {"input": "1 2 0 5 5;3 0 3 3 0;1 3 2 1 0;5 2 0 2 3;2 0 3 2 5", "output": "5 1 2 0 5;0 3 0 3 3;0 1 3 2 1;3 5 2 0 2;5 2 0 3 2"}], "query_input": "5 4 5 2 1;5 3 5 5 2;3 1 0 2 5;0 5 0 5 4;2 5 4 3 3", "query_output": "1 5 4 5 2;2 5 3 5 5;5 3 1 0 2;4 0 5 0 5;3 2 5 4 3"} |
| {"task_id": "icgr-00133", "rule": "color_swap+flip_h", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "1 3 0 4;1 3 1 0;1 3 2 3;2 3 4 3", "output": "4 2 3 1;2 1 3 1;3 0 3 1;3 4 3 0"}, {"input": "1 0 2 0;2 4 1 4;0 2 4 3;0 4 1 2", "output": "2 0 2 1;4 1 4 0;3 4 0 2;0 1 4 2"}], "query_input": "4 3 4 0;3 4 0 0;4 4 3 3;3 0 3 2", "query_output": "2 4 3 4;2 2 4 3;3 3 4 4;0 3 2 3"} |
| {"task_id": "icgr-00645", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "2 2 1;4 0 4;4 1 0;2 0 0", "output": "0 0 1;4 2 4;4 1 2;0 2 2"}, {"input": "2 4 1;4 3 1;1 2 3;1 3 3", "output": "0 4 1;4 3 1;1 0 3;1 3 3"}, {"input": "2 1 2;0 1 2;4 0 0;4 4 4", "output": "0 1 0;2 1 0;4 2 2;4 4 4"}], "query_input": "4 0 3;1 4 1;1 0 1;4 1 1", "query_output": "4 2 3;1 4 1;1 2 1;4 1 1"} |
| {"task_id": "icgr-00102", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "0 2 0 3 1;2 3 3 1 2;1 1 1 1 2", "output": "0 2 0 1 3;2 1 1 3 2;3 3 3 3 2"}, {"input": "1 0 1 2 0;0 1 3 3 3;2 1 0 1 1", "output": "3 0 3 2 0;0 3 1 1 1;2 3 0 3 3"}, {"input": "3 2 2 0 2;2 1 3 0 1;2 1 3 1 0", "output": "1 2 2 0 2;2 3 1 0 3;2 3 1 3 0"}], "query_input": "1 0 2 1 1;2 0 3 2 3;1 1 3 0 2", "query_output": "3 0 2 3 3;2 0 1 2 1;3 3 1 0 2"} |
| {"task_id": "icgr-00326", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "4 2 5 2;3 4 4 4;5 4 5 0", "output": "3 1 4 1;2 3 3 3;4 3 4 5"}, {"input": "1 1 0 2;3 3 1 3;3 5 4 3", "output": "0 0 5 1;2 2 0 2;2 4 3 2"}], "query_input": "0 4 0 0;5 5 4 4;3 5 2 3", "query_output": "5 3 5 5;4 4 3 3;2 4 1 2"} |
| {"task_id": "icgr-00967", "rule": "color_swap+flip_v", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "0 0 4 3 0;1 1 0 4 1;4 2 3 4 0", "output": "4 2 3 4 0;1 1 0 4 1;0 0 4 3 0"}, {"input": "3 4 0 0 4;0 3 2 2 3;2 4 1 3 2", "output": "2 4 1 3 2;0 3 2 2 3;3 4 0 0 4"}], "query_input": "4 4 1 3 3;0 4 0 0 0;0 1 0 0 0", "query_output": "0 1 0 0 0;0 4 0 0 0;4 4 1 3 3"} |
| {"task_id": "icgr-00235", "rule": "add_mod+flip_h", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "0 3 2 3;1 3 1 3;2 4 2 4", "output": "2 1 2 4;2 0 2 0;3 1 3 1"}, {"input": "1 3 0 2;1 0 0 1;2 1 2 1", "output": "1 4 2 0;0 4 4 0;0 1 0 1"}, {"input": "0 2 2 1;1 3 1 3;1 1 0 1", "output": "0 1 1 4;2 0 2 0;0 4 0 0"}], "query_input": "0 0 0 2;4 4 3 3;0 1 1 4", "query_output": "1 4 4 4;2 2 3 3;3 0 0 4"} |
| {"task_id": "icgr-00541", "rule": "shift_rows+add_mod", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "5 0 1 0 3;4 2 1 3 1;2 3 5 2 0;1 2 2 0 2;4 5 0 2 0", "output": "0 2 3 4 3;4 1 5 4 0;3 5 0 2 5;5 4 5 5 3;3 1 2 3 5"}, {"input": "2 4 0 3 4;3 2 4 4 0;0 2 2 3 2;2 4 3 1 5;3 0 4 1 1", "output": "1 5 1 3 0;3 0 5 1 1;5 3 5 5 0;2 5 1 0 4;4 0 3 1 4"}, {"input": "3 5 4 4 3;1 4 2 1 0;4 1 2 0 3;1 2 4 2 5;4 3 4 1 1", "output": "0 0 2 1 1;3 4 1 5 4;0 1 4 5 3;2 4 5 1 5;4 1 0 1 4"}], "query_input": "2 0 4 5 1;0 2 2 2 3;5 3 3 1 5;5 4 3 2 5;1 4 4 0 1", "query_output": "4 5 3 1 2;0 3 5 5 5;2 2 0 0 4;2 2 1 0 5;4 4 1 1 3"} |
| {"task_id": "icgr-00877", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "2 5 1 0 5;4 3 4 4 1;5 1 3 5 4;0 4 4 4 1;0 5 2 5 0", "output": "1 1 1 1 1;1 3 4 4 1;1 1 3 5 1;1 4 4 4 1;1 1 1 1 1"}, {"input": "1 3 4 0 3;5 3 3 3 1;4 2 1 0 0;4 5 2 0 1;5 0 4 5 3", "output": "1 1 1 1 1;1 3 3 3 1;1 2 1 0 1;1 5 2 0 1;1 1 1 1 1"}, {"input": "5 2 1 4 2;4 5 2 5 3;3 1 0 2 2;2 2 0 1 0;5 5 3 3 2", "output": "1 1 1 1 1;1 5 2 5 1;1 1 0 2 1;1 2 0 1 1;1 1 1 1 1"}], "query_input": "1 3 4 5 5;3 1 1 0 0;5 4 4 2 1;4 1 0 5 4;3 1 2 1 3", "query_output": "1 1 1 1 1;1 1 1 0 1;1 4 4 2 1;1 1 0 5 1;1 1 1 1 1"} |
| {"task_id": "icgr-00150", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "0 3 3 2;3 4 2 3;4 2 2 4;4 2 0 1;1 4 3 2", "output": "2 3 3 0;3 2 4 3;4 2 2 4;1 0 2 4;2 3 4 1"}, {"input": "2 2 0 3;2 0 3 0;0 2 0 2;4 3 3 3;4 2 0 0", "output": "3 0 2 2;0 3 0 2;2 0 2 0;3 3 3 4;0 0 2 4"}, {"input": "2 1 2 4;0 3 4 3;2 1 2 3;2 4 0 3;3 1 1 1", "output": "4 2 1 2;3 4 3 0;3 2 1 2;3 0 4 2;1 1 1 3"}], "query_input": "0 1 2 0;2 2 0 3;2 2 3 2;2 1 0 1;2 2 4 2", "query_output": "0 2 1 0;3 0 2 2;2 3 2 2;1 0 1 2;2 4 2 2"} |
| {"task_id": "icgr-00195", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 4, "grid_w": 6, "num_support": 4, "support": [{"input": "2 1 2 0 0 3;0 2 2 0 3 0;0 1 2 0 3 1;1 3 1 3 3 3", "output": "2 2 3;3 3 3"}, {"input": "3 1 0 0 2 0;3 2 1 2 2 3;1 3 2 0 3 3;3 0 0 0 0 1", "output": "3 2 3;3 2 3"}, {"input": "2 2 2 1 2 3;0 0 0 1 0 3;0 2 0 1 0 1;3 1 1 1 2 3", "output": "2 2 3;3 1 3"}, {"input": "1 2 2 3 0 0;1 1 2 3 0 1;0 2 2 2 0 3;3 2 1 2 3 3", "output": "2 3 1;3 2 3"}], "query_input": "2 1 1 2 1 2;1 1 2 0 0 2;2 3 3 1 1 3;2 3 2 3 0 1", "query_output": "2 2 2;3 3 3"} |
| {"task_id": "icgr-00419", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "2 0 0;4 2 3;5 5 3", "output": "4 0 0;2 4 3;5 5 3"}, {"input": "0 1 3;0 4 4;2 3 0", "output": "0 1 3;0 2 2;4 3 0"}, {"input": "0 2 4;1 2 2;2 5 3", "output": "0 4 2;1 4 4;4 5 3"}, {"input": "5 4 2;2 2 5;1 3 4", "output": "5 2 4;4 4 5;1 3 2"}], "query_input": "5 2 0;5 2 0;1 1 3", "query_output": "5 4 0;5 4 0;1 1 3"} |
| {"task_id": "icgr-00094", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "1 0 0 2;5 4 5 2;2 3 4 2", "output": "2 5 1;3 4 0;4 5 0;2 2 2"}, {"input": "4 4 2 4;5 5 1 5;3 2 4 3", "output": "3 5 4;2 5 4;4 1 2;3 5 4"}, {"input": "4 0 2 5;0 5 2 0;0 4 5 2", "output": "0 0 4;4 5 0;5 2 2;2 0 5"}], "query_input": "1 2 0 2;1 3 3 3;2 0 3 5", "query_output": "2 1 1;0 3 2;3 3 0;5 3 2"} |
| {"task_id": "icgr-00727", "rule": "flip_v+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "4 2 3 2;3 4 3 2;4 0 3 1;4 0 0 4", "output": "2 3 3 2;2 3 1 4;1 2 1 0;2 0 1 0"}, {"input": "3 1 4 2;2 0 2 1;1 2 2 0;0 0 1 4", "output": "3 3 4 2;4 0 0 3;0 3 0 4;1 4 2 0"}], "query_input": "3 2 0 3;4 2 4 4;2 1 0 4;1 0 3 4", "query_output": "4 3 1 2;0 4 3 2;2 0 2 2;1 0 3 1"} |
| {"task_id": "icgr-00302", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "0 3 3 2 2;3 0 1 2 2;1 2 3 3 2;2 2 2 1 3", "output": "2 1 3 0;2 2 0 3;2 3 1 3;1 3 2 2;3 2 2 2"}, {"input": "2 3 1 1 3;3 0 3 2 1;3 2 1 0 1;2 1 1 2 0", "output": "2 3 3 2;1 2 0 3;1 1 3 1;2 0 2 1;0 1 1 3"}], "query_input": "1 0 1 1 3;2 0 1 1 2;1 1 3 3 3;2 3 0 1 0", "query_output": "2 1 2 1;3 1 0 0;0 3 1 1;1 3 1 1;0 3 2 3"} |
| {"task_id": "icgr-00345", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "5 3 0 5;0 3 1 1;1 4 2 2;2 0 2 4;2 1 0 2", "output": "2 1 0 2;2 0 2 4;1 4 2 2;0 3 1 1;5 3 0 5"}, {"input": "1 1 3 5;5 3 1 4;5 2 4 4;1 2 5 2;0 3 4 4", "output": "0 3 4 4;1 2 5 2;5 2 4 4;5 3 1 4;1 1 3 5"}], "query_input": "1 0 2 3;1 5 3 1;2 5 2 4;5 0 0 1;5 3 1 2", "query_output": "5 3 1 2;5 0 0 1;2 5 2 4;1 5 3 1;1 0 2 3"} |
| {"task_id": "icgr-00780", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "3 3 2;0 4 2;4 0 1;3 1 1;1 0 1", "output": "2 3 3;2 4 0;1 0 4;1 1 3;1 0 1"}, {"input": "2 2 3;3 0 2;2 3 2;0 2 2;2 2 4", "output": "3 2 2;2 0 3;2 3 2;2 2 0;4 2 2"}, {"input": "4 2 3;2 4 1;2 4 4;2 0 1;2 4 0", "output": "3 2 4;1 4 2;4 4 2;1 0 2;0 4 2"}, {"input": "1 0 2;1 3 1;4 3 4;0 2 1;3 4 2", "output": "2 0 1;1 3 1;4 3 4;1 2 0;2 4 3"}], "query_input": "1 1 2;0 2 3;1 4 4;2 3 3;0 4 1", "query_output": "2 1 1;3 2 0;4 4 1;3 3 2;1 4 0"} |
| {"task_id": "icgr-00889", "rule": "border+color_swap", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "3 1 2 2;3 2 1 3;2 3 3 3;0 2 1 2;0 1 1 0", "output": "2 2 2 2;2 2 3 2;2 1 1 2;2 2 3 2;2 2 2 2"}, {"input": "1 2 3 3;2 3 2 0;0 2 2 3;3 0 0 2;2 3 3 3", "output": "2 2 2 2;2 1 2 2;2 2 2 2;2 0 0 2;2 2 2 2"}, {"input": "3 2 1 1;2 3 1 2;1 3 0 1;0 2 3 1;2 2 3 2", "output": "2 2 2 2;2 1 3 2;2 1 0 2;2 2 1 2;2 2 2 2"}], "query_input": "3 2 1 3;0 3 0 3;1 2 3 2;0 2 3 2;1 3 1 3", "query_output": "2 2 2 2;2 1 0 2;2 2 1 2;2 2 1 2;2 2 2 2"} |
| {"task_id": "icgr-00045", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 5, "grid_h": 4, "grid_w": 6, "num_support": 3, "support": [{"input": "3 0 4 3 2 1;3 0 0 1 1 1;2 1 3 2 3 1;4 4 1 1 0 0", "output": "3 4 2;4 3 3"}, {"input": "3 2 0 0 1 4;4 2 2 0 2 2;3 4 1 2 1 4;1 4 4 4 4 0", "output": "4 2 4;4 4 4"}, {"input": "0 0 1 2 1 4;3 3 4 0 0 3;2 0 4 3 0 1;1 4 0 1 2 2", "output": "3 4 4;4 4 2"}], "query_input": "2 0 2 2 3 4;4 1 3 4 4 4;1 4 1 3 3 0;2 1 4 4 4 0", "query_output": "4 4 4;4 4 4"} |
| {"task_id": "icgr-00836", "rule": "flip_h+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "2 0 1 1 0;1 1 2 4 3;1 5 3 2 0;3 4 3 3 1;5 1 1 4 1", "output": "0 4 4 0 2;3 1 2 4 4;0 2 3 5 4;4 3 3 1 3;4 1 4 4 5"}, {"input": "3 4 1 2 4;1 2 5 0 5;2 4 3 3 1;1 1 0 4 3;3 5 1 5 2", "output": "1 2 4 1 3;5 0 5 2 4;4 3 3 1 2;3 1 0 4 4;2 5 4 5 3"}, {"input": "0 4 3 0 0;5 1 4 4 1;2 3 4 4 3;2 1 5 1 2;0 4 1 3 1", "output": "0 0 3 1 0;4 1 1 4 5;3 1 1 3 2;2 4 5 4 2;4 3 4 1 0"}, {"input": "5 4 2 4 1;3 3 5 5 3;2 0 3 3 3;1 3 3 3 2;5 3 5 3 2", "output": "4 1 2 1 5;3 5 5 3 3;3 3 3 0 2;2 3 3 3 4;2 3 5 3 5"}], "query_input": "1 5 3 4 0;1 4 1 5 2;5 3 3 1 0;5 2 0 0 4;3 3 5 1 2", "query_output": "0 1 3 5 4;2 5 4 1 4;0 4 3 3 5;1 0 0 2 5;2 4 5 3 3"} |
| {"task_id": "icgr-00229", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "1 3 1;0 3 2;0 1 3;0 0 0", "output": "0 0 0;0 1 3;0 3 2;1 3 1"}, {"input": "3 0 0;3 0 1;0 3 0;3 1 3", "output": "3 1 3;0 3 0;3 0 1;3 0 0"}], "query_input": "1 2 1;2 1 1;0 0 2;3 3 0", "query_output": "3 3 0;0 0 2;2 1 1;1 2 1"} |
| {"task_id": "icgr-00489", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "0 3 3;1 3 1;1 1 2;1 1 0", "output": "0 3 3 0 3 3;1 3 1 1 3 1;1 1 2 1 1 2;1 1 0 1 1 0"}, {"input": "4 1 1;4 4 4;2 1 0;2 3 1", "output": "4 1 1 4 1 1;4 4 4 4 4 4;2 1 0 2 1 0;2 3 1 2 3 1"}], "query_input": "1 4 2;3 2 0;4 1 4;3 2 3", "query_output": "1 4 2 1 4 2;3 2 0 3 2 0;4 1 4 4 1 4;3 2 3 3 2 3"} |
| {"task_id": "icgr-00201", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "3 0 0 0 3;0 0 1 0 1;3 3 3 1 2;2 1 1 1 0;1 3 3 0 3", "output": "3 0 0 0 3;1 0 1 0 0;2 1 3 3 3;0 1 1 1 2;3 0 3 3 1"}, {"input": "2 0 2 0 0;1 1 3 1 1;0 1 1 0 1;3 1 0 0 1;1 0 2 2 0", "output": "0 0 2 0 2;1 1 3 1 1;1 0 1 1 0;1 0 0 1 3;0 2 2 0 1"}, {"input": "3 0 0 0 3;2 1 2 3 0;0 2 1 3 3;0 0 3 0 1;3 2 1 3 2", "output": "3 0 0 0 3;0 3 2 1 2;3 3 1 2 0;1 0 3 0 0;2 3 1 2 3"}, {"input": "0 2 0 2 2;1 3 3 2 2;3 3 0 2 0;2 2 3 2 0;1 0 3 3 3", "output": "2 2 0 2 0;2 2 3 3 1;0 2 0 3 3;0 2 3 2 2;3 3 3 0 1"}], "query_input": "2 2 3 1 0;3 3 3 0 2;3 0 3 3 2;0 3 1 3 3;3 1 0 0 3", "query_output": "0 1 3 2 2;2 0 3 3 3;2 3 3 0 3;3 3 1 3 0;3 0 0 1 3"} |
| {"task_id": "icgr-00000", "rule": "border+flip_v", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "4 0 1 1;3 0 2 3;2 0 0 2;1 1 2 1", "output": "4 4 4 4;4 0 0 4;4 0 2 4;4 4 4 4"}, {"input": "4 3 4 0;2 1 3 1;1 1 2 1;4 0 1 3", "output": "4 4 4 4;4 1 2 4;4 1 3 4;4 4 4 4"}, {"input": "1 1 3 4;4 3 3 1;4 1 2 4;4 0 4 4", "output": "4 4 4 4;4 1 2 4;4 3 3 4;4 4 4 4"}, {"input": "1 2 2 4;4 4 1 2;1 3 1 0;3 4 2 1", "output": "4 4 4 4;4 3 1 4;4 4 1 4;4 4 4 4"}], "query_input": "1 1 1 0;4 4 3 3;0 4 1 2;0 0 4 4", "query_output": "4 4 4 4;4 4 1 4;4 4 3 4;4 4 4 4"} |
| {"task_id": "icgr-00264", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 5, "grid_h": 4, "grid_w": 6, "num_support": 3, "support": [{"input": "0 4 3 4 1 3;1 1 0 3 3 2;0 1 0 1 2 2;0 1 1 1 1 1", "output": "4 4 3;1 1 2"}, {"input": "4 1 0 4 4 3;3 3 4 3 4 4;0 1 1 4 1 3;3 0 3 0 3 4", "output": "4 4 4;3 4 4"}, {"input": "0 4 2 2 2 4;1 1 0 2 2 4;0 3 4 2 1 0;3 4 3 2 3 4", "output": "4 2 4;4 4 4"}], "query_input": "2 4 3 1 4 3;1 1 3 0 3 2;1 1 0 1 3 0;1 4 0 1 4 4", "query_output": "4 3 4;4 1 4"} |
| {"task_id": "icgr-00078", "rule": "add_mod+border", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "2 4 5;2 0 1;5 3 4", "output": "3 3 3;3 5 3;3 3 3"}, {"input": "2 2 1;0 0 1;0 5 4", "output": "3 3 3;3 5 3;3 3 3"}, {"input": "1 3 5;5 2 4;2 5 0", "output": "3 3 3;3 1 3;3 3 3"}, {"input": "3 4 5;4 4 5;3 5 2", "output": "3 3 3;3 3 3;3 3 3"}], "query_input": "2 0 1;4 2 3;2 5 5", "query_output": "3 3 3;3 1 3;3 3 3"} |
| {"task_id": "icgr-00693", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 4, "grid_w": 6, "num_support": 3, "support": [{"input": "0 2 1 0 3 1;1 0 0 2 2 3;0 2 2 2 0 1;3 0 2 3 1 0", "output": "2 2 3;3 3 1"}, {"input": "0 0 1 3 1 0;2 2 0 3 1 0;1 1 2 2 0 1;2 3 2 3 1 3", "output": "2 3 1;3 3 3"}, {"input": "1 1 3 1 1 1;0 0 2 1 2 2;3 2 0 2 1 0;0 0 3 0 3 2", "output": "1 3 2;3 3 3"}], "query_input": "1 2 0 3 3 1;2 3 0 1 0 0;2 3 3 0 2 2;3 1 2 0 0 1", "query_output": "3 3 3;3 3 2"} |
| {"task_id": "icgr-00831", "rule": "flip_v+flip_h", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "1 1 3 2;3 1 1 1;2 2 1 2;3 2 2 2;0 0 3 2", "output": "2 3 0 0;2 2 2 3;2 1 2 2;1 1 1 3;2 3 1 1"}, {"input": "0 0 0 0;0 2 2 1;2 1 1 1;2 3 1 1;2 2 0 1", "output": "1 0 2 2;1 1 3 2;1 1 1 2;1 2 2 0;0 0 0 0"}], "query_input": "2 0 2 1;2 3 3 0;0 3 2 0;0 2 0 3;3 0 1 3", "query_output": "3 1 0 3;3 0 2 0;0 2 3 0;0 3 3 2;1 2 0 2"} |
| {"task_id": "icgr-00117", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "3 2 0 1 3;5 5 3 1 4;0 2 0 2 5;3 4 3 5 0;1 5 0 2 4", "output": "1 3 0 5 3;5 4 2 5 2;0 3 0 3 0;2 5 2 1 1;4 0 5 4 3"}, {"input": "2 5 3 3 2;2 3 1 3 4;1 3 3 4 5;3 5 0 1 4;0 1 2 4 1", "output": "0 3 1 2 2;1 5 3 3 5;2 0 3 1 3;4 1 4 3 3;1 4 5 4 2"}, {"input": "4 5 4 3 3;2 2 5 3 2;5 3 4 4 2;2 3 4 2 4;3 0 5 5 0", "output": "3 2 5 2 4;0 3 3 2 5;5 4 4 5 4;5 2 4 3 3;0 4 2 2 3"}, {"input": "5 3 2 5 2;2 2 2 3 5;0 3 2 2 5;4 5 4 4 3;4 3 0 5 2", "output": "4 4 0 2 5;3 5 3 2 3;0 4 2 2 2;5 4 2 3 5;2 3 5 5 2"}], "query_input": "3 1 5 5 4;1 4 4 2 5;5 3 4 1 5;0 1 0 0 3;4 1 1 0 1", "query_output": "4 0 5 1 3;1 1 3 4 1;1 0 4 4 5;0 0 1 2 5;1 3 5 5 4"} |
| {"task_id": "icgr-00402", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "2 2 2 1;1 3 3 0;1 3 0 2;2 0 2 1", "output": "2 2 2 1 2 2 2 1;1 3 3 0 1 3 3 0;1 3 0 2 1 3 0 2;2 0 2 1 2 0 2 1"}, {"input": "3 0 2 2;3 3 0 2;1 1 2 2;2 0 0 1", "output": "3 0 2 2 3 0 2 2;3 3 0 2 3 3 0 2;1 1 2 2 1 1 2 2;2 0 0 1 2 0 0 1"}, {"input": "2 1 1 2;0 2 0 1;1 2 2 1;3 3 3 2", "output": "2 1 1 2 2 1 1 2;0 2 0 1 0 2 0 1;1 2 2 1 1 2 2 1;3 3 3 2 3 3 3 2"}, {"input": "3 0 3 3;3 1 1 3;1 2 2 0;3 2 2 2", "output": "3 0 3 3 3 0 3 3;3 1 1 3 3 1 1 3;1 2 2 0 1 2 2 0;3 2 2 2 3 2 2 2"}], "query_input": "2 1 0 0;1 3 0 3;2 2 3 3;3 2 0 2", "query_output": "2 1 0 0 2 1 0 0;1 3 0 3 1 3 0 3;2 2 3 3 2 2 3 3;3 2 0 2 3 2 0 2"} |
| {"task_id": "icgr-00245", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "1 2 3;3 2 1;3 0 1;1 3 3", "output": "1 3 3 1;2 2 0 3;3 1 1 3"}, {"input": "1 1 0;0 1 2;3 3 3;1 3 2", "output": "1 0 3 1;1 1 3 3;0 2 3 2"}], "query_input": "2 0 0;0 2 2;3 1 0;2 3 3", "query_output": "2 0 3 2;0 2 1 3;0 2 0 3"} |
| {"task_id": "icgr-00106", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "5 0 1 1 0;2 3 1 0 1;1 0 4 4 4;1 0 4 4 1", "output": "5 2 1 1;0 3 0 0;1 1 4 4;1 0 4 4;0 1 4 1"}, {"input": "2 3 5 1 0;3 4 2 0 2;0 5 3 4 0;3 4 5 1 0", "output": "2 3 0 3;3 4 5 4;5 2 3 5;1 0 4 1;0 2 0 0"}], "query_input": "1 2 1 4 2;0 4 4 0 3;1 5 4 0 2;2 3 0 5 3", "query_output": "1 0 1 2;2 4 5 3;1 4 4 0;4 0 0 5;2 3 2 3"} |
| {"task_id": "icgr-00966", "rule": "color_swap+add_mod", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "3 1 3 1 2;0 3 2 3 3;0 1 2 3 3;0 2 3 2 2;3 0 0 3 1", "output": "0 2 0 2 1;3 0 1 0 0;3 2 1 0 0;3 1 0 1 1;0 3 3 0 2"}, {"input": "3 0 3 1 1;0 0 2 1 2;3 3 0 0 1;2 0 2 2 1;3 3 1 3 3", "output": "0 3 0 2 2;3 3 1 2 1;0 0 3 3 2;1 3 1 1 2;0 0 2 0 0"}, {"input": "1 1 0 3 0;3 3 1 0 1;3 0 3 0 2;2 1 1 0 2;1 1 0 3 3", "output": "2 2 3 0 3;0 0 2 3 2;0 3 0 3 1;1 2 2 3 1;2 2 3 0 0"}, {"input": "3 2 0 0 1;3 3 2 0 2;2 2 3 1 2;3 0 0 2 3;0 1 0 3 3", "output": "0 1 3 3 2;0 0 1 3 1;1 1 0 2 1;0 3 3 1 0;3 2 3 0 0"}], "query_input": "2 0 1 0 1;0 1 1 1 1;2 2 1 3 1;0 2 3 2 0;1 1 3 2 1", "query_output": "1 3 2 3 2;3 2 2 2 2;1 1 2 0 2;3 1 0 1 3;2 2 0 1 2"} |
| {"task_id": "icgr-00405", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "3 3 1;2 0 0;2 0 0;2 0 3", "output": "2 2 2;2 0 2;2 0 2;2 2 2"}, {"input": "3 3 3;2 2 0;1 3 3;1 2 1", "output": "2 2 2;2 2 2;2 3 2;2 2 2"}, {"input": "0 2 3;3 3 3;2 3 2;3 3 3", "output": "2 2 2;2 3 2;2 3 2;2 2 2"}], "query_input": "3 3 0;2 0 3;2 2 1;2 0 2", "query_output": "2 2 2;2 0 2;2 2 2;2 2 2"} |
| {"task_id": "icgr-00775", "rule": "shift_rows+border", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "0 3 0;2 2 3;1 3 0", "output": "1 1 1;1 2 1;1 1 1"}, {"input": "0 2 3;3 3 1;3 0 1", "output": "1 1 1;1 3 1;1 1 1"}], "query_input": "3 1 0;0 0 2;0 1 2", "query_output": "1 1 1;1 0 1;1 1 1"} |
| {"task_id": "icgr-00301", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "1 2 3 2;1 1 2 1;3 1 2 2", "output": "0 1 2 1;0 0 1 0;2 0 1 1"}, {"input": "1 0 0 1;2 1 1 3;0 3 3 1", "output": "0 3 3 0;1 0 0 2;3 2 2 0"}, {"input": "2 2 3 3;0 2 2 2;2 0 1 0", "output": "1 1 2 2;3 1 1 1;1 3 0 3"}], "query_input": "1 3 3 2;1 0 3 1;2 2 0 3", "query_output": "0 2 2 1;0 3 2 0;1 1 3 2"} |
| {"task_id": "icgr-00833", "rule": "border+shift_rows", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "2 4 1 5 2;5 3 5 3 1;3 0 4 5 4", "output": "0 0 0 0 0;0 0 3 5 3;0 0 0 0 0"}, {"input": "3 0 2 3 5;3 1 5 4 3;1 1 5 1 0", "output": "0 0 0 0 0;0 0 1 5 4;0 0 0 0 0"}, {"input": "1 3 2 5 2;0 5 5 4 1;2 2 0 0 0", "output": "0 0 0 0 0;0 0 5 5 4;0 0 0 0 0"}], "query_input": "3 0 3 5 2;0 2 5 2 3;5 3 4 3 5", "query_output": "0 0 0 0 0;0 0 2 5 2;0 0 0 0 0"} |
| {"task_id": "icgr-00105", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "1 3 2 0;3 3 2 1;0 3 2 4", "output": "2 4 3 1;4 4 3 2;1 4 3 0"}, {"input": "0 3 3 4;4 3 4 4;0 1 3 2", "output": "1 4 4 0;0 4 0 0;1 2 4 3"}], "query_input": "0 2 4 3;2 1 0 1;1 2 4 1", "query_output": "1 3 0 4;3 2 1 2;2 3 0 2"} |
| {"task_id": "icgr-00252", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "4 3 3 1;4 2 2 3;0 1 3 1;2 4 4 4;0 2 1 0", "output": "4 3 3 1;4 2 2 3;0 1 3 1;2 4 4 4;0 2 1 0"}, {"input": "3 0 1 1;0 5 2 5;1 4 5 5;0 3 5 4;0 1 0 3", "output": "3 0 1 1;0 5 2 5;1 4 5 5;0 3 5 4;0 1 0 3"}, {"input": "0 2 4 5;4 4 0 2;0 0 4 3;1 1 4 1;2 3 3 3", "output": "0 2 4 5;4 4 0 2;0 0 4 3;1 1 4 1;2 3 3 3"}], "query_input": "2 3 2 4;0 5 2 3;3 0 5 0;0 0 0 4;0 1 3 2", "query_output": "2 3 2 4;0 5 2 3;3 0 5 0;0 0 0 4;0 1 3 2"} |
| {"task_id": "icgr-00223", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "0 2 2;2 4 2;1 0 1;3 5 5;5 0 0", "output": "1 1 1;1 4 1;1 0 1;1 5 1;1 1 1"}, {"input": "4 1 0;3 2 2;2 0 1;4 0 0;1 3 2", "output": "1 1 1;1 2 1;1 0 1;1 0 1;1 1 1"}, {"input": "3 2 3;0 2 0;5 1 2;5 2 0;5 0 1", "output": "1 1 1;1 2 1;1 1 1;1 2 1;1 1 1"}, {"input": "0 2 0;2 2 1;1 2 1;5 1 5;2 1 3", "output": "1 1 1;1 2 1;1 2 1;1 1 1;1 1 1"}], "query_input": "3 5 3;0 0 4;1 0 5;4 4 3;2 1 2", "query_output": "1 1 1;1 0 1;1 0 1;1 4 1;1 1 1"} |
| {"task_id": "icgr-00588", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "3 0 0 1;2 3 1 2;2 2 1 0;0 3 1 0", "output": "3 0 0 1 3 0 0 1;2 3 1 2 2 3 1 2;2 2 1 0 2 2 1 0;0 3 1 0 0 3 1 0"}, {"input": "0 1 1 0;2 3 2 3;3 3 1 1;2 3 3 0", "output": "0 1 1 0 0 1 1 0;2 3 2 3 2 3 2 3;3 3 1 1 3 3 1 1;2 3 3 0 2 3 3 0"}, {"input": "0 2 1 0;1 0 2 1;3 2 1 0;3 0 1 3", "output": "0 2 1 0 0 2 1 0;1 0 2 1 1 0 2 1;3 2 1 0 3 2 1 0;3 0 1 3 3 0 1 3"}, {"input": "3 1 0 1;2 0 0 0;0 0 3 2;0 2 3 2", "output": "3 1 0 1 3 1 0 1;2 0 0 0 2 0 0 0;0 0 3 2 0 0 3 2;0 2 3 2 0 2 3 2"}], "query_input": "3 2 2 0;1 0 3 2;0 0 1 3;0 0 2 0", "query_output": "3 2 2 0 3 2 2 0;1 0 3 2 1 0 3 2;0 0 1 3 0 0 1 3;0 0 2 0 0 0 2 0"} |
| {"task_id": "icgr-00784", "rule": "shift_rows+flip_v", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "2 0 3 1;4 0 2 0;3 4 3 1;0 3 4 0;4 2 1 3", "output": "1 3 4 2;4 0 0 3;3 1 3 4;2 0 4 0;3 1 2 0"}, {"input": "1 0 4 4;4 0 0 0;0 1 1 0;0 0 4 0;2 1 0 3", "output": "0 3 2 1;4 0 0 0;1 0 0 1;0 0 4 0;4 4 1 0"}, {"input": "4 4 1 2;1 4 2 0;2 4 3 2;3 1 0 0;3 2 4 4", "output": "4 4 3 2;0 0 3 1;3 2 2 4;2 0 1 4;1 2 4 4"}], "query_input": "3 0 4 1;0 2 1 4;1 1 4 0;4 0 3 3;3 3 2 3", "query_output": "2 3 3 3;3 3 4 0;4 0 1 1;1 4 0 2;4 1 3 0"} |
| {"task_id": "icgr-00514", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "2 0 3;3 4 2;0 3 2;0 1 3;3 2 2", "output": "0 0 0;0 4 0;0 3 0;0 1 0;0 0 0"}, {"input": "3 0 0;4 2 2;0 2 3;3 2 0;1 1 2", "output": "0 0 0;0 2 0;0 2 0;0 2 0;0 0 0"}, {"input": "1 1 3;1 3 0;0 0 0;0 0 4;2 4 3", "output": "0 0 0;0 3 0;0 0 0;0 0 0;0 0 0"}, {"input": "1 2 3;3 2 3;0 2 2;1 4 3;3 2 3", "output": "0 0 0;0 2 0;0 2 0;0 4 0;0 0 0"}], "query_input": "3 0 3;2 4 1;0 0 0;0 2 1;3 3 3", "query_output": "0 0 0;0 4 0;0 0 0;0 2 0;0 0 0"} |
| {"task_id": "icgr-00597", "rule": "add_mod+shift_rows", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "0 2 0 0 2;1 2 1 0 4;3 3 3 2 4;2 1 1 3 3", "output": "4 2 4 2 2;1 3 4 3 2;1 0 0 0 4;0 4 3 3 0"}, {"input": "1 4 3 3 0;4 4 4 2 2;2 4 4 4 0;1 0 3 2 2", "output": "2 3 1 0 0;4 1 1 1 4;2 4 1 1 1;4 3 2 0 4"}], "query_input": "4 0 4 1 0;1 3 2 2 1;0 1 3 1 4;2 4 4 0 2", "query_output": "2 1 2 1 3;3 3 0 4 4;1 2 3 0 3;4 4 1 1 2"} |
| {"task_id": "icgr-00585", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "1 2 0;1 1 1;2 0 2;3 0 1", "output": "1 2 0 1 2 0;1 1 1 1 1 1;2 0 2 2 0 2;3 0 1 3 0 1"}, {"input": "2 4 0;4 2 4;0 3 4;2 3 2", "output": "2 4 0 2 4 0;4 2 4 4 2 4;0 3 4 0 3 4;2 3 2 2 3 2"}], "query_input": "2 0 0;1 0 3;3 2 2;3 1 0", "query_output": "2 0 0 2 0 0;1 0 3 1 0 3;3 2 2 3 2 2;3 1 0 3 1 0"} |
| {"task_id": "icgr-00846", "rule": "flip_h+flip_v", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "3 5 1 1 0;4 4 4 1 0;5 3 4 3 4;5 0 1 2 1", "output": "1 2 1 0 5;4 3 4 3 5;0 1 4 4 4;0 1 1 5 3"}, {"input": "4 3 4 0 1;5 1 1 4 4;0 2 0 2 0;1 4 5 5 5", "output": "5 5 5 4 1;0 2 0 2 0;4 4 1 1 5;1 0 4 3 4"}], "query_input": "0 0 2 4 0;3 3 2 5 4;2 3 4 3 1;4 3 0 5 3", "query_output": "3 5 0 3 4;1 3 4 3 2;4 5 2 3 3;0 4 2 0 0"} |
| {"task_id": "icgr-00350", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 6, "grid_w": 6, "num_support": 2, "support": [{"input": "2 1 2 5 4 3;3 4 5 0 3 3;4 4 2 4 2 3;1 0 0 3 1 2;0 3 0 3 3 5;4 0 5 0 0 1", "output": "4 5 4;4 4 3;4 5 5"}, {"input": "0 1 3 5 3 3;4 5 2 0 4 3;0 2 2 0 5 4;2 4 3 3 0 1;0 4 5 0 1 1;3 2 3 0 1 5", "output": "5 5 4;4 3 5;4 5 5"}], "query_input": "1 1 3 5 1 3;5 1 1 0 1 2;3 0 2 2 0 1;5 2 0 2 3 4;2 1 1 0 2 0;1 4 5 1 0 1", "query_output": "5 5 3;5 2 4;4 5 2"} |
| {"task_id": "icgr-00016", "rule": "shift_rows+add_mod", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "0 1 2;2 3 2;4 4 1", "output": "4 2 3;4 4 0;3 1 1"}, {"input": "3 0 0;0 0 1;1 1 1", "output": "2 0 2;3 2 2;3 3 3"}, {"input": "4 4 1;1 3 4;2 2 4", "output": "3 1 1;1 3 0;1 4 4"}], "query_input": "4 4 4;3 1 2;4 4 3", "query_output": "1 1 1;4 0 3;0 1 1"} |
| {"task_id": "icgr-00058", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "5 5 3 4 5;1 3 5 2 5;2 0 5 2 1;5 0 3 1 1;1 1 0 4 2", "output": "5 5 3 4 5 5 5 3 4 5;1 3 5 2 5 1 3 5 2 5;2 0 5 2 1 2 0 5 2 1;5 0 3 1 1 5 0 3 1 1;1 1 0 4 2 1 1 0 4 2"}, {"input": "2 5 5 2 2;4 0 3 1 3;1 2 2 1 4;5 0 1 5 2;2 2 0 0 2", "output": "2 5 5 2 2 2 5 5 2 2;4 0 3 1 3 4 0 3 1 3;1 2 2 1 4 1 2 2 1 4;5 0 1 5 2 5 0 1 5 2;2 2 0 0 2 2 2 0 0 2"}], "query_input": "3 1 5 3 3;1 2 4 5 0;0 2 3 3 5;2 2 1 0 0;2 2 5 4 2", "query_output": "3 1 5 3 3 3 1 5 3 3;1 2 4 5 0 1 2 4 5 0;0 2 3 3 5 0 2 3 3 5;2 2 1 0 0 2 2 1 0 0;2 2 5 4 2 2 2 5 4 2"} |
| {"task_id": "icgr-00269", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "2 1 5 1 4;1 1 3 2 3;1 0 0 5 4", "output": "2 1 5 1 4 2 1 5 1 4;1 1 3 2 3 1 1 3 2 3;1 0 0 5 4 1 0 0 5 4"}, {"input": "4 5 5 0 5;0 4 0 1 2;2 4 3 2 2", "output": "4 5 5 0 5 4 5 5 0 5;0 4 0 1 2 0 4 0 1 2;2 4 3 2 2 2 4 3 2 2"}], "query_input": "2 5 4 0 4;2 0 2 3 2;5 4 5 3 3", "query_output": "2 5 4 0 4 2 5 4 0 4;2 0 2 3 2 2 0 2 3 2;5 4 5 3 3 5 4 5 3 3"} |
| {"task_id": "icgr-00619", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "0 1 3 3;4 2 3 2;3 0 1 4;2 0 0 1", "output": "0 4 3 2;1 2 0 0;3 3 1 0;3 2 4 1"}, {"input": "1 4 0 1;3 2 3 2;1 3 3 0;1 1 2 2", "output": "1 3 1 1;4 2 3 1;0 3 3 2;1 2 0 2"}], "query_input": "2 2 3 2;4 3 1 0;1 2 1 0;3 2 0 0", "query_output": "2 4 1 3;2 3 2 2;3 1 1 0;2 0 0 0"} |
| {"task_id": "icgr-00417", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "3 0 2 4 0;0 2 0 4 4;0 3 1 0 3;1 3 1 1 0;0 1 0 2 0", "output": "0 4 2 0 3;4 4 0 2 0;3 0 1 3 0;0 1 1 3 1;0 2 0 1 0"}, {"input": "4 3 1 2 3;0 3 1 3 0;2 4 2 3 1;3 4 1 2 3;3 0 3 3 2", "output": "3 2 1 3 4;0 3 1 3 0;1 3 2 4 2;3 2 1 4 3;2 3 3 0 3"}], "query_input": "2 2 2 2 1;0 2 4 3 3;0 1 1 2 1;3 0 4 2 3;1 4 2 3 2", "query_output": "1 2 2 2 2;3 3 4 2 0;1 2 1 1 0;3 2 4 0 3;2 3 2 4 1"} |
| {"task_id": "icgr-00623", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "3 3 0 4 3;0 2 4 2 4;0 1 4 4 0", "output": "0 0 3;1 2 3;4 4 0;4 2 4;0 4 3"}, {"input": "2 4 4 2 4;2 4 4 3 4;0 4 1 2 0", "output": "0 2 2;4 4 4;1 4 4;2 3 2;0 4 4"}, {"input": "1 3 1 3 2;2 0 2 0 0;1 1 2 0 4", "output": "1 2 1;1 0 3;2 2 1;0 0 3;4 0 2"}], "query_input": "2 2 4 2 3;1 4 2 3 2;0 4 0 3 0", "query_output": "0 1 2;4 4 2;0 2 4;3 3 2;0 2 3"} |
| {"task_id": "icgr-00914", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "0 1 0 1;5 5 5 3;0 0 1 1", "output": "2 3 2 3;1 1 1 5;2 2 3 3"}, {"input": "2 0 1 0;3 5 3 4;5 2 2 5", "output": "4 2 3 2;5 1 5 0;1 4 4 1"}], "query_input": "1 5 4 0;4 0 1 5;5 2 2 5", "query_output": "3 1 0 2;0 2 3 1;1 4 4 1"} |
| {"task_id": "icgr-00101", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "0 1 1 3;3 0 3 2;0 2 3 1", "output": "3 0 0 2;2 3 2 1;3 1 2 0"}, {"input": "2 1 0 0;0 0 3 2;3 3 3 2", "output": "1 0 3 3;3 3 2 1;2 2 2 1"}, {"input": "2 2 0 0;2 0 0 0;3 3 1 1", "output": "1 1 3 3;1 3 3 3;2 2 0 0"}, {"input": "3 2 0 0;1 3 3 0;2 3 2 2", "output": "2 1 3 3;0 2 2 3;1 2 1 1"}], "query_input": "2 1 0 3;1 0 0 3;1 0 0 2", "query_output": "1 0 3 2;0 3 3 2;0 3 3 1"} |
| {"task_id": "icgr-00691", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "0 1 3;0 3 0;2 0 1", "output": "0 1 3 0 1 3;0 3 0 0 3 0;2 0 1 2 0 1"}, {"input": "0 0 0;2 0 0;3 2 3", "output": "0 0 0 0 0 0;2 0 0 2 0 0;3 2 3 3 2 3"}], "query_input": "3 2 0;2 3 0;1 2 0", "query_output": "3 2 0 3 2 0;2 3 0 2 3 0;1 2 0 1 2 0"} |
| {"task_id": "icgr-00519", "rule": "flip_v+flip_h", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "1 2 2 1 0;0 2 0 1 0;2 2 0 2 1", "output": "1 2 0 2 2;0 1 0 2 0;0 1 2 2 1"}, {"input": "3 2 1 0 1;2 3 1 1 3;0 0 0 2 2", "output": "2 2 0 0 0;3 1 1 3 2;1 0 1 2 3"}, {"input": "0 2 3 0 0;3 2 3 1 3;3 0 3 1 1", "output": "1 1 3 0 3;3 1 3 2 3;0 0 3 2 0"}], "query_input": "2 0 2 0 0;0 0 3 0 1;2 2 1 0 0", "query_output": "0 0 1 2 2;1 0 3 0 0;0 0 2 0 2"} |
| {"task_id": "icgr-00777", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "4 1 0;2 2 4;3 2 3;1 4 3;0 4 4", "output": "0 4 4;1 4 3;3 2 3;2 2 4;4 1 0"}, {"input": "3 4 0;2 2 4;4 3 1;1 1 0;0 2 3", "output": "0 2 3;1 1 0;4 3 1;2 2 4;3 4 0"}], "query_input": "3 0 2;4 4 1;0 1 3;0 0 4;3 1 1", "query_output": "3 1 1;0 0 4;0 1 3;4 4 1;3 0 2"} |
| {"task_id": "icgr-00182", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "0 2 0 1 2;0 2 3 3 0;1 0 3 0 2;1 1 1 0 1;2 2 3 2 1", "output": "0 2 0 3 2;0 2 1 1 0;3 0 1 0 2;3 3 3 0 3;2 2 1 2 3"}, {"input": "1 3 1 2 2;3 2 3 2 3;1 3 2 0 0;2 2 1 1 1;2 1 1 1 1", "output": "3 1 3 2 2;1 2 1 2 1;3 1 2 0 0;2 2 3 3 3;2 3 3 3 3"}, {"input": "1 0 0 2 1;1 0 0 2 0;3 1 0 0 0;2 3 3 0 2;1 1 0 1 1", "output": "3 0 0 2 3;3 0 0 2 0;1 3 0 0 0;2 1 1 0 2;3 3 0 3 3"}, {"input": "3 0 0 3 3;1 1 3 2 1;0 3 0 1 3;3 2 0 2 2;2 3 0 1 1", "output": "1 0 0 1 1;3 3 1 2 3;0 1 0 3 1;1 2 0 2 2;2 1 0 3 3"}], "query_input": "1 2 1 0 0;3 1 2 3 1;1 0 0 3 0;1 3 1 3 0;0 3 3 2 3", "query_output": "3 2 3 0 0;1 3 2 1 3;3 0 0 1 0;3 1 3 1 0;0 1 1 2 1"} |
| {"task_id": "icgr-00792", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 6, "grid_w": 4, "num_support": 2, "support": [{"input": "1 2 1 2;3 1 2 2;1 3 3 0;2 2 3 2;0 0 1 2;2 3 2 1", "output": "3 2;3 3;3 2"}, {"input": "0 2 3 1;1 3 1 0;1 0 2 3;3 1 2 1;0 2 3 3;1 3 2 1", "output": "3 3;3 3;3 3"}], "query_input": "1 0 0 2;3 3 1 3;0 0 0 2;3 3 1 2;1 3 1 2;3 1 0 1", "query_output": "3 3;3 2;3 2"} |
| {"task_id": "icgr-00294", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "3 3 1;1 2 3;0 3 2", "output": "1 1 1;1 2 1;1 1 1"}, {"input": "0 4 4;4 2 3;0 0 1", "output": "1 1 1;1 2 1;1 1 1"}], "query_input": "0 2 2;3 3 4;3 4 0", "query_output": "1 1 1;1 3 1;1 1 1"} |
| {"task_id": "icgr-00399", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "1 2 1;4 2 0;4 0 0;4 0 3", "output": "3 4 3;1 4 2;1 2 2;1 2 0"}, {"input": "3 2 1;3 4 3;2 1 4;2 3 2", "output": "0 4 3;0 1 0;4 3 1;4 0 4"}], "query_input": "3 0 3;0 2 1;3 3 2;2 3 2", "query_output": "0 2 0;2 4 3;0 0 4;4 0 4"} |
| {"task_id": "icgr-00649", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "2 5 5 0;5 4 4 3;5 3 1 5;3 1 3 0;3 5 1 0", "output": "0 2 5 5;3 5 4 4;5 5 3 1;0 3 1 3;0 3 5 1"}, {"input": "4 3 5 4;1 0 1 5;2 0 2 3;5 0 2 3;1 5 3 5", "output": "4 4 3 5;5 1 0 1;3 2 0 2;3 5 0 2;5 1 5 3"}, {"input": "0 0 1 1;5 3 0 3;2 3 0 1;3 0 2 0;1 2 2 2", "output": "1 0 0 1;3 5 3 0;1 2 3 0;0 3 0 2;2 1 2 2"}, {"input": "0 0 0 2;1 3 2 4;5 2 3 2;5 4 2 0;1 5 1 1", "output": "2 0 0 0;4 1 3 2;2 5 2 3;0 5 4 2;1 1 5 1"}], "query_input": "3 5 4 0;1 2 4 5;3 3 2 5;0 0 5 3;0 1 3 0", "query_output": "0 3 5 4;5 1 2 4;5 3 3 2;3 0 0 5;0 0 1 3"} |
| {"task_id": "icgr-00671", "rule": "shift_rows+add_mod", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "1 5 1 0;3 5 3 4;5 3 4 1;3 3 3 1", "output": "5 4 5 3;1 2 1 3;2 5 3 1;1 5 1 1"}, {"input": "5 0 5 0;3 4 1 5;3 3 0 4;1 1 2 3", "output": "3 4 3 4;5 3 1 2;4 2 1 1;0 1 5 5"}, {"input": "4 4 5 2;2 5 0 1;4 2 3 2;3 3 0 4", "output": "3 0 2 2;4 5 0 3;1 0 2 0;4 2 1 1"}], "query_input": "4 3 0 5;5 3 2 0;4 5 4 5;1 0 5 5", "query_output": "4 3 2 1;0 4 3 1;2 3 2 3;3 3 5 4"} |
| {"task_id": "icgr-00713", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "2 3 2 1 0;0 3 4 3 2;1 4 1 3 2", "output": "1 4 1 3 2;0 3 4 3 2;2 3 2 1 0"}, {"input": "3 4 4 3 4;0 4 4 1 4;4 4 3 0 1", "output": "4 4 3 0 1;0 4 4 1 4;3 4 4 3 4"}, {"input": "2 1 1 1 4;2 0 1 0 2;1 1 3 2 0", "output": "1 1 3 2 0;2 0 1 0 2;2 1 1 1 4"}], "query_input": "1 0 4 3 3;1 1 2 2 3;4 1 1 1 1", "query_output": "4 1 1 1 1;1 1 2 2 3;1 0 4 3 3"} |
| {"task_id": "icgr-00834", "rule": "flip_v+border", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "0 2 2 2;0 0 1 2;3 1 1 0", "output": "2 2 2 2;2 0 1 2;2 2 2 2"}, {"input": "1 1 0 1;1 0 2 1;3 0 2 2", "output": "2 2 2 2;2 0 2 2;2 2 2 2"}, {"input": "3 2 2 0;1 3 3 3;2 3 1 0", "output": "2 2 2 2;2 3 3 2;2 2 2 2"}], "query_input": "3 3 2 1;3 1 3 1;0 3 2 0", "query_output": "2 2 2 2;2 1 3 2;2 2 2 2"} |
| {"task_id": "icgr-00463", "rule": "flip_h+shift_rows", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "3 1 2 1 0;2 3 1 1 0;1 2 0 1 1;3 2 3 0 3;0 3 3 3 1", "output": "1 3 0 1 2;3 2 0 1 1;2 1 1 1 0;2 3 3 0 3;3 0 1 3 3"}, {"input": "3 2 2 3 0;1 2 2 2 0;1 1 3 1 1;1 2 2 2 0;3 1 0 2 3", "output": "2 3 0 3 2;2 1 0 2 2;1 1 1 1 3;2 1 0 2 2;1 3 3 2 0"}, {"input": "1 0 2 2 0;3 0 3 3 2;2 1 0 0 3;3 2 3 1 1;0 0 1 2 1", "output": "0 1 0 2 2;0 3 2 3 3;1 2 3 0 0;2 3 1 1 3;0 0 1 2 1"}, {"input": "0 0 2 1 1;1 3 1 1 0;0 1 0 1 1;0 1 2 1 2;0 2 3 0 1", "output": "0 0 1 1 2;3 1 0 1 1;1 0 1 1 0;1 0 2 1 2;2 0 1 0 3"}], "query_input": "3 0 0 3 1;0 2 2 0 0;0 3 2 3 1;3 0 3 1 1;2 1 2 1 2", "query_output": "0 3 1 3 0;2 0 0 0 2;3 0 1 3 2;0 3 1 1 3;1 2 2 1 2"} |
| {"task_id": "icgr-00740", "rule": "color_swap+flip_h", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "0 2 3 1;0 0 1 2;1 2 0 3;0 0 0 2;0 1 2 1", "output": "1 0 2 3;2 1 3 3;0 3 2 1;2 3 3 3;1 2 1 3"}, {"input": "0 1 0 3;3 1 2 0;1 0 3 3;1 2 2 3;1 3 0 2", "output": "0 3 1 3;3 2 1 0;0 0 3 1;0 2 2 1;2 3 0 1"}, {"input": "2 3 3 2;1 3 3 0;2 1 2 1;0 3 3 2;1 3 3 2", "output": "2 0 0 2;3 0 0 1;1 2 1 2;2 0 0 3;2 0 0 1"}], "query_input": "1 1 1 2;2 2 2 2;3 2 0 3;0 2 3 3;3 2 3 3", "query_output": "2 1 1 1;2 2 2 2;0 3 2 0;0 0 2 3;0 0 2 0"} |
| {"task_id": "icgr-00214", "rule": "flip_v+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "3 0 1;0 1 0;0 1 3;2 1 0", "output": "0 1 2;2 1 3;2 1 2;3 2 1"}, {"input": "3 1 3;2 1 0;3 2 3;3 2 0", "output": "3 0 2;3 0 3;0 1 2;3 1 3"}], "query_input": "3 2 3;3 1 1;1 3 0;1 0 0", "query_output": "1 2 2;1 3 2;3 1 1;3 0 3"} |
| {"task_id": "icgr-00339", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "3 0 1;0 1 0;4 4 0;2 1 5", "output": "3 0 4 2;0 1 4 1;1 0 0 5"}, {"input": "1 4 5;5 5 4;2 4 3;3 5 4", "output": "1 5 2 3;4 5 4 5;5 4 3 4"}, {"input": "4 5 2;0 5 1;3 0 3;0 2 4", "output": "4 0 3 0;5 5 0 2;2 1 3 4"}, {"input": "3 2 3;5 4 5;2 5 1;5 4 3", "output": "3 5 2 5;2 4 5 4;3 5 1 3"}], "query_input": "4 1 0;4 0 5;2 0 3;0 5 3", "query_output": "4 4 2 0;1 0 0 5;0 5 3 3"} |
| {"task_id": "icgr-00328", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "2 3 1 2;1 2 3 4;2 0 4 3;0 2 3 0;4 2 4 1", "output": "2 1 2 0 4;3 2 0 2 2;1 3 4 3 4;2 4 3 0 1"}, {"input": "1 4 3 3;2 1 0 0;0 2 3 4;1 3 0 4;0 0 1 1", "output": "1 2 0 1 0;4 1 2 3 0;3 0 3 0 1;3 0 4 4 1"}], "query_input": "4 0 2 0;1 3 4 3;0 0 3 2;2 0 0 1;0 0 3 2", "query_output": "4 1 0 2 0;0 3 0 0 0;2 4 3 0 3;0 3 2 1 2"} |
| {"task_id": "icgr-00515", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "3 3 0 0 2;1 3 3 3 1;0 3 1 2 0;0 0 0 3 0;3 2 3 3 0", "output": "3 2 3 3 0;0 0 0 3 0;0 3 1 2 0;1 3 3 3 1;3 3 0 0 2"}, {"input": "1 3 0 1 3;2 1 2 2 2;1 3 0 2 3;2 2 1 2 3;2 3 0 1 3", "output": "2 3 0 1 3;2 2 1 2 3;1 3 0 2 3;2 1 2 2 2;1 3 0 1 3"}, {"input": "0 0 1 0 0;1 0 2 2 2;1 0 0 0 3;0 0 3 0 2;1 0 3 3 2", "output": "1 0 3 3 2;0 0 3 0 2;1 0 0 0 3;1 0 2 2 2;0 0 1 0 0"}, {"input": "2 0 1 1 2;3 3 2 1 0;3 0 2 0 2;2 0 2 0 0;3 3 2 1 3", "output": "3 3 2 1 3;2 0 2 0 0;3 0 2 0 2;3 3 2 1 0;2 0 1 1 2"}], "query_input": "0 2 1 0 3;3 2 1 0 2;0 1 1 3 2;2 1 0 0 1;1 0 2 2 0", "query_output": "1 0 2 2 0;2 1 0 0 1;0 1 1 3 2;3 2 1 0 2;0 2 1 0 3"} |
| {"task_id": "icgr-00037", "rule": "shift_rows+color_swap", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "0 3 3;4 0 3;4 4 4;4 3 1", "output": "0 3 0;0 4 3;4 4 4;1 4 0"}, {"input": "2 3 4;0 1 1;0 4 2;0 4 2", "output": "4 2 0;1 3 1;2 3 4;2 3 4"}, {"input": "0 0 1;1 4 0;0 4 4;0 0 1", "output": "1 3 3;3 1 4;4 3 4;1 3 3"}], "query_input": "1 4 0;2 2 2;0 0 4;1 4 1", "query_output": "3 1 4;2 2 2;4 3 3;1 1 4"} |
| {"task_id": "icgr-00815", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "2 0 1 0 3;1 4 0 0 0;3 0 5 0 1;2 0 5 0 3", "output": "2 3 1 2;0 0 4 0;5 5 0 1;0 0 0 0;3 1 0 3"}, {"input": "0 0 0 5 1;0 2 0 0 1;0 1 3 5 4;1 0 0 1 1", "output": "1 0 0 0;0 1 2 0;0 3 0 0;1 5 0 5;1 4 1 1"}], "query_input": "3 0 1 2 2;5 3 0 1 3;3 5 2 2 1;2 3 0 4 1", "query_output": "2 3 5 3;3 5 3 0;0 2 0 1;4 2 1 2;1 1 3 2"} |
| {"task_id": "icgr-00123", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "0 0 5;3 4 2;4 5 3", "output": "0 5 0;4 2 3;5 3 4"}, {"input": "5 4 1;5 4 2;3 4 4", "output": "4 1 5;4 2 5;4 4 3"}, {"input": "5 0 3;4 2 2;0 0 2", "output": "0 3 5;2 2 4;0 2 0"}], "query_input": "1 3 0;2 5 3;3 5 3", "query_output": "3 0 1;5 3 2;5 3 3"} |
| {"task_id": "icgr-00075", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "2 1 3 2 2;1 2 2 1 2;0 1 3 3 2", "output": "2 1 3 2 2 2 1 3 2 2;1 2 2 1 2 1 2 2 1 2;0 1 3 3 2 0 1 3 3 2"}, {"input": "3 1 2 2 3;0 3 3 1 1;2 3 3 2 2", "output": "3 1 2 2 3 3 1 2 2 3;0 3 3 1 1 0 3 3 1 1;2 3 3 2 2 2 3 3 2 2"}, {"input": "2 0 3 2 3;3 2 2 0 0;1 0 2 0 2", "output": "2 0 3 2 3 2 0 3 2 3;3 2 2 0 0 3 2 2 0 0;1 0 2 0 2 1 0 2 0 2"}, {"input": "3 1 1 3 2;1 1 3 0 0;0 0 0 3 0", "output": "3 1 1 3 2 3 1 1 3 2;1 1 3 0 0 1 1 3 0 0;0 0 0 3 0 0 0 0 3 0"}], "query_input": "0 1 0 0 3;2 3 3 1 2;1 1 3 3 0", "query_output": "0 1 0 0 3 0 1 0 0 3;2 3 3 1 2 2 3 3 1 2;1 1 3 3 0 1 1 3 3 0"} |
| {"task_id": "icgr-00526", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "1 3 1 3 4;0 4 3 0 0;0 2 2 3 2;1 1 4 0 4;2 1 1 3 3", "output": "2 1 1 3 3;1 1 4 0 4;0 2 2 3 2;0 4 3 0 0;1 3 1 3 4"}, {"input": "0 0 4 4 0;1 1 2 4 2;3 4 2 3 1;2 0 4 1 0;3 4 3 0 4", "output": "3 4 3 0 4;2 0 4 1 0;3 4 2 3 1;1 1 2 4 2;0 0 4 4 0"}], "query_input": "2 2 3 1 1;2 1 1 1 4;4 1 3 4 2;4 0 2 4 4;3 2 1 2 1", "query_output": "3 2 1 2 1;4 0 2 4 4;4 1 3 4 2;2 1 1 1 4;2 2 3 1 1"} |
| {"task_id": "icgr-00779", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "5 1 2 5;0 1 4 4;0 0 4 3;1 0 2 0", "output": "5 1 2 5 5 1 2 5;0 1 4 4 0 1 4 4;0 0 4 3 0 0 4 3;1 0 2 0 1 0 2 0"}, {"input": "5 1 1 2;4 4 4 0;1 2 3 5;0 5 3 0", "output": "5 1 1 2 5 1 1 2;4 4 4 0 4 4 4 0;1 2 3 5 1 2 3 5;0 5 3 0 0 5 3 0"}, {"input": "2 2 5 2;3 1 0 4;2 5 4 2;0 0 2 3", "output": "2 2 5 2 2 2 5 2;3 1 0 4 3 1 0 4;2 5 4 2 2 5 4 2;0 0 2 3 0 0 2 3"}, {"input": "1 3 2 2;3 3 1 1;5 1 4 3;5 4 2 2", "output": "1 3 2 2 1 3 2 2;3 3 1 1 3 3 1 1;5 1 4 3 5 1 4 3;5 4 2 2 5 4 2 2"}], "query_input": "3 2 4 2;1 2 0 5;2 1 5 4;2 5 0 4", "query_output": "3 2 4 2 3 2 4 2;1 2 0 5 1 2 0 5;2 1 5 4 2 1 5 4;2 5 0 4 2 5 0 4"} |
| {"task_id": "icgr-00763", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "0 2 0 1 1;4 1 1 3 4;0 2 3 2 1", "output": "1 1 0 2 0;4 3 1 1 4;1 2 3 2 0"}, {"input": "1 0 0 2 1;4 0 2 3 2;4 1 4 2 2", "output": "1 2 0 0 1;2 3 2 0 4;2 2 4 1 4"}, {"input": "4 0 1 0 0;0 4 2 4 3;4 0 1 2 0", "output": "0 0 1 0 4;3 4 2 4 0;0 2 1 0 4"}], "query_input": "4 2 0 3 3;4 4 2 3 3;2 0 0 4 3", "query_output": "3 3 0 2 4;3 3 2 4 4;3 4 0 0 2"} |
| {"task_id": "icgr-00384", "rule": "border+color_swap", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "3 3 0;2 5 4;5 0 5;0 0 1", "output": "4 4 4;4 4 4;4 0 4;4 4 4"}, {"input": "4 3 2;5 1 0;5 2 0;2 4 0", "output": "4 4 4;4 1 4;4 2 4;4 4 4"}], "query_input": "5 0 1;0 3 2;5 0 3;0 2 1", "query_output": "4 4 4;4 3 4;4 0 4;4 4 4"} |
| {"task_id": "icgr-00660", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "4 4 2 0 1;5 2 2 0 5;4 1 5 0 5;3 2 1 1 1;5 2 0 0 5", "output": "5 2 0 0 5;3 2 1 1 1;4 1 5 0 5;5 2 2 0 5;4 4 2 0 1"}, {"input": "0 0 4 5 3;4 4 2 4 4;1 5 5 1 4;1 3 3 3 1;3 5 3 1 1", "output": "3 5 3 1 1;1 3 3 3 1;1 5 5 1 4;4 4 2 4 4;0 0 4 5 3"}], "query_input": "1 3 0 2 0;4 0 4 2 0;0 2 5 2 2;1 3 2 5 5;4 4 2 5 3", "query_output": "4 4 2 5 3;1 3 2 5 5;0 2 5 2 2;4 0 4 2 0;1 3 0 2 0"} |
| {"task_id": "icgr-00491", "rule": "add_mod+shift_rows", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "1 3 2 2 2;2 0 2 3 1;1 1 1 3 5;1 5 5 2 0;2 5 2 5 0", "output": "1 1 0 2 1;2 0 1 5 1;2 4 0 0 0;1 5 0 4 4;4 5 1 4 1"}, {"input": "0 3 1 5 5;3 3 3 3 5;4 1 3 3 5;5 5 0 5 1;1 1 4 1 4", "output": "4 4 5 2 0;2 4 2 2 2;2 4 3 0 2;4 0 4 4 5;0 3 0 0 3"}], "query_input": "0 3 2 1 4;1 1 5 4 3;5 3 0 3 3;3 2 4 3 0;0 4 1 1 4", "query_output": "0 3 5 2 1;3 2 0 0 4;2 2 4 2 5;2 5 2 1 3;0 3 5 3 0"} |
| {"task_id": "icgr-00012", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "3 1 1 4 2;4 2 2 4 3;0 1 4 3 0", "output": "3 1 1 4 2 3 1 1 4 2;4 2 2 4 3 4 2 2 4 3;0 1 4 3 0 0 1 4 3 0"}, {"input": "4 2 0 2 3;0 1 3 2 1;4 4 3 3 3", "output": "4 2 0 2 3 4 2 0 2 3;0 1 3 2 1 0 1 3 2 1;4 4 3 3 3 4 4 3 3 3"}], "query_input": "4 4 1 2 4;3 0 2 2 3;2 2 1 2 0", "query_output": "4 4 1 2 4 4 4 1 2 4;3 0 2 2 3 3 0 2 2 3;2 2 1 2 0 2 2 1 2 0"} |
| {"task_id": "icgr-00865", "rule": "add_mod+flip_v", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "0 4 0 0;4 2 2 1;0 4 2 4", "output": "1 0 3 0;0 3 3 2;1 0 1 1"}, {"input": "0 1 2 2;0 1 4 1;0 4 4 3", "output": "1 0 0 4;1 2 0 2;1 2 3 3"}, {"input": "0 2 3 0;2 0 3 2;2 4 0 3", "output": "3 0 1 4;3 1 4 3;1 3 4 1"}], "query_input": "0 0 2 0;4 0 0 2;0 0 2 2", "query_output": "1 1 3 3;0 1 1 3;1 1 3 1"} |
| {"task_id": "icgr-00305", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "2 0 3 2 3;1 3 3 1 0;3 1 0 3 1;1 0 3 1 3;1 3 0 3 1", "output": "2 0 3 2 3;1 3 3 1 0;3 1 0 3 1;1 0 3 1 3;1 3 0 3 1"}, {"input": "0 3 1 3 2;1 0 1 1 2;1 2 1 3 3;3 0 1 3 1;1 2 1 0 2", "output": "0 3 1 3 2;1 0 1 1 2;1 2 1 3 3;3 0 1 3 1;1 2 1 0 2"}, {"input": "1 3 0 3 0;2 1 2 3 1;2 1 0 1 3;0 3 2 1 2;3 2 3 1 3", "output": "1 3 0 3 0;2 1 2 3 1;2 1 0 1 3;0 3 2 1 2;3 2 3 1 3"}], "query_input": "3 3 1 0 1;0 2 2 0 1;3 2 0 2 1;3 2 3 0 1;0 2 3 0 2", "query_output": "3 3 1 0 1;0 2 2 0 1;3 2 0 2 1;3 2 3 0 1;0 2 3 0 2"} |
| {"task_id": "icgr-00724", "rule": "border+shift_rows", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "0 1 1 5;5 2 4 2;3 1 5 2;4 0 2 4;4 3 3 3", "output": "0 0 0 0;0 0 2 4;0 0 1 5;0 0 0 2;0 0 0 0"}, {"input": "0 3 2 1;1 1 2 4;5 3 3 0;5 1 0 0;1 1 4 0", "output": "0 0 0 0;0 0 1 2;0 0 3 3;0 0 1 0;0 0 0 0"}], "query_input": "5 5 2 4;1 2 1 5;0 1 0 3;3 1 2 5;3 3 2 3", "query_output": "0 0 0 0;0 0 2 1;0 0 1 0;0 0 1 2;0 0 0 0"} |
| {"task_id": "icgr-00485", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "2 3 4 2 1;1 3 2 3 2;4 2 3 4 3;4 3 4 4 4;2 3 2 2 2", "output": "0 3 4 0 1;1 3 0 3 0;4 0 3 4 3;4 3 4 4 4;0 3 0 0 0"}, {"input": "3 3 1 3 3;1 0 1 4 4;3 0 0 3 0;0 1 3 4 0;3 4 4 1 3", "output": "3 3 1 3 3;1 2 1 4 4;3 2 2 3 2;2 1 3 4 2;3 4 4 1 3"}, {"input": "2 2 1 3 2;4 3 1 2 2;3 0 2 2 4;2 4 4 0 3;2 3 1 2 3", "output": "0 0 1 3 0;4 3 1 0 0;3 2 0 0 4;0 4 4 2 3;0 3 1 0 3"}], "query_input": "2 1 3 0 3;3 0 2 3 3;4 0 2 3 1;1 1 2 0 0;1 4 3 2 4", "query_output": "0 1 3 2 3;3 2 0 3 3;4 2 0 3 1;1 1 0 2 2;1 4 3 0 4"} |
| {"task_id": "icgr-00251", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "4 2 2;1 1 1;0 0 3", "output": "4 2 2 4 2 2;1 1 1 1 1 1;0 0 3 0 0 3"}, {"input": "0 4 1;3 2 1;1 2 2", "output": "0 4 1 0 4 1;3 2 1 3 2 1;1 2 2 1 2 2"}], "query_input": "0 2 2;4 2 0;1 0 3", "query_output": "0 2 2 0 2 2;4 2 0 4 2 0;1 0 3 1 0 3"} |
| {"task_id": "icgr-00669", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "4 0 0;3 1 0;2 5 4;0 3 0;1 3 2", "output": "4 0 0;2 1 0;3 5 4;0 2 0;1 2 3"}, {"input": "2 0 1;5 1 1;5 5 0;3 5 1;4 0 3", "output": "3 0 1;5 1 1;5 5 0;2 5 1;4 0 2"}, {"input": "0 0 0;2 1 0;3 5 1;0 1 4;3 5 1", "output": "0 0 0;3 1 0;2 5 1;0 1 4;2 5 1"}, {"input": "2 4 4;5 5 1;2 0 4;0 1 4;0 5 0", "output": "3 4 4;5 5 1;3 0 4;0 1 4;0 5 0"}], "query_input": "4 5 0;4 4 2;2 2 5;2 4 5;2 4 2", "query_output": "4 5 0;4 4 3;3 3 5;3 4 5;3 4 3"} |
| {"task_id": "icgr-00149", "rule": "color_swap+shift_rows", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "3 3 4 0 4;0 5 3 4 3;1 1 1 5 0", "output": "2 3 3 2 0;3 0 5 3 2;0 1 1 1 5"}, {"input": "1 1 5 5 3;2 4 4 4 3;0 2 3 4 5", "output": "3 1 1 5 5;3 4 2 2 2;5 0 4 3 2"}, {"input": "0 4 1 3 0;0 0 3 0 0;0 4 5 1 2", "output": "0 0 2 1 3;0 0 0 3 0;4 0 2 5 1"}, {"input": "0 3 2 1 4;4 2 3 2 2;1 2 4 1 5", "output": "2 0 3 4 1;4 2 4 3 4;5 1 4 2 1"}], "query_input": "1 1 4 2 2;5 3 2 0 1;3 4 2 5 2", "query_output": "4 1 1 2 4;1 5 3 4 0;4 3 2 4 5"} |
| {"task_id": "icgr-00996", "rule": "border+color_swap", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "0 1 2 2 3;3 2 1 3 4;1 4 3 2 4;3 0 1 1 0", "output": "1 1 1 1 1;1 2 1 0 1;1 4 0 2 1;1 1 1 1 1"}, {"input": "3 2 4 0 1;3 4 1 0 1;1 0 2 4 2;3 3 1 4 0", "output": "1 1 1 1 1;1 4 1 3 1;1 3 2 4 1;1 1 1 1 1"}, {"input": "3 3 3 0 0;4 2 0 0 3;3 2 2 3 4;4 4 3 2 1", "output": "1 1 1 1 1;1 2 3 3 1;1 2 2 0 1;1 1 1 1 1"}], "query_input": "3 3 2 2 0;4 1 3 3 1;2 2 3 4 4;3 0 4 4 2", "query_output": "1 1 1 1 1;1 1 0 0 1;1 2 0 4 1;1 1 1 1 1"} |
| {"task_id": "icgr-00191", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "1 3 1 4;3 4 3 5;5 3 0 4;3 2 5 3;4 1 0 4", "output": "1 3 5 3 4;3 4 3 2 1;1 3 0 5 0;4 5 4 3 4"}, {"input": "1 1 4 2;5 2 0 2;1 0 0 4;0 3 1 5;2 2 5 1", "output": "1 5 1 0 2;1 2 0 3 2;4 0 0 1 5;2 2 4 5 1"}, {"input": "1 2 4 4;1 0 5 1;5 0 4 5;2 1 5 5;0 0 1 4", "output": "1 1 5 2 0;2 0 0 1 0;4 5 4 5 1;4 1 5 5 4"}, {"input": "1 0 4 0;0 4 2 1;4 3 4 3;5 2 5 0;2 0 1 1", "output": "1 0 4 5 2;0 4 3 2 0;4 2 4 5 1;0 1 3 0 1"}], "query_input": "0 2 0 1;1 1 1 2;5 0 0 4;5 4 5 5;5 3 4 2", "query_output": "0 1 5 5 5;2 1 0 4 3;0 1 0 5 4;1 2 4 5 2"} |
| {"task_id": "icgr-00447", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "4 3 0;1 3 3;3 0 3;0 3 0", "output": "4 1 3 0;3 3 0 3;0 3 3 0"}, {"input": "1 3 3;0 1 4;0 2 1;3 0 4", "output": "1 0 0 3;3 1 2 0;3 4 1 4"}], "query_input": "3 3 1;2 0 1;2 0 1;0 5 2", "query_output": "3 2 2 0;3 0 0 5;1 1 1 2"} |
| {"task_id": "icgr-00501", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "0 3 3;1 3 0;4 4 3;2 0 4", "output": "1 1 1;1 3 1;1 4 1;1 1 1"}, {"input": "2 1 0;0 0 3;3 3 0;0 2 4", "output": "1 1 1;1 0 1;1 3 1;1 1 1"}, {"input": "3 3 2;2 0 0;4 2 4;4 0 3", "output": "1 1 1;1 0 1;1 2 1;1 1 1"}, {"input": "3 3 3;0 2 0;1 4 3;0 4 1", "output": "1 1 1;1 2 1;1 4 1;1 1 1"}], "query_input": "4 2 4;1 1 2;4 4 1;4 1 4", "query_output": "1 1 1;1 1 1;1 4 1;1 1 1"} |
| {"task_id": "icgr-00911", "rule": "flip_h+flip_v", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "5 2 1 2 2;0 3 1 0 4;4 3 2 2 5", "output": "5 2 2 3 4;4 0 1 3 0;2 2 1 2 5"}, {"input": "0 2 1 5 5;4 4 0 2 0;0 5 1 5 5", "output": "5 5 1 5 0;0 2 0 4 4;5 5 1 2 0"}, {"input": "4 2 5 3 5;5 5 3 4 2;2 1 2 5 4", "output": "4 5 2 1 2;2 4 3 5 5;5 3 5 2 4"}], "query_input": "4 1 3 4 2;1 4 4 4 4;1 3 4 3 5", "query_output": "5 3 4 3 1;4 4 4 4 1;2 4 3 1 4"} |
| {"task_id": "icgr-00960", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "1 1 1 2 3;1 1 2 0 1;2 0 2 0 2;3 0 3 0 0;3 0 3 3 0", "output": "1 1 1 2 3 1 1 1 2 3;1 1 2 0 1 1 1 2 0 1;2 0 2 0 2 2 0 2 0 2;3 0 3 0 0 3 0 3 0 0;3 0 3 3 0 3 0 3 3 0"}, {"input": "0 3 1 0 1;3 1 1 2 2;0 0 2 3 1;0 1 1 3 3;3 2 0 2 1", "output": "0 3 1 0 1 0 3 1 0 1;3 1 1 2 2 3 1 1 2 2;0 0 2 3 1 0 0 2 3 1;0 1 1 3 3 0 1 1 3 3;3 2 0 2 1 3 2 0 2 1"}, {"input": "0 1 3 2 0;0 3 3 0 3;0 0 2 0 2;3 0 0 1 3;2 3 2 0 3", "output": "0 1 3 2 0 0 1 3 2 0;0 3 3 0 3 0 3 3 0 3;0 0 2 0 2 0 0 2 0 2;3 0 0 1 3 3 0 0 1 3;2 3 2 0 3 2 3 2 0 3"}, {"input": "3 0 2 3 0;3 1 2 3 3;3 3 1 0 0;3 2 1 2 0;1 2 0 1 2", "output": "3 0 2 3 0 3 0 2 3 0;3 1 2 3 3 3 1 2 3 3;3 3 1 0 0 3 3 1 0 0;3 2 1 2 0 3 2 1 2 0;1 2 0 1 2 1 2 0 1 2"}], "query_input": "3 3 0 1 0;0 3 0 3 1;1 1 0 1 1;0 0 2 0 2;3 3 0 3 1", "query_output": "3 3 0 1 0 3 3 0 1 0;0 3 0 3 1 0 3 0 3 1;1 1 0 1 1 1 1 0 1 1;0 0 2 0 2 0 0 2 0 2;3 3 0 3 1 3 3 0 3 1"} |
| {"task_id": "icgr-00457", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "1 5 5;3 3 3;4 5 4;0 2 3;1 3 2", "output": "1 3 4 0 1;5 3 5 2 3;5 3 4 3 2"}, {"input": "3 0 1;1 5 4;3 5 0;1 3 4;3 2 5", "output": "3 1 3 1 3;0 5 5 3 2;1 4 0 4 5"}, {"input": "1 0 0;4 1 5;1 2 1;3 0 3;1 4 3", "output": "1 4 1 3 1;0 1 2 0 4;0 5 1 3 3"}, {"input": "2 2 2;5 4 0;2 1 0;2 3 4;5 0 0", "output": "2 5 2 2 5;2 4 1 3 0;2 0 0 4 0"}], "query_input": "0 4 4;0 4 5;0 3 1;1 5 5;5 2 5", "query_output": "0 0 0 1 5;4 4 3 5 2;4 5 1 5 5"} |
| {"task_id": "icgr-00385", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "4 3 4 2 3;3 2 2 0 5;4 1 5 1 1;4 5 2 5 5;5 0 2 2 5", "output": "4 3 4 4 5;3 2 1 5 0;4 2 5 2 2;2 0 1 5 2;3 5 1 5 5"}, {"input": "0 4 2 4 1;5 3 5 2 2;1 2 4 4 0;1 1 2 4 2;0 5 4 5 0", "output": "0 5 1 1 0;4 3 2 1 5;2 5 4 2 4;4 2 4 4 5;1 2 0 2 0"}], "query_input": "2 0 0 2 1;0 4 1 1 0;4 1 3 0 4;5 2 0 0 2;3 5 5 0 0", "query_output": "2 0 4 5 3;0 4 1 2 5;0 1 3 0 5;2 1 0 0 0;1 0 4 2 0"} |
| {"task_id": "icgr-00009", "rule": "flip_v+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "0 4 2 1 4;1 2 2 2 4;3 0 0 3 0;1 4 3 1 0", "output": "1 4 3 1 0;3 0 0 3 0;1 2 2 2 4;0 4 2 1 4"}, {"input": "1 2 0 4 3;3 2 1 2 4;0 4 2 2 4;2 3 4 3 1", "output": "2 3 4 3 1;0 4 2 2 4;3 2 1 2 4;1 2 0 4 3"}, {"input": "2 3 3 0 1;1 1 1 2 4;3 3 1 2 2;3 0 4 3 3", "output": "3 0 4 3 3;3 3 1 2 2;1 1 1 2 4;2 3 3 0 1"}, {"input": "1 3 0 3 2;4 2 1 4 2;0 0 1 1 0;1 0 2 4 4", "output": "1 0 2 4 4;0 0 1 1 0;4 2 1 4 2;1 3 0 3 2"}], "query_input": "0 0 3 4 2;3 0 2 3 4;0 1 0 0 3;1 3 2 0 2", "query_output": "1 3 2 0 2;0 1 0 0 3;3 0 2 3 4;0 0 3 4 2"} |
| {"task_id": "icgr-00430", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "0 0 3 1;1 3 2 0;3 0 2 0;3 3 1 2", "output": "3 3;3 2"}, {"input": "1 0 0 3;2 3 1 0;2 1 2 3;2 0 2 2", "output": "3 3;2 3"}, {"input": "3 2 1 1;1 2 2 1;3 3 3 1;2 1 0 3", "output": "3 2;3 3"}, {"input": "1 1 0 2;2 3 3 2;0 2 0 1;0 3 0 1", "output": "3 3;3 1"}], "query_input": "3 0 2 1;2 1 1 3;0 2 2 2;1 0 3 3", "query_output": "3 3;2 3"} |
| {"task_id": "icgr-00744", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "1 2 5 1 1;5 3 2 2 3;4 0 5 5 1;5 1 4 2 0", "output": "5 5 5 5 5;5 3 2 2 5;5 0 5 5 5;5 5 5 5 5"}, {"input": "0 0 5 2 5;0 1 2 5 3;1 1 0 3 0;4 3 2 2 4", "output": "5 5 5 5 5;5 1 2 5 5;5 1 0 3 5;5 5 5 5 5"}], "query_input": "5 4 2 3 4;0 0 0 5 0;3 3 2 1 5;3 1 3 1 3", "query_output": "5 5 5 5 5;5 0 0 5 5;5 3 2 1 5;5 5 5 5 5"} |
| {"task_id": "icgr-00381", "rule": "add_mod+shift_rows", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "3 1 1;2 0 2;3 1 2", "output": "2 0 2;3 3 1;3 0 2"}, {"input": "3 3 1;2 2 1;2 1 0", "output": "2 0 0;2 3 3;1 3 2"}], "query_input": "1 1 0;0 0 0;2 1 0", "query_output": "1 2 2;1 1 1;1 3 2"} |
| {"task_id": "icgr-00394", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "5 3 3 3 4;3 2 3 1 0;0 3 2 5 1;4 4 3 0 0", "output": "4 5 3 3 3;0 3 2 3 1;1 0 3 2 5;0 4 4 3 0"}, {"input": "1 5 4 5 5;1 5 2 4 5;0 4 4 1 4;3 0 4 0 5", "output": "5 1 5 4 5;5 1 5 2 4;4 0 4 4 1;5 3 0 4 0"}, {"input": "3 4 3 5 3;4 4 3 3 4;2 0 4 1 5;4 5 4 3 2", "output": "3 3 4 3 5;4 4 4 3 3;5 2 0 4 1;2 4 5 4 3"}, {"input": "3 2 5 1 1;4 5 1 4 1;4 5 0 2 3;2 2 5 4 0", "output": "1 3 2 5 1;1 4 5 1 4;3 4 5 0 2;0 2 2 5 4"}], "query_input": "1 5 4 5 4;3 2 4 2 1;5 5 0 5 3;3 4 1 1 4", "query_output": "4 1 5 4 5;1 3 2 4 2;3 5 5 0 5;4 3 4 1 1"} |
| {"task_id": "icgr-00148", "rule": "border+flip_h", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "4 0 4;3 3 1;2 0 4", "output": "3 3 3;3 3 3;3 3 3"}, {"input": "0 4 0;3 4 2;3 1 1", "output": "3 3 3;3 4 3;3 3 3"}, {"input": "1 3 4;2 4 2;3 2 0", "output": "3 3 3;3 4 3;3 3 3"}], "query_input": "2 2 3;1 3 2;4 3 0", "query_output": "3 3 3;3 3 3;3 3 3"} |
| {"task_id": "icgr-00090", "rule": "border+flip_v", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "3 1 3 2 4;1 0 4 5 1;0 4 3 3 1;0 3 1 2 0;0 1 2 4 0", "output": "4 4 4 4 4;4 3 1 2 4;4 4 3 3 4;4 0 4 5 4;4 4 4 4 4"}, {"input": "4 1 1 3 3;4 3 2 5 2;1 1 3 1 4;1 3 0 2 0;1 1 4 0 0", "output": "4 4 4 4 4;4 3 0 2 4;4 1 3 1 4;4 3 2 5 4;4 4 4 4 4"}, {"input": "5 3 4 1 0;1 5 4 5 3;2 0 5 5 5;4 2 2 0 2;1 4 3 2 2", "output": "4 4 4 4 4;4 2 2 0 4;4 0 5 5 4;4 5 4 5 4;4 4 4 4 4"}, {"input": "5 5 4 5 0;5 3 2 5 5;0 2 0 3 1;1 5 2 3 4;3 3 3 0 4", "output": "4 4 4 4 4;4 5 2 3 4;4 2 0 3 4;4 3 2 5 4;4 4 4 4 4"}], "query_input": "4 3 0 2 3;3 4 4 0 4;0 2 4 5 4;1 3 5 2 1;2 0 0 5 0", "query_output": "4 4 4 4 4;4 3 5 2 4;4 2 4 5 4;4 4 4 0 4;4 4 4 4 4"} |
| {"task_id": "icgr-00863", "rule": "flip_v+flip_h", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "3 1 4 0 5;1 3 5 0 3;2 5 2 0 2;2 3 1 3 3", "output": "3 3 1 3 2;2 0 2 5 2;3 0 5 3 1;5 0 4 1 3"}, {"input": "0 1 3 0 3;3 0 4 3 4;0 4 0 0 5;3 3 1 0 5", "output": "5 0 1 3 3;5 0 0 4 0;4 3 4 0 3;3 0 3 1 0"}, {"input": "3 5 1 5 0;4 5 3 1 3;0 5 0 0 1;0 5 5 5 4", "output": "4 5 5 5 0;1 0 0 5 0;3 1 3 5 4;0 5 1 5 3"}, {"input": "0 5 4 0 0;4 3 2 4 1;2 0 5 2 1;2 0 3 1 2", "output": "2 1 3 0 2;1 2 5 0 2;1 4 2 3 4;0 0 4 5 0"}], "query_input": "0 3 1 3 2;1 4 3 0 1;1 0 5 3 3;0 0 2 3 1", "query_output": "1 3 2 0 0;3 3 5 0 1;1 0 3 4 1;2 3 1 3 0"} |
| {"task_id": "icgr-00789", "rule": "add_mod+color_swap", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "1 0 0 0 1;0 2 1 3 1;2 0 2 2 2;0 1 3 0 3", "output": "2 1 1 1 2;1 3 2 0 2;3 1 3 3 3;1 2 0 1 0"}, {"input": "2 3 1 2 2;0 1 0 3 1;3 0 0 2 0;1 1 3 0 3", "output": "3 0 2 3 3;1 2 1 0 2;0 1 1 3 1;2 2 0 1 0"}, {"input": "0 0 0 3 3;1 2 3 0 3;0 2 3 2 2;1 0 3 0 1", "output": "1 1 1 0 0;2 3 0 1 0;1 3 0 3 3;2 1 0 1 2"}, {"input": "2 3 3 0 1;3 1 3 1 0;1 0 3 3 3;3 0 3 1 2", "output": "3 0 0 1 2;0 2 0 2 1;2 1 0 0 0;0 1 0 2 3"}], "query_input": "0 0 0 1 3;1 3 2 2 1;3 3 2 1 0;0 0 2 1 3", "query_output": "1 1 1 2 0;2 0 3 3 2;0 0 3 2 1;1 1 3 2 0"} |
| {"task_id": "icgr-00382", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "0 3 3 2 2;3 4 2 5 1;4 5 2 2 4", "output": "0 3 4;3 4 5;3 2 2;2 5 2;2 1 4"}, {"input": "4 2 3 4 5;4 2 5 3 4;4 4 0 0 0", "output": "4 4 4;2 2 4;3 5 0;4 3 0;5 4 0"}, {"input": "2 0 4 4 4;2 3 5 3 0;3 0 0 3 1", "output": "2 2 3;0 3 0;4 5 0;4 3 3;4 0 1"}, {"input": "4 1 0 5 5;1 4 4 5 0;4 1 4 4 3", "output": "4 1 4;1 4 1;0 4 4;5 5 4;5 0 3"}], "query_input": "3 5 4 5 5;1 1 3 2 2;3 4 2 4 4", "query_output": "3 1 3;5 1 4;4 3 2;5 2 4;5 2 4"} |
| {"task_id": "icgr-00533", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "3 2 0 4 2;4 3 1 1 4;3 3 0 3 2", "output": "2 3 2 0 4;4 4 3 1 1;2 3 3 0 3"}, {"input": "0 4 1 1 2;0 1 2 3 3;0 0 4 2 4", "output": "2 0 4 1 1;3 0 1 2 3;4 0 0 4 2"}, {"input": "1 3 2 0 1;3 4 4 3 0;4 1 1 2 4", "output": "1 1 3 2 0;0 3 4 4 3;4 4 1 1 2"}], "query_input": "0 1 0 0 4;4 3 2 2 4;4 2 2 0 1", "query_output": "4 0 1 0 0;4 4 3 2 2;1 4 2 2 0"} |
| {"task_id": "icgr-00059", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "5 5 5 3;2 5 1 4;3 2 5 5", "output": "5 3 5 5;1 4 2 5;5 5 3 2"}, {"input": "4 4 5 2;5 0 1 3;4 0 5 2", "output": "5 2 4 4;1 3 5 0;5 2 4 0"}, {"input": "5 5 2 5;4 5 4 4;0 5 0 4", "output": "2 5 5 5;4 4 4 5;0 4 0 5"}], "query_input": "3 0 0 0;2 4 4 5;3 0 3 3", "query_output": "0 0 3 0;4 5 2 4;3 3 3 0"} |
| {"task_id": "icgr-00920", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "5 3 4 0;0 1 2 2;3 2 0 1;5 3 1 2;0 1 1 3", "output": "0 4 3 5;2 2 1 0;1 0 2 3;2 1 3 5;3 1 1 0"}, {"input": "4 0 5 4;3 0 2 0;1 5 2 1;3 1 0 2;2 1 4 1", "output": "4 5 0 4;0 2 0 3;1 2 5 1;2 0 1 3;1 4 1 2"}, {"input": "4 2 2 0;3 3 3 3;1 0 3 2;5 0 1 2;0 3 4 0", "output": "0 2 2 4;3 3 3 3;2 3 0 1;2 1 0 5;0 4 3 0"}, {"input": "4 2 1 4;5 2 5 3;1 1 2 4;2 1 1 5;5 1 3 0", "output": "4 1 2 4;3 5 2 5;4 2 1 1;5 1 1 2;0 3 1 5"}], "query_input": "4 2 4 3;3 0 0 1;4 2 0 4;0 2 1 0;4 0 4 4", "query_output": "3 4 2 4;1 0 0 3;4 0 2 4;0 1 2 0;4 4 0 4"} |
| {"task_id": "icgr-00003", "rule": "border+flip_h", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "0 1 3 0 1;3 3 3 2 3;2 3 0 3 2;3 1 0 0 0;0 1 1 3 3", "output": "2 2 2 2 2;2 2 3 3 2;2 3 0 3 2;2 0 0 1 2;2 2 2 2 2"}, {"input": "2 1 3 0 2;1 0 3 2 0;1 0 1 1 2;2 3 0 3 0;1 2 2 3 1", "output": "2 2 2 2 2;2 2 3 0 2;2 1 1 0 2;2 3 0 3 2;2 2 2 2 2"}, {"input": "2 3 0 1 2;0 0 1 1 3;1 1 0 2 2;1 0 3 0 2;3 0 3 3 1", "output": "2 2 2 2 2;2 1 1 0 2;2 2 0 1 2;2 0 3 0 2;2 2 2 2 2"}, {"input": "3 2 2 0 1;2 2 3 2 3;3 2 3 1 2;1 1 2 0 2;2 1 3 0 3", "output": "2 2 2 2 2;2 2 3 2 2;2 1 3 2 2;2 0 2 1 2;2 2 2 2 2"}], "query_input": "2 0 2 3 2;3 3 1 0 3;0 0 1 0 3;3 2 1 1 2;3 2 2 1 0", "query_output": "2 2 2 2 2;2 0 1 3 2;2 0 1 0 2;2 1 1 2 2;2 2 2 2 2"} |
| {"task_id": "icgr-00979", "rule": "shift_rows+flip_h", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "2 3 1 3 1;4 0 4 3 2;1 4 1 3 1", "output": "1 3 2 1 3;4 0 4 2 3;1 4 1 1 3"}, {"input": "1 1 3 1 2;4 0 3 3 1;0 2 1 2 2", "output": "3 1 1 2 1;3 0 4 1 3;1 2 0 2 2"}, {"input": "0 4 2 3 1;4 2 3 4 3;1 2 2 1 0", "output": "2 4 0 1 3;3 2 4 3 4;2 2 1 0 1"}, {"input": "3 2 0 2 4;4 0 1 3 4;2 0 1 0 3", "output": "0 2 3 4 2;1 0 4 4 3;1 0 2 3 0"}], "query_input": "4 2 3 4 1;2 2 3 3 0;3 3 3 2 2", "query_output": "3 2 4 1 4;3 2 2 0 3;3 3 3 2 2"} |
| {"task_id": "icgr-00589", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "2 2 0;1 3 1;2 0 1;1 3 4;0 3 0", "output": "4 4 2;3 0 3;4 2 3;3 0 1;2 0 2"}, {"input": "2 4 1;2 0 3;2 3 3;4 4 0;2 2 3", "output": "4 1 3;4 2 0;4 0 0;1 1 2;4 4 0"}, {"input": "4 4 2;4 3 4;0 2 4;1 1 4;3 0 1", "output": "1 1 4;1 0 1;2 4 1;3 3 1;0 2 3"}, {"input": "0 2 2;3 4 4;1 0 2;2 2 2;3 1 4", "output": "2 4 4;0 1 1;3 2 4;4 4 4;0 3 1"}], "query_input": "1 4 4;3 3 1;4 0 3;1 3 1;1 4 3", "query_output": "3 1 1;0 0 3;1 2 0;3 0 3;3 1 0"} |
| {"task_id": "icgr-00404", "rule": "add_mod+shift_rows", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "0 0 5;4 0 1;1 5 2;1 5 2", "output": "2 3 3;4 1 3;5 4 2;5 4 2"}, {"input": "0 1 1;0 0 4;2 5 2;0 2 0", "output": "4 3 4;1 3 3;5 5 2;3 3 5"}, {"input": "4 4 4;4 0 4;2 3 2;0 4 2", "output": "1 1 1;1 1 3;5 5 0;5 3 1"}], "query_input": "1 4 4;0 4 0;5 5 1;2 5 5", "query_output": "1 4 1;3 3 1;4 2 2;2 5 2"} |
| {"task_id": "icgr-00686", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "1 2 5 2 2;5 1 2 2 2;4 3 0 4 5", "output": "2 2 5 2 1;2 2 2 1 5;5 4 0 3 4"}, {"input": "0 5 0 2 1;4 2 0 3 0;1 2 4 4 3", "output": "1 2 0 5 0;0 3 0 2 4;3 4 4 2 1"}, {"input": "4 1 5 2 3;3 3 4 5 4;1 4 3 0 5", "output": "3 2 5 1 4;4 5 4 3 3;5 0 3 4 1"}, {"input": "2 3 0 4 4;4 3 5 0 4;0 2 4 0 1", "output": "4 4 0 3 2;4 0 5 3 4;1 0 4 2 0"}], "query_input": "5 3 1 0 0;1 5 3 4 3;4 4 2 4 1", "query_output": "0 0 1 3 5;3 4 3 5 1;1 4 2 4 4"} |
| {"task_id": "icgr-00899", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "0 1 2 0;1 3 0 1;1 3 2 2", "output": "1 3 2 2;1 3 0 1;0 1 2 0"}, {"input": "1 1 1 0;3 0 0 0;2 1 1 1", "output": "2 1 1 1;3 0 0 0;1 1 1 0"}, {"input": "1 1 2 1;3 1 1 0;1 2 0 3", "output": "1 2 0 3;3 1 1 0;1 1 2 1"}], "query_input": "1 2 2 1;2 3 1 1;1 1 3 3", "query_output": "1 1 3 3;2 3 1 1;1 2 2 1"} |
| {"task_id": "icgr-00677", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "1 2 3 1 2;3 2 0 2 1;1 0 3 4 4;0 3 4 0 2", "output": "0 0 0 0 0;0 2 0 2 0;0 0 3 4 0;0 0 0 0 0"}, {"input": "0 1 2 1 3;4 2 2 1 3;2 4 3 4 1;2 2 2 0 1", "output": "0 0 0 0 0;0 2 2 1 0;0 4 3 4 0;0 0 0 0 0"}, {"input": "4 4 0 2 0;0 4 3 4 2;0 0 1 1 0;1 3 0 3 3", "output": "0 0 0 0 0;0 4 3 4 0;0 0 1 1 0;0 0 0 0 0"}, {"input": "0 4 0 2 1;3 2 0 0 3;3 2 3 1 3;3 2 3 4 0", "output": "0 0 0 0 0;0 2 0 0 0;0 2 3 1 0;0 0 0 0 0"}], "query_input": "0 3 2 2 1;3 4 2 0 0;2 0 3 0 2;0 1 0 3 1", "query_output": "0 0 0 0 0;0 4 2 0 0;0 0 3 0 0;0 0 0 0 0"} |
| {"task_id": "icgr-00362", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 5, "grid_h": 4, "grid_w": 6, "num_support": 4, "support": [{"input": "2 0 1 3 2 3;1 2 3 1 0 0;3 0 2 0 3 1;0 4 4 0 1 3", "output": "2 3 3;4 4 3"}, {"input": "3 2 2 1 2 3;0 3 1 3 4 0;4 3 1 3 1 1;3 0 0 0 4 4", "output": "3 3 4;4 3 4"}, {"input": "0 0 3 4 4 4;4 2 0 4 2 3;1 3 0 2 0 4;1 3 3 2 4 3", "output": "4 4 4;3 3 4"}, {"input": "0 0 2 3 3 3;3 2 0 3 0 2;2 1 1 3 4 2;2 1 2 3 4 1", "output": "3 3 3;2 3 4"}], "query_input": "0 1 4 0 3 3;4 3 2 2 0 0;4 3 0 0 4 3;3 2 0 3 0 3", "query_output": "4 4 3;4 3 4"} |
| {"task_id": "icgr-00139", "rule": "shift_rows+flip_v", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "2 0 2;3 3 3;0 2 2;0 1 0;2 0 0", "output": "0 0 2;1 0 0;2 2 0;3 3 3;0 2 2"}, {"input": "1 3 2;1 0 1;3 2 0;0 3 3;3 2 2", "output": "2 2 3;3 3 0;2 0 3;0 1 1;3 2 1"}], "query_input": "2 2 3;0 0 2;1 3 1;2 1 0;0 3 3", "query_output": "3 3 0;1 0 2;3 1 1;0 2 0;2 3 2"} |
| {"task_id": "icgr-00261", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "2 2 4;3 2 4;0 1 0;3 1 4;2 1 4", "output": "2 2 4 2 2 4;3 2 4 3 2 4;0 1 0 0 1 0;3 1 4 3 1 4;2 1 4 2 1 4"}, {"input": "4 3 2;2 4 1;3 0 4;2 2 3;3 1 1", "output": "4 3 2 4 3 2;2 4 1 2 4 1;3 0 4 3 0 4;2 2 3 2 2 3;3 1 1 3 1 1"}], "query_input": "2 0 4;2 2 4;2 3 1;3 1 3;2 4 4", "query_output": "2 0 4 2 0 4;2 2 4 2 2 4;2 3 1 2 3 1;3 1 3 3 1 3;2 4 4 2 4 4"} |
| {"task_id": "icgr-00771", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "3 2 0 0 5;4 1 3 0 0;0 2 2 0 2", "output": "3 2 0 0 5 3 2 0 0 5;4 1 3 0 0 4 1 3 0 0;0 2 2 0 2 0 2 2 0 2"}, {"input": "1 5 0 1 2;3 0 3 0 3;4 0 5 1 5", "output": "1 5 0 1 2 1 5 0 1 2;3 0 3 0 3 3 0 3 0 3;4 0 5 1 5 4 0 5 1 5"}, {"input": "2 2 0 1 1;3 4 2 2 4;4 3 2 2 5", "output": "2 2 0 1 1 2 2 0 1 1;3 4 2 2 4 3 4 2 2 4;4 3 2 2 5 4 3 2 2 5"}, {"input": "3 4 5 4 2;3 4 0 1 2;4 2 2 4 4", "output": "3 4 5 4 2 3 4 5 4 2;3 4 0 1 2 3 4 0 1 2;4 2 2 4 4 4 2 2 4 4"}], "query_input": "3 1 3 4 1;4 3 1 4 5;3 1 3 5 1", "query_output": "3 1 3 4 1 3 1 3 4 1;4 3 1 4 5 4 3 1 4 5;3 1 3 5 1 3 1 3 5 1"} |
| {"task_id": "icgr-00992", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "5 1 0 2 1;4 5 0 5 2;1 4 2 0 0;0 5 1 2 4", "output": "1 2 0 1 5;2 5 0 5 4;0 0 2 4 1;4 2 1 5 0"}, {"input": "0 0 4 1 3;0 3 0 0 0;0 2 1 3 5;2 1 2 1 0", "output": "3 1 4 0 0;0 0 0 3 0;5 3 1 2 0;0 1 2 1 2"}, {"input": "5 5 0 2 1;5 4 1 0 1;3 3 3 0 4;1 2 3 2 0", "output": "1 2 0 5 5;1 0 1 4 5;4 0 3 3 3;0 2 3 2 1"}, {"input": "0 1 2 2 3;5 3 0 3 1;0 1 4 1 3;3 4 0 1 2", "output": "3 2 2 1 0;1 3 0 3 5;3 1 4 1 0;2 1 0 4 3"}], "query_input": "4 5 4 0 5;0 5 0 0 3;1 2 3 2 4;0 2 1 3 2", "query_output": "5 0 4 5 4;3 0 0 5 0;4 2 3 2 1;2 3 1 2 0"} |
| {"task_id": "icgr-00548", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "2 2 5 4 2;2 4 2 5 2;0 0 1 1 1;2 5 0 2 3", "output": "2 4 5 2 2;2 5 2 4 2;1 1 1 0 0;3 2 0 5 2"}, {"input": "2 1 3 4 5;2 0 3 3 3;2 5 1 0 5;3 5 2 5 2", "output": "5 4 3 1 2;3 3 3 0 2;5 0 1 5 2;2 5 2 5 3"}, {"input": "0 4 0 3 5;1 2 4 0 2;5 5 4 4 0;1 2 4 4 4", "output": "5 3 0 4 0;2 0 4 2 1;0 4 4 5 5;4 4 4 2 1"}], "query_input": "0 1 1 3 2;3 1 1 5 2;1 4 5 0 2;1 4 2 0 1", "query_output": "2 3 1 1 0;2 5 1 1 3;2 0 5 4 1;1 0 2 4 1"} |
| {"task_id": "icgr-00620", "rule": "color_swap+flip_v", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "2 3 4 4;2 4 2 2;2 1 3 3;0 0 4 0", "output": "0 0 2 0;4 1 3 3;4 2 4 4;4 3 2 2"}, {"input": "0 4 3 4;3 3 4 0;3 1 4 3;2 3 0 1", "output": "4 3 0 1;3 1 2 3;3 3 2 0;0 2 3 2"}], "query_input": "0 4 0 0;4 1 4 4;4 1 4 4;4 3 3 2", "query_output": "2 3 3 4;2 1 2 2;2 1 2 2;0 2 0 0"} |
| {"task_id": "icgr-00928", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "1 1 4;0 1 1;0 0 1;0 0 1;4 0 3", "output": "4 1 1;1 1 0;1 0 0;1 0 0;3 0 4"}, {"input": "4 0 4;2 1 1;2 2 4;2 4 3;3 1 1", "output": "4 0 4;1 1 2;4 2 2;3 4 2;1 1 3"}], "query_input": "4 1 2;2 2 4;4 1 3;0 3 2;4 0 1", "query_output": "2 1 4;4 2 2;3 1 4;2 3 0;1 0 4"} |
| {"task_id": "icgr-00579", "rule": "border+color_swap", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "2 1 0 0;0 1 3 2;1 3 1 3;2 0 3 3;2 2 0 0", "output": "2 2 2 2;2 1 3 2;2 3 1 2;2 2 3 2;2 2 2 2"}, {"input": "0 3 0 0;2 0 2 3;0 3 2 0;2 0 0 1;0 1 3 3", "output": "2 2 2 2;2 2 0 2;2 3 0 2;2 2 2 2;2 2 2 2"}, {"input": "0 2 3 3;1 0 2 0;3 2 3 0;2 3 1 0;2 1 1 3", "output": "2 2 2 2;2 2 0 2;2 0 3 2;2 3 1 2;2 2 2 2"}], "query_input": "3 1 1 2;0 1 1 1;3 1 2 2;3 1 3 2;1 3 3 2", "query_output": "2 2 2 2;2 1 1 2;2 1 0 2;2 1 3 2;2 2 2 2"} |
| {"task_id": "icgr-00822", "rule": "border+flip_h", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "2 4 5 3;1 0 1 3;3 1 5 5;2 3 5 2", "output": "1 1 1 1;1 1 0 1;1 5 1 1;1 1 1 1"}, {"input": "5 0 2 3;2 3 2 3;4 4 1 1;0 5 1 5", "output": "1 1 1 1;1 2 3 1;1 1 4 1;1 1 1 1"}, {"input": "5 2 3 4;5 5 4 1;2 2 4 4;4 3 1 5", "output": "1 1 1 1;1 4 5 1;1 4 2 1;1 1 1 1"}, {"input": "3 3 3 3;2 1 1 5;3 2 4 3;3 0 3 2", "output": "1 1 1 1;1 1 1 1;1 4 2 1;1 1 1 1"}], "query_input": "0 5 3 1;3 0 1 4;0 1 1 2;2 1 5 1", "query_output": "1 1 1 1;1 1 0 1;1 1 1 1;1 1 1 1"} |
| {"task_id": "icgr-00878", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "0 3 3 1 3;2 1 1 1 3;0 3 0 3 0", "output": "3 0 3 3 1;3 2 1 1 1;0 0 3 0 3"}, {"input": "3 1 1 2 2;0 1 3 1 1;0 2 2 2 0", "output": "2 3 1 1 2;1 0 1 3 1;0 0 2 2 2"}, {"input": "0 1 3 2 0;3 0 1 3 3;1 3 0 3 2", "output": "0 0 1 3 2;3 3 0 1 3;2 1 3 0 3"}], "query_input": "3 1 2 3 1;3 1 0 1 0;1 3 0 3 0", "query_output": "1 3 1 2 3;0 3 1 0 1;0 1 3 0 3"} |
| {"task_id": "icgr-00066", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "1 2 2 2;2 0 2 3;2 2 2 2;2 2 3 3;3 1 3 0", "output": "2 2 1 2;2 3 2 0;2 2 2 2;3 3 2 2;3 0 3 1"}, {"input": "3 1 3 2;1 0 0 1;2 0 3 2;0 1 3 2;0 1 1 2", "output": "3 2 3 1;0 1 1 0;3 2 2 0;3 2 0 1;1 2 0 1"}, {"input": "1 2 1 0;0 2 0 0;0 1 2 2;1 2 3 1;2 0 3 0", "output": "1 0 1 2;0 0 0 2;2 2 0 1;3 1 1 2;3 0 2 0"}, {"input": "2 1 2 3;3 0 0 1;1 2 1 0;2 2 3 0;0 2 0 1", "output": "2 3 2 1;0 1 3 0;1 0 1 2;3 0 2 2;0 1 0 2"}], "query_input": "1 0 3 3;2 2 1 2;3 1 0 1;0 1 2 3;2 0 2 3", "query_output": "3 3 1 0;1 2 2 2;0 1 3 1;2 3 0 1;2 3 2 0"} |
| {"task_id": "icgr-00703", "rule": "add_mod+shift_rows", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "1 4 2;1 0 3;4 1 0;2 1 4", "output": "4 3 1;0 3 2;2 1 3;1 4 3"}, {"input": "4 2 2;2 1 0;1 4 0;3 1 1", "output": "4 1 4;2 4 3;2 3 1;3 0 3"}], "query_input": "1 1 2;4 2 3;1 4 3;2 4 0", "query_output": "4 3 3;0 1 4;0 3 1;2 4 1"} |
| {"task_id": "icgr-00913", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "2 2 2 0 0;1 1 3 0 0;1 1 0 2 1", "output": "1 1 0 2 1;1 1 3 0 0;2 2 2 0 0"}, {"input": "2 0 1 0 0;3 3 0 2 1;1 0 3 2 3", "output": "1 0 3 2 3;3 3 0 2 1;2 0 1 0 0"}, {"input": "2 3 0 3 0;2 1 0 1 0;2 3 2 0 2", "output": "2 3 2 0 2;2 1 0 1 0;2 3 0 3 0"}, {"input": "1 1 1 3 1;3 0 0 2 1;3 0 0 0 0", "output": "3 0 0 0 0;3 0 0 2 1;1 1 1 3 1"}], "query_input": "1 1 3 1 2;2 3 0 3 0;1 2 3 1 1", "query_output": "1 2 3 1 1;2 3 0 3 0;1 1 3 1 2"} |
| {"task_id": "icgr-00487", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "2 1 1;0 3 1;0 0 3;2 0 3;2 0 1", "output": "1 2 1;1 0 3;3 0 0;3 2 0;1 2 0"}, {"input": "3 2 2;0 0 3;1 0 2;2 0 1;2 2 0", "output": "2 3 2;3 0 0;2 1 0;1 2 0;0 2 2"}], "query_input": "3 0 1;0 1 3;0 1 1;3 2 3;2 0 2", "query_output": "1 3 0;3 0 1;1 0 1;3 3 2;2 2 0"} |
| {"task_id": "icgr-00835", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "0 4 2 4 1;4 1 4 0 1;0 1 2 0 3;3 3 0 2 1;4 1 4 2 1", "output": "0 4 0 3 4;4 1 1 3 1;2 4 2 0 4;4 0 0 2 2;1 1 3 1 1"}, {"input": "0 1 0 0 1;3 0 3 0 1;2 1 1 2 2;4 3 1 4 0;0 0 4 2 3", "output": "0 3 2 4 0;1 0 1 3 0;0 3 1 1 4;0 0 2 4 2;1 1 2 0 3"}, {"input": "3 3 2 3 0;4 2 0 4 1;4 4 4 2 1;2 1 3 0 1;3 3 1 1 1", "output": "3 4 4 2 3;3 2 4 1 3;2 0 4 3 1;3 4 2 0 1;0 1 1 1 1"}], "query_input": "2 3 4 2 4;4 1 2 2 0;0 3 1 2 0;4 1 2 3 1;3 2 3 2 2", "query_output": "2 4 0 4 3;3 1 3 1 2;4 2 1 2 3;2 2 2 3 2;4 0 0 1 2"} |
| {"task_id": "icgr-00706", "rule": "border+flip_h", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "4 2 4;3 5 4;1 0 4;3 0 3", "output": "0 0 0;0 5 0;0 0 0;0 0 0"}, {"input": "5 4 4;4 1 4;1 0 5;1 1 3", "output": "0 0 0;0 1 0;0 0 0;0 0 0"}, {"input": "5 3 2;4 5 2;2 4 2;4 2 2", "output": "0 0 0;0 5 0;0 4 0;0 0 0"}, {"input": "2 1 3;5 2 1;3 5 4;2 0 2", "output": "0 0 0;0 2 0;0 5 0;0 0 0"}], "query_input": "5 5 3;1 4 2;0 1 5;1 3 1", "query_output": "0 0 0;0 4 0;0 1 0;0 0 0"} |
| {"task_id": "icgr-00449", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "2 1 1 2 1;0 0 1 3 2;0 0 1 3 1;0 2 3 1 2", "output": "1 2 1 1 2;2 3 1 0 0;1 3 1 0 0;2 1 3 2 0"}, {"input": "0 2 2 1 0;2 0 0 2 2;1 3 3 1 1;0 3 2 1 1", "output": "0 1 2 2 0;2 2 0 0 2;1 1 3 3 1;1 1 2 3 0"}, {"input": "3 3 1 2 1;0 3 3 3 1;0 2 2 3 2;3 2 1 1 3", "output": "1 2 1 3 3;1 3 3 3 0;2 3 2 2 0;3 1 1 2 3"}], "query_input": "1 0 2 1 2;2 0 3 1 0;0 3 1 1 1;2 1 2 3 0", "query_output": "2 1 2 0 1;0 1 3 0 2;1 1 1 3 0;0 3 2 1 2"} |
| {"task_id": "icgr-00933", "rule": "border+flip_v", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "3 1 1 3;0 0 2 3;2 3 0 2", "output": "3 3 3 3;3 0 2 3;3 3 3 3"}, {"input": "2 1 0 2;3 1 0 1;3 0 2 2", "output": "3 3 3 3;3 1 0 3;3 3 3 3"}], "query_input": "3 0 1 2;1 2 1 3;3 1 3 3", "query_output": "3 3 3 3;3 2 1 3;3 3 3 3"} |
| {"task_id": "icgr-00134", "rule": "shift_rows+color_swap", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "2 3 1;2 4 0;1 2 0;1 2 4;3 2 4", "output": "1 2 3;0 2 4;0 1 2;4 1 2;4 3 2"}, {"input": "0 4 2;4 1 5;2 3 2;5 1 3;3 4 0", "output": "2 0 4;5 4 1;2 2 3;3 5 1;0 3 4"}], "query_input": "3 4 3;2 1 1;2 3 4;4 0 5;5 2 2", "query_output": "3 3 4;1 2 1;4 2 3;5 4 0;2 5 2"} |
| {"task_id": "icgr-00616", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "3 4 5 5;3 2 4 4;0 4 3 0;4 1 2 4;4 3 3 0", "output": "3 3 0 4 4;4 2 4 1 3;5 4 3 2 3;5 4 0 4 0"}, {"input": "0 4 1 1;5 5 3 1;2 3 0 1;2 2 0 2;2 0 2 1", "output": "0 5 2 2 2;4 5 3 2 0;1 3 0 0 2;1 1 1 2 1"}], "query_input": "3 4 2 5;3 3 4 1;1 4 1 4;1 0 2 1;2 3 3 2", "query_output": "3 3 1 1 2;4 3 4 0 3;2 4 1 2 3;5 1 4 1 2"} |
| {"task_id": "icgr-00333", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "3 0 0 3 2;0 3 0 3 0;0 1 0 2 0;0 1 0 2 2", "output": "1 1 1 1 1;1 3 0 3 1;1 1 0 2 1;1 1 1 1 1"}, {"input": "0 1 1 0 1;3 0 0 2 2;1 1 3 0 1;3 2 0 0 1", "output": "1 1 1 1 1;1 0 0 2 1;1 1 3 0 1;1 1 1 1 1"}, {"input": "2 1 2 0 1;3 3 0 1 2;2 1 3 3 3;2 2 1 0 0", "output": "1 1 1 1 1;1 3 0 1 1;1 1 3 3 1;1 1 1 1 1"}], "query_input": "2 3 3 3 1;1 2 1 2 2;3 2 0 1 3;2 1 0 3 0", "query_output": "1 1 1 1 1;1 2 1 2 1;1 2 0 1 1;1 1 1 1 1"} |
| {"task_id": "icgr-00843", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "3 0 3 0 4;4 0 4 3 4;5 5 2 1 3;1 3 4 3 3", "output": "4 4 4 4 4;4 0 4 3 4;4 5 2 1 4;4 4 4 4 4"}, {"input": "1 2 5 3 2;5 2 1 0 2;5 4 1 5 3;2 3 4 1 5", "output": "4 4 4 4 4;4 2 1 0 4;4 4 1 5 4;4 4 4 4 4"}], "query_input": "1 3 4 4 0;5 0 3 1 4;4 2 4 3 2;4 0 1 1 5", "query_output": "4 4 4 4 4;4 0 3 1 4;4 2 4 3 4;4 4 4 4 4"} |
| {"task_id": "icgr-00397", "rule": "color_swap+flip_h", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "4 0 2 0;3 1 3 3;3 3 3 0", "output": "0 2 0 3;4 4 1 4;0 4 4 4"}, {"input": "2 4 3 2;3 3 1 3;4 3 4 4", "output": "2 4 3 2;4 1 4 4;3 3 4 3"}, {"input": "4 1 0 2;0 0 4 4;3 4 3 4", "output": "2 0 1 3;3 3 0 0;3 4 3 4"}, {"input": "3 3 3 4;3 0 2 1;0 2 0 1", "output": "3 4 4 4;1 2 0 4;1 0 2 0"}], "query_input": "1 4 4 3;3 4 4 1;2 4 2 2", "query_output": "4 3 3 1;1 3 3 4;2 2 3 2"} |
| {"task_id": "icgr-00666", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "3 2 2;1 4 4;2 4 4", "output": "2 1 3;4 4 2;4 4 2"}, {"input": "1 1 3;0 1 1;1 0 3", "output": "1 0 1;0 1 1;3 1 3"}], "query_input": "2 1 4;0 3 3;2 3 1", "query_output": "2 0 2;3 3 1;1 3 4"} |
| {"task_id": "icgr-00206", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "4 3 3;2 2 1;1 3 3", "output": "1 3 3;2 2 1;4 3 3"}, {"input": "1 4 4;4 0 3;0 1 4", "output": "0 1 4;4 0 3;1 4 4"}], "query_input": "3 4 2;3 1 1;3 0 1", "query_output": "3 0 1;3 1 1;3 4 2"} |
| {"task_id": "icgr-00995", "rule": "color_swap+flip_h", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "1 1 0 0 2;2 3 0 1 1;3 3 1 1 3;2 2 2 2 0;0 1 1 0 0", "output": "2 1 1 0 0;0 0 1 3 2;3 0 0 3 3;1 2 2 2 2;1 1 0 0 1"}, {"input": "2 1 1 0 2;1 0 3 1 0;0 3 3 3 1;3 1 0 1 2;1 0 2 3 1", "output": "2 1 0 0 2;1 0 3 1 0;0 3 3 3 1;2 0 1 0 3;0 3 2 1 0"}], "query_input": "1 1 0 3 0;3 3 2 1 1;1 1 0 1 0;2 3 3 0 0;0 1 0 2 2", "query_output": "1 3 1 0 0;0 0 2 3 3;1 0 1 0 0;1 1 3 3 2;2 2 1 0 1"} |
| {"task_id": "icgr-00169", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "2 2 4;5 0 0;3 2 3;0 0 3;5 0 2", "output": "2 4 2;0 0 5;2 3 3;0 3 0;0 2 5"}, {"input": "3 2 1;5 4 5;4 0 3;1 3 5;4 2 4", "output": "2 1 3;4 5 5;0 3 4;3 5 1;2 4 4"}], "query_input": "5 4 2;4 1 4;0 0 1;2 2 0;3 0 4", "query_output": "4 2 5;1 4 4;0 1 0;2 0 2;0 4 3"} |
| {"task_id": "icgr-00378", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "2 4 3 4;0 0 5 2;1 1 3 5;5 4 4 2", "output": "2 0 1 5;4 0 1 4;3 5 3 4;4 2 5 2"}, {"input": "5 0 2 4;2 2 3 4;0 0 5 4;0 4 3 5", "output": "5 2 0 0;0 2 0 4;2 3 5 3;4 4 4 5"}], "query_input": "0 1 2 2;4 0 3 2;1 1 1 2;5 4 5 3", "query_output": "0 4 1 5;1 0 1 4;2 3 1 5;2 2 2 3"} |
| {"task_id": "icgr-00951", "rule": "shift_rows+add_mod", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "3 3 0 0 0;0 3 0 3 2;2 2 3 3 1", "output": "1 1 0 0 1;0 3 1 0 1;0 2 3 3 0"}, {"input": "1 2 3 1 0;1 1 0 2 3;2 1 3 3 3", "output": "2 1 2 3 0;3 0 2 2 1;0 0 3 2 0"}, {"input": "0 1 0 1 3;1 2 3 1 3;3 2 1 2 1", "output": "2 0 1 2 1;2 0 2 3 0;3 2 0 3 2"}], "query_input": "3 0 2 2 1;1 0 3 2 0;3 2 0 1 3", "query_output": "3 2 0 1 3;3 1 2 1 0;2 0 0 3 1"} |
| {"task_id": "icgr-00568", "rule": "shift_rows+flip_h", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "2 0 1 5 3;2 1 0 1 5;1 0 1 4 1;1 0 1 2 4", "output": "1 0 2 3 5;0 1 2 5 1;1 0 1 1 4;1 0 1 4 2"}, {"input": "1 5 5 4 3;4 3 0 5 0;1 4 0 1 2;1 4 4 5 1", "output": "5 5 1 3 4;0 3 4 0 5;0 4 1 2 1;4 4 1 1 5"}, {"input": "3 1 5 3 1;2 5 5 3 4;0 2 0 4 1;0 3 1 4 3", "output": "5 1 3 1 3;5 5 2 4 3;0 2 0 1 4;1 3 0 3 4"}], "query_input": "1 1 2 0 3;4 0 3 4 1;3 2 4 3 4;0 2 2 5 5", "query_output": "2 1 1 3 0;3 0 4 1 4;4 2 3 4 3;2 2 0 5 5"} |
| {"task_id": "icgr-00138", "rule": "shift_rows+flip_h", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "1 2 2 4;2 0 3 3;1 3 0 2;3 4 4 2;2 2 0 4", "output": "2 2 1 4;3 0 2 3;0 3 1 2;4 4 3 2;0 2 2 4"}, {"input": "0 2 1 1;0 2 4 1;3 2 0 4;2 1 3 3;0 3 4 1", "output": "1 2 0 1;4 2 0 1;0 2 3 4;3 1 2 3;4 3 0 1"}, {"input": "0 4 4 0;0 0 3 1;2 4 2 4;3 1 4 4;3 2 0 3", "output": "4 4 0 0;3 0 0 1;2 4 2 4;4 1 3 4;0 2 3 3"}, {"input": "0 1 3 1;0 0 3 4;2 2 2 1;3 2 0 4;1 4 0 4", "output": "3 1 0 1;3 0 0 4;2 2 2 1;0 2 3 4;0 4 1 4"}], "query_input": "0 4 2 1;1 4 0 0;0 3 1 3;0 0 2 4;3 1 4 3", "query_output": "2 4 0 1;0 4 1 0;1 3 0 3;2 0 0 4;4 1 3 3"} |
| {"task_id": "icgr-00941", "rule": "flip_v+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "3 2 0 1;2 3 0 0;2 3 1 1", "output": "2 0 1 1;2 0 3 3;0 2 3 1"}, {"input": "0 0 0 0;2 3 3 0;0 2 0 1", "output": "3 2 3 1;2 0 0 3;3 3 3 3"}, {"input": "2 3 0 0;2 1 3 3;2 1 0 3", "output": "2 1 3 0;2 1 0 0;2 0 3 3"}], "query_input": "2 0 0 2;2 1 2 2;0 2 0 0", "query_output": "3 2 3 3;2 1 2 2;2 3 3 2"} |
| {"task_id": "icgr-00344", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "2 3 3;1 3 3;0 2 1;0 2 0", "output": "2 1 0 0;3 3 2 2;3 3 1 0"}, {"input": "3 2 1;0 3 1;1 2 3;2 3 0", "output": "3 0 1 2;2 3 2 3;1 1 3 0"}], "query_input": "1 2 0;0 1 3;3 2 2;0 0 3", "query_output": "1 0 3 0;2 1 2 0;0 3 2 3"} |
| {"task_id": "icgr-00388", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "1 3 0;0 2 3;2 0 3;3 1 2", "output": "3 0 1;2 3 0;0 3 2;1 2 3"}, {"input": "0 1 3;2 1 3;1 2 3;0 0 1", "output": "1 3 0;1 3 2;2 3 1;0 1 0"}, {"input": "3 0 2;0 3 1;2 2 0;0 2 0", "output": "0 2 3;3 1 0;2 0 2;2 0 0"}], "query_input": "1 2 3;2 0 3;1 2 2;0 0 0", "query_output": "2 3 1;0 3 2;2 2 1;0 0 0"} |
| {"task_id": "icgr-00200", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "0 2 0 2 4;2 0 1 3 4;0 4 3 3 0;0 1 3 4 4", "output": "2 2 2 2 2;2 0 1 3 2;2 4 3 3 2;2 2 2 2 2"}, {"input": "1 0 1 0 4;3 3 2 4 4;2 2 3 1 2;4 1 3 1 4", "output": "2 2 2 2 2;2 3 2 4 2;2 2 3 1 2;2 2 2 2 2"}, {"input": "4 0 1 2 1;4 3 4 3 1;0 2 0 4 3;2 1 1 2 4", "output": "2 2 2 2 2;2 3 4 3 2;2 2 0 4 2;2 2 2 2 2"}], "query_input": "1 2 0 1 3;0 0 4 4 3;0 4 2 4 4;2 2 3 1 4", "query_output": "2 2 2 2 2;2 0 4 4 2;2 4 2 4 2;2 2 2 2 2"} |
| {"task_id": "icgr-00640", "rule": "shift_rows+color_swap", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "3 3 1 0 0;2 3 4 4 2;4 1 1 0 3;4 0 4 2 0;1 2 4 2 0", "output": "0 3 3 4 0;2 2 3 1 1;3 1 4 4 0;0 1 0 1 2;0 4 2 1 2"}, {"input": "3 0 2 0 1;2 4 4 2 0;3 0 4 2 1;2 2 2 1 3;1 4 1 2 4", "output": "4 3 0 2 0;0 2 1 1 2;4 3 0 1 2;3 2 2 2 4;1 4 1 4 2"}], "query_input": "2 2 2 0 2;0 3 3 4 2;2 0 1 2 4;1 3 2 1 1;4 4 2 3 2", "query_output": "2 2 2 2 0;2 0 3 3 1;1 2 0 4 2;4 4 3 2 4;2 1 1 2 3"} |
| {"task_id": "icgr-00665", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "2 0 0 3 2;3 3 2 3 0;2 2 3 2 3;3 3 3 1 2;0 2 0 0 0", "output": "2 0 0 3 2 2 0 0 3 2;3 3 2 3 0 3 3 2 3 0;2 2 3 2 3 2 2 3 2 3;3 3 3 1 2 3 3 3 1 2;0 2 0 0 0 0 2 0 0 0"}, {"input": "3 0 2 2 0;0 3 2 0 1;3 2 2 3 0;0 3 2 1 1;0 3 1 3 1", "output": "3 0 2 2 0 3 0 2 2 0;0 3 2 0 1 0 3 2 0 1;3 2 2 3 0 3 2 2 3 0;0 3 2 1 1 0 3 2 1 1;0 3 1 3 1 0 3 1 3 1"}], "query_input": "3 2 2 2 1;1 2 0 0 0;0 2 3 0 2;1 0 3 1 1;1 2 3 3 2", "query_output": "3 2 2 2 1 3 2 2 2 1;1 2 0 0 0 1 2 0 0 0;0 2 3 0 2 0 2 3 0 2;1 0 3 1 1 1 0 3 1 1;1 2 3 3 2 1 2 3 3 2"} |
| {"task_id": "icgr-00963", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "0 3 2;3 0 4;3 4 4;1 2 1", "output": "1 3 3 0;2 4 0 3;1 4 4 2"}, {"input": "2 2 0;1 3 1;2 1 4;2 0 3", "output": "2 2 1 2;0 1 3 2;3 4 1 0"}, {"input": "1 2 1;2 1 0;3 2 4;2 2 1", "output": "2 3 2 1;2 2 1 2;1 4 0 1"}], "query_input": "3 2 0;4 3 0;3 3 2;4 4 1", "query_output": "4 3 4 3;4 3 3 2;1 2 0 0"} |
| {"task_id": "icgr-00107", "rule": "flip_v+border", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "3 4 2;2 4 3;4 1 4;1 4 1;0 0 3", "output": "2 2 2;2 4 2;2 1 2;2 4 2;2 2 2"}, {"input": "2 3 2;1 1 3;3 2 1;3 4 3;1 3 1", "output": "2 2 2;2 4 2;2 2 2;2 1 2;2 2 2"}, {"input": "2 4 2;3 2 2;1 3 2;2 1 2;0 4 1", "output": "2 2 2;2 1 2;2 3 2;2 2 2;2 2 2"}, {"input": "2 3 2;2 0 2;1 2 3;3 4 1;1 1 1", "output": "2 2 2;2 4 2;2 2 2;2 0 2;2 2 2"}], "query_input": "0 1 2;1 1 3;3 0 4;3 1 1;2 2 3", "query_output": "2 2 2;2 1 2;2 0 2;2 1 2;2 2 2"} |
| {"task_id": "icgr-00818", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "0 2 1;2 2 3;0 4 4;0 2 0", "output": "2 4 3;4 4 0;2 1 1;2 4 2"}, {"input": "0 3 4;0 0 3;4 1 2;2 2 0", "output": "2 0 1;2 2 0;1 3 4;4 4 2"}], "query_input": "3 0 1;0 1 0;2 4 1;2 2 0", "query_output": "0 2 3;2 3 2;4 1 3;4 4 2"} |
| {"task_id": "icgr-00497", "rule": "border+add_mod", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "0 0 3 2;3 1 2 3;3 1 1 1", "output": "2 2 2 2;2 2 3 2;2 2 2 2"}, {"input": "2 2 0 2;3 3 3 3;1 1 3 2", "output": "2 2 2 2;2 0 0 2;2 2 2 2"}, {"input": "3 1 0 0;0 3 2 2;0 3 2 3", "output": "2 2 2 2;2 0 3 2;2 2 2 2"}, {"input": "0 2 1 1;3 0 3 3;3 3 3 0", "output": "2 2 2 2;2 1 0 2;2 2 2 2"}], "query_input": "2 0 3 2;1 0 1 3;3 1 0 3", "query_output": "2 2 2 2;2 1 2 2;2 2 2 2"} |
| {"task_id": "icgr-00545", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "2 3 2 3;1 2 0 0;0 0 0 0;4 3 3 1", "output": "4 0 1 2;3 0 2 3;3 0 0 2;1 0 0 3"}, {"input": "0 2 0 0;4 4 3 2;3 1 4 0;2 3 1 2", "output": "2 3 4 0;3 1 4 2;1 4 3 0;2 0 2 0"}], "query_input": "4 4 2 4;2 4 1 2;2 2 0 2;3 1 4 4", "query_output": "3 2 2 4;1 2 4 4;4 0 1 2;4 2 2 4"} |
| {"task_id": "icgr-00973", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "4 2 5 2 1;4 4 1 4 4;0 5 5 3 1", "output": "0 4 4;5 4 2;5 1 5;3 4 2;1 4 1"}, {"input": "3 4 2 0 5;1 2 3 0 2;5 2 2 1 4", "output": "5 1 3;2 2 4;2 3 2;1 0 0;4 2 5"}], "query_input": "0 4 3 3 0;0 0 2 5 5;1 1 0 1 5", "query_output": "1 0 0;1 0 4;0 2 3;1 5 3;5 5 0"} |
| {"task_id": "icgr-00798", "rule": "flip_h+flip_v", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "1 1 1 2 0;2 4 5 1 1;1 3 3 1 0;2 4 3 5 3", "output": "3 5 3 4 2;0 1 3 3 1;1 1 5 4 2;0 2 1 1 1"}, {"input": "4 0 4 3 5;5 0 1 5 4;3 5 5 3 1;1 4 1 2 2", "output": "2 2 1 4 1;1 3 5 5 3;4 5 1 0 5;5 3 4 0 4"}], "query_input": "2 0 1 4 1;3 4 4 0 2;1 4 5 0 3;5 2 4 2 1", "query_output": "1 2 4 2 5;3 0 5 4 1;2 0 4 4 3;1 4 1 0 2"} |
| {"task_id": "icgr-00121", "rule": "add_mod+shift_rows", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "1 0 4;4 1 1;2 0 3;1 2 2", "output": "4 3 0;0 0 3;4 2 1;1 1 0"}, {"input": "4 0 0;0 0 0;4 1 1;2 0 1", "output": "4 4 3;4 4 4;0 0 3;4 0 1"}], "query_input": "4 3 4;4 1 0;4 3 0;3 1 0", "query_output": "2 3 3;0 4 3;2 4 3;0 4 2"} |
| {"task_id": "icgr-00805", "rule": "flip_h+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "1 3 1 3 1;0 3 0 0 2;2 2 0 1 1;2 0 0 1 0", "output": "0 2 0 2 0;1 3 3 2 3;0 0 3 1 1;3 0 3 3 1"}, {"input": "1 1 3 3 3;3 3 3 2 0;3 1 2 2 3;1 2 3 0 2", "output": "2 2 2 0 0;3 1 2 2 2;2 1 1 0 2;1 3 2 1 0"}], "query_input": "0 1 0 3 3;2 3 1 3 2;1 3 0 0 3;3 0 3 1 2", "query_output": "2 2 3 0 3;1 2 0 2 1;2 3 3 2 0;1 0 2 3 2"} |
| {"task_id": "icgr-00130", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "1 3 2 2;2 4 2 4;1 0 2 2;1 0 1 0;0 4 2 0", "output": "1 2 1 1 0;3 4 0 0 4;2 2 2 1 2;2 4 2 0 0"}, {"input": "4 0 2 1;2 4 3 1;3 0 4 0;1 0 0 3;2 2 0 1", "output": "4 2 3 1 2;0 4 0 0 2;2 3 4 0 0;1 1 0 3 1"}], "query_input": "2 3 3 3;2 0 2 2;2 3 3 4;4 3 1 3;0 4 0 4", "query_output": "2 2 2 4 0;3 0 3 3 4;3 2 3 1 0;3 2 4 3 4"} |
| {"task_id": "icgr-00180", "rule": "shift_rows+flip_v", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "3 0 3;1 1 0;2 3 3", "output": "3 2 3;0 1 1;3 3 0"}, {"input": "2 1 0;2 3 0;1 2 2", "output": "2 1 2;0 2 3;0 2 1"}], "query_input": "1 1 0;2 2 1;2 3 2", "query_output": "2 2 3;1 2 2;0 1 1"} |
| {"task_id": "icgr-00135", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "1 1 3 3;3 3 0 2;0 1 0 2", "output": "0 3 1;1 3 1;0 0 3;2 2 3"}, {"input": "1 2 3 2;1 3 0 3;3 1 2 3", "output": "3 1 1;1 3 2;2 0 3;3 3 2"}, {"input": "3 3 3 2;1 3 2 2;2 0 2 0", "output": "2 1 3;0 3 3;2 2 3;0 2 2"}], "query_input": "2 3 1 3;0 3 2 3;3 0 3 1", "query_output": "3 0 2;0 3 3;3 2 1;1 3 3"} |
| {"task_id": "icgr-00085", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "0 0 3 1 3;0 3 1 2 3;2 0 0 0 1;2 0 3 2 0", "output": "3 1 3 0 0;3 2 1 3 0;1 0 0 0 2;0 2 3 0 2"}, {"input": "3 3 3 0 1;2 2 0 0 3;0 1 2 3 0;1 0 1 0 3", "output": "1 0 3 3 3;3 0 0 2 2;0 3 2 1 0;3 0 1 0 1"}], "query_input": "2 0 1 2 0;0 0 1 2 2;1 2 3 0 2;0 2 0 2 3", "query_output": "0 2 1 0 2;2 2 1 0 0;2 0 3 2 1;3 2 0 2 0"} |
| {"task_id": "icgr-00291", "rule": "flip_v+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "5 1 2 1 1;5 0 2 4 3;1 3 0 4 2;2 2 5 4 5;2 5 0 3 2", "output": "1 5 0 3 1;1 1 5 4 5;2 3 0 4 1;5 0 1 4 3;5 2 1 2 2"}, {"input": "4 3 4 4 2;4 5 5 1 0;1 5 0 4 1;2 4 0 4 3;0 3 5 5 0", "output": "0 3 5 5 0;1 4 0 4 3;2 5 0 4 2;4 5 5 2 0;4 3 4 4 1"}, {"input": "1 3 5 2 4;1 4 3 5 4;1 5 2 4 0;0 5 0 4 4;4 4 0 4 2", "output": "4 4 0 4 1;0 5 0 4 4;2 5 1 4 0;2 4 3 5 4;2 3 5 1 4"}, {"input": "4 3 2 3 1;0 4 3 2 5;1 3 2 3 2;5 2 5 5 2;2 0 3 0 2", "output": "1 0 3 0 1;5 1 5 5 1;2 3 1 3 1;0 4 3 1 5;4 3 1 3 2"}], "query_input": "1 0 0 4 5;5 4 5 5 5;0 2 2 4 1;0 5 4 2 2;1 5 2 1 3", "query_output": "2 5 1 2 3;0 5 4 1 1;0 1 1 4 2;5 4 5 5 5;2 0 0 4 5"} |
| {"task_id": "icgr-00752", "rule": "border+color_swap", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "1 1 2 2;1 3 1 3;1 2 1 3;1 2 1 0;3 3 3 2", "output": "3 3 3 3;3 3 1 3;3 0 1 3;3 0 1 3;3 3 3 3"}, {"input": "0 0 3 0;2 1 2 1;3 1 1 1;1 2 2 0;1 2 3 3", "output": "3 3 3 3;3 1 0 3;3 1 1 3;3 0 0 3;3 3 3 3"}], "query_input": "2 1 3 2;2 1 0 3;0 1 1 0;3 3 0 2;3 0 2 1", "query_output": "3 3 3 3;3 1 2 3;3 1 1 3;3 3 2 3;3 3 3 3"} |
| {"task_id": "icgr-00088", "rule": "shift_rows+border", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "4 1 5;2 2 3;5 4 3", "output": "1 1 1;1 2 1;1 1 1"}, {"input": "1 0 5;3 5 3;5 1 4", "output": "1 1 1;1 3 1;1 1 1"}, {"input": "5 3 4;0 0 4;0 1 5", "output": "1 1 1;1 0 1;1 1 1"}], "query_input": "5 2 2;4 5 2;4 2 0", "query_output": "1 1 1;1 4 1;1 1 1"} |
| {"task_id": "icgr-00042", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "2 2 0 3 1;2 2 2 0 1;1 2 2 2 2;2 0 3 0 0", "output": "2 1 2 2;0 2 2 2;3 2 2 0;0 2 0 3;0 2 1 1"}, {"input": "3 1 0 2 0;1 2 1 0 1;0 0 0 0 3;0 3 1 0 1", "output": "0 0 1 3;3 0 2 1;1 0 1 0;0 0 0 2;1 3 1 0"}], "query_input": "2 3 3 0 1;2 3 0 1 1;3 3 2 0 1;1 3 3 1 1", "query_output": "1 3 2 2;3 3 3 3;3 2 0 3;1 0 1 0;1 1 1 1"} |
| {"task_id": "icgr-00379", "rule": "flip_h+shift_rows", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "0 2 4 2;4 4 0 0;4 2 3 0;4 1 0 1;1 2 2 3", "output": "0 2 4 2;4 0 0 4;4 0 3 2;4 1 0 1;1 3 2 2"}, {"input": "4 1 0 1;2 2 2 2;3 1 2 1;4 4 1 2;4 4 1 0", "output": "4 1 0 1;2 2 2 2;3 1 2 1;4 2 1 4;4 0 1 4"}], "query_input": "0 0 1 2;0 3 2 1;1 0 3 0;3 2 0 3;3 1 3 4", "query_output": "0 2 1 0;0 1 2 3;1 0 3 0;3 3 0 2;3 4 3 1"} |
| {"task_id": "icgr-00598", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "0 3 0;3 3 0;1 2 0;1 1 3", "output": "0 3 1 1;3 3 2 1;0 0 0 3"}, {"input": "0 2 3;2 2 2;0 1 2;3 2 1", "output": "0 2 0 3;2 2 1 2;3 2 2 1"}], "query_input": "1 1 2;1 3 1;0 1 2;0 0 3", "query_output": "1 1 0 0;1 3 1 0;2 1 2 3"} |
| {"task_id": "icgr-00776", "rule": "flip_h+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "2 1 1;2 4 3;5 4 5", "output": "0 0 1;2 3 1;4 3 4"}, {"input": "5 4 3;4 2 4;1 0 0", "output": "2 3 4;3 1 3;5 5 0"}, {"input": "5 2 0;3 2 0;4 3 2", "output": "5 1 4;5 1 2;1 2 3"}], "query_input": "0 2 2;4 3 1;0 1 4", "query_output": "1 1 5;0 2 3;3 0 5"} |
| {"task_id": "icgr-00233", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "3 3 2 3;0 0 4 3;5 3 5 5", "output": "4 4 3 4;1 1 5 4;0 4 0 0"}, {"input": "3 4 2 3;1 2 0 5;5 1 0 4", "output": "4 5 3 4;2 3 1 0;0 2 1 5"}, {"input": "0 3 5 0;1 5 1 1;3 3 5 2", "output": "1 4 0 1;2 0 2 2;4 4 0 3"}], "query_input": "2 4 3 3;1 2 1 2;0 5 2 0", "query_output": "3 5 4 4;2 3 2 3;1 0 3 1"} |
| {"task_id": "icgr-00332", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "1 1 3 3 1;0 0 0 3 2;0 2 0 0 2", "output": "1 1 3 3 1;2 2 2 3 0;2 0 2 2 0"}, {"input": "3 3 2 0 3;3 1 1 0 0;1 1 3 3 2", "output": "3 3 0 2 3;3 1 1 2 2;1 1 3 3 0"}], "query_input": "3 0 0 1 3;2 1 2 2 3;3 1 0 1 3", "query_output": "3 2 2 1 3;0 1 0 0 3;3 1 2 1 3"} |
| {"task_id": "icgr-00853", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "2 3 2 3;3 0 5 0;2 1 2 4;5 5 3 0", "output": "3 5;5 4"}, {"input": "5 3 5 5;1 2 3 2;1 2 4 1;0 2 5 5", "output": "5 5;2 5"}, {"input": "2 0 2 3;5 3 0 4;0 3 0 3;0 5 3 2", "output": "5 4;5 3"}], "query_input": "0 3 5 1;4 1 4 2;2 1 5 4;3 1 2 2", "query_output": "4 5;3 5"} |
| {"task_id": "icgr-00276", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "0 4 2 4 2;3 1 5 2 1;0 5 3 0 4;2 1 0 3 1;2 3 0 5 4", "output": "5 5 5 5 5;5 1 5 2 5;5 5 3 0 5;5 1 0 3 5;5 5 5 5 5"}, {"input": "3 5 2 0 1;5 4 3 4 3;4 0 3 4 4;5 0 1 5 2;3 0 3 3 3", "output": "5 5 5 5 5;5 4 3 4 5;5 0 3 4 5;5 0 1 5 5;5 5 5 5 5"}, {"input": "3 1 5 0 5;1 0 3 4 5;2 3 3 0 2;0 5 4 1 3;5 2 2 5 1", "output": "5 5 5 5 5;5 0 3 4 5;5 3 3 0 5;5 5 4 1 5;5 5 5 5 5"}, {"input": "2 4 1 1 4;0 5 4 5 3;0 1 1 4 3;0 5 4 1 0;2 2 0 2 5", "output": "5 5 5 5 5;5 5 4 5 5;5 1 1 4 5;5 5 4 1 5;5 5 5 5 5"}], "query_input": "4 4 4 3 5;2 5 5 1 5;2 5 0 0 5;2 5 5 3 2;5 0 4 3 4", "query_output": "5 5 5 5 5;5 5 5 1 5;5 5 0 0 5;5 5 5 3 5;5 5 5 5 5"} |
| {"task_id": "icgr-00699", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "5 1 0;4 3 0;3 0 1;1 2 5", "output": "1 3 4 5;2 0 3 1;5 1 0 0"}, {"input": "3 1 5;0 2 4;1 0 3;4 1 0", "output": "4 1 0 3;1 0 2 1;0 3 4 5"}], "query_input": "0 2 4;3 5 4;2 5 4;3 0 3", "query_output": "3 2 3 0;0 5 5 2;3 4 4 4"} |
| {"task_id": "icgr-00894", "rule": "add_mod+flip_v", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "1 4 4 3;3 1 5 1;2 3 2 0;5 0 2 5;0 5 3 3", "output": "3 2 0 0;2 3 5 2;5 0 5 3;0 4 2 4;4 1 1 0"}, {"input": "1 5 2 1;2 1 1 5;4 4 4 1;3 4 5 0;2 5 3 0", "output": "5 2 0 3;0 1 2 3;1 1 1 4;5 4 4 2;4 2 5 4"}, {"input": "2 5 1 1;3 2 2 5;5 2 1 2;5 4 3 4;2 4 4 3", "output": "5 1 1 0;2 1 0 1;2 5 4 5;0 5 5 2;5 2 4 4"}, {"input": "1 1 1 1;5 0 0 2;5 1 5 4;4 1 0 4;4 2 1 2", "output": "1 5 4 5;1 4 3 1;2 4 2 1;2 3 3 5;4 4 4 4"}], "query_input": "1 2 5 2;3 1 3 3;1 3 4 1;4 1 4 1;2 0 3 5", "query_output": "5 3 0 2;1 4 1 4;4 0 1 4;0 4 0 0;4 5 2 5"} |
| {"task_id": "icgr-00812", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "4 1 0 4;3 4 1 3;2 2 4 0", "output": "4 1 0 4 4 1 0 4;3 4 1 3 3 4 1 3;2 2 4 0 2 2 4 0"}, {"input": "0 4 2 1;2 0 3 4;4 5 4 2", "output": "0 4 2 1 0 4 2 1;2 0 3 4 2 0 3 4;4 5 4 2 4 5 4 2"}, {"input": "2 4 4 2;4 3 3 5;5 5 1 2", "output": "2 4 4 2 2 4 4 2;4 3 3 5 4 3 3 5;5 5 1 2 5 5 1 2"}], "query_input": "5 4 0 2;5 3 2 5;4 4 0 5", "query_output": "5 4 0 2 5 4 0 2;5 3 2 5 5 3 2 5;4 4 0 5 4 4 0 5"} |
| {"task_id": "icgr-00728", "rule": "color_swap+flip_h", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "4 2 3;4 0 2;1 4 0;0 1 0", "output": "3 2 4;2 0 4;0 4 1;0 1 0"}, {"input": "2 1 2;0 3 4;1 2 0;2 0 4", "output": "2 1 2;4 3 0;0 2 1;4 0 2"}, {"input": "3 0 0;4 0 0;1 1 4;0 3 2", "output": "0 0 3;0 0 4;4 1 1;2 3 0"}, {"input": "0 4 0;0 3 3;3 3 4;2 4 4", "output": "0 4 0;3 3 0;4 3 3;4 4 2"}], "query_input": "1 4 2;2 2 3;0 3 4;1 4 0", "query_output": "2 4 1;3 2 2;4 3 0;0 4 1"} |
| {"task_id": "icgr-00971", "rule": "border+color_swap", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "2 3 1 0;3 4 3 2;0 3 4 0", "output": "3 3 3 3;3 0 3 3;3 3 3 3"}, {"input": "2 4 4 4;0 1 1 3;1 1 4 2", "output": "3 3 3 3;3 1 1 3;3 3 3 3"}, {"input": "4 3 0 0;1 2 2 0;3 2 3 3", "output": "3 3 3 3;3 2 2 3;3 3 3 3"}, {"input": "3 3 2 3;2 0 3 0;1 3 4 0", "output": "3 3 3 3;3 4 3 3;3 3 3 3"}], "query_input": "2 3 4 1;4 2 4 4;2 0 3 3", "query_output": "3 3 3 3;3 2 0 3;3 3 3 3"} |
| {"task_id": "icgr-00939", "rule": "color_swap+border", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "2 1 4 1;1 2 1 1;1 3 1 2;0 1 3 3;3 4 4 4", "output": "0 0 0 0;0 2 1 0;0 3 1 0;0 1 3 0;0 0 0 0"}, {"input": "4 2 2 4;1 0 3 0;1 2 4 4;0 0 2 2;3 1 1 0", "output": "0 0 0 0;0 4 3 0;0 2 0 0;0 4 2 0;0 0 0 0"}], "query_input": "3 1 3 1;2 2 1 1;1 1 0 4;1 1 3 3;0 3 2 0", "query_output": "0 0 0 0;0 2 1 0;0 1 4 0;0 1 3 0;0 0 0 0"} |
| {"task_id": "icgr-00528", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "2 0 0;0 3 2;0 1 0;3 2 0", "output": "3 3 3;3 3 3;3 1 3;3 3 3"}, {"input": "0 3 0;1 1 2;2 1 1;3 3 1", "output": "3 3 3;3 1 3;3 1 3;3 3 3"}, {"input": "1 3 3;3 3 0;0 3 0;1 3 0", "output": "3 3 3;3 3 3;3 3 3;3 3 3"}, {"input": "2 0 0;1 2 2;0 3 1;1 1 3", "output": "3 3 3;3 2 3;3 3 3;3 3 3"}], "query_input": "2 3 3;2 3 1;2 0 3;3 1 0", "query_output": "3 3 3;3 3 3;3 0 3;3 3 3"} |
| {"task_id": "icgr-00221", "rule": "border+flip_v", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "3 4 0 1 1;3 1 3 4 0;0 2 0 1 4;1 0 4 4 1;4 0 1 2 2", "output": "1 1 1 1 1;1 0 4 4 1;1 2 0 1 1;1 1 3 4 1;1 1 1 1 1"}, {"input": "1 0 1 4 4;2 4 2 0 4;2 3 1 1 1;2 1 2 1 4;3 2 0 0 2", "output": "1 1 1 1 1;1 1 2 1 1;1 3 1 1 1;1 4 2 0 1;1 1 1 1 1"}], "query_input": "2 0 4 0 3;2 3 1 3 1;1 2 0 3 2;4 3 4 0 4;2 1 4 1 0", "query_output": "1 1 1 1 1;1 3 4 0 1;1 2 0 3 1;1 3 1 3 1;1 1 1 1 1"} |
| {"task_id": "icgr-00925", "rule": "color_swap+shift_rows", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "5 5 5 3 0;2 3 3 3 4;3 3 0 2 5", "output": "3 0 5 5 5;3 4 2 3 3;2 5 3 3 0"}, {"input": "5 0 0 5 0;5 2 1 3 2;5 5 1 1 4", "output": "5 0 5 0 0;3 2 5 2 1;1 4 5 5 1"}], "query_input": "1 0 1 0 0;4 1 5 5 0;0 1 5 5 5", "query_output": "0 0 1 0 1;5 0 4 1 5;5 5 0 1 5"} |
| {"task_id": "icgr-00444", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "1 4 0 3 3;3 2 3 2 0;0 2 3 0 2", "output": "3 3 0 4 1;0 2 3 2 3;2 0 3 2 0"}, {"input": "0 2 3 3 3;4 3 0 2 2;1 3 2 1 0", "output": "3 3 3 2 0;2 2 0 3 4;0 1 2 3 1"}], "query_input": "3 2 4 4 3;2 0 3 4 1;4 2 4 2 1", "query_output": "3 4 4 2 3;1 4 3 0 2;1 2 4 2 4"} |
| {"task_id": "icgr-00459", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "1 0 1 4;1 0 4 2;2 0 5 2;0 1 5 5", "output": "1 0 1 5;1 0 5 2;2 0 4 2;0 1 4 4"}, {"input": "5 3 3 3;1 3 4 5;1 3 3 0;1 1 1 0", "output": "4 3 3 3;1 3 5 4;1 3 3 0;1 1 1 0"}, {"input": "5 4 5 0;1 0 0 3;1 3 0 0;5 4 3 2", "output": "4 5 4 0;1 0 0 3;1 3 0 0;4 5 3 2"}, {"input": "1 3 0 2;3 3 0 1;5 0 1 4;0 4 5 5", "output": "1 3 0 2;3 3 0 1;4 0 1 5;0 5 4 4"}], "query_input": "2 3 2 1;5 0 5 3;4 3 1 4;0 2 3 4", "query_output": "2 3 2 1;4 0 4 3;5 3 1 5;0 2 3 5"} |
| {"task_id": "icgr-00290", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "4 2 1 0;3 3 0 2;2 0 2 2;1 0 0 3", "output": "0 1 2 4;2 0 3 3;2 2 0 2;3 0 0 1"}, {"input": "3 0 1 3;3 4 0 3;0 4 4 2;4 0 1 3", "output": "3 1 0 3;3 0 4 3;2 4 4 0;3 1 0 4"}], "query_input": "4 2 2 3;1 4 4 0;2 1 0 2;3 0 3 2", "query_output": "3 2 2 4;0 4 4 1;2 0 1 2;2 3 0 3"} |
| {"task_id": "icgr-00416", "rule": "shift_rows+flip_h", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "0 1 4;4 4 4;3 3 5;3 5 2;1 1 4", "output": "0 4 1;4 4 4;3 5 3;3 2 5;1 4 1"}, {"input": "3 2 2;2 2 4;4 5 0;5 4 4;3 2 5", "output": "3 2 2;2 4 2;4 0 5;5 4 4;3 5 2"}, {"input": "3 3 4;1 5 5;5 2 2;0 2 4;4 3 2", "output": "3 4 3;1 5 5;5 2 2;0 4 2;4 2 3"}], "query_input": "2 0 2;5 0 2;4 1 3;4 1 4;2 5 0", "query_output": "2 2 0;5 2 0;4 3 1;4 4 1;2 0 5"} |
| {"task_id": "icgr-00061", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "3 1 0;2 1 1;0 3 1;1 0 1;2 3 3", "output": "1 1 1;1 1 1;1 3 1;1 0 1;1 1 1"}, {"input": "1 2 2;3 1 0;2 2 2;3 3 3;0 1 3", "output": "1 1 1;1 1 1;1 2 1;1 3 1;1 1 1"}], "query_input": "2 1 1;1 3 3;3 0 0;2 2 1;2 1 3", "query_output": "1 1 1;1 3 1;1 0 1;1 2 1;1 1 1"} |
| {"task_id": "icgr-00743", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "0 1 4;3 4 0;2 4 4;4 1 0", "output": "0 0 0;0 4 0;0 4 0;0 0 0"}, {"input": "4 2 0;2 3 3;2 4 0;1 4 4", "output": "0 0 0;0 3 0;0 4 0;0 0 0"}, {"input": "2 0 5;3 5 0;0 0 1;1 0 5", "output": "0 0 0;0 5 0;0 0 0;0 0 0"}], "query_input": "5 1 3;4 3 1;5 5 2;2 2 2", "query_output": "0 0 0;0 3 0;0 5 0;0 0 0"} |
| {"task_id": "icgr-00124", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "4 4 0 1;5 5 3 2;3 3 3 0", "output": "4 4 4 4;4 5 3 4;4 4 4 4"}, {"input": "1 5 3 2;1 0 0 0;4 2 3 3", "output": "4 4 4 4;4 0 0 4;4 4 4 4"}], "query_input": "0 5 0 5;4 5 4 5;3 4 4 1", "query_output": "4 4 4 4;4 5 4 4;4 4 4 4"} |
| {"task_id": "icgr-00594", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "2 1 1 2;4 2 2 4;3 2 3 2", "output": "2 1 1 2 2 1 1 2;4 2 2 4 4 2 2 4;3 2 3 2 3 2 3 2"}, {"input": "0 4 0 4;1 0 3 1;2 3 3 2", "output": "0 4 0 4 0 4 0 4;1 0 3 1 1 0 3 1;2 3 3 2 2 3 3 2"}, {"input": "1 2 2 4;0 4 1 3;3 3 3 3", "output": "1 2 2 4 1 2 2 4;0 4 1 3 0 4 1 3;3 3 3 3 3 3 3 3"}, {"input": "1 0 3 3;2 2 2 1;3 0 2 3", "output": "1 0 3 3 1 0 3 3;2 2 2 1 2 2 2 1;3 0 2 3 3 0 2 3"}], "query_input": "4 4 4 3;2 4 3 2;1 0 2 0", "query_output": "4 4 4 3 4 4 4 3;2 4 3 2 2 4 3 2;1 0 2 0 1 0 2 0"} |
| {"task_id": "icgr-00023", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "1 2 1 1;0 4 3 2;0 2 4 1;1 2 2 2", "output": "1 1 2 1;2 3 4 0;1 4 2 0;2 2 2 1"}, {"input": "2 4 2 1;3 4 3 2;4 1 3 3;3 3 0 3", "output": "1 2 4 2;2 3 4 3;3 3 1 4;3 0 3 3"}], "query_input": "0 3 4 3;3 3 4 1;0 4 0 1;2 2 3 2", "query_output": "3 4 3 0;1 4 3 3;1 0 4 0;2 3 2 2"} |
| {"task_id": "icgr-00930", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "1 5 0 5;5 4 5 3;0 2 5 5;5 3 2 1", "output": "5 5;5 5"}, {"input": "0 3 2 3;5 2 2 4;2 1 2 1;0 2 2 3", "output": "5 4;2 3"}], "query_input": "5 4 2 4;3 4 1 4;2 5 1 4;2 1 4 2", "query_output": "5 4;5 4"} |
| {"task_id": "icgr-00131", "rule": "color_swap+flip_h", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "4 1 1 2;0 5 3 1;5 3 4 4;3 1 3 3", "output": "2 1 1 4;1 3 5 0;4 4 3 5;3 3 1 3"}, {"input": "3 5 1 1;0 5 4 5;4 4 3 1;2 0 2 1", "output": "1 1 5 3;5 4 5 0;1 3 4 4;1 2 0 2"}, {"input": "3 0 0 2;2 3 3 1;1 2 0 4;2 4 3 4", "output": "2 0 0 3;1 3 3 2;4 0 2 1;4 3 4 2"}], "query_input": "0 0 4 0;1 3 3 0;0 1 3 5;4 5 4 3", "query_output": "0 4 0 0;0 3 3 1;5 3 1 0;3 4 5 4"} |
| {"task_id": "icgr-00218", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 5, "grid_h": 6, "grid_w": 6, "num_support": 4, "support": [{"input": "2 3 1 0 4 3;2 3 0 3 4 0;2 2 2 1 1 2;1 0 2 1 2 0;0 4 4 2 4 4;0 2 4 0 2 3", "output": "3 3 4;2 2 2;4 4 4"}, {"input": "2 3 4 1 0 0;2 2 0 3 4 3;4 0 3 4 3 4;1 2 3 0 3 4;2 4 1 1 3 0;0 0 2 0 1 1", "output": "3 4 4;4 4 4;4 2 3"}, {"input": "3 3 0 4 4 2;3 0 3 2 1 4;2 0 1 4 1 4;4 0 4 4 2 0;0 0 1 1 4 1;3 3 1 0 4 2", "output": "3 4 4;4 4 4;3 1 4"}, {"input": "1 2 1 4 3 2;4 3 3 0 1 4;3 4 1 4 2 2;0 1 3 0 2 3;0 2 3 0 4 3;0 1 2 0 3 1", "output": "4 4 4;4 4 3;2 3 4"}], "query_input": "0 4 3 2 1 3;2 3 3 2 1 4;1 4 3 1 4 0;4 2 0 0 2 3;4 2 4 1 4 2;3 3 3 4 1 2", "query_output": "4 3 4;4 3 4;4 4 4"} |
| {"task_id": "icgr-00172", "rule": "add_mod+border", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "5 5 5 2;0 0 4 1;1 5 5 4;5 3 0 5", "output": "1 1 1 1;1 2 0 1;1 1 1 1;1 1 1 1"}, {"input": "5 2 5 3;5 0 5 3;5 1 1 0;2 3 2 3", "output": "1 1 1 1;1 2 1 1;1 3 3 1;1 1 1 1"}, {"input": "0 2 4 4;3 5 1 3;5 2 2 4;2 2 5 2", "output": "1 1 1 1;1 1 3 1;1 4 4 1;1 1 1 1"}, {"input": "0 0 0 2;0 2 5 5;3 2 4 3;0 2 4 1", "output": "1 1 1 1;1 4 1 1;1 4 0 1;1 1 1 1"}], "query_input": "3 2 1 5;3 5 5 1;3 5 3 4;4 2 5 5", "query_output": "1 1 1 1;1 1 1 1;1 1 5 1;1 1 1 1"} |
| {"task_id": "icgr-00435", "rule": "flip_v+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "4 0 4 3;2 2 1 3;3 2 4 2;0 1 3 2;2 3 0 4", "output": "3 4 1 0;1 2 4 3;4 3 0 3;3 3 2 4;0 1 0 4"}, {"input": "4 4 2 3;3 2 4 4;0 1 0 4;3 2 3 3;1 0 4 0", "output": "2 1 0 1;4 3 4 4;1 2 1 0;4 3 0 0;0 0 3 4"}], "query_input": "1 3 4 0;0 2 0 3;2 1 0 4;4 3 3 1;4 0 1 0", "query_output": "0 1 2 1;0 4 4 2;3 2 1 0;1 3 1 4;2 4 0 1"} |
| {"task_id": "icgr-00741", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "3 3 0 0 2;4 2 5 5 3;1 2 4 3 0", "output": "3 4 1;3 2 2;0 5 4;0 5 3;2 3 0"}, {"input": "0 0 2 5 1;3 5 2 0 5;1 2 5 3 0", "output": "0 3 1;0 5 2;2 2 5;5 0 3;1 5 0"}], "query_input": "3 2 1 4 5;5 4 2 2 3;0 0 5 1 3", "query_output": "3 5 0;2 4 0;1 2 5;4 2 1;5 3 3"} |
| {"task_id": "icgr-00468", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "0 3 5;0 0 3;4 2 1;4 4 0", "output": "4 4 0;4 2 1;0 0 3;0 3 5"}, {"input": "5 4 0;4 0 5;1 1 3;5 5 2", "output": "5 5 2;1 1 3;4 0 5;5 4 0"}, {"input": "4 4 5;3 3 4;1 5 5;4 4 5", "output": "4 4 5;1 5 5;3 3 4;4 4 5"}], "query_input": "0 4 4;4 1 5;1 2 2;5 2 5", "query_output": "5 2 5;1 2 2;4 1 5;0 4 4"} |
| {"task_id": "icgr-00062", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "1 2 0 4 1;1 3 3 0 4;2 3 0 0 4", "output": "4 1 1 2 0;0 4 1 3 3;0 4 2 3 0"}, {"input": "1 3 1 2 1;2 0 3 1 4;3 4 4 2 4", "output": "2 1 1 3 1;1 4 2 0 3;2 4 3 4 4"}, {"input": "0 0 1 0 2;1 1 3 0 0;3 0 0 3 3", "output": "0 2 0 0 1;0 0 1 1 3;3 3 3 0 0"}, {"input": "0 0 2 4 3;3 4 3 0 0;4 1 0 0 2", "output": "4 3 0 0 2;0 0 3 4 3;0 2 4 1 0"}], "query_input": "1 4 4 4 4;3 4 1 3 4;1 4 2 2 4", "query_output": "4 4 1 4 4;3 4 3 4 1;2 4 1 4 2"} |
| {"task_id": "icgr-00653", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 6, "grid_w": 4, "num_support": 3, "support": [{"input": "4 5 4 4;1 1 2 3;5 1 1 4;1 0 2 0;1 0 2 3;3 2 1 1", "output": "5 4;5 4;3 3"}, {"input": "2 5 0 2;3 0 2 0;0 5 2 1;0 3 4 0;2 0 0 3;2 2 1 0", "output": "5 2;5 4;2 3"}, {"input": "0 0 3 1;3 4 2 1;3 5 4 5;1 2 0 1;1 3 4 2;1 1 2 3", "output": "4 3;5 5;3 4"}], "query_input": "2 0 2 5;1 1 1 0;0 2 4 3;2 3 0 5;2 2 2 5;0 1 5 2", "query_output": "2 5;3 5;2 5"} |
| {"task_id": "icgr-00194", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "4 3 2;1 3 1;4 0 3;0 1 0", "output": "4 3 2 4 3 2;1 3 1 1 3 1;4 0 3 4 0 3;0 1 0 0 1 0"}, {"input": "1 0 0;4 0 2;1 1 2;2 4 3", "output": "1 0 0 1 0 0;4 0 2 4 0 2;1 1 2 1 1 2;2 4 3 2 4 3"}, {"input": "3 1 4;1 0 0;2 2 0;3 0 4", "output": "3 1 4 3 1 4;1 0 0 1 0 0;2 2 0 2 2 0;3 0 4 3 0 4"}], "query_input": "3 2 3;4 3 0;0 3 0;1 3 1", "query_output": "3 2 3 3 2 3;4 3 0 4 3 0;0 3 0 0 3 0;1 3 1 1 3 1"} |
| {"task_id": "icgr-00828", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "0 2 0 1;0 1 2 1;1 4 3 4;2 0 4 1;2 4 2 0", "output": "2 2 1 0 0;4 0 4 1 2;2 4 3 2 0;0 1 4 1 1"}, {"input": "0 0 3 1;3 4 4 0;1 3 3 4;1 3 0 4;2 2 2 4", "output": "2 1 1 3 0;2 3 3 4 0;2 0 3 4 3;4 4 4 0 1"}], "query_input": "0 4 2 3;0 2 4 3;2 3 1 0;1 4 3 0;4 2 1 0", "query_output": "4 1 2 0 0;2 4 3 2 4;1 3 1 4 2;0 0 0 3 3"} |
| {"task_id": "icgr-00712", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "2 2 0 0 1;3 0 1 4 4;3 2 4 1 4;0 2 0 2 3;4 0 4 4 2", "output": "2 3 3 0 4;2 0 2 2 0;0 1 4 0 4;0 4 1 2 4;1 4 4 3 2"}, {"input": "3 3 0 4 0;2 0 2 4 1;3 1 3 2 2;0 0 0 0 3;1 2 1 3 0", "output": "3 2 3 0 1;3 0 1 0 2;0 2 3 0 1;4 4 2 0 3;0 1 2 3 0"}, {"input": "3 2 4 2 3;0 1 1 2 4;1 1 0 4 0;3 4 3 4 0;2 3 1 1 1", "output": "3 0 1 3 2;2 1 1 4 3;4 1 0 3 1;2 2 4 4 1;3 4 0 0 1"}, {"input": "0 3 0 2 2;3 0 2 0 1;1 0 0 0 3;4 1 1 4 1;2 2 0 1 4", "output": "0 3 1 4 2;3 0 0 1 2;0 2 0 1 0;2 0 0 4 1;2 1 3 1 4"}], "query_input": "4 4 2 3 0;1 3 0 2 2;0 3 1 4 1;4 4 1 4 2;1 4 2 4 2", "query_output": "4 1 0 4 1;4 3 3 4 4;2 0 1 1 2;3 2 4 4 4;0 2 1 2 2"} |
| {"task_id": "icgr-00513", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "0 0 1 1 2;4 4 2 3 2;0 1 2 3 1;1 2 2 4 4;3 1 2 3 3", "output": "1 1 2 2 3;0 0 3 4 3;1 2 3 4 2;2 3 3 0 0;4 2 3 4 4"}, {"input": "3 0 0 4 2;0 1 4 4 0;3 1 0 3 0;4 2 2 0 3;0 1 0 1 3", "output": "4 1 1 0 3;1 2 0 0 1;4 2 1 4 1;0 3 3 1 4;1 2 1 2 4"}, {"input": "1 0 1 2 3;1 4 2 0 1;0 0 1 3 4;3 2 0 3 2;0 4 3 0 1", "output": "2 1 2 3 4;2 0 3 1 2;1 1 2 4 0;4 3 1 4 3;1 0 4 1 2"}], "query_input": "2 1 3 4 2;2 3 2 2 4;4 1 3 0 4;4 1 1 3 0;3 0 3 0 2", "query_output": "3 2 4 0 3;3 4 3 3 0;0 2 4 1 0;0 2 2 4 1;4 1 4 1 3"} |
| {"task_id": "icgr-00981", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "2 4 1 1;4 2 5 2;5 5 5 3;2 4 1 0;2 4 0 1", "output": "2 4 5 2 2;4 2 5 4 4;1 5 5 1 0;1 2 3 0 1"}, {"input": "0 2 0 4;0 0 4 5;1 5 0 0;0 2 3 0;1 0 2 1", "output": "0 0 1 0 1;2 0 5 2 0;0 4 0 3 2;4 5 0 0 1"}], "query_input": "5 3 3 5;4 2 4 5;2 1 4 5;3 0 5 5;3 3 4 1", "query_output": "5 4 2 3 3;3 2 1 0 3;3 4 4 5 4;5 5 5 5 1"} |
| {"task_id": "icgr-00632", "rule": "color_swap+flip_v", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "3 1 4 0 1;3 3 2 1 3;0 5 4 4 5;2 0 2 2 3;3 5 2 3 4", "output": "3 5 0 3 4;0 2 0 0 3;2 5 4 4 5;3 3 0 1 3;3 1 4 2 1"}, {"input": "4 3 1 0 2;5 3 5 5 0;4 0 0 2 2;0 4 4 4 5;0 0 0 0 2", "output": "2 2 2 2 0;2 4 4 4 5;4 2 2 0 0;5 3 5 5 2;4 3 1 2 0"}, {"input": "0 4 5 0 1;1 2 3 0 4;1 0 3 3 1;0 4 5 3 3;3 5 2 2 0", "output": "3 5 0 0 2;2 4 5 3 3;1 2 3 3 1;1 0 3 2 4;2 4 5 2 1"}, {"input": "5 2 4 3 5;2 3 4 0 5;5 5 3 3 4;4 3 0 0 5;1 5 5 1 5", "output": "1 5 5 1 5;4 3 2 2 5;5 5 3 3 4;0 3 4 2 5;5 0 4 3 5"}], "query_input": "3 0 4 2 5;0 2 2 0 3;2 4 2 0 1;1 0 5 5 0;3 0 0 5 1", "query_output": "3 2 2 5 1;1 2 5 5 2;0 4 0 2 1;2 0 0 2 3;3 2 4 0 5"} |
| {"task_id": "icgr-00646", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "2 4 0;2 4 3;3 4 0", "output": "2 4 0 2 4 0;2 4 3 2 4 3;3 4 0 3 4 0"}, {"input": "2 1 4;2 2 3;0 4 1", "output": "2 1 4 2 1 4;2 2 3 2 2 3;0 4 1 0 4 1"}, {"input": "3 1 4;0 0 2;3 2 3", "output": "3 1 4 3 1 4;0 0 2 0 0 2;3 2 3 3 2 3"}, {"input": "3 3 1;4 2 0;4 1 0", "output": "3 3 1 3 3 1;4 2 0 4 2 0;4 1 0 4 1 0"}], "query_input": "1 1 0;4 4 0;1 1 1", "query_output": "1 1 0 1 1 0;4 4 0 4 4 0;1 1 1 1 1 1"} |
| {"task_id": "icgr-00582", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "0 0 3;2 3 5;2 4 1;0 5 2", "output": "3 0 0;5 3 2;1 4 2;2 5 0"}, {"input": "1 1 2;0 2 0;2 3 0;5 0 5", "output": "2 1 1;0 2 0;0 3 2;5 0 5"}, {"input": "0 1 1;4 1 1;5 4 0;0 1 5", "output": "1 1 0;1 1 4;0 4 5;5 1 0"}], "query_input": "2 1 3;2 0 2;2 4 4;3 5 4", "query_output": "3 1 2;2 0 2;4 4 2;4 5 3"} |
| {"task_id": "icgr-00602", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "2 2 2 2 4;4 5 1 4 3;1 0 0 4 5;2 1 4 5 0", "output": "2 1 4 2;1 0 5 2;4 0 1 2;5 4 4 2;0 5 3 4"}, {"input": "3 0 3 2 2;0 0 1 0 1;5 5 4 0 1;3 4 4 2 3", "output": "3 5 0 3;4 5 0 0;4 4 1 3;2 0 0 2;3 1 1 2"}, {"input": "4 4 3 5 4;0 0 3 1 4;3 1 0 3 2;1 1 1 0 2", "output": "1 3 0 4;1 1 0 4;1 0 3 3;0 3 1 5;2 2 4 4"}], "query_input": "0 1 1 0 4;5 1 4 0 3;0 3 3 0 4;1 1 1 1 4", "query_output": "1 0 5 0;1 3 1 1;1 3 4 1;1 0 0 0;4 4 3 4"} |
| {"task_id": "icgr-00956", "rule": "shift_rows+color_swap", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "0 3 2;3 3 3;1 3 1", "output": "2 0 1;1 1 1;3 3 1"}, {"input": "1 0 1;1 1 3;1 1 2", "output": "3 3 0;1 3 3;2 3 3"}], "query_input": "1 3 2;1 3 2;1 2 0", "query_output": "2 3 1;2 3 1;0 3 2"} |
| {"task_id": "icgr-00839", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "5 1 0 2;5 5 1 1;4 0 0 3;3 4 0 2;4 0 2 4", "output": "5 5 4 3 4;1 5 0 4 0;0 1 0 0 2;2 1 3 2 4"}, {"input": "3 3 3 5;4 4 2 1;0 5 5 3;2 3 0 0;1 0 4 3", "output": "3 4 0 2 1;3 4 5 3 0;3 2 5 0 4;5 1 3 0 3"}, {"input": "4 1 4 0;2 1 4 3;3 1 4 5;0 5 3 1;0 1 5 4", "output": "4 2 3 0 0;1 1 1 5 1;4 4 4 3 5;0 3 5 1 4"}], "query_input": "0 3 5 3;4 3 1 1;4 0 2 2;2 2 5 4;3 3 3 1", "query_output": "0 4 4 2 3;3 3 0 2 3;5 1 2 5 3;3 1 2 4 1"} |
| {"task_id": "icgr-00253", "rule": "add_mod+border", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "3 2 1;4 0 2;0 2 1;3 5 5", "output": "2 2 2;2 4 2;2 0 2;2 2 2"}, {"input": "3 1 2;2 1 3;0 0 4;5 3 2", "output": "2 2 2;2 5 2;2 4 2;2 2 2"}, {"input": "4 1 3;0 1 0;2 3 0;5 4 0", "output": "2 2 2;2 5 2;2 1 2;2 2 2"}], "query_input": "1 4 5;4 1 4;0 5 2;2 1 4", "query_output": "2 2 2;2 5 2;2 3 2;2 2 2"} |
| {"task_id": "icgr-00322", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "0 3 1 1 0;1 0 1 2 2;0 3 3 3 3;1 1 3 1 3", "output": "1 0 1 0;1 3 0 3;3 3 1 1;1 3 2 1;3 3 2 0"}, {"input": "2 0 0 2 1;3 0 0 0 3;1 3 2 2 2;2 0 1 3 0", "output": "2 1 3 2;0 3 0 0;1 2 0 0;3 2 0 2;0 2 3 1"}], "query_input": "0 1 1 2 1;3 1 3 3 2;0 0 2 2 0;0 3 0 1 2", "query_output": "0 0 3 0;3 0 1 1;0 2 3 1;1 2 3 2;2 0 2 1"} |
| {"task_id": "icgr-00658", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "5 5 3 5 1;5 5 2 0 4;4 4 1 0 0;2 4 1 4 0;5 1 0 0 2", "output": "5 5 2 5 1;5 5 3 0 4;4 4 1 0 0;3 4 1 4 0;5 1 0 0 3"}, {"input": "0 4 2 1 2;0 2 3 4 0;0 0 2 1 3;2 4 3 0 1;1 5 3 1 3", "output": "0 4 3 1 3;0 3 2 4 0;0 0 3 1 2;3 4 2 0 1;1 5 2 1 2"}, {"input": "4 0 4 5 1;1 3 4 2 2;1 2 0 5 5;5 0 5 3 5;5 0 2 1 4", "output": "4 0 4 5 1;1 2 4 3 3;1 3 0 5 5;5 0 5 2 5;5 0 3 1 4"}], "query_input": "1 3 1 0 4;1 1 3 3 4;5 2 5 5 5;1 4 0 4 4;1 0 3 4 4", "query_output": "1 2 1 0 4;1 1 2 2 4;5 3 5 5 5;1 4 0 4 4;1 0 2 4 4"} |
| {"task_id": "icgr-00161", "rule": "flip_v+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "0 3 2;0 5 0;1 5 3", "output": "1 5 3;4 5 4;4 3 2"}, {"input": "2 0 0;1 1 3;4 5 0", "output": "0 5 4;1 1 3;2 4 4"}], "query_input": "5 3 3;5 4 3;1 5 1", "query_output": "1 5 1;5 0 3;5 3 3"} |
| {"task_id": "icgr-00296", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "3 2 2 0 2;2 2 3 3 2;0 3 0 2 0;0 0 1 3 2", "output": "3 2 2 0 2 3 2 2 0 2;2 2 3 3 2 2 2 3 3 2;0 3 0 2 0 0 3 0 2 0;0 0 1 3 2 0 0 1 3 2"}, {"input": "3 1 3 3 1;3 3 0 3 3;2 3 0 0 3;1 1 3 1 0", "output": "3 1 3 3 1 3 1 3 3 1;3 3 0 3 3 3 3 0 3 3;2 3 0 0 3 2 3 0 0 3;1 1 3 1 0 1 1 3 1 0"}], "query_input": "0 1 3 2 1;1 3 1 2 0;2 1 3 3 3;2 3 1 2 1", "query_output": "0 1 3 2 1 0 1 3 2 1;1 3 1 2 0 1 3 1 2 0;2 1 3 3 3 2 1 3 3 3;2 3 1 2 1 2 3 1 2 1"} |
| {"task_id": "icgr-00942", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "3 1 3;0 1 3;2 0 0;2 1 1;3 2 3", "output": "3 1 3 3 1 3;0 1 3 0 1 3;2 0 0 2 0 0;2 1 1 2 1 1;3 2 3 3 2 3"}, {"input": "1 2 1;3 2 3;1 2 3;0 0 1;2 1 2", "output": "1 2 1 1 2 1;3 2 3 3 2 3;1 2 3 1 2 3;0 0 1 0 0 1;2 1 2 2 1 2"}, {"input": "0 3 1;1 3 2;0 3 2;2 2 3;0 3 0", "output": "0 3 1 0 3 1;1 3 2 1 3 2;0 3 2 0 3 2;2 2 3 2 2 3;0 3 0 0 3 0"}, {"input": "3 2 1;3 2 3;1 2 3;1 3 0;2 0 3", "output": "3 2 1 3 2 1;3 2 3 3 2 3;1 2 3 1 2 3;1 3 0 1 3 0;2 0 3 2 0 3"}], "query_input": "3 2 0;1 0 1;2 1 2;3 0 1;1 2 1", "query_output": "3 2 0 3 2 0;1 0 1 1 0 1;2 1 2 2 1 2;3 0 1 3 0 1;1 2 1 1 2 1"} |
| {"task_id": "icgr-00609", "rule": "shift_rows+add_mod", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "0 1 0;1 1 1;3 2 0;2 2 1", "output": "3 2 2;3 3 3;0 2 1;0 3 0"}, {"input": "2 3 1;0 2 3;0 0 3;3 0 2", "output": "1 3 0;0 1 2;2 1 2;2 0 1"}, {"input": "2 0 0;1 0 0;3 1 2;3 3 0", "output": "2 2 0;2 2 3;3 0 1;1 2 1"}], "query_input": "3 2 1;3 0 1;3 0 2;0 2 2", "query_output": "0 3 1;2 3 1;2 0 1;0 0 2"} |
| {"task_id": "icgr-00569", "rule": "flip_v+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "3 4 2 4;1 0 2 0;4 4 0 2;4 0 1 2;0 0 2 4", "output": "1 1 3 0;0 1 2 3;0 0 1 3;2 1 3 1;4 0 3 0"}, {"input": "4 2 0 1;4 0 0 4;0 2 0 2;2 4 1 2;4 4 0 2", "output": "0 0 1 3;3 0 2 3;1 3 1 3;0 1 1 0;0 3 1 2"}], "query_input": "1 3 1 2;0 1 2 4;0 2 0 2;0 1 4 0;0 4 3 2", "query_output": "1 0 4 3;1 2 0 1;1 3 1 3;1 2 3 0;2 4 2 3"} |
| {"task_id": "icgr-00869", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "1 0 3;1 3 0;2 0 2;3 2 2", "output": "1 0 3 1 0 3;1 3 0 1 3 0;2 0 2 2 0 2;3 2 2 3 2 2"}, {"input": "3 2 1;2 2 3;2 0 0;3 0 3", "output": "3 2 1 3 2 1;2 2 3 2 2 3;2 0 0 2 0 0;3 0 3 3 0 3"}], "query_input": "1 2 1;1 1 0;0 2 0;2 1 0", "query_output": "1 2 1 1 2 1;1 1 0 1 1 0;0 2 0 0 2 0;2 1 0 2 1 0"} |
| {"task_id": "icgr-00177", "rule": "color_swap+border", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "4 3 0 2;4 4 3 2;0 0 3 0;4 3 1 4;0 1 0 1", "output": "0 0 0 0;0 1 3 0;0 0 3 0;0 3 4 0;0 0 0 0"}, {"input": "2 0 1 2;4 2 3 2;2 0 1 3;4 0 2 4;4 3 3 1", "output": "0 0 0 0;0 2 3 0;0 0 4 0;0 0 2 0;0 0 0 0"}], "query_input": "4 2 3 2;2 2 4 2;0 2 1 2;2 1 3 4;2 4 0 3", "query_output": "0 0 0 0;0 2 1 0;0 2 4 0;0 4 3 0;0 0 0 0"} |
| {"task_id": "icgr-00104", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "0 1 1 4;1 1 4 1;1 0 3 0", "output": "1 1 0;0 1 1;3 4 1;0 1 4"}, {"input": "3 3 4 2;1 2 1 0;4 2 4 3", "output": "4 1 3;2 2 3;4 1 4;3 0 2"}], "query_input": "2 1 3 4;1 1 2 3;1 4 1 0", "query_output": "1 1 2;4 1 1;1 2 3;0 3 4"} |
| {"task_id": "icgr-00510", "rule": "shift_rows+flip_v", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "2 1 3 4;3 1 4 3;4 4 3 3;2 3 1 1", "output": "1 2 3 1;3 4 4 3;3 3 1 4;4 2 1 3"}, {"input": "1 1 2 1;3 0 3 4;0 1 3 3;1 3 2 1", "output": "1 1 3 2;3 0 1 3;4 3 0 3;1 1 1 2"}, {"input": "0 2 0 0;4 1 3 0;1 1 2 1;1 2 1 1", "output": "1 1 2 1;1 1 1 2;0 4 1 3;0 0 2 0"}], "query_input": "0 4 3 4;1 4 2 3;3 4 3 0;3 0 1 1", "query_output": "1 3 0 1;0 3 4 3;3 1 4 2;4 0 4 3"} |
| {"task_id": "icgr-00552", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "5 5 2;3 5 1;5 1 2;4 1 2;2 3 0", "output": "0 0 3;4 0 2;0 2 3;5 2 3;3 4 1"}, {"input": "0 5 4;0 3 4;4 1 5;2 0 1;5 2 5", "output": "1 0 5;1 4 5;5 2 0;3 1 2;0 3 0"}], "query_input": "1 5 2;5 1 5;3 0 5;2 1 3;5 0 1", "query_output": "2 0 3;0 2 0;4 1 0;3 2 4;0 1 2"} |
| {"task_id": "icgr-00295", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 4, "grid_w": 6, "num_support": 4, "support": [{"input": "4 3 1 2 5 0;2 5 3 2 3 2;0 3 0 0 0 0;3 4 0 3 1 1", "output": "5 3 5;4 3 1"}, {"input": "0 0 3 1 4 1;2 4 2 5 1 4;2 3 0 1 0 3;3 0 2 4 0 3", "output": "4 5 4;3 4 3"}, {"input": "1 1 4 0 1 0;4 3 5 1 2 1;2 4 1 2 4 5;5 5 4 0 3 2", "output": "4 5 2;5 4 5"}, {"input": "1 4 3 3 2 2;5 0 0 2 4 1;0 3 4 4 3 3;3 3 0 3 0 0", "output": "5 3 4;3 4 3"}], "query_input": "5 1 2 5 0 1;4 0 4 2 5 4;0 0 3 1 0 5;2 2 2 5 1 4", "query_output": "5 5 5;2 5 5"} |
| {"task_id": "icgr-00069", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 6, "grid_w": 6, "num_support": 4, "support": [{"input": "2 2 2 1 0 3;1 0 1 2 3 3;2 0 3 1 3 3;1 1 0 3 3 0;2 1 1 2 3 0;3 2 3 3 3 2", "output": "2 2 3;2 3 3;3 3 3"}, {"input": "2 0 2 0 1 3;1 2 0 1 3 2;1 0 3 0 2 1;2 0 1 0 3 2;3 3 0 2 1 2;2 0 2 2 3 2", "output": "2 2 3;2 3 3;3 2 3"}, {"input": "1 3 1 0 0 3;0 0 2 2 2 2;3 1 0 1 3 3;2 2 2 0 2 2;3 0 3 2 2 1;0 0 3 1 0 1", "output": "3 2 3;3 2 3;3 3 2"}, {"input": "3 3 0 2 0 3;3 0 0 0 0 1;3 2 0 1 0 3;1 0 2 3 3 0;1 0 3 0 3 2;0 0 0 2 2 0", "output": "3 2 3;3 3 3;1 3 3"}], "query_input": "1 3 0 3 3 1;1 0 0 3 3 1;0 1 1 2 3 1;2 2 0 0 0 3;3 2 2 2 3 3;3 1 3 3 1 1", "query_output": "3 3 3;2 2 3;3 3 3"} |
| {"task_id": "icgr-00258", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "1 0 3;0 1 0;0 1 2;2 1 2", "output": "2 0 0 1;1 1 1 0;2 2 0 3"}, {"input": "3 0 1;0 2 3;2 1 3;2 0 1", "output": "2 2 0 3;0 1 2 0;1 3 3 1"}, {"input": "0 1 2;0 2 3;1 2 3;2 0 3", "output": "2 1 0 0;0 2 2 1;3 3 3 2"}, {"input": "0 1 2;1 3 0;2 1 1;1 1 2", "output": "1 2 1 0;1 1 3 1;2 1 0 2"}], "query_input": "2 2 1;0 3 0;1 1 3;2 1 2", "query_output": "2 1 0 2;1 1 3 2;2 3 0 1"} |
| {"task_id": "icgr-00670", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "0 3 0 1;3 3 2 4;4 2 0 1", "output": "0 3 4;3 3 2;0 2 0;1 4 1"}, {"input": "3 0 4 4;1 0 2 2;1 0 0 0", "output": "3 1 1;0 0 0;4 2 0;4 2 0"}, {"input": "4 1 4 1;0 4 2 2;0 2 0 0", "output": "4 0 0;1 4 2;4 2 0;1 2 0"}], "query_input": "3 0 3 1;3 2 2 4;0 0 4 1", "query_output": "3 3 0;0 2 0;3 2 4;1 4 1"} |
| {"task_id": "icgr-00448", "rule": "border+shift_rows", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "4 4 0;1 0 2;1 0 2", "output": "1 1 1;1 1 0;1 1 1"}, {"input": "4 2 4;3 4 3;3 4 2", "output": "1 1 1;1 1 4;1 1 1"}], "query_input": "1 0 0;0 0 2;4 4 3", "query_output": "1 1 1;1 1 0;1 1 1"} |
| {"task_id": "icgr-00895", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "4 1 0 3 2;4 4 3 1 1;3 2 0 0 4", "output": "3 0 4 2 1;3 3 2 0 0;2 1 4 4 3"}, {"input": "1 2 3 3 4;1 3 0 4 4;0 2 0 0 2", "output": "0 1 2 2 3;0 2 4 3 3;4 1 4 4 1"}, {"input": "3 3 4 4 1;3 2 1 3 1;2 3 2 1 1", "output": "2 2 3 3 0;2 1 0 2 0;1 2 1 0 0"}, {"input": "0 2 1 2 0;0 0 0 2 1;4 1 2 1 1", "output": "4 1 0 1 4;4 4 4 1 0;3 0 1 0 0"}], "query_input": "1 3 1 2 1;0 1 3 3 0;1 0 4 2 2", "query_output": "0 2 0 1 0;4 0 2 2 4;0 4 3 1 1"} |
| {"task_id": "icgr-00005", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "0 2 3 0 2;5 0 1 2 2;3 1 5 0 2", "output": "3 5 0;1 0 2;5 1 3;0 2 0;2 2 2"}, {"input": "1 4 4 5 5;0 5 3 0 3;5 0 1 5 1", "output": "5 0 1;0 5 4;1 3 4;5 0 5;1 3 5"}], "query_input": "4 3 4 1 0;1 5 3 4 5;3 0 1 2 1", "query_output": "3 1 4;0 5 3;1 3 4;2 4 1;1 5 0"} |
| {"task_id": "icgr-00862", "rule": "flip_h+shift_rows", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "3 2 1 1 1;1 2 0 1 2;2 3 3 1 2;2 2 1 3 2", "output": "2 3 1 1 1;2 1 2 1 0;3 2 2 1 3;2 2 2 3 1"}, {"input": "0 2 3 2 3;2 0 2 0 1;2 2 2 3 3;3 3 2 3 3", "output": "2 0 3 2 3;0 2 1 0 2;2 2 3 3 2;3 3 3 3 2"}, {"input": "3 1 0 0 0;3 3 1 2 0;2 3 2 0 0;3 3 2 1 1", "output": "1 3 0 0 0;3 3 0 2 1;3 2 0 0 2;3 3 1 1 2"}], "query_input": "0 1 1 1 0;3 1 0 2 2;2 3 3 2 3;1 3 1 3 1", "query_output": "1 0 0 1 1;1 3 2 2 0;3 2 3 2 3;3 1 1 3 1"} |
| {"task_id": "icgr-00990", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "1 3 2;2 4 2;2 1 1;4 2 1", "output": "3 2 1;4 2 2;1 1 2;2 1 4"}, {"input": "1 1 4;1 0 0;4 3 0;1 1 3", "output": "1 4 1;0 0 1;3 0 4;1 3 1"}, {"input": "4 1 0;3 3 2;4 1 1;3 4 3", "output": "1 0 4;3 2 3;1 1 4;4 3 3"}], "query_input": "1 4 4;0 3 0;1 4 2;0 0 1", "query_output": "4 4 1;3 0 0;4 2 1;0 1 0"} |
| {"task_id": "icgr-00687", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "3 1 2 1 3;2 1 0 0 3;2 3 3 0 2;1 2 0 1 3", "output": "1 2 2 3;2 3 1 1;0 3 0 2;1 0 0 1;3 2 3 3"}, {"input": "0 1 0 3 1;1 3 3 3 3;3 2 2 3 1;1 2 3 2 0", "output": "1 3 1 0;2 2 3 1;3 2 3 0;2 3 3 3;0 1 3 1"}, {"input": "1 3 3 0 2;0 3 1 0 0;2 0 3 3 3;3 0 3 0 3", "output": "3 2 0 1;0 0 3 3;3 3 1 3;0 3 0 0;3 3 0 2"}], "query_input": "3 2 3 0 3;0 2 1 1 0;0 0 1 3 2;3 0 1 2 3", "query_output": "3 0 0 3;0 0 2 2;1 1 1 3;2 3 1 0;3 2 0 3"} |
| {"task_id": "icgr-00722", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "0 1 5 5 4;3 0 1 0 2;0 4 0 2 4;1 3 3 3 1", "output": "0 1 5 5 4 0 1 5 5 4;3 0 1 0 2 3 0 1 0 2;0 4 0 2 4 0 4 0 2 4;1 3 3 3 1 1 3 3 3 1"}, {"input": "1 5 3 0 2;2 0 1 2 1;2 2 5 4 1;2 1 0 4 0", "output": "1 5 3 0 2 1 5 3 0 2;2 0 1 2 1 2 0 1 2 1;2 2 5 4 1 2 2 5 4 1;2 1 0 4 0 2 1 0 4 0"}], "query_input": "5 5 5 3 4;1 5 5 5 4;1 0 1 3 0;5 4 2 4 1", "query_output": "5 5 5 3 4 5 5 5 3 4;1 5 5 5 4 1 5 5 5 4;1 0 1 3 0 1 0 1 3 0;5 4 2 4 1 5 4 2 4 1"} |
| {"task_id": "icgr-00422", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "1 1 0 3;4 2 0 4;2 4 3 4", "output": "1 1 0 3 1 1 0 3;4 2 0 4 4 2 0 4;2 4 3 4 2 4 3 4"}, {"input": "2 4 0 3;4 3 3 4;3 3 0 4", "output": "2 4 0 3 2 4 0 3;4 3 3 4 4 3 3 4;3 3 0 4 3 3 0 4"}, {"input": "2 1 3 4;3 4 0 3;2 3 3 2", "output": "2 1 3 4 2 1 3 4;3 4 0 3 3 4 0 3;2 3 3 2 2 3 3 2"}], "query_input": "3 3 4 0;0 3 4 4;2 0 3 3", "query_output": "3 3 4 0 3 3 4 0;0 3 4 4 0 3 4 4;2 0 3 3 2 0 3 3"} |
| {"task_id": "icgr-00156", "rule": "flip_v+flip_h", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "0 0 3 3 3;1 1 0 3 2;2 2 2 0 1;3 3 2 1 0;1 1 3 2 0", "output": "0 2 3 1 1;0 1 2 3 3;1 0 2 2 2;2 3 0 1 1;3 3 3 0 0"}, {"input": "0 1 1 3 3;1 3 3 0 0;3 2 3 2 1;3 1 2 0 1;2 0 0 3 2", "output": "2 3 0 0 2;1 0 2 1 3;1 2 3 2 3;0 0 3 3 1;3 3 1 1 0"}], "query_input": "0 3 0 2 0;3 3 0 2 3;2 3 1 3 3;2 1 0 2 0;2 2 1 1 3", "query_output": "3 1 1 2 2;0 2 0 1 2;3 3 1 3 2;3 2 0 3 3;0 2 0 3 0"} |
| {"task_id": "icgr-00827", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "3 2 1 3;3 1 1 2;2 3 3 3;2 2 3 3", "output": "3 1 2 3;2 1 1 3;3 3 3 2;3 3 2 2"}, {"input": "1 2 1 1;1 2 1 1;1 1 3 1;1 1 3 3", "output": "1 1 2 1;1 1 2 1;1 3 1 1;3 3 1 1"}], "query_input": "3 1 2 2;3 0 2 2;1 0 1 0;0 0 1 0", "query_output": "2 2 1 3;2 2 0 3;0 1 0 1;0 1 0 0"} |
| {"task_id": "icgr-00908", "rule": "add_mod+shift_rows", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "0 4 3;1 2 0;5 2 2;3 0 4", "output": "2 1 4;0 4 5;0 0 3;4 2 1"}, {"input": "2 0 5;0 2 4;0 4 0;0 5 4", "output": "4 3 0;0 2 4;2 4 4;3 2 4"}, {"input": "4 0 2;5 0 0;3 0 5;2 5 5", "output": "4 0 2;4 4 3;4 3 1;3 3 0"}], "query_input": "3 1 1;4 2 0;1 0 2;0 4 4", "query_output": "5 5 1;0 4 2;4 0 5;2 2 4"} |
| {"task_id": "icgr-00118", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "3 0 2 3 4;4 2 2 2 0;5 0 4 3 3", "output": "4 3 2 0 3;0 2 2 2 4;3 3 4 0 5"}, {"input": "3 2 1 4 5;5 2 0 5 3;2 4 1 3 1", "output": "5 4 1 2 3;3 5 0 2 5;1 3 1 4 2"}, {"input": "3 0 1 2 3;4 4 5 2 0;1 4 1 3 4", "output": "3 2 1 0 3;0 2 5 4 4;4 3 1 4 1"}], "query_input": "0 0 5 0 5;5 4 4 1 5;4 2 4 4 1", "query_output": "5 0 5 0 0;5 1 4 4 5;1 4 4 2 4"} |
| {"task_id": "icgr-00390", "rule": "color_swap+flip_v", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "1 3 2;4 0 0;2 2 3;3 4 3", "output": "3 1 3;2 2 3;1 0 0;4 3 2"}, {"input": "0 4 3;0 1 4;4 2 2;1 3 0", "output": "4 3 0;1 2 2;0 4 1;0 1 3"}], "query_input": "3 0 2;0 3 0;2 0 0;0 1 0", "query_output": "0 4 0;2 0 0;0 3 0;3 0 2"} |
| {"task_id": "icgr-00153", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "4 1 4 4 4;1 0 2 5 2;4 3 1 5 5", "output": "4 4 4 1 4;2 5 2 0 1;5 5 1 3 4"}, {"input": "1 2 1 1 3;0 2 1 4 3;0 0 4 5 4", "output": "3 1 1 2 1;3 4 1 2 0;4 5 4 0 0"}, {"input": "1 3 4 3 0;3 2 0 1 2;1 2 3 4 4", "output": "0 3 4 3 1;2 1 0 2 3;4 4 3 2 1"}, {"input": "4 5 3 0 2;4 5 0 0 3;2 5 2 5 1", "output": "2 0 3 5 4;3 0 0 5 4;1 5 2 5 2"}], "query_input": "5 0 1 0 0;0 3 4 1 0;3 1 4 1 1", "query_output": "0 0 1 0 5;0 1 4 3 0;1 1 4 1 3"} |
| {"task_id": "icgr-00481", "rule": "border+add_mod", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "0 0 4;0 1 4;2 2 2;1 4 2;2 3 2", "output": "4 4 4;4 4 4;4 0 4;4 2 4;4 4 4"}, {"input": "3 1 1;4 0 0;1 0 3;4 4 0;3 0 2", "output": "4 4 4;4 3 4;4 3 4;4 2 4;4 4 4"}], "query_input": "0 3 4;1 4 1;1 1 1;1 2 4;1 4 3", "query_output": "4 4 4;4 2 4;4 4 4;4 0 4;4 4 4"} |
| {"task_id": "icgr-00212", "rule": "border+flip_h", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "1 5 3 2 3;1 4 3 5 5;3 2 3 5 0", "output": "2 2 2 2 2;2 5 3 4 2;2 2 2 2 2"}, {"input": "1 4 4 0 1;0 3 2 1 0;4 4 0 1 1", "output": "2 2 2 2 2;2 1 2 3 2;2 2 2 2 2"}, {"input": "3 5 5 2 1;3 1 2 2 5;2 2 4 2 2", "output": "2 2 2 2 2;2 2 2 1 2;2 2 2 2 2"}], "query_input": "5 3 0 5 5;4 3 0 5 0;3 0 3 5 1", "query_output": "2 2 2 2 2;2 5 0 3 2;2 2 2 2 2"} |
| {"task_id": "icgr-00729", "rule": "add_mod+color_swap", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "4 3 3;3 2 4;2 0 2;4 2 2", "output": "2 1 1;1 0 2;0 3 0;2 0 0"}, {"input": "1 3 0;0 2 3;2 4 4;1 2 0", "output": "4 1 3;3 0 1;0 2 2;4 0 3"}, {"input": "3 4 1;2 1 4;3 0 1;4 2 1", "output": "1 2 4;0 4 2;1 3 4;2 0 4"}], "query_input": "1 1 0;1 2 0;4 4 4;4 2 1", "query_output": "4 4 3;4 0 3;2 2 2;2 0 4"} |
| {"task_id": "icgr-00476", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "3 4 2 3;2 1 1 5;1 0 0 3;5 2 3 2;3 1 2 2", "output": "3 1 2 2;5 2 3 2;1 0 0 3;2 1 1 5;3 4 2 3"}, {"input": "0 0 2 1;1 2 0 3;1 4 4 3;5 4 5 5;1 0 1 1", "output": "1 0 1 1;5 4 5 5;1 4 4 3;1 2 0 3;0 0 2 1"}], "query_input": "5 3 3 0;2 4 4 3;5 3 5 3;0 5 5 4;1 5 5 4", "query_output": "1 5 5 4;0 5 5 4;5 3 5 3;2 4 4 3;5 3 3 0"} |
| {"task_id": "icgr-00160", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 5, "grid_h": 6, "grid_w": 6, "num_support": 3, "support": [{"input": "0 3 0 0 2 3;0 0 4 2 4 1;0 3 4 3 4 0;0 1 3 3 1 2;4 3 3 3 1 4;1 4 3 1 0 1", "output": "3 4 4;3 4 4;4 3 4"}, {"input": "3 1 3 1 3 4;2 4 0 0 0 4;0 4 0 3 0 3;0 1 1 1 3 4;0 1 4 3 2 0;1 0 3 4 4 1", "output": "4 3 4;4 3 4;1 4 4"}, {"input": "1 3 1 2 2 4;1 4 1 1 1 3;2 2 2 4 0 4;0 1 2 1 3 3;0 3 4 0 4 2;4 3 0 2 3 0", "output": "4 2 4;2 4 4;4 4 4"}], "query_input": "4 0 4 2 0 3;2 0 2 1 3 0;2 1 2 2 3 0;0 4 1 2 2 1;2 3 3 4 2 4;0 3 3 4 1 0", "query_output": "4 4 3;4 2 3;3 4 4"} |
| {"task_id": "icgr-00352", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "4 2 3;3 2 0;0 0 0;4 3 3;5 1 4", "output": "4 2 3 4 2 3;3 2 0 3 2 0;0 0 0 0 0 0;4 3 3 4 3 3;5 1 4 5 1 4"}, {"input": "1 2 2;3 5 4;2 2 2;0 5 4;1 5 0", "output": "1 2 2 1 2 2;3 5 4 3 5 4;2 2 2 2 2 2;0 5 4 0 5 4;1 5 0 1 5 0"}, {"input": "4 0 1;0 5 2;5 4 0;3 4 5;3 5 0", "output": "4 0 1 4 0 1;0 5 2 0 5 2;5 4 0 5 4 0;3 4 5 3 4 5;3 5 0 3 5 0"}, {"input": "3 2 2;3 3 3;4 5 0;5 0 4;0 5 4", "output": "3 2 2 3 2 2;3 3 3 3 3 3;4 5 0 4 5 0;5 0 4 5 0 4;0 5 4 0 5 4"}], "query_input": "5 1 4;2 3 4;5 5 5;0 5 1;0 1 5", "query_output": "5 1 4 5 1 4;2 3 4 2 3 4;5 5 5 5 5 5;0 5 1 0 5 1;0 1 5 0 1 5"} |
| {"task_id": "icgr-00391", "rule": "shift_rows+flip_v", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "3 3 1 3 2;2 0 0 0 5;3 0 3 2 1;4 1 3 2 3;0 1 0 2 1", "output": "2 1 0 1 0;2 3 4 1 3;2 1 3 0 3;0 5 2 0 0;3 2 3 3 1"}, {"input": "0 1 0 2 0;3 3 2 0 5;4 5 1 2 4;4 1 2 4 3;0 4 0 4 3", "output": "4 3 0 4 0;4 3 4 1 2;2 4 4 5 1;0 5 3 3 2;2 0 0 1 0"}, {"input": "0 1 1 1 0;5 3 2 4 3;0 1 4 5 4;0 4 2 4 1;0 2 4 4 5", "output": "4 5 0 2 4;4 1 0 4 2;5 4 0 1 4;4 3 5 3 2;1 0 0 1 1"}, {"input": "3 4 3 2 2;0 4 3 0 1;4 5 3 5 5;0 2 3 5 0;2 2 0 3 4", "output": "3 4 2 2 0;5 0 0 2 3;5 5 4 5 3;0 1 0 4 3;2 2 3 4 3"}], "query_input": "2 4 4 0 2;4 2 0 0 4;2 4 3 3 0;4 5 4 0 0;1 0 5 3 2", "query_output": "3 2 1 0 5;0 0 4 5 4;3 0 2 4 3;0 4 4 2 0;0 2 2 4 4"} |
| {"task_id": "icgr-00225", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 6, "grid_w": 6, "num_support": 3, "support": [{"input": "0 2 0 1 3 3;0 3 2 0 0 1;0 0 2 3 3 2;2 3 1 1 3 1;2 1 1 0 3 3;0 2 0 1 3 2", "output": "3 2 3;3 3 3;2 1 3"}, {"input": "0 1 2 3 0 0;3 1 2 0 3 0;0 3 3 3 1 1;0 1 2 3 1 2;3 3 0 2 3 1;2 2 3 3 3 1", "output": "3 3 3;3 3 2;3 3 3"}, {"input": "2 0 2 2 0 0;1 2 0 1 1 2;1 0 1 2 0 3;3 3 0 0 3 2;1 0 0 2 0 0;3 3 3 0 1 2", "output": "2 2 2;3 2 3;3 3 2"}], "query_input": "1 2 2 2 0 2;0 2 0 3 1 3;0 2 3 1 0 0;1 0 2 2 2 3;3 1 3 3 3 1;2 0 3 1 2 1", "query_output": "2 3 3;2 3 3;3 3 3"} |
| {"task_id": "icgr-00263", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "2 0 0 3 2;1 2 1 1 2;1 3 1 1 0;0 1 3 2 1", "output": "0 0 0 0 0;0 2 1 1 0;0 3 1 1 0;0 0 0 0 0"}, {"input": "1 0 2 1 1;3 3 2 3 1;3 1 1 2 2;3 0 0 1 1", "output": "0 0 0 0 0;0 3 2 3 0;0 1 1 2 0;0 0 0 0 0"}], "query_input": "0 2 0 2 1;3 0 2 3 1;0 1 0 0 2;0 0 0 3 0", "query_output": "0 0 0 0 0;0 0 2 3 0;0 1 0 0 0;0 0 0 0 0"} |
| {"task_id": "icgr-00731", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "1 1 3;1 1 3;3 3 0;4 3 1;3 0 3", "output": "3 0 3;4 3 1;3 3 0;1 1 3;1 1 3"}, {"input": "0 4 3;0 3 1;4 1 0;3 3 3;4 0 4", "output": "4 0 4;3 3 3;4 1 0;0 3 1;0 4 3"}, {"input": "4 2 0;4 3 3;2 1 0;1 3 3;0 4 0", "output": "0 4 0;1 3 3;2 1 0;4 3 3;4 2 0"}, {"input": "3 3 3;0 1 1;2 2 2;0 1 0;3 0 3", "output": "3 0 3;0 1 0;2 2 2;0 1 1;3 3 3"}], "query_input": "3 2 3;0 4 0;4 0 1;3 0 4;2 3 4", "query_output": "2 3 4;3 0 4;4 0 1;0 4 0;3 2 3"} |
| {"task_id": "icgr-00072", "rule": "add_mod+border", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "3 4 1;4 1 4;4 1 2;1 2 2;4 1 2", "output": "2 2 2;2 2 2;2 2 2;2 3 2;2 2 2"}, {"input": "4 4 3;0 4 3;2 0 3;0 2 4;2 0 2", "output": "2 2 2;2 0 2;2 1 2;2 3 2;2 2 2"}, {"input": "2 0 4;2 4 0;2 1 4;2 2 2;3 4 1", "output": "2 2 2;2 0 2;2 2 2;2 3 2;2 2 2"}, {"input": "4 2 0;3 3 0;3 2 3;4 4 2;3 4 1", "output": "2 2 2;2 4 2;2 3 2;2 0 2;2 2 2"}], "query_input": "4 1 0;1 3 0;2 2 0;1 4 4;4 4 2", "query_output": "2 2 2;2 4 2;2 3 2;2 0 2;2 2 2"} |
| {"task_id": "icgr-00755", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "4 0 5 2 0;3 4 3 2 3;0 3 2 1 5;3 1 4 0 3;3 4 0 3 4", "output": "3 4 0 3 4;3 1 4 0 3;0 3 2 1 5;3 4 3 2 3;4 0 5 2 0"}, {"input": "0 5 0 4 1;5 0 4 5 0;2 4 1 1 2;5 1 1 2 1;1 4 1 2 5", "output": "1 4 1 2 5;5 1 1 2 1;2 4 1 1 2;5 0 4 5 0;0 5 0 4 1"}, {"input": "2 0 2 2 5;2 2 5 5 0;1 1 5 5 5;4 1 3 4 3;5 4 3 0 4", "output": "5 4 3 0 4;4 1 3 4 3;1 1 5 5 5;2 2 5 5 0;2 0 2 2 5"}, {"input": "3 1 3 4 1;2 1 1 5 1;1 4 1 2 5;4 1 1 2 2;0 4 4 5 2", "output": "0 4 4 5 2;4 1 1 2 2;1 4 1 2 5;2 1 1 5 1;3 1 3 4 1"}], "query_input": "4 3 2 0 3;5 5 2 1 1;1 3 3 1 3;2 2 1 3 0;2 4 4 5 2", "query_output": "2 4 4 5 2;2 2 1 3 0;1 3 3 1 3;5 5 2 1 1;4 3 2 0 3"} |
| {"task_id": "icgr-00937", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "4 0 3 1 1;1 4 1 1 1;4 1 4 1 4;0 4 4 1 0", "output": "0 4 4 1 0;4 1 4 1 4;1 4 1 1 1;4 0 3 1 1"}, {"input": "1 0 1 0 2;1 0 3 4 3;2 2 1 4 2;1 2 2 2 3", "output": "1 2 2 2 3;2 2 1 4 2;1 0 3 4 3;1 0 1 0 2"}, {"input": "2 3 2 0 1;3 3 4 4 0;3 2 3 2 4;2 3 3 1 3", "output": "2 3 3 1 3;3 2 3 2 4;3 3 4 4 0;2 3 2 0 1"}], "query_input": "3 3 0 0 3;1 4 4 4 2;0 2 3 1 0;3 1 2 2 4", "query_output": "3 1 2 2 4;0 2 3 1 0;1 4 4 4 2;3 3 0 0 3"} |
| {"task_id": "icgr-00527", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "2 1 2 4 3;3 4 3 1 3;2 2 1 3 4", "output": "4 4 4 4 4;4 4 3 1 4;4 4 4 4 4"}, {"input": "3 2 3 1 3;3 3 3 3 3;0 4 1 1 0", "output": "4 4 4 4 4;4 3 3 3 4;4 4 4 4 4"}, {"input": "4 3 2 0 3;3 2 2 2 1;3 2 3 3 1", "output": "4 4 4 4 4;4 2 2 2 4;4 4 4 4 4"}], "query_input": "0 0 1 0 4;2 2 4 1 4;4 2 4 4 0", "query_output": "4 4 4 4 4;4 2 4 1 4;4 4 4 4 4"} |
| {"task_id": "icgr-00610", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "4 2 3 2;3 0 1 2;3 0 2 2;4 2 4 1;4 1 1 3", "output": "3 2 4 2;1 2 3 0;2 2 3 0;4 1 4 2;1 3 4 1"}, {"input": "0 4 3 3;4 1 0 4;0 4 4 1;3 1 2 3;4 4 0 0", "output": "3 3 0 4;0 4 4 1;4 1 0 4;2 3 3 1;0 0 4 4"}], "query_input": "4 4 1 1;4 4 3 4;2 0 0 3;2 2 0 4;2 2 2 3", "query_output": "1 1 4 4;3 4 4 4;0 3 2 0;0 4 2 2;2 3 2 2"} |
| {"task_id": "icgr-00441", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "3 2 2 2;3 2 0 2;3 1 2 1;0 0 3 0", "output": "3 2;3 3"}, {"input": "0 3 0 2;0 2 3 2;0 2 3 2;0 0 0 0", "output": "3 3;2 3"}], "query_input": "3 1 2 3;0 2 3 3;3 1 0 0;3 3 0 2", "query_output": "3 3;3 2"} |
| {"task_id": "icgr-00286", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "5 3 3 1;5 1 0 0;4 3 2 0", "output": "5 3 3 1 5 3 3 1;5 1 0 0 5 1 0 0;4 3 2 0 4 3 2 0"}, {"input": "1 1 1 5;0 0 4 4;5 5 3 4", "output": "1 1 1 5 1 1 1 5;0 0 4 4 0 0 4 4;5 5 3 4 5 5 3 4"}, {"input": "0 2 3 0;3 3 1 0;0 5 5 3", "output": "0 2 3 0 0 2 3 0;3 3 1 0 3 3 1 0;0 5 5 3 0 5 5 3"}, {"input": "1 5 0 3;1 5 0 3;0 4 0 4", "output": "1 5 0 3 1 5 0 3;1 5 0 3 1 5 0 3;0 4 0 4 0 4 0 4"}], "query_input": "1 1 1 1;5 0 1 1;1 4 0 3", "query_output": "1 1 1 1 1 1 1 1;5 0 1 1 5 0 1 1;1 4 0 3 1 4 0 3"} |
| {"task_id": "icgr-00147", "rule": "shift_rows+border", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "4 1 4 3 0;0 1 5 0 4;3 5 2 3 4;0 2 3 2 5;4 2 5 2 4", "output": "1 1 1 1 1;1 0 1 5 1;1 3 5 2 1;1 0 2 3 1;1 1 1 1 1"}, {"input": "0 0 5 4 1;1 3 3 2 0;4 5 3 0 1;5 0 4 0 1;3 1 0 3 3", "output": "1 1 1 1 1;1 1 3 3 1;1 4 5 3 1;1 5 0 4 1;1 1 1 1 1"}, {"input": "3 5 3 3 4;3 5 5 4 5;4 3 0 3 4;3 3 2 2 0;2 2 5 2 2", "output": "1 1 1 1 1;1 3 5 5 1;1 4 3 0 1;1 3 3 2 1;1 1 1 1 1"}, {"input": "4 5 1 4 2;3 3 4 2 0;1 5 1 2 5;3 5 5 4 1;3 4 5 0 1", "output": "1 1 1 1 1;1 3 3 4 1;1 1 5 1 1;1 3 5 5 1;1 1 1 1 1"}], "query_input": "5 4 2 4 4;4 2 3 2 1;3 2 1 0 1;0 1 1 2 5;1 5 1 2 5", "query_output": "1 1 1 1 1;1 4 2 3 1;1 3 2 1 1;1 0 1 1 1;1 1 1 1 1"} |
| {"task_id": "icgr-00854", "rule": "flip_h+border", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "3 4 3 1;2 0 4 4;5 4 1 2;4 2 2 4;3 2 4 4", "output": "5 5 5 5;5 4 0 5;5 1 4 5;5 2 2 5;5 5 5 5"}, {"input": "1 4 0 3;0 5 1 4;4 5 4 3;5 2 4 5;1 0 4 5", "output": "5 5 5 5;5 1 5 5;5 4 5 5;5 4 2 5;5 5 5 5"}, {"input": "4 5 3 4;1 2 4 4;1 5 4 0;4 3 1 1;0 4 4 4", "output": "5 5 5 5;5 4 2 5;5 4 5 5;5 1 3 5;5 5 5 5"}], "query_input": "2 0 5 0;0 4 4 5;4 0 2 1;2 1 1 2;2 0 0 5", "query_output": "5 5 5 5;5 4 4 5;5 2 0 5;5 1 1 5;5 5 5 5"} |
| {"task_id": "icgr-00089", "rule": "border+shift_rows", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "0 4 4 3 5;5 0 0 0 4;4 1 3 3 2", "output": "5 5 5 5 5;0 5 5 0 0;5 5 5 5 5"}, {"input": "1 4 2 4 0;3 0 4 1 3;5 4 0 4 3", "output": "5 5 5 5 5;1 5 5 0 4;5 5 5 5 5"}, {"input": "1 1 0 0 4;4 2 0 3 1;0 5 3 4 1", "output": "5 5 5 5 5;3 5 5 2 0;5 5 5 5 5"}], "query_input": "5 2 3 5 1;3 5 5 1 4;4 5 3 1 3", "query_output": "5 5 5 5 5;1 5 5 5 5;5 5 5 5 5"} |
| {"task_id": "icgr-00708", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "3 3 3 2 4;1 0 2 1 3;4 4 0 2 1", "output": "0 0 0 0 0;0 0 2 1 0;0 0 0 0 0"}, {"input": "0 4 1 0 2;1 1 4 3 0;2 0 0 0 3", "output": "0 0 0 0 0;0 1 4 3 0;0 0 0 0 0"}, {"input": "0 4 3 1 3;2 4 3 1 1;4 1 4 1 2", "output": "0 0 0 0 0;0 4 3 1 0;0 0 0 0 0"}, {"input": "1 3 4 4 2;0 4 1 4 2;2 2 0 4 2", "output": "0 0 0 0 0;0 4 1 4 0;0 0 0 0 0"}], "query_input": "3 2 4 1 0;0 1 2 2 0;4 3 2 2 4", "query_output": "0 0 0 0 0;0 1 2 2 0;0 0 0 0 0"} |
| {"task_id": "icgr-00824", "rule": "flip_h+flip_v", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "1 3 1 0;0 0 0 3;1 0 1 0;3 1 2 0;1 3 3 2", "output": "2 3 3 1;0 2 1 3;0 1 0 1;3 0 0 0;0 1 3 1"}, {"input": "1 1 1 0;1 3 3 0;0 0 1 1;3 1 2 0;1 0 3 0", "output": "0 3 0 1;0 2 1 3;1 1 0 0;0 3 3 1;0 1 1 1"}, {"input": "3 1 0 2;1 2 0 1;0 3 1 3;2 3 3 0;2 0 2 2", "output": "2 2 0 2;0 3 3 2;3 1 3 0;1 0 2 1;2 0 1 3"}], "query_input": "2 1 3 2;2 2 3 3;2 0 3 3;3 3 0 0;0 0 3 3", "query_output": "3 3 0 0;0 0 3 3;3 3 0 2;3 3 2 2;2 3 1 2"} |
| {"task_id": "icgr-00472", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "0 0 0 1;1 3 0 2;2 0 0 2;0 3 2 2;3 3 0 0", "output": "1 0 0 0;2 0 3 1;2 0 0 2;2 2 3 0;0 0 3 3"}, {"input": "2 2 0 1;0 2 3 3;3 3 0 1;2 1 3 3;1 3 3 1", "output": "1 0 2 2;3 3 2 0;1 0 3 3;3 3 1 2;1 3 3 1"}, {"input": "1 2 2 0;2 2 1 3;3 1 2 2;0 0 2 3;3 2 1 2", "output": "0 2 2 1;3 1 2 2;2 2 1 3;3 2 0 0;2 1 2 3"}], "query_input": "1 1 0 3;3 3 0 1;3 3 3 0;0 2 3 0;0 0 3 2", "query_output": "3 0 1 1;1 0 3 3;0 3 3 3;0 3 2 0;2 3 0 0"} |
| {"task_id": "icgr-00311", "rule": "flip_h+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "2 0 3 3 1;1 1 0 1 0;3 2 1 3 2;0 0 0 3 1", "output": "3 1 1 0 2;0 3 0 3 3;2 1 3 2 1;3 1 0 0 0"}, {"input": "1 3 1 2 2;2 3 0 2 3;2 1 2 2 2;2 2 3 3 2", "output": "2 2 3 1 3;1 2 0 1 2;2 2 2 3 2;2 1 1 2 2"}], "query_input": "1 0 2 3 2;2 1 0 2 0;0 2 0 3 0;1 0 2 0 3", "query_output": "2 1 2 0 3;0 2 0 3 2;0 1 0 2 0;1 0 2 0 3"} |
| {"task_id": "icgr-00571", "rule": "flip_h+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "5 1 0 1 1;1 1 2 2 4;2 3 2 1 5;5 0 3 3 4;0 0 4 0 4", "output": "0 0 5 0 4;3 1 1 0 0;4 0 1 2 1;3 2 2 5 4;3 5 3 5 5"}, {"input": "0 5 2 5 1;4 0 2 4 3;0 0 3 5 3;3 1 0 0 1;2 0 5 3 2", "output": "0 4 1 4 5;2 3 1 5 3;2 4 2 5 5;0 5 5 0 2;1 2 4 5 1"}, {"input": "0 5 1 4 4;1 2 4 0 5;5 0 5 5 2;2 3 5 5 1;1 3 0 1 4", "output": "3 3 0 4 5;4 5 3 1 0;1 4 4 5 4;0 4 4 2 1;3 0 5 2 0"}, {"input": "1 3 5 3 2;2 1 1 0 1;1 0 2 0 0;2 2 3 3 0;3 4 1 1 4", "output": "1 2 4 2 0;0 5 0 0 1;5 5 1 5 0;5 2 2 1 1;3 0 0 3 2"}], "query_input": "2 1 2 1 0;3 3 1 5 5;2 5 4 5 5;3 3 5 5 2;0 0 2 1 0", "query_output": "5 0 1 0 1;4 4 0 2 2;4 4 3 4 1;1 4 4 2 2;5 0 1 5 5"} |
| {"task_id": "icgr-00313", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "1 1 0 3;3 3 1 1;1 2 3 1;0 3 2 2", "output": "3 3;3 3"}, {"input": "2 0 2 0;1 3 2 3;3 0 0 1;2 3 1 3", "output": "3 3;3 3"}, {"input": "1 2 2 2;0 3 0 3;0 0 0 2;0 0 2 1", "output": "3 3;0 2"}], "query_input": "0 3 2 0;0 2 2 3;0 0 1 3;3 1 0 1", "query_output": "3 3;3 3"} |
| {"task_id": "icgr-00039", "rule": "shift_rows+flip_v", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "0 1 0;1 3 3;3 2 2;0 4 2", "output": "2 0 4;2 3 2;3 1 3;0 0 1"}, {"input": "3 3 1;1 1 4;2 3 1;3 2 4", "output": "4 3 2;1 2 3;4 1 1;1 3 3"}, {"input": "1 0 3;0 3 2;3 1 2;1 3 0", "output": "0 1 3;2 3 1;2 0 3;3 1 0"}, {"input": "3 3 4;4 1 0;4 4 1;1 0 2", "output": "2 1 0;1 4 4;0 4 1;4 3 3"}], "query_input": "3 0 0;1 4 4;4 3 3;2 3 0", "query_output": "0 2 3;3 4 3;4 1 4;0 3 0"} |
| {"task_id": "icgr-00240", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "3 2 0 0;4 2 2 2;0 0 2 0;1 4 3 0;4 3 1 1", "output": "2 3 0 0;4 3 3 3;0 0 3 0;1 4 2 0;4 2 1 1"}, {"input": "1 3 2 1;4 0 0 4;1 0 3 1;1 4 2 1;1 2 1 4", "output": "1 2 3 1;4 0 0 4;1 0 2 1;1 4 3 1;1 3 1 4"}, {"input": "1 2 1 0;1 0 4 3;1 2 1 1;4 0 0 4;2 2 3 4", "output": "1 3 1 0;1 0 4 2;1 3 1 1;4 0 0 4;3 3 2 4"}], "query_input": "1 2 4 2;2 3 3 1;0 0 1 1;2 4 3 0;0 1 2 0", "query_output": "1 3 4 3;3 2 2 1;0 0 1 1;3 4 2 0;0 1 3 0"} |
| {"task_id": "icgr-00084", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "2 3 5 1;1 5 2 5;3 1 1 1;0 0 2 1;0 2 2 0", "output": "2 1 5 3;3 5 2 5;1 3 3 3;0 0 2 3;0 2 2 0"}, {"input": "4 1 5 1;1 4 1 5;5 5 5 5;1 5 4 3;2 2 4 1", "output": "4 3 5 3;3 4 3 5;5 5 5 5;3 5 4 1;2 2 4 3"}], "query_input": "1 0 2 1;3 5 0 5;2 1 5 0;4 4 5 2;1 2 2 1", "query_output": "3 0 2 3;1 5 0 5;2 3 5 0;4 4 5 2;3 2 2 3"} |
| {"task_id": "icgr-00410", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "0 3 2;2 0 0;2 0 1;2 2 3", "output": "3 2 0;0 0 2;0 1 2;2 3 2"}, {"input": "1 1 2;2 1 1;1 1 0;3 3 2", "output": "1 2 1;1 1 2;1 0 1;3 2 3"}, {"input": "2 2 0;0 3 3;0 1 1;3 0 2", "output": "2 0 2;3 3 0;1 1 0;0 2 3"}], "query_input": "1 3 0;3 1 1;3 2 0;3 2 1", "query_output": "3 0 1;1 1 3;2 0 3;2 1 3"} |
| {"task_id": "icgr-00977", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "2 5 3 0;4 3 0 4;5 2 1 1;3 1 4 4", "output": "2 5 1 0;4 1 0 4;5 2 3 3;1 3 4 4"}, {"input": "2 2 0 0;5 2 4 4;1 3 4 5;0 3 0 0", "output": "2 2 0 0;5 2 4 4;3 1 4 5;0 1 0 0"}], "query_input": "1 5 5 0;3 1 2 3;4 0 0 5;5 3 4 4", "query_output": "3 5 5 0;1 3 2 1;4 0 0 5;5 1 4 4"} |
| {"task_id": "icgr-00944", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "1 3 2 1;5 0 1 4;2 0 2 4;2 2 3 3", "output": "1 1 1 1;1 0 1 1;1 0 2 1;1 1 1 1"}, {"input": "3 0 2 0;5 2 2 3;5 4 2 3;4 0 0 1", "output": "1 1 1 1;1 2 2 1;1 4 2 1;1 1 1 1"}, {"input": "2 2 0 1;4 5 3 5;0 2 3 5;3 2 1 2", "output": "1 1 1 1;1 5 3 1;1 2 3 1;1 1 1 1"}, {"input": "4 1 5 4;5 5 0 2;3 3 3 5;2 3 3 2", "output": "1 1 1 1;1 5 0 1;1 3 3 1;1 1 1 1"}], "query_input": "4 3 2 1;4 4 4 2;1 0 1 4;4 1 4 5", "query_output": "1 1 1 1;1 4 4 1;1 0 1 1;1 1 1 1"} |
| {"task_id": "icgr-00648", "rule": "add_mod+color_swap", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "1 3 3 2;0 3 0 3;1 1 0 1", "output": "2 1 1 3;4 1 4 1;2 2 4 2"}, {"input": "4 4 1 3;3 1 1 3;3 3 0 1", "output": "0 0 2 1;1 2 2 1;1 1 4 2"}, {"input": "4 3 2 4;0 0 3 4;4 4 1 2", "output": "0 1 3 0;4 4 1 0;0 0 2 3"}], "query_input": "1 3 3 1;3 2 0 3;2 3 2 2", "query_output": "2 1 1 2;1 3 4 1;3 1 3 3"} |
| {"task_id": "icgr-00492", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "4 4 0 5;2 3 5 3;0 5 0 1;1 1 4 4", "output": "4 5;5 4"}, {"input": "1 4 5 0;3 4 4 5;1 5 5 4;4 4 4 1", "output": "4 5;5 5"}], "query_input": "3 2 4 0;4 4 2 5;3 5 1 2;3 3 4 4", "query_output": "4 5;5 4"} |
| {"task_id": "icgr-00167", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "2 0 1 3 3;0 1 2 1 1;3 2 2 0 0;2 1 1 1 2", "output": "2 3 1 0 0;3 1 2 1 1;0 2 2 3 3;2 1 1 1 2"}, {"input": "1 3 1 2 1;1 2 1 1 2;1 2 0 0 0;1 1 3 2 0", "output": "1 0 1 2 1;1 2 1 1 2;1 2 3 3 3;1 1 0 2 3"}], "query_input": "3 1 0 0 2;2 3 3 0 1;0 0 3 2 2;3 2 3 0 0", "query_output": "0 1 3 3 2;2 0 0 3 1;3 3 0 2 2;0 2 0 3 3"} |
| {"task_id": "icgr-00917", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "2 3 1 3 0;3 5 1 2 3;0 5 5 2 2;1 0 1 3 2", "output": "3 0 2 3 1;2 3 3 5 1;2 2 0 5 5;3 2 1 0 1"}, {"input": "0 2 0 4 3;4 5 5 4 0;1 1 1 1 2;5 5 4 3 5", "output": "4 3 0 2 0;4 0 4 5 5;1 2 1 1 1;3 5 5 5 4"}, {"input": "3 2 4 3 2;2 1 5 4 4;3 5 0 1 1;5 3 2 5 1", "output": "3 2 3 2 4;4 4 2 1 5;1 1 3 5 0;5 1 5 3 2"}], "query_input": "2 4 1 5 0;5 3 1 3 5;5 0 2 2 5;5 2 2 0 2", "query_output": "5 0 2 4 1;3 5 5 3 1;2 5 5 0 2;0 2 5 2 2"} |
| {"task_id": "icgr-00114", "rule": "color_swap+flip_h", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "1 3 3;1 0 1;1 0 2", "output": "1 1 3;3 0 3;2 0 3"}, {"input": "3 1 3;2 3 1;1 0 2", "output": "1 3 1;3 1 2;2 0 3"}, {"input": "3 0 2;2 1 1;2 2 2", "output": "2 0 1;3 3 2;2 2 2"}], "query_input": "0 3 3;1 1 3;2 2 2", "query_output": "1 1 0;1 3 3;2 2 2"} |
| {"task_id": "icgr-00205", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "3 0 2 0;3 2 0 3;3 2 0 2;3 1 3 2;0 2 3 3", "output": "0 1 3 1;0 3 1 0;0 3 1 3;0 2 0 3;1 3 0 0"}, {"input": "2 2 2 3;0 2 2 1;0 2 0 1;0 1 2 3;2 3 0 0", "output": "3 3 3 0;1 3 3 2;1 3 1 2;1 2 3 0;3 0 1 1"}, {"input": "0 1 0 1;2 3 1 3;1 1 2 1;2 3 2 1;0 0 1 0", "output": "1 2 1 2;3 0 2 0;2 2 3 2;3 0 3 2;1 1 2 1"}, {"input": "2 1 0 3;1 1 2 2;0 0 0 1;2 3 0 2;1 3 1 1", "output": "3 2 1 0;2 2 3 3;1 1 1 2;3 0 1 3;2 0 2 2"}], "query_input": "0 3 3 3;3 1 1 0;2 2 2 3;1 1 3 3;1 0 2 2", "query_output": "1 0 0 0;0 2 2 1;3 3 3 0;2 2 0 0;2 1 3 3"} |
| {"task_id": "icgr-00714", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "0 3 0;2 2 3;2 2 1", "output": "2 3 2;0 0 3;0 0 1"}, {"input": "2 2 0;1 3 1;0 0 3", "output": "0 0 2;1 3 1;2 2 3"}], "query_input": "0 1 3;3 0 1;1 0 3", "query_output": "2 1 3;3 2 1;1 2 3"} |
| {"task_id": "icgr-00957", "rule": "color_swap+add_mod", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "0 1 2 0;3 3 2 0;0 3 1 2", "output": "3 0 1 3;2 2 1 3;3 2 0 1"}, {"input": "3 3 3 0;2 3 2 1;2 2 0 1", "output": "2 2 2 3;1 2 1 0;1 1 3 0"}, {"input": "0 1 3 1;1 1 2 2;1 1 0 0", "output": "3 0 2 0;0 0 1 1;0 0 3 3"}, {"input": "1 2 3 0;1 0 3 2;3 1 0 1", "output": "0 1 2 3;0 3 2 1;2 0 3 0"}], "query_input": "1 2 1 3;2 3 0 0;2 0 2 2", "query_output": "0 1 0 2;1 2 3 3;1 3 1 1"} |
| {"task_id": "icgr-00171", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "3 4 3 3;3 0 3 1;0 0 1 2;4 2 4 4", "output": "4 0 3 3;2 0 0 4;4 1 3 3;4 2 1 3"}, {"input": "1 4 2 2;0 4 0 2;3 1 2 4;3 4 1 1", "output": "3 3 0 1;4 1 4 4;1 2 0 2;1 4 2 2"}], "query_input": "2 0 3 3;0 3 1 3;0 1 0 0;4 2 3 1", "query_output": "4 0 0 2;2 1 3 0;3 0 1 3;1 0 3 3"} |
| {"task_id": "icgr-00904", "rule": "border+shift_rows", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "3 4 5 3;0 5 5 5;4 1 2 1", "output": "0 0 0 0;0 0 5 5;0 0 0 0"}, {"input": "0 1 4 4;4 4 2 0;0 2 4 2", "output": "0 0 0 0;0 0 4 2;0 0 0 0"}], "query_input": "2 3 2 4;3 0 2 1;3 5 4 3", "query_output": "0 0 0 0;0 0 0 2;0 0 0 0"} |
| {"task_id": "icgr-00259", "rule": "shift_rows+border", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "3 1 2;4 3 0;4 3 3;3 4 3;3 1 1", "output": "0 0 0;0 0 0;0 3 0;0 3 0;0 0 0"}, {"input": "4 0 1;3 2 0;2 1 1;1 3 1;4 3 1", "output": "0 0 0;0 0 0;0 1 0;0 1 0;0 0 0"}, {"input": "3 2 0;0 3 3;3 4 3;1 4 3;0 2 2", "output": "0 0 0;0 3 0;0 3 0;0 3 0;0 0 0"}, {"input": "2 3 2;4 0 1;4 0 1;0 1 1;2 1 0", "output": "0 0 0;0 1 0;0 1 0;0 1 0;0 0 0"}], "query_input": "0 3 1;1 1 0;3 1 2;2 2 0;4 1 4", "query_output": "0 0 0;0 0 0;0 2 0;0 0 0;0 0 0"} |
| {"task_id": "icgr-00807", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "4 2 3 0 3;0 3 2 2 2;3 3 0 4 2;3 4 3 0 0", "output": "2 0 1 3 1;3 1 0 0 0;1 1 3 2 0;1 2 1 3 3"}, {"input": "0 0 0 2 3;0 3 3 4 1;2 1 1 2 3;2 3 4 2 4", "output": "3 3 3 0 1;3 1 1 2 4;0 4 4 0 1;0 1 2 0 2"}], "query_input": "3 1 1 3 1;0 0 3 4 3;1 4 2 4 0;0 2 1 0 3", "query_output": "1 4 4 1 4;3 3 1 2 1;4 2 0 2 3;3 0 4 3 1"} |
| {"task_id": "icgr-00751", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "1 0 0 0 1;2 1 1 2 4;3 4 2 2 2;0 4 0 1 2", "output": "2 2 2 2 2;2 1 1 2 2;2 4 2 2 2;2 2 2 2 2"}, {"input": "0 0 1 2 2;1 0 4 3 1;2 3 2 1 0;1 0 2 4 3", "output": "2 2 2 2 2;2 0 4 3 2;2 3 2 1 2;2 2 2 2 2"}, {"input": "2 2 4 2 1;4 4 0 2 2;4 2 3 3 1;4 1 1 2 2", "output": "2 2 2 2 2;2 4 0 2 2;2 2 3 3 2;2 2 2 2 2"}, {"input": "1 1 4 3 1;1 3 0 3 3;2 2 0 4 0;4 2 1 4 4", "output": "2 2 2 2 2;2 3 0 3 2;2 2 0 4 2;2 2 2 2 2"}], "query_input": "0 1 4 2 0;0 3 3 0 3;3 3 3 1 0;1 4 1 3 4", "query_output": "2 2 2 2 2;2 3 3 0 2;2 3 3 1 2;2 2 2 2 2"} |
| {"task_id": "icgr-00325", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "4 0 4;4 4 4;3 3 4;4 1 0;1 1 3", "output": "2 2 2;2 4 2;2 3 2;2 1 2;2 2 2"}, {"input": "3 2 1;3 0 2;1 4 4;4 4 4;3 3 1", "output": "2 2 2;2 0 2;2 4 2;2 4 2;2 2 2"}, {"input": "0 2 2;4 1 4;3 2 2;4 3 1;4 4 1", "output": "2 2 2;2 1 2;2 2 2;2 3 2;2 2 2"}, {"input": "1 1 1;0 3 4;0 1 4;3 2 0;2 4 2", "output": "2 2 2;2 3 2;2 1 2;2 2 2;2 2 2"}], "query_input": "4 3 1;0 1 1;4 1 3;4 0 4;3 4 4", "query_output": "2 2 2;2 1 2;2 1 2;2 0 2;2 2 2"} |
| {"task_id": "icgr-00635", "rule": "shift_rows+flip_v", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "1 2 3;1 3 4;0 2 0;4 2 0;3 4 3", "output": "4 3 3;2 0 4;2 0 0;3 4 1;2 3 1"}, {"input": "4 1 3;2 3 1;2 4 4;3 3 3;3 3 2", "output": "3 2 3;3 3 3;4 4 2;3 1 2;1 3 4"}, {"input": "3 2 1;1 1 1;4 2 4;2 3 4;0 4 0", "output": "4 0 0;3 4 2;2 4 4;1 1 1;2 1 3"}, {"input": "4 2 4;0 1 0;3 2 4;0 3 3;1 0 4", "output": "0 4 1;3 3 0;2 4 3;1 0 0;2 4 4"}], "query_input": "3 3 4;1 0 2;0 2 3;1 1 0;0 2 2", "query_output": "2 2 0;1 0 1;2 3 0;0 2 1;3 4 3"} |
| {"task_id": "icgr-00529", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "3 4 2 0 1;2 2 2 2 4;0 1 2 2 1;2 1 3 0 2;2 4 0 3 4", "output": "3 2 0 2 2;4 2 1 1 4;2 2 2 3 0;0 2 2 0 3;1 4 1 2 4"}, {"input": "0 0 1 2 4;3 0 1 4 1;2 4 4 1 2;1 0 3 4 2;1 1 1 3 0", "output": "0 3 2 1 1;0 0 4 0 1;1 1 4 3 1;2 4 1 4 3;4 1 2 2 0"}, {"input": "1 0 3 2 2;1 3 1 4 2;3 4 4 4 4;1 0 1 2 2;3 2 1 0 3", "output": "1 1 3 1 3;0 3 4 0 2;3 1 4 1 1;2 4 4 2 0;2 2 4 2 3"}], "query_input": "2 2 2 3 2;4 1 4 0 0;0 2 3 3 1;1 4 2 1 1;0 3 3 3 1", "query_output": "2 4 0 1 0;2 1 2 4 3;2 4 3 2 3;3 0 3 1 3;2 0 1 1 1"} |
| {"task_id": "icgr-00025", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "4 4 2 4;3 3 1 0;5 3 1 2;4 4 1 4;2 2 4 1", "output": "5 5 5 5;5 3 1 5;5 3 1 5;5 4 1 5;5 5 5 5"}, {"input": "5 3 4 4;0 0 0 5;4 3 1 1;3 3 1 5;3 5 2 1", "output": "5 5 5 5;5 0 0 5;5 3 1 5;5 3 1 5;5 5 5 5"}, {"input": "2 2 0 0;4 4 1 5;5 4 5 4;2 0 1 0;0 4 4 2", "output": "5 5 5 5;5 4 1 5;5 4 5 5;5 0 1 5;5 5 5 5"}], "query_input": "5 2 3 1;5 4 3 4;2 3 2 4;5 2 0 3;3 3 5 1", "query_output": "5 5 5 5;5 4 3 5;5 3 2 5;5 2 0 5;5 5 5 5"} |
| {"task_id": "icgr-00595", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "1 3 3 2 2;3 1 3 3 0;3 2 1 1 3;0 0 0 0 0", "output": "2 2 3 3 1;0 3 3 1 3;3 1 1 2 3;0 0 0 0 0"}, {"input": "2 1 3 3 3;3 3 2 1 1;3 1 3 0 2;1 0 2 1 0", "output": "3 3 3 1 2;1 1 2 3 3;2 0 3 1 3;0 1 2 0 1"}, {"input": "1 1 2 2 1;0 0 1 0 1;1 3 0 3 2;2 0 0 3 3", "output": "1 2 2 1 1;1 0 1 0 0;2 3 0 3 1;3 3 0 0 2"}], "query_input": "2 2 0 3 1;3 3 0 3 2;3 3 2 0 3;1 0 3 2 2", "query_output": "1 3 0 2 2;2 3 0 3 3;3 0 2 3 3;2 2 3 0 1"} |
| {"task_id": "icgr-00565", "rule": "flip_h+flip_v", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "2 0 2 3;1 1 2 3;0 2 2 3;1 1 3 0;3 0 3 3", "output": "3 3 0 3;0 3 1 1;3 2 2 0;3 2 1 1;3 2 0 2"}, {"input": "1 2 1 0;0 2 0 2;3 0 1 3;2 3 0 3;3 0 3 3", "output": "3 3 0 3;3 0 3 2;3 1 0 3;2 0 2 0;0 1 2 1"}, {"input": "3 3 1 1;0 1 0 0;2 0 2 0;3 0 1 0;1 1 1 0", "output": "0 1 1 1;0 1 0 3;0 2 0 2;0 0 1 0;1 1 3 3"}, {"input": "1 1 1 0;1 0 2 1;0 0 1 2;1 2 3 0;1 2 0 3", "output": "3 0 2 1;0 3 2 1;2 1 0 0;1 2 0 1;0 1 1 1"}], "query_input": "3 3 3 1;2 1 2 2;3 3 0 3;0 0 0 1;3 0 1 2", "query_output": "2 1 0 3;1 0 0 0;3 0 3 3;2 2 1 2;1 3 3 3"} |
| {"task_id": "icgr-00330", "rule": "color_swap+flip_v", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "1 4 0 1 4;3 2 1 0 1;3 2 0 0 3;3 0 2 4 3;2 2 2 1 4", "output": "2 2 2 1 3;4 0 2 3 4;4 2 0 0 4;4 2 1 0 1;1 3 0 1 3"}, {"input": "1 3 0 1 1;3 4 3 0 0;4 4 4 0 1;3 2 2 0 1;1 1 3 1 0", "output": "1 1 4 1 0;4 2 2 0 1;3 3 3 0 1;4 3 4 0 0;1 4 0 1 1"}, {"input": "4 2 3 0 3;4 3 2 4 3;4 0 0 2 4;3 0 3 0 3;3 1 0 1 2", "output": "4 1 0 1 2;4 0 4 0 4;3 0 0 2 3;3 4 2 3 4;3 2 4 0 4"}, {"input": "2 2 3 3 4;1 4 3 4 2;1 1 2 1 2;2 0 0 4 2;0 0 1 3 0", "output": "0 0 1 4 0;2 0 0 3 2;1 1 2 1 2;1 3 4 3 2;2 2 4 4 3"}], "query_input": "2 1 1 1 1;3 0 3 3 2;4 3 1 4 1;3 3 1 1 1;4 1 4 4 2", "query_output": "3 1 3 3 2;4 4 1 1 1;3 4 1 3 1;4 0 4 4 2;2 1 1 1 1"} |
| {"task_id": "icgr-00432", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "5 3 4 2;0 0 0 5;2 1 0 2", "output": "5 3 4 2 5 3 4 2;0 0 0 5 0 0 0 5;2 1 0 2 2 1 0 2"}, {"input": "2 3 0 0;1 1 2 5;5 1 3 0", "output": "2 3 0 0 2 3 0 0;1 1 2 5 1 1 2 5;5 1 3 0 5 1 3 0"}, {"input": "0 2 5 3;1 3 1 1;4 1 1 0", "output": "0 2 5 3 0 2 5 3;1 3 1 1 1 3 1 1;4 1 1 0 4 1 1 0"}], "query_input": "3 4 0 3;4 1 3 1;4 2 4 3", "query_output": "3 4 0 3 3 4 0 3;4 1 3 1 4 1 3 1;4 2 4 3 4 2 4 3"} |
| {"task_id": "icgr-00241", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "2 2 0;1 3 3;0 2 3;0 3 1;1 0 1", "output": "0 0 0;0 3 0;0 2 0;0 3 0;0 0 0"}, {"input": "2 2 3;3 2 0;1 2 0;3 2 0;3 0 0", "output": "0 0 0;0 2 0;0 2 0;0 2 0;0 0 0"}, {"input": "0 0 1;0 3 3;1 3 3;2 2 3;1 3 2", "output": "0 0 0;0 3 0;0 3 0;0 2 0;0 0 0"}, {"input": "2 1 2;2 1 0;2 0 2;3 3 2;0 2 2", "output": "0 0 0;0 1 0;0 0 0;0 3 0;0 0 0"}], "query_input": "3 2 3;3 3 2;3 2 2;1 3 3;0 3 2", "query_output": "0 0 0;0 3 0;0 2 0;0 3 0;0 0 0"} |
| {"task_id": "icgr-00607", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "3 0 3 2;2 0 0 0;0 4 1 3;2 4 3 1", "output": "2 3 0 3;0 0 0 2;3 1 4 0;1 3 4 2"}, {"input": "0 3 4 1;3 3 1 1;0 1 1 4;1 1 2 4", "output": "1 4 3 0;1 1 3 3;4 1 1 0;4 2 1 1"}], "query_input": "4 2 3 0;2 2 0 3;3 2 4 1;3 1 0 2", "query_output": "0 3 2 4;3 0 2 2;1 4 2 3;2 0 1 3"} |
| {"task_id": "icgr-00544", "rule": "add_mod+flip_v", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "3 0 1;1 2 1;4 3 2", "output": "2 1 0;4 0 4;1 3 4"}, {"input": "4 2 3;0 0 1;0 2 0", "output": "3 0 3;3 3 4;2 0 1"}], "query_input": "3 4 1;4 2 1;4 3 0", "query_output": "2 1 3;2 0 4;1 2 4"} |
| {"task_id": "icgr-00504", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "0 1 2;3 2 2;1 1 0", "output": "2 1 0;2 2 3;0 1 1"}, {"input": "1 2 3;1 1 3;0 0 3", "output": "3 2 1;3 1 1;3 0 0"}, {"input": "2 0 3;0 2 1;3 2 1", "output": "3 0 2;1 2 0;1 2 3"}, {"input": "1 0 1;2 2 2;2 0 2", "output": "1 0 1;2 2 2;2 0 2"}], "query_input": "0 2 2;2 0 2;1 3 3", "query_output": "2 2 0;2 0 2;3 3 1"} |
| {"task_id": "icgr-00342", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "0 2 2;3 5 5;0 4 5", "output": "4 4 4;4 5 4;4 4 4"}, {"input": "3 2 0;3 0 2;1 5 3", "output": "4 4 4;4 0 4;4 4 4"}], "query_input": "0 0 3;4 1 5;5 2 0", "query_output": "4 4 4;4 1 4;4 4 4"} |
| {"task_id": "icgr-00631", "rule": "add_mod+border", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "2 0 0 2;5 1 0 0;4 2 5 3;3 1 1 3;1 0 2 4", "output": "5 5 5 5;5 4 3 5;5 5 2 5;5 4 4 5;5 5 5 5"}, {"input": "0 4 0 2;3 5 3 1;5 5 0 5;3 5 1 3;5 1 1 4", "output": "5 5 5 5;5 2 0 5;5 2 3 5;5 2 4 5;5 5 5 5"}, {"input": "1 0 2 5;2 3 0 2;0 2 1 3;5 5 0 1;1 5 4 5", "output": "5 5 5 5;5 0 3 5;5 5 4 5;5 2 3 5;5 5 5 5"}], "query_input": "2 2 2 1;0 4 1 2;4 3 3 0;3 2 0 0;4 1 2 5", "query_output": "5 5 5 5;5 1 4 5;5 0 0 5;5 5 3 5;5 5 5 5"} |
| {"task_id": "icgr-00071", "rule": "flip_v+border", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "2 2 1 1 4;1 4 4 3 0;2 3 1 0 3", "output": "4 4 4 4 4;4 4 4 3 4;4 4 4 4 4"}, {"input": "1 4 4 3 1;4 3 0 3 3;0 3 1 0 2", "output": "4 4 4 4 4;4 3 0 3 4;4 4 4 4 4"}], "query_input": "4 4 4 1 1;4 1 3 4 4;2 2 2 0 3", "query_output": "4 4 4 4 4;4 1 3 4 4;4 4 4 4 4"} |
| {"task_id": "icgr-00429", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "0 3 3 2;2 3 4 4;2 4 3 2;0 0 1 2;2 4 4 0", "output": "3 1 1 0;0 1 2 2;0 2 1 0;3 3 4 0;0 2 2 3"}, {"input": "4 3 4 1;0 2 0 0;4 0 2 3;4 0 0 3;0 2 4 1", "output": "2 1 2 4;3 0 3 3;2 3 0 1;2 3 3 1;3 0 2 4"}], "query_input": "4 4 4 4;1 2 0 3;2 2 3 2;0 0 3 4;1 0 1 3", "query_output": "2 2 2 2;4 0 3 1;0 0 1 0;3 3 1 2;4 3 4 1"} |
| {"task_id": "icgr-00983", "rule": "flip_h+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "2 3 3 3 3;0 1 2 4 0;2 1 1 0 1;3 1 4 2 0;2 3 0 1 1", "output": "3 3 3 3 2;0 4 2 1 0;1 0 1 1 2;0 2 4 1 3;1 1 0 3 2"}, {"input": "3 3 4 0 1;0 2 4 1 1;0 0 3 1 4;2 1 1 2 3;1 3 4 0 3", "output": "1 0 4 3 3;1 1 4 2 0;4 1 3 0 0;3 2 1 1 2;3 0 4 3 1"}, {"input": "3 1 2 2 1;1 3 4 3 4;2 4 1 4 2;3 0 3 1 2;1 4 0 1 4", "output": "1 2 2 1 3;4 3 4 3 1;2 4 1 4 2;2 1 3 0 3;4 1 0 4 1"}], "query_input": "3 4 1 3 0;4 3 4 3 1;3 1 3 2 4;2 2 2 3 1;1 4 0 2 0", "query_output": "0 3 1 4 3;1 3 4 3 4;4 2 3 1 3;1 3 2 2 2;0 2 0 4 1"} |
| {"task_id": "icgr-00883", "rule": "color_swap+shift_rows", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "3 1 0 2 1;1 0 0 3 3;1 1 3 3 2;3 2 1 3 1;3 3 0 3 0", "output": "3 1 2 1 0;2 2 1 0 0;2 3 1 1 2;2 1 2 3 1;2 0 2 2 0"}, {"input": "2 1 3 3 0;2 1 2 0 0;1 2 0 2 3;2 1 2 3 3;3 0 1 2 1", "output": "2 0 3 1 2;0 0 3 1 3;3 2 1 3 0;2 2 3 1 3;3 1 2 0 1"}, {"input": "0 0 1 1 3;0 0 2 2 0;2 3 1 3 3;1 0 3 3 1;3 1 2 3 0", "output": "1 2 0 0 1;3 0 0 0 3;2 2 3 2 1;2 1 1 0 2;2 0 2 1 3"}, {"input": "2 1 3 2 1;0 0 0 1 3;0 2 1 1 3;3 2 0 0 2;3 2 3 0 2", "output": "3 1 3 1 2;1 2 0 0 0;1 2 0 3 1;0 3 2 3 0;0 3 2 3 2"}], "query_input": "2 1 1 0 3;3 1 1 1 2;1 1 0 1 3;2 3 1 2 2;3 3 0 0 3", "query_output": "0 2 3 1 1;1 3 2 1 1;1 2 1 1 0;3 3 3 2 1;0 2 2 2 0"} |
| {"task_id": "icgr-00424", "rule": "border+flip_h", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "1 5 2 5;4 1 4 4;1 0 1 4", "output": "4 4 4 4;4 4 1 4;4 4 4 4"}, {"input": "3 3 1 0;1 0 2 0;3 0 3 4", "output": "4 4 4 4;4 2 0 4;4 4 4 4"}, {"input": "2 0 4 5;3 3 0 0;4 5 0 2", "output": "4 4 4 4;4 0 3 4;4 4 4 4"}, {"input": "0 4 4 4;2 1 0 5;5 0 5 0", "output": "4 4 4 4;4 0 1 4;4 4 4 4"}], "query_input": "1 4 0 4;3 4 4 0;1 3 2 0", "query_output": "4 4 4 4;4 4 4 4;4 4 4 4"} |
| {"task_id": "icgr-00222", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "0 0 0;2 0 0;2 3 1", "output": "0 0 0 0 0 0;2 0 0 2 0 0;2 3 1 2 3 1"}, {"input": "1 3 1;0 0 2;2 2 1", "output": "1 3 1 1 3 1;0 0 2 0 0 2;2 2 1 2 2 1"}, {"input": "1 1 2;1 0 1;1 2 0", "output": "1 1 2 1 1 2;1 0 1 1 0 1;1 2 0 1 2 0"}], "query_input": "3 1 2;0 3 1;2 3 1", "query_output": "3 1 2 3 1 2;0 3 1 0 3 1;2 3 1 2 3 1"} |
| {"task_id": "icgr-00509", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 5, "grid_h": 4, "grid_w": 6, "num_support": 3, "support": [{"input": "2 3 0 0 4 2;1 2 4 1 0 2;2 2 0 4 0 2;2 1 3 4 4 0", "output": "3 4 4;2 4 4"}, {"input": "3 4 0 1 4 2;0 3 1 3 1 3;1 2 4 2 3 3;2 1 0 2 1 0", "output": "4 3 4;2 4 3"}, {"input": "2 1 2 0 3 0;2 0 2 3 2 4;0 0 2 4 3 1;3 2 4 1 2 4", "output": "2 3 4;3 4 4"}], "query_input": "0 3 3 0 2 4;2 3 0 1 0 2;3 4 3 4 3 4;2 1 2 2 3 4", "query_output": "3 3 4;4 4 4"} |
| {"task_id": "icgr-00705", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "1 4 4 2;4 0 1 1;4 0 4 1;1 2 2 4", "output": "2 1 4 4;1 4 0 1;1 4 0 4;4 1 2 2"}, {"input": "1 3 1 4;0 4 0 2;0 4 4 4;2 0 0 2", "output": "4 1 3 1;2 0 4 0;4 0 4 4;2 2 0 0"}, {"input": "4 1 0 0;2 3 3 3;0 1 2 1;2 1 2 0", "output": "0 4 1 0;3 2 3 3;1 0 1 2;0 2 1 2"}, {"input": "3 1 3 1;2 2 4 3;0 1 4 3;0 1 4 1", "output": "1 3 1 3;3 2 2 4;3 0 1 4;1 0 1 4"}], "query_input": "3 0 3 4;1 2 3 4;2 2 0 3;1 1 0 1", "query_output": "4 3 0 3;4 1 2 3;3 2 2 0;1 1 1 0"} |
| {"task_id": "icgr-00534", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "3 0 4 0;0 2 0 3;1 2 2 2", "output": "3 0 4 0 3 0 4 0;0 2 0 3 0 2 0 3;1 2 2 2 1 2 2 2"}, {"input": "4 0 3 1;2 4 4 4;4 1 0 0", "output": "4 0 3 1 4 0 3 1;2 4 4 4 2 4 4 4;4 1 0 0 4 1 0 0"}], "query_input": "0 4 1 0;3 4 1 2;2 0 3 0", "query_output": "0 4 1 0 0 4 1 0;3 4 1 2 3 4 1 2;2 0 3 0 2 0 3 0"} |
| {"task_id": "icgr-00605", "rule": "add_mod+flip_v", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "1 0 3;1 3 3;2 1 2;3 0 0;3 1 2", "output": "0 2 3;0 1 1;3 2 3;2 0 0;2 1 0"}, {"input": "1 3 3;3 3 1;3 0 3;1 0 2;3 2 2", "output": "0 3 3;2 1 3;0 1 0;0 0 2;2 0 0"}, {"input": "2 2 2;2 2 0;1 2 0;2 3 2;3 0 0", "output": "0 1 1;3 0 3;2 3 1;3 3 1;3 3 3"}, {"input": "0 1 2;1 0 2;3 2 0;0 0 3;2 1 3", "output": "3 2 0;1 1 0;0 3 1;2 1 3;1 2 3"}], "query_input": "3 0 2;1 2 3;0 2 2;3 1 2;1 3 0", "query_output": "2 0 1;0 2 3;1 3 3;2 3 0;0 1 3"} |
| {"task_id": "icgr-00803", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "0 2 0;3 2 1;3 2 1;3 1 1", "output": "2 0 0;2 1 3;2 1 3;1 1 3"}, {"input": "0 2 3;2 0 0;2 0 0;2 2 3", "output": "2 3 0;0 0 2;0 0 2;2 3 2"}, {"input": "3 3 0;0 1 3;0 2 2;3 2 0", "output": "3 0 3;1 3 0;2 2 0;2 0 3"}, {"input": "1 1 3;1 2 3;3 0 3;1 0 2", "output": "1 3 1;2 3 1;0 3 3;0 2 1"}], "query_input": "2 2 0;3 1 2;2 3 1;3 0 3", "query_output": "2 0 2;1 2 3;3 1 2;0 3 3"} |
| {"task_id": "icgr-00211", "rule": "flip_v+flip_h", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "3 2 1;0 3 0;1 0 2;1 0 3", "output": "3 0 1;2 0 1;0 3 0;1 2 3"}, {"input": "0 3 0;2 1 2;1 1 1;0 2 0", "output": "0 2 0;1 1 1;2 1 2;0 3 0"}, {"input": "3 2 2;3 0 1;3 2 0;2 0 1", "output": "1 0 2;0 2 3;1 0 3;2 2 3"}, {"input": "0 2 2;2 3 2;0 2 3;2 2 0", "output": "0 2 2;3 2 0;2 3 2;2 2 0"}], "query_input": "2 3 0;2 1 0;2 3 2;1 1 1", "query_output": "1 1 1;2 3 2;0 1 2;0 3 2"} |
| {"task_id": "icgr-00079", "rule": "border+color_swap", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "1 3 4 0 3;3 3 2 0 4;3 2 1 1 4;4 4 1 3 3;3 1 4 3 0", "output": "3 3 3 3 3;3 3 2 1 3;3 2 0 0 3;3 4 0 3 3;3 3 3 3 3"}, {"input": "3 2 0 0 2;1 1 2 3 0;1 3 2 3 4;1 1 2 0 4;3 3 0 1 3", "output": "3 3 3 3 3;3 0 2 3 3;3 3 2 3 3;3 0 2 1 3;3 3 3 3 3"}, {"input": "0 2 3 0 1;4 3 3 4 4;1 0 1 0 0;1 2 4 4 3;1 0 0 1 3", "output": "3 3 3 3 3;3 3 3 4 3;3 1 0 1 3;3 2 4 4 3;3 3 3 3 3"}, {"input": "0 1 1 4 2;2 4 0 4 2;4 1 1 0 4;4 0 4 1 2;4 0 2 3 0", "output": "3 3 3 3 3;3 4 1 4 3;3 0 0 1 3;3 1 4 0 3;3 3 3 3 3"}], "query_input": "0 2 2 1 2;1 3 1 3 0;4 4 4 2 1;3 3 2 2 3;1 2 4 2 3", "query_output": "3 3 3 3 3;3 3 0 3 3;3 4 4 2 3;3 3 2 2 3;3 3 3 3 3"} |
| {"task_id": "icgr-00228", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "2 2 1 1 5;3 5 3 0 4;1 0 5 4 3", "output": "2 2 1 1 5 2 2 1 1 5;3 5 3 0 4 3 5 3 0 4;1 0 5 4 3 1 0 5 4 3"}, {"input": "1 4 3 3 1;4 4 4 2 3;1 0 3 0 1", "output": "1 4 3 3 1 1 4 3 3 1;4 4 4 2 3 4 4 4 2 3;1 0 3 0 1 1 0 3 0 1"}, {"input": "3 2 2 0 4;2 3 4 0 4;3 3 1 2 5", "output": "3 2 2 0 4 3 2 2 0 4;2 3 4 0 4 2 3 4 0 4;3 3 1 2 5 3 3 1 2 5"}, {"input": "2 5 3 5 0;4 3 5 0 1;3 1 4 5 4", "output": "2 5 3 5 0 2 5 3 5 0;4 3 5 0 1 4 3 5 0 1;3 1 4 5 4 3 1 4 5 4"}], "query_input": "4 2 0 5 2;0 0 1 2 5;0 0 0 3 2", "query_output": "4 2 0 5 2 4 2 0 5 2;0 0 1 2 5 0 0 1 2 5;0 0 0 3 2 0 0 0 3 2"} |
| {"task_id": "icgr-00327", "rule": "add_mod+flip_h", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "3 3 0;2 1 4;5 1 1;4 5 4", "output": "4 1 1;2 5 0;5 5 3;2 3 2"}, {"input": "2 2 3;3 3 1;5 5 5;2 1 0", "output": "1 0 0;5 1 1;3 3 3;4 5 0"}, {"input": "4 4 0;2 4 3;3 2 2;2 0 4", "output": "4 2 2;1 2 0;0 0 1;2 4 0"}, {"input": "2 3 1;0 1 3;4 3 5;4 5 0", "output": "5 1 0;1 5 4;3 1 2;4 3 2"}], "query_input": "2 0 1;5 5 4;0 1 0;1 2 5", "query_output": "5 4 0;2 3 3;4 5 4;3 0 5"} |
| {"task_id": "icgr-00193", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "2 4 5 1 3;4 0 2 1 3;4 3 0 2 1;3 1 2 3 0;2 2 4 1 2", "output": "2 3 4 4 2;2 1 3 0 4;4 2 0 2 5;1 3 2 1 1;2 0 1 3 3"}, {"input": "4 5 5 2 5;1 0 4 5 0;2 1 4 2 0;2 2 0 0 5;2 2 0 3 5", "output": "2 2 2 1 4;2 2 1 0 5;0 0 4 4 5;3 0 2 5 2;5 5 0 0 5"}], "query_input": "4 1 3 5 1;2 1 2 3 4;3 0 5 4 5;1 5 5 3 0;4 2 4 2 2", "query_output": "4 1 3 2 4;2 5 0 1 1;4 5 5 2 3;2 3 4 3 5;2 0 5 4 1"} |
| {"task_id": "icgr-00415", "rule": "flip_h+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "1 2 2 1 3;1 3 2 2 0;2 3 1 0 2;2 2 2 0 1", "output": "2 0 1 1 0;3 1 1 2 0;1 3 0 2 1;0 3 1 1 1"}, {"input": "3 2 0 3 1;3 3 0 2 0;2 1 1 0 3;1 3 2 1 2", "output": "0 2 3 1 2;3 1 3 2 2;2 3 0 0 1;1 0 1 2 0"}], "query_input": "3 3 0 3 2;3 2 0 1 1;0 0 1 0 1;1 2 2 2 1", "query_output": "1 2 3 2 2;0 0 3 1 2;0 3 0 3 3;0 1 1 1 0"} |
| {"task_id": "icgr-00972", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "3 0 0 3;0 1 1 2;0 3 1 2;3 0 3 3", "output": "3 0 3 3;0 3 1 2;0 1 1 2;3 0 0 3"}, {"input": "1 3 2 0;3 2 3 2;0 0 2 2;3 2 0 1", "output": "3 2 0 1;0 0 2 2;3 2 3 2;1 3 2 0"}], "query_input": "2 2 1 0;2 2 2 0;0 3 2 2;2 3 1 3", "query_output": "2 3 1 3;0 3 2 2;2 2 2 0;2 2 1 0"} |
| {"task_id": "icgr-00892", "rule": "add_mod+shift_rows", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "3 2 0 3;1 0 0 3;4 4 4 1;0 3 4 0;4 4 0 3", "output": "1 4 4 3;1 4 2 1;0 2 0 0;0 1 1 4;1 4 0 0"}, {"input": "3 3 0 1;2 0 3 3;0 3 2 2;3 4 0 2;1 0 1 4", "output": "1 2 4 4;4 4 3 1;3 3 1 4;1 3 4 0;2 0 2 1"}, {"input": "3 0 2 1;3 3 1 0;0 1 4 3;2 4 4 3;4 0 3 4", "output": "3 2 4 1;2 1 4 4;0 4 1 2;0 4 3 0;4 0 0 1"}, {"input": "1 0 0 3;1 1 4 4;4 1 0 3;4 1 3 4;1 4 1 2", "output": "1 4 2 1;0 0 2 2;1 4 0 2;4 0 0 2;2 3 2 0"}], "query_input": "4 3 1 2;0 2 3 3;4 4 3 1;0 2 3 3;4 3 2 3", "query_output": "2 3 0 4;4 4 1 3;4 2 0 0;4 4 1 3;3 4 0 4"} |
| {"task_id": "icgr-00226", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "5 5 1 2;4 2 5 5;2 0 1 0;5 1 3 1;4 4 4 4", "output": "2 2 2 2;2 2 5 2;2 0 1 2;2 1 3 2;2 2 2 2"}, {"input": "1 3 3 2;4 5 0 1;3 1 1 1;3 1 3 1;3 2 5 5", "output": "2 2 2 2;2 5 0 2;2 1 1 2;2 1 3 2;2 2 2 2"}, {"input": "0 3 5 0;2 0 2 2;5 3 5 0;3 3 0 2;4 5 5 5", "output": "2 2 2 2;2 0 2 2;2 3 5 2;2 3 0 2;2 2 2 2"}, {"input": "5 4 0 3;0 4 2 2;2 3 5 1;4 4 2 3;3 5 3 4", "output": "2 2 2 2;2 4 2 2;2 3 5 2;2 4 2 2;2 2 2 2"}], "query_input": "2 0 0 2;4 3 0 4;1 4 0 4;5 3 3 4;4 1 2 5", "query_output": "2 2 2 2;2 3 0 2;2 4 0 2;2 3 3 2;2 2 2 2"} |
| {"task_id": "icgr-00765", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "4 4 3 0 4;4 4 3 3 5;1 0 1 5 2", "output": "4 4 4 3 0;5 4 4 3 3;2 1 0 1 5"}, {"input": "2 4 0 1 0;1 2 5 2 0;0 1 5 5 2", "output": "0 2 4 0 1;0 1 2 5 2;2 0 1 5 5"}], "query_input": "4 0 4 3 3;4 3 0 1 4;3 2 4 5 0", "query_output": "3 4 0 4 3;4 4 3 0 1;0 3 2 4 5"} |
| {"task_id": "icgr-00248", "rule": "border+flip_h", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "0 3 0 1 0;3 1 2 1 2;1 3 0 1 0;3 0 0 2 0", "output": "2 2 2 2 2;2 1 2 1 2;2 1 0 3 2;2 2 2 2 2"}, {"input": "0 2 2 0 2;3 2 1 1 3;0 3 0 3 3;2 1 0 3 0", "output": "2 2 2 2 2;2 1 1 2 2;2 3 0 3 2;2 2 2 2 2"}, {"input": "1 2 1 0 3;1 0 3 3 3;0 3 3 1 2;0 0 3 0 3", "output": "2 2 2 2 2;2 3 3 0 2;2 1 3 3 2;2 2 2 2 2"}, {"input": "1 2 1 2 3;0 2 2 0 0;0 0 3 2 3;2 0 0 2 0", "output": "2 2 2 2 2;2 0 2 2 2;2 2 3 0 2;2 2 2 2 2"}], "query_input": "2 0 0 0 0;2 2 2 2 1;2 3 3 1 2;1 0 0 1 0", "query_output": "2 2 2 2 2;2 2 2 2 2;2 1 3 3 2;2 2 2 2 2"} |
| {"task_id": "icgr-00335", "rule": "border+flip_h", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "2 1 3 0;1 0 1 1;0 3 0 3;0 0 0 3;1 1 0 1", "output": "0 0 0 0;0 1 0 0;0 0 3 0;0 0 0 0;0 0 0 0"}, {"input": "0 1 0 0;2 2 3 1;3 0 3 1;2 3 1 1;3 3 1 3", "output": "0 0 0 0;0 3 2 0;0 3 0 0;0 1 3 0;0 0 0 0"}, {"input": "0 3 2 2;3 3 0 0;0 3 3 2;2 0 1 0;2 0 3 3", "output": "0 0 0 0;0 0 3 0;0 3 3 0;0 1 0 0;0 0 0 0"}, {"input": "3 3 1 2;3 3 0 0;1 1 2 1;0 3 3 2;1 3 0 3", "output": "0 0 0 0;0 0 3 0;0 2 1 0;0 3 3 0;0 0 0 0"}], "query_input": "0 0 2 0;3 2 1 0;0 0 1 3;1 1 0 1;3 1 2 0", "query_output": "0 0 0 0;0 1 2 0;0 1 0 0;0 0 1 0;0 0 0 0"} |
| {"task_id": "icgr-00035", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "2 3 2 1;5 2 2 2;3 0 3 4", "output": "1 2 3 2;2 2 2 5;4 3 0 3"}, {"input": "5 2 4 0;2 1 3 2;4 5 0 0", "output": "0 4 2 5;2 3 1 2;0 0 5 4"}], "query_input": "2 2 2 4;3 3 1 3;5 5 1 2", "query_output": "4 2 2 2;3 1 3 3;2 1 5 5"} |
| {"task_id": "icgr-00361", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 6, "grid_w": 6, "num_support": 2, "support": [{"input": "4 5 0 2 5 5;1 0 1 1 2 0;5 2 2 4 2 3;3 5 4 3 1 5;4 5 5 3 0 5;4 5 0 0 4 0", "output": "5 2 5;5 4 5;5 5 5"}, {"input": "5 5 3 3 5 3;0 2 3 4 0 4;0 5 2 5 5 3;2 1 1 3 1 2;4 1 5 1 1 2;0 5 5 3 3 4", "output": "5 4 5;5 5 5;5 5 4"}], "query_input": "0 1 1 5 1 1;1 1 0 2 5 2;3 2 0 3 0 3;3 0 1 0 2 1;1 2 4 3 5 5;2 0 5 1 4 1", "query_output": "1 5 5;3 3 3;2 5 5"} |
| {"task_id": "icgr-00811", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "1 3 3 0;1 2 2 1;1 2 0 1;3 1 0 3", "output": "1 1 1 3;3 2 2 1;3 2 0 0;0 1 1 3"}, {"input": "2 0 1 1;0 0 2 0;3 0 1 2;1 1 0 0", "output": "2 0 3 1;0 0 0 1;1 2 1 0;1 0 2 0"}, {"input": "0 3 2 2;3 1 0 3;3 2 3 2;2 3 2 0", "output": "0 3 3 2;3 1 2 3;2 0 3 2;2 3 2 0"}, {"input": "3 0 3 1;2 2 3 1;2 3 2 0;2 1 1 3", "output": "3 2 2 2;0 2 3 1;3 3 2 1;1 1 0 3"}], "query_input": "3 2 0 2;0 0 2 2;2 3 1 2;2 3 0 2", "query_output": "3 0 2 2;2 0 3 3;0 2 1 0;2 2 2 2"} |
| {"task_id": "icgr-00372", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "1 0 1 1;0 1 3 3;1 3 1 0;2 2 0 3", "output": "1 3;3 3"}, {"input": "2 0 0 3;0 1 0 0;1 0 2 1;0 3 2 0", "output": "2 3;3 2"}, {"input": "0 3 3 0;2 2 3 1;2 1 3 1;0 0 2 2", "output": "3 3;2 3"}, {"input": "1 2 0 0;2 1 0 2;2 2 3 1;0 2 2 3", "output": "2 2;2 3"}], "query_input": "0 2 2 2;2 1 2 1;2 3 0 0;2 2 1 1", "query_output": "2 2;3 1"} |
| {"task_id": "icgr-00583", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "0 5 1 5;3 1 4 3;3 2 0 2;2 1 0 1", "output": "1 1 1 1;1 1 4 1;1 2 0 1;1 1 1 1"}, {"input": "3 4 0 5;1 0 2 1;0 1 4 0;2 3 0 0", "output": "1 1 1 1;1 0 2 1;1 1 4 1;1 1 1 1"}, {"input": "2 4 4 2;2 4 2 1;0 3 0 5;1 2 0 4", "output": "1 1 1 1;1 4 2 1;1 3 0 1;1 1 1 1"}], "query_input": "1 3 0 4;4 5 5 1;5 1 1 5;1 5 2 4", "query_output": "1 1 1 1;1 5 5 1;1 1 1 1;1 1 1 1"} |
| {"task_id": "icgr-00964", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "1 2 1 1 1;0 3 1 1 2;1 2 2 2 0", "output": "1 2 1 1 1 1 2 1 1 1;0 3 1 1 2 0 3 1 1 2;1 2 2 2 0 1 2 2 2 0"}, {"input": "1 1 2 1 0;2 2 0 2 3;2 3 1 1 0", "output": "1 1 2 1 0 1 1 2 1 0;2 2 0 2 3 2 2 0 2 3;2 3 1 1 0 2 3 1 1 0"}, {"input": "0 0 1 0 2;0 1 2 1 1;0 0 1 3 0", "output": "0 0 1 0 2 0 0 1 0 2;0 1 2 1 1 0 1 2 1 1;0 0 1 3 0 0 0 1 3 0"}], "query_input": "1 3 3 3 3;0 3 3 2 2;3 1 1 3 0", "query_output": "1 3 3 3 3 1 3 3 3 3;0 3 3 2 2 0 3 3 2 2;3 1 1 3 0 3 1 1 3 0"} |
| {"task_id": "icgr-00413", "rule": "border+color_swap", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "1 1 3 2 1;2 3 1 1 2;1 2 2 3 3;3 3 2 2 3", "output": "1 1 1 1 1;1 2 1 1 1;1 3 3 2 1;1 1 1 1 1"}, {"input": "1 1 0 1 2;1 1 0 3 2;1 0 3 3 0;0 2 1 0 3", "output": "1 1 1 1 1;1 1 0 2 1;1 0 2 2 1;1 1 1 1 1"}, {"input": "2 1 0 3 2;0 2 1 2 3;2 1 3 2 1;2 0 0 2 0", "output": "1 1 1 1 1;1 3 1 3 1;1 1 2 3 1;1 1 1 1 1"}, {"input": "1 1 2 2 0;3 0 1 3 3;0 1 2 1 1;3 2 2 0 3", "output": "1 1 1 1 1;1 0 1 2 1;1 1 3 1 1;1 1 1 1 1"}], "query_input": "0 2 0 3 3;1 3 1 3 2;0 3 1 0 2;1 3 1 0 2", "query_output": "1 1 1 1 1;1 2 1 2 1;1 2 1 0 1;1 1 1 1 1"} |
| {"task_id": "icgr-00555", "rule": "border+color_swap", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "1 3 0;2 3 0;3 0 0", "output": "3 3 3;3 3 3;3 3 3"}, {"input": "2 1 1;2 0 0;3 3 1", "output": "3 3 3;3 0 3;3 3 3"}, {"input": "0 2 3;3 0 1;0 0 1", "output": "3 3 3;3 0 3;3 3 3"}], "query_input": "3 0 1;0 0 0;2 3 2", "query_output": "3 3 3;3 0 3;3 3 3"} |
| {"task_id": "icgr-00499", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "3 1 5 4;4 5 4 2;1 3 5 3;0 4 3 2", "output": "3 1 5 4 3 1 5 4;4 5 4 2 4 5 4 2;1 3 5 3 1 3 5 3;0 4 3 2 0 4 3 2"}, {"input": "2 1 1 0;3 0 3 5;1 2 2 0;3 1 0 3", "output": "2 1 1 0 2 1 1 0;3 0 3 5 3 0 3 5;1 2 2 0 1 2 2 0;3 1 0 3 3 1 0 3"}], "query_input": "4 3 1 0;1 5 0 4;2 2 0 3;5 4 4 0", "query_output": "4 3 1 0 4 3 1 0;1 5 0 4 1 5 0 4;2 2 0 3 2 2 0 3;5 4 4 0 5 4 4 0"} |
| {"task_id": "icgr-00909", "rule": "border+add_mod", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "1 3 3 0 3;3 2 2 1 0;3 2 2 0 3;0 3 1 2 0;3 3 3 3 0", "output": "0 0 0 0 0;0 1 1 0 0;0 1 1 3 0;0 2 0 1 0;0 0 0 0 0"}, {"input": "3 0 3 2 3;3 1 2 1 0;3 3 2 2 3;3 0 0 2 0;1 0 1 0 0", "output": "0 0 0 0 0;0 0 1 0 0;0 2 1 1 0;0 3 3 1 0;0 0 0 0 0"}, {"input": "1 3 2 1 2;1 3 2 0 2;0 2 0 3 2;1 1 1 0 1;2 0 3 3 1", "output": "0 0 0 0 0;0 2 1 3 0;0 1 3 2 0;0 0 0 3 0;0 0 0 0 0"}, {"input": "3 1 3 1 3;2 1 0 0 1;1 1 2 2 2;3 2 2 3 2;3 0 1 0 1", "output": "0 0 0 0 0;0 0 3 3 0;0 0 1 1 0;0 1 1 2 0;0 0 0 0 0"}], "query_input": "1 0 0 2 2;1 1 3 3 0;3 2 3 0 2;3 3 2 0 0;1 1 3 1 3", "query_output": "0 0 0 0 0;0 0 2 2 0;0 1 2 3 0;0 2 1 3 0;0 0 0 0 0"} |
| {"task_id": "icgr-00543", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "0 2 2 0 1;1 0 0 1 1;2 0 2 1 1", "output": "3 1 1 3 0;0 3 3 0 0;1 3 1 0 0"}, {"input": "2 3 3 3 1;1 3 2 0 0;1 2 2 3 0", "output": "1 2 2 2 0;0 2 1 3 3;0 1 1 2 3"}], "query_input": "0 1 3 2 1;3 2 0 1 2;2 0 3 3 2", "query_output": "3 0 2 1 0;2 1 3 0 1;1 3 2 2 1"} |
| {"task_id": "icgr-00461", "rule": "flip_h+flip_v", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "3 0 1;3 0 3;1 2 0;2 1 3;0 3 0", "output": "0 3 0;3 1 2;0 2 1;3 0 3;1 0 3"}, {"input": "3 2 0;1 0 3;0 0 1;1 1 3;2 2 3", "output": "3 2 2;3 1 1;1 0 0;3 0 1;0 2 3"}, {"input": "2 1 2;3 3 0;0 2 2;2 0 1;1 0 0", "output": "0 0 1;1 0 2;2 2 0;0 3 3;2 1 2"}], "query_input": "0 0 0;1 2 0;1 3 2;3 3 0;2 0 1", "query_output": "1 0 2;0 3 3;2 3 1;0 2 1;0 0 0"} |
| {"task_id": "icgr-00916", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "0 1 2 0;1 0 3 3;1 1 2 2;2 1 2 0", "output": "2 0 0 1;3 3 1 0;2 2 1 1;2 0 2 1"}, {"input": "2 1 3 1;3 0 3 3;2 2 2 1;0 2 0 3", "output": "3 1 2 1;3 3 3 0;2 1 2 2;0 3 0 2"}, {"input": "1 2 0 0;0 2 0 3;2 3 1 3;1 3 2 1", "output": "0 0 1 2;0 3 0 2;1 3 2 3;2 1 1 3"}], "query_input": "0 1 3 1;2 2 1 2;3 1 2 2;1 3 3 1", "query_output": "3 1 0 1;1 2 2 2;2 2 3 1;3 1 1 3"} |
| {"task_id": "icgr-00716", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "2 3 0 0 3;1 4 0 4 0;0 0 4 3 4;2 3 1 4 2", "output": "3 4 1 1 4;2 0 1 0 1;1 1 0 4 0;3 4 2 0 3"}, {"input": "1 2 3 1 4;2 1 4 0 0;3 0 2 3 1;0 4 0 1 0", "output": "2 3 4 2 0;3 2 0 1 1;4 1 3 4 2;1 0 1 2 1"}], "query_input": "3 3 4 4 3;3 1 4 4 0;4 0 2 1 3;4 2 0 3 1", "query_output": "4 4 0 0 4;4 2 0 0 1;0 1 3 2 4;0 3 1 4 2"} |
| {"task_id": "icgr-00560", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "4 1 1 0 3;2 4 2 0 2;2 0 2 2 2", "output": "4 1 1 0 3;2 4 2 0 2;2 0 2 2 2"}, {"input": "0 0 1 1 3;0 1 2 1 1;4 1 3 3 2", "output": "0 0 1 1 3;0 1 2 1 1;4 1 3 3 2"}, {"input": "1 3 3 1 1;1 2 4 1 2;4 1 1 0 2", "output": "1 3 3 1 1;1 2 4 1 2;4 1 1 0 2"}, {"input": "0 3 1 4 1;3 0 1 0 4;4 3 1 4 1", "output": "0 3 1 4 1;3 0 1 0 4;4 3 1 4 1"}], "query_input": "0 1 0 4 0;1 2 2 4 3;2 2 3 0 2", "query_output": "0 1 0 4 0;1 2 2 4 3;2 2 3 0 2"} |
| {"task_id": "icgr-00945", "rule": "border+color_swap", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "4 1 3 1 4;1 0 1 1 2;2 2 2 0 3;3 3 4 1 1;3 0 1 4 0", "output": "1 1 1 1 1;1 0 1 1 1;1 2 2 0 1;1 3 4 1 1;1 1 1 1 1"}, {"input": "2 0 4 3 0;2 3 1 2 1;1 4 0 1 4;2 1 0 0 0;2 1 0 4 3", "output": "1 1 1 1 1;1 3 1 2 1;1 4 0 1 1;1 1 0 0 1;1 1 1 1 1"}], "query_input": "0 3 3 1 4;4 0 0 1 1;1 0 3 0 0;1 4 2 3 3;0 4 4 4 0", "query_output": "1 1 1 1 1;1 0 0 1 1;1 0 3 0 1;1 4 2 3 1;1 1 1 1 1"} |
| {"task_id": "icgr-00773", "rule": "color_swap+flip_v", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "2 4 2 1;0 2 5 4;1 5 0 2;5 5 1 3;0 4 4 0", "output": "0 1 1 0;5 5 4 3;4 5 0 2;0 2 5 1;2 1 2 4"}, {"input": "5 3 1 1;1 5 4 4;3 0 2 1;5 2 3 0;0 2 1 2", "output": "0 2 4 2;5 2 3 0;3 0 2 4;4 5 1 1;5 3 4 4"}, {"input": "2 1 4 0;5 5 3 3;1 2 5 0;4 0 5 2;2 2 5 2", "output": "2 2 5 2;1 0 5 2;4 2 5 0;5 5 3 3;2 4 1 0"}, {"input": "2 4 5 5;1 2 4 5;3 3 0 3;1 5 0 2;1 5 4 3", "output": "4 5 1 3;4 5 0 2;3 3 0 3;4 2 1 5;2 1 5 5"}], "query_input": "5 1 1 5;5 4 0 0;5 1 4 5;4 3 2 1;5 1 1 4", "query_output": "5 4 4 1;1 3 2 4;5 4 1 5;5 1 0 0;5 4 4 5"} |
| {"task_id": "icgr-00844", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "4 3 1;1 4 2;3 3 4", "output": "0 4 2;2 0 3;4 4 0"}, {"input": "2 4 1;3 0 3;1 3 4", "output": "3 0 2;4 1 4;2 4 0"}, {"input": "3 2 4;3 1 4;1 3 0", "output": "4 3 0;4 2 0;2 4 1"}], "query_input": "1 3 1;4 0 0;0 4 4", "query_output": "2 4 2;0 1 1;1 0 0"} |
| {"task_id": "icgr-00237", "rule": "add_mod+border", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "0 1 1;1 2 3;3 1 1", "output": "2 2 2;2 0 2;2 2 2"}, {"input": "1 0 0;2 3 0;0 2 2", "output": "2 2 2;2 1 2;2 2 2"}, {"input": "3 0 2;1 2 0;2 3 3", "output": "2 2 2;2 0 2;2 2 2"}], "query_input": "2 1 1;2 3 3;1 3 1", "query_output": "2 2 2;2 1 2;2 2 2"} |
| {"task_id": "icgr-00219", "rule": "color_swap+shift_rows", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "0 2 1 3;1 0 0 2;3 2 2 0", "output": "1 2 0 3;0 3 1 0;3 0 2 3"}, {"input": "3 3 1 2;1 0 2 3;1 0 0 2", "output": "1 3 2 2;3 2 1 0;0 3 1 0"}], "query_input": "3 3 2 3;0 1 3 0;0 3 2 3", "query_output": "3 2 2 2;2 0 0 1;3 2 0 2"} |
| {"task_id": "icgr-00010", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "2 4 0 0;2 3 1 4;1 4 0 4;1 1 3 0;2 4 4 2", "output": "0 0 2 4;1 4 2 3;0 4 1 4;3 0 1 1;4 2 2 4"}, {"input": "1 1 4 2;4 0 2 0;3 0 1 4;1 1 3 1;0 1 1 0", "output": "4 2 1 1;2 0 4 0;1 4 3 0;3 1 1 1;1 0 0 1"}], "query_input": "3 0 2 1;3 2 4 1;4 1 1 0;4 0 2 0;4 1 4 4", "query_output": "2 1 3 0;4 1 3 2;1 0 4 1;2 0 4 0;4 4 4 1"} |
| {"task_id": "icgr-00312", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "2 0 3 2 0;0 3 0 3 0;2 3 3 3 1", "output": "1 0 3 1 0;0 3 0 3 0;1 3 3 3 2"}, {"input": "3 1 3 2 2;0 3 1 1 0;3 0 2 3 1", "output": "3 2 3 1 1;0 3 2 2 0;3 0 1 3 2"}], "query_input": "2 2 2 3 3;0 0 3 0 2;3 3 3 1 2", "query_output": "1 1 1 3 3;0 0 3 0 1;3 3 3 2 1"} |
| {"task_id": "icgr-00826", "rule": "flip_h+border", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "4 4 0 2;0 3 2 0;0 0 4 4;4 4 3 2;4 3 2 4", "output": "0 0 0 0;0 2 3 0;0 4 0 0;0 3 4 0;0 0 0 0"}, {"input": "0 0 1 0;3 1 2 2;1 3 0 1;0 0 4 3;4 1 0 2", "output": "0 0 0 0;0 2 1 0;0 0 3 0;0 4 0 0;0 0 0 0"}], "query_input": "3 4 2 3;2 0 0 0;2 2 0 0;4 1 2 3;4 3 4 1", "query_output": "0 0 0 0;0 0 0 0;0 0 2 0;0 2 1 0;0 0 0 0"} |
| {"task_id": "icgr-00512", "rule": "flip_h+flip_v", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "2 2 5;5 0 2;4 1 2", "output": "2 1 4;2 0 5;5 2 2"}, {"input": "0 3 3;0 5 1;1 5 2", "output": "2 5 1;1 5 0;3 3 0"}, {"input": "4 3 5;5 5 1;2 4 0", "output": "0 4 2;1 5 5;5 3 4"}], "query_input": "5 1 5;4 4 0;3 5 0", "query_output": "0 5 3;0 4 4;5 1 5"} |
| {"task_id": "icgr-00196", "rule": "add_mod+flip_v", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "4 1 5 5 3;5 1 0 2 1;4 1 5 0 5;4 2 0 1 2;0 1 0 4 4", "output": "3 4 3 1 1;1 5 3 4 5;1 4 2 3 2;2 4 3 5 4;1 4 2 2 0"}, {"input": "4 4 4 0 5;5 2 0 0 4;5 2 5 0 5;5 0 4 1 0;5 5 1 3 1", "output": "2 2 4 0 4;2 3 1 4 3;2 5 2 3 2;2 5 3 3 1;1 1 1 3 2"}, {"input": "2 4 2 0 5;4 2 4 4 0;3 1 2 5 5;2 1 5 0 5;3 1 1 1 2", "output": "0 4 4 4 5;5 4 2 3 2;0 4 5 2 2;1 5 1 1 3;5 1 5 3 2"}], "query_input": "3 4 1 0 1;1 5 2 4 4;4 4 4 1 3;4 0 0 1 0;3 3 3 3 5", "query_output": "0 0 0 0 2;1 3 3 4 3;1 1 1 4 0;4 2 5 1 1;0 1 4 3 4"} |
| {"task_id": "icgr-00216", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "2 2 0 3 1;0 2 0 1 3;0 2 1 2 2", "output": "2 2 0 3 1 2 2 0 3 1;0 2 0 1 3 0 2 0 1 3;0 2 1 2 2 0 2 1 2 2"}, {"input": "1 3 1 1 2;3 0 3 2 3;1 2 0 0 1", "output": "1 3 1 1 2 1 3 1 1 2;3 0 3 2 3 3 0 3 2 3;1 2 0 0 1 1 2 0 0 1"}, {"input": "2 3 2 1 2;2 1 3 3 3;2 2 3 1 2", "output": "2 3 2 1 2 2 3 2 1 2;2 1 3 3 3 2 1 3 3 3;2 2 3 1 2 2 2 3 1 2"}, {"input": "1 0 1 1 0;3 2 1 0 0;2 2 0 3 1", "output": "1 0 1 1 0 1 0 1 1 0;3 2 1 0 0 3 2 1 0 0;2 2 0 3 1 2 2 0 3 1"}], "query_input": "3 1 2 2 1;0 2 3 0 3;0 2 2 2 1", "query_output": "3 1 2 2 1 3 1 2 2 1;0 2 3 0 3 0 2 3 0 3;0 2 2 2 1 0 2 2 2 1"} |
| {"task_id": "icgr-00026", "rule": "color_swap+flip_v", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "5 0 1 1 4;0 1 0 1 1;2 5 5 2 5;4 3 4 1 0;2 3 2 5 2", "output": "1 3 1 5 1;4 3 4 2 0;1 5 5 1 5;0 2 0 2 2;5 0 2 2 4"}, {"input": "2 2 2 5 4;4 0 5 4 3;1 1 1 5 0;2 3 5 4 2;4 1 0 0 2", "output": "4 2 0 0 1;1 3 5 4 1;2 2 2 5 0;4 0 5 4 3;1 1 1 5 4"}, {"input": "2 4 1 1 2;0 2 5 5 4;4 4 1 1 2;5 0 3 2 3;0 4 1 5 5", "output": "0 4 2 5 5;5 0 3 1 3;4 4 2 2 1;0 1 5 5 4;1 4 2 2 1"}], "query_input": "0 1 4 5 5;1 3 1 3 5;1 0 4 4 4;1 0 3 3 0;5 4 3 1 0", "query_output": "5 4 3 2 0;2 0 3 3 0;2 0 4 4 4;2 3 2 3 5;0 2 4 5 5"} |
| {"task_id": "icgr-00412", "rule": "add_mod+flip_h", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "2 0 2 1 1;0 1 2 2 3;1 1 0 1 1;1 3 3 3 0", "output": "3 3 0 2 0;1 0 0 3 2;3 3 2 3 3;2 1 1 1 3"}, {"input": "0 1 3 0 0;2 0 3 3 1;2 1 0 3 3;1 3 1 2 3", "output": "2 2 1 3 2;3 1 1 2 0;1 1 2 3 0;1 0 3 1 3"}, {"input": "2 3 2 3 3;2 3 3 0 0;2 3 0 0 1;3 0 0 2 1", "output": "1 1 0 1 0;2 2 1 1 0;3 2 2 1 0;3 0 2 2 1"}, {"input": "3 3 2 2 3;1 3 2 3 1;3 0 3 2 2;2 0 0 2 2", "output": "1 0 0 1 1;3 1 0 1 3;0 0 1 2 1;0 0 2 2 0"}], "query_input": "2 3 0 0 3;3 3 1 3 3;3 2 0 0 0;0 2 0 1 2", "query_output": "1 2 2 1 0;1 1 3 1 1;2 2 2 0 1;0 3 2 0 2"} |
| {"task_id": "icgr-00364", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "3 4 4 3 0;1 4 1 1 0;5 4 4 3 4", "output": "5 0 0 5 2;3 0 3 3 2;1 0 0 5 0"}, {"input": "1 4 1 2 5;1 1 5 2 0;3 4 2 1 5", "output": "3 0 3 4 1;3 3 1 4 2;5 0 4 3 1"}], "query_input": "1 2 0 2 4;3 5 3 4 2;4 5 5 3 2", "query_output": "3 4 2 4 0;5 1 5 0 4;0 1 1 5 4"} |
| {"task_id": "icgr-00694", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "4 5 1 0 2;4 1 3 4 2;5 4 2 5 4;5 2 2 0 2;1 0 4 0 3", "output": "4 5 1 0 2 4 5 1 0 2;4 1 3 4 2 4 1 3 4 2;5 4 2 5 4 5 4 2 5 4;5 2 2 0 2 5 2 2 0 2;1 0 4 0 3 1 0 4 0 3"}, {"input": "2 5 0 4 4;0 4 2 1 5;1 2 2 2 1;2 4 2 1 0;2 5 3 4 1", "output": "2 5 0 4 4 2 5 0 4 4;0 4 2 1 5 0 4 2 1 5;1 2 2 2 1 1 2 2 2 1;2 4 2 1 0 2 4 2 1 0;2 5 3 4 1 2 5 3 4 1"}, {"input": "5 3 4 3 1;3 1 3 5 5;5 1 1 1 5;2 2 1 3 1;0 5 1 0 4", "output": "5 3 4 3 1 5 3 4 3 1;3 1 3 5 5 3 1 3 5 5;5 1 1 1 5 5 1 1 1 5;2 2 1 3 1 2 2 1 3 1;0 5 1 0 4 0 5 1 0 4"}], "query_input": "4 5 2 2 5;0 5 0 0 3;4 2 0 0 4;5 1 1 5 4;2 1 4 5 1", "query_output": "4 5 2 2 5 4 5 2 2 5;0 5 0 0 3 0 5 0 0 3;4 2 0 0 4 4 2 0 0 4;5 1 1 5 4 5 1 1 5 4;2 1 4 5 1 2 1 4 5 1"} |
| {"task_id": "icgr-00170", "rule": "color_swap+flip_h", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "1 3 1 2;3 0 0 1;3 0 0 0;0 0 0 0;1 0 3 0", "output": "0 1 3 1;1 2 2 3;2 2 2 3;2 2 2 2;2 3 2 1"}, {"input": "0 3 3 2;2 3 0 1;3 1 2 3;0 1 0 2;1 1 0 1", "output": "0 3 3 2;1 2 3 0;3 0 1 3;0 2 1 2;1 2 1 1"}, {"input": "2 3 3 1;2 0 2 1;0 3 3 0;1 2 3 3;3 3 0 0", "output": "1 3 3 0;1 0 2 0;2 3 3 2;3 3 0 1;2 2 3 3"}], "query_input": "1 3 1 3;3 1 3 1;1 2 3 0;3 1 3 1;1 3 2 2", "query_output": "3 1 3 1;1 3 1 3;2 3 0 1;1 3 1 3;0 0 3 1"} |
| {"task_id": "icgr-00120", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "1 0 0 3;2 1 3 3;1 2 1 3", "output": "1 2 1;2 1 0;1 3 0;3 3 3"}, {"input": "2 2 1 1;1 3 3 1;3 0 2 2", "output": "3 1 2;0 3 2;2 3 1;2 1 1"}, {"input": "0 0 3 1;3 1 2 2;2 1 2 2", "output": "2 3 0;1 1 0;2 2 3;2 2 1"}, {"input": "0 0 3 1;1 0 3 0;0 0 3 2", "output": "0 1 0;0 0 0;3 3 3;2 0 1"}], "query_input": "2 3 3 1;2 2 2 3;0 3 3 2", "query_output": "0 2 2;3 2 3;3 2 3;2 3 1"} |
| {"task_id": "icgr-00532", "rule": "flip_v+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "1 3 3;1 2 3;2 3 0;1 3 3", "output": "1 3 3;2 3 0;1 2 3;1 3 3"}, {"input": "1 0 2;1 3 2;1 2 2;3 3 0", "output": "3 3 0;1 2 2;1 3 2;1 0 2"}, {"input": "2 0 3;3 1 2;2 1 1;3 2 0", "output": "3 2 0;2 1 1;3 1 2;2 0 3"}, {"input": "3 3 2;2 0 3;1 1 2;0 1 2", "output": "0 1 2;1 1 2;2 0 3;3 3 2"}], "query_input": "3 1 2;1 3 1;0 3 0;0 0 0", "query_output": "0 0 0;0 3 0;1 3 1;3 1 2"} |
| {"task_id": "icgr-00050", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "1 3 2;1 0 2;3 3 4", "output": "3 1 1;3 0 3;4 2 2"}, {"input": "4 0 2;1 2 3;2 4 3", "output": "2 1 4;4 2 0;3 3 2"}, {"input": "1 2 3;1 3 3;0 1 1", "output": "0 1 1;1 3 2;1 3 3"}], "query_input": "1 1 0;2 2 2;2 3 4", "query_output": "2 2 1;3 2 1;4 2 0"} |
| {"task_id": "icgr-00636", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "1 0 2;2 3 2;3 3 2;0 2 3;0 3 2", "output": "0 0 3 2 1;3 2 3 3 0;2 3 2 2 2"}, {"input": "3 0 0;1 3 3;2 3 1;3 0 0;2 1 1", "output": "2 3 2 1 3;1 0 3 3 0;1 0 1 3 0"}, {"input": "1 3 3;3 0 1;0 3 1;0 1 1;0 1 1", "output": "0 0 0 3 1;1 1 3 0 3;1 1 1 1 3"}, {"input": "3 3 3;3 1 1;1 3 3;1 1 1;3 2 1", "output": "3 1 1 3 3;2 1 3 1 3;1 1 3 1 3"}], "query_input": "1 2 2;2 2 2;2 3 0;2 3 0;0 1 1", "query_output": "0 2 2 2 1;1 3 3 2 2;1 0 0 2 2"} |
| {"task_id": "icgr-00910", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "0 0 0;3 0 0;0 2 1", "output": "0 0 0;0 0 3;2 1 0"}, {"input": "3 1 3;2 1 1;2 2 3", "output": "1 3 3;1 1 2;2 3 2"}], "query_input": "1 2 3;0 0 2;1 1 0", "query_output": "2 3 1;0 2 0;1 0 1"} |
| {"task_id": "icgr-00475", "rule": "color_swap+add_mod", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "2 4 0 5 2;1 4 5 2 3;4 5 2 1 1;1 3 4 2 4;4 4 5 4 3", "output": "0 2 4 1 0;5 2 1 0 3;2 1 0 5 5;5 3 2 0 2;2 2 1 2 3"}, {"input": "2 0 4 0 1;4 5 5 4 4;1 2 0 4 0;2 0 2 5 3;5 0 2 4 4", "output": "0 4 2 4 5;2 1 1 2 2;5 0 4 2 4;0 4 0 1 3;1 4 0 2 2"}], "query_input": "3 1 3 2 3;3 4 4 4 2;3 5 1 2 4;3 1 0 5 2;4 1 0 4 2", "query_output": "3 5 3 0 3;3 2 2 2 0;3 1 5 0 2;3 5 4 1 0;2 5 4 2 0"} |
| {"task_id": "icgr-00841", "rule": "border+shift_rows", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "0 2 3 4;2 2 5 3;1 1 2 2;2 0 4 2;5 2 0 0", "output": "2 2 2 2;5 2 2 2;2 2 2 1;4 2 2 0;2 2 2 2"}, {"input": "1 1 0 3;0 1 4 4;5 2 1 0;1 4 1 4;1 1 0 3", "output": "2 2 2 2;4 2 2 1;1 2 2 2;1 2 2 4;2 2 2 2"}, {"input": "4 1 5 2;2 1 2 0;2 1 2 4;4 4 2 4;0 0 0 5", "output": "2 2 2 2;2 2 2 1;2 2 2 1;2 2 2 4;2 2 2 2"}], "query_input": "2 3 0 0;2 4 5 5;0 2 2 2;0 5 5 1;2 1 0 4", "query_output": "2 2 2 2;5 2 2 4;2 2 2 2;5 2 2 5;2 2 2 2"} |
| {"task_id": "icgr-00111", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "4 4 4 3 4;2 1 1 0 4;3 3 4 4 3;4 3 4 0 1;1 1 0 1 1", "output": "4 4 4 3 4;2 1 1 0 4;3 3 4 4 3;4 3 4 0 1;1 1 0 1 1"}, {"input": "0 1 3 3 0;4 2 0 1 3;4 4 0 0 0;2 2 1 0 0;3 2 0 4 3", "output": "0 1 3 3 0;4 2 0 1 3;4 4 0 0 0;2 2 1 0 0;3 2 0 4 3"}, {"input": "3 2 3 2 2;3 3 2 0 0;1 0 2 1 0;3 4 4 3 1;2 3 3 4 3", "output": "3 2 3 2 2;3 3 2 0 0;1 0 2 1 0;3 4 4 3 1;2 3 3 4 3"}], "query_input": "4 1 3 4 3;0 0 4 0 1;2 3 1 3 3;1 3 4 4 0;3 0 0 1 1", "query_output": "4 1 3 4 3;0 0 4 0 1;2 3 1 3 3;1 3 4 4 0;3 0 0 1 1"} |
| {"task_id": "icgr-00500", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "1 0 2 3;3 0 3 4;1 0 4 0;4 0 0 1", "output": "4 0 0 1;1 0 4 0;3 0 3 4;1 0 2 3"}, {"input": "2 4 1 2;3 2 3 1;0 4 1 4;4 3 1 1", "output": "4 3 1 1;0 4 1 4;3 2 3 1;2 4 1 2"}, {"input": "3 1 1 3;1 1 3 4;3 1 3 3;2 3 0 4", "output": "2 3 0 4;3 1 3 3;1 1 3 4;3 1 1 3"}], "query_input": "3 0 1 2;3 2 0 0;1 0 2 2;2 4 3 2", "query_output": "2 4 3 2;1 0 2 2;3 2 0 0;3 0 1 2"} |
| {"task_id": "icgr-00070", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "2 1 0 5;5 1 5 1;2 5 5 4", "output": "2 2 2 2;2 1 5 2;2 2 2 2"}, {"input": "5 4 5 3;2 3 5 0;0 4 5 2", "output": "2 2 2 2;2 3 5 2;2 2 2 2"}, {"input": "2 2 4 4;0 5 3 2;3 2 0 1", "output": "2 2 2 2;2 5 3 2;2 2 2 2"}], "query_input": "2 1 0 4;2 2 2 2;0 2 5 3", "query_output": "2 2 2 2;2 2 2 2;2 2 2 2"} |
| {"task_id": "icgr-00647", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "5 4 1;4 4 1;2 5 0;3 0 2", "output": "1 5 4;1 4 4;0 2 5;2 3 0"}, {"input": "5 5 5;1 2 3;2 0 0;2 2 4", "output": "5 5 5;3 1 2;0 2 0;4 2 2"}], "query_input": "5 3 3;0 5 5;3 5 2;0 0 2", "query_output": "3 5 3;5 0 5;2 3 5;2 0 0"} |
| {"task_id": "icgr-00086", "rule": "border+color_swap", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "0 1 1 0 4;1 1 5 3 5;1 5 2 2 5;0 3 1 0 1;0 3 1 0 5", "output": "4 4 4 4 4;4 1 5 3 4;4 5 4 4 4;4 3 1 0 4;4 4 4 4 4"}, {"input": "4 1 3 2 4;4 2 4 0 2;3 1 4 3 0;3 3 0 3 0;2 4 2 3 5", "output": "4 4 4 4 4;4 4 2 0 4;4 1 2 3 4;4 3 0 3 4;4 4 4 4 4"}, {"input": "3 1 5 3 0;2 1 3 0 0;5 5 5 0 4;3 2 5 0 4;5 1 3 4 5", "output": "4 4 4 4 4;4 1 3 0 4;4 5 5 0 4;4 4 5 0 4;4 4 4 4 4"}, {"input": "0 5 4 5 2;3 5 3 4 2;2 1 4 5 2;1 2 2 3 2;1 1 5 2 1", "output": "4 4 4 4 4;4 5 3 2 4;4 1 2 5 4;4 4 4 3 4;4 4 4 4 4"}], "query_input": "3 5 4 4 2;1 0 0 0 5;3 3 5 4 1;3 4 4 3 4;0 4 5 5 2", "query_output": "4 4 4 4 4;4 0 0 0 4;4 3 5 2 4;4 2 2 3 4;4 4 4 4 4"} |
| {"task_id": "icgr-00451", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "2 1 1 2 0;3 1 2 1 2;3 0 3 0 3;2 0 1 2 0;2 3 2 0 0", "output": "2 0 2 1 1;1 2 3 1 2;0 3 3 0 3;2 0 2 0 1;0 0 2 3 2"}, {"input": "0 1 0 0 0;0 0 3 0 3;3 2 1 1 3;1 3 3 0 3;2 3 3 3 2", "output": "0 0 0 1 0;0 3 0 0 3;1 3 3 2 1;0 3 1 3 3;3 2 2 3 3"}, {"input": "0 1 3 3 0;1 2 2 3 1;0 0 2 3 2;3 2 1 3 1;3 3 0 1 3", "output": "3 0 0 1 3;3 1 1 2 2;3 2 0 0 2;3 1 3 2 1;1 3 3 3 0"}, {"input": "2 2 0 2 3;1 0 2 0 1;1 2 2 3 2;0 1 1 3 0;0 3 3 2 3", "output": "2 3 2 2 0;0 1 1 0 2;3 2 1 2 2;3 0 0 1 1;2 3 0 3 3"}], "query_input": "0 0 3 0 2;3 1 3 1 3;0 3 1 0 3;2 1 1 1 1;0 0 2 3 2", "query_output": "0 2 0 0 3;1 3 3 1 3;0 3 0 3 1;1 1 2 1 1;3 2 0 0 2"} |
| {"task_id": "icgr-00280", "rule": "border+flip_v", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "4 0 0 2;1 0 3 1;2 2 0 2;1 2 3 4;2 3 0 0", "output": "2 2 2 2;2 2 3 2;2 2 0 2;2 0 3 2;2 2 2 2"}, {"input": "0 0 3 1;1 0 3 0;1 1 3 3;2 1 4 2;3 2 0 2", "output": "2 2 2 2;2 1 4 2;2 1 3 2;2 0 3 2;2 2 2 2"}], "query_input": "3 0 2 2;3 4 4 4;0 0 4 0;3 2 1 0;4 3 4 1", "query_output": "2 2 2 2;2 2 1 2;2 0 4 2;2 4 4 2;2 2 2 2"} |
| {"task_id": "icgr-00737", "rule": "flip_h+shift_rows", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "0 3 3 0 1;2 3 4 2 4;3 4 1 3 1;1 3 3 2 2;1 1 1 1 2", "output": "0 1 0 3 3;2 4 2 4 3;3 1 3 1 4;1 2 2 3 3;1 2 1 1 1"}, {"input": "1 3 4 0 2;3 2 3 2 4;3 4 4 0 0;1 3 3 4 2;4 0 1 1 2", "output": "1 2 0 4 3;3 4 2 3 2;3 0 0 4 4;1 2 4 3 3;4 2 1 1 0"}], "query_input": "2 1 4 2 1;4 2 0 1 0;1 4 2 3 3;3 1 3 3 2;1 4 1 3 4", "query_output": "2 1 2 4 1;4 0 1 0 2;1 3 3 2 4;3 2 3 3 1;1 4 3 1 4"} |
| {"task_id": "icgr-00186", "rule": "flip_v+border", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "4 3 3;3 3 1;1 4 2", "output": "0 0 0;0 3 0;0 0 0"}, {"input": "3 2 1;0 1 2;2 2 1", "output": "0 0 0;0 1 0;0 0 0"}, {"input": "4 2 3;1 4 2;1 4 1", "output": "0 0 0;0 4 0;0 0 0"}, {"input": "3 0 2;4 4 1;0 0 1", "output": "0 0 0;0 4 0;0 0 0"}], "query_input": "3 0 1;3 4 2;1 3 3", "query_output": "0 0 0;0 4 0;0 0 0"} |
| {"task_id": "icgr-00002", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "3 1 1 3 2;3 1 3 0 2;2 3 1 1 0", "output": "3 1 1 3 2 3 1 1 3 2;3 1 3 0 2 3 1 3 0 2;2 3 1 1 0 2 3 1 1 0"}, {"input": "2 2 1 1 0;0 1 2 1 2;0 2 1 3 0", "output": "2 2 1 1 0 2 2 1 1 0;0 1 2 1 2 0 1 2 1 2;0 2 1 3 0 0 2 1 3 0"}, {"input": "0 3 0 0 3;0 2 0 0 2;1 1 2 0 0", "output": "0 3 0 0 3 0 3 0 0 3;0 2 0 0 2 0 2 0 0 2;1 1 2 0 0 1 1 2 0 0"}, {"input": "3 3 1 0 1;2 0 1 2 0;1 2 2 0 0", "output": "3 3 1 0 1 3 3 1 0 1;2 0 1 2 0 2 0 1 2 0;1 2 2 0 0 1 2 2 0 0"}], "query_input": "1 3 0 3 1;3 2 0 3 2;1 2 3 0 3", "query_output": "1 3 0 3 1 1 3 0 3 1;3 2 0 3 2 3 2 0 3 2;1 2 3 0 3 1 2 3 0 3"} |
| {"task_id": "icgr-00870", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "4 0 0;4 1 1;1 0 3", "output": "1 1 1;1 1 1;1 1 1"}, {"input": "2 4 2;1 0 1;0 3 1", "output": "1 1 1;1 0 1;1 1 1"}], "query_input": "1 4 1;2 3 2;0 1 4", "query_output": "1 1 1;1 3 1;1 1 1"} |
| {"task_id": "icgr-00393", "rule": "flip_h+flip_v", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "1 3 1 3;0 0 1 1;3 2 1 3;0 1 2 3", "output": "3 2 1 0;3 1 2 3;1 1 0 0;3 1 3 1"}, {"input": "0 3 2 2;2 0 2 0;0 1 1 2;1 0 3 0", "output": "0 3 0 1;2 1 1 0;0 2 0 2;2 2 3 0"}, {"input": "0 0 0 1;0 3 3 1;0 2 1 1;3 2 2 0", "output": "0 2 2 3;1 1 2 0;1 3 3 0;1 0 0 0"}, {"input": "2 1 1 1;1 2 3 2;1 1 0 3;2 0 1 1", "output": "1 1 0 2;3 0 1 1;2 3 2 1;1 1 1 2"}], "query_input": "1 0 1 0;3 0 3 2;1 0 2 2;0 1 0 2", "query_output": "2 0 1 0;2 2 0 1;2 3 0 3;0 1 0 1"} |
| {"task_id": "icgr-00950", "rule": "add_mod+flip_v", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "1 0 1 1 2;2 1 3 2 0;0 3 2 0 2;3 2 1 2 0", "output": "2 1 0 1 3;3 2 1 3 1;1 0 2 1 3;0 3 0 0 1"}, {"input": "1 0 1 2 1;3 0 0 0 2;2 1 3 2 2;1 0 0 3 1", "output": "0 3 3 2 0;1 0 2 1 1;2 3 3 3 1;0 3 0 1 0"}], "query_input": "3 1 3 1 0;3 1 2 1 1;2 3 2 3 0;3 0 0 0 0", "query_output": "2 3 3 3 3;1 2 1 2 3;2 0 1 0 0;2 0 2 0 3"} |
| {"task_id": "icgr-00175", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "5 3 0;5 2 3;2 5 3", "output": "3 0 5;2 3 5;5 3 2"}, {"input": "4 1 3;3 5 3;5 5 5", "output": "1 3 4;5 3 3;5 5 5"}], "query_input": "0 1 2;4 5 1;0 4 5", "query_output": "1 2 0;5 1 4;4 5 0"} |
| {"task_id": "icgr-00757", "rule": "border+add_mod", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "0 2 1;3 3 1;2 3 0;0 1 0", "output": "0 0 0;0 2 0;0 2 0;0 0 0"}, {"input": "1 3 1;3 2 1;2 1 0;2 2 0", "output": "0 0 0;0 1 0;0 0 0;0 0 0"}], "query_input": "1 2 2;3 2 2;1 0 3;1 3 1", "query_output": "0 0 0;0 1 0;0 3 0;0 0 0"} |
| {"task_id": "icgr-00906", "rule": "flip_v+flip_h", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "4 5 3 1 3;2 5 5 1 4;4 2 3 3 0", "output": "0 3 3 2 4;4 1 5 5 2;3 1 3 5 4"}, {"input": "5 5 5 4 3;5 2 1 0 2;5 2 3 2 2", "output": "2 2 3 2 5;2 0 1 2 5;3 4 5 5 5"}, {"input": "1 4 1 5 4;1 1 2 4 2;0 5 2 3 4", "output": "4 3 2 5 0;2 4 2 1 1;4 5 1 4 1"}], "query_input": "5 1 4 1 1;0 0 3 1 4;2 3 3 0 0", "query_output": "0 0 3 3 2;4 1 3 0 0;1 1 4 1 5"} |
| {"task_id": "icgr-00717", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "4 2 0 0 1;1 1 2 3 3;0 0 1 4 2", "output": "4 4 4 4 4;4 1 2 3 4;4 4 4 4 4"}, {"input": "1 3 3 0 0;2 0 4 4 2;1 1 4 1 0", "output": "4 4 4 4 4;4 0 4 4 4;4 4 4 4 4"}, {"input": "4 2 1 0 2;0 0 4 2 0;2 4 2 1 2", "output": "4 4 4 4 4;4 0 4 2 4;4 4 4 4 4"}, {"input": "2 3 1 1 3;2 4 3 1 0;3 1 1 0 0", "output": "4 4 4 4 4;4 4 3 1 4;4 4 4 4 4"}], "query_input": "0 2 1 3 1;1 1 4 1 0;3 4 4 1 0", "query_output": "4 4 4 4 4;4 1 4 1 4;4 4 4 4 4"} |
| {"task_id": "icgr-00690", "rule": "shift_rows+add_mod", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "1 2 3;2 0 0;2 3 3", "output": "0 2 3;1 3 1;0 3 0"}, {"input": "1 1 1;0 1 3;0 0 1", "output": "2 2 2;0 1 2;2 1 1"}, {"input": "0 0 1;2 0 0;3 3 3", "output": "2 1 1;1 3 1;0 0 0"}], "query_input": "1 3 3;2 3 2;0 1 0", "query_output": "0 2 0;3 3 0;1 1 2"} |
| {"task_id": "icgr-00310", "rule": "shift_rows+border", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "2 3 1;3 0 3;2 3 1;0 1 0;0 1 0", "output": "3 3 3;3 3 3;3 1 3;3 0 3;3 3 3"}, {"input": "2 2 1;0 2 2;1 0 1;3 1 1;1 2 3", "output": "3 3 3;3 2 3;3 1 3;3 1 3;3 3 3"}], "query_input": "1 0 3;2 0 2;0 0 0;3 3 1;1 3 1", "query_output": "3 3 3;3 2 3;3 0 3;3 1 3;3 3 3"} |
| {"task_id": "icgr-00987", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "2 1 2;2 0 3;0 3 1;1 1 2;3 1 2", "output": "1 2 2;0 3 2;3 1 0;1 2 1;1 2 3"}, {"input": "1 2 1;2 1 0;2 3 0;3 3 0;0 0 0", "output": "2 1 1;1 0 2;3 0 2;3 0 3;0 0 0"}, {"input": "2 2 3;0 2 3;3 0 0;0 1 0;0 3 3", "output": "2 3 2;2 3 0;0 0 3;1 0 0;3 3 0"}], "query_input": "2 2 3;0 1 3;2 1 0;2 2 1;0 2 1", "query_output": "2 3 2;1 3 0;1 0 2;2 1 2;2 1 0"} |
| {"task_id": "icgr-00163", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "3 2 3 5;1 0 4 2;3 2 4 5;5 0 3 4;4 0 0 0", "output": "3 1 3 5 4;2 0 2 0 0;3 4 4 3 0;5 2 5 4 0"}, {"input": "0 0 2 3;3 2 4 5;1 4 5 1;1 1 2 1;3 4 5 1", "output": "0 3 1 1 3;0 2 4 1 4;2 4 5 2 5;3 5 1 1 1"}, {"input": "3 0 3 2;1 5 0 5;2 5 0 1;1 3 4 4;3 1 3 3", "output": "3 1 2 1 3;0 5 5 3 1;3 0 0 4 3;2 5 1 4 3"}, {"input": "3 5 5 0;4 2 2 4;4 2 5 5;3 3 3 4;1 0 4 5", "output": "3 4 4 3 1;5 2 2 3 0;5 2 5 3 4;0 4 5 4 5"}], "query_input": "2 2 3 3;5 2 4 1;5 2 3 2;0 4 3 5;5 0 0 2", "query_output": "2 5 5 0 5;2 2 2 4 0;3 4 3 3 0;3 1 2 5 2"} |
| {"task_id": "icgr-00931", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "3 1 2;1 3 5;0 1 2", "output": "3 0 2;0 3 5;1 0 2"}, {"input": "4 5 3;1 2 3;3 2 1", "output": "4 5 3;0 2 3;3 2 0"}, {"input": "0 5 4;3 5 4;0 1 5", "output": "1 5 4;3 5 4;1 0 5"}], "query_input": "2 2 0;3 3 1;2 2 0", "query_output": "2 2 1;3 3 0;2 2 1"} |
| {"task_id": "icgr-00052", "rule": "add_mod+flip_h", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "0 3 4 2 0;1 2 4 1 2;2 0 1 1 3;0 1 1 3 3", "output": "1 3 0 4 1;3 2 0 3 2;4 2 2 1 3;4 4 2 2 1"}, {"input": "2 1 1 0 0;1 1 1 4 1;0 3 1 3 1;0 0 4 2 0", "output": "1 1 2 2 3;2 0 2 2 2;2 4 2 4 1;1 3 0 1 1"}, {"input": "1 2 3 3 0;0 2 4 3 1;1 4 2 2 2;2 4 3 1 0", "output": "1 4 4 3 2;2 4 0 3 1;3 3 3 0 2;1 2 4 0 3"}], "query_input": "4 4 4 4 4;2 1 1 0 4;4 1 2 3 0;0 0 1 4 1", "query_output": "0 0 0 0 0;0 1 2 2 3;1 4 3 2 0;2 0 2 1 1"} |
| {"task_id": "icgr-00938", "rule": "flip_h+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "1 2 0;3 2 3;0 1 3;0 1 2;1 1 0", "output": "2 0 1;3 0 3;3 1 2;0 1 2;2 1 1"}, {"input": "0 3 3;2 1 1;1 1 0;1 1 1;0 0 1", "output": "3 3 2;1 1 0;2 1 1;1 1 1;1 2 2"}, {"input": "1 1 2;3 2 2;0 3 0;1 0 3;3 2 1", "output": "0 1 1;0 0 3;2 3 2;3 2 1;1 0 3"}, {"input": "3 2 2;0 1 2;2 2 2;1 3 3;1 1 3", "output": "0 0 3;0 1 2;0 0 0;3 3 1;3 1 1"}], "query_input": "1 0 0;0 0 1;0 1 0;2 0 1;2 0 1", "query_output": "2 2 1;1 2 2;2 1 2;1 2 0;1 2 0"} |
| {"task_id": "icgr-00946", "rule": "color_swap+flip_v", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "3 0 1 1;4 3 4 2;1 1 2 4;1 4 4 2;3 4 0 0", "output": "3 1 0 0;4 1 1 2;4 4 2 1;1 3 1 2;3 0 4 4"}, {"input": "1 2 1 1;4 2 1 4;2 0 3 2;2 1 4 3;3 3 2 4", "output": "3 3 2 1;2 4 1 3;2 0 3 2;1 2 4 1;4 2 4 4"}, {"input": "2 4 0 1;0 4 1 1;0 1 3 3;4 0 3 3;1 2 2 0", "output": "4 2 2 0;1 0 3 3;0 4 3 3;0 1 4 4;2 1 0 4"}, {"input": "3 2 2 0;0 4 2 0;4 3 0 4;0 3 4 2;3 1 2 2", "output": "3 4 2 2;0 3 1 2;1 3 0 1;0 1 2 0;3 2 2 0"}], "query_input": "3 1 1 4;0 0 1 1;3 4 3 0;3 2 3 2;2 1 3 1", "query_output": "2 4 3 4;3 2 3 2;3 1 3 0;0 0 4 4;3 4 4 1"} |
| {"task_id": "icgr-00566", "rule": "flip_v+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "2 2 3 0 3;1 0 2 1 2;3 1 1 0 1;2 1 1 2 0;2 0 0 0 0", "output": "2 3 3 3 3;2 1 1 2 3;0 1 1 3 1;1 3 2 1 2;2 2 0 3 0"}, {"input": "1 0 3 0 1;1 0 1 2 0;0 3 0 1 1;2 1 2 2 3;0 1 2 2 1", "output": "3 1 2 2 1;2 1 2 2 0;3 0 3 1 1;1 3 1 2 3;1 3 0 3 1"}], "query_input": "1 1 1 0 0;0 2 0 2 3;0 2 0 0 1;2 0 3 3 3;1 3 2 3 1", "query_output": "1 0 2 0 1;2 3 0 0 0;3 2 3 3 1;3 2 3 2 0;1 1 1 3 3"} |
| {"task_id": "icgr-00109", "rule": "add_mod+flip_h", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "2 4 5 3;4 1 5 4;5 4 2 2;4 1 0 1;2 0 0 0", "output": "1 3 2 0;2 3 5 2;0 0 2 3;5 4 5 2;4 4 4 0"}, {"input": "5 3 4 3;4 4 2 5;3 3 4 3;0 5 3 1;3 5 3 4", "output": "1 2 1 3;3 0 2 2;1 2 1 1;5 1 3 4;2 1 3 1"}], "query_input": "3 2 5 4;2 2 1 3;4 0 1 0;2 0 2 1;1 5 4 0", "query_output": "2 3 0 1;1 5 0 0;4 5 4 2;5 0 4 0;4 2 3 5"} |
| {"task_id": "icgr-00656", "rule": "shift_rows+flip_v", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "1 2 2;0 4 4;2 3 3;1 0 1", "output": "1 1 0;3 2 3;4 0 4;2 1 2"}, {"input": "1 1 0;4 1 4;3 0 0;0 2 3", "output": "3 0 2;0 3 0;4 4 1;0 1 1"}], "query_input": "2 1 0;2 4 4;2 4 2;3 4 4", "query_output": "4 3 4;2 2 4;4 2 4;0 2 1"} |
| {"task_id": "icgr-00880", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "4 1 5 1 1;5 2 1 0 0;5 2 2 5 4;0 1 0 1 5;0 3 1 2 0", "output": "4 5 5 0 0;1 2 2 1 3;5 1 2 0 1;1 0 5 1 2;1 0 4 5 0"}, {"input": "4 4 2 5 5;4 5 3 5 0;2 5 4 0 3;0 4 2 4 4;2 4 3 3 0", "output": "4 4 2 0 2;4 5 5 4 4;2 3 4 2 3;5 5 0 4 3;5 0 3 4 0"}, {"input": "0 0 2 1 1;1 2 4 2 4;0 4 1 0 4;5 2 5 3 0;3 3 5 1 5", "output": "0 1 0 5 3;0 2 4 2 3;2 4 1 5 5;1 2 0 3 1;1 4 4 0 5"}, {"input": "4 5 3 1 4;3 1 2 3 3;0 3 0 1 2;4 5 1 3 4;1 0 4 1 3", "output": "4 3 0 4 1;5 1 3 5 0;3 2 0 1 4;1 3 1 3 1;4 3 2 4 3"}], "query_input": "5 2 5 4 5;0 5 4 2 3;3 3 2 1 3;2 3 0 3 4;1 4 0 3 1", "query_output": "5 0 3 2 1;2 5 3 3 4;5 4 2 0 0;4 2 1 3 3;5 3 3 4 1"} |
| {"task_id": "icgr-00681", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "3 3 2;0 3 2;1 3 1;3 3 3", "output": "2 3 3;2 3 0;1 3 1;3 3 3"}, {"input": "2 1 3;2 2 1;3 1 0;2 1 3", "output": "3 1 2;1 2 2;0 1 3;3 1 2"}], "query_input": "0 2 1;1 0 3;0 2 1;1 3 3", "query_output": "1 2 0;3 0 1;1 2 0;3 3 1"} |
| {"task_id": "icgr-00561", "rule": "add_mod+shift_rows", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "1 2 3;4 1 1;1 1 4;2 1 3", "output": "1 2 0;0 0 3;0 3 0;0 2 1"}, {"input": "0 0 3;4 2 1;4 2 2;4 1 1", "output": "4 2 4;1 0 3;1 1 3;0 0 3"}, {"input": "2 0 4;4 1 4;2 4 4;4 1 2", "output": "4 3 1;0 3 3;3 3 1;0 1 3"}], "query_input": "3 3 3;0 0 2;0 0 1;0 4 3", "query_output": "2 2 2;4 1 4;4 0 4;3 2 4"} |
| {"task_id": "icgr-00707", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "5 4 4 4;5 1 2 0;5 3 3 1;1 5 4 3;2 0 4 5", "output": "2 1 1 1;2 4 5 3;2 0 0 4;4 2 1 0;5 3 1 2"}, {"input": "3 3 2 4;3 3 5 1;4 3 0 4;5 0 1 3;1 5 0 1", "output": "0 0 5 1;0 0 2 4;1 0 3 1;2 3 4 0;4 2 3 4"}, {"input": "2 3 5 0;3 1 0 2;3 1 1 1;0 4 5 1;4 4 2 4", "output": "5 0 2 3;0 4 3 5;0 4 4 4;3 1 2 4;1 1 5 1"}], "query_input": "4 0 3 3;2 1 0 1;5 2 2 0;1 5 2 3;1 1 1 3", "query_output": "1 3 0 0;5 4 3 4;2 5 5 3;4 2 5 0;4 4 4 0"} |
| {"task_id": "icgr-00021", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "1 3 2 2 1;0 1 2 1 3;3 2 3 0 2", "output": "1 1 1 1 1;1 1 2 1 1;1 1 1 1 1"}, {"input": "1 1 1 1 1;1 3 0 3 0;2 3 0 0 0", "output": "1 1 1 1 1;1 3 0 3 1;1 1 1 1 1"}, {"input": "2 3 2 2 3;1 1 3 3 3;0 0 3 1 1", "output": "1 1 1 1 1;1 1 3 3 1;1 1 1 1 1"}, {"input": "0 0 0 3 1;3 1 2 3 2;3 3 3 0 3", "output": "1 1 1 1 1;1 1 2 3 1;1 1 1 1 1"}], "query_input": "1 2 0 0 2;0 2 1 0 3;1 3 2 2 3", "query_output": "1 1 1 1 1;1 2 1 0 1;1 1 1 1 1"} |
| {"task_id": "icgr-00321", "rule": "border+flip_h", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "1 3 0 4;4 3 1 3;2 2 0 0;1 0 0 4;4 4 4 4", "output": "1 1 1 1;1 1 3 1;1 0 2 1;1 0 0 1;1 1 1 1"}, {"input": "3 0 1 2;1 4 4 4;4 3 1 4;1 2 0 2;4 1 4 0", "output": "1 1 1 1;1 4 4 1;1 1 3 1;1 0 2 1;1 1 1 1"}, {"input": "0 4 3 1;0 4 4 3;3 1 1 1;0 4 1 0;4 3 3 2", "output": "1 1 1 1;1 4 4 1;1 1 1 1;1 1 4 1;1 1 1 1"}, {"input": "4 0 1 2;1 2 3 2;1 1 1 4;3 1 4 2;4 3 0 4", "output": "1 1 1 1;1 3 2 1;1 1 1 1;1 4 1 1;1 1 1 1"}], "query_input": "3 1 0 1;1 1 1 1;3 0 4 2;0 0 2 1;4 3 2 1", "query_output": "1 1 1 1;1 1 1 1;1 4 0 1;1 2 0 1;1 1 1 1"} |
| {"task_id": "icgr-00277", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "4 4 5 5;2 0 0 1;1 3 1 5;0 0 2 2;5 3 0 0", "output": "3 3 4 4;1 5 5 0;0 2 0 4;5 5 1 1;4 2 5 5"}, {"input": "2 1 0 1;1 5 1 3;3 2 0 0;0 2 1 2;2 3 4 5", "output": "1 0 5 0;0 4 0 2;2 1 5 5;5 1 0 1;1 2 3 4"}, {"input": "5 3 3 0;5 1 1 4;1 3 4 5;4 3 4 3;5 1 3 3", "output": "4 2 2 5;4 0 0 3;0 2 3 4;3 2 3 2;4 0 2 2"}, {"input": "1 0 3 4;5 5 4 0;0 1 0 4;2 3 2 4;2 3 1 4", "output": "0 5 2 3;4 4 3 5;5 0 5 3;1 2 1 3;1 2 0 3"}], "query_input": "5 2 3 2;4 2 2 0;4 5 5 5;2 4 5 0;4 1 1 1", "query_output": "4 1 2 1;3 1 1 5;3 4 4 4;1 3 4 5;3 0 0 0"} |
| {"task_id": "icgr-00587", "rule": "border+flip_v", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "0 2 1;2 3 0;3 3 1;2 1 2;0 3 0", "output": "2 2 2;2 1 2;2 3 2;2 3 2;2 2 2"}, {"input": "3 3 2;2 3 3;1 0 2;2 1 3;1 0 2", "output": "2 2 2;2 1 2;2 0 2;2 3 2;2 2 2"}, {"input": "1 3 3;1 0 0;1 3 2;3 0 2;2 3 1", "output": "2 2 2;2 0 2;2 3 2;2 0 2;2 2 2"}, {"input": "1 1 0;1 0 1;1 2 2;2 0 2;0 2 2", "output": "2 2 2;2 0 2;2 2 2;2 0 2;2 2 2"}], "query_input": "0 0 0;1 1 3;3 0 0;1 0 3;1 0 0", "query_output": "2 2 2;2 0 2;2 0 2;2 1 2;2 2 2"} |
| {"task_id": "icgr-00935", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 4, "grid_w": 6, "num_support": 3, "support": [{"input": "0 3 0 3 1 3;2 3 0 3 3 0;3 2 2 1 2 0;1 2 3 2 1 2", "output": "3 3 3;3 3 2"}, {"input": "0 1 3 1 2 1;0 0 2 0 1 1;2 3 2 0 1 2;3 1 2 1 0 0", "output": "1 3 2;3 2 2"}, {"input": "0 1 0 0 3 0;3 3 0 2 0 3;3 2 0 3 2 3;3 3 0 3 2 0", "output": "3 2 3;3 3 3"}], "query_input": "1 0 2 1 3 2;0 0 2 2 2 0;2 3 0 1 0 0;1 1 3 1 3 0", "query_output": "1 2 3;3 3 3"} |
| {"task_id": "icgr-00116", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "0 1 2;1 1 0;2 2 1;4 2 1;4 1 1", "output": "0 4 2;4 4 0;2 2 4;1 2 4;1 4 4"}, {"input": "1 1 0;3 3 3;4 1 3;4 3 2;3 3 4", "output": "4 4 0;3 3 3;1 4 3;1 3 2;3 3 1"}, {"input": "2 4 1;2 3 4;2 1 4;0 0 4;2 2 1", "output": "2 1 4;2 3 1;2 4 1;0 0 1;2 2 4"}], "query_input": "1 3 0;1 0 2;4 3 4;4 2 2;2 1 1", "query_output": "4 3 0;4 0 2;1 3 1;1 2 2;2 4 4"} |
| {"task_id": "icgr-00614", "rule": "shift_rows+flip_h", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "2 4 5;1 1 4;3 5 1;4 4 3;1 5 2", "output": "4 2 5;1 1 4;5 3 1;4 4 3;5 1 2"}, {"input": "0 2 3;5 2 1;4 4 0;3 0 2;3 4 5", "output": "2 0 3;2 5 1;4 4 0;0 3 2;4 3 5"}, {"input": "4 0 1;3 4 4;1 3 0;0 4 2;2 5 4", "output": "0 4 1;4 3 4;3 1 0;4 0 2;5 2 4"}], "query_input": "4 4 2;5 0 1;0 0 3;0 2 0;1 1 1", "query_output": "4 4 2;0 5 1;0 0 3;2 0 0;1 1 1"} |
| {"task_id": "icgr-00507", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "5 4 5 2;3 5 1 3;1 0 4 5;5 0 5 0", "output": "3 2 3 0;1 3 5 1;5 4 2 3;3 4 3 4"}, {"input": "1 3 4 0;0 0 0 4;2 0 0 1;0 2 0 2", "output": "5 1 2 4;4 4 4 2;0 4 4 5;4 0 4 0"}], "query_input": "2 1 2 2;5 5 1 5;0 3 0 5;1 2 0 0", "query_output": "0 5 0 0;3 3 5 3;4 1 4 3;5 0 4 4"} |
| {"task_id": "icgr-00613", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "1 1 2 3;3 5 0 4;4 1 3 1;5 2 0 5", "output": "5 4;5 5"}, {"input": "2 3 1 3;3 0 5 4;4 4 2 4;2 0 2 1", "output": "3 5;4 4"}, {"input": "5 5 4 3;0 3 1 5;4 0 5 4;3 4 2 4", "output": "5 5;4 5"}, {"input": "4 2 5 4;1 3 2 1;3 1 4 4;3 0 5 5", "output": "4 5;3 5"}], "query_input": "3 2 1 1;3 3 4 5;1 0 0 3;0 2 1 5", "query_output": "3 5;2 5"} |
| {"task_id": "icgr-00958", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "3 2 0 3;3 3 1 3;1 1 2 3;1 2 0 1", "output": "1 1 3 3;2 1 3 2;0 2 1 0;1 3 3 3"}, {"input": "1 3 1 1;1 1 0 1;2 2 3 1;1 3 1 2", "output": "1 2 1 1;3 2 1 3;1 3 0 1;2 1 1 1"}], "query_input": "1 2 0 2;0 2 3 2;0 3 3 1;3 0 1 0", "query_output": "3 0 0 1;0 3 2 2;1 3 3 0;0 1 2 2"} |
| {"task_id": "icgr-00063", "rule": "flip_v+shift_rows", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "3 2 1 0;3 3 1 2;3 2 3 3;1 2 0 3", "output": "0 3 1 2;3 3 3 2;1 2 3 3;1 0 3 2"}, {"input": "2 1 0 1;0 3 3 3;1 2 3 3;1 3 3 3", "output": "3 3 1 3;3 3 1 2;3 3 0 3;0 1 2 1"}], "query_input": "0 2 0 2;3 0 0 3;3 2 1 0;3 3 1 0", "query_output": "1 0 3 3;1 0 3 2;0 3 3 0;0 2 0 2"} |
| {"task_id": "icgr-00119", "rule": "flip_h+shift_rows", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "1 5 5 0;4 0 3 2;3 3 2 4;3 1 0 2;4 3 4 5", "output": "5 1 0 5;0 4 2 3;3 3 4 2;1 3 2 0;3 4 5 4"}, {"input": "1 4 0 0;2 3 0 5;1 2 5 3;4 2 2 4;4 0 3 1", "output": "4 1 0 0;3 2 5 0;2 1 3 5;2 4 4 2;0 4 1 3"}, {"input": "4 1 0 5;2 4 2 1;0 3 3 4;5 1 5 2;4 1 5 0", "output": "1 4 5 0;4 2 1 2;3 0 4 3;1 5 2 5;1 4 0 5"}], "query_input": "5 5 1 2;1 1 0 3;4 0 2 4;3 3 3 4;1 4 1 5", "query_output": "5 5 2 1;1 1 3 0;0 4 4 2;3 3 4 3;4 1 5 1"} |
| {"task_id": "icgr-00530", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "1 2 3;2 1 1;1 1 3;2 2 3", "output": "2 1 2 1;2 1 1 2;3 3 1 3"}, {"input": "0 1 3;3 1 3;1 0 2;3 0 2", "output": "3 1 3 0;0 0 1 1;2 2 3 3"}, {"input": "0 3 2;1 1 2;3 0 2;0 0 3", "output": "0 3 1 0;0 0 1 3;3 2 2 2"}, {"input": "1 0 0;2 2 2;1 2 3;3 1 0", "output": "3 1 2 1;1 2 2 0;0 3 2 0"}], "query_input": "0 0 0;2 1 3;3 0 1;1 2 3", "query_output": "1 3 2 0;2 0 1 0;3 1 3 0"} |
| {"task_id": "icgr-00246", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "2 2 3;3 0 2;3 1 0", "output": "1 1 2;2 3 1;2 0 3"}, {"input": "2 2 2;0 3 2;0 0 2", "output": "1 1 1;3 2 1;3 3 1"}], "query_input": "0 3 1;3 0 2;3 2 0", "query_output": "3 2 0;2 3 1;2 1 3"} |
| {"task_id": "icgr-00655", "rule": "add_mod+border", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "0 3 3;4 1 0;0 0 3", "output": "3 3 3;3 4 3;3 3 3"}, {"input": "3 4 0;0 3 1;0 0 0", "output": "3 3 3;3 1 3;3 3 3"}], "query_input": "2 2 3;2 4 4;0 2 1", "query_output": "3 3 3;3 2 3;3 3 3"} |
| {"task_id": "icgr-00521", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "0 2 0 3 1;3 3 0 0 1;1 3 0 3 1", "output": "1 3 1 0 2;0 0 1 1 2;2 0 1 0 2"}, {"input": "3 0 3 0 3;0 2 2 2 0;0 3 1 0 2", "output": "0 1 0 1 0;1 3 3 3 1;1 0 2 1 3"}, {"input": "1 2 2 0 3;0 2 3 2 3;0 1 2 2 3", "output": "2 3 3 1 0;1 3 0 3 0;1 2 3 3 0"}], "query_input": "1 3 1 2 3;0 0 0 1 1;1 1 2 3 0", "query_output": "2 0 2 3 0;1 1 1 2 2;2 2 3 0 1"} |
| {"task_id": "icgr-00749", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "1 3 3;1 4 4;3 1 3;4 0 4", "output": "1 1 3 4;3 4 1 0;3 4 3 4"}, {"input": "3 0 1;2 0 1;0 2 3;2 2 2", "output": "3 2 0 2;0 0 2 2;1 1 3 2"}, {"input": "0 0 1;3 1 0;0 3 3;4 3 1", "output": "0 3 0 4;0 1 3 3;1 0 3 1"}, {"input": "1 2 2;3 1 2;4 0 3;4 3 2", "output": "1 3 4 4;2 1 0 3;2 2 3 2"}], "query_input": "4 4 4;0 0 4;2 4 1;4 3 4", "query_output": "4 0 2 4;4 0 4 3;4 4 1 4"} |
| {"task_id": "icgr-00034", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "3 4 1 4;3 5 5 1;1 4 4 1;3 0 2 5", "output": "3 5 1 5;3 4 4 1;1 5 5 1;3 0 2 4"}, {"input": "1 5 2 1;1 1 3 4;3 4 2 2;4 1 3 3", "output": "1 4 2 1;1 1 3 5;3 5 2 2;5 1 3 3"}, {"input": "5 0 0 1;4 4 2 4;5 1 1 1;0 3 2 5", "output": "4 0 0 1;5 5 2 5;4 1 1 1;0 3 2 4"}, {"input": "1 5 1 0;3 4 0 2;5 4 0 4;4 0 0 2", "output": "1 4 1 0;3 5 0 2;4 5 0 5;5 0 0 2"}], "query_input": "4 4 3 3;3 2 0 0;4 1 3 1;5 0 2 3", "query_output": "5 5 3 3;3 2 0 0;5 1 3 1;4 0 2 3"} |
| {"task_id": "icgr-00224", "rule": "border+color_swap", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "1 3 2 4 4;3 1 4 1 1;2 2 3 5 3;2 4 1 4 1", "output": "5 5 5 5 5;5 5 4 5 5;5 2 3 1 5;5 5 5 5 5"}, {"input": "4 2 3 1 1;4 1 1 1 0;5 0 2 5 2;2 1 4 4 1", "output": "5 5 5 5 5;5 5 5 5 5;5 0 2 1 5;5 5 5 5 5"}, {"input": "0 4 2 0 3;4 4 2 4 3;4 4 1 0 1;0 1 0 4 5", "output": "5 5 5 5 5;5 4 2 4 5;5 4 5 0 5;5 5 5 5 5"}], "query_input": "0 0 3 0 1;4 0 4 2 2;2 1 1 2 5;5 2 4 1 2", "query_output": "5 5 5 5 5;5 0 4 2 5;5 5 5 2 5;5 5 5 5 5"} |
| {"task_id": "icgr-00606", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 4, "grid_w": 6, "num_support": 2, "support": [{"input": "3 4 4 4 2 3;2 2 0 2 2 1;1 0 4 3 1 2;1 5 5 3 2 3", "output": "4 4 3;5 5 3"}, {"input": "5 5 5 3 1 0;1 3 4 3 5 3;1 1 3 1 1 0;2 0 4 4 5 0", "output": "5 5 5;2 4 5"}], "query_input": "5 2 0 5 4 0;2 0 2 1 1 3;5 1 4 0 2 5;4 0 4 0 1 2", "query_output": "5 5 4;5 4 5"} |
| {"task_id": "icgr-00536", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "1 5 1;2 2 4;5 2 4;4 1 2", "output": "1 5 1;4 2 2;4 2 5;2 1 4"}, {"input": "5 5 2;2 0 0;2 2 4;5 4 0", "output": "2 5 5;0 0 2;4 2 2;0 4 5"}, {"input": "3 1 3;2 4 1;2 5 0;5 0 0", "output": "3 1 3;1 4 2;0 5 2;0 0 5"}], "query_input": "4 0 1;4 5 3;4 5 5;2 5 4", "query_output": "1 0 4;3 5 4;5 5 4;4 5 2"} |
| {"task_id": "icgr-00022", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "0 0 3 3 1;0 2 0 0 1;1 0 0 0 2;0 3 0 1 0", "output": "2 2 3 3 1;2 0 2 2 1;1 2 2 2 0;2 3 2 1 2"}, {"input": "0 2 2 1 3;1 2 2 3 0;3 3 2 3 1;0 1 2 0 2", "output": "2 0 0 1 3;1 0 0 3 2;3 3 0 3 1;2 1 0 2 0"}, {"input": "0 1 3 3 3;1 3 3 1 1;1 0 3 1 1;0 3 1 2 2", "output": "2 1 3 3 3;1 3 3 1 1;1 2 3 1 1;2 3 1 0 0"}], "query_input": "2 0 0 0 0;2 1 2 2 3;2 0 1 2 0;1 1 0 3 0", "query_output": "0 2 2 2 2;0 1 0 0 3;0 2 1 0 2;1 1 2 3 2"} |
| {"task_id": "icgr-00250", "rule": "shift_rows+flip_v", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "2 1 4 1;0 1 0 2;2 4 4 2", "output": "4 2 2 4;0 2 0 1;4 1 2 1"}, {"input": "1 0 2 0;0 0 3 4;1 0 1 4", "output": "1 4 1 0;3 4 0 0;2 0 1 0"}, {"input": "3 3 3 3;1 4 1 1;2 3 2 2", "output": "2 2 2 3;1 1 1 4;3 3 3 3"}], "query_input": "4 4 0 1;3 2 0 2;0 4 0 4", "query_output": "0 4 0 4;0 2 3 2;0 1 4 4"} |
| {"task_id": "icgr-00014", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "3 3 3 0 0;0 0 1 2 2;2 0 0 0 1;1 1 3 2 2;3 2 3 0 2", "output": "2 2 2 2 2;2 0 1 2 2;2 0 0 0 2;2 1 3 2 2;2 2 2 2 2"}, {"input": "1 1 1 2 3;1 2 1 0 3;2 3 3 2 0;0 0 3 3 3;3 2 1 0 1", "output": "2 2 2 2 2;2 2 1 0 2;2 3 3 2 2;2 0 3 3 2;2 2 2 2 2"}, {"input": "1 1 1 3 2;3 2 0 3 2;0 2 3 2 3;3 2 1 0 0;1 3 2 0 1", "output": "2 2 2 2 2;2 2 0 3 2;2 2 3 2 2;2 2 1 0 2;2 2 2 2 2"}, {"input": "3 3 1 1 2;3 3 3 1 0;1 1 3 0 0;2 0 1 3 2;2 1 3 2 1", "output": "2 2 2 2 2;2 3 3 1 2;2 1 3 0 2;2 0 1 3 2;2 2 2 2 2"}], "query_input": "0 2 0 3 2;3 1 2 0 3;1 0 2 1 2;1 2 0 0 2;0 3 1 0 2", "query_output": "2 2 2 2 2;2 1 2 0 2;2 0 2 1 2;2 2 0 0 2;2 2 2 2 2"} |
| {"task_id": "icgr-00615", "rule": "add_mod+color_swap", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "2 1 2 0 0;2 2 2 3 0;3 2 2 2 1", "output": "2 3 2 1 1;2 2 2 0 1;0 2 2 2 3"}, {"input": "1 3 0 0 2;1 3 2 1 1;2 0 2 0 1", "output": "3 0 1 1 2;3 0 2 3 3;2 1 2 1 3"}, {"input": "3 2 3 3 3;1 1 0 0 1;2 3 2 3 3", "output": "0 2 0 0 0;3 3 1 1 3;2 0 2 0 0"}], "query_input": "3 0 3 3 2;2 0 3 2 3;1 0 3 0 0", "query_output": "0 1 0 0 2;2 1 0 2 0;3 1 0 1 1"} |
| {"task_id": "icgr-00108", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 5, "grid_h": 6, "grid_w": 6, "num_support": 4, "support": [{"input": "0 3 3 1 1 0;2 4 3 0 1 0;1 2 3 4 2 3;3 3 3 0 2 2;1 4 3 0 1 0;4 4 0 1 3 3", "output": "4 3 1;3 4 3;4 3 3"}, {"input": "2 0 4 4 1 4;3 4 3 4 3 1;3 4 3 2 1 1;1 2 1 1 2 0;3 4 3 2 3 3;0 3 3 1 3 2", "output": "4 4 4;4 3 2;4 3 3"}, {"input": "4 4 0 2 3 0;4 3 2 2 4 1;0 4 3 4 0 4;0 1 1 3 1 2;0 2 1 2 0 4;2 3 2 0 3 3", "output": "4 2 4;4 4 4;3 2 4"}, {"input": "3 2 0 4 3 1;2 4 3 0 1 4;4 2 0 0 0 1;0 0 3 4 2 0;2 3 1 3 2 2;3 3 3 1 4 3", "output": "4 4 4;4 4 2;3 3 4"}], "query_input": "2 1 4 0 0 3;1 3 1 4 4 3;0 1 2 1 4 3;3 4 1 4 0 0;4 2 4 3 3 1;4 3 4 2 3 0", "query_output": "3 4 4;4 4 4;4 4 3"} |
| {"task_id": "icgr-00611", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "3 0 4 4;1 3 2 2;4 4 4 3;3 1 2 4;4 0 3 4", "output": "4 4 0 3;2 2 3 1;3 4 4 4;4 2 1 3;4 3 0 4"}, {"input": "4 1 3 4;4 1 1 3;4 0 3 2;1 2 2 0;0 0 0 1", "output": "4 3 1 4;3 1 1 4;2 3 0 4;0 2 2 1;1 0 0 0"}, {"input": "2 2 3 4;1 1 4 2;0 0 4 2;0 2 1 1;4 0 0 3", "output": "4 3 2 2;2 4 1 1;2 4 0 0;1 1 2 0;3 0 0 4"}, {"input": "4 1 4 3;2 4 0 0;2 3 3 1;0 3 1 2;0 3 3 3", "output": "3 4 1 4;0 0 4 2;1 3 3 2;2 1 3 0;3 3 3 0"}], "query_input": "1 2 1 2;3 1 4 2;2 4 0 0;3 3 4 2;3 3 1 2", "query_output": "2 1 2 1;2 4 1 3;0 0 4 2;2 4 3 3;2 1 3 3"} |
| {"task_id": "icgr-00453", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "3 1 3 4 2;3 0 2 3 3;0 0 0 2 3;1 3 5 1 5;1 1 4 3 3", "output": "3 3 0 1 1;1 0 0 3 1;3 2 0 5 4;4 3 2 1 3;2 3 3 5 3"}, {"input": "2 1 3 2 4;4 5 4 1 0;3 1 1 1 1;2 3 1 2 5;3 4 3 5 5", "output": "2 4 3 2 3;1 5 1 3 4;3 4 1 1 3;2 1 1 2 5;4 0 1 5 5"}, {"input": "1 1 2 4 3;1 3 2 0 4;1 2 4 2 0;3 5 5 2 5;0 2 1 3 0", "output": "1 1 1 3 0;1 3 2 5 2;2 2 4 5 1;4 0 2 2 3;3 4 0 5 0"}], "query_input": "5 4 1 4 0;3 0 5 5 3;1 2 5 2 5;3 2 1 2 5;2 1 2 2 1", "query_output": "5 3 1 3 2;4 0 2 2 1;1 5 5 1 2;4 5 2 2 2;0 3 5 5 1"} |
| {"task_id": "icgr-00255", "rule": "color_swap+shift_rows", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "0 1 0 3 1;5 1 3 4 0;0 5 0 3 4;2 0 3 5 2", "output": "0 1 3 1 3;4 3 5 1 0;0 4 3 5 3;5 2 2 3 0"}, {"input": "0 5 3 3 4;1 5 0 5 1;3 2 1 1 2;2 1 1 0 4", "output": "0 4 3 5 0;5 1 1 5 3;1 2 0 2 1;3 4 2 1 1"}, {"input": "2 0 2 5 4;4 1 3 4 5;0 2 1 3 1;0 5 3 3 5", "output": "5 4 2 3 2;4 5 4 1 0;0 1 3 2 1;0 5 3 5 0"}], "query_input": "1 4 4 1 1;2 3 4 2 2;3 0 4 0 1;5 0 5 3 3", "query_output": "1 1 1 4 4;2 2 2 0 4;3 1 0 3 4;0 0 5 3 5"} |
| {"task_id": "icgr-00580", "rule": "color_swap+shift_rows", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "2 3 5;3 5 4;4 4 5", "output": "5 4 3;2 3 5;5 2 2"}, {"input": "3 1 0;4 1 5;4 2 1", "output": "0 3 1;5 2 1;1 2 4"}, {"input": "4 3 3;0 2 3;5 0 1", "output": "3 2 3;3 0 4;1 5 0"}], "query_input": "5 2 0;0 0 0;0 2 3", "query_output": "0 5 4;0 0 0;3 0 4"} |
| {"task_id": "icgr-00810", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 5, "grid_h": 6, "grid_w": 6, "num_support": 2, "support": [{"input": "0 0 4 2 2 2;2 0 4 3 4 4;4 4 4 2 1 3;4 2 0 4 1 1;0 2 2 1 1 3;1 2 2 2 3 3", "output": "2 4 4;4 4 3;2 2 3"}, {"input": "0 0 2 3 4 1;2 4 3 4 4 1;0 3 3 0 3 1;2 0 2 4 0 2;3 2 4 0 4 0;0 2 4 3 3 0", "output": "4 4 4;3 4 3;3 4 4"}], "query_input": "4 3 4 3 0 1;4 0 2 4 3 4;1 0 4 3 1 0;2 4 1 2 2 3;2 1 2 4 2 0;4 3 3 3 3 1", "query_output": "4 4 4;4 4 3;4 4 3"} |
| {"task_id": "icgr-00860", "rule": "shift_rows+border", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "0 1 0 3;0 2 3 1;1 3 0 1", "output": "5 5 5 5;5 0 2 5;5 5 5 5"}, {"input": "0 5 1 0;3 4 5 2;0 5 5 3", "output": "5 5 5 5;5 3 4 5;5 5 5 5"}, {"input": "1 3 0 1;2 0 1 4;2 2 4 0", "output": "5 5 5 5;5 2 0 5;5 5 5 5"}], "query_input": "3 5 2 4;3 1 5 0;0 4 0 1", "query_output": "5 5 5 5;5 3 1 5;5 5 5 5"} |
| {"task_id": "icgr-00540", "rule": "shift_rows+flip_v", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "1 3 2 0 3;0 0 4 2 4;3 1 1 1 2;5 2 4 5 1;2 1 3 2 4", "output": "2 4 2 1 3;5 1 5 2 4;1 2 3 1 1;2 4 0 0 4;0 3 1 3 2"}, {"input": "0 1 1 4 5;1 2 2 1 1;4 1 1 5 5;3 0 1 5 3;4 5 5 5 5", "output": "5 5 4 5 5;5 3 3 0 1;5 5 4 1 1;1 1 1 2 2;4 5 0 1 1"}], "query_input": "4 1 1 2 4;5 5 0 5 2;3 1 0 5 1;3 0 4 5 1;4 5 0 5 1", "query_output": "5 1 4 5 0;5 1 3 0 4;5 1 3 1 0;5 2 5 5 0;2 4 4 1 1"} |
| {"task_id": "icgr-00676", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "3 1 2 1;1 3 0 2;3 0 3 1;0 0 3 1", "output": "2 1 3 1;0 2 1 3;3 1 3 0;3 1 0 0"}, {"input": "2 2 3 0;1 0 0 1;3 1 2 0;1 0 3 1", "output": "3 0 2 2;0 1 1 0;2 0 3 1;3 1 1 0"}, {"input": "1 3 2 2;1 3 3 3;0 2 2 2;0 1 3 3", "output": "2 2 1 3;3 3 1 3;2 2 0 2;3 3 0 1"}, {"input": "3 1 2 3;1 1 3 0;3 1 2 2;2 1 1 0", "output": "2 3 3 1;3 0 1 1;2 2 3 1;1 0 2 1"}], "query_input": "0 3 1 2;2 3 2 1;0 2 0 0;0 3 3 1", "query_output": "1 2 0 3;2 1 2 3;0 0 0 2;3 1 0 3"} |
| {"task_id": "icgr-00298", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "2 3 0 2;0 1 0 1;3 3 2 2;3 2 0 2;2 0 1 3", "output": "2 3 1 2;1 0 1 0;3 3 2 2;3 2 1 2;2 1 0 3"}, {"input": "0 2 2 0;2 0 0 3;2 2 2 3;2 0 3 0;2 0 1 3", "output": "1 2 2 1;2 1 1 3;2 2 2 3;2 1 3 1;2 1 0 3"}, {"input": "1 1 1 3;2 3 0 0;2 1 1 0;0 0 0 0;1 3 1 2", "output": "0 0 0 3;2 3 1 1;2 0 0 1;1 1 1 1;0 3 0 2"}], "query_input": "3 1 3 0;2 2 2 1;2 0 1 0;3 2 2 2;1 0 0 3", "query_output": "3 0 3 1;2 2 2 0;2 1 0 1;3 2 2 2;0 1 1 3"} |
| {"task_id": "icgr-00603", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 6, "grid_w": 6, "num_support": 3, "support": [{"input": "2 0 1 4 0 1;5 2 4 4 1 4;4 5 2 4 3 3;3 4 3 0 3 4;2 1 0 1 2 5;5 0 0 5 5 4", "output": "5 4 4;5 4 4;5 5 5"}, {"input": "0 4 5 2 0 1;5 0 1 4 5 1;5 3 4 1 3 2;5 5 2 3 1 3;5 3 3 1 1 5;1 3 0 1 3 5", "output": "5 5 5;5 4 3;5 3 5"}, {"input": "4 0 0 0 5 5;0 1 1 2 2 2;5 3 4 2 2 4;5 1 4 3 2 2;0 3 5 1 0 0;1 5 4 5 4 0", "output": "4 2 5;5 4 4;5 5 4"}], "query_input": "0 3 0 3 5 1;3 4 2 3 4 3;2 3 1 4 4 3;1 4 4 3 3 1;3 5 2 3 0 0;2 1 2 0 5 3", "query_output": "4 3 5;4 4 4;5 3 5"} |
| {"task_id": "icgr-00524", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "0 0 2 3 3;3 4 1 1 2;1 0 1 2 4;3 3 4 0 0;4 5 0 5 2", "output": "3 3 2 0 0;2 1 1 4 3;4 2 1 0 1;0 0 4 3 3;2 5 0 5 4"}, {"input": "0 5 3 3 2;5 3 1 0 2;5 3 5 5 5;0 0 0 1 1;0 4 3 0 0", "output": "2 3 3 5 0;2 0 1 3 5;5 5 5 3 5;1 1 0 0 0;0 0 3 4 0"}], "query_input": "2 3 2 4 0;2 0 1 4 5;3 1 0 2 1;5 3 3 5 5;4 0 5 4 2", "query_output": "0 4 2 3 2;5 4 1 0 2;1 2 0 1 3;5 5 3 3 5;2 4 5 0 4"} |
| {"task_id": "icgr-00162", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "1 0 1 0 3;2 3 2 3 2;2 1 3 2 1;0 1 2 2 1;3 1 3 3 0", "output": "0 3 1 0 1;3 2 2 3 2;2 1 2 1 3;2 1 0 1 2;3 0 3 1 3"}, {"input": "0 0 3 0 3;1 3 2 1 3;1 1 0 0 0;3 0 1 2 2;2 3 1 3 1", "output": "0 3 0 0 3;1 3 1 3 2;0 0 1 1 0;2 2 3 0 1;3 1 2 3 1"}, {"input": "3 1 2 1 1;3 3 3 2 3;0 1 2 3 1;0 1 0 1 3;0 2 3 3 1", "output": "1 1 3 1 2;2 3 3 3 3;3 1 0 1 2;1 3 0 1 0;3 1 0 2 3"}], "query_input": "3 2 1 3 2;3 3 2 1 3;1 3 0 0 3;1 1 1 3 0;1 2 1 2 1", "query_output": "3 2 3 2 1;1 3 3 3 2;0 3 1 3 0;3 0 1 1 1;2 1 1 2 1"} |
| {"task_id": "icgr-00790", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "0 1 1;2 3 2;2 0 0", "output": "0 2 2;1 3 1;1 0 0"}, {"input": "0 1 2;3 2 4;1 4 2", "output": "0 2 1;3 1 4;2 4 1"}, {"input": "4 1 0;3 3 0;2 4 1", "output": "4 2 0;3 3 0;1 4 2"}], "query_input": "1 0 3;2 3 0;2 3 1", "query_output": "2 0 3;1 3 0;1 3 2"} |
| {"task_id": "icgr-00190", "rule": "add_mod+flip_v", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "4 1 1 3 4;2 3 1 0 0;2 3 0 4 3", "output": "3 4 1 0 4;3 4 2 1 1;0 2 2 4 0"}, {"input": "2 3 4 4 0;4 0 2 1 4;0 2 1 1 3", "output": "1 3 2 2 4;0 1 3 2 0;3 4 0 0 1"}, {"input": "3 1 4 0 4;3 3 0 1 0;3 0 0 4 3", "output": "4 1 1 0 4;4 4 1 2 1;4 2 0 1 0"}], "query_input": "0 3 2 2 3;2 3 0 2 1;4 1 4 4 2", "query_output": "0 2 0 0 3;3 4 1 3 2;1 4 3 3 4"} |
| {"task_id": "icgr-00531", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "5 4 5;5 0 5;2 5 2;1 4 5;5 1 5", "output": "5 4 5 5 4 5;5 0 5 5 0 5;2 5 2 2 5 2;1 4 5 1 4 5;5 1 5 5 1 5"}, {"input": "4 4 2;3 1 5;0 1 2;0 5 4;3 0 0", "output": "4 4 2 4 4 2;3 1 5 3 1 5;0 1 2 0 1 2;0 5 4 0 5 4;3 0 0 3 0 0"}], "query_input": "2 5 2;3 4 3;3 5 1;4 3 3;0 3 3", "query_output": "2 5 2 2 5 2;3 4 3 3 4 3;3 5 1 3 5 1;4 3 3 4 3 3;0 3 3 0 3 3"} |
| {"task_id": "icgr-00217", "rule": "add_mod+border", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "3 2 1 1 2;4 4 0 0 3;4 1 3 3 1;1 0 3 2 2", "output": "2 2 2 2 2;2 1 2 2 2;2 3 0 0 2;2 2 2 2 2"}, {"input": "0 0 3 4 0;1 1 1 1 0;3 2 0 4 1;1 0 4 0 4", "output": "2 2 2 2 2;2 3 3 3 2;2 4 2 1 2;2 2 2 2 2"}, {"input": "4 1 3 4 3;2 0 4 2 4;0 2 1 4 2;2 0 3 3 3", "output": "2 2 2 2 2;2 2 1 4 2;2 4 3 1 2;2 2 2 2 2"}, {"input": "4 1 1 2 3;4 3 1 4 1;0 0 1 2 0;2 1 0 2 4", "output": "2 2 2 2 2;2 0 3 1 2;2 2 3 4 2;2 2 2 2 2"}], "query_input": "3 2 3 0 3;0 3 1 2 4;1 0 1 3 1;0 1 4 2 2", "query_output": "2 2 2 2 2;2 0 3 4 2;2 2 3 0 2;2 2 2 2 2"} |
| {"task_id": "icgr-00142", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "1 0 3 0 3;2 2 0 3 1;3 0 1 0 0;3 0 3 1 3;3 1 1 1 1", "output": "0 0 0 0 0;0 2 0 3 0;0 0 1 0 0;0 0 3 1 0;0 0 0 0 0"}, {"input": "3 3 3 0 1;1 3 2 1 0;2 3 3 3 2;0 2 2 2 2;2 2 2 1 2", "output": "0 0 0 0 0;0 3 2 1 0;0 3 3 3 0;0 2 2 2 0;0 0 0 0 0"}, {"input": "2 2 0 0 0;3 2 3 2 0;0 2 2 1 3;2 0 3 1 2;0 3 3 1 2", "output": "0 0 0 0 0;0 2 3 2 0;0 2 2 1 0;0 0 3 1 0;0 0 0 0 0"}, {"input": "0 1 1 1 1;1 0 1 1 0;2 2 2 1 1;3 1 1 2 1;2 2 2 0 1", "output": "0 0 0 0 0;0 0 1 1 0;0 2 2 1 0;0 1 1 2 0;0 0 0 0 0"}], "query_input": "0 0 1 2 3;1 1 3 0 0;3 0 0 3 3;1 3 2 3 0;1 3 1 2 2", "query_output": "0 0 0 0 0;0 1 3 0 0;0 0 0 3 0;0 3 2 3 0;0 0 0 0 0"} |
| {"task_id": "icgr-00351", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "0 4 0 0;0 1 4 2;4 3 3 4;1 4 1 2", "output": "1 4 1 1;1 0 4 2;4 3 3 4;0 4 0 2"}, {"input": "1 3 4 3;0 4 3 3;0 1 0 0;0 4 4 0", "output": "0 3 4 3;1 4 3 3;1 0 1 1;1 4 4 1"}], "query_input": "1 4 4 3;2 2 1 0;0 1 3 0;0 3 2 2", "query_output": "0 4 4 3;2 2 0 1;1 0 3 1;1 3 2 2"} |
| {"task_id": "icgr-00682", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "2 0 3 4 3;2 2 4 2 3;1 0 0 3 4;4 0 4 3 1;1 0 2 1 4", "output": "2 0 3 4 3 2 0 3 4 3;2 2 4 2 3 2 2 4 2 3;1 0 0 3 4 1 0 0 3 4;4 0 4 3 1 4 0 4 3 1;1 0 2 1 4 1 0 2 1 4"}, {"input": "1 0 4 4 3;4 2 1 3 3;3 3 2 0 0;4 0 3 2 2;0 2 0 3 3", "output": "1 0 4 4 3 1 0 4 4 3;4 2 1 3 3 4 2 1 3 3;3 3 2 0 0 3 3 2 0 0;4 0 3 2 2 4 0 3 2 2;0 2 0 3 3 0 2 0 3 3"}, {"input": "3 1 1 0 3;4 4 1 3 1;2 1 2 1 3;3 0 3 1 3;3 3 0 2 0", "output": "3 1 1 0 3 3 1 1 0 3;4 4 1 3 1 4 4 1 3 1;2 1 2 1 3 2 1 2 1 3;3 0 3 1 3 3 0 3 1 3;3 3 0 2 0 3 3 0 2 0"}, {"input": "2 4 0 4 4;0 1 0 1 0;4 1 3 1 4;3 0 1 0 4;1 0 0 4 1", "output": "2 4 0 4 4 2 4 0 4 4;0 1 0 1 0 0 1 0 1 0;4 1 3 1 4 4 1 3 1 4;3 0 1 0 4 3 0 1 0 4;1 0 0 4 1 1 0 0 4 1"}], "query_input": "0 4 1 1 3;0 4 1 2 0;4 1 2 0 0;1 2 4 2 4;1 2 3 4 1", "query_output": "0 4 1 1 3 0 4 1 1 3;0 4 1 2 0 0 4 1 2 0;4 1 2 0 0 4 1 2 0 0;1 2 4 2 4 1 2 4 2 4;1 2 3 4 1 1 2 3 4 1"} |
| {"task_id": "icgr-00516", "rule": "shift_rows+add_mod", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "0 0 3 1 0;1 0 0 3 2;1 0 2 3 0", "output": "1 1 1 4 2;3 2 1 1 4;1 2 1 3 4"}, {"input": "4 4 4 0 1;2 3 4 3 0;4 3 4 0 0", "output": "2 0 0 0 1;1 3 4 0 4;1 0 4 0 1"}], "query_input": "1 1 1 1 3;1 2 2 2 1;3 1 2 2 3", "query_output": "4 2 2 2 2;2 2 3 3 3;4 4 2 3 3"} |
| {"task_id": "icgr-00599", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "2 4 4 0 0;1 2 2 0 3;4 3 3 0 1;2 4 0 1 3", "output": "2 3 3 0 0;1 2 2 0 4;3 4 4 0 1;2 3 0 1 4"}, {"input": "1 4 4 0 0;4 2 2 3 3;1 3 0 4 4;0 0 2 0 0", "output": "1 3 3 0 0;3 2 2 4 4;1 4 0 3 3;0 0 2 0 0"}], "query_input": "4 2 3 2 0;3 3 4 2 2;3 0 0 2 3;1 3 2 3 2", "query_output": "3 2 4 2 0;4 4 3 2 2;4 0 0 2 4;1 4 2 4 2"} |
| {"task_id": "icgr-00896", "rule": "color_swap+flip_v", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "4 1 1;2 0 2;2 4 4;0 4 4;4 2 4", "output": "2 4 2;0 2 2;4 2 2;4 0 4;2 1 1"}, {"input": "1 3 3;4 2 1;3 0 3;0 0 3;0 4 1", "output": "0 2 1;0 0 3;3 0 3;2 4 1;1 3 3"}], "query_input": "1 4 2;3 3 3;1 1 1;2 4 1;2 0 0", "query_output": "4 0 0;4 2 1;1 1 1;3 3 3;1 2 4"} |
| {"task_id": "icgr-00809", "rule": "color_swap+shift_rows", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "2 2 1;0 3 2;3 5 4;2 1 2", "output": "2 1 2;3 2 0;5 4 3;1 2 2"}, {"input": "4 2 0;0 4 2;1 1 2;3 3 5", "output": "2 0 4;4 2 0;1 2 1;3 5 3"}, {"input": "3 5 3;3 0 1;4 2 4;2 4 4", "output": "5 3 3;0 1 3;2 4 4;4 4 2"}], "query_input": "4 5 0;2 0 1;3 5 4;1 3 5", "query_output": "5 0 4;0 1 2;5 4 3;3 5 1"} |
| {"task_id": "icgr-00511", "rule": "border+color_swap", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "2 2 3;1 0 3;3 3 0;3 2 3", "output": "0 0 0;0 0 0;0 1 0;0 0 0"}, {"input": "3 1 0;3 3 1;0 2 3;3 0 1", "output": "0 0 0;0 1 0;0 2 0;0 0 0"}, {"input": "2 0 0;1 3 0;0 2 0;0 3 3", "output": "0 0 0;0 1 0;0 2 0;0 0 0"}], "query_input": "1 0 3;3 1 2;0 0 1;2 3 0", "query_output": "0 0 0;0 3 0;0 0 0;0 0 0"} |
| {"task_id": "icgr-00033", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "1 4 2;1 3 0;2 4 1", "output": "4 2 1;3 0 1;4 1 2"}, {"input": "2 4 2;2 3 0;0 2 0", "output": "4 2 2;3 0 2;2 0 0"}, {"input": "4 3 0;0 2 4;2 0 1", "output": "3 0 4;2 4 0;0 1 2"}], "query_input": "0 4 1;0 0 2;2 0 2", "query_output": "4 1 0;0 2 0;0 2 2"} |
| {"task_id": "icgr-00989", "rule": "border+shift_rows", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "0 2 0 0;0 3 1 2;2 1 4 1", "output": "0 0 0 0;1 0 0 3;0 0 0 0"}, {"input": "0 4 2 4;4 0 0 1;0 4 2 1", "output": "0 0 0 0;0 0 0 0;0 0 0 0"}], "query_input": "4 1 0 1;3 0 0 3;1 2 2 1", "query_output": "0 0 0 0;0 0 0 0;0 0 0 0"} |
| {"task_id": "icgr-00030", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "4 4 1 5;5 4 1 4;0 2 1 4", "output": "1 5 4 4;1 4 5 4;1 4 0 2"}, {"input": "3 0 0 4;2 0 0 0;4 0 0 4", "output": "0 4 3 0;0 0 2 0;0 4 4 0"}], "query_input": "5 1 5 4;5 0 5 1;0 2 3 5", "query_output": "5 4 5 1;5 1 5 0;3 5 0 2"} |
| {"task_id": "icgr-00738", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 6, "grid_w": 6, "num_support": 2, "support": [{"input": "1 0 2 3 5 2;1 5 0 0 0 1;2 2 5 2 3 3;1 4 3 0 0 1;1 5 4 1 3 0;2 4 2 1 1 4", "output": "5 3 5;4 5 3;5 4 4"}, {"input": "0 3 3 2 2 0;5 0 5 0 2 3;4 1 2 1 4 0;4 5 4 2 0 1;0 4 5 3 3 5;3 1 2 5 2 1", "output": "5 5 3;5 4 4;4 5 5"}], "query_input": "5 1 0 2 4 5;4 5 1 2 0 4;5 4 0 5 2 1;2 2 5 0 2 5;5 1 4 4 3 1;1 4 5 3 1 4", "query_output": "5 2 5;5 5 5;5 5 4"} |
| {"task_id": "icgr-00593", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "3 1 3;1 3 3;2 1 2;1 3 2;3 0 4", "output": "3 1 2 1 3;0 3 1 3 1;4 2 2 3 3"}, {"input": "2 4 1;4 4 4;0 0 1;1 4 3;3 3 1", "output": "3 1 0 4 2;3 4 0 4 4;1 3 1 4 1"}], "query_input": "4 3 4;1 3 3;3 0 1;4 4 1;2 3 0", "query_output": "2 4 3 1 4;3 4 0 3 3;0 1 1 3 4"} |
| {"task_id": "icgr-00093", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "5 0 0 0;4 4 3 3;2 3 0 3;4 4 2 5;3 3 3 0", "output": "5 4 2 4 3;0 4 3 4 3;0 3 0 2 3;0 3 3 5 0"}, {"input": "5 4 3 3;4 4 5 0;4 2 4 3;2 1 5 5;4 3 4 5", "output": "5 4 4 2 4;4 4 2 1 3;3 5 4 5 4;3 0 3 5 5"}, {"input": "2 1 2 1;2 5 1 0;0 2 3 1;5 3 4 3;2 5 2 2", "output": "2 2 0 5 2;1 5 2 3 5;2 1 3 4 2;1 0 1 3 2"}], "query_input": "2 2 3 2;4 0 5 0;1 0 4 5;3 5 2 5;1 4 0 2", "query_output": "2 4 1 3 1;2 0 0 5 4;3 5 4 2 0;2 0 5 5 2"} |
| {"task_id": "icgr-00282", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "3 0 1 1 2;0 3 2 3 0;2 2 2 0 1", "output": "0 1 2 2 3;1 0 3 0 1;3 3 3 1 2"}, {"input": "3 3 1 3 0;0 3 2 3 2;3 3 2 2 2", "output": "0 0 2 0 1;1 0 3 0 3;0 0 3 3 3"}, {"input": "0 1 0 3 0;0 0 3 2 2;1 0 2 2 1", "output": "1 2 1 0 1;1 1 0 3 3;2 1 3 3 2"}, {"input": "2 0 1 2 3;0 3 2 3 2;3 0 1 0 2", "output": "3 1 2 3 0;1 0 3 0 3;0 1 2 1 3"}], "query_input": "3 3 3 1 0;2 0 2 1 2;3 2 0 0 2", "query_output": "0 0 0 2 1;3 1 3 2 3;0 3 1 1 3"} |
| {"task_id": "icgr-00377", "rule": "flip_h+flip_v", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "4 2 3 2 1;4 1 3 3 3;3 3 4 2 2", "output": "2 2 4 3 3;3 3 3 1 4;1 2 3 2 4"}, {"input": "0 3 3 0 4;2 2 3 1 1;0 1 4 3 1", "output": "1 3 4 1 0;1 1 3 2 2;4 0 3 3 0"}], "query_input": "3 1 3 3 0;3 4 2 0 3;1 4 0 3 2", "query_output": "2 3 0 4 1;3 0 2 4 3;0 3 3 1 3"} |
| {"task_id": "icgr-00490", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "1 3 2 0 4;2 4 2 2 0;1 0 1 4 0", "output": "4 1 3 2 0;0 2 4 2 2;0 1 0 1 4"}, {"input": "3 1 1 4 1;3 1 2 4 4;3 0 4 4 4", "output": "1 3 1 1 4;4 3 1 2 4;4 3 0 4 4"}], "query_input": "3 1 1 1 1;0 1 0 1 2;0 2 3 1 0", "query_output": "1 3 1 1 1;2 0 1 0 1;0 0 2 3 1"} |
| {"task_id": "icgr-00281", "rule": "color_swap+add_mod", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "2 4 3 2 1;1 2 0 1 4;1 2 3 3 3", "output": "4 1 3 4 0;0 4 2 0 1;0 4 3 3 3"}, {"input": "4 1 1 0 3;0 4 0 1 1;0 1 2 1 3", "output": "1 0 0 2 3;2 1 2 0 0;2 0 4 0 3"}, {"input": "1 4 3 4 1;2 0 3 0 1;3 3 1 2 3", "output": "0 1 3 1 0;4 2 3 2 0;3 3 0 4 3"}], "query_input": "0 3 2 0 0;0 3 1 4 4;4 3 2 3 0", "query_output": "2 3 4 2 2;2 3 0 1 1;1 3 4 3 2"} |
| {"task_id": "icgr-00421", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "1 1 1 0;3 2 3 1;0 2 0 1;2 0 1 1;3 2 1 3", "output": "0 1 1 1;1 3 2 3;1 0 2 0;1 1 0 2;3 1 2 3"}, {"input": "2 2 3 0;3 1 0 1;0 1 2 0;3 0 3 1;0 3 1 2", "output": "0 3 2 2;1 0 1 3;0 2 1 0;1 3 0 3;2 1 3 0"}, {"input": "1 1 0 0;1 0 1 2;1 1 0 3;3 0 0 0;0 0 3 2", "output": "0 0 1 1;2 1 0 1;3 0 1 1;0 0 0 3;2 3 0 0"}, {"input": "0 2 2 0;1 1 2 3;0 2 1 2;3 0 1 0;1 0 3 1", "output": "0 2 2 0;3 2 1 1;2 1 2 0;0 1 0 3;1 3 0 1"}], "query_input": "2 2 3 0;2 1 3 3;3 1 0 0;2 2 2 1;2 3 3 1", "query_output": "0 3 2 2;3 3 1 2;0 0 1 3;1 2 2 2;1 3 3 2"} |
| {"task_id": "icgr-00292", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "0 1 2 3 2;5 5 3 3 5;1 4 0 3 3;2 1 1 3 3;2 5 4 2 0", "output": "0 5 1 2 2;1 5 4 1 5;2 3 0 1 4;3 3 3 3 2;2 5 3 3 0"}, {"input": "0 2 5 3 3;0 2 0 0 4;2 5 4 5 1;2 4 1 3 0;3 2 5 4 0", "output": "0 0 2 2 3;2 2 5 4 2;5 0 4 1 5;3 0 5 3 4;3 4 1 0 0"}], "query_input": "2 1 4 2 1;3 3 4 2 1;2 4 0 4 1;5 1 2 5 5;1 1 4 3 4", "query_output": "2 3 2 5 1;1 3 4 1 1;4 4 0 2 4;2 2 4 5 3;1 1 1 5 4"} |
| {"task_id": "icgr-00349", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "0 1 3 3;2 2 2 2;1 1 1 1;0 1 0 2;3 0 3 2", "output": "3 3 1 0;2 2 2 2;1 1 1 1;2 0 1 0;2 3 0 3"}, {"input": "0 1 3 3;3 3 3 3;3 1 3 2;1 3 3 1;0 0 2 2", "output": "3 3 1 0;3 3 3 3;2 3 1 3;1 3 3 1;2 2 0 0"}, {"input": "3 0 0 2;0 3 2 1;3 2 2 1;3 1 2 2;2 3 1 0", "output": "2 0 0 3;1 2 3 0;1 2 2 3;2 2 1 3;0 1 3 2"}, {"input": "0 1 2 2;3 1 0 1;3 3 2 0;1 2 1 0;3 0 3 2", "output": "2 2 1 0;1 0 1 3;0 2 3 3;0 1 2 1;2 3 0 3"}], "query_input": "1 3 1 2;0 3 2 1;3 2 1 2;0 0 1 0;1 3 0 3", "query_output": "2 1 3 1;1 2 3 0;2 1 2 3;0 1 0 0;3 0 3 1"} |
| {"task_id": "icgr-00976", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "2 5 2 5 4;1 5 0 5 5;3 5 5 4 1", "output": "4 2 5 2 5;5 1 5 0 5;1 3 5 5 4"}, {"input": "5 3 1 5 1;1 4 5 3 3;3 5 1 3 2", "output": "1 5 3 1 5;3 1 4 5 3;2 3 5 1 3"}, {"input": "0 1 0 0 1;2 5 3 2 5;0 5 5 4 4", "output": "1 0 1 0 0;5 2 5 3 2;4 0 5 5 4"}], "query_input": "4 5 1 1 3;0 2 4 4 5;0 1 3 3 2", "query_output": "3 4 5 1 1;5 0 2 4 4;2 0 1 3 3"} |
| {"task_id": "icgr-00710", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "0 1 4;0 3 1;4 4 2;5 0 5", "output": "0 1 4 0 1 4;0 3 1 0 3 1;4 4 2 4 4 2;5 0 5 5 0 5"}, {"input": "4 4 3;0 5 4;5 3 0;1 0 2", "output": "4 4 3 4 4 3;0 5 4 0 5 4;5 3 0 5 3 0;1 0 2 1 0 2"}, {"input": "5 1 4;3 4 5;5 0 0;1 1 1", "output": "5 1 4 5 1 4;3 4 5 3 4 5;5 0 0 5 0 0;1 1 1 1 1 1"}], "query_input": "5 1 5;3 2 3;1 1 5;0 1 1", "query_output": "5 1 5 5 1 5;3 2 3 3 2 3;1 1 5 1 1 5;0 1 1 0 1 1"} |
| {"task_id": "icgr-00307", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 4, "grid_w": 6, "num_support": 2, "support": [{"input": "4 2 4 4 2 1;4 4 4 4 2 3;4 4 2 1 2 3;2 0 5 1 2 5", "output": "4 4 3;4 5 5"}, {"input": "1 2 2 0 1 0;1 5 5 0 2 5;2 0 0 2 3 0;5 4 0 3 0 5", "output": "5 5 5;5 3 5"}], "query_input": "1 5 1 0 2 5;3 2 0 3 0 0;4 1 4 5 0 0;4 0 2 5 4 5", "query_output": "5 3 5;4 5 5"} |
| {"task_id": "icgr-00955", "rule": "flip_h+border", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "4 1 1;3 2 5;5 3 1;0 0 5", "output": "3 3 3;3 2 3;3 3 3;3 3 3"}, {"input": "4 3 3;4 4 3;4 0 4;2 5 1", "output": "3 3 3;3 4 3;3 0 3;3 3 3"}], "query_input": "0 1 4;4 2 5;4 5 5;2 1 1", "query_output": "3 3 3;3 2 3;3 5 3;3 3 3"} |
| {"task_id": "icgr-00819", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "3 1 3 2;1 0 2 0;3 1 2 0", "output": "3 1 2 0;1 0 2 0;3 1 3 2"}, {"input": "0 1 2 1;2 1 3 2;1 0 2 2", "output": "1 0 2 2;2 1 3 2;0 1 2 1"}, {"input": "3 1 2 2;3 1 1 3;3 2 1 3", "output": "3 2 1 3;3 1 1 3;3 1 2 2"}, {"input": "0 2 2 0;2 2 3 1;0 0 0 0", "output": "0 0 0 0;2 2 3 1;0 2 2 0"}], "query_input": "2 1 3 1;1 2 3 0;3 0 3 0", "query_output": "3 0 3 0;1 2 3 0;2 1 3 1"} |
| {"task_id": "icgr-00782", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "0 0 0 2;3 0 2 3;2 2 0 3;0 2 0 0;3 0 3 3", "output": "3 0 3 3;0 2 0 0;2 2 0 3;3 0 2 3;0 0 0 2"}, {"input": "2 2 0 0;0 2 1 1;0 1 3 1;2 2 3 0;3 3 2 1", "output": "3 3 2 1;2 2 3 0;0 1 3 1;0 2 1 1;2 2 0 0"}, {"input": "2 1 3 2;1 0 2 3;3 3 0 3;3 0 1 1;1 1 2 1", "output": "1 1 2 1;3 0 1 1;3 3 0 3;1 0 2 3;2 1 3 2"}, {"input": "2 3 1 2;3 2 2 1;1 0 0 0;2 1 1 3;2 0 3 2", "output": "2 0 3 2;2 1 1 3;1 0 0 0;3 2 2 1;2 3 1 2"}], "query_input": "0 1 3 0;3 3 2 0;0 0 1 2;1 3 3 2;1 3 1 3", "query_output": "1 3 1 3;1 3 3 2;0 0 1 2;3 3 2 0;0 1 3 0"} |
| {"task_id": "icgr-00020", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "0 3 1 0 4;1 2 4 1 1;1 0 2 1 4;1 4 0 3 1;0 4 1 0 3", "output": "0 4 1 0 3;1 4 0 3 1;1 0 2 1 4;1 2 4 1 1;0 3 1 0 4"}, {"input": "3 2 4 2 1;4 4 4 3 1;1 1 3 0 1;4 3 1 3 2;3 3 4 2 4", "output": "3 3 4 2 4;4 3 1 3 2;1 1 3 0 1;4 4 4 3 1;3 2 4 2 1"}], "query_input": "4 1 3 1 1;3 3 2 1 2;1 3 0 2 0;1 4 4 3 3;1 1 3 2 2", "query_output": "1 1 3 2 2;1 4 4 3 3;1 3 0 2 0;3 3 2 1 2;4 1 3 1 1"} |
| {"task_id": "icgr-00488", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "2 2 1;2 1 3;0 2 1", "output": "3 3 3;3 1 3;3 3 3"}, {"input": "0 3 1;3 2 1;1 1 2", "output": "3 3 3;3 2 3;3 3 3"}, {"input": "1 1 0;2 3 0;2 0 3", "output": "3 3 3;3 3 3;3 3 3"}, {"input": "1 0 2;0 0 0;1 0 2", "output": "3 3 3;3 0 3;3 3 3"}], "query_input": "2 0 3;3 1 2;0 2 0", "query_output": "3 3 3;3 1 3;3 3 3"} |
| {"task_id": "icgr-00961", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "4 4 4;3 3 1;2 1 4", "output": "2 3 4;1 3 4;4 1 4"}, {"input": "0 1 2;1 2 0;0 1 2", "output": "0 1 0;1 2 1;2 0 2"}, {"input": "4 3 1;2 4 4;3 4 0", "output": "3 2 4;4 4 3;0 4 1"}, {"input": "3 0 3;1 2 4;3 2 2", "output": "3 1 3;2 2 0;2 4 3"}], "query_input": "2 2 4;0 1 1;4 1 1", "query_output": "4 0 2;1 1 2;1 1 4"} |
| {"task_id": "icgr-00575", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "0 1 3;2 1 3;1 0 1;0 3 3", "output": "0 3 3;1 0 1;2 1 3;0 1 3"}, {"input": "2 2 3;1 3 3;1 0 2;3 3 0", "output": "3 3 0;1 0 2;1 3 3;2 2 3"}], "query_input": "2 1 0;2 2 1;0 0 2;0 0 3", "query_output": "0 0 3;0 0 2;2 2 1;2 1 0"} |
| {"task_id": "icgr-00900", "rule": "flip_v+shift_rows", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "0 2 3 1 0;3 0 3 4 0;4 1 3 0 3;0 3 2 2 3", "output": "2 3 0 3 2;0 3 4 1 3;4 0 3 0 3;1 0 0 2 3"}, {"input": "2 4 3 1 1;4 3 0 2 1;0 1 1 0 3;2 2 1 2 2", "output": "2 2 2 2 1;0 3 0 1 1;2 1 4 3 0;1 1 2 4 3"}], "query_input": "1 0 4 1 2;2 0 0 1 2;4 4 2 3 2;3 4 4 3 1", "query_output": "3 1 3 4 4;3 2 4 4 2;1 2 2 0 0;1 2 1 0 4"} |
| {"task_id": "icgr-00395", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "0 2 4 4 4;2 3 5 1 5;5 4 3 1 1", "output": "0 5 4 4 4;5 3 2 1 2;2 4 3 1 1"}, {"input": "4 4 4 5 4;0 1 1 5 1;5 4 1 1 1", "output": "4 4 4 2 4;0 1 1 2 1;2 4 1 1 1"}, {"input": "0 3 0 3 5;1 1 2 3 1;2 4 4 0 4", "output": "0 3 0 3 2;1 1 5 3 1;5 4 4 0 4"}], "query_input": "2 5 3 0 2;2 3 5 3 2;2 3 3 0 4", "query_output": "5 2 3 0 5;5 3 2 3 5;5 3 3 0 4"} |
| {"task_id": "icgr-00267", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "3 4 0 3 4;3 2 4 4 4;0 0 0 3 0;3 1 1 0 2;1 4 1 1 2", "output": "3 0 4 3 0;3 2 0 0 0;4 4 4 3 4;3 1 1 4 2;1 0 1 1 2"}, {"input": "4 2 4 1 2;1 2 0 3 3;3 4 2 0 1;0 4 0 4 2;1 3 2 1 1", "output": "0 2 0 1 2;1 2 4 3 3;3 0 2 4 1;4 0 4 0 2;1 3 2 1 1"}, {"input": "3 2 1 2 0;3 4 2 2 2;2 1 4 3 4;1 1 0 1 1;3 3 3 0 0", "output": "3 2 1 2 4;3 0 2 2 2;2 1 0 3 0;1 1 4 1 1;3 3 3 4 4"}, {"input": "0 4 2 3 0;1 2 3 4 3;2 3 0 1 2;1 4 1 2 0;1 0 0 0 4", "output": "4 0 2 3 4;1 2 3 0 3;2 3 4 1 2;1 0 1 2 4;1 4 4 4 0"}], "query_input": "1 4 0 3 3;3 0 3 3 3;0 2 3 1 3;3 2 0 2 4;4 1 4 4 3", "query_output": "1 0 4 3 3;3 4 3 3 3;4 2 3 1 3;3 2 4 2 0;0 1 0 0 3"} |
| {"task_id": "icgr-00735", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "2 0 3 0;4 0 4 3;0 1 3 3", "output": "4 2 0 2;1 2 1 0;2 3 0 0"}, {"input": "1 2 0 3;4 0 2 2;3 1 4 2", "output": "3 4 2 0;1 2 4 4;0 3 1 4"}, {"input": "1 1 2 0;3 4 2 4;3 1 0 1", "output": "3 3 4 2;0 1 4 1;0 3 2 3"}, {"input": "4 3 2 1;3 2 4 0;0 4 2 2", "output": "1 0 4 3;0 4 1 2;2 1 4 4"}], "query_input": "2 3 4 1;0 0 1 1;1 3 1 3", "query_output": "4 0 1 3;2 2 3 3;3 0 3 0"} |
| {"task_id": "icgr-00331", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "2 3 0 3;3 3 3 0;3 5 5 5;4 4 5 0;4 2 4 0", "output": "4 2 4 0;4 4 5 0;3 5 5 5;3 3 3 0;2 3 0 3"}, {"input": "0 3 3 4;3 4 3 2;1 3 5 1;2 1 2 3;5 5 4 1", "output": "5 5 4 1;2 1 2 3;1 3 5 1;3 4 3 2;0 3 3 4"}, {"input": "0 3 2 2;2 5 1 2;2 1 0 0;2 1 3 0;3 4 3 0", "output": "3 4 3 0;2 1 3 0;2 1 0 0;2 5 1 2;0 3 2 2"}, {"input": "0 1 5 5;2 3 0 1;3 5 2 2;2 2 4 3;5 5 3 1", "output": "5 5 3 1;2 2 4 3;3 5 2 2;2 3 0 1;0 1 5 5"}], "query_input": "2 3 0 1;0 0 2 3;0 4 5 5;5 4 3 2;2 2 0 2", "query_output": "2 2 0 2;5 4 3 2;0 4 5 5;0 0 2 3;2 3 0 1"} |
| {"task_id": "icgr-00257", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "3 3 3;1 2 2;3 2 2;1 0 2", "output": "2 2 2;0 1 1;2 1 1;0 3 1"}, {"input": "1 0 0;2 3 1;1 0 3;0 0 2", "output": "0 3 3;1 2 0;0 3 2;3 3 1"}], "query_input": "1 1 0;2 0 3;3 3 1;1 2 2", "query_output": "0 0 3;1 3 2;2 2 0;0 1 1"} |
| {"task_id": "icgr-00057", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "5 1 1 5;5 5 5 1;4 1 1 3;2 1 4 4", "output": "5 1 1 5;5 5 5 1;2 1 1 3;4 1 2 2"}, {"input": "1 4 3 2;4 2 1 0;3 5 4 1;1 5 0 3", "output": "1 2 3 4;2 4 1 0;3 5 2 1;1 5 0 3"}, {"input": "3 5 3 1;3 3 0 4;3 2 2 4;4 1 5 0", "output": "3 5 3 1;3 3 0 2;3 4 4 2;2 1 5 0"}, {"input": "2 1 4 1;4 4 1 0;5 2 5 3;1 2 0 4", "output": "4 1 2 1;2 2 1 0;5 4 5 3;1 4 0 2"}], "query_input": "4 4 2 3;4 0 1 0;3 3 1 2;2 1 2 4", "query_output": "2 2 4 3;2 0 1 0;3 3 1 4;4 1 4 2"} |
| {"task_id": "icgr-00411", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "2 2 0 3;1 2 0 4;2 3 4 2;4 1 1 0", "output": "2 4;4 4"}, {"input": "1 3 4 3;4 2 4 4;0 4 2 4;1 3 2 2", "output": "4 4;4 4"}, {"input": "0 0 3 0;0 3 1 3;1 2 4 2;0 1 0 3", "output": "3 3;2 4"}, {"input": "1 4 3 0;4 2 4 4;4 3 1 1;3 4 3 4", "output": "4 4;4 4"}], "query_input": "2 0 2 4;2 3 4 1;4 3 4 1;4 4 4 1", "query_output": "3 4;4 4"} |
| {"task_id": "icgr-00559", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 4, "grid_w": 6, "num_support": 2, "support": [{"input": "2 1 3 3 2 2;2 2 3 2 0 2;1 0 1 0 1 2;0 0 3 1 2 2", "output": "2 3 2;1 3 2"}, {"input": "0 3 0 0 3 2;1 2 1 2 3 0;0 0 2 0 2 3;0 0 0 0 0 3", "output": "3 2 3;0 2 3"}], "query_input": "1 2 3 2 2 0;1 2 1 3 1 2;3 2 0 1 1 2;2 0 1 2 1 0", "query_output": "2 3 2;3 2 2"} |
| {"task_id": "icgr-00132", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "2 1 1;3 1 1;0 2 2", "output": "2 3 0;1 1 2;1 1 2"}, {"input": "1 3 1;2 1 0;3 2 2", "output": "1 2 3;3 1 2;1 0 2"}], "query_input": "3 3 1;1 3 3;1 0 0", "query_output": "3 1 1;3 3 0;1 3 0"} |
| {"task_id": "icgr-00097", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "4 2 5 2;5 5 2 1;5 4 3 3", "output": "4 5 5;2 5 4;5 2 3;2 1 3"}, {"input": "1 4 1 5;4 3 0 4;3 1 2 1", "output": "1 4 3;4 3 1;1 0 2;5 4 1"}, {"input": "2 3 2 1;3 5 1 3;3 0 2 5", "output": "2 3 3;3 5 0;2 1 2;1 3 5"}], "query_input": "4 4 0 4;2 4 4 0;1 3 5 2", "query_output": "4 2 1;4 4 3;0 4 5;4 0 2"} |
| {"task_id": "icgr-00179", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "2 0 3 0 0;3 1 2 2 3;3 0 1 0 2;1 2 2 0 1;2 3 2 0 3", "output": "1 0 3 0 0;3 2 1 1 3;3 0 2 0 1;2 1 1 0 2;1 3 1 0 3"}, {"input": "2 0 2 2 2;3 1 2 0 3;1 3 3 3 1;1 1 2 0 3;1 0 1 1 2", "output": "1 0 1 1 1;3 2 1 0 3;2 3 3 3 2;2 2 1 0 3;2 0 2 2 1"}], "query_input": "3 2 2 3 0;0 0 1 2 3;2 0 2 0 3;0 1 1 2 0;1 0 3 0 3", "query_output": "3 1 1 3 0;0 0 2 1 3;1 0 1 0 3;0 2 2 1 0;2 0 3 0 3"} |
| {"task_id": "icgr-00055", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "3 1 5 5 1;0 3 5 5 1;0 1 4 2 1", "output": "5 5 5 5 5;5 3 5 5 5;5 5 5 5 5"}, {"input": "1 2 0 1 4;3 1 5 1 1;5 4 1 5 4", "output": "5 5 5 5 5;5 1 5 1 5;5 5 5 5 5"}, {"input": "0 3 5 3 4;2 2 3 4 4;5 2 5 4 0", "output": "5 5 5 5 5;5 2 3 4 5;5 5 5 5 5"}], "query_input": "1 1 2 3 4;3 0 2 5 5;4 2 1 0 3", "query_output": "5 5 5 5 5;5 0 2 5 5;5 5 5 5 5"} |
| {"task_id": "icgr-00634", "rule": "border+add_mod", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "0 2 2 2 1;3 1 3 0 0;1 1 3 1 2;3 2 2 3 3", "output": "3 3 3 3 3;3 3 1 2 3;3 3 1 3 3;3 3 3 3 3"}, {"input": "2 0 3 1 1;2 1 1 0 3;0 3 0 0 2;2 1 3 1 1", "output": "3 3 3 3 3;3 3 3 2 3;3 1 2 2 3;3 3 3 3 3"}, {"input": "1 2 3 2 2;2 2 3 0 0;1 1 1 1 0;0 1 1 2 0", "output": "3 3 3 3 3;3 0 1 2 3;3 3 3 3 3;3 3 3 3 3"}], "query_input": "0 3 1 2 1;1 0 2 3 3;2 3 2 0 2;3 3 3 2 2", "query_output": "3 3 3 3 3;3 2 0 1 3;3 1 0 2 3;3 3 3 3 3"} |
| {"task_id": "icgr-00622", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "1 0 0;1 0 2;2 0 2;1 2 2", "output": "1 0 0 1 0 0;1 0 2 1 0 2;2 0 2 2 0 2;1 2 2 1 2 2"}, {"input": "2 2 0;1 2 1;0 0 0;0 0 2", "output": "2 2 0 2 2 0;1 2 1 1 2 1;0 0 0 0 0 0;0 0 2 0 0 2"}], "query_input": "2 1 3;2 2 0;2 3 2;1 2 1", "query_output": "2 1 3 2 1 3;2 2 0 2 2 0;2 3 2 2 3 2;1 2 1 1 2 1"} |
| {"task_id": "icgr-00357", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "0 4 2;3 0 4;3 0 1;4 0 5;2 4 0", "output": "0 4 2 0 4 2;3 0 4 3 0 4;3 0 1 3 0 1;4 0 5 4 0 5;2 4 0 2 4 0"}, {"input": "5 5 1;5 3 3;3 1 2;0 0 1;4 1 5", "output": "5 5 1 5 5 1;5 3 3 5 3 3;3 1 2 3 1 2;0 0 1 0 0 1;4 1 5 4 1 5"}], "query_input": "0 5 0;2 1 4;4 5 2;2 3 1;1 5 0", "query_output": "0 5 0 0 5 0;2 1 4 2 1 4;4 5 2 4 5 2;2 3 1 2 3 1;1 5 0 1 5 0"} |
| {"task_id": "icgr-00285", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "3 1 2 3;0 2 2 0;1 2 0 2;0 0 2 0", "output": "3 1 2 3;0 2 2 0;1 2 0 2;0 0 2 0"}, {"input": "3 2 3 1;2 3 2 0;1 0 3 0;0 0 3 0", "output": "3 2 3 1;2 3 2 0;1 0 3 0;0 0 3 0"}], "query_input": "2 1 0 3;1 2 0 3;3 2 3 3;3 1 2 1", "query_output": "2 1 0 3;1 2 0 3;3 2 3 3;3 1 2 1"} |
| {"task_id": "icgr-00940", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "1 2 0 1 3;2 0 3 0 2;1 1 3 2 1;0 0 0 2 3", "output": "1 2 1 0;2 0 1 0;0 3 3 0;1 0 2 2;3 2 1 3"}, {"input": "0 0 1 0 2;2 1 1 3 2;0 1 0 1 0;0 0 2 2 2", "output": "0 2 0 0;0 1 1 0;1 1 0 2;0 3 1 2;2 2 0 2"}, {"input": "1 3 0 0 0;2 2 1 3 2;0 2 1 3 1;2 1 3 0 3", "output": "1 2 0 2;3 2 2 1;0 1 1 3;0 3 3 0;0 2 1 3"}, {"input": "3 2 3 0 2;0 0 2 1 0;3 2 2 1 3;0 2 2 1 2", "output": "3 0 3 0;2 0 2 2;3 2 2 2;0 1 1 1;2 0 3 2"}], "query_input": "0 2 2 3 2;1 2 2 2 2;3 3 1 3 1;1 0 2 0 3", "query_output": "0 1 3 1;2 2 3 0;2 2 1 2;3 2 3 0;2 2 1 3"} |
| {"task_id": "icgr-00872", "rule": "add_mod+border", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "0 0 4 2;0 1 2 1;1 0 1 3", "output": "3 3 3 3;3 2 3 3;3 3 3 3"}, {"input": "0 4 4 1;1 1 0 2;2 3 3 2", "output": "3 3 3 3;3 2 1 3;3 3 3 3"}], "query_input": "0 0 0 0;2 1 1 2;1 0 3 0", "query_output": "3 3 3 3;3 2 2 3;3 3 3 3"} |
| {"task_id": "icgr-00049", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "0 3 1;3 1 1;2 0 1", "output": "2 3 0;0 1 3;1 1 1"}, {"input": "0 2 1;0 2 2;1 3 1", "output": "1 0 0;3 2 2;1 2 1"}, {"input": "3 0 3;2 0 1;0 1 0", "output": "0 2 3;1 0 0;0 1 3"}], "query_input": "3 0 0;3 3 1;0 0 0", "query_output": "0 3 3;0 3 0;0 1 0"} |
| {"task_id": "icgr-00698", "rule": "shift_rows+flip_v", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "4 2 2 2 3;1 3 2 4 0;2 0 1 3 0", "output": "3 0 2 0 1;4 0 1 3 2;2 3 4 2 2"}, {"input": "4 2 0 1 1;4 1 0 4 3;0 2 4 4 1", "output": "4 1 0 2 4;4 3 4 1 0;1 1 4 2 0"}], "query_input": "1 2 4 4 2;0 4 3 1 1;4 4 3 0 3", "query_output": "0 3 4 4 3;1 1 0 4 3;4 2 1 2 4"} |
| {"task_id": "icgr-00239", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "3 4 5;3 4 1;5 2 0;2 1 4;5 1 0", "output": "4 5 3;4 1 3;2 0 5;1 4 2;1 0 5"}, {"input": "0 0 2;2 5 1;4 2 5;3 0 5;0 3 4", "output": "0 2 0;5 1 2;2 5 4;0 5 3;3 4 0"}, {"input": "1 5 3;5 4 1;5 3 2;0 1 3;4 5 5", "output": "5 3 1;4 1 5;3 2 5;1 3 0;5 5 4"}], "query_input": "3 3 5;4 5 4;1 3 0;0 2 0;3 5 4", "query_output": "3 5 3;5 4 4;3 0 1;2 0 0;5 4 3"} |
| {"task_id": "icgr-00974", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "2 3 0;1 0 3;0 3 3;2 0 3", "output": "0 0 0;0 0 0;0 3 0;0 0 0"}, {"input": "3 0 2;0 3 0;2 0 0;0 3 3", "output": "0 0 0;0 3 0;0 0 0;0 0 0"}, {"input": "2 0 0;2 1 2;0 2 3;0 0 3", "output": "0 0 0;0 1 0;0 2 0;0 0 0"}], "query_input": "2 3 3;1 2 0;0 2 2;1 0 3", "query_output": "0 0 0;0 2 0;0 2 0;0 0 0"} |
| {"task_id": "icgr-00398", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "0 3 3;1 5 1;5 4 2;2 3 3;0 5 5", "output": "3 3 0;1 5 1;2 4 5;3 3 2;5 5 0"}, {"input": "1 4 5;4 3 1;4 0 2;4 2 1;4 5 5", "output": "5 4 1;1 3 4;2 0 4;1 2 4;5 5 4"}, {"input": "4 1 1;3 1 2;2 5 4;0 5 3;5 4 1", "output": "1 1 4;2 1 3;4 5 2;3 5 0;1 4 5"}], "query_input": "3 4 0;5 2 1;1 4 0;5 2 1;5 0 0", "query_output": "0 4 3;1 2 5;0 4 1;1 2 5;0 0 5"} |
| {"task_id": "icgr-00907", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "0 2 1 1;3 3 0 3;0 2 0 3", "output": "1 0 2 1;3 3 3 0;3 0 2 0"}, {"input": "2 1 3 3;3 1 2 3;1 3 2 0", "output": "3 2 1 3;3 3 1 2;0 1 3 2"}, {"input": "2 1 3 2;3 0 3 1;1 2 1 2", "output": "2 2 1 3;1 3 0 3;2 1 2 1"}], "query_input": "1 1 3 3;3 2 2 1;1 3 3 3", "query_output": "3 1 1 3;1 3 2 2;3 1 3 3"} |
| {"task_id": "icgr-00197", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "3 1 2;1 0 3;2 4 2;2 2 3", "output": "2 3 1;3 1 0;2 2 4;3 2 2"}, {"input": "3 1 4;3 4 3;1 4 3;0 2 2", "output": "4 3 1;3 3 4;3 1 4;2 0 2"}, {"input": "4 3 4;2 3 1;4 1 3;2 4 4", "output": "4 4 3;1 2 3;3 4 1;4 2 4"}, {"input": "3 3 4;1 1 3;1 0 4;2 3 2", "output": "4 3 3;3 1 1;4 1 0;2 2 3"}], "query_input": "1 1 1;1 2 0;2 2 4;2 4 2", "query_output": "1 1 1;0 1 2;4 2 2;2 2 4"} |
| {"task_id": "icgr-00903", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "1 0 3 3;0 4 2 4;0 3 2 1;4 1 2 4;1 2 1 1", "output": "1 2 1 1;4 1 2 4;0 3 2 1;0 4 2 4;1 0 3 3"}, {"input": "2 2 4 0;4 2 2 2;0 4 1 3;3 2 1 1;4 1 1 3", "output": "4 1 1 3;3 2 1 1;0 4 1 3;4 2 2 2;2 2 4 0"}, {"input": "3 4 4 0;0 1 4 4;4 3 2 3;1 1 4 1;2 0 4 2", "output": "2 0 4 2;1 1 4 1;4 3 2 3;0 1 4 4;3 4 4 0"}, {"input": "4 1 4 1;0 3 0 1;4 1 4 3;0 0 3 4;2 2 4 2", "output": "2 2 4 2;0 0 3 4;4 1 4 3;0 3 0 1;4 1 4 1"}], "query_input": "3 2 1 3;3 0 0 2;4 1 0 0;1 3 4 1;0 4 3 1", "query_output": "0 4 3 1;1 3 4 1;4 1 0 0;3 0 0 2;3 2 1 3"} |
| {"task_id": "icgr-00315", "rule": "shift_rows+flip_v", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "4 5 3 2 0;3 2 5 5 5;0 3 4 1 0", "output": "0 0 3 4 1;5 3 2 5 5;0 4 5 3 2"}, {"input": "2 5 5 1 5;2 0 0 4 0;5 1 1 1 3", "output": "3 5 1 1 1;0 2 0 0 4;5 2 5 5 1"}], "query_input": "3 5 1 2 3;5 3 0 2 5;4 0 4 0 5", "query_output": "5 4 0 4 0;5 5 3 0 2;3 3 5 1 2"} |
| {"task_id": "icgr-00040", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "0 1 4 5;1 0 0 4;1 3 3 4", "output": "5 4 1 0;4 0 0 1;4 3 3 1"}, {"input": "1 0 0 1;1 3 2 5;1 0 0 0", "output": "1 0 0 1;5 2 3 1;0 0 0 1"}], "query_input": "3 1 0 3;4 5 3 0;1 1 2 1", "query_output": "3 0 1 3;0 3 5 4;1 2 1 1"} |
| {"task_id": "icgr-00486", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "4 3 0 2;3 4 3 4;0 1 4 0;2 0 4 0", "output": "4 1 0 2;1 4 1 4;0 3 4 0;2 0 4 0"}, {"input": "1 3 2 3;2 2 0 1;0 1 1 4;2 3 4 2", "output": "3 1 2 1;2 2 0 3;0 3 3 4;2 1 4 2"}, {"input": "1 2 3 3;3 1 0 0;3 1 2 1;3 0 3 2", "output": "3 2 1 1;1 3 0 0;1 3 2 3;1 0 1 2"}, {"input": "3 0 2 2;2 1 0 1;3 1 4 1;3 0 1 3", "output": "1 0 2 2;2 3 0 3;1 3 4 3;1 0 3 1"}], "query_input": "4 1 3 3;2 1 4 1;3 2 0 2;1 4 1 2", "query_output": "4 3 1 1;2 3 4 3;1 2 0 2;3 4 3 2"} |
| {"task_id": "icgr-00684", "rule": "shift_rows+flip_h", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "0 2 5 2 4;1 1 1 4 3;1 4 3 2 0;4 0 4 4 5", "output": "5 2 0 4 2;1 1 1 3 4;3 4 1 0 2;4 0 4 5 4"}, {"input": "0 2 2 3 4;5 0 5 4 1;4 0 4 3 4;2 3 4 1 2", "output": "2 2 0 4 3;5 0 5 1 4;4 0 4 4 3;4 3 2 2 1"}, {"input": "4 3 3 2 2;4 0 0 1 5;1 4 3 2 0;4 4 0 5 2", "output": "3 3 4 2 2;0 0 4 5 1;3 4 1 0 2;0 4 4 2 5"}, {"input": "5 2 3 0 0;0 0 1 3 5;4 2 2 0 2;3 3 3 0 1", "output": "3 2 5 0 0;1 0 0 5 3;2 2 4 2 0;3 3 3 1 0"}], "query_input": "3 4 2 3 1;1 1 0 3 4;0 0 1 3 2;3 3 1 2 4", "query_output": "2 4 3 1 3;0 1 1 4 3;1 0 0 2 3;1 3 3 4 2"} |
| {"task_id": "icgr-00386", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "1 5 5 1;0 4 2 1;3 3 0 5", "output": "3 3 0 5;0 4 2 1;1 5 5 1"}, {"input": "2 0 3 4;5 3 0 1;0 4 3 3", "output": "0 4 3 3;5 3 0 1;2 0 3 4"}], "query_input": "0 5 0 5;4 5 2 2;5 4 0 2", "query_output": "5 4 0 2;4 5 2 2;0 5 0 5"} |
| {"task_id": "icgr-00309", "rule": "flip_v+flip_h", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "2 1 2 3;0 1 3 2;2 0 3 3;2 2 2 0;3 3 3 3", "output": "3 3 3 3;0 2 2 2;3 3 0 2;2 3 1 0;3 2 1 2"}, {"input": "0 1 1 1;3 2 0 1;1 1 2 2;1 3 1 2;2 2 0 1", "output": "1 0 2 2;2 1 3 1;2 2 1 1;1 0 2 3;1 1 1 0"}, {"input": "1 1 1 3;1 3 2 3;1 3 1 3;1 3 1 0;2 0 1 2", "output": "2 1 0 2;0 1 3 1;3 1 3 1;3 2 3 1;3 1 1 1"}, {"input": "0 2 0 1;0 3 3 3;3 3 3 3;2 1 2 2;0 2 1 2", "output": "2 1 2 0;2 2 1 2;3 3 3 3;3 3 3 0;1 0 2 0"}], "query_input": "3 2 1 2;0 1 3 1;1 0 2 0;0 2 0 0;0 1 0 3", "query_output": "3 0 1 0;0 0 2 0;0 2 0 1;1 3 1 0;2 1 2 3"} |
| {"task_id": "icgr-00667", "rule": "color_swap+flip_v", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "1 3 2;2 4 2;4 4 2;4 4 0;3 4 0", "output": "2 4 0;4 4 0;4 4 3;3 4 3;1 2 3"}, {"input": "4 4 4;2 1 1;0 4 4;1 2 0;4 4 4", "output": "4 4 4;1 3 0;0 4 4;3 1 1;4 4 4"}, {"input": "4 2 0;4 1 0;4 3 1;4 0 0;3 2 4", "output": "2 3 4;4 0 0;4 2 1;4 1 0;4 3 0"}], "query_input": "0 1 4;1 1 2;3 2 4;4 4 0;2 1 0", "query_output": "3 1 0;4 4 0;2 3 4;1 1 3;0 1 4"} |
| {"task_id": "icgr-00550", "rule": "flip_v+shift_rows", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "1 4 2;0 1 1;0 2 0;4 3 2;2 0 2", "output": "0 2 2;3 2 4;2 0 0;1 1 0;4 2 1"}, {"input": "0 3 3;2 0 2;0 0 4;0 3 2;2 1 4", "output": "1 4 2;3 2 0;0 4 0;0 2 2;3 3 0"}], "query_input": "2 2 0;2 2 2;0 2 4;4 3 2;3 2 2", "query_output": "2 2 3;3 2 4;2 4 0;2 2 2;2 0 2"} |
| {"task_id": "icgr-00921", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "0 4 1 2;3 0 5 3;4 1 0 2", "output": "4 3 0;1 0 4;0 5 1;2 3 2"}, {"input": "5 3 2 2;3 2 0 2;1 2 0 5", "output": "1 3 5;2 2 3;0 0 2;5 2 2"}], "query_input": "5 2 3 2;5 2 4 5;1 2 2 5", "query_output": "1 5 5;2 2 2;2 4 3;5 5 2"} |
| {"task_id": "icgr-00495", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "1 0 3 0;3 2 1 0;3 4 1 3;4 2 1 0", "output": "0 1 0 3;0 3 2 1;3 3 4 1;0 4 2 1"}, {"input": "0 1 2 2;3 2 2 4;1 0 1 4;3 4 0 4", "output": "2 0 1 2;4 3 2 2;4 1 0 1;4 3 4 0"}], "query_input": "2 3 4 4;4 4 4 3;4 3 3 4;4 3 4 2", "query_output": "4 2 3 4;3 4 4 4;4 4 3 3;2 4 3 4"} |
| {"task_id": "icgr-00886", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "1 3 3;1 4 1;3 1 2;1 0 2;4 1 0", "output": "3 3 1;1 4 1;2 1 3;2 0 1;0 1 4"}, {"input": "1 3 2;1 2 2;1 3 1;2 2 1;4 2 1", "output": "2 3 1;2 2 1;1 3 1;1 2 2;1 2 4"}, {"input": "0 3 0;4 3 4;3 1 3;0 1 0;1 1 2", "output": "0 3 0;4 3 4;3 1 3;0 1 0;2 1 1"}], "query_input": "3 3 1;3 3 0;4 1 0;4 3 3;0 4 3", "query_output": "1 3 3;0 3 3;0 1 4;3 3 4;3 4 0"} |
| {"task_id": "icgr-00643", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "3 0 3;1 1 5;3 4 4;1 2 5;4 0 1", "output": "4 0 1;1 2 5;3 4 4;1 1 5;3 0 3"}, {"input": "3 0 2;1 2 3;2 2 2;4 1 5;4 3 3", "output": "4 3 3;4 1 5;2 2 2;1 2 3;3 0 2"}, {"input": "5 5 0;3 4 0;1 5 5;1 2 1;1 4 5", "output": "1 4 5;1 2 1;1 5 5;3 4 0;5 5 0"}, {"input": "1 5 4;4 0 5;4 3 4;1 2 1;0 4 2", "output": "0 4 2;1 2 1;4 3 4;4 0 5;1 5 4"}], "query_input": "0 5 4;2 2 5;4 1 1;5 4 5;2 0 2", "query_output": "2 0 2;5 4 5;4 1 1;2 2 5;0 5 4"} |
| {"task_id": "icgr-00639", "rule": "flip_v+color_swap", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "4 0 1 3 2;0 3 1 1 5;0 3 3 3 3;3 5 1 3 4", "output": "5 3 1 5 4;0 5 5 5 5;0 5 1 1 3;4 0 1 5 2"}, {"input": "3 1 1 0 5;0 3 1 5 2;4 3 3 5 4;0 1 0 0 0", "output": "0 1 0 0 0;4 5 5 3 4;0 5 1 3 2;5 1 1 0 3"}, {"input": "2 1 2 4 5;4 4 2 0 0;4 1 3 5 2;0 4 3 2 1", "output": "0 4 5 2 1;4 1 5 3 2;4 4 2 0 0;2 1 2 4 3"}], "query_input": "2 0 3 4 2;2 1 3 5 5;1 2 5 4 3;5 0 0 2 2", "query_output": "3 0 0 2 2;1 2 3 4 5;2 1 5 3 3;2 0 5 4 2"} |
| {"task_id": "icgr-00970", "rule": "add_mod+shift_rows", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "1 3 3 1 0;0 1 2 3 2;0 0 1 3 0;0 0 1 1 1", "output": "2 1 2 0 0;0 3 1 2 3;0 1 1 1 2;2 2 1 1 2"}, {"input": "0 1 2 1 0;3 2 2 0 2;3 0 3 0 2;2 1 0 1 2", "output": "2 1 1 2 3;1 3 0 3 3;1 3 0 1 0;2 3 3 2 1"}, {"input": "3 0 2 3 3;1 1 1 1 3;1 2 2 1 1;2 1 1 0 3", "output": "0 0 0 1 3;2 0 2 2 2;2 2 2 3 3;1 0 3 2 2"}, {"input": "1 0 0 2 2;2 0 0 1 0;1 0 1 1 3;0 3 3 0 0", "output": "3 3 2 1 1;2 1 3 1 1;2 0 2 1 2;1 1 1 0 0"}], "query_input": "1 2 3 3 3;2 0 0 2 3;1 3 0 1 0;0 0 1 1 3", "query_output": "0 0 2 3 0;3 0 3 1 1;2 1 2 0 1;2 0 1 1 2"} |
| {"task_id": "icgr-00038", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "1 0 3 1;3 3 2 1;3 1 4 1;0 4 0 2", "output": "1 0 3 1 1 0 3 1;3 3 2 1 3 3 2 1;3 1 4 1 3 1 4 1;0 4 0 2 0 4 0 2"}, {"input": "4 3 0 2;3 4 4 0;3 2 0 2;2 4 1 3", "output": "4 3 0 2 4 3 0 2;3 4 4 0 3 4 4 0;3 2 0 2 3 2 0 2;2 4 1 3 2 4 1 3"}, {"input": "4 3 3 4;0 4 0 0;4 2 1 1;0 1 2 0", "output": "4 3 3 4 4 3 3 4;0 4 0 0 0 4 0 0;4 2 1 1 4 2 1 1;0 1 2 0 0 1 2 0"}, {"input": "2 1 2 4;2 3 0 4;2 4 4 2;3 4 4 0", "output": "2 1 2 4 2 1 2 4;2 3 0 4 2 3 0 4;2 4 4 2 2 4 4 2;3 4 4 0 3 4 4 0"}], "query_input": "2 1 4 1;4 1 0 2;4 0 4 0;1 3 0 0", "query_output": "2 1 4 1 2 1 4 1;4 1 0 2 4 1 0 2;4 0 4 0 4 0 4 0;1 3 0 0 1 3 0 0"} |
| {"task_id": "icgr-00320", "rule": "color_swap+border", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "3 5 1;1 3 5;5 1 3;0 5 5;1 2 3", "output": "5 5 5;5 3 5;5 1 5;5 4 5;5 5 5"}, {"input": "4 3 4;4 5 2;2 5 3;3 2 5;2 3 4", "output": "5 5 5;5 4 5;5 4 5;5 2 5;5 5 5"}, {"input": "5 2 0;2 3 2;5 0 5;1 5 0;3 4 4", "output": "5 5 5;5 3 5;5 0 5;5 4 5;5 5 5"}], "query_input": "4 2 0;4 1 1;1 1 0;1 4 3;3 3 3", "query_output": "5 5 5;5 1 5;5 1 5;5 5 5;5 5 5"} |
| {"task_id": "icgr-00993", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "1 0 4 1 3;3 1 4 2 3;0 0 1 1 0;3 1 4 1 0;4 0 4 3 2", "output": "1 1 1 1 1;1 1 4 2 1;1 0 1 1 1;1 1 4 1 1;1 1 1 1 1"}, {"input": "2 1 4 4 1;0 2 1 0 0;0 0 3 3 4;4 0 4 2 0;2 1 0 2 3", "output": "1 1 1 1 1;1 2 1 0 1;1 0 3 3 1;1 0 4 2 1;1 1 1 1 1"}, {"input": "1 4 0 3 4;1 2 4 1 3;4 0 4 3 2;2 2 1 0 3;1 4 0 1 0", "output": "1 1 1 1 1;1 2 4 1 1;1 0 4 3 1;1 2 1 0 1;1 1 1 1 1"}], "query_input": "0 1 1 3 2;3 3 4 2 1;4 3 2 2 2;2 0 3 4 1;3 0 4 3 1", "query_output": "1 1 1 1 1;1 3 4 2 1;1 3 2 2 1;1 0 3 4 1;1 1 1 1 1"} |
| {"task_id": "icgr-00407", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "2 3 1 0 3;0 1 0 0 1;3 3 1 3 0;1 2 0 1 2", "output": "2 0 3 1;3 1 3 2;1 0 1 0;0 0 3 1;3 1 0 2"}, {"input": "1 0 2 2 3;3 0 1 2 0;3 0 2 2 3;2 1 3 0 2", "output": "1 3 3 2;0 0 0 1;2 1 2 3;2 2 2 0;3 0 3 2"}], "query_input": "2 2 3 2 1;0 0 1 0 0;1 0 2 3 2;0 1 1 1 0", "query_output": "2 0 1 0;2 0 0 1;3 1 2 1;2 0 3 1;1 0 2 0"} |
| {"task_id": "icgr-00806", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "2 5 2;0 2 1;4 1 3;1 3 5", "output": "2 2 2;2 2 2;2 1 2;2 2 2"}, {"input": "0 2 2;0 4 2;0 1 5;1 5 3", "output": "2 2 2;2 4 2;2 1 2;2 2 2"}], "query_input": "1 4 4;0 5 2;5 1 0;5 4 2", "query_output": "2 2 2;2 5 2;2 1 2;2 2 2"} |
| {"task_id": "icgr-00600", "rule": "shift_rows+flip_h", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "3 3 5 0;0 0 2 1;0 5 0 1;4 2 5 4", "output": "5 3 3 0;2 0 0 1;0 5 0 1;5 2 4 4"}, {"input": "2 3 5 0;4 4 3 3;1 0 1 3;0 1 5 5", "output": "5 3 2 0;3 4 4 3;1 0 1 3;5 1 0 5"}, {"input": "5 0 1 4;5 0 0 1;3 2 4 2;2 3 1 4", "output": "1 0 5 4;0 0 5 1;4 2 3 2;1 3 2 4"}], "query_input": "2 1 0 3;0 1 2 4;5 2 4 3;2 2 4 1", "query_output": "0 1 2 3;2 1 0 4;4 2 5 3;4 2 2 1"} |
| {"task_id": "icgr-00915", "rule": "border+flip_v", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "5 0 0 3;4 1 0 3;2 3 5 1", "output": "4 4 4 4;4 1 0 4;4 4 4 4"}, {"input": "0 2 5 2;1 5 0 0;1 2 4 1", "output": "4 4 4 4;4 5 0 4;4 4 4 4"}], "query_input": "1 2 0 5;4 3 4 0;5 1 0 2", "query_output": "4 4 4 4;4 3 4 4;4 4 4 4"} |
| {"task_id": "icgr-00019", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "1 1 3 0 3;1 1 1 1 2;0 2 2 0 2;3 0 0 1 0", "output": "3 1 1 3 0;2 1 1 1 1;2 0 2 2 0;0 3 0 0 1"}, {"input": "1 3 1 2 0;3 2 1 2 0;2 1 1 1 3;3 0 1 0 0", "output": "0 1 3 1 2;0 3 2 1 2;3 2 1 1 1;0 3 0 1 0"}, {"input": "0 2 0 0 0;2 0 2 0 0;3 1 3 1 0;3 3 2 0 1", "output": "0 0 2 0 0;0 2 0 2 0;0 3 1 3 1;1 3 3 2 0"}, {"input": "3 3 3 2 3;1 1 1 3 3;3 2 3 3 3;0 2 3 0 1", "output": "3 3 3 3 2;3 1 1 1 3;3 3 2 3 3;1 0 2 3 0"}], "query_input": "3 0 1 2 0;1 0 2 2 0;2 1 0 0 3;2 1 3 1 3", "query_output": "0 3 0 1 2;0 1 0 2 2;3 2 1 0 0;3 2 1 3 1"} |
| {"task_id": "icgr-00711", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "3 0 4 1;0 2 2 0;4 0 2 4;4 1 1 1;2 1 2 4", "output": "3 0 4 4 2;0 2 0 1 1;4 2 2 1 2;1 0 4 1 4"}, {"input": "4 1 4 2;3 2 2 1;2 0 1 0;2 2 0 1;2 0 4 4", "output": "4 3 2 2 2;1 2 0 2 0;4 2 1 0 4;2 1 0 1 4"}, {"input": "2 4 1 2;3 2 2 4;0 1 1 1;2 1 1 3;3 2 0 3", "output": "2 3 0 2 3;4 2 1 1 2;1 2 1 1 0;2 4 1 3 3"}], "query_input": "2 0 2 4;4 3 2 0;4 2 4 2;1 2 1 1;0 0 0 4", "query_output": "2 4 4 1 0;0 3 2 2 0;2 2 4 1 0;4 0 2 1 4"} |
| {"task_id": "icgr-00471", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 6, "grid_w": 4, "num_support": 3, "support": [{"input": "3 2 0 0;0 2 0 2;0 3 2 3;1 0 2 3;2 0 1 3;1 3 0 3", "output": "3 2;3 3;3 3"}, {"input": "0 2 3 0;3 3 2 1;2 2 0 3;1 2 3 1;2 3 0 0;3 3 2 2", "output": "3 3;2 3;3 2"}, {"input": "3 2 0 3;3 1 0 3;0 2 3 2;3 1 3 1;2 3 0 1;0 2 1 1", "output": "3 3;3 3;3 1"}], "query_input": "1 1 0 1;1 0 3 3;3 0 3 0;2 3 3 1;1 0 1 2;3 2 2 0", "query_output": "1 3;3 3;3 2"} |
| {"task_id": "icgr-00293", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "1 0 1 3;3 1 1 1;0 0 0 3;1 0 0 2", "output": "3 2 3 1;1 3 3 3;2 2 2 1;3 2 2 0"}, {"input": "2 0 3 1;1 3 0 2;0 1 3 1;1 2 3 2", "output": "0 2 1 3;3 1 2 0;2 3 1 3;3 0 1 0"}, {"input": "2 0 1 3;1 1 0 2;0 3 1 1;3 2 2 2", "output": "0 2 3 1;3 3 2 0;2 1 3 3;1 0 0 0"}, {"input": "3 3 2 1;1 3 3 2;3 1 2 0;1 0 3 0", "output": "1 1 0 3;3 1 1 0;1 3 0 2;3 2 1 2"}], "query_input": "2 0 2 2;3 2 2 2;1 3 0 2;1 2 2 2", "query_output": "0 2 0 0;1 0 0 0;3 1 2 0;3 0 0 0"} |
| {"task_id": "icgr-00231", "rule": "flip_v+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "0 1 3;3 0 4;2 4 2;2 2 0", "output": "3 3 1;3 0 3;4 1 0;1 2 4"}, {"input": "4 4 3;3 1 2;0 4 4;1 4 0", "output": "2 0 1;1 0 0;4 2 3;0 0 4"}, {"input": "0 3 3;1 0 0;2 2 4;2 2 0", "output": "3 3 1;3 3 0;2 1 1;1 4 4"}], "query_input": "1 4 4;1 1 3;4 3 1;4 4 0", "query_output": "0 0 1;0 4 2;2 2 4;2 0 0"} |
| {"task_id": "icgr-00508", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "2 1 2;1 5 1;3 4 4", "output": "3 4 4;1 5 1;2 1 2"}, {"input": "1 5 3;4 1 5;3 4 5", "output": "3 4 5;4 1 5;1 5 3"}, {"input": "3 2 0;1 1 2;0 5 3", "output": "0 5 3;1 1 2;3 2 0"}], "query_input": "3 1 0;4 0 5;3 5 3", "query_output": "3 5 3;4 0 5;3 1 0"} |
| {"task_id": "icgr-00535", "rule": "flip_h+flip_v", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "5 5 1;0 2 2;2 4 4", "output": "4 4 2;2 2 0;1 5 5"}, {"input": "4 2 1;0 1 1;4 3 0", "output": "0 3 4;1 1 0;1 2 4"}, {"input": "5 1 0;5 0 4;5 3 3", "output": "3 3 5;4 0 5;0 1 5"}], "query_input": "0 0 0;2 0 2;2 3 1", "query_output": "1 3 2;2 0 2;0 0 0"} |
| {"task_id": "icgr-00781", "rule": "shift_rows+color_swap", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "2 0 3 3 2;2 2 2 3 3;0 2 3 1 3", "output": "2 2 0 3 3;3 2 2 2 3;3 0 2 3 1"}, {"input": "3 3 1 0 2;3 2 1 2 0;1 2 1 2 2", "output": "2 3 3 1 0;0 3 2 1 2;2 1 2 1 2"}, {"input": "1 0 3 1 2;3 2 1 0 2;1 0 2 0 1", "output": "2 1 0 3 1;2 3 2 1 0;1 1 0 2 0"}], "query_input": "1 0 1 1 1;0 1 0 1 3;1 0 2 3 2", "query_output": "1 1 0 1 1;3 0 1 0 1;2 1 0 2 3"} |
| {"task_id": "icgr-00008", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "0 1 2;0 0 5;0 1 0;4 3 1;0 0 3", "output": "0 0 3;4 3 1;0 1 0;0 0 5;0 1 2"}, {"input": "5 1 1;1 2 1;3 3 2;5 2 1;3 2 1", "output": "3 2 1;5 2 1;3 3 2;1 2 1;5 1 1"}, {"input": "1 5 0;1 2 4;4 3 0;2 1 2;5 4 1", "output": "5 4 1;2 1 2;4 3 0;1 2 4;1 5 0"}], "query_input": "0 3 0;4 2 1;1 0 0;0 3 3;2 0 1", "query_output": "2 0 1;0 3 3;1 0 0;4 2 1;0 3 0"} |
| {"task_id": "icgr-00954", "rule": "shift_rows+flip_h", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "5 3 3 4 5;0 4 0 1 3;3 4 1 5 3;1 4 5 4 5;2 0 4 1 5", "output": "4 3 3 5 5;1 0 4 0 3;5 1 4 3 3;4 5 4 1 5;1 4 0 2 5"}, {"input": "0 1 4 1 2;0 0 3 4 5;1 1 4 0 2;3 5 5 4 4;0 5 4 0 2", "output": "1 4 1 0 2;4 3 0 0 5;0 4 1 1 2;4 5 5 3 4;0 4 5 0 2"}, {"input": "0 3 2 0 0;3 1 5 3 0;0 0 5 2 1;0 1 0 5 1;4 1 2 3 0", "output": "0 2 3 0 0;3 5 1 3 0;2 5 0 0 1;5 0 1 0 1;3 2 1 4 0"}], "query_input": "5 4 5 1 4;5 0 3 1 2;4 5 0 2 4;3 5 5 1 3;3 4 4 1 4", "query_output": "1 5 4 5 4;1 3 0 5 2;2 0 5 4 4;1 5 5 3 3;1 4 4 3 4"} |
| {"task_id": "icgr-00198", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "2 1 1 1 1;2 0 2 1 2;1 1 2 1 1;2 3 3 2 1;3 3 1 3 3", "output": "2 2 1 2 3;1 0 1 3 3;1 2 2 3 1;1 1 1 2 3;1 2 1 1 3"}, {"input": "1 3 3 1 1;2 2 3 3 0;1 3 2 3 0;0 1 2 2 1;0 1 0 0 2", "output": "1 2 1 0 0;3 2 3 1 1;3 3 2 2 0;1 3 3 2 0;1 0 0 1 2"}], "query_input": "0 2 0 3 0;2 2 0 2 2;0 0 1 3 3;3 0 1 0 3;3 2 0 3 2", "query_output": "0 2 0 3 3;2 2 0 0 2;0 0 1 1 0;3 2 3 0 3;0 2 3 3 2"} |
| {"task_id": "icgr-00202", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "1 1 0 1 3;1 0 2 1 0;1 1 2 0 3;1 2 1 0 3;2 1 1 1 3", "output": "1 1 2 1 3;1 2 0 1 2;1 1 0 2 3;1 0 1 2 3;0 1 1 1 3"}, {"input": "2 2 3 0 2;1 2 3 1 2;2 3 2 1 0;3 2 0 0 2;2 0 0 0 2", "output": "0 0 3 2 0;1 0 3 1 0;0 3 0 1 2;3 0 2 2 0;0 2 2 2 0"}, {"input": "0 2 3 3 3;2 3 0 3 0;0 0 1 2 1;2 3 2 2 2;0 0 0 1 0", "output": "2 0 3 3 3;0 3 2 3 2;2 2 1 0 1;0 3 0 0 0;2 2 2 1 2"}, {"input": "1 0 0 1 1;0 3 1 2 2;0 3 0 1 1;2 1 1 3 1;3 3 0 1 2", "output": "1 2 2 1 1;2 3 1 0 0;2 3 2 1 1;0 1 1 3 1;3 3 2 1 0"}], "query_input": "0 0 3 2 3;0 2 3 0 3;1 1 2 0 3;1 0 2 1 3;1 3 2 3 2", "query_output": "2 2 3 0 3;2 0 3 2 3;1 1 0 2 3;1 2 0 1 3;1 3 0 3 0"} |
| {"task_id": "icgr-00173", "rule": "flip_v+flip_h", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "1 1 2 1;2 2 0 1;1 3 2 1;1 0 2 0;0 3 1 1", "output": "1 1 3 0;0 2 0 1;1 2 3 1;1 0 2 2;1 2 1 1"}, {"input": "1 3 2 0;2 1 2 0;1 3 0 1;3 1 1 1;0 1 3 2", "output": "2 3 1 0;1 1 1 3;1 0 3 1;0 2 1 2;0 2 3 1"}, {"input": "1 1 1 2;2 1 0 1;0 0 0 2;3 1 1 3;2 1 2 1", "output": "1 2 1 2;3 1 1 3;2 0 0 0;1 0 1 2;2 1 1 1"}], "query_input": "2 1 0 0;3 2 3 3;3 2 2 2;0 2 0 2;3 0 3 1", "query_output": "1 3 0 3;2 0 2 0;2 2 2 3;3 3 2 3;0 0 1 2"} |
| {"task_id": "icgr-00436", "rule": "color_swap+flip_v", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "3 0 1 2 0;1 0 2 1 0;2 1 3 3 2;2 3 2 2 0;1 2 1 1 2", "output": "0 2 0 0 2;2 3 2 2 1;2 0 3 3 2;0 1 2 0 1;3 1 0 2 1"}, {"input": "3 1 0 2 3;2 1 2 0 1;2 2 0 0 1;3 0 1 3 0;1 1 1 2 3", "output": "0 0 0 2 3;3 1 0 3 1;2 2 1 1 0;2 0 2 1 0;3 0 1 2 3"}, {"input": "3 3 2 3 0;3 1 2 0 1;1 1 2 1 2;3 3 3 3 1;1 2 1 1 3", "output": "0 2 0 0 3;3 3 3 3 0;0 0 2 0 2;3 0 2 1 0;3 3 2 3 1"}], "query_input": "3 1 1 0 0;3 2 1 3 1;0 3 1 2 3;0 2 2 1 1;3 2 2 0 0", "query_output": "3 2 2 1 1;1 2 2 0 0;1 3 0 2 3;3 2 0 3 0;3 0 0 1 1"} |
| {"task_id": "icgr-00319", "rule": "flip_h+border", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "3 3 2 3 0;2 0 2 3 0;3 1 2 1 0;2 3 2 3 3", "output": "1 1 1 1 1;1 3 2 0 1;1 1 2 1 1;1 1 1 1 1"}, {"input": "1 2 3 2 2;3 0 1 3 3;0 0 2 2 0;1 0 3 2 2", "output": "1 1 1 1 1;1 3 1 0 1;1 2 2 0 1;1 1 1 1 1"}, {"input": "2 3 3 1 0;2 1 0 2 0;1 1 0 3 1;2 2 0 0 3", "output": "1 1 1 1 1;1 2 0 1 1;1 3 0 1 1;1 1 1 1 1"}], "query_input": "2 2 1 3 3;3 2 2 2 0;0 2 1 0 3;3 3 0 0 2", "query_output": "1 1 1 1 1;1 2 2 2 1;1 0 1 2 1;1 1 1 1 1"} |
| {"task_id": "icgr-00558", "rule": "color_swap+shift_rows", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "2 0 1 1;2 0 3 1;2 0 0 0;0 2 0 3", "output": "1 1 2 0;3 1 2 0;0 0 2 0;0 3 0 2"}, {"input": "0 3 0 0;1 1 0 1;0 1 3 0;1 0 3 2", "output": "0 0 0 3;0 1 1 1;3 0 0 1;3 2 1 0"}, {"input": "1 1 2 1;0 1 1 1;0 1 3 2;0 1 0 0", "output": "2 1 1 1;1 1 0 1;3 2 0 1;0 0 0 1"}, {"input": "1 1 0 3;1 1 3 2;3 2 3 3;0 3 1 1", "output": "0 3 1 1;3 2 1 1;3 3 3 2;1 1 0 3"}], "query_input": "3 3 1 2;1 3 3 2;1 2 2 3;3 3 2 1", "query_output": "1 2 3 3;3 2 1 3;2 3 1 2;2 1 3 3"} |
| {"task_id": "icgr-00423", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "4 3 0 0 2;0 2 0 1 2;4 2 4 1 4;2 2 1 0 3", "output": "2 4 0 4;2 2 2 3;1 4 0 0;0 1 1 0;3 4 2 2"}, {"input": "2 2 4 3 0;1 0 2 2 3;1 2 3 1 1;4 2 4 4 1", "output": "4 1 1 2;2 2 0 2;4 3 2 4;4 1 2 3;1 1 3 0"}, {"input": "4 4 3 1 2;3 4 2 4 3;4 2 2 3 3;2 2 0 3 2", "output": "2 4 3 4;2 2 4 4;0 2 2 3;3 3 4 1;2 3 3 2"}, {"input": "1 3 1 1 4;3 3 4 4 3;2 1 2 1 4;1 1 1 3 1", "output": "1 2 3 1;1 1 3 3;1 2 4 1;3 1 4 1;1 4 3 4"}], "query_input": "3 0 2 2 3;1 4 0 0 4;4 0 0 1 2;1 3 3 4 1", "query_output": "1 4 1 3;3 0 4 0;3 0 0 2;4 1 0 2;1 2 4 3"} |
| {"task_id": "icgr-00742", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "1 2 0 1;1 3 0 3;0 3 2 3;0 2 0 4;4 0 2 4", "output": "1 1 2 0;3 1 3 0;3 0 3 2;4 0 2 0;4 4 0 2"}, {"input": "0 4 0 4;1 3 0 2;4 1 1 4;4 2 3 4;0 1 1 3", "output": "4 0 4 0;2 1 3 0;4 4 1 1;4 4 2 3;3 0 1 1"}], "query_input": "3 1 2 0;0 0 4 0;4 4 2 4;4 0 1 1;4 1 1 3", "query_output": "0 3 1 2;0 0 0 4;4 4 4 2;1 4 0 1;3 4 1 1"} |
| {"task_id": "icgr-00136", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 6, "grid_w": 6, "num_support": 4, "support": [{"input": "1 1 3 0 5 3;1 1 1 3 2 1;1 5 4 5 3 3;2 1 4 1 4 5;5 2 5 4 3 1;5 1 4 5 3 2", "output": "1 3 5;5 5 5;5 5 3"}, {"input": "5 2 3 0 0 5;2 2 5 0 5 0;1 5 3 1 2 0;4 3 2 2 1 0;2 5 2 5 2 0;4 0 0 3 0 4", "output": "5 5 5;5 3 2;5 5 4"}, {"input": "5 3 5 1 1 4;5 4 2 4 5 2;5 4 0 4 2 3;1 4 5 2 0 1;3 3 5 3 5 2;5 5 0 0 3 1", "output": "5 5 5;5 5 3;5 5 5"}, {"input": "4 5 0 2 5 4;4 1 4 3 5 2;3 1 4 5 0 1;2 4 4 0 5 1;5 1 2 4 3 3;4 4 5 2 3 5", "output": "5 4 5;4 5 5;5 5 5"}], "query_input": "4 2 5 4 2 0;1 1 3 0 0 1;3 3 4 5 0 1;5 4 5 0 0 0;2 1 5 2 1 1;1 0 4 5 5 5", "query_output": "4 5 2;5 5 1;2 5 5"} |
| {"task_id": "icgr-00867", "rule": "add_mod+flip_v", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "3 0 0;1 2 3;0 1 2;0 1 3;0 1 2", "output": "1 2 3;1 2 0;1 2 3;2 3 0;0 1 1"}, {"input": "0 3 0;2 0 1;1 3 1;0 2 0;2 1 2", "output": "3 2 3;1 3 1;2 0 2;3 1 2;1 0 1"}, {"input": "2 1 3;0 0 1;0 3 3;3 3 1;3 1 2", "output": "0 2 3;0 0 2;1 0 0;1 1 2;3 2 0"}], "query_input": "3 3 2;2 3 3;2 0 3;0 2 3;1 2 0", "query_output": "2 3 1;1 3 0;3 1 0;3 0 0;0 0 3"} |
| {"task_id": "icgr-00808", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "1 2 3 3;2 2 0 5;0 0 5 5;1 4 5 5", "output": "1 0 2 1;4 0 2 2;5 5 0 3;5 5 5 3"}, {"input": "4 3 2 4;0 3 4 1;2 1 3 2;0 2 3 3", "output": "0 2 0 4;2 1 3 3;3 3 4 2;3 2 1 4"}, {"input": "2 1 5 5;2 1 3 4;3 0 4 4;0 0 1 2", "output": "0 3 2 2;0 0 1 1;1 4 3 5;2 4 4 5"}, {"input": "3 0 0 2;1 0 5 2;5 4 4 0;0 0 3 5", "output": "0 5 1 3;0 4 0 0;3 4 5 0;5 0 2 2"}], "query_input": "1 0 3 0;5 1 5 4;0 5 5 3;5 1 0 3", "query_output": "5 0 5 1;1 5 1 0;0 5 5 3;3 3 4 0"} |
| {"task_id": "icgr-00537", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "1 1 3 0;0 2 1 0;4 0 3 4;1 3 1 1;2 3 4 3", "output": "4 4 4 4;4 2 1 4;4 0 3 4;4 3 1 4;4 4 4 4"}, {"input": "1 0 1 3;1 4 1 4;3 3 3 2;3 1 1 4;0 2 3 1", "output": "4 4 4 4;4 4 1 4;4 3 3 4;4 1 1 4;4 4 4 4"}, {"input": "2 2 1 3;2 0 0 1;4 1 1 1;4 3 4 1;1 0 1 1", "output": "4 4 4 4;4 0 0 4;4 1 1 4;4 3 4 4;4 4 4 4"}, {"input": "4 4 1 1;4 0 4 3;3 2 4 0;2 0 4 1;0 1 2 0", "output": "4 4 4 4;4 0 4 4;4 2 4 4;4 0 4 4;4 4 4 4"}], "query_input": "1 0 2 2;2 4 1 1;3 0 4 1;4 3 0 1;2 4 3 1", "query_output": "4 4 4 4;4 4 1 4;4 0 4 4;4 3 0 4;4 4 4 4"} |
| {"task_id": "icgr-00092", "rule": "flip_h+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "3 1 3 0 1;2 0 2 3 2;3 1 0 3 0;0 1 2 2 2;3 3 0 0 2", "output": "3 2 1 3 1;0 1 0 2 0;2 1 2 3 1;0 0 0 3 2;0 2 2 1 1"}, {"input": "0 2 3 1 3;3 1 1 2 1;1 0 1 1 0;2 2 0 0 0;0 1 1 2 0", "output": "1 3 1 0 2;3 0 3 3 1;2 3 3 2 3;2 2 2 0 0;2 0 3 3 2"}, {"input": "3 1 3 0 3;1 1 0 1 3;2 0 3 0 2;2 1 0 3 2;0 0 2 0 2", "output": "1 2 1 3 1;1 3 2 3 3;0 2 1 2 0;0 1 2 3 0;0 2 0 2 2"}, {"input": "3 0 0 2 2;0 0 1 0 2;3 3 3 1 1;1 1 3 2 1;3 3 0 1 1", "output": "0 0 2 2 1;0 2 3 2 2;3 3 1 1 1;3 0 1 3 3;3 3 2 1 1"}], "query_input": "0 2 0 2 2;0 2 1 3 0;1 0 2 0 0;2 2 0 2 2;0 0 3 2 0", "query_output": "0 0 2 0 2;2 1 3 0 2;2 2 0 2 3;0 0 2 0 0;2 0 1 2 2"} |
| {"task_id": "icgr-00127", "rule": "tile_h", "rule_kind": "atomic", "rule_description": "Concatenate the grid with a copy of itself, side by side.", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "4 0 4 3 2;1 1 1 2 4;3 1 0 2 1", "output": "4 0 4 3 2 4 0 4 3 2;1 1 1 2 4 1 1 1 2 4;3 1 0 2 1 3 1 0 2 1"}, {"input": "0 0 4 2 3;1 0 4 3 2;1 2 4 2 0", "output": "0 0 4 2 3 0 0 4 2 3;1 0 4 3 2 1 0 4 3 2;1 2 4 2 0 1 2 4 2 0"}], "query_input": "1 3 2 3 1;4 1 2 4 0;3 3 3 4 3", "query_output": "1 3 2 3 1 1 3 2 3 1;4 1 2 4 0 4 1 2 4 0;3 3 3 4 3 3 3 3 4 3"} |
| {"task_id": "icgr-00188", "rule": "flip_v+flip_h", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "0 2 2 3;4 2 1 0;1 2 1 0;4 2 0 1", "output": "1 0 2 4;0 1 2 1;0 1 2 4;3 2 2 0"}, {"input": "0 4 3 2;0 0 4 4;1 2 0 3;3 1 3 4", "output": "4 3 1 3;3 0 2 1;4 4 0 0;2 3 4 0"}, {"input": "3 1 3 1;3 4 1 4;1 0 2 0;4 0 1 1", "output": "1 1 0 4;0 2 0 1;4 1 4 3;1 3 1 3"}, {"input": "0 4 2 4;2 3 2 3;0 2 4 3;3 2 4 3", "output": "3 4 2 3;3 4 2 0;3 2 3 2;4 2 4 0"}], "query_input": "1 4 0 2;0 3 0 4;2 4 2 3;4 1 3 1", "query_output": "1 3 1 4;3 2 4 2;4 0 3 0;2 0 4 1"} |
| {"task_id": "icgr-00696", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "1 0 1 4;2 2 2 4;0 1 3 2", "output": "0 2 1;1 2 0;3 2 1;2 4 4"}, {"input": "3 0 2 2;2 0 1 0;4 1 1 4", "output": "4 2 3;1 0 0;1 1 2;4 0 2"}, {"input": "4 4 3 4;0 4 0 1;2 1 0 4", "output": "2 0 4;1 4 4;0 0 3;4 1 4"}, {"input": "4 2 4 3;3 4 1 3;0 2 1 3", "output": "0 3 4;2 4 2;1 1 4;3 3 3"}], "query_input": "2 4 0 4;2 0 4 1;4 1 0 2", "query_output": "4 2 2;1 0 4;0 4 0;2 1 4"} |
| {"task_id": "icgr-00232", "rule": "flip_v+border", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "2 3 4 3;4 0 1 5;4 1 2 4", "output": "0 0 0 0;0 0 1 0;0 0 0 0"}, {"input": "3 5 3 0;2 5 1 5;3 2 3 1", "output": "0 0 0 0;0 5 1 0;0 0 0 0"}, {"input": "5 0 0 2;3 5 0 2;2 5 4 4", "output": "0 0 0 0;0 5 0 0;0 0 0 0"}], "query_input": "3 0 0 3;5 3 5 1;1 2 3 2", "query_output": "0 0 0 0;0 3 5 0;0 0 0 0"} |
| {"task_id": "icgr-00470", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "3 5 3 4;5 0 1 2;5 0 0 0;3 1 1 2;4 0 0 4", "output": "4 3 5 3;2 1 0 5;0 0 0 5;2 1 1 3;4 0 0 4"}, {"input": "3 2 2 2;3 1 1 5;3 5 4 4;2 0 1 5;1 1 4 1", "output": "2 2 2 3;5 1 1 3;4 4 5 3;5 1 0 2;1 4 1 1"}, {"input": "1 4 0 1;4 5 4 2;3 4 3 5;0 2 3 2;3 5 0 0", "output": "1 0 4 1;2 4 5 4;5 3 4 3;2 3 2 0;0 0 5 3"}], "query_input": "2 3 4 0;4 3 3 0;1 2 3 1;1 4 5 3;1 3 4 3", "query_output": "0 4 3 2;0 3 3 4;1 3 2 1;3 5 4 1;3 4 3 1"} |
| {"task_id": "icgr-00284", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "5 1 1 2 0;1 2 0 2 1;5 0 0 2 1", "output": "5 1 1 2 0;1 2 0 2 1;5 0 0 2 1"}, {"input": "3 4 4 1 1;5 4 3 5 3;0 3 5 5 1", "output": "4 3 3 1 1;5 3 4 5 4;0 4 5 5 1"}, {"input": "5 1 2 1 4;4 0 2 4 0;3 2 1 4 3", "output": "5 1 2 1 3;3 0 2 3 0;4 2 1 3 4"}, {"input": "1 3 4 4 5;1 0 3 5 1;1 4 1 5 0", "output": "1 4 3 3 5;1 0 4 5 1;1 3 1 5 0"}], "query_input": "4 4 0 5 2;0 3 4 1 5;3 2 3 5 1", "query_output": "3 3 0 5 2;0 4 3 1 5;4 2 4 5 1"} |
| {"task_id": "icgr-00254", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "2 3 1 3;0 3 3 0;1 2 2 1;2 2 2 2;3 1 2 2", "output": "2 0 1 2 3;3 3 2 2 1;1 3 2 2 2;3 0 1 2 2"}, {"input": "2 0 3 0;1 3 3 0;0 3 2 2;2 3 0 2;2 0 0 1", "output": "2 1 0 2 2;0 3 3 3 0;3 3 2 0 0;0 0 2 2 1"}], "query_input": "1 3 2 2;1 2 0 3;2 3 1 0;1 2 0 0;3 1 0 3", "query_output": "1 1 2 1 3;3 2 3 2 1;2 0 1 0 0;2 3 0 0 3"} |
| {"task_id": "icgr-00234", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "0 3 0 1 3;0 1 1 0 3;1 1 0 1 2", "output": "1 1 0 1 2;0 1 1 0 3;0 3 0 1 3"}, {"input": "1 2 1 1 3;1 1 0 0 3;0 2 0 0 3", "output": "0 2 0 0 3;1 1 0 0 3;1 2 1 1 3"}, {"input": "0 1 2 2 2;3 1 2 2 0;3 2 2 3 0", "output": "3 2 2 3 0;3 1 2 2 0;0 1 2 2 2"}], "query_input": "1 2 2 3 0;2 3 0 1 3;3 3 3 1 0", "query_output": "3 3 3 1 0;2 3 0 1 3;1 2 2 3 0"} |
| {"task_id": "icgr-00073", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "1 4 0 2 4;4 0 3 0 4;2 1 3 2 4;0 2 1 4 2", "output": "0 2 1 4 2;2 1 3 2 4;4 0 3 0 4;1 4 0 2 4"}, {"input": "3 0 0 0 3;3 2 1 2 4;0 0 2 2 2;0 2 4 2 3", "output": "0 2 4 2 3;0 0 2 2 2;3 2 1 2 4;3 0 0 0 3"}, {"input": "4 1 1 3 4;2 4 3 4 3;2 0 3 1 1;3 3 1 0 0", "output": "3 3 1 0 0;2 0 3 1 1;2 4 3 4 3;4 1 1 3 4"}], "query_input": "0 0 0 0 0;0 2 2 3 4;2 3 4 2 2;0 3 0 3 2", "query_output": "0 3 0 3 2;2 3 4 2 2;0 2 2 3 4;0 0 0 0 0"} |
| {"task_id": "icgr-00720", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "2 3 1;1 0 1;0 0 0", "output": "2 3 1;1 0 1;0 0 0"}, {"input": "1 2 1;3 2 3;1 0 3", "output": "1 2 1;3 2 3;1 0 3"}], "query_input": "2 0 1;0 0 1;0 1 0", "query_output": "2 0 1;0 0 1;0 1 0"} |
| {"task_id": "icgr-00141", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "3 3 3 2 0;5 2 5 2 2;2 2 4 0 2;3 4 0 4 1", "output": "1 1 1 1 1;1 2 5 2 1;1 2 4 0 1;1 1 1 1 1"}, {"input": "3 5 2 5 1;4 1 0 3 4;5 2 0 5 5;2 4 0 0 5", "output": "1 1 1 1 1;1 1 0 3 1;1 2 0 5 1;1 1 1 1 1"}], "query_input": "1 2 3 5 3;4 4 1 1 2;2 1 3 1 0;0 5 1 4 3", "query_output": "1 1 1 1 1;1 4 1 1 1;1 1 3 1 1;1 1 1 1 1"} |
| {"task_id": "icgr-00551", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 6, "grid_h": 6, "grid_w": 4, "num_support": 4, "support": [{"input": "2 4 4 5;2 2 1 5;1 0 2 1;2 2 0 0;3 3 3 1;0 4 2 5", "output": "4 5;2 2;4 5"}, {"input": "3 4 0 0;5 2 0 4;3 4 4 0;2 1 3 1;1 1 2 1;0 4 0 1", "output": "5 4;4 4;4 2"}, {"input": "5 1 4 1;3 0 4 0;0 4 4 3;2 3 4 0;4 0 1 0;3 3 4 4", "output": "5 4;4 4;4 4"}, {"input": "4 2 1 1;4 4 4 2;1 1 4 2;2 1 1 2;2 0 5 2;2 5 2 5", "output": "4 4;2 4;5 5"}], "query_input": "4 1 1 2;5 0 0 1;1 5 1 2;5 5 5 5;2 4 4 5;3 2 5 3", "query_output": "5 2;5 5;4 5"} |
| {"task_id": "icgr-00887", "rule": "color_swap+shift_rows", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "0 0 0;0 0 0;1 3 3;1 1 2", "output": "0 0 0;0 0 0;3 3 1;1 2 1"}, {"input": "0 0 2;2 0 3;1 2 3;1 0 1", "output": "0 2 0;0 3 2;2 3 1;0 1 1"}, {"input": "1 3 0;1 1 1;3 2 1;0 3 1", "output": "3 0 1;1 1 1;2 1 3;3 1 0"}], "query_input": "2 2 3;1 0 2;3 2 2;3 2 0", "query_output": "2 3 2;0 2 1;2 2 3;2 0 3"} |
| {"task_id": "icgr-00028", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "5 3 3;5 0 3;1 2 0;4 0 2;3 3 0", "output": "3 3 0;4 0 2;1 2 0;5 0 3;5 3 3"}, {"input": "4 0 5;3 2 5;2 4 3;4 0 4;1 1 2", "output": "1 1 2;4 0 4;2 4 3;3 2 5;4 0 5"}, {"input": "0 1 2;1 0 4;1 3 0;0 0 3;3 4 3", "output": "3 4 3;0 0 3;1 3 0;1 0 4;0 1 2"}, {"input": "4 0 2;2 2 0;5 3 3;5 0 2;1 5 3", "output": "1 5 3;5 0 2;5 3 3;2 2 0;4 0 2"}], "query_input": "5 0 3;1 4 2;5 4 3;3 3 0;1 5 5", "query_output": "1 5 5;3 3 0;5 4 3;1 4 2;5 0 3"} |
| {"task_id": "icgr-00048", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "0 3 0 1;0 1 1 1;0 2 0 0;0 3 3 0", "output": "1 3 1 0;1 0 0 0;1 2 1 1;1 3 3 1"}, {"input": "1 0 3 0;2 0 3 2;1 3 0 0;1 2 2 1", "output": "0 1 3 1;2 1 3 2;0 3 1 1;0 2 2 0"}], "query_input": "1 0 0 1;0 0 1 3;3 2 0 3;0 0 1 2", "query_output": "0 1 1 0;1 1 0 3;3 2 1 3;1 1 0 2"} |
| {"task_id": "icgr-00680", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "2 2 3;3 1 2;0 2 3", "output": "1 1 2;2 0 1;3 1 2"}, {"input": "1 2 1;1 3 1;0 2 0", "output": "0 1 0;0 2 0;3 1 3"}], "query_input": "1 2 1;3 1 1;1 3 3", "query_output": "0 1 0;2 0 0;0 2 2"} |
| {"task_id": "icgr-00443", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "1 2 1 0;1 1 4 2;4 3 0 1;3 1 0 2", "output": "2 4;4 2"}, {"input": "4 4 3 4;1 4 2 4;3 3 2 2;1 1 2 1", "output": "4 4;3 2"}, {"input": "3 4 2 1;4 3 2 1;2 0 4 1;0 1 4 2", "output": "4 2;2 4"}], "query_input": "0 4 0 4;0 1 1 1;0 1 2 4;2 0 1 4", "query_output": "4 4;2 4"} |
| {"task_id": "icgr-00861", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "3 0 0 4;1 1 4 1;3 2 0 1;0 1 3 0", "output": "3 0 0 4;1 1 4 1;3 2 0 1;0 1 3 0"}, {"input": "4 2 3 3;3 4 3 4;2 4 1 4;4 4 3 0", "output": "4 2 3 3;3 4 3 4;2 4 1 4;4 4 3 0"}, {"input": "4 0 3 1;2 4 0 2;1 3 3 0;1 1 0 4", "output": "4 0 3 1;2 4 0 2;1 3 3 0;1 1 0 4"}, {"input": "1 0 1 2;1 1 0 3;4 2 4 2;1 1 2 3", "output": "1 0 1 2;1 1 0 3;4 2 4 2;1 1 2 3"}], "query_input": "1 4 3 3;0 1 1 4;0 1 2 1;3 3 3 3", "query_output": "1 4 3 3;0 1 1 4;0 1 2 1;3 3 3 3"} |
| {"task_id": "icgr-00549", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "5 5 3 1 1;4 4 1 4 4;4 5 3 1 3;3 0 3 2 3", "output": "1 1 5 3 3;0 0 3 0 0;0 1 5 3 5;5 2 5 4 5"}, {"input": "5 3 2 3 3;0 2 2 4 0;4 0 2 2 2;2 5 5 0 0", "output": "1 5 4 5 5;2 4 4 0 2;0 2 4 4 4;4 1 1 2 2"}, {"input": "3 3 4 1 1;3 1 2 4 1;1 2 0 0 2;3 1 3 3 4", "output": "5 5 0 3 3;5 3 4 0 3;3 4 2 2 4;5 3 5 5 0"}], "query_input": "1 0 2 3 0;3 0 0 3 3;0 3 1 0 0;5 2 3 2 4", "query_output": "3 2 4 5 2;5 2 2 5 5;2 5 3 2 2;1 4 5 4 0"} |
| {"task_id": "icgr-00882", "rule": "border+add_mod", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "2 3 0 2;0 3 5 2;3 1 1 3;5 1 0 1;0 0 5 0", "output": "3 3 3 3;3 5 1 3;3 3 3 3;3 3 2 3;3 3 3 3"}, {"input": "4 4 4 5;1 2 3 2;4 1 4 2;3 2 3 0;3 3 5 3", "output": "3 3 3 3;3 4 5 3;3 3 0 3;3 4 5 3;3 3 3 3"}, {"input": "1 5 2 3;2 1 4 4;4 2 2 3;1 5 0 5;4 0 1 5", "output": "3 3 3 3;3 3 0 3;3 4 4 3;3 1 2 3;3 3 3 3"}, {"input": "0 0 3 4;0 5 2 2;1 0 2 1;4 0 4 1;1 3 4 5", "output": "3 3 3 3;3 1 4 3;3 2 4 3;3 2 0 3;3 3 3 3"}], "query_input": "2 4 5 4;5 0 5 4;1 4 3 2;5 2 2 5;3 0 2 2", "query_output": "3 3 3 3;3 2 1 3;3 0 5 3;3 4 4 3;3 3 3 3"} |
| {"task_id": "icgr-00122", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "0 3 5 2 3;3 5 3 1 3;4 3 3 5 0;5 3 5 3 5;3 2 4 0 2", "output": "2 3 0 3 5;1 3 3 5 3;5 0 4 3 3;3 5 5 3 5;0 2 3 2 4"}, {"input": "4 0 5 3 3;3 2 4 3 3;1 3 4 1 5;2 1 2 3 2;4 2 2 3 0", "output": "3 3 4 0 5;3 3 3 2 4;1 5 1 3 4;3 2 2 1 2;3 0 4 2 2"}], "query_input": "1 0 1 5 4;5 2 4 5 2;5 4 0 1 4;4 0 0 4 2;4 1 3 3 4", "query_output": "5 4 1 0 1;5 2 5 2 4;1 4 5 4 0;4 2 4 0 0;3 4 4 1 3"} |
| {"task_id": "icgr-00336", "rule": "border+shift_rows", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "4 2 4;1 2 3;4 3 2", "output": "4 4 4;4 4 2;4 4 4"}, {"input": "1 0 0;0 3 1;1 2 1", "output": "4 4 4;4 4 3;4 4 4"}, {"input": "1 2 1;3 0 2;4 2 2", "output": "4 4 4;4 4 0;4 4 4"}, {"input": "1 1 4;0 4 3;3 3 3", "output": "4 4 4;4 4 4;4 4 4"}], "query_input": "2 1 3;4 0 0;0 0 1", "query_output": "4 4 4;4 4 0;4 4 4"} |
| {"task_id": "icgr-00952", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "1 2 1;3 0 4;1 3 3", "output": "1 3 1;3 0 2;3 4 1"}, {"input": "3 4 4;0 3 4;2 4 4", "output": "2 0 3;4 3 4;4 4 4"}], "query_input": "1 5 0;4 4 0;2 3 2", "query_output": "2 4 1;3 4 5;2 0 0"} |
| {"task_id": "icgr-00554", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "5 4 4;2 3 5;3 2 1", "output": "3 2 1;2 3 5;5 4 4"}, {"input": "0 4 2;3 1 2;4 4 1", "output": "4 4 1;3 1 2;0 4 2"}], "query_input": "0 5 3;4 2 3;0 3 1", "query_output": "0 3 1;4 2 3;0 5 3"} |
| {"task_id": "icgr-00897", "rule": "flip_h+border", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "5 2 4 0;2 4 4 2;1 1 2 0", "output": "0 0 0 0;0 4 4 0;0 0 0 0"}, {"input": "1 3 2 5;3 2 2 3;5 1 3 1", "output": "0 0 0 0;0 2 2 0;0 0 0 0"}, {"input": "2 3 0 1;1 3 4 5;2 2 2 0", "output": "0 0 0 0;0 4 3 0;0 0 0 0"}, {"input": "3 1 0 5;3 0 4 5;5 3 3 0", "output": "0 0 0 0;0 4 0 0;0 0 0 0"}], "query_input": "3 0 4 2;5 0 0 5;5 0 4 0", "query_output": "0 0 0 0;0 0 0 0;0 0 0 0"} |
| {"task_id": "icgr-00654", "rule": "border+shift_rows", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "4 2 5 3 3;1 5 1 3 4;3 5 2 0 2;2 5 4 1 2", "output": "4 4 4 4 4;3 4 4 5 1;0 4 4 5 2;4 4 4 4 4"}, {"input": "1 5 4 0 1;0 3 2 3 3;0 0 4 4 2;3 0 0 3 5", "output": "4 4 4 4 4;3 4 4 3 2;4 4 4 0 4;4 4 4 4 4"}], "query_input": "4 1 3 3 1;3 3 5 4 2;2 5 3 4 5;4 4 2 0 1", "query_output": "4 4 4 4 4;4 4 4 3 5;4 4 4 5 3;4 4 4 4 4"} |
| {"task_id": "icgr-00838", "rule": "border+flip_v", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Mirror the grid top-to-bottom.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "1 3 3 4 3;4 1 2 4 3;0 0 1 2 0;0 2 1 1 0;3 4 0 3 1", "output": "3 3 3 3 3;3 2 1 1 3;3 0 1 2 3;3 1 2 4 3;3 3 3 3 3"}, {"input": "1 3 4 0 1;2 1 3 4 3;3 4 2 1 1;1 0 4 3 0;4 0 3 3 0", "output": "3 3 3 3 3;3 0 4 3 3;3 4 2 1 3;3 1 3 4 3;3 3 3 3 3"}, {"input": "2 2 1 4 2;1 4 2 2 4;4 4 1 0 1;2 1 2 4 0;4 3 0 2 2", "output": "3 3 3 3 3;3 1 2 4 3;3 4 1 0 3;3 4 2 2 3;3 3 3 3 3"}], "query_input": "3 3 3 1 0;1 4 3 3 3;3 0 4 4 3;3 4 4 0 0;0 4 2 0 1", "query_output": "3 3 3 3 3;3 4 4 0 3;3 0 4 4 3;3 4 3 3 3;3 3 3 3 3"} |
| {"task_id": "icgr-00369", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 4, "grid_h": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "2 3 2 1;0 3 1 2;2 1 0 2;2 1 1 2;2 0 0 0", "output": "1 2 3 2;2 0 3 1;2 2 1 0;2 2 1 1;0 2 0 0"}, {"input": "2 3 1 1;1 0 3 0;2 2 2 1;2 2 3 1;2 2 3 2", "output": "1 2 3 1;0 1 0 3;1 2 2 2;1 2 2 3;2 2 2 3"}], "query_input": "3 0 0 2;1 2 1 3;2 0 1 0;0 3 0 0;1 3 3 0", "query_output": "2 3 0 0;3 1 2 1;0 2 0 1;0 0 3 0;0 1 3 3"} |
| {"task_id": "icgr-00578", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "2 0 1 0 0;0 1 0 1 2;0 3 2 3 0;2 0 1 1 2;2 0 3 0 0", "output": "0 0 1 0 2;2 1 0 1 0;0 3 2 3 0;2 1 1 0 2;0 0 3 0 2"}, {"input": "2 0 1 0 1;0 3 2 2 3;2 0 0 3 1;3 3 1 3 0;3 1 0 1 3", "output": "1 0 1 0 2;3 2 2 3 0;1 3 0 0 2;0 3 1 3 3;3 1 0 1 3"}], "query_input": "0 2 3 1 1;1 0 2 3 3;3 2 2 3 0;0 2 3 1 3;0 2 3 2 0", "query_output": "1 1 3 2 0;3 3 2 0 1;0 3 2 2 3;3 1 3 2 0;0 2 3 2 0"} |
| {"task_id": "icgr-00768", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "4 1 0 4;5 1 3 2;1 4 4 1;0 5 5 1", "output": "0 5 5 1;1 4 4 1;5 1 3 2;4 1 0 4"}, {"input": "1 3 3 2;0 1 1 1;3 5 3 2;4 5 0 4", "output": "4 5 0 4;3 5 3 2;0 1 1 1;1 3 3 2"}, {"input": "0 0 4 4;4 5 1 0;0 4 1 2;5 5 4 3", "output": "5 5 4 3;0 4 1 2;4 5 1 0;0 0 4 4"}, {"input": "0 4 0 4;3 1 4 5;0 3 2 0;2 1 0 3", "output": "2 1 0 3;0 3 2 0;3 1 4 5;0 4 0 4"}], "query_input": "2 2 2 4;0 5 1 0;4 5 5 5;0 3 0 4", "query_output": "0 3 0 4;4 5 5 5;0 5 1 0;2 2 2 4"} |
| {"task_id": "icgr-00879", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "4 3 3 1;1 1 1 3;1 1 3 2;0 3 4 1", "output": "4 3;3 4"}, {"input": "2 0 4 1;1 4 1 4;1 4 0 4;4 3 1 3", "output": "4 4;4 4"}, {"input": "4 3 3 3;4 3 4 1;2 2 2 2;3 4 2 0", "output": "4 4;4 2"}], "query_input": "1 2 2 4;4 2 3 0;1 0 3 4;3 1 2 3", "query_output": "4 4;3 4"} |
| {"task_id": "icgr-00796", "rule": "color_swap+add_mod", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "2 5 3 3 3;5 0 2 1 2;2 4 5 3 2;0 5 1 5 3;0 0 1 2 4", "output": "4 1 5 5 5;1 3 4 2 4;4 0 1 5 4;3 1 2 1 5;3 3 2 4 0"}, {"input": "5 2 3 5 5;5 2 1 5 0;5 0 3 4 2;1 3 4 5 3;4 1 4 0 0", "output": "1 4 5 1 1;1 4 2 1 3;1 3 5 0 4;2 5 0 1 5;0 2 0 3 3"}, {"input": "2 2 4 3 4;0 3 5 5 2;0 0 5 5 2;3 4 4 5 3;3 4 3 0 2", "output": "4 4 0 5 0;3 5 1 1 4;3 3 1 1 4;5 0 0 1 5;5 0 5 3 4"}], "query_input": "0 3 3 5 0;3 0 1 1 2;3 4 4 4 0;0 4 2 5 5;3 2 5 1 2", "query_output": "3 5 5 1 3;5 3 2 2 4;5 0 0 0 3;3 0 4 1 1;5 4 1 2 4"} |
| {"task_id": "icgr-00621", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "0 3 1;2 0 1;0 0 1", "output": "0 2 0;3 0 0;1 1 1"}, {"input": "1 0 2;0 1 3;3 1 3", "output": "1 0 3;0 1 1;2 3 3"}], "query_input": "3 1 2;3 3 3;0 0 2", "query_output": "3 3 0;1 3 0;2 3 2"} |
| {"task_id": "icgr-00723", "rule": "add_mod+color_swap", "rule_kind": "composed", "rule_description": "Add a fixed constant to every cell, modulo the colour count. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "4 4 0;1 2 4;4 1 2;1 0 2;2 3 1", "output": "0 0 2;1 3 0;0 1 3;1 2 3;3 4 1"}, {"input": "3 4 3;1 0 4;3 3 0;1 2 3;0 3 1", "output": "4 0 4;1 2 0;4 4 2;1 3 4;2 4 1"}, {"input": "2 2 0;1 3 1;4 3 1;4 3 1;2 3 0", "output": "3 3 2;1 4 1;0 4 1;0 4 1;3 4 2"}, {"input": "1 0 4;1 4 0;3 4 2;4 3 3;0 0 0", "output": "1 2 0;1 0 2;4 0 3;0 4 4;2 2 2"}], "query_input": "1 2 2;3 4 0;4 3 0;4 2 4;1 2 0", "query_output": "1 3 3;4 0 2;0 4 2;0 3 0;1 3 2"} |
| {"task_id": "icgr-00641", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "4 1 1 4 3;0 0 2 0 0;4 1 0 4 4;2 3 1 0 2", "output": "3 4 1 1 4;0 0 2 0 0;4 4 0 1 4;2 0 1 3 2"}, {"input": "2 0 3 0 3;1 2 0 4 0;2 0 3 2 4;1 1 4 1 1", "output": "3 0 3 0 2;0 4 0 2 1;4 2 3 0 2;1 1 4 1 1"}, {"input": "3 3 0 3 2;0 0 3 3 0;3 4 2 3 1;3 1 2 0 2", "output": "2 3 0 3 3;0 3 3 0 0;1 3 2 4 3;2 0 2 1 3"}], "query_input": "4 1 1 3 0;4 1 4 2 4;1 4 3 0 4;1 2 1 2 2", "query_output": "0 3 1 1 4;4 2 4 1 4;4 0 3 4 1;2 2 1 2 1"} |
| {"task_id": "icgr-00343", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "3 5 2 1 0;4 0 0 0 5;1 5 3 3 5;0 2 5 4 0", "output": "1 0 3 5 2;0 5 4 0 0;3 5 1 5 3;4 0 0 2 5"}, {"input": "2 5 4 4 1;1 0 0 1 0;2 4 5 1 2;2 0 4 2 4", "output": "4 1 2 5 4;1 0 1 0 0;1 2 2 4 5;2 4 2 0 4"}], "query_input": "4 1 3 2 0;2 0 0 1 5;2 4 0 1 4;4 0 2 2 3", "query_output": "2 0 4 1 3;1 5 2 0 0;1 4 2 4 0;2 3 4 0 2"} |
| {"task_id": "icgr-00185", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "2 4 5 3 0;2 3 2 2 4;0 4 4 2 1", "output": "1 1 1 1 1;1 3 2 2 1;1 1 1 1 1"}, {"input": "4 2 1 5 0;5 4 0 2 5;4 2 3 3 1", "output": "1 1 1 1 1;1 4 0 2 1;1 1 1 1 1"}, {"input": "5 4 1 4 0;2 2 1 5 4;4 1 4 5 3", "output": "1 1 1 1 1;1 2 1 5 1;1 1 1 1 1"}, {"input": "1 1 4 5 5;4 2 0 2 0;5 4 1 4 1", "output": "1 1 1 1 1;1 2 0 2 1;1 1 1 1 1"}], "query_input": "5 0 5 1 1;4 2 3 1 2;5 4 4 2 1", "query_output": "1 1 1 1 1;1 2 3 1 1;1 1 1 1 1"} |
| {"task_id": "icgr-00774", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "0 4 0;1 2 4;0 1 3", "output": "0 4 0;4 2 1;3 1 0"}, {"input": "4 3 4;2 1 1;2 0 2", "output": "4 3 4;1 1 2;2 0 2"}, {"input": "4 4 4;4 0 2;2 2 0", "output": "4 4 4;2 0 4;0 2 2"}, {"input": "1 0 2;3 1 4;0 1 0", "output": "2 0 1;4 1 3;0 1 0"}], "query_input": "4 3 1;1 3 2;3 4 3", "query_output": "1 3 4;2 3 1;3 4 3"} |
| {"task_id": "icgr-00283", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 4, "grid_w": 5, "num_support": 2, "support": [{"input": "0 1 2 2 3;2 2 1 2 3;1 0 3 1 2;3 0 1 0 1", "output": "3 0 1 0 1;1 0 3 1 2;2 2 1 2 3;0 1 2 2 3"}, {"input": "3 2 0 1 0;1 0 2 1 0;2 2 1 1 3;2 1 0 0 3", "output": "2 1 0 0 3;2 2 1 1 3;1 0 2 1 0;3 2 0 1 0"}], "query_input": "2 0 2 3 3;0 0 1 0 1;2 0 1 1 2;3 2 2 1 1", "query_output": "3 2 2 1 1;2 0 1 1 2;0 0 1 0 1;2 0 2 3 3"} |
| {"task_id": "icgr-00387", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 4, "support": [{"input": "1 0 1;1 1 3;1 4 2;2 4 3", "output": "2 1 1 1;4 4 1 0;3 2 3 1"}, {"input": "3 3 3;4 4 1;3 2 3;2 2 2", "output": "2 3 4 3;2 2 4 3;2 3 1 3"}, {"input": "1 2 4;0 4 3;0 2 0;1 0 0", "output": "1 0 0 1;0 2 4 2;0 0 3 4"}, {"input": "3 3 3;0 1 0;3 2 0;3 2 4", "output": "3 3 0 3;2 2 1 3;4 0 0 3"}], "query_input": "1 2 4;4 2 1;2 2 3;0 4 3", "query_output": "0 2 4 1;4 2 2 2;3 3 1 4"} |
| {"task_id": "icgr-00725", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "1 0 1 0 0;3 1 3 2 1;0 2 3 1 0;1 0 1 1 3;1 3 1 1 0", "output": "1 3 0 1 1;0 1 2 0 3;1 3 3 1 1;0 2 1 1 1;0 1 0 3 0"}, {"input": "3 3 0 0 1;1 2 1 2 1;0 0 1 2 3;2 0 2 0 2;2 3 2 2 0", "output": "3 1 0 2 2;3 2 0 0 3;0 1 1 2 2;0 2 2 0 2;1 1 3 2 0"}], "query_input": "3 0 2 3 1;1 2 1 1 3;1 3 3 0 3;0 1 2 0 3;1 3 2 2 0", "query_output": "3 1 1 0 1;0 2 3 1 3;2 1 3 2 2;3 1 0 0 2;1 3 3 3 0"} |
| {"task_id": "icgr-00760", "rule": "flip_h+border", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "1 3 2;0 2 0;2 1 0;3 0 0;0 1 3", "output": "0 0 0;0 2 0;0 1 0;0 0 0;0 0 0"}, {"input": "1 1 1;3 3 1;2 2 3;2 3 3;2 1 0", "output": "0 0 0;0 3 0;0 2 0;0 3 0;0 0 0"}, {"input": "1 2 3;2 1 1;3 1 3;1 0 1;0 0 2", "output": "0 0 0;0 1 0;0 1 0;0 0 0;0 0 0"}], "query_input": "1 1 1;2 3 2;0 2 3;1 3 0;0 1 2", "query_output": "0 0 0;0 3 0;0 2 0;0 3 0;0 0 0"} |
| {"task_id": "icgr-00845", "rule": "flip_v+flip_h", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "5 4 1 3 0;4 3 4 3 2;1 2 4 3 1;4 1 1 0 5;2 1 3 5 0", "output": "0 5 3 1 2;5 0 1 1 4;1 3 4 2 1;2 3 4 3 4;0 3 1 4 5"}, {"input": "1 5 3 0 2;1 0 4 3 0;5 4 0 1 0;4 3 1 3 1;4 2 0 0 3", "output": "3 0 0 2 4;1 3 1 3 4;0 1 0 4 5;0 3 4 0 1;2 0 3 5 1"}], "query_input": "1 0 4 0 4;2 5 5 3 1;5 1 5 3 5;1 3 4 1 2;3 4 3 0 0", "query_output": "0 0 3 4 3;2 1 4 3 1;5 3 5 1 5;1 3 5 5 2;4 0 4 0 1"} |
| {"task_id": "icgr-00154", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "0 0 2 3 1;2 2 3 3 1;3 2 1 3 0;2 1 1 3 3;0 3 1 2 1", "output": "0 3 1 2 1;2 1 1 3 3;3 2 1 3 0;2 2 3 3 1;0 0 2 3 1"}, {"input": "0 1 3 3 0;0 2 3 3 1;1 1 2 2 0;3 1 2 0 3;2 0 2 0 1", "output": "2 0 2 0 1;3 1 2 0 3;1 1 2 2 0;0 2 3 3 1;0 1 3 3 0"}], "query_input": "3 3 1 2 3;3 2 2 2 3;1 0 1 2 0;2 3 2 3 2;1 0 2 0 2", "query_output": "1 0 2 0 2;2 3 2 3 2;1 0 1 2 0;3 2 2 2 3;3 3 1 2 3"} |
| {"task_id": "icgr-00143", "rule": "add_mod", "rule_kind": "atomic", "rule_description": "Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "2 2 0 3 3;0 1 2 0 3;3 0 0 0 0", "output": "3 3 1 0 0;1 2 3 1 0;0 1 1 1 1"}, {"input": "2 0 3 1 0;3 2 0 0 3;2 0 2 2 2", "output": "3 1 0 2 1;0 3 1 1 0;3 1 3 3 3"}], "query_input": "3 0 1 3 0;0 1 3 1 2;3 2 0 1 0", "query_output": "0 1 2 0 1;1 2 0 2 3;0 3 1 2 1"} |
| {"task_id": "icgr-00076", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "4 2 2;1 3 4;5 3 1", "output": "2 2 4;4 3 1;1 3 5"}, {"input": "3 1 2;2 2 0;1 5 0", "output": "2 1 3;0 2 2;0 5 1"}, {"input": "1 5 5;5 3 0;0 4 3", "output": "5 5 1;0 3 5;3 4 0"}], "query_input": "5 3 1;1 3 2;0 4 2", "query_output": "1 3 5;2 3 1;2 4 0"} |
| {"task_id": "icgr-00918", "rule": "shift_rows+flip_v", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "3 0 0 0 3;0 2 2 2 2;1 2 3 2 0;3 1 3 0 3;3 1 3 2 3", "output": "2 3 3 1 3;0 3 3 1 3;2 0 1 2 3;2 2 0 2 2;0 3 3 0 0"}, {"input": "3 1 0 0 3;3 0 2 3 2;0 1 0 3 2;1 2 1 2 2;1 2 2 0 3", "output": "0 3 1 2 2;2 2 1 2 1;3 2 0 1 0;3 2 3 0 2;0 3 3 1 0"}, {"input": "2 0 3 3 1;3 0 1 3 0;0 0 1 1 0;0 3 0 2 3;0 1 2 3 0", "output": "3 0 0 1 2;2 3 0 3 0;1 0 0 0 1;3 0 3 0 1;3 1 2 0 3"}], "query_input": "3 0 2 3 1;3 0 0 2 1;1 2 2 3 3;0 3 2 3 0;2 3 0 3 3", "query_output": "3 3 2 3 0;3 0 0 3 2;3 3 1 2 2;2 1 3 0 0;3 1 3 0 2"} |
| {"task_id": "icgr-00445", "rule": "flip_v+flip_h", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "3 0 5 5 5;3 4 5 0 2;2 5 4 0 0", "output": "0 0 4 5 2;2 0 5 4 3;5 5 5 0 3"}, {"input": "2 3 1 1 5;2 1 3 5 3;2 1 4 4 0", "output": "0 4 4 1 2;3 5 3 1 2;5 1 1 3 2"}, {"input": "0 1 4 4 0;1 5 3 2 5;3 1 5 2 5", "output": "5 2 5 1 3;5 2 3 5 1;0 4 4 1 0"}, {"input": "3 4 0 0 1;2 5 2 0 2;1 5 2 0 3", "output": "3 0 2 5 1;2 0 2 5 2;1 0 0 4 3"}], "query_input": "3 3 0 4 2;1 5 2 5 2;0 5 5 0 3", "query_output": "3 0 5 5 0;2 5 2 5 1;2 4 0 3 3"} |
| {"task_id": "icgr-00932", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 5, "grid_h": 4, "grid_w": 4, "num_support": 2, "support": [{"input": "2 1 0 1;0 4 0 1;2 4 2 2;2 2 3 0", "output": "4 1;4 3"}, {"input": "4 4 3 4;0 0 3 2;1 2 0 1;3 2 1 3", "output": "4 4;3 3"}], "query_input": "4 3 0 0;3 3 4 2;0 3 2 2;1 3 1 4", "query_output": "4 4;3 4"} |
| {"task_id": "icgr-00006", "rule": "shift_rows+border", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "2 1 0;2 0 3;4 1 2", "output": "4 4 4;4 3 4;4 4 4"}, {"input": "0 4 4;1 1 3;4 2 0", "output": "4 4 4;4 3 4;4 4 4"}], "query_input": "0 4 4;3 4 0;3 1 0", "query_output": "4 4 4;4 0 4;4 4 4"} |
| {"task_id": "icgr-00065", "rule": "shift_rows+flip_v", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "2 1 0;0 2 1;0 1 0;3 1 1;0 3 2", "output": "2 0 3;1 3 1;0 0 1;1 0 2;0 2 1"}, {"input": "1 2 0;1 2 3;3 2 2;1 2 1;1 2 1", "output": "1 1 2;1 1 2;2 3 2;3 1 2;0 1 2"}], "query_input": "0 1 2;3 1 1;1 0 2;1 1 3;2 3 3", "query_output": "3 2 3;3 1 1;2 1 0;1 3 1;2 0 1"} |
| {"task_id": "icgr-00873", "rule": "border+add_mod", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 5, "grid_w": 4, "num_support": 3, "support": [{"input": "4 2 4 4;0 0 5 0;4 2 2 0;3 2 5 1;4 4 2 3", "output": "0 0 0 0;0 1 0 0;0 3 3 0;0 3 0 0;0 0 0 0"}, {"input": "1 0 3 2;0 3 5 2;1 5 3 1;1 0 3 5;2 3 4 0", "output": "0 0 0 0;0 4 0 0;0 0 4 0;0 1 4 0;0 0 0 0"}, {"input": "3 5 2 2;4 2 4 4;1 2 2 4;0 0 1 2;4 1 4 5", "output": "0 0 0 0;0 3 5 0;0 3 3 0;0 1 2 0;0 0 0 0"}], "query_input": "3 3 1 3;3 2 0 5;1 1 3 2;3 4 4 5;3 2 2 1", "query_output": "0 0 0 0;0 3 1 0;0 2 4 0;0 5 5 0;0 0 0 0"} |
| {"task_id": "icgr-00060", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 4, "grid_h": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "3 0 2;0 1 0;1 0 2;1 2 0", "output": "3 0 1 1;0 1 0 2;2 0 2 0"}, {"input": "1 1 3;2 2 3;3 0 2;3 3 2", "output": "1 2 3 3;1 2 0 3;3 3 2 2"}], "query_input": "3 1 1;2 2 1;2 1 3;2 1 0", "query_output": "3 2 2 2;1 2 1 1;1 1 3 0"} |
| {"task_id": "icgr-00477", "rule": "shift_rows+add_mod", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "3 1 1;0 1 3;1 3 3", "output": "3 3 1;3 1 2;1 1 3"}, {"input": "3 0 1;3 2 3;3 0 1", "output": "2 3 1;0 1 1;2 3 1"}], "query_input": "3 1 3;2 2 1;2 0 3", "query_output": "3 1 1;0 3 0;2 1 0"} |
| {"task_id": "icgr-00297", "rule": "color_swap+border", "rule_kind": "composed", "rule_description": "Swap two colours everywhere they appear. Then, Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "3 4 2;0 0 0;0 4 1", "output": "1 1 1;1 0 1;1 1 1"}, {"input": "0 1 1;3 2 4;4 4 2", "output": "1 1 1;1 2 1;1 1 1"}], "query_input": "2 2 0;1 4 3;2 4 2", "query_output": "1 1 1;1 1 1;1 1 1"} |
| {"task_id": "icgr-00469", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "2 0 4 3;4 3 0 2;5 3 0 2", "output": "0 0 0 0;0 3 0 0;0 0 0 0"}, {"input": "0 5 1 1;3 5 1 1;1 4 4 5", "output": "0 0 0 0;0 5 1 0;0 0 0 0"}], "query_input": "4 2 2 4;3 0 4 3;2 5 0 0", "query_output": "0 0 0 0;0 0 4 0;0 0 0 0"} |
| {"task_id": "icgr-00080", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 4, "support": [{"input": "1 1 2 2 3;2 1 1 0 2;0 3 0 0 3;3 2 1 0 0;1 0 0 2 0", "output": "1 2 0 3 1;1 1 3 2 0;2 1 0 1 0;2 0 0 0 2;3 2 3 0 0"}, {"input": "2 3 0 3 3;3 2 2 2 2;0 2 3 1 2;3 1 1 3 1;0 3 2 2 2", "output": "2 3 0 3 0;3 2 2 1 3;0 2 3 1 2;3 2 1 3 2;3 2 2 1 2"}, {"input": "1 2 2 2 3;2 3 0 3 1;3 1 2 2 1;3 1 1 0 0;1 2 2 0 2", "output": "1 2 3 3 1;2 3 1 1 2;2 0 2 1 2;2 3 2 0 0;3 1 1 0 2"}, {"input": "2 2 3 3 2;1 2 0 3 3;3 0 1 2 0;2 3 1 3 3;3 3 0 3 0", "output": "2 1 3 2 3;2 2 0 3 3;3 0 1 1 0;3 3 2 3 3;2 3 0 3 0"}], "query_input": "0 0 2 0 0;1 3 3 2 0;0 2 2 0 0;0 3 1 1 2;1 0 0 1 3", "query_output": "0 1 0 0 1;0 3 2 3 0;2 3 2 1 0;0 2 0 1 1;0 0 0 2 3"} |
| {"task_id": "icgr-00110", "rule": "flip_v+shift_rows", "rule_kind": "composed", "rule_description": "Mirror the grid top-to-bottom. Then, Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "4 3 2 5 0;1 5 3 4 5;3 0 4 2 1", "output": "2 1 3 0 4;4 5 1 5 3;5 0 4 3 2"}, {"input": "4 2 4 3 5;1 3 0 2 2;2 0 4 2 0", "output": "2 0 2 0 4;2 2 1 3 0;3 5 4 2 4"}, {"input": "5 5 4 4 4;1 4 4 3 4;2 3 4 5 1", "output": "5 1 2 3 4;3 4 1 4 4;4 4 5 5 4"}, {"input": "0 5 0 0 5;0 2 3 1 3;5 2 3 4 4", "output": "4 4 5 2 3;1 3 0 2 3;0 5 0 5 0"}], "query_input": "2 5 0 1 3;5 3 3 5 1;3 2 0 0 4", "query_output": "0 4 3 2 0;5 1 5 3 3;1 3 2 5 0"} |
| {"task_id": "icgr-00688", "rule": "shift_rows+flip_h", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Mirror the grid left-to-right.", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "0 5 1 0;2 3 1 2;0 1 2 0;3 2 3 2", "output": "5 0 0 1;3 2 2 1;1 0 0 2;2 3 2 3"}, {"input": "5 2 3 5;1 2 2 3;3 1 1 2;3 0 1 3", "output": "2 5 5 3;2 1 3 2;1 3 2 1;0 3 3 1"}, {"input": "4 3 5 4;1 0 5 2;0 3 3 3;1 1 1 5", "output": "3 4 4 5;0 1 2 5;3 0 3 3;1 1 5 1"}], "query_input": "4 3 1 3;2 2 3 2;1 3 0 2;1 4 3 2", "query_output": "3 4 3 1;2 2 2 3;3 1 2 0;4 1 2 3"} |
| {"task_id": "icgr-00850", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "1 0 1;0 3 3;4 4 0;3 4 0", "output": "1 1 0;3 0 3;0 4 4;0 3 4"}, {"input": "2 4 4;2 0 4;1 2 4;4 2 3", "output": "4 2 4;4 2 0;4 1 2;3 4 2"}, {"input": "3 1 1;4 1 0;1 2 3;4 2 0", "output": "1 3 1;0 4 1;3 1 2;0 4 2"}], "query_input": "4 1 4;3 4 1;1 3 1;0 1 4", "query_output": "4 4 1;1 3 4;1 1 3;4 0 1"} |
| {"task_id": "icgr-00465", "rule": "border+color_swap", "rule_kind": "composed", "rule_description": "Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "1 2 0;2 1 0;2 3 0;0 3 2", "output": "1 1 1;1 1 1;1 3 1;1 1 1"}, {"input": "3 3 0;3 3 5;3 2 3;2 3 0", "output": "1 1 1;1 3 1;1 2 1;1 1 1"}, {"input": "0 1 2;2 3 1;5 1 4;0 3 1", "output": "1 1 1;1 3 1;1 1 1;1 1 1"}], "query_input": "3 0 2;4 0 1;1 0 1;3 4 5", "query_output": "1 1 1;1 0 1;1 0 1;1 1 1"} |
| {"task_id": "icgr-00358", "rule": "border", "rule_kind": "atomic", "rule_description": "Paint the outer border of the grid a fixed colour.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "1 3 1;0 0 2;1 4 2;2 1 3;4 0 4", "output": "4 4 4;4 0 4;4 4 4;4 1 4;4 4 4"}, {"input": "3 2 1;4 3 2;2 3 3;2 0 3;3 4 4", "output": "4 4 4;4 3 4;4 3 4;4 0 4;4 4 4"}], "query_input": "2 3 1;3 0 3;0 4 4;3 2 0;1 1 3", "query_output": "4 4 4;4 0 4;4 4 4;4 2 4;4 4 4"} |
| {"task_id": "icgr-00428", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "2 4 2 0 4;1 2 0 0 2;4 0 2 0 2;0 2 1 2 3", "output": "4 0 2 4 2;2 0 0 2 1;2 0 2 0 4;3 2 1 2 0"}, {"input": "4 4 4 2 4;2 0 3 3 0;0 4 2 4 4;3 3 2 1 1", "output": "4 2 4 4 4;0 3 3 0 2;4 4 2 4 0;1 1 2 3 3"}, {"input": "3 0 4 3 1;4 0 0 3 4;3 4 4 2 2;4 3 3 3 4", "output": "1 3 4 0 3;4 3 0 0 4;2 2 4 4 3;4 3 3 3 4"}, {"input": "2 0 3 4 0;2 2 4 3 1;2 1 0 4 0;3 1 1 4 0", "output": "0 4 3 0 2;1 3 4 2 2;0 4 0 1 2;0 4 1 1 3"}], "query_input": "3 1 1 1 1;3 1 0 2 2;2 3 2 4 0;2 2 1 0 2", "query_output": "1 1 1 1 3;2 2 0 1 3;0 4 2 3 2;2 0 1 2 2"} |
| {"task_id": "icgr-00051", "rule": "max_pool2", "rule_kind": "atomic", "rule_description": "Replace each non-overlapping 2x2 block with its maximum value.", "num_colors": 4, "grid_h": 6, "grid_w": 6, "num_support": 4, "support": [{"input": "2 2 0 1 1 2;0 3 3 3 3 3;0 3 0 1 1 1;3 0 3 2 1 0;0 3 2 1 0 0;0 0 2 0 0 2", "output": "3 3 3;3 3 1;3 2 2"}, {"input": "0 3 0 3 2 0;1 3 3 2 3 1;2 1 1 1 2 2;1 3 0 3 0 3;0 2 2 2 0 0;1 2 3 3 3 1", "output": "3 3 3;3 3 3;2 3 3"}, {"input": "3 1 0 0 1 0;0 2 1 3 3 2;3 0 2 1 0 2;3 0 0 3 1 1;0 3 3 1 0 2;3 0 1 3 3 3", "output": "3 3 3;3 3 2;3 3 3"}, {"input": "3 3 3 3 1 0;1 3 0 3 1 2;2 0 0 0 2 3;3 1 0 0 2 0;3 3 2 0 0 0;1 0 2 1 2 1", "output": "3 3 2;3 0 3;3 2 2"}], "query_input": "0 2 3 1 3 1;0 3 3 1 1 3;1 0 0 3 3 3;3 3 1 0 1 0;0 0 2 3 0 1;2 1 1 2 0 3", "query_output": "3 3 3;3 3 3;2 3 3"} |
| {"task_id": "icgr-00100", "rule": "flip_h+add_mod", "rule_kind": "composed", "rule_description": "Mirror the grid left-to-right. Then, Add a fixed constant to every cell, modulo the colour count.", "num_colors": 6, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "2 3 4;4 2 3;4 2 2;4 2 2;3 1 2", "output": "2 1 0;1 0 2;0 0 2;0 0 2;0 5 1"}, {"input": "5 3 4;2 3 4;0 3 0;0 3 5;4 1 5", "output": "2 1 3;2 1 0;4 1 4;3 1 4;3 5 2"}, {"input": "0 3 3;2 5 1;1 1 5;4 4 5;0 3 1", "output": "1 1 4;5 3 0;3 5 5;3 2 2;5 1 4"}, {"input": "1 4 1;2 1 4;2 5 0;1 3 1;2 1 1", "output": "5 2 5;2 5 0;4 3 0;5 1 5;5 5 0"}], "query_input": "5 1 2;3 4 1;1 0 3;4 1 1;2 0 4", "query_output": "0 5 3;5 2 1;1 4 5;5 5 2;2 4 0"} |
| {"task_id": "icgr-00718", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "4 2 1;4 3 3;1 3 0", "output": "4 2 1;4 3 3;1 3 0"}, {"input": "3 3 0;3 0 2;4 2 2", "output": "3 3 0;3 0 2;4 2 2"}, {"input": "4 1 3;2 2 2;4 2 0", "output": "4 1 3;2 2 2;4 2 0"}, {"input": "1 2 1;1 1 2;1 4 3", "output": "1 2 1;1 1 2;1 4 3"}], "query_input": "4 4 2;3 0 1;1 3 0", "query_output": "4 4 2;3 0 1;1 3 0"} |
| {"task_id": "icgr-00802", "rule": "shift_rows", "rule_kind": "atomic", "rule_description": "Cyclically shift every row right by a fixed amount.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "4 5 2 5;4 1 3 5;1 4 1 3", "output": "5 4 5 2;5 4 1 3;3 1 4 1"}, {"input": "2 3 4 3;3 4 5 2;4 1 5 2", "output": "3 2 3 4;2 3 4 5;2 4 1 5"}], "query_input": "0 1 1 1;5 4 2 4;0 5 0 3", "query_output": "1 0 1 1;4 5 4 2;3 0 5 0"} |
| {"task_id": "icgr-00478", "rule": "shift_rows+color_swap", "rule_kind": "composed", "rule_description": "Cyclically shift every row right by a fixed amount. Then, Swap two colours everywhere they appear.", "num_colors": 5, "grid_h": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "1 0 1 0;1 0 1 0;4 2 4 2", "output": "1 0 1 0;1 0 1 0;3 2 3 2"}, {"input": "1 0 3 3;2 2 1 4;1 2 1 0", "output": "4 4 1 0;1 3 2 2;1 0 1 2"}, {"input": "3 4 0 1;0 3 2 0;0 3 4 1", "output": "0 1 4 3;2 0 0 4;3 1 0 4"}], "query_input": "4 0 1 3;3 2 4 0;4 0 3 1", "query_output": "1 4 3 0;3 0 4 2;4 1 3 0"} |
|
|