WhySoCodius's picture
Add In-Context Grid Reasoning dataset (synthetic, CC-BY-4.0)
538ccea verified
Raw
History Blame Contribute Delete
122 kB
{"task_id": "icgr-00256", "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": 4, "grid_w": 5, "num_support": 3, "support": [{"input": "3 1 3 0 2;3 2 2 3 2;0 2 0 2 1;0 0 1 2 0", "output": "0 0 0 0 0;0 2 0 2 0;0 2 2 3 0;0 0 0 0 0"}, {"input": "1 2 2 2 2;0 2 1 0 3;0 2 0 1 1;3 1 3 0 1", "output": "0 0 0 0 0;0 2 0 1 0;0 2 1 0 0;0 0 0 0 0"}, {"input": "1 3 2 0 3;0 1 1 3 3;0 2 3 3 2;2 2 3 3 1", "output": "0 0 0 0 0;0 2 3 3 0;0 1 1 3 0;0 0 0 0 0"}], "query_input": "0 1 3 1 1;0 1 3 2 0;2 1 1 1 3;3 1 2 1 0", "query_output": "0 0 0 0 0;0 1 1 1 0;0 1 3 2 0;0 0 0 0 0"}
{"task_id": "icgr-00354", "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;3 2 0 1;3 2 1 3", "output": "0 0 0 0;0 2 0 0;0 0 0 0"}, {"input": "0 3 3 3;0 0 2 1;2 0 3 2", "output": "0 0 0 0;0 0 2 0;0 0 0 0"}, {"input": "1 3 3 1;1 2 3 2;2 1 0 2", "output": "0 0 0 0;0 2 3 0;0 0 0 0"}], "query_input": "1 0 0 2;0 0 3 1;1 1 2 1", "query_output": "0 0 0 0;0 0 3 0;0 0 0 0"}
{"task_id": "icgr-00318", "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": "0 3 1 2 3;0 0 2 3 1;2 3 2 0 1;3 1 2 0 2", "output": "0 0 0 0 0;0 0 2 3 0;0 3 2 0 0;0 0 0 0 0"}, {"input": "3 0 3 2 0;2 1 1 0 1;0 0 1 2 1;1 2 0 1 1", "output": "0 0 0 0 0;0 1 1 0 0;0 0 1 2 0;0 0 0 0 0"}, {"input": "3 3 0 1 1;2 3 2 1 0;2 2 1 2 3;2 3 3 3 0", "output": "0 0 0 0 0;0 3 2 1 0;0 2 1 2 0;0 0 0 0 0"}], "query_input": "2 0 2 1 0;0 1 2 2 2;2 0 2 2 0;3 2 2 1 2", "query_output": "0 0 0 0 0;0 1 2 2 0;0 0 2 2 0;0 0 0 0 0"}
{"task_id": "icgr-00864", "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": 4, "support": [{"input": "1 1 0;1 0 2;1 2 0;0 2 0", "output": "2 2 1;2 1 3;2 3 1;1 3 1"}, {"input": "3 1 0;1 0 3;3 2 2;3 0 2", "output": "0 2 1;2 1 0;0 3 3;0 1 3"}, {"input": "3 2 0;0 3 3;3 3 1;1 0 3", "output": "0 3 1;1 0 0;0 0 2;2 1 0"}, {"input": "3 2 0;0 1 2;3 0 3;2 1 1", "output": "0 3 1;1 2 3;0 1 0;3 2 2"}], "query_input": "3 2 2;1 3 2;2 0 2;1 3 0", "query_output": "0 3 3;2 0 3;3 1 3;2 0 1"}
{"task_id": "icgr-00355", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "2 1 4 0;3 5 5 3;5 0 4 1", "output": "2 3 5;1 5 0;4 5 4;0 3 1"}, {"input": "3 0 1 5;0 5 3 4;2 1 2 2", "output": "3 0 2;0 5 1;1 3 2;5 4 2"}, {"input": "1 0 1 2;5 5 1 3;1 0 0 1", "output": "1 5 1;0 5 0;1 1 0;2 3 1"}, {"input": "1 5 1 0;0 1 4 5;3 4 4 4", "output": "1 0 3;5 1 4;1 4 4;0 5 4"}], "query_input": "1 2 3 5;2 2 5 5;3 1 2 5", "query_output": "1 2 3;2 2 1;3 5 2;5 5 5"}
{"task_id": "icgr-00730", "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": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "2 0 2 3 3;3 2 1 2 2;2 3 1 1 0;2 3 1 2 0;2 0 3 2 3", "output": "2 2 1 3 1;1 1 2 1 0;0 3 1 2 0;1 3 1 2 0;1 2 1 3 2"}, {"input": "2 3 2 0 1;0 0 0 0 0;1 1 2 0 1;2 2 2 2 0;3 2 3 0 0", "output": "3 0 1 2 1;3 3 3 3 3;3 0 0 0 1;1 3 1 1 1;3 3 2 1 2"}, {"input": "0 0 2 0 2;3 2 3 2 2;2 3 0 2 1;1 0 3 2 2;3 1 2 3 3", "output": "3 1 3 3 1;1 1 2 1 2;1 0 1 2 3;1 1 0 3 2;2 2 2 0 1"}], "query_input": "3 1 1 1 3;2 0 1 3 2;1 3 0 0 3;3 0 1 3 1;3 0 2 0 3", "query_output": "0 2 2 0 0;2 1 1 3 0;3 2 0 2 3;2 0 2 3 0;3 2 2 3 1"}
{"task_id": "icgr-00868", "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": 3, "support": [{"input": "0 1 1;2 2 1;3 4 3;1 0 0;1 4 4", "output": "4 4 4;4 2 4;4 4 4;4 0 4;4 4 4"}, {"input": "3 2 1;4 2 0;4 1 0;3 3 2;2 1 2", "output": "4 4 4;4 2 4;4 1 4;4 3 4;4 4 4"}, {"input": "2 4 1;0 1 4;2 0 2;4 2 2;1 4 0", "output": "4 4 4;4 1 4;4 0 4;4 2 4;4 4 4"}], "query_input": "0 1 1;1 3 4;0 0 4;2 4 1;4 3 3", "query_output": "4 4 4;4 3 4;4 0 4;4 4 4;4 4 4"}
{"task_id": "icgr-00356", "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": 4, "num_support": 3, "support": [{"input": "0 2 3 2;0 3 3 1;2 3 2 2", "output": "1 3 1 2;0 3 2 2;1 1 2 1"}, {"input": "0 1 3 3;0 3 3 3;3 0 1 3", "output": "2 3 0 2;2 3 2 2;2 2 3 0"}, {"input": "0 2 0 2;0 3 3 1;0 0 0 3", "output": "1 3 1 3;0 3 2 2;2 3 3 3"}], "query_input": "0 3 2 2;3 1 3 1;3 3 3 3", "query_output": "1 3 2 1;0 2 0 2;2 2 2 2"}
{"task_id": "icgr-00406", "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": 3, "num_support": 2, "support": [{"input": "3 3 0;3 3 3;0 0 2;2 0 4;5 5 1", "output": "0 0 0;0 2 0;0 5 0;0 5 0;0 0 0"}, {"input": "0 2 2;4 4 0;2 0 5;2 5 0;5 4 1", "output": "0 0 0;0 3 0;0 5 0;0 4 0;0 0 0"}], "query_input": "1 5 2;4 1 1;3 0 5;1 4 1;3 3 2", "query_output": "0 0 0;0 0 0;0 5 0;0 3 0;0 0 0"}
{"task_id": "icgr-00601", "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": "1 0 3 4;4 4 3 4;0 3 1 2;4 4 2 1", "output": "1 0 3 4;4 4 3 4;0 3 1 2;4 4 2 1"}, {"input": "4 0 4 4;1 1 0 4;0 0 2 0;1 4 2 1", "output": "4 0 4 4;1 1 0 4;0 0 2 0;1 4 2 1"}], "query_input": "3 2 1 4;0 1 4 1;0 2 4 4;1 4 0 3", "query_output": "3 2 1 4;0 1 4 1;0 2 4 4;1 4 0 3"}
{"task_id": "icgr-00363", "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": 5, "num_support": 3, "support": [{"input": "2 0 3 2 1;2 1 1 1 1;0 3 0 2 2;0 4 2 3 3;4 3 4 1 3", "output": "1 1 1 1 1;1 1 2 1 1;1 2 0 3 1;1 3 0 4 1;1 1 1 1 1"}, {"input": "0 0 2 1 2;2 1 2 4 4;4 3 2 4 4;4 3 0 2 2;3 4 1 2 0", "output": "1 1 1 1 1;1 4 2 1 1;1 4 4 3 1;1 2 4 3 1;1 1 1 1 1"}, {"input": "0 3 0 0 2;0 2 3 2 1;2 1 1 1 4;1 1 1 4 4;3 2 3 3 4", "output": "1 1 1 1 1;1 1 0 2 1;1 4 2 1 1;1 4 1 1 1;1 1 1 1 1"}], "query_input": "3 2 3 1 2;0 0 3 2 1;3 2 0 1 0;3 3 1 3 0;0 3 4 3 2", "query_output": "1 1 1 1 1;1 1 0 0 1;1 0 3 2 1;1 0 3 3 1;1 1 1 1 1"}
{"task_id": "icgr-00434", "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": 5, "grid_w": 4, "num_support": 2, "support": [{"input": "3 0 4 2;1 3 5 1;5 3 0 5;4 1 1 0;3 5 4 4", "output": "4 4 4 4;4 1 1 4;4 3 0 4;4 3 5 4;4 4 4 4"}, {"input": "0 5 0 0;4 1 2 2;2 2 0 2;5 4 3 2;0 3 4 0", "output": "4 4 4 4;4 4 3 4;4 2 0 4;4 1 2 4;4 4 4 4"}], "query_input": "5 0 3 5;5 2 3 3;1 4 0 4;4 4 0 1;2 0 0 2", "query_output": "4 4 4 4;4 4 0 4;4 4 0 4;4 2 3 4;4 4 4 4"}
{"task_id": "icgr-00642", "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": "3 4 3;2 3 4;2 1 1", "output": "3 3 4;4 2 3;1 2 1"}, {"input": "1 0 1;3 1 4;3 2 3", "output": "1 1 0;4 3 1;3 3 2"}, {"input": "1 4 1;1 4 2;0 0 3", "output": "1 1 4;2 1 4;3 0 0"}], "query_input": "2 0 0;3 1 2;4 3 4", "query_output": "0 2 0;2 3 1;4 4 3"}
{"task_id": "icgr-00004", "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": 4, "num_support": 2, "support": [{"input": "0 0 0 5;4 1 5 5;3 3 4 5;4 4 4 1;5 0 1 3", "output": "3 3 3 3;3 4 4 3;3 3 4 3;3 1 5 3;3 3 3 3"}, {"input": "5 4 5 5;1 3 1 0;5 3 1 4;5 1 3 2;2 0 2 2", "output": "3 3 3 3;3 1 3 3;3 3 1 3;3 3 1 3;3 3 3 3"}], "query_input": "2 5 3 3;2 0 4 5;4 1 1 5;2 3 4 5;5 4 0 3", "query_output": "3 3 3 3;3 3 4 3;3 1 1 3;3 0 4 3;3 3 3 3"}
{"task_id": "icgr-00244", "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": "0 2 0 3;0 3 3 3;0 2 2 2;2 3 2 1;2 1 2 3", "output": "0 3 0 2;3 3 0 3;2 2 0 2;2 1 2 3;2 3 2 1"}, {"input": "1 2 2 0;1 3 3 3;1 3 3 0;1 2 3 2;1 0 1 1", "output": "2 0 1 2;3 3 1 3;3 0 1 3;3 2 1 2;1 1 1 0"}, {"input": "2 0 3 1;3 1 1 2;0 2 2 1;2 3 2 3;0 3 0 0", "output": "3 1 2 0;1 2 3 1;2 1 0 2;2 3 2 3;0 0 0 3"}, {"input": "3 1 1 2;2 0 1 3;3 0 2 2;3 2 0 3;2 0 3 0", "output": "1 2 3 1;1 3 2 0;2 2 3 0;0 3 3 2;3 0 2 0"}], "query_input": "0 3 3 3;0 2 3 1;2 1 3 3;1 2 2 2;0 3 3 3", "query_output": "3 3 0 3;3 1 0 2;3 3 2 1;2 2 1 2;3 3 0 3"}
{"task_id": "icgr-00427", "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": 4, "support": [{"input": "1 2 1 0;0 0 3 0;0 2 1 2", "output": "1 0 1 2;3 0 0 0;1 2 0 2"}, {"input": "2 2 3 0;1 1 3 2;2 1 1 3", "output": "3 0 2 2;3 2 1 1;1 3 2 1"}, {"input": "0 3 0 1;0 0 3 4;0 2 2 0", "output": "0 1 0 3;3 4 0 0;2 0 0 2"}, {"input": "4 0 3 4;0 1 1 1;1 1 1 2", "output": "3 4 4 0;1 1 0 1;1 2 1 1"}], "query_input": "4 3 4 4;1 4 2 4;1 0 3 0", "query_output": "4 4 4 3;2 4 1 4;3 0 1 0"}
{"task_id": "icgr-00804", "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": "1 5 4 3 1;4 5 0 3 0;0 2 0 3 0;2 5 5 4 4;5 4 1 4 1", "output": "5 2 0 4 1;4 5 2 5 5;1 5 0 0 4;4 4 3 3 3;1 4 0 0 1"}, {"input": "1 1 1 0 0;4 2 1 2 1;3 4 4 5 5;1 3 1 4 0;2 4 3 3 4", "output": "2 1 3 4 1;4 3 4 2 1;3 1 4 1 1;3 4 5 2 0;4 0 5 1 0"}], "query_input": "5 4 2 5 3;3 4 2 3 4;3 5 4 3 0;2 1 3 5 5;1 2 1 5 0", "query_output": "1 2 3 3 5;2 1 5 4 4;1 3 4 2 2;5 5 3 3 5;0 5 0 4 3"}
{"task_id": "icgr-00590", "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": 3, "num_support": 3, "support": [{"input": "2 3 2;1 0 3;2 2 0;3 3 0;1 1 1", "output": "1 1 1;1 0 1;1 2 1;1 3 1;1 1 1"}, {"input": "0 2 0;1 1 0;2 3 3;1 1 1;0 3 2", "output": "1 1 1;1 1 1;1 3 1;1 1 1;1 1 1"}, {"input": "2 2 2;3 0 2;0 2 1;2 2 1;3 1 2", "output": "1 1 1;1 0 1;1 2 1;1 2 1;1 1 1"}], "query_input": "0 3 3;0 3 0;3 0 1;2 2 0;1 1 2", "query_output": "1 1 1;1 3 1;1 0 1;1 2 1;1 1 1"}
{"task_id": "icgr-00539", "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": "4 4 1;3 0 4;5 1 5;4 1 3;3 5 0", "output": "4 4 1 4 4 1;3 0 4 3 0 4;5 1 5 5 1 5;4 1 3 4 1 3;3 5 0 3 5 0"}, {"input": "1 5 0;3 0 2;5 5 0;1 1 2;4 2 0", "output": "1 5 0 1 5 0;3 0 2 3 0 2;5 5 0 5 5 0;1 1 2 1 1 2;4 2 0 4 2 0"}], "query_input": "1 0 1;1 2 5;4 0 3;4 1 2;2 5 4", "query_output": "1 0 1 1 0 1;1 2 5 1 2 5;4 0 3 4 0 3;4 1 2 4 1 2;2 5 4 2 5 4"}
{"task_id": "icgr-00592", "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": 3, "num_support": 4, "support": [{"input": "1 4 5;0 4 3;1 1 3", "output": "2 5 0;1 5 4;2 2 4"}, {"input": "1 4 0;3 2 4;5 5 2", "output": "2 5 1;4 3 5;0 0 3"}, {"input": "4 2 2;0 0 4;0 4 2", "output": "5 3 3;1 1 5;1 5 3"}, {"input": "5 4 4;5 2 3;3 1 4", "output": "0 5 5;0 3 4;4 2 5"}], "query_input": "2 3 2;5 3 2;5 1 0", "query_output": "3 4 3;0 4 3;0 2 1"}
{"task_id": "icgr-00099", "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": "2 4 0;4 1 0;4 0 4", "output": "0 2 4;0 4 1;4 4 0"}, {"input": "3 0 3;0 4 2;0 3 2", "output": "3 3 0;2 0 4;2 0 3"}, {"input": "0 1 0;3 4 0;0 1 2", "output": "0 0 1;0 3 4;2 0 1"}], "query_input": "2 4 4;0 3 3;3 0 4", "query_output": "4 2 4;3 0 3;4 3 0"}
{"task_id": "icgr-00174", "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": 3, "support": [{"input": "2 0 4 1 3;0 3 2 2 0;0 3 0 4 3", "output": "0 3 2 4 1;3 1 0 0 3;3 1 3 2 1"}, {"input": "0 4 1 3 1;0 4 0 1 4;4 2 1 0 4", "output": "3 2 4 1 4;3 2 3 4 2;2 0 4 3 2"}, {"input": "3 2 3 1 4;4 4 3 2 4;0 2 2 4 4", "output": "1 0 1 4 2;2 2 1 0 2;3 0 0 2 2"}], "query_input": "1 2 4 2 2;1 3 2 2 3;2 1 1 1 3", "query_output": "4 0 2 0 0;4 1 0 0 1;0 4 4 4 1"}
{"task_id": "icgr-00456", "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": "4 5 2 0 0;5 4 0 0 1;5 4 3 0 4;3 5 1 0 4;0 0 5 3 5", "output": "4 5 2 0 0 4 5 2 0 0;5 4 0 0 1 5 4 0 0 1;5 4 3 0 4 5 4 3 0 4;3 5 1 0 4 3 5 1 0 4;0 0 5 3 5 0 0 5 3 5"}, {"input": "3 1 5 5 1;0 3 5 2 5;3 5 0 3 2;2 1 4 4 1;4 1 5 2 0", "output": "3 1 5 5 1 3 1 5 5 1;0 3 5 2 5 0 3 5 2 5;3 5 0 3 2 3 5 0 3 2;2 1 4 4 1 2 1 4 4 1;4 1 5 2 0 4 1 5 2 0"}], "query_input": "0 4 3 1 2;4 2 2 4 4;0 3 4 0 3;2 4 3 4 5;0 3 5 0 5", "query_output": "0 4 3 1 2 0 4 3 1 2;4 2 2 4 4 4 2 2 4 4;0 3 4 0 3 0 3 4 0 3;2 4 3 4 5 2 4 3 4 5;0 3 5 0 5 0 3 5 0 5"}
{"task_id": "icgr-00618", "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": "2 0 1 1;0 2 2 1;3 3 0 3;3 1 0 2", "output": "1 1 0 2;1 2 2 0;3 0 3 3;2 0 1 3"}, {"input": "2 1 3 3;3 3 1 0;2 1 2 0;1 0 2 3", "output": "3 3 1 2;0 1 3 3;0 2 1 2;3 2 0 1"}], "query_input": "2 1 0 1;1 1 0 3;1 1 0 3;2 3 2 0", "query_output": "1 0 1 2;3 0 1 1;3 0 1 1;0 2 3 2"}
{"task_id": "icgr-00572", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 5, "grid_h": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "3 3 2 3 2;0 3 4 0 3;1 0 0 2 1", "output": "3 0 1;3 3 0;2 4 0;3 0 2;2 3 1"}, {"input": "3 2 3 3 0;1 1 0 1 1;4 2 0 2 4", "output": "3 1 4;2 1 2;3 0 0;3 1 2;0 1 4"}, {"input": "2 1 1 0 2;2 1 2 0 0;1 0 3 3 0", "output": "2 2 1;1 1 0;1 2 3;0 0 3;2 0 0"}], "query_input": "1 4 2 0 2;4 4 0 2 4;3 1 1 4 2", "query_output": "1 4 3;4 4 1;2 0 1;0 2 4;2 4 2"}
{"task_id": "icgr-00011", "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": 4, "num_support": 2, "support": [{"input": "3 5 1 0;1 5 3 2;1 1 1 5;3 3 2 0;0 5 1 3", "output": "1 3 5 4;5 3 1 0;5 5 5 3;1 1 0 4;4 3 5 1"}, {"input": "5 1 0 1;3 5 4 2;4 1 4 4;2 2 0 4;0 0 2 2", "output": "3 5 4 5;1 3 2 0;2 5 2 2;0 0 4 2;4 4 0 0"}], "query_input": "3 0 4 5;0 1 3 4;0 3 0 5;4 2 0 3;0 3 3 2", "query_output": "1 4 2 3;4 5 1 2;4 1 4 3;2 0 4 1;4 1 1 0"}
{"task_id": "icgr-00308", "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": 4, "grid_w": 4, "num_support": 3, "support": [{"input": "4 0 4 4;5 3 0 4;3 4 5 5;5 2 4 4", "output": "4 4 5 4;4 5 3 0;0 0 4 3;4 4 2 0"}, {"input": "5 2 0 0;2 5 0 5;1 3 3 1;2 0 2 3", "output": "5 5 2 0;0 5 0 2;1 3 3 1;3 2 5 2"}, {"input": "2 3 0 3;1 1 0 2;3 1 4 5;2 0 2 4", "output": "3 5 3 2;2 5 1 1;0 4 1 3;4 2 5 2"}], "query_input": "1 5 2 2;4 3 0 5;2 4 4 0;2 3 0 4", "query_output": "2 2 0 1;0 5 3 4;5 4 4 2;4 5 3 2"}
{"task_id": "icgr-00969", "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": 4, "support": [{"input": "2 1 3;3 4 4;1 2 2;2 4 1", "output": "2 1 3 2 1 3;3 4 4 3 4 4;1 2 2 1 2 2;2 4 1 2 4 1"}, {"input": "4 3 1;1 2 2;1 3 2;4 3 3", "output": "4 3 1 4 3 1;1 2 2 1 2 2;1 3 2 1 3 2;4 3 3 4 3 3"}, {"input": "3 3 3;0 0 3;3 1 1;1 2 1", "output": "3 3 3 3 3 3;0 0 3 0 0 3;3 1 1 3 1 1;1 2 1 1 2 1"}, {"input": "3 4 1;4 2 1;0 0 3;1 0 4", "output": "3 4 1 3 4 1;4 2 1 4 2 1;0 0 3 0 0 3;1 0 4 1 0 4"}], "query_input": "2 2 4;0 1 0;2 4 0;4 0 3", "query_output": "2 2 4 2 2 4;0 1 0 0 1 0;2 4 0 2 4 0;4 0 3 4 0 3"}
{"task_id": "icgr-00389", "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": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "2 2 1;0 1 2;4 0 3", "output": "0 0 0;0 1 0;0 0 0"}, {"input": "3 0 1;1 2 3;0 1 1", "output": "0 0 0;0 2 0;0 0 0"}, {"input": "3 4 2;2 0 2;3 3 2", "output": "0 0 0;0 0 0;0 0 0"}], "query_input": "1 2 1;4 2 4;4 4 0", "query_output": "0 0 0;0 2 0;0 0 0"}
{"task_id": "icgr-00458", "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": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "3 4 1;1 4 1;1 1 0", "output": "0 1 1;1 1 4;1 3 4"}, {"input": "2 2 2;2 1 1;3 4 4", "output": "4 3 4;1 2 1;2 2 2"}], "query_input": "3 3 0;4 3 4;0 0 2", "query_output": "2 0 0;4 4 3;0 3 3"}
{"task_id": "icgr-00262", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 2, "support": [{"input": "0 2 1;1 2 3;2 0 1;2 3 2;1 1 2", "output": "3 2 1;1 2 0;2 3 1;2 0 2;1 1 2"}, {"input": "1 1 0;1 3 3;2 1 1;0 1 2;1 0 0", "output": "1 1 3;1 0 0;2 1 1;3 1 2;1 3 3"}], "query_input": "2 1 3;1 1 2;1 1 3;0 3 1;2 1 0", "query_output": "2 1 0;1 1 2;1 1 0;3 0 1;2 1 3"}
{"task_id": "icgr-00288", "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": "5 2 2 4 5;4 2 1 0 2;1 5 5 5 1;4 3 1 2 3;3 1 3 0 2", "output": "0 4 4 1 0;1 4 3 2 4;3 0 0 0 3;1 5 3 4 5;5 3 5 2 4"}, {"input": "5 4 3 3 3;5 2 4 4 3;0 3 1 0 5;5 5 0 5 1;2 3 3 5 2", "output": "0 1 5 5 5;0 4 1 1 5;2 5 3 2 0;0 0 2 0 3;4 5 5 0 4"}], "query_input": "5 1 3 3 4;3 2 5 4 4;1 3 0 0 4;0 5 3 3 5;4 2 1 5 1", "query_output": "0 3 5 5 1;5 4 0 1 1;3 5 2 2 1;2 0 5 5 0;1 4 3 0 3"}
{"task_id": "icgr-00657", "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": "1 1 0 2;3 1 3 3;3 4 3 2", "output": "3 0 4 4;1 1 1 4;1 0 1 2"}, {"input": "1 2 4 0;3 3 1 4;4 1 0 3", "output": "2 3 4 0;4 2 1 1;3 1 2 4"}, {"input": "0 0 3 2;1 4 3 1;0 4 1 2", "output": "1 0 3 3;1 4 4 2;4 0 3 2"}, {"input": "2 3 2 1;2 0 4 3;4 1 0 0", "output": "0 4 0 1;2 1 0 3;3 3 2 4"}], "query_input": "4 2 4 3;0 2 1 4;2 3 4 4", "query_output": "2 1 2 0;4 2 3 0;2 2 0 1"}
{"task_id": "icgr-00112", "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": 3, "num_support": 3, "support": [{"input": "0 2 3;2 1 0;5 3 2;4 1 1;0 2 3", "output": "5 0 3;4 3 5;0 5 2;4 4 1;5 0 3"}, {"input": "1 2 3;3 4 3;1 2 2;0 5 1;2 1 3", "output": "5 0 4;1 0 0;5 5 4;2 4 3;4 0 5"}, {"input": "4 0 5;4 5 1;1 0 2;4 1 0;0 2 2", "output": "3 2 1;2 4 1;3 5 4;4 3 1;5 5 3"}], "query_input": "4 4 4;0 4 2;3 2 0;1 4 2;1 2 5", "query_output": "1 1 1;1 5 3;5 3 0;1 5 4;5 2 4"}
{"task_id": "icgr-00370", "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": 4, "grid_w": 3, "num_support": 2, "support": [{"input": "4 4 1;3 3 1;3 4 4;0 1 2", "output": "4 4 4;4 3 4;4 4 4;4 4 4"}, {"input": "2 3 1;3 4 2;0 2 1;0 1 0", "output": "4 4 4;4 4 4;4 2 4;4 4 4"}], "query_input": "0 2 1;4 3 2;0 3 1;4 1 1", "query_output": "4 4 4;4 3 4;4 3 4;4 4 4"}
{"task_id": "icgr-00403", "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": "2 4 3 0 5;2 2 4 4 4;5 2 0 2 3;3 0 0 5 0;1 4 1 3 2", "output": "2 2 5 3 1;4 2 2 0 4;3 4 0 0 1;0 4 2 5 3;5 4 3 0 2"}, {"input": "0 2 4 4 0;5 5 4 4 3;2 2 0 5 1;3 5 0 4 4;0 5 0 1 0", "output": "0 5 2 3 0;2 5 2 5 5;4 4 0 0 0;4 4 5 4 1;0 3 1 4 0"}, {"input": "5 0 0 1 3;0 1 4 0 1;3 0 5 2 0;3 1 3 3 2;2 5 1 4 0", "output": "5 0 3 3 2;0 1 0 1 5;0 4 5 3 1;1 0 2 3 4;3 1 0 2 0"}], "query_input": "1 4 3 1 1;1 1 5 3 4;5 5 1 4 4;5 4 1 5 1;3 4 5 1 3", "query_output": "1 1 5 5 3;4 1 5 4 4;3 5 1 1 5;1 3 4 5 1;1 4 4 1 3"}
{"task_id": "icgr-00926", "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": 4, "num_support": 2, "support": [{"input": "2 3 2 3;3 2 3 3;2 0 1 0;0 4 0 0", "output": "1 1 1 1;1 1 2 1;1 4 0 1;1 1 1 1"}, {"input": "3 0 3 3;4 4 2 2;0 4 4 4;1 4 4 4", "output": "1 1 1 1;1 3 1 1;1 3 3 1;1 1 1 1"}], "query_input": "1 2 3 0;3 1 4 1;3 4 0 4;0 3 3 2", "query_output": "1 1 1 1;1 0 3 1;1 3 4 1;1 1 1 1"}
{"task_id": "icgr-00837", "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": 3, "num_support": 2, "support": [{"input": "1 2 1;3 0 3;0 3 3", "output": "3 0 3;3 3 0;1 1 2"}, {"input": "2 0 1;0 2 3;1 0 2", "output": "2 1 0;3 0 2;1 2 0"}], "query_input": "0 0 3;0 3 2;3 2 3", "query_output": "3 3 2;2 0 3;3 0 0"}
{"task_id": "icgr-00683", "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": 3, "num_support": 4, "support": [{"input": "4 4 3;0 2 2;2 1 2;0 3 0;0 2 0", "output": "1 1 1;1 2 1;1 1 1;1 3 1;1 1 1"}, {"input": "0 2 1;3 0 3;1 3 3;2 1 0;1 3 3", "output": "1 1 1;1 0 1;1 3 1;1 1 1;1 1 1"}, {"input": "3 0 0;4 2 3;2 4 3;2 4 3;0 0 4", "output": "1 1 1;1 2 1;1 4 1;1 4 1;1 1 1"}, {"input": "2 4 3;4 3 4;4 2 1;2 1 2;4 3 0", "output": "1 1 1;1 3 1;1 2 1;1 1 1;1 1 1"}], "query_input": "4 4 2;1 2 3;2 2 4;1 1 4;2 4 4", "query_output": "1 1 1;1 2 1;1 2 1;1 1 1;1 1 1"}
{"task_id": "icgr-00651", "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": 3, "num_support": 2, "support": [{"input": "2 1 0;2 3 3;2 0 2;3 2 0;0 2 0", "output": "3 0 2;1 1 2;0 2 2;2 0 1;2 0 0"}, {"input": "3 2 2;3 2 2;3 0 2;3 1 0;2 3 1", "output": "2 2 1;2 2 1;0 2 1;3 0 1;1 3 2"}], "query_input": "2 3 1;3 1 0;0 0 3;1 0 2;3 1 3", "query_output": "1 3 2;3 0 1;0 1 0;0 2 3;3 1 1"}
{"task_id": "icgr-00557", "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": 4, "support": [{"input": "3 1 0 3 0;3 3 3 4 0;4 2 1 0 4;3 2 2 0 3", "output": "1 4 3 1 3;1 1 1 2 3;2 0 4 3 2;1 0 0 3 1"}, {"input": "1 4 1 1 4;0 0 4 4 3;1 4 4 4 4;1 3 1 1 4", "output": "4 2 4 4 2;3 3 2 2 1;4 2 2 2 2;4 1 4 4 2"}, {"input": "1 2 1 0 1;2 1 2 0 2;0 3 0 4 2;4 1 0 2 4", "output": "4 0 4 3 4;0 4 0 3 0;3 1 3 2 0;2 4 3 0 2"}, {"input": "3 1 2 2 0;4 4 0 2 2;2 4 0 4 3;3 2 2 1 2", "output": "1 4 0 0 3;2 2 3 0 0;0 2 3 2 1;1 0 0 4 0"}], "query_input": "3 1 4 3 2;2 0 4 1 0;0 3 1 1 4;4 2 3 2 3", "query_output": "1 4 2 1 0;0 3 2 4 3;3 1 4 4 2;2 0 1 0 1"}
{"task_id": "icgr-00316", "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": 3, "support": [{"input": "0 3 2 3 2;2 2 1 3 1;2 3 2 1 0;2 3 2 3 3;3 2 0 3 0", "output": "2 3 0 2 3;1 2 2 1 3;2 3 2 0 1;2 3 2 3 3;0 2 3 0 3"}, {"input": "2 1 1 0 3;0 3 2 2 0;2 2 2 0 1;3 2 1 3 3;1 0 1 0 1", "output": "1 1 2 3 0;2 3 0 0 2;2 2 2 1 0;1 2 3 3 3;1 0 1 1 0"}, {"input": "0 3 1 3 3;0 3 1 2 1;1 0 3 3 3;3 1 1 3 2;3 1 3 1 0", "output": "1 3 0 3 3;1 3 0 1 2;3 0 1 3 3;1 1 3 2 3;3 1 3 0 1"}], "query_input": "1 0 3 1 0;1 0 0 3 0;0 1 0 3 0;1 2 0 3 1;2 1 0 3 0", "query_output": "3 0 1 0 1;0 0 1 0 3;0 1 0 0 3;0 2 1 1 3;0 1 2 0 3"}
{"task_id": "icgr-00289", "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": "1 0 2;5 4 1;5 4 1;2 1 3;3 0 3", "output": "2 1 0;1 5 4;1 5 4;3 2 1;3 3 0"}, {"input": "4 2 1;2 3 2;4 2 3;3 2 3;1 5 4", "output": "1 4 2;2 2 3;3 4 2;3 3 2;4 1 5"}, {"input": "5 5 4;4 3 0;0 1 2;2 3 4;2 3 3", "output": "4 5 5;0 4 3;2 0 1;4 2 3;3 2 3"}], "query_input": "1 2 5;4 4 4;5 3 4;2 2 5;5 4 4", "query_output": "5 1 2;4 4 4;4 5 3;5 2 2;4 5 4"}
{"task_id": "icgr-00637", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 4, "grid_h": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "1 2 1 3 1;1 0 0 2 2;0 3 2 3 0", "output": "1 1 0;2 0 3;1 0 2;3 2 3;1 2 0"}, {"input": "2 0 0 1 2;1 0 0 3 0;2 2 1 2 2", "output": "2 1 2;0 0 2;0 0 1;1 3 2;2 0 2"}, {"input": "1 2 2 1 2;3 2 1 1 1;1 0 1 0 3", "output": "1 3 1;2 2 0;2 1 1;1 1 0;2 1 3"}, {"input": "2 1 3 1 3;3 0 0 3 3;2 2 3 3 2", "output": "2 3 2;1 0 2;3 0 3;1 3 3;3 3 2"}], "query_input": "2 1 0 1 2;0 1 1 3 2;2 1 3 0 0", "query_output": "2 0 2;1 1 1;0 1 3;1 3 0;2 2 0"}
{"task_id": "icgr-00612", "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": 4, "num_support": 3, "support": [{"input": "1 0 3 0;3 0 3 2;4 2 4 4;2 1 0 1", "output": "0 1 0 3;2 3 0 3;4 4 2 4;1 2 1 0"}, {"input": "1 0 3 4;1 3 1 2;0 1 0 2;2 0 0 4", "output": "4 1 0 3;2 1 3 1;2 0 1 0;4 2 0 0"}, {"input": "0 4 0 4;2 4 4 4;4 3 0 0;2 2 3 0", "output": "4 0 4 0;4 2 4 4;0 4 3 0;0 2 2 3"}], "query_input": "3 2 1 2;0 1 4 3;1 3 3 3;2 1 0 4", "query_output": "2 3 2 1;3 0 1 4;3 1 3 3;4 2 1 0"}
{"task_id": "icgr-00433", "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": "2 4 0;1 0 3;3 4 4", "output": "2 4 0 2 4 0;1 0 3 1 0 3;3 4 4 3 4 4"}, {"input": "3 3 4;2 2 2;1 4 0", "output": "3 3 4 3 3 4;2 2 2 2 2 2;1 4 0 1 4 0"}], "query_input": "2 0 1;0 4 1;0 1 0", "query_output": "2 0 1 2 0 1;0 4 1 0 4 1;0 1 0 0 1 0"}
{"task_id": "icgr-00814", "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": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "1 3 1 0 1;3 1 1 3 2;1 0 5 2 0;1 3 3 4 5", "output": "4 5 1 3 3;2 0 1 0 5;3 2 3 1 1;0 1 1 3 1"}, {"input": "4 2 1 0 4;4 4 1 0 1;1 3 4 0 5;0 3 4 4 0", "output": "4 0 0 3 4;0 5 1 3 4;0 1 4 4 1;0 4 4 2 1"}, {"input": "0 0 5 3 4;0 0 1 0 4;1 5 3 5 0;2 4 2 1 3", "output": "1 3 2 4 2;5 0 1 5 3;0 4 0 0 1;3 4 0 0 5"}, {"input": "1 4 0 2 4;4 5 4 0 4;1 4 2 4 0;1 2 5 5 1", "output": "5 1 1 2 5;4 0 1 4 2;0 4 4 5 4;2 4 1 4 0"}], "query_input": "0 5 3 3 3;1 5 3 3 4;5 4 4 2 5;5 3 1 4 4", "query_output": "4 4 5 3 1;2 5 5 4 4;3 4 1 5 3;3 3 0 5 3"}
{"task_id": "icgr-00857", "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": 3, "num_support": 4, "support": [{"input": "1 5 4;2 1 3;0 5 5;0 0 3;5 2 5", "output": "0 0 0;0 2 0;0 0 0;0 1 0;0 0 0"}, {"input": "4 5 4;3 4 5;3 0 5;2 3 0;2 2 0", "output": "0 0 0;0 5 0;0 1 0;0 4 0;0 0 0"}, {"input": "1 0 2;5 3 1;1 1 0;1 2 0;5 2 1", "output": "0 0 0;0 4 0;0 2 0;0 3 0;0 0 0"}, {"input": "2 1 3;2 2 2;2 3 4;2 1 3;1 3 3", "output": "0 0 0;0 3 0;0 4 0;0 2 0;0 0 0"}], "query_input": "2 1 1;5 1 5;3 4 0;1 1 5;3 1 2", "query_output": "0 0 0;0 2 0;0 5 0;0 2 0;0 0 0"}
{"task_id": "icgr-00922", "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": "0 1 0;2 3 0;1 2 0", "output": "0 2 1;1 3 2;0 0 0"}, {"input": "0 3 2;1 0 3;0 3 0", "output": "0 1 0;3 0 3;2 3 0"}, {"input": "1 3 3;1 3 2;0 1 0", "output": "1 1 0;3 3 1;3 2 0"}], "query_input": "1 2 3;2 1 3;2 1 1", "query_output": "1 2 2;2 1 1;3 3 1"}
{"task_id": "icgr-00081", "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": 3, "num_support": 4, "support": [{"input": "0 2 2;3 0 1;1 3 1;0 2 1;2 1 0", "output": "1 1 1;1 0 1;1 3 1;1 2 1;1 1 1"}, {"input": "0 0 1;2 0 0;0 0 3;0 3 3;1 1 0", "output": "1 1 1;1 0 1;1 0 1;1 3 1;1 1 1"}, {"input": "2 0 1;1 0 0;3 2 3;3 2 1;0 1 2", "output": "1 1 1;1 0 1;1 2 1;1 2 1;1 1 1"}, {"input": "0 3 0;3 2 2;1 1 0;3 1 2;0 2 3", "output": "1 1 1;1 2 1;1 1 1;1 1 1;1 1 1"}], "query_input": "3 3 1;0 1 3;3 3 2;0 1 3;0 0 0", "query_output": "1 1 1;1 1 1;1 3 1;1 1 1;1 1 1"}
{"task_id": "icgr-00278", "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": 2, "support": [{"input": "3 2 2 4;4 1 3 0;0 1 2 1;4 3 4 3;3 4 4 3", "output": "3 4 4 3;4 3 4 3;0 1 2 1;4 1 3 0;3 2 2 4"}, {"input": "2 1 2 2;4 3 2 3;0 0 1 0;0 2 0 0;2 0 4 3", "output": "2 0 4 3;0 2 0 0;0 0 1 0;4 3 2 3;2 1 2 2"}], "query_input": "0 4 3 3;4 1 4 3;0 1 0 0;4 1 0 1;0 4 2 2", "query_output": "0 4 2 2;4 1 0 1;0 1 0 0;4 1 4 3;0 4 3 3"}
{"task_id": "icgr-00584", "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": 5, "grid_w": 4, "num_support": 4, "support": [{"input": "4 4 1 3;2 1 4 3;4 0 1 4;2 2 3 4;0 2 4 3", "output": "0 3 1 1;0 1 3 4;1 3 2 1;1 0 4 4;0 1 4 2"}, {"input": "0 1 3 0;4 1 2 2;3 0 2 2;0 2 0 0;3 4 4 3", "output": "2 0 3 2;4 4 3 1;4 4 2 0;2 2 4 2;0 1 1 0"}, {"input": "3 3 0 3;3 2 4 0;2 2 2 0;1 3 2 4;3 3 1 0", "output": "0 2 0 0;2 1 4 0;2 4 4 4;1 4 0 3;2 3 0 0"}, {"input": "1 2 1 3;3 1 0 3;3 4 4 2;2 1 0 1;0 3 2 1", "output": "0 3 4 3;0 2 3 0;4 1 1 0;3 2 3 4;3 4 0 2"}], "query_input": "3 2 3 4;4 1 0 1;1 0 2 1;3 2 0 3;4 2 0 2", "query_output": "1 0 4 0;3 2 3 1;3 4 2 3;0 2 4 0;4 2 4 1"}
{"task_id": "icgr-00785", "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": "1 1 2 3;0 3 3 2;2 2 0 0;2 3 1 1", "output": "3 1 1 2;2 0 3 3;0 2 2 0;1 2 3 1"}, {"input": "1 3 2 0;3 2 1 2;3 2 0 2;3 3 2 3", "output": "0 1 3 2;2 3 2 1;2 3 2 0;3 3 3 2"}, {"input": "1 2 1 3;0 2 2 3;0 3 2 3;3 3 3 1", "output": "3 1 2 1;3 0 2 2;3 0 3 2;1 3 3 3"}], "query_input": "3 2 1 1;1 3 0 3;1 3 0 3;2 1 1 3", "query_output": "1 3 2 1;3 1 3 0;3 1 3 0;3 2 1 1"}
{"task_id": "icgr-00029", "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": 4, "num_support": 4, "support": [{"input": "5 4 4 2;5 2 0 0;3 5 3 5;0 1 4 2", "output": "2 2 2 2;2 0 2 2;2 3 5 2;2 2 2 2"}, {"input": "2 2 3 3;0 1 2 3;1 3 2 4;2 0 2 3", "output": "2 2 2 2;2 2 1 2;2 2 3 2;2 2 2 2"}, {"input": "3 3 0 0;5 2 0 4;5 0 1 4;3 1 1 5", "output": "2 2 2 2;2 0 2 2;2 1 0 2;2 2 2 2"}, {"input": "4 1 3 0;4 0 3 2;3 0 3 3;4 2 2 0", "output": "2 2 2 2;2 3 0 2;2 3 0 2;2 2 2 2"}], "query_input": "0 3 5 4;2 3 1 2;0 0 0 3;0 4 4 1", "query_output": "2 2 2 2;2 1 3 2;2 0 0 2;2 2 2 2"}
{"task_id": "icgr-00426", "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": 6, "grid_h": 3, "grid_w": 4, "num_support": 4, "support": [{"input": "0 0 2 1;4 0 3 1;3 4 0 5", "output": "5 5 3 2;1 5 4 2;4 1 5 0"}, {"input": "5 4 3 5;5 1 5 2;4 3 1 1", "output": "0 1 4 0;0 2 0 3;1 4 2 2"}, {"input": "5 3 3 5;5 5 2 1;4 0 0 1", "output": "0 4 4 0;0 0 3 2;1 5 5 2"}, {"input": "1 0 5 1;3 4 0 0;1 3 1 5", "output": "2 5 0 2;4 1 5 5;2 4 2 0"}], "query_input": "0 5 0 3;0 4 3 2;5 1 3 5", "query_output": "5 0 5 4;5 1 4 3;0 2 4 0"}
{"task_id": "icgr-00431", "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": "3 3 3;1 1 0;1 0 0", "output": "3 3 3;1 1 2;1 2 2"}, {"input": "1 2 2;2 1 1;0 0 0", "output": "1 0 0;0 1 1;2 2 2"}], "query_input": "2 0 2;2 3 3;1 2 2", "query_output": "0 2 0;0 3 3;1 0 0"}
{"task_id": "icgr-00912", "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": "4 5 1;4 1 1;3 5 2;4 2 0", "output": "2 2 2;2 1 2;2 5 2;2 2 2"}, {"input": "4 1 4;5 5 0;3 4 4;0 2 5", "output": "2 2 2;2 5 2;2 4 2;2 2 2"}, {"input": "4 0 1;5 2 2;5 2 3;0 4 4", "output": "2 2 2;2 2 2;2 2 2;2 2 2"}], "query_input": "2 5 3;4 1 5;2 0 0;0 2 3", "query_output": "2 2 2;2 1 2;2 0 2;2 2 2"}
{"task_id": "icgr-00732", "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": 4, "support": [{"input": "2 5 1 4 1;4 5 3 5 1;0 3 0 5 4;2 5 0 3 3;0 1 1 4 1", "output": "2 5 1 4 1 2 5 1 4 1;4 5 3 5 1 4 5 3 5 1;0 3 0 5 4 0 3 0 5 4;2 5 0 3 3 2 5 0 3 3;0 1 1 4 1 0 1 1 4 1"}, {"input": "4 0 4 1 3;4 4 5 1 3;4 0 5 5 0;5 4 3 1 2;1 4 5 1 4", "output": "4 0 4 1 3 4 0 4 1 3;4 4 5 1 3 4 4 5 1 3;4 0 5 5 0 4 0 5 5 0;5 4 3 1 2 5 4 3 1 2;1 4 5 1 4 1 4 5 1 4"}, {"input": "2 4 3 0 1;2 4 3 0 0;5 5 3 1 4;3 2 5 1 5;3 4 0 2 1", "output": "2 4 3 0 1 2 4 3 0 1;2 4 3 0 0 2 4 3 0 0;5 5 3 1 4 5 5 3 1 4;3 2 5 1 5 3 2 5 1 5;3 4 0 2 1 3 4 0 2 1"}, {"input": "0 5 4 1 2;4 4 1 3 1;2 0 0 2 0;5 3 0 3 1;0 3 0 2 0", "output": "0 5 4 1 2 0 5 4 1 2;4 4 1 3 1 4 4 1 3 1;2 0 0 2 0 2 0 0 2 0;5 3 0 3 1 5 3 0 3 1;0 3 0 2 0 0 3 0 2 0"}], "query_input": "4 4 1 4 0;4 4 5 1 5;4 0 4 3 1;4 2 1 3 1;2 2 0 3 1", "query_output": "4 4 1 4 0 4 4 1 4 0;4 4 5 1 5 4 4 5 1 5;4 0 4 3 1 4 0 4 3 1;4 2 1 3 1 4 2 1 3 1;2 2 0 3 1 2 2 0 3 1"}
{"task_id": "icgr-00813", "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": "2 3 2 5 5;0 1 3 3 1;1 3 0 0 0", "output": "1 0 2;3 1 3;0 3 2;0 3 5;0 1 5"}, {"input": "0 5 3 3 3;5 2 5 3 0;4 1 0 3 3", "output": "4 5 0;1 2 5;0 5 3;3 3 3;3 0 3"}], "query_input": "4 0 2 3 5;1 3 5 4 2;1 5 2 3 2", "query_output": "1 1 4;5 3 0;2 5 2;3 4 3;2 2 5"}
{"task_id": "icgr-00581", "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": 3, "support": [{"input": "0 1 3 0;0 3 0 1;3 3 1 1;3 1 1 0;0 2 0 1", "output": "3 0 2 3;3 2 3 0;2 2 0 0;2 0 0 3;3 1 3 0"}, {"input": "1 0 2 2;0 0 0 2;1 2 2 1;3 3 0 3;0 3 3 1", "output": "0 3 1 1;3 3 3 1;0 1 1 0;2 2 3 2;3 2 2 0"}, {"input": "1 0 0 3;1 2 0 0;3 2 2 3;2 0 0 1;3 1 1 3", "output": "0 3 3 2;0 1 3 3;2 1 1 2;1 3 3 0;2 0 0 2"}], "query_input": "1 3 0 3;2 2 2 2;3 0 0 3;3 1 1 2;1 1 0 0", "query_output": "0 2 3 2;1 1 1 1;2 3 3 2;2 0 0 1;0 0 3 3"}
{"task_id": "icgr-00096", "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": 3, "support": [{"input": "2 0 2;0 0 2;3 0 2;1 2 3", "output": "1 2 3;3 0 2;0 0 2;2 0 2"}, {"input": "0 3 4;3 4 3;3 2 2;4 1 0", "output": "4 1 0;3 2 2;3 4 3;0 3 4"}, {"input": "4 3 1;3 4 4;3 1 3;4 1 2", "output": "4 1 2;3 1 3;3 4 4;4 3 1"}], "query_input": "2 0 3;3 0 0;3 2 1;1 2 3", "query_output": "1 2 3;3 2 1;3 0 0;2 0 3"}
{"task_id": "icgr-00496", "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": 3, "support": [{"input": "4 2 2;3 1 5;3 4 0;4 0 0;0 1 5", "output": "1 5 5;0 4 2;0 1 3;1 3 3;3 4 2"}, {"input": "1 4 5;5 4 3;4 0 0;4 1 0;5 0 1", "output": "4 1 2;2 1 0;1 3 3;1 4 3;2 3 4"}, {"input": "4 0 4;0 0 5;0 5 1;2 4 3;4 4 5", "output": "1 3 1;3 3 2;3 2 4;5 1 0;1 1 2"}], "query_input": "2 2 2;0 3 1;0 2 5;3 2 0;0 1 3", "query_output": "5 5 5;3 0 4;3 5 2;0 5 3;3 4 0"}
{"task_id": "icgr-00766", "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": 4, "num_support": 3, "support": [{"input": "4 1 2 0;0 4 0 4;0 0 0 0", "output": "0 0 0 0;4 0 4 0;0 2 1 4"}, {"input": "2 0 1 5;0 1 4 5;2 3 1 2", "output": "2 1 3 2;5 4 1 0;5 1 0 2"}, {"input": "4 1 5 2;5 2 5 4;5 4 2 1", "output": "1 2 4 5;4 5 2 5;2 5 1 4"}], "query_input": "3 3 3 0;3 3 1 2;0 0 5 4", "query_output": "4 5 0 0;2 1 3 3;0 3 3 3"}
{"task_id": "icgr-00762", "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 4 1;2 1 0;3 3 2;4 1 2;0 4 0", "output": "1 4 1;4 0 2;3 3 2;2 0 1;4 4 0"}, {"input": "1 3 4;0 1 0;0 1 1;3 4 4;3 4 2", "output": "3 4 2;3 4 4;1 0 0;1 0 1;0 3 4"}], "query_input": "0 0 2;3 3 1;4 0 2;1 0 1;3 2 2", "query_output": "3 2 2;0 1 0;4 1 2;3 3 0;1 1 2"}
{"task_id": "icgr-00855", "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": 5, "num_support": 3, "support": [{"input": "3 1 0 4 1;3 4 1 2 3;0 1 0 3 3;1 0 1 1 0", "output": "1 4 1 1 4;4 1 4 3 3;3 0 1 2 3;3 1 4 0 1"}, {"input": "4 4 4 0 4;3 0 3 0 1;3 4 1 3 4;3 4 3 4 3", "output": "3 0 3 0 3;3 0 1 3 0;3 4 3 4 1;0 0 0 4 0"}, {"input": "3 2 2 0 4;4 1 3 3 1;3 1 1 2 2;1 4 1 2 4", "output": "1 0 1 2 0;3 1 1 2 2;0 1 3 3 1;3 2 2 4 0"}], "query_input": "0 4 4 3 2;1 1 3 3 4;4 4 2 3 3;3 4 3 1 3", "query_output": "3 0 3 1 3;0 0 2 3 3;1 1 3 3 0;4 0 0 3 2"}
{"task_id": "icgr-00659", "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": "1 1 0 2 3;4 1 2 5 3;3 4 4 1 5;4 5 1 4 5;2 2 2 1 1", "output": "3 1 1 0 2;3 4 1 2 5;5 3 4 4 1;5 4 5 1 4;1 2 2 2 1"}, {"input": "5 2 5 1 0;4 5 2 3 3;3 0 1 0 5;0 2 4 3 3;2 2 3 0 2", "output": "0 5 2 5 1;3 4 5 2 3;5 3 0 1 0;3 0 2 4 3;2 2 2 3 0"}], "query_input": "2 5 1 5 5;1 5 0 5 0;0 2 3 4 3;1 3 0 1 4;0 2 4 4 0", "query_output": "5 2 5 1 5;0 1 5 0 5;3 0 2 3 4;4 1 3 0 1;0 0 2 4 4"}
{"task_id": "icgr-00128", "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 1 0 3 0;3 0 1 0 0;3 3 3 1 1;0 0 2 3 1", "output": "1 0 1 3 1;3 1 0 1 1;3 3 3 0 0;1 1 2 3 0"}, {"input": "1 2 0 1 3;3 0 3 2 0;2 2 2 1 3;1 1 2 0 1", "output": "0 2 1 0 3;3 1 3 2 1;2 2 2 0 3;0 0 2 1 0"}, {"input": "1 2 2 2 1;2 3 1 3 2;0 0 0 0 3;3 3 0 3 0", "output": "0 2 2 2 0;2 3 0 3 2;1 1 1 1 3;3 3 1 3 1"}], "query_input": "0 3 2 3 0;0 2 0 3 3;0 0 1 0 1;2 2 1 1 2", "query_output": "1 3 2 3 1;1 2 1 3 3;1 1 0 1 0;2 2 0 0 2"}
{"task_id": "icgr-00758", "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": 3, "support": [{"input": "2 2 2;1 1 2;3 2 0;0 0 1", "output": "2 2 2 2 2 2;1 1 2 1 1 2;3 2 0 3 2 0;0 0 1 0 0 1"}, {"input": "2 2 0;3 2 3;2 3 1;1 1 2", "output": "2 2 0 2 2 0;3 2 3 3 2 3;2 3 1 2 3 1;1 1 2 1 1 2"}, {"input": "1 1 2;1 2 0;0 0 3;2 1 1", "output": "1 1 2 1 1 2;1 2 0 1 2 0;0 0 3 0 0 3;2 1 1 2 1 1"}], "query_input": "0 3 2;0 2 2;2 1 2;1 2 2", "query_output": "0 3 2 0 3 2;0 2 2 0 2 2;2 1 2 2 1 2;1 2 2 1 2 2"}
{"task_id": "icgr-00056", "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": "4 3 4 4;1 0 3 2;3 2 1 3;0 1 0 0;2 2 0 0", "output": "4 0 4 4;1 3 0 2;0 2 1 0;3 1 3 3;2 2 3 3"}, {"input": "0 3 4 0;0 0 1 1;0 0 2 0;2 0 1 4;0 2 0 0", "output": "3 0 4 3;3 3 1 1;3 3 2 3;2 3 1 4;3 2 3 3"}, {"input": "4 1 4 3;4 3 4 1;4 4 1 2;3 1 4 3;1 1 4 1", "output": "4 1 4 0;4 0 4 1;4 4 1 2;0 1 4 0;1 1 4 1"}], "query_input": "3 2 4 4;2 4 2 4;3 1 4 3;4 1 3 4;2 0 0 2", "query_output": "0 2 4 4;2 4 2 4;0 1 4 0;4 1 0 4;2 3 3 2"}
{"task_id": "icgr-00563", "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 1 3 3;2 2 2 3;1 1 0 2;0 3 1 3;0 4 2 1", "output": "3 3 1 0;3 2 2 2;2 0 1 1;3 1 3 0;1 2 4 0"}, {"input": "0 2 3 1;2 1 4 0;2 4 0 2;4 0 3 1;3 0 2 3", "output": "1 3 2 0;0 4 1 2;2 0 4 2;1 3 0 4;3 2 0 3"}, {"input": "4 1 1 4;3 0 1 2;4 0 4 0;3 0 2 4;2 0 1 0", "output": "4 1 1 4;2 1 0 3;0 4 0 4;4 2 0 3;0 1 0 2"}], "query_input": "3 1 0 1;2 1 0 2;2 4 4 0;0 2 2 2;2 4 0 3", "query_output": "1 0 1 3;2 0 1 2;0 4 4 2;2 2 2 0;3 0 4 2"}
{"task_id": "icgr-00747", "rule": "color_swap", "rule_kind": "atomic", "rule_description": "Swap two colours everywhere they appear.", "num_colors": 6, "grid_h": 3, "grid_w": 4, "num_support": 2, "support": [{"input": "5 3 0 0;1 0 5 1;0 2 0 1", "output": "5 3 1 1;0 1 5 0;1 2 1 0"}, {"input": "3 3 1 4;3 3 3 5;0 1 0 0", "output": "3 3 0 4;3 3 3 5;1 0 1 1"}], "query_input": "5 1 1 4;0 4 4 1;2 2 5 1", "query_output": "5 0 0 4;1 4 4 0;2 2 5 0"}
{"task_id": "icgr-00043", "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": "3 3 1 3 3;2 3 3 1 1;1 3 1 0 2;1 3 3 0 2", "output": "1 1 3 1 1;2 1 1 3 3;3 1 3 0 2;3 1 1 0 2"}, {"input": "3 0 1 0 2;1 0 3 3 0;2 3 0 3 0;3 1 0 2 2", "output": "1 0 3 0 2;3 0 1 1 0;2 1 0 1 0;1 3 0 2 2"}, {"input": "2 2 3 1 1;3 3 1 0 2;2 3 1 1 0;0 3 3 1 2", "output": "2 2 1 3 3;1 1 3 0 2;2 1 3 3 0;0 1 1 3 2"}], "query_input": "2 2 0 1 1;2 2 0 0 3;3 0 0 1 2;2 2 2 3 2", "query_output": "2 2 0 3 3;2 2 0 0 1;1 0 0 3 2;2 2 2 1 2"}
{"task_id": "icgr-00414", "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": "3 0 2 2 1;3 0 3 2 2;0 0 1 1 0;3 0 1 2 0", "output": "3 0 1 2 0;0 0 1 1 0;3 0 3 2 2;3 0 2 2 1"}, {"input": "1 0 2 2 3;3 2 0 3 0;1 2 0 2 3;0 1 2 2 3", "output": "0 1 2 2 3;1 2 0 2 3;3 2 0 3 0;1 0 2 2 3"}], "query_input": "3 3 1 2 1;1 0 1 0 3;3 2 1 3 0;1 0 0 1 1", "query_output": "1 0 0 1 1;3 2 1 3 0;1 0 1 0 3;3 3 1 2 1"}
{"task_id": "icgr-00036", "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": 5, "num_support": 4, "support": [{"input": "5 1 2 5 4;2 2 2 1 3;3 3 1 2 3;5 4 3 4 1;5 3 4 1 5", "output": "1 5 4 5 2;2 2 3 1 2;3 3 3 2 1;4 5 1 4 3;3 5 5 1 4"}, {"input": "1 4 3 5 3;2 1 0 2 5;2 4 4 0 3;4 3 4 3 2;2 0 5 2 1", "output": "4 1 3 5 3;1 2 5 2 0;4 2 3 0 4;3 4 2 3 4;0 2 1 2 5"}, {"input": "4 5 5 2 5;5 5 2 2 3;1 3 0 3 0;5 4 2 0 2;2 1 4 3 3", "output": "5 4 5 2 5;5 5 3 2 2;3 1 0 3 0;4 5 2 0 2;1 2 3 3 4"}, {"input": "2 4 4 3 5;4 0 0 2 3;3 3 3 3 2;3 2 2 3 1;5 4 4 0 1", "output": "4 2 5 3 4;0 4 3 2 0;3 3 2 3 3;2 3 1 3 2;4 5 1 0 4"}], "query_input": "1 4 5 4 0;5 1 4 3 2;4 3 2 2 3;3 0 3 2 5;0 1 0 1 1", "query_output": "4 1 0 4 5;1 5 2 3 4;3 4 3 2 2;0 3 5 2 3;1 0 1 1 0"}
{"task_id": "icgr-00024", "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 1 2;1 2 4;4 1 2;1 3 4", "output": "1 4 1 0;3 1 2 1;4 2 4 2"}, {"input": "3 3 4;0 0 0;3 4 2;1 1 3", "output": "1 3 0 3;1 4 0 3;3 2 0 4"}, {"input": "3 4 3;1 4 2;4 4 3;1 3 3", "output": "1 4 1 3;3 4 4 4;3 3 2 3"}], "query_input": "3 2 4;1 0 2;0 4 0;4 4 1", "query_output": "4 0 1 3;4 4 0 2;1 0 2 4"}
{"task_id": "icgr-00701", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "1 3 1;3 2 3;0 0 1;1 2 3;2 3 0", "output": "2 1 0 3 1;3 2 0 2 3;0 3 1 3 1"}, {"input": "0 2 1;0 4 0;2 2 0;0 2 0;1 2 1", "output": "1 0 2 0 0;2 2 2 4 2;1 0 0 0 1"}, {"input": "0 2 3;3 3 2;0 4 0;4 1 4;1 3 2", "output": "1 4 0 3 0;3 1 4 3 2;2 4 0 2 3"}], "query_input": "4 2 0;3 1 3;0 1 1;1 4 4;4 1 2", "query_output": "4 1 0 3 4;1 4 1 1 2;2 4 1 3 0"}
{"task_id": "icgr-00266", "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": "4 2 5 5 2;1 1 4 1 1;1 2 4 5 2", "output": "4 2 5 5 2 4 2 5 5 2;1 1 4 1 1 1 1 4 1 1;1 2 4 5 2 1 2 4 5 2"}, {"input": "2 3 0 2 4;3 2 3 4 2;2 3 2 1 3", "output": "2 3 0 2 4 2 3 0 2 4;3 2 3 4 2 3 2 3 4 2;2 3 2 1 3 2 3 2 1 3"}, {"input": "5 0 2 4 2;5 1 2 5 2;2 4 1 1 0", "output": "5 0 2 4 2 5 0 2 4 2;5 1 2 5 2 5 1 2 5 2;2 4 1 1 0 2 4 1 1 0"}, {"input": "4 0 4 1 0;1 3 1 0 5;5 3 1 5 5", "output": "4 0 4 1 0 4 0 4 1 0;1 3 1 0 5 1 3 1 0 5;5 3 1 5 5 5 3 1 5 5"}], "query_input": "5 1 4 4 4;0 4 3 1 0;0 5 2 2 3", "query_output": "5 1 4 4 4 5 1 4 4 4;0 4 3 1 0 0 4 3 1 0;0 5 2 2 3 0 5 2 2 3"}
{"task_id": "icgr-00662", "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": 4, "support": [{"input": "2 1 0 0;3 0 1 4;3 2 4 0;4 1 1 2;2 3 2 1", "output": "0 0 2 1;1 4 3 0;4 0 3 2;1 2 4 1;2 1 2 3"}, {"input": "2 0 1 3;1 4 0 3;1 2 4 1;1 0 4 2;0 2 2 1", "output": "1 3 2 0;0 3 1 4;4 1 1 2;4 2 1 0;2 1 0 2"}, {"input": "0 2 1 2;1 2 0 1;2 0 4 1;0 1 1 0;2 2 3 1", "output": "1 2 0 2;0 1 1 2;4 1 2 0;1 0 0 1;3 1 2 2"}, {"input": "3 1 3 0;1 1 1 1;2 1 4 1;1 0 4 4;3 2 4 0", "output": "3 0 3 1;1 1 1 1;4 1 2 1;4 4 1 0;4 0 3 2"}], "query_input": "4 4 0 1;1 2 4 4;2 3 3 1;0 1 2 4;2 2 1 3", "query_output": "0 1 4 4;4 4 1 2;3 1 2 3;2 4 0 1;1 3 2 2"}
{"task_id": "icgr-00115", "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": "4 3 1 0 1;3 3 4 4 3;3 2 2 3 1", "output": "1 4 3 1 0;3 3 3 4 4;1 3 2 2 3"}, {"input": "1 4 4 1 0;4 3 4 3 3;0 0 1 1 3", "output": "0 1 4 4 1;3 4 3 4 3;3 0 0 1 1"}], "query_input": "1 2 0 0 0;2 4 4 0 1;0 3 2 3 1", "query_output": "0 1 2 0 0;1 2 4 4 0;1 0 3 2 3"}
{"task_id": "icgr-00324", "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": 4, "num_support": 4, "support": [{"input": "1 1 4 4;2 4 3 3;2 1 3 3;3 3 3 0;0 0 3 3;1 4 2 4", "output": "4 4;3 3;4 4"}, {"input": "3 2 4 4;3 4 1 3;1 3 4 2;0 0 2 0;1 0 2 2;1 1 2 4", "output": "4 4;3 4;1 4"}, {"input": "3 1 4 3;1 4 3 0;1 0 0 4;0 0 1 0;1 4 3 3;3 0 4 3", "output": "4 4;1 4;4 4"}, {"input": "0 3 2 1;1 3 4 2;3 0 0 1;2 4 0 2;4 2 3 1;1 4 2 1", "output": "3 4;4 2;4 3"}], "query_input": "2 4 1 2;4 4 1 3;3 0 0 1;2 1 1 4;0 1 2 0;2 4 1 1", "query_output": "4 3;3 4;4 2"}
{"task_id": "icgr-00709", "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": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "2 2 3 1;1 0 0 3;0 0 1 3", "output": "3 1 0 0;1 2 2 3;1 3 2 2"}, {"input": "3 2 2 1;3 0 1 2;1 3 2 0", "output": "3 0 0 1;0 3 2 1;2 0 1 3"}, {"input": "3 1 3 1;3 1 1 3;2 2 2 0", "output": "3 1 3 1;1 3 3 1;2 0 0 0"}], "query_input": "2 2 0 1;0 2 3 3;2 0 2 2", "query_output": "3 2 0 0;1 1 0 2;0 0 2 0"}
{"task_id": "icgr-00520", "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": "0 2 4 4 0;3 4 0 2 4;1 0 3 5 2;0 2 0 2 4;1 2 5 1 4", "output": "1 0 1 3 0;2 2 0 4 2;5 0 3 0 4;1 2 5 2 4;4 4 2 4 0"}, {"input": "4 5 2 5 0;4 4 2 2 4;0 0 2 2 2;4 2 3 1 3;3 1 5 2 5", "output": "3 4 0 4 4;1 2 0 4 5;5 3 2 2 2;2 1 2 2 5;5 3 2 4 0"}, {"input": "1 0 5 0 2;3 4 5 0 3;3 0 0 1 5;0 4 2 1 2;3 1 0 5 1", "output": "3 0 3 3 1;1 4 0 4 0;0 2 0 5 5;5 1 1 0 0;1 2 5 3 2"}, {"input": "4 2 1 5 4;4 5 5 4 5;0 3 3 4 1;1 5 5 0 4;5 1 4 1 5", "output": "5 1 0 4 4;1 5 3 5 2;4 5 3 5 1;1 0 4 4 5;5 4 1 5 4"}], "query_input": "1 0 4 1 3;3 5 4 5 2;3 3 4 1 5;5 2 0 4 0;2 3 3 3 4", "query_output": "2 5 3 3 1;3 2 3 5 0;3 0 4 4 4;3 4 1 5 1;4 0 5 2 3"}
{"task_id": "icgr-00018", "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": 5, "num_support": 2, "support": [{"input": "3 2 1 0 0;1 4 3 1 0;1 1 1 2 3;3 3 1 1 1", "output": "0 0 3 2 1;1 0 1 4 3;2 3 1 1 1;1 1 3 3 1"}, {"input": "0 3 4 3 0;2 2 3 4 3;0 4 4 3 4;4 3 2 3 1", "output": "3 0 0 3 4;4 3 2 2 3;3 4 0 4 4;3 1 4 3 2"}], "query_input": "0 1 2 1 1;1 4 4 2 3;4 4 4 4 1;2 3 2 2 1", "query_output": "1 1 0 1 2;2 3 1 4 4;4 1 4 4 4;2 1 2 3 2"}
{"task_id": "icgr-00337", "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": 3, "num_support": 2, "support": [{"input": "0 3 3;1 1 3;2 0 2;3 4 4", "output": "4 4 3;2 0 2;3 1 1;3 3 0"}, {"input": "0 0 5;3 0 1;3 0 5;3 2 3", "output": "3 2 3;5 0 3;1 0 3;5 0 0"}], "query_input": "3 5 3;4 3 0;2 2 5;1 1 4", "query_output": "4 1 1;5 2 2;0 3 4;3 5 3"}
{"task_id": "icgr-00265", "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": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "2 2 0 2 0;1 1 0 3 0;0 2 2 1 1", "output": "1 3 1 3 3;1 0 1 2 2;2 2 3 3 1"}, {"input": "0 1 0 0 2;0 0 3 1 3;0 0 1 2 3", "output": "3 1 1 2 1;0 2 0 1 1;0 3 2 1 1"}], "query_input": "0 2 3 1 3;1 3 2 0 2;3 2 1 1 2", "query_output": "0 2 0 3 1;3 1 3 0 2;3 2 2 3 0"}
{"task_id": "icgr-00866", "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": "3 1 3;2 0 2;0 2 2;3 0 2", "output": "0 1 0;2 3 2;3 2 2;0 3 2"}, {"input": "1 1 0;0 3 1;3 1 2;3 0 2", "output": "1 1 3;3 0 1;0 1 2;0 3 2"}], "query_input": "3 0 2;1 0 0;0 2 1;2 0 3", "query_output": "0 3 2;1 3 3;3 2 1;2 3 0"}
{"task_id": "icgr-00574", "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": "5 1 0 0 0 0;0 2 2 3 5 0;3 5 5 2 2 1;5 4 3 3 3 0;2 2 3 1 4 3;0 2 3 5 4 0", "output": "5 3 5;5 5 3;2 5 4"}, {"input": "5 1 0 5 4 4;1 0 4 4 3 4;5 0 1 5 4 4;2 2 3 3 1 1;2 2 4 5 3 2;1 3 3 4 3 0", "output": "5 5 4;5 5 4;3 5 3"}], "query_input": "2 2 1 0 2 5;2 3 5 4 4 1;2 2 2 0 0 3;3 5 4 4 0 4;3 0 5 2 1 0;2 5 2 4 1 0", "query_output": "3 5 5;5 4 4;5 5 1"}
{"task_id": "icgr-00425", "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": "1 3 3;0 4 2;2 4 5", "output": "3 3 1;4 2 0;4 5 2"}, {"input": "3 5 0;1 4 5;5 4 2", "output": "5 0 3;4 5 1;4 2 5"}, {"input": "1 0 3;2 5 4;1 1 3", "output": "0 3 1;5 4 2;1 3 1"}], "query_input": "4 5 2;2 0 3;0 4 4", "query_output": "5 2 4;0 3 2;4 4 0"}
{"task_id": "icgr-00746", "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": "0 0 2 2;1 3 3 0;3 0 0 0;2 1 0 0;2 1 0 3;0 1 1 1", "output": "3 3;3 0;2 3"}, {"input": "2 1 2 0;1 3 3 1;1 0 3 1;2 3 3 1;2 1 0 0;0 1 0 3", "output": "3 3;3 3;2 3"}], "query_input": "3 0 2 0;0 3 2 1;0 0 2 0;1 2 2 0;1 2 0 3;1 2 3 3", "query_output": "3 2;2 2;2 3"}
{"task_id": "icgr-00192", "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": 5, "num_support": 3, "support": [{"input": "4 3 2 3 0;5 2 0 2 0;3 4 5 4 1;0 4 4 1 2", "output": "1 1 1 1 1;1 2 0 2 1;1 4 5 4 1;1 1 1 1 1"}, {"input": "1 1 2 5 1;4 0 1 2 5;0 2 3 1 5;2 2 0 2 1", "output": "1 1 1 1 1;1 2 1 0 1;1 1 3 2 1;1 1 1 1 1"}, {"input": "3 0 3 3 1;5 5 5 5 0;5 5 5 3 3;4 3 1 3 4", "output": "1 1 1 1 1;1 5 5 5 1;1 3 5 5 1;1 1 1 1 1"}], "query_input": "2 1 0 3 0;4 3 2 3 0;2 3 4 2 5;2 0 3 1 0", "query_output": "1 1 1 1 1;1 3 2 3 1;1 2 4 3 1;1 1 1 1 1"}
{"task_id": "icgr-00199", "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": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "3 2 1;3 3 0;1 1 1;2 1 0;1 3 0", "output": "3 1 2;0 3 2;3 3 3;1 1 2;1 0 3"}, {"input": "2 0 0;3 1 2;2 2 0;2 1 0;3 3 0", "output": "1 1 2;0 3 2;0 0 2;1 3 0;0 2 2"}, {"input": "2 3 2;0 1 2;0 0 1;1 1 3;2 0 0", "output": "0 2 2;3 3 1;2 2 3;2 3 0;0 1 0"}], "query_input": "2 0 2;2 3 1;2 3 0;2 1 2;3 0 3", "query_output": "1 2 1;0 3 0;0 1 2;0 1 3;0 2 0"}
{"task_id": "icgr-00152", "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 0 4 0 2;3 3 1 4 4;0 1 0 0 3;4 3 4 2 0;0 2 4 2 0", "output": "4 0 4 0 2;1 1 3 4 4;0 3 0 0 1;4 1 4 2 0;0 2 4 2 0"}, {"input": "4 2 3 4 1;3 3 1 1 0;4 3 1 3 2;0 3 0 1 3;3 2 2 1 0", "output": "4 2 1 4 3;1 1 3 3 0;4 1 3 1 2;0 1 0 3 1;1 2 2 3 0"}, {"input": "3 4 1 2 0;2 0 1 0 3;0 2 3 3 3;2 0 0 2 3;4 0 3 0 0", "output": "1 4 3 2 0;2 0 3 0 1;0 2 1 1 1;2 0 0 2 1;4 0 1 0 0"}], "query_input": "3 3 2 0 3;1 3 4 0 1;3 0 2 3 3;1 2 0 3 2;4 1 1 1 0", "query_output": "1 1 2 0 1;3 1 4 0 3;1 0 2 1 1;3 2 0 1 2;4 3 3 3 0"}
{"task_id": "icgr-00408", "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": 2, "support": [{"input": "2 0 3 1;0 1 1 3;2 0 0 4;2 4 0 4", "output": "2 4 0 4;2 0 0 4;0 1 1 3;2 0 3 1"}, {"input": "4 4 4 3;2 4 2 3;0 2 3 3;4 1 2 4", "output": "4 1 2 4;0 2 3 3;2 4 2 3;4 4 4 3"}], "query_input": "4 3 2 2;0 3 3 3;3 1 1 4;2 4 0 1", "query_output": "2 4 0 1;3 1 1 4;0 3 3 3;4 3 2 2"}
{"task_id": "icgr-00871", "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": "5 2 3 1;0 1 4 2;1 2 5 4;1 3 2 1", "output": "5 4;3 5"}, {"input": "2 0 5 1;5 2 3 5;5 2 1 2;3 3 3 5", "output": "5 5;5 5"}, {"input": "2 5 3 0;5 2 5 4;1 5 0 5;1 5 4 0", "output": "5 5;5 5"}, {"input": "3 3 5 1;0 3 4 1;2 5 5 2;2 5 2 3", "output": "3 5;5 5"}], "query_input": "5 3 3 4;3 5 4 1;2 0 1 0;3 3 0 3", "query_output": "5 4;3 3"}
{"task_id": "icgr-00538", "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": "3 1 1 0 1;1 2 0 3 0;2 0 3 1 1;3 2 3 2 0;2 1 1 0 1", "output": "2 1 1 0 1;3 2 3 2 0;2 0 3 1 1;1 2 0 3 0;3 1 1 0 1"}, {"input": "2 1 1 1 2;3 3 0 1 1;0 0 1 0 0;3 0 1 2 1;3 3 2 1 0", "output": "3 3 2 1 0;3 0 1 2 1;0 0 1 0 0;3 3 0 1 1;2 1 1 1 2"}], "query_input": "1 0 3 3 1;0 3 0 1 2;0 0 3 2 0;1 1 1 0 1;1 0 0 1 1", "query_output": "1 0 0 1 1;1 1 1 0 1;0 0 3 2 0;0 3 0 1 2;1 0 3 3 1"}
{"task_id": "icgr-00927", "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 2 4 1;3 3 2 2;1 0 0 0;2 4 1 4;1 3 2 4", "output": "4 2 4 1;5 5 2 2;1 0 0 0;2 4 1 4;1 5 2 4"}, {"input": "3 2 2 4;4 3 4 5;5 3 4 5;5 2 3 2;5 4 3 5", "output": "5 2 2 4;4 5 4 3;3 5 4 3;3 2 5 2;3 4 5 3"}, {"input": "2 1 5 1;5 2 4 0;1 3 1 3;2 4 4 1;4 4 1 5", "output": "2 1 3 1;3 2 4 0;1 5 1 5;2 4 4 1;4 4 1 3"}], "query_input": "4 2 5 3;3 0 3 3;3 0 5 2;1 0 5 5;5 4 1 5", "query_output": "4 2 3 5;5 0 5 5;5 0 3 2;1 0 3 3;3 4 1 3"}
{"task_id": "icgr-00999", "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": "3 0 1 2;2 1 0 3;3 2 0 3;2 1 2 1", "output": "0 1 2 3;3 2 1 0;0 3 1 0;3 2 3 2"}, {"input": "2 2 2 0;1 0 3 1;0 1 0 0;3 0 0 1", "output": "3 3 3 1;2 1 0 2;1 2 1 1;0 1 1 2"}, {"input": "3 3 1 0;1 3 2 1;2 3 3 3;1 0 0 3", "output": "0 0 2 1;2 0 3 2;3 0 0 0;2 1 1 0"}, {"input": "3 1 0 0;0 1 2 2;3 3 2 2;1 1 3 1", "output": "0 2 1 1;1 2 3 3;0 0 3 3;2 2 0 2"}], "query_input": "1 1 0 2;1 2 2 2;1 0 3 1;3 3 1 0", "query_output": "2 2 1 3;2 3 3 3;2 1 0 2;0 0 2 1"}
{"task_id": "icgr-00630", "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": 3, "support": [{"input": "4 4 3;2 2 2;3 1 5;2 2 2;5 4 3", "output": "0 0 0;0 2 0;0 1 0;0 2 0;0 0 0"}, {"input": "4 0 5;2 3 5;3 4 0;3 3 5;2 5 1", "output": "0 0 0;0 3 0;0 4 0;0 3 0;0 0 0"}, {"input": "0 4 2;0 5 5;3 1 4;0 4 2;3 4 4", "output": "0 0 0;0 5 0;0 1 0;0 4 0;0 0 0"}], "query_input": "4 2 3;3 4 0;0 4 3;2 4 0;0 3 5", "query_output": "0 0 0;0 4 0;0 4 0;0 4 0;0 0 0"}
{"task_id": "icgr-00044", "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 1 4 2;4 0 4 0;4 4 4 3;3 3 3 4", "output": "5 1 4 5;4 0 4 0;4 4 4 3;3 3 3 4"}, {"input": "1 1 0 2;1 3 1 1;4 0 5 1;1 1 5 3", "output": "1 1 0 5;1 3 1 1;4 0 2 1;1 1 2 3"}], "query_input": "5 3 5 5;4 2 1 4;2 2 0 4;1 1 4 1", "query_output": "2 3 2 2;4 5 1 4;5 5 0 4;1 1 4 1"}
{"task_id": "icgr-00480", "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": "3 2 4;1 5 1;0 3 1;2 3 3", "output": "3 1 0 2;2 5 3 3;4 1 1 3"}, {"input": "1 0 3;0 2 3;1 1 5;1 0 0", "output": "1 0 1 1;0 2 1 0;3 3 5 0"}], "query_input": "3 4 3;4 3 1;5 3 2;1 5 5", "query_output": "3 4 5 1;4 3 3 5;3 1 2 5"}
{"task_id": "icgr-00380", "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": 4, "support": [{"input": "0 3 2;3 3 0;1 2 3;1 3 1", "output": "1 3 2;3 3 1;0 2 3;0 3 0"}, {"input": "0 1 0;3 2 2;2 0 3;2 1 3", "output": "1 0 1;3 2 2;2 1 3;2 0 3"}, {"input": "1 2 3;3 3 1;0 0 0;2 1 3", "output": "0 2 3;3 3 0;1 1 1;2 0 3"}, {"input": "3 2 2;2 1 3;0 0 2;1 2 1", "output": "3 2 2;2 0 3;1 1 2;0 2 0"}], "query_input": "0 3 0;3 2 1;0 1 0;0 1 1", "query_output": "1 3 1;3 2 0;1 0 1;1 0 0"}
{"task_id": "icgr-00440", "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": "5 5 3 4 2 2;0 2 1 2 5 2;1 2 4 2 4 2;5 1 2 0 3 3;4 3 1 4 1 3;3 2 3 5 2 5", "output": "5 4 5;5 4 4;4 5 5"}, {"input": "2 0 4 1 3 5;5 5 3 1 4 1;5 5 0 2 1 4;3 3 3 0 5 5;1 4 3 1 4 1;5 2 2 3 4 5", "output": "5 4 5;5 3 5;5 3 5"}], "query_input": "4 0 1 3 3 5;3 5 1 4 4 5;3 4 5 2 2 5;5 2 1 3 2 0;4 2 1 4 4 1;4 1 5 0 5 3", "query_output": "5 4 5;5 5 5;4 5 5"}
{"task_id": "icgr-00054", "rule": "flip_v", "rule_kind": "atomic", "rule_description": "Mirror the grid top-to-bottom.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "1 3 2;0 1 1;0 1 1", "output": "0 1 1;0 1 1;1 3 2"}, {"input": "3 0 1;1 3 1;3 2 3", "output": "3 2 3;1 3 1;3 0 1"}, {"input": "3 1 0;1 3 3;0 1 1", "output": "0 1 1;1 3 3;3 1 0"}], "query_input": "3 2 2;3 1 0;0 0 2", "query_output": "0 0 2;3 1 0;3 2 2"}
{"task_id": "icgr-00227", "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": 4, "num_support": 4, "support": [{"input": "1 0 3 1;3 1 4 4;3 3 1 1;0 4 0 1;3 0 3 2", "output": "1 1 1 1;1 4 3 1;1 1 3 1;1 1 0 1;1 1 1 1"}, {"input": "3 4 2 1;2 4 3 2;1 0 4 3;0 1 1 1;1 1 1 3", "output": "1 1 1 1;1 2 2 1;1 3 1 1;1 1 0 1;1 1 1 1"}, {"input": "0 4 1 1;1 3 0 3;4 3 4 3;1 2 3 4;3 3 1 4", "output": "1 1 1 1;1 3 1 1;1 3 4 1;1 4 1 1;1 1 1 1"}, {"input": "2 3 0 3;0 0 0 0;4 4 4 4;0 0 4 4;1 4 1 0", "output": "1 1 1 1;1 0 0 1;1 4 4 1;1 4 0 1;1 1 1 1"}], "query_input": "3 0 0 4;0 2 1 0;0 2 0 0;4 0 2 1;2 2 0 1", "query_output": "1 1 1 1;1 0 0 1;1 0 0 1;1 1 4 1;1 1 1 1"}
{"task_id": "icgr-00678", "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": "4 2 3 2 1 4;0 1 3 2 3 2;3 2 1 4 3 0;4 2 4 2 3 2;2 2 2 3 1 2;4 4 2 4 4 2", "output": "4 3 4;4 4 3;4 4 4"}, {"input": "4 2 0 1 2 1;4 1 0 1 0 0;3 4 3 0 1 4;4 1 4 0 3 3;0 0 0 4 4 0;1 1 4 3 4 1", "output": "4 1 2;4 4 4;1 4 4"}], "query_input": "2 2 4 2 1 1;1 4 3 1 1 3;2 3 4 2 2 3;4 4 4 2 2 0;0 1 1 3 1 3;1 3 4 3 0 1", "query_output": "4 4 3;4 4 3;3 4 3"}
{"task_id": "icgr-00442", "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": "2 5 1;2 4 4;5 1 5;1 4 0", "output": "0 1 4;5 5 1;4 2 4;1 2 5"}, {"input": "1 5 5;0 5 1;2 5 2;3 4 3", "output": "3 3 4;2 2 5;1 0 5;5 1 5"}, {"input": "0 3 1;2 3 2;5 5 2;5 5 0", "output": "0 5 5;2 5 5;2 2 3;1 0 3"}], "query_input": "5 2 5;5 1 1;0 0 4;5 0 3", "query_output": "3 5 0;4 0 0;1 5 1;5 5 2"}
{"task_id": "icgr-00125", "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 4 5 4 5 3;0 3 1 0 5 1;3 4 3 5 5 2;3 0 1 5 4 2;2 4 4 4 4 2;0 5 4 5 0 2", "output": "4 5 5;4 5 5;5 5 4"}, {"input": "2 0 3 5 4 1;1 0 3 4 1 5;4 4 2 0 4 4;1 2 5 2 0 4;1 2 0 1 1 2;4 4 0 5 1 2", "output": "2 5 5;4 5 4;4 5 2"}, {"input": "0 5 3 5 1 3;0 3 5 0 0 1;1 5 3 5 4 1;5 0 1 0 1 4;0 1 2 2 0 3;3 0 2 3 0 0", "output": "5 5 3;5 5 4;3 3 3"}, {"input": "3 3 1 4 5 4;4 0 5 2 5 4;1 4 4 2 3 2;2 0 5 1 3 2;2 1 3 4 5 3;5 0 2 0 5 3", "output": "4 5 5;4 5 3;5 4 5"}], "query_input": "2 1 3 5 1 1;4 0 0 0 5 0;2 3 4 2 5 0;5 4 4 0 1 0;2 0 3 3 4 3;2 0 0 5 1 2", "query_output": "4 5 5;5 4 5;2 5 4"}
{"task_id": "icgr-00209", "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": "2 4 1 1;4 4 1 1;0 4 1 3;1 0 1 2", "output": "2 4 0 1;4 4 4 0;1 1 1 1;1 1 3 2"}, {"input": "4 0 2 3;0 0 1 0;1 3 3 1;1 1 0 4", "output": "4 0 1 1;0 0 3 1;2 1 3 0;3 0 1 4"}, {"input": "2 0 0 3;3 2 3 4;0 2 3 4;1 4 0 0", "output": "2 3 0 1;0 2 2 4;0 3 3 0;3 4 4 0"}], "query_input": "2 0 1 0;3 3 4 4;4 3 4 0;2 4 0 0", "query_output": "2 3 4 2;0 3 3 4;1 4 4 0;0 4 0 0"}
{"task_id": "icgr-00591", "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": 4, "support": [{"input": "1 4 0;1 4 3;3 5 3;0 3 5", "output": "3 4 0;3 4 1;1 5 1;0 1 5"}, {"input": "5 2 1;5 1 5;0 4 2;2 2 5", "output": "5 2 3;5 3 5;0 4 2;2 2 5"}, {"input": "0 3 1;1 4 0;1 5 0;5 3 2", "output": "0 1 3;3 4 0;3 5 0;5 1 2"}, {"input": "1 2 0;2 5 2;1 5 4;1 4 4", "output": "3 2 0;2 5 2;3 5 4;3 4 4"}], "query_input": "0 0 0;1 0 2;3 2 5;0 0 4", "query_output": "0 0 0;3 0 2;1 2 5;0 0 4"}
{"task_id": "icgr-00439", "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": 4, "support": [{"input": "0 0 2 3 1;2 2 2 0 1;0 0 3 2 4;1 4 1 3 0;2 0 2 3 2", "output": "1 0 0 2 3;1 2 2 2 0;4 0 0 3 2;0 1 4 1 3;2 2 0 2 3"}, {"input": "0 2 0 1 1;0 2 3 1 0;4 3 2 4 1;3 2 2 4 2;3 0 3 2 4", "output": "1 0 2 0 1;0 0 2 3 1;1 4 3 2 4;2 3 2 2 4;4 3 0 3 2"}, {"input": "4 0 1 0 2;1 3 4 1 4;2 1 3 0 2;0 2 3 0 0;2 4 1 4 2", "output": "2 4 0 1 0;4 1 3 4 1;2 2 1 3 0;0 0 2 3 0;2 2 4 1 4"}, {"input": "4 4 3 4 1;4 2 4 2 4;4 1 3 0 0;3 4 4 1 0;2 0 3 4 0", "output": "1 4 4 3 4;4 4 2 4 2;0 4 1 3 0;0 3 4 4 1;0 2 0 3 4"}], "query_input": "3 4 3 1 4;3 0 4 0 2;3 4 1 4 3;4 3 0 3 1;2 0 4 4 4", "query_output": "4 3 4 3 1;2 3 0 4 0;3 3 4 1 4;1 4 3 0 3;4 2 0 4 4"}
{"task_id": "icgr-00479", "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 3 0 1;2 1 2 2;2 0 3 0;2 0 3 3", "output": "3 2;2 3"}, {"input": "3 3 2 3;1 3 3 2;2 2 2 0;0 2 2 2", "output": "3 3;2 2"}, {"input": "3 1 1 0;1 3 2 2;2 2 0 2;1 3 1 3", "output": "3 2;3 3"}, {"input": "1 1 2 0;2 3 0 0;1 3 2 0;3 1 3 3", "output": "3 2;3 3"}], "query_input": "0 2 2 1;0 2 3 0;2 3 0 3;1 3 2 3", "query_output": "2 3;3 3"}
{"task_id": "icgr-00015", "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": 4, "num_support": 3, "support": [{"input": "2 5 3 1;1 2 3 1;2 4 3 1", "output": "1 2 4 3;1 1 2 3;1 2 5 3"}, {"input": "2 3 3 5;5 4 4 5;5 4 4 4", "output": "4 5 4 4;5 5 4 4;5 2 3 3"}, {"input": "0 2 0 2;1 0 3 1;3 1 3 2", "output": "2 3 1 3;1 1 0 3;2 0 2 0"}], "query_input": "0 5 5 1;4 1 1 3;1 4 4 3", "query_output": "3 1 4 4;3 4 1 1;1 0 5 5"}
{"task_id": "icgr-00982", "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": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "3 1 1;1 3 1;2 0 2;2 0 4;0 0 4", "output": "1 1 1;1 1 3;1 1 0;1 1 0;1 1 1"}, {"input": "2 0 1;1 1 4;3 2 0;4 4 1;3 2 3", "output": "1 1 1;1 1 1;1 1 2;1 1 4;1 1 1"}, {"input": "2 3 0;3 2 3;4 2 2;2 0 0;4 3 3", "output": "1 1 1;1 1 2;1 1 2;1 1 0;1 1 1"}, {"input": "2 3 0;3 2 3;4 3 4;4 2 4;4 3 2", "output": "1 1 1;1 1 2;1 1 3;1 1 2;1 1 1"}], "query_input": "2 2 0;3 3 0;3 3 4;3 2 1;1 4 4", "query_output": "1 1 1;1 1 3;1 1 3;1 1 2;1 1 1"}
{"task_id": "icgr-00047", "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": 5, "num_support": 2, "support": [{"input": "0 3 3 0 3;1 0 3 2 0;3 0 1 2 3;0 0 2 4 2", "output": "3 0 3 3 0;0 1 0 3 2;3 3 0 1 2;2 0 0 2 4"}, {"input": "4 4 0 0 4;3 2 0 2 3;0 4 1 1 4;1 2 1 0 2", "output": "4 4 4 0 0;3 3 2 0 2;4 0 4 1 1;2 1 2 1 0"}], "query_input": "4 0 0 3 0;0 0 4 1 0;0 3 0 2 4;3 3 4 2 3", "query_output": "0 4 0 0 3;0 0 0 4 1;4 0 3 0 2;3 3 3 4 2"}
{"task_id": "icgr-00764", "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": 4, "num_support": 4, "support": [{"input": "3 3 3 1;2 3 2 0;2 1 3 1", "output": "3 3 3 1 3 3 3 1;2 3 2 0 2 3 2 0;2 1 3 1 2 1 3 1"}, {"input": "2 2 2 3;0 1 3 1;2 3 1 3", "output": "2 2 2 3 2 2 2 3;0 1 3 1 0 1 3 1;2 3 1 3 2 3 1 3"}, {"input": "1 0 1 1;2 2 0 0;0 2 3 2", "output": "1 0 1 1 1 0 1 1;2 2 0 0 2 2 0 0;0 2 3 2 0 2 3 2"}, {"input": "1 2 1 0;1 2 2 2;1 1 0 1", "output": "1 2 1 0 1 2 1 0;1 2 2 2 1 2 2 2;1 1 0 1 1 1 0 1"}], "query_input": "2 3 3 3;3 2 1 2;0 2 2 1", "query_output": "2 3 3 3 2 3 3 3;3 2 1 2 3 2 1 2;0 2 2 1 0 2 2 1"}
{"task_id": "icgr-00767", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 5, "grid_h": 4, "grid_w": 3, "num_support": 3, "support": [{"input": "0 1 2;0 3 1;0 3 1;3 3 1", "output": "0 0 0 3;1 3 3 3;2 1 1 1"}, {"input": "3 4 1;3 4 4;3 1 1;0 2 2", "output": "3 3 3 0;4 4 1 2;1 4 1 2"}, {"input": "1 4 4;1 0 1;3 3 3;4 2 1", "output": "1 1 3 4;4 0 3 2;4 1 3 1"}], "query_input": "3 2 1;1 2 1;4 0 3;3 1 1", "query_output": "3 1 4 3;2 2 0 1;1 1 3 1"}
{"task_id": "icgr-00007", "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": 3, "num_support": 2, "support": [{"input": "0 2 1;3 0 0;0 1 3;0 1 3", "output": "0 3 1;3 2 3;2 3 0;2 3 0"}, {"input": "1 0 2;2 0 0;3 1 2;2 1 0", "output": "1 0 3;3 1 3;1 2 0;3 1 0"}], "query_input": "2 1 2;0 1 2;1 0 1;0 1 3", "query_output": "1 1 0;1 3 0;0 0 3;2 3 0"}
{"task_id": "icgr-00627", "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": 4, "num_support": 3, "support": [{"input": "0 0 3 2;1 0 0 0;2 3 3 3", "output": "2 3 0 0;0 0 0 1;3 3 3 2"}, {"input": "0 3 2 3;2 1 2 2;2 0 3 2", "output": "3 2 3 0;2 2 1 2;2 3 0 2"}, {"input": "3 3 0 0;1 1 1 3;2 3 3 0", "output": "0 0 3 3;3 1 1 1;0 3 3 2"}], "query_input": "0 0 0 3;2 0 1 1;0 3 3 3", "query_output": "3 0 0 0;1 1 0 2;3 3 3 0"}
{"task_id": "icgr-00692", "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 0 0 1;4 2 2 3;1 1 4 2;3 2 0 1", "output": "0 0 0 2;4 1 1 3;2 2 4 1;3 1 0 2"}, {"input": "0 1 4 2;4 2 4 0;0 3 3 1;4 4 3 0", "output": "0 2 4 1;4 1 4 0;0 3 3 2;4 4 3 0"}], "query_input": "1 3 0 4;1 0 3 4;4 1 3 3;1 4 2 1", "query_output": "2 3 0 4;2 0 3 4;4 2 3 3;2 4 1 2"}
{"task_id": "icgr-00452", "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": 3, "grid_w": 5, "num_support": 4, "support": [{"input": "0 1 0 1 2;1 3 4 2 2;4 3 4 1 2", "output": "4 0 4 1 2;1 0 4 2 2;3 1 3 1 2"}, {"input": "4 5 5 0 0;4 1 4 4 2;3 2 0 0 0", "output": "0 2 3 3 3;4 1 4 4 2;4 5 5 3 3"}, {"input": "0 1 5 5 4;3 4 3 5 1;2 5 3 5 0", "output": "2 5 0 5 3;0 4 0 5 1;3 1 5 5 4"}, {"input": "2 0 1 2 0;3 2 4 4 1;3 2 5 5 3", "output": "0 2 5 5 0;0 2 4 4 1;2 3 1 2 3"}], "query_input": "3 4 5 5 2;2 3 0 4 3;4 1 2 4 5", "query_output": "4 1 2 4 5;2 0 3 4 0;0 4 5 5 2"}
{"task_id": "icgr-00314", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 6, "grid_h": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "4 0 1 0;2 0 3 1;5 0 3 1;1 5 2 1", "output": "4 2 5 1;0 0 0 5;1 3 3 2;0 1 1 1"}, {"input": "0 0 0 5;1 2 0 5;3 5 0 5;3 1 0 2", "output": "0 1 3 3;0 2 5 1;0 0 0 0;5 5 5 2"}, {"input": "3 4 1 0;0 4 2 3;3 5 0 2;3 0 0 1", "output": "3 0 3 3;4 4 5 0;1 2 0 0;0 3 2 1"}, {"input": "5 5 3 0;2 0 1 1;2 1 1 0;4 2 5 4", "output": "5 2 2 4;5 0 1 2;3 1 1 5;0 1 0 4"}], "query_input": "3 2 1 1;0 2 2 1;2 5 3 5;1 0 2 2", "query_output": "3 0 2 1;2 2 5 0;1 2 3 2;1 1 5 2"}
{"task_id": "icgr-00830", "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": 2, "support": [{"input": "2 0 0 0 2;2 0 1 0 3;3 1 1 3 2;1 1 1 3 2;1 2 1 2 2", "output": "0 2 2 2 0;0 2 1 2 3;3 1 1 3 0;1 1 1 3 0;1 0 1 0 0"}, {"input": "0 0 1 0 3;2 1 0 2 2;0 0 1 0 3;0 0 1 3 2;2 2 1 2 1", "output": "2 2 1 2 3;0 1 2 0 0;2 2 1 2 3;2 2 1 3 0;0 0 1 0 1"}], "query_input": "0 2 2 0 3;0 0 3 2 3;3 1 1 1 2;1 3 0 1 0;3 2 2 1 1", "query_output": "2 0 0 2 3;2 2 3 0 3;3 1 1 1 0;1 3 2 1 2;3 0 0 1 1"}
{"task_id": "icgr-00348", "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": "0 0 2 1;1 2 1 2;0 1 0 4", "output": "1 0 0 2;2 1 2 1;4 0 1 0"}, {"input": "0 3 2 2;4 1 0 0;3 1 1 3", "output": "2 0 3 2;0 4 1 0;3 3 1 1"}], "query_input": "4 0 0 4;3 1 2 4;2 1 4 3", "query_output": "4 4 0 0;4 3 1 2;3 2 1 4"}
{"task_id": "icgr-00697", "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": 2, "support": [{"input": "0 2 2;3 2 1;1 1 0;0 3 3", "output": "2 2 2;2 0 2;2 1 2;2 2 2"}, {"input": "1 1 2;1 1 1;3 0 1;3 2 1", "output": "2 2 2;2 1 2;2 2 2;2 2 2"}], "query_input": "1 3 1;2 2 0;1 3 1;3 0 2", "query_output": "2 2 2;2 0 2;2 3 2;2 2 2"}
{"task_id": "icgr-00498", "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": 4, "support": [{"input": "5 1 3 4;5 0 5 2;4 1 2 5", "output": "4 1 2 5;5 0 5 2;5 1 3 4"}, {"input": "3 2 4 1;4 1 4 4;0 0 3 2", "output": "0 0 3 2;4 1 4 4;3 2 4 1"}, {"input": "1 5 1 3;3 4 1 1;1 0 4 1", "output": "1 0 4 1;3 4 1 1;1 5 1 3"}, {"input": "5 4 2 3;3 1 0 2;3 2 5 3", "output": "3 2 5 3;3 1 0 2;5 4 2 3"}], "query_input": "4 3 2 1;4 1 3 1;5 3 0 1", "query_output": "5 3 0 1;4 1 3 1;4 3 2 1"}
{"task_id": "icgr-00001", "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": 4, "num_support": 4, "support": [{"input": "2 2 3 3;2 3 0 0;3 3 2 0;3 1 3 2", "output": "0 0 0 0;0 0 3 0;0 2 3 0;0 0 0 0"}, {"input": "1 1 1 3;1 2 1 0;2 0 2 2;0 0 3 3", "output": "0 0 0 0;0 1 2 0;0 2 0 0;0 0 0 0"}, {"input": "1 2 3 0;1 2 0 2;1 2 3 1;3 0 0 2", "output": "0 0 0 0;0 0 2 0;0 3 2 0;0 0 0 0"}, {"input": "2 3 3 0;2 0 2 1;1 1 0 3;3 2 2 3", "output": "0 0 0 0;0 2 0 0;0 0 1 0;0 0 0 0"}], "query_input": "3 0 1 2;3 1 1 3;3 2 0 3;0 0 0 1", "query_output": "0 0 0 0;0 1 1 0;0 0 2 0;0 0 0 0"}
{"task_id": "icgr-00596", "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 5 2 0 2 2;2 5 3 3 4 3;3 0 1 0 1 2;3 1 1 0 3 3", "output": "5 3 4;3 1 3"}, {"input": "5 4 1 2 4 5;4 3 4 5 3 2;3 1 1 2 0 3;2 4 0 3 4 0", "output": "5 5 5;4 3 4"}], "query_input": "5 3 0 2 5 3;2 5 5 4 4 4;0 5 2 2 0 0;1 0 3 5 0 3", "query_output": "5 5 5;5 5 3"}
{"task_id": "icgr-00031", "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": 4, "support": [{"input": "2 1 0 2 0;1 1 3 2 3;0 3 2 1 2", "output": "0 2 0 3 2;0 1 3 3 1;3 0 2 1 0"}, {"input": "3 3 0 3 0;1 1 1 0 3;2 2 1 3 0", "output": "1 2 1 1 2;2 1 3 3 3;1 2 0 0 3"}, {"input": "1 3 2 3 2;3 2 1 0 2;1 3 1 2 0", "output": "1 0 3 1 0;2 0 1 0 3;0 2 3 1 3"}, {"input": "1 1 3 1 1;1 1 0 1 2;0 2 2 1 3", "output": "3 3 3 3 1;3 0 3 3 2;3 1 2 0 0"}], "query_input": "3 1 1 3 2;2 2 0 3 3;0 1 3 3 2", "query_output": "1 0 1 3 3;1 1 0 0 2;1 0 2 3 1"}
{"task_id": "icgr-00460", "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": "0 2 2 2 0;3 2 2 2 1;0 1 2 0 1;2 1 0 0 0;0 2 2 0 3", "output": "0 2 2 0 3;2 1 0 0 0;0 1 2 0 1;3 2 2 2 1;0 2 2 2 0"}, {"input": "3 3 0 1 2;2 1 2 1 2;3 3 0 0 2;2 3 3 3 2;0 3 0 0 0", "output": "0 3 0 0 0;2 3 3 3 2;3 3 0 0 2;2 1 2 1 2;3 3 0 1 2"}, {"input": "0 0 3 1 1;0 1 2 3 1;3 2 3 3 2;0 3 3 1 2;3 0 3 1 3", "output": "3 0 3 1 3;0 3 3 1 2;3 2 3 3 2;0 1 2 3 1;0 0 3 1 1"}, {"input": "0 3 3 1 2;2 1 3 0 0;0 1 2 2 2;2 1 2 3 0;0 0 2 3 0", "output": "0 0 2 3 0;2 1 2 3 0;0 1 2 2 2;2 1 3 0 0;0 3 3 1 2"}], "query_input": "2 1 2 3 0;2 1 2 2 1;0 1 1 3 2;0 3 0 0 0;0 3 0 3 1", "query_output": "0 3 0 3 1;0 3 0 0 0;0 1 1 3 2;2 1 2 2 1;2 1 2 3 0"}
{"task_id": "icgr-00652", "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": "0 4 0;2 3 0;3 3 4;2 0 1;2 0 3", "output": "0 4 0 0 4 0;2 3 0 2 3 0;3 3 4 3 3 4;2 0 1 2 0 1;2 0 3 2 0 3"}, {"input": "0 0 1;1 2 3;2 4 4;3 0 4;4 2 1", "output": "0 0 1 0 0 1;1 2 3 1 2 3;2 4 4 2 4 4;3 0 4 3 0 4;4 2 1 4 2 1"}], "query_input": "2 4 4;1 3 0;2 4 2;2 3 0;0 2 0", "query_output": "2 4 4 2 4 4;1 3 0 1 3 0;2 4 2 2 4 2;2 3 0 2 3 0;0 2 0 0 2 0"}
{"task_id": "icgr-00847", "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": "0 2 4 0 1;4 0 3 0 1;5 5 3 0 4", "output": "5 4 0;5 0 2;3 3 4;0 0 0;4 1 1"}, {"input": "0 3 3 1 1;1 1 1 4 1;3 3 5 0 3", "output": "3 1 0;3 1 3;5 1 3;0 4 1;3 1 1"}, {"input": "1 0 5 4 1;3 3 5 0 4;2 4 4 1 2", "output": "2 3 1;4 3 0;4 5 5;1 0 4;2 4 1"}, {"input": "1 1 0 5 5;2 3 3 0 3;0 2 3 1 1", "output": "0 2 1;2 3 1;3 3 0;1 0 5;1 3 5"}], "query_input": "3 0 1 5 3;0 1 1 3 2;4 0 4 2 0", "query_output": "4 0 3;0 1 0;4 1 1;2 3 5;0 2 3"}
{"task_id": "icgr-00881", "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": 5, "num_support": 3, "support": [{"input": "2 3 2 1 3;0 2 3 1 1;0 0 3 3 2", "output": "1 3 2 1 2;3 3 1 2 0;2 1 1 0 0"}, {"input": "0 1 3 2 0;0 3 2 2 1;1 2 3 0 1", "output": "0 2 1 3 0;3 2 2 1 0;3 0 1 2 3"}, {"input": "3 3 3 1 1;3 3 0 3 0;3 0 3 1 3", "output": "3 3 1 1 1;0 1 0 1 1;1 3 1 0 1"}], "query_input": "3 1 3 2 2;1 3 3 3 1;2 3 0 2 0", "query_output": "2 2 1 3 1;3 1 1 1 3;0 2 0 1 2"}
{"task_id": "icgr-00788", "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": 3, "support": [{"input": "0 3 4;1 3 2;2 3 1;1 3 4", "output": "0 0 0;0 3 0;0 3 0;0 0 0"}, {"input": "1 0 0;1 2 1;4 1 2;0 0 4", "output": "0 0 0;0 2 0;0 1 0;0 0 0"}, {"input": "3 1 2;3 2 2;0 0 4;0 1 0", "output": "0 0 0;0 2 0;0 0 0;0 0 0"}], "query_input": "4 0 1;4 0 3;0 0 2;3 4 4", "query_output": "0 0 0;0 0 0;0 0 0;0 0 0"}
{"task_id": "icgr-00340", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "3 0 3;2 3 3;0 3 0", "output": "0 2 3;3 3 0;0 3 3"}, {"input": "0 0 2;2 1 3;2 2 1", "output": "2 2 0;2 1 0;1 3 2"}], "query_input": "2 3 3;1 1 0;1 2 2", "query_output": "1 1 2;2 1 3;2 0 3"}
{"task_id": "icgr-00947", "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": 4, "grid_w": 4, "num_support": 4, "support": [{"input": "0 3 1 1;2 1 0 4;1 0 1 0;4 3 4 5", "output": "5 5 1 4;2 4 5 0;4 5 4 5;3 2 1 2"}, {"input": "3 4 5 1;2 4 4 4;1 4 4 2;0 4 0 4", "output": "5 3 2 1;2 2 2 0;0 2 2 5;2 4 2 4"}, {"input": "4 4 3 0;2 0 5 4;0 4 5 3;3 5 1 0", "output": "4 1 2 2;2 3 4 0;1 3 2 4;4 5 3 1"}, {"input": "4 0 3 3;5 3 3 3;5 5 2 3;3 4 3 2", "output": "1 1 4 2;1 1 1 3;1 0 3 3;0 1 2 1"}], "query_input": "3 3 0 4;3 3 1 1;2 1 5 3;3 5 2 4", "query_output": "2 4 1 1;5 5 1 1;1 3 5 0;2 0 3 1"}
{"task_id": "icgr-00077", "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": 4, "num_support": 2, "support": [{"input": "0 1 2 3;1 2 1 1;0 1 2 0", "output": "1 1 1 1;1 1 0 1;1 1 1 1"}, {"input": "1 1 1 3;0 2 3 1;3 3 2 2", "output": "1 1 1 1;1 1 2 1;1 1 1 1"}], "query_input": "2 1 3 0;3 1 2 2;2 1 0 0", "query_output": "1 1 1 1;1 0 1 1;1 1 1 1"}
{"task_id": "icgr-00366", "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": "3 0 0 2 2;0 3 4 3 0;1 2 4 3 2;0 2 2 3 0", "output": "2 2 0 0 3;0 3 4 3 0;2 3 4 2 1;0 3 2 2 0"}, {"input": "4 4 3 2 1;4 0 4 4 1;0 3 1 2 3;0 0 0 3 4", "output": "1 2 3 4 4;1 4 4 0 4;3 2 1 3 0;4 3 0 0 0"}, {"input": "2 1 1 3 3;1 0 2 4 0;2 3 1 3 0;0 3 0 1 4", "output": "3 3 1 1 2;0 4 2 0 1;0 3 1 3 2;4 1 0 3 0"}], "query_input": "1 2 1 3 0;1 2 3 3 2;2 3 3 2 4;3 1 3 1 0", "query_output": "0 3 1 2 1;2 3 3 2 1;4 2 3 3 2;0 1 3 1 3"}
{"task_id": "icgr-00626", "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": "2 3 1 3 0;0 1 0 2 0;2 1 0 1 1;2 2 1 0 1", "output": "2 2 1 0 1;2 1 0 1 1;0 1 0 2 0;2 3 1 3 0"}, {"input": "2 0 2 3 2;0 3 0 0 1;3 3 0 1 1;3 3 3 2 2", "output": "3 3 3 2 2;3 3 0 1 1;0 3 0 0 1;2 0 2 3 2"}], "query_input": "2 2 1 1 0;3 3 2 1 2;3 3 2 0 0;0 3 3 0 2", "query_output": "0 3 3 0 2;3 3 2 0 0;3 3 2 1 2;2 2 1 1 0"}
{"task_id": "icgr-00547", "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": 4, "support": [{"input": "2 4 2 2 1;0 1 2 1 5;4 2 5 5 5;2 1 1 1 2;5 3 1 4 3", "output": "2 5 2 2 1;0 1 2 1 4;5 2 4 4 4;2 1 1 1 2;4 3 1 5 3"}, {"input": "5 0 3 4 1;5 2 3 0 2;1 2 2 1 2;2 0 2 4 1;3 0 5 5 1", "output": "4 0 3 5 1;4 2 3 0 2;1 2 2 1 2;2 0 2 5 1;3 0 4 4 1"}, {"input": "0 5 1 0 5;1 0 5 3 2;2 3 0 4 0;4 3 5 5 2;3 4 2 1 0", "output": "0 4 1 0 4;1 0 4 3 2;2 3 0 5 0;5 3 4 4 2;3 5 2 1 0"}, {"input": "2 5 0 1 0;3 5 3 4 4;4 0 3 1 2;3 2 4 4 4;0 1 5 3 5", "output": "2 4 0 1 0;3 4 3 5 5;5 0 3 1 2;3 2 5 5 5;0 1 4 3 4"}], "query_input": "1 1 0 0 4;3 5 1 3 1;2 0 1 3 4;2 0 1 1 4;5 2 5 2 3", "query_output": "1 1 0 0 5;3 4 1 3 1;2 0 1 3 5;2 0 1 1 5;4 2 4 2 3"}
{"task_id": "icgr-00888", "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": 3, "grid_w": 5, "num_support": 2, "support": [{"input": "1 5 1 5 1;2 1 3 5 4;0 3 3 3 5", "output": "5 2 2 2 4;1 0 2 4 3;0 4 0 4 0"}, {"input": "2 0 1 0 2;3 0 5 5 4;2 1 4 3 1", "output": "1 0 3 2 0;2 5 4 4 3;1 5 0 5 1"}], "query_input": "0 0 3 5 5;0 2 5 3 0;2 2 4 0 2", "query_output": "1 1 3 5 1;5 1 4 2 5;5 5 2 4 4"}
{"task_id": "icgr-00462", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 5, "grid_h": 5, "grid_w": 5, "num_support": 3, "support": [{"input": "2 0 2 3 3;2 4 0 3 2;0 4 0 0 0;2 0 4 4 0;2 2 3 0 2", "output": "2 2 0 2 2;2 0 4 4 0;3 4 0 0 2;0 4 0 3 3;2 0 0 2 3"}, {"input": "4 0 1 4 0;2 0 1 2 1;4 4 3 0 3;3 0 3 0 0;2 3 4 3 1", "output": "2 3 4 2 4;3 0 4 0 0;4 3 3 1 1;3 0 0 2 4;1 0 3 1 0"}, {"input": "0 1 3 3 0;2 4 1 3 0;3 4 4 4 2;4 1 3 4 3;1 2 3 2 3", "output": "1 4 3 2 0;2 1 4 4 1;3 3 4 1 3;2 4 4 3 3;3 3 2 0 0"}], "query_input": "3 0 4 3 0;2 0 4 3 2;4 3 4 0 4;1 1 2 3 3;2 0 4 3 0", "query_output": "2 1 4 2 3;0 1 3 0 0;4 2 4 4 4;3 3 0 3 3;0 3 4 2 0"}
{"task_id": "icgr-00948", "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": 2, "support": [{"input": "0 3 3 0 3;1 0 0 0 0;1 0 3 3 1;0 2 2 1 1", "output": "1 1 1 1 1;1 2 2 2 1;1 2 1 1 1;1 1 1 1 1"}, {"input": "1 3 1 2 2;1 0 0 2 2;2 3 1 0 0;1 2 2 1 0", "output": "1 1 1 1 1;1 2 2 0 1;1 1 3 2 1;1 1 1 1 1"}], "query_input": "1 2 1 0 0;2 0 3 3 0;0 1 1 3 2;3 3 0 0 3", "query_output": "1 1 1 1 1;1 2 1 1 1;1 3 3 1 1;1 1 1 1 1"}
{"task_id": "icgr-00689", "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": "1 1 3;2 2 4;0 0 1;2 3 3", "output": "2 3 3;1 1 0;2 2 4;0 0 3"}, {"input": "1 0 1;4 1 3;3 2 4;2 3 4", "output": "2 3 4;3 2 4;4 0 3;0 1 0"}], "query_input": "1 2 0;0 4 0;3 1 1;4 1 2", "query_output": "4 0 2;3 0 0;1 4 1;0 2 1"}
{"task_id": "icgr-00270", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 3, "grid_w": 3, "num_support": 4, "support": [{"input": "1 2 0;2 3 3;3 3 0", "output": "3 2 1;3 3 2;0 3 0"}, {"input": "0 1 0;0 1 1;3 1 0", "output": "3 0 0;1 1 1;0 1 0"}, {"input": "3 3 1;2 1 2;3 2 2", "output": "3 2 3;2 1 3;2 2 1"}, {"input": "2 1 3;2 1 0;0 0 2", "output": "0 2 2;0 1 1;2 0 3"}], "query_input": "1 1 3;2 0 0;0 0 1", "query_output": "0 2 1;0 0 1;1 0 3"}
{"task_id": "icgr-00786", "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": "0 3 0 0 1;0 2 3 0 1;3 3 3 3 2;2 1 1 0 1", "output": "2 3 0 0;1 3 2 3;1 3 3 0;0 3 0 0;1 2 1 1"}, {"input": "0 0 2 3 0;3 3 3 3 1;2 3 3 1 2;0 0 0 3 1", "output": "0 2 3 0;0 3 3 0;0 3 3 2;3 1 3 3;1 2 1 0"}, {"input": "1 2 3 3 1;1 0 3 0 2;3 1 0 2 2;2 3 0 0 3", "output": "2 3 1 1;3 1 0 2;0 0 3 3;0 2 0 3;3 2 2 1"}], "query_input": "0 0 2 0 1;3 1 2 3 2;2 1 0 2 0;3 3 3 1 1", "query_output": "3 2 3 0;3 1 1 0;3 0 2 2;1 2 3 0;1 0 2 1"}
{"task_id": "icgr-00715", "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": 4, "support": [{"input": "2 3 5;3 3 3;3 5 2;2 4 1;2 5 4", "output": "4 2 5;1 2 4;2 3 5;3 3 3;5 2 3"}, {"input": "4 1 4;1 4 3;0 2 4;1 3 5;2 2 4", "output": "4 2 2;5 1 3;4 0 2;3 1 4;4 4 1"}, {"input": "1 5 2;3 1 1;5 0 4;0 2 3;2 4 0", "output": "0 2 4;3 0 2;4 5 0;1 3 1;2 1 5"}, {"input": "5 1 1;2 2 4;1 3 0;3 5 5;3 4 2", "output": "2 3 4;5 3 5;0 1 3;4 2 2;1 5 1"}], "query_input": "2 1 4;4 0 2;5 2 2;3 2 3;3 0 4", "query_output": "4 3 0;3 3 2;2 5 2;2 4 0;4 2 1"}
{"task_id": "icgr-00978", "rule": "transpose", "rule_kind": "atomic", "rule_description": "Swap rows and columns (transpose).", "num_colors": 5, "grid_h": 4, "grid_w": 5, "num_support": 4, "support": [{"input": "0 2 2 2 0;1 2 1 2 3;2 3 0 3 0;0 1 2 1 3", "output": "0 1 2 0;2 2 3 1;2 1 0 2;2 2 3 1;0 3 0 3"}, {"input": "1 1 0 3 1;0 2 2 1 4;1 3 4 1 1;2 2 1 3 1", "output": "1 0 1 2;1 2 3 2;0 2 4 1;3 1 1 3;1 4 1 1"}, {"input": "4 0 0 1 1;3 1 0 3 4;2 3 2 2 4;3 2 2 4 0", "output": "4 3 2 3;0 1 3 2;0 0 2 2;1 3 2 4;1 4 4 0"}, {"input": "3 0 2 4 0;3 4 1 2 1;2 0 1 2 2;4 4 1 3 1", "output": "3 3 2 4;0 4 0 4;2 1 1 1;4 2 2 3;0 1 2 1"}], "query_input": "1 3 4 0 3;2 0 0 4 3;3 2 4 2 3;4 4 0 1 4", "query_output": "1 2 3 4;3 0 2 4;4 0 4 0;0 4 2 1;3 3 3 4"}
{"task_id": "icgr-00522", "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": "4 3 0 0;0 4 1 0;3 0 0 4", "output": "4 3 0 0 4 3 0 0;0 4 1 0 0 4 1 0;3 0 0 4 3 0 0 4"}, {"input": "0 0 4 0;1 3 1 2;2 2 0 1", "output": "0 0 4 0 0 0 4 0;1 3 1 2 1 3 1 2;2 2 0 1 2 2 0 1"}], "query_input": "3 2 2 2;4 2 0 3;3 1 4 3", "query_output": "3 2 2 2 3 2 2 2;4 2 0 3 4 2 0 3;3 1 4 3 3 1 4 3"}
{"task_id": "icgr-00013", "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 1 2;1 3 3;3 3 0;1 2 3", "output": "2 2 2;2 3 2;2 3 2;2 2 2"}, {"input": "1 3 3;0 0 0;0 2 3;0 0 0", "output": "2 2 2;2 0 2;2 2 2;2 2 2"}, {"input": "0 1 3;0 1 3;2 2 1;3 1 3", "output": "2 2 2;2 1 2;2 2 2;2 2 2"}], "query_input": "0 3 3;0 0 0;0 1 2;1 3 1", "query_output": "2 2 2;2 0 2;2 1 2;2 2 2"}
{"task_id": "icgr-00041", "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": 3, "support": [{"input": "2 2 0;3 2 0;2 2 4", "output": "2 2 0 2 2 0;3 2 0 3 2 0;2 2 4 2 2 4"}, {"input": "2 4 3;4 2 3;3 3 1", "output": "2 4 3 2 4 3;4 2 3 4 2 3;3 3 1 3 3 1"}, {"input": "4 0 2;1 4 0;2 0 4", "output": "4 0 2 4 0 2;1 4 0 1 4 0;2 0 4 2 0 4"}], "query_input": "2 0 2;4 3 2;1 4 4", "query_output": "2 0 2 2 0 2;4 3 2 4 3 2;1 4 4 1 4 4"}
{"task_id": "icgr-00113", "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": "0 1 1 0;1 0 3 1;2 1 2 0", "output": "1 2 2 1;2 1 0 2;3 2 3 1"}, {"input": "1 1 1 1;1 2 0 1;2 2 3 1", "output": "2 2 2 2;2 3 1 2;3 3 0 2"}, {"input": "2 2 1 2;1 2 0 2;0 3 1 2", "output": "3 3 2 3;2 3 1 3;1 0 2 3"}], "query_input": "2 1 0 2;2 1 2 3;3 0 1 2", "query_output": "3 2 1 3;3 2 3 0;0 1 2 3"}
{"task_id": "icgr-00098", "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": 3, "grid_w": 3, "num_support": 2, "support": [{"input": "3 0 2;5 1 5;4 5 0", "output": "0 0 0;0 3 0;0 0 0"}, {"input": "3 4 5;0 0 5;4 2 1", "output": "0 0 0;0 2 0;0 0 0"}], "query_input": "4 3 3;4 3 0;3 1 2", "query_output": "0 0 0;0 5 0;0 0 0"}
{"task_id": "icgr-00556", "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": 4, "support": [{"input": "4 2 1;0 3 2;0 1 3;0 4 1", "output": "4 2 1 4 2 1;0 3 2 0 3 2;0 1 3 0 1 3;0 4 1 0 4 1"}, {"input": "3 1 3;0 2 4;2 4 1;0 0 3", "output": "3 1 3 3 1 3;0 2 4 0 2 4;2 4 1 2 4 1;0 0 3 0 0 3"}, {"input": "4 0 2;1 3 0;0 4 4;0 4 1", "output": "4 0 2 4 0 2;1 3 0 1 3 0;0 4 4 0 4 4;0 4 1 0 4 1"}, {"input": "1 0 1;3 3 4;4 4 2;2 0 3", "output": "1 0 1 1 0 1;3 3 4 3 3 4;4 4 2 4 4 2;2 0 3 2 0 3"}], "query_input": "0 4 0;0 3 1;0 4 0;0 3 2", "query_output": "0 4 0 0 4 0;0 3 1 0 3 1;0 4 0 0 4 0;0 3 2 0 3 2"}
{"task_id": "icgr-00189", "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": "1 1 2;1 1 0;3 1 3", "output": "2 1 1;0 1 1;3 3 1"}, {"input": "1 0 0;0 3 3;3 0 1", "output": "0 1 0;3 0 3;1 3 0"}, {"input": "0 0 0;2 2 3;2 1 2", "output": "0 0 0;3 2 2;2 2 1"}, {"input": "3 2 1;0 1 3;3 2 3", "output": "1 3 2;3 0 1;3 3 2"}], "query_input": "1 1 3;3 0 3;0 3 1", "query_output": "3 1 1;3 3 0;1 0 3"}
{"task_id": "icgr-00576", "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": 4, "num_support": 4, "support": [{"input": "4 3 0 4;2 3 0 1;2 1 0 2", "output": "2 2 2 2;2 3 0 2;2 2 2 2"}, {"input": "3 1 2 3;0 2 1 2;1 3 0 3", "output": "2 2 2 2;2 2 1 2;2 2 2 2"}, {"input": "3 1 2 1;3 4 2 1;1 3 0 2", "output": "2 2 2 2;2 4 2 2;2 2 2 2"}, {"input": "2 0 3 1;4 4 1 4;2 2 3 3", "output": "2 2 2 2;2 4 1 2;2 2 2 2"}], "query_input": "0 1 1 4;1 0 4 1;0 2 3 0", "query_output": "2 2 2 2;2 0 4 2;2 2 2 2"}
{"task_id": "icgr-00876", "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": "2 5 4;2 0 5;5 0 0;1 4 2", "output": "2 2 5 1;5 0 0 4;4 5 0 2"}, {"input": "3 2 2;3 2 4;5 1 5;3 2 5", "output": "3 3 5 3;2 2 1 2;2 4 5 5"}], "query_input": "3 4 3;5 2 0;4 3 1;0 5 4", "query_output": "3 5 4 0;4 2 3 5;3 0 1 4"}
{"task_id": "icgr-00573", "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 0 1 1;3 3 1 2 2;0 1 0 0 0;2 2 2 1 1;0 1 1 1 3", "output": "0 1 1 1 3;2 2 2 1 1;0 1 0 0 0;3 3 1 2 2;0 0 0 1 1"}, {"input": "1 3 0 1 0;2 2 3 1 3;2 1 2 3 1;0 0 1 3 2;2 0 1 0 1", "output": "2 0 1 0 1;0 0 1 3 2;2 1 2 3 1;2 2 3 1 3;1 3 0 1 0"}], "query_input": "2 0 3 2 0;2 0 0 0 0;0 0 2 0 1;0 0 2 0 0;1 2 1 2 3", "query_output": "1 2 1 2 3;0 0 2 0 0;0 0 2 0 1;2 0 0 0 0;2 0 3 2 0"}
{"task_id": "icgr-00885", "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": 2, "support": [{"input": "4 0 1;2 2 2;0 2 1;2 0 4;0 1 2", "output": "3 4 0;1 1 1;4 1 0;1 4 3;4 0 1"}, {"input": "1 4 1;3 0 4;4 1 2;4 2 0;4 3 2", "output": "0 3 0;2 4 3;3 0 1;3 1 4;3 2 1"}], "query_input": "3 4 3;1 1 3;4 0 3;2 0 0;0 1 0", "query_output": "2 3 2;0 0 2;3 4 2;1 4 4;4 0 4"}
{"task_id": "icgr-00856", "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": "0 2 0;1 0 0;4 3 0;1 1 4", "output": "4 4 4;4 0 4;4 3 4;4 4 4"}, {"input": "3 2 3;1 2 3;3 1 4;0 3 0", "output": "4 4 4;4 2 4;4 1 4;4 4 4"}], "query_input": "4 2 3;0 4 1;0 0 0;2 4 3", "query_output": "4 4 4;4 4 4;4 0 4;4 4 4"}
{"task_id": "icgr-00962", "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": "5 3 3;5 2 4;1 3 2;1 3 4", "output": "5 5 1 1;3 2 3 3;3 4 2 4"}, {"input": "2 4 5;2 2 4;4 4 1;3 4 1", "output": "2 2 4 3;4 2 4 4;5 4 1 1"}, {"input": "2 4 5;3 4 2;2 4 0;1 4 1", "output": "2 3 2 1;4 4 4 4;5 2 0 1"}, {"input": "3 0 3;3 4 5;1 4 0;0 0 5", "output": "3 3 1 0;0 4 4 0;3 5 0 5"}], "query_input": "3 4 1;1 5 3;5 3 4;5 0 4", "query_output": "3 1 5 5;4 5 3 0;1 3 4 4"}
{"task_id": "icgr-00934", "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": 3, "num_support": 2, "support": [{"input": "1 3 2;0 3 1;2 2 3;2 1 3", "output": "2 0 3;1 0 2;3 3 0;3 2 0"}, {"input": "0 1 1;1 1 3;2 2 0;3 0 0", "output": "1 2 2;2 2 0;3 3 1;0 1 1"}], "query_input": "0 0 3;1 2 3;2 3 2;3 0 3", "query_output": "1 1 0;2 3 0;3 0 3;0 1 0"}
{"task_id": "icgr-00242", "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": 4, "num_support": 4, "support": [{"input": "1 1 2 1;1 2 1 3;0 2 1 3", "output": "0 0 0 0;0 3 2 0;0 0 0 0"}, {"input": "2 3 0 0;3 0 3 0;1 2 1 3", "output": "0 0 0 0;0 1 0 0;0 0 0 0"}, {"input": "0 3 0 3;0 1 0 3;3 2 2 0", "output": "0 0 0 0;0 2 1 0;0 0 0 0"}, {"input": "3 1 2 2;0 1 3 2;1 3 2 3", "output": "0 0 0 0;0 2 0 0;0 0 0 0"}], "query_input": "0 0 2 0;2 1 0 2;3 0 3 0", "query_output": "0 0 0 0;0 2 1 0;0 0 0 0"}
{"task_id": "icgr-00745", "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": "0 3 1 3 0;2 1 0 0 0;2 3 2 1 3;1 0 3 2 2;0 2 0 1 0", "output": "0 3 1 3 0 0 3 1 3 0;2 1 0 0 0 2 1 0 0 0;2 3 2 1 3 2 3 2 1 3;1 0 3 2 2 1 0 3 2 2;0 2 0 1 0 0 2 0 1 0"}, {"input": "2 1 3 2 3;1 1 2 3 3;1 2 3 1 1;1 1 1 3 0;2 0 3 1 2", "output": "2 1 3 2 3 2 1 3 2 3;1 1 2 3 3 1 1 2 3 3;1 2 3 1 1 1 2 3 1 1;1 1 1 3 0 1 1 1 3 0;2 0 3 1 2 2 0 3 1 2"}], "query_input": "2 3 1 3 2;2 1 0 1 3;3 1 1 1 3;3 3 0 3 3;1 0 2 2 2", "query_output": "2 3 1 3 2 2 3 1 3 2;2 1 0 1 3 2 1 0 1 3;3 1 1 1 3 3 1 1 1 3;3 3 0 3 3 3 3 0 3 3;1 0 2 2 2 1 0 2 2 2"}
{"task_id": "icgr-00567", "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": 5, "num_support": 2, "support": [{"input": "1 5 2 1 5;2 2 4 4 1;2 0 0 0 3;3 3 3 2 3", "output": "0 2 3 0 2;2 5 5 3 3;4 1 1 1 3;4 3 4 4 4"}, {"input": "1 3 2 5 3;5 1 2 1 1;2 2 2 2 4;1 2 3 3 0", "output": "4 0 3 4 2;2 2 3 2 0;5 3 3 3 3;1 4 4 3 2"}], "query_input": "0 0 0 3 0;4 4 0 3 2;1 2 2 1 5;0 2 4 4 2", "query_output": "1 4 1 1 1;3 4 1 5 5;0 2 3 3 2;3 5 5 3 1"}
{"task_id": "icgr-00165", "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": 3, "num_support": 3, "support": [{"input": "3 3 4;5 2 0;4 0 1", "output": "5 5 0;1 2 4;0 4 3"}, {"input": "1 3 4;2 5 4;4 4 5", "output": "3 5 0;2 1 0;0 0 1"}, {"input": "3 5 3;5 5 3;5 1 4", "output": "5 1 5;1 1 5;1 3 0"}], "query_input": "1 4 5;3 5 0;5 0 4", "query_output": "3 0 1;5 1 4;1 4 0"}
{"task_id": "icgr-00570", "rule": "rotate90", "rule_kind": "atomic", "rule_description": "Rotate the grid 90 degrees clockwise.", "num_colors": 4, "grid_h": 5, "grid_w": 5, "num_support": 2, "support": [{"input": "1 3 0 2 2;3 0 2 2 1;2 1 0 1 1;1 1 3 0 0;0 0 1 0 3", "output": "0 1 2 3 1;0 1 1 0 3;1 3 0 2 0;0 0 1 2 2;3 0 1 1 2"}, {"input": "0 0 3 2 3;1 2 3 3 3;2 3 1 2 0;2 3 2 3 2;2 1 3 2 1", "output": "2 2 2 1 0;1 3 3 2 0;3 2 1 3 3;2 3 2 3 2;1 2 0 3 3"}], "query_input": "1 2 2 1 2;0 2 0 2 0;3 0 1 2 1;2 1 1 1 3;3 1 3 0 0", "query_output": "3 2 3 0 1;1 1 0 2 2;3 1 1 0 2;0 1 2 2 1;0 3 1 0 2"}
{"task_id": "icgr-00624", "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": 4, "num_support": 2, "support": [{"input": "0 4 2 4;4 4 3 3;0 3 4 4;3 1 2 4", "output": "2 1 4 1;1 1 0 0;2 0 1 1;0 3 4 1"}, {"input": "2 3 0 2;1 3 1 3;1 1 1 2;1 1 1 0", "output": "4 0 2 4;3 0 3 0;3 3 3 4;3 3 3 2"}], "query_input": "3 0 1 1;1 0 4 3;0 4 3 3;1 3 3 1", "query_output": "0 2 3 3;3 2 1 0;2 1 0 0;3 0 0 3"}
{"task_id": "icgr-00674", "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": 3, "support": [{"input": "2 5 3;3 2 4;3 5 1", "output": "4 4 4;4 2 4;4 4 4"}, {"input": "5 5 3;2 0 1;1 2 5", "output": "4 4 4;4 0 4;4 4 4"}, {"input": "1 2 4;3 2 5;4 4 2", "output": "4 4 4;4 2 4;4 4 4"}], "query_input": "0 3 2;5 4 2;1 2 0", "query_output": "4 4 4;4 4 4;4 4 4"}
{"task_id": "icgr-00392", "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": "1 0 3 3;1 1 2 2;3 0 1 0;0 3 0 0;0 1 1 2", "output": "0 1 1 2;0 3 0 0;3 0 1 0;1 1 2 2;1 0 3 3"}, {"input": "3 3 1 3;2 2 0 0;0 0 2 1;0 0 0 2;2 3 3 3", "output": "2 3 3 3;0 0 0 2;0 0 2 1;2 2 0 0;3 3 1 3"}], "query_input": "1 2 2 3;2 3 1 0;0 2 0 2;1 3 1 1;0 2 0 3", "query_output": "0 2 0 3;1 3 1 1;0 2 0 2;2 3 1 0;1 2 2 3"}
{"task_id": "icgr-00032", "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": 4, "support": [{"input": "1 0 4 0 3;2 0 4 0 4;0 1 0 0 4;4 4 4 1 1", "output": "1 4 0 4 3;2 4 0 4 0;4 1 4 4 0;0 0 0 1 1"}, {"input": "2 4 2 0 0;4 4 1 4 1;1 0 2 2 2;1 3 1 3 1", "output": "2 0 2 4 4;0 0 1 0 1;1 4 2 2 2;1 3 1 3 1"}, {"input": "4 1 1 3 4;4 3 0 0 2;1 4 1 1 4;0 3 0 0 0", "output": "0 1 1 3 0;0 3 4 4 2;1 0 1 1 0;4 3 4 4 4"}, {"input": "1 4 1 0 4;4 3 3 4 1;0 0 2 3 0;3 2 1 0 4", "output": "1 0 1 4 0;0 3 3 0 1;4 4 2 3 4;3 2 1 4 0"}], "query_input": "3 0 1 1 0;0 3 0 4 3;0 0 4 2 3;2 3 2 3 2", "query_output": "3 4 1 1 4;4 3 4 0 3;4 4 0 2 3;2 3 2 3 2"}
{"task_id": "icgr-00893", "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": 3, "support": [{"input": "3 3 0;1 1 0;0 2 3;1 0 1", "output": "0 3 3;0 1 1;3 2 0;1 0 1"}, {"input": "3 1 3;2 0 3;3 3 1;0 2 1", "output": "3 1 3;3 0 2;1 3 3;1 2 0"}, {"input": "3 0 0;0 0 1;0 0 2;3 0 1", "output": "0 0 3;1 0 0;2 0 0;1 0 3"}], "query_input": "2 2 3;0 0 3;1 3 1;3 1 3", "query_output": "3 2 2;3 0 0;1 3 1;3 1 3"}
{"task_id": "icgr-00984", "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": "2 2 0;4 2 3;4 1 3;0 1 4", "output": "2 2 0 2 2 0;4 2 3 4 2 3;4 1 3 4 1 3;0 1 4 0 1 4"}, {"input": "1 1 2;0 0 3;2 1 1;3 1 0", "output": "1 1 2 1 1 2;0 0 3 0 0 3;2 1 1 2 1 1;3 1 0 3 1 0"}, {"input": "3 4 0;2 0 3;4 3 0;0 2 4", "output": "3 4 0 3 4 0;2 0 3 2 0 3;4 3 0 4 3 0;0 2 4 0 2 4"}], "query_input": "3 2 1;2 1 2;2 0 1;3 2 3", "query_output": "3 2 1 3 2 1;2 1 2 2 1 2;2 0 1 2 0 1;3 2 3 3 2 3"}
{"task_id": "icgr-00287", "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": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "3 3 0;1 3 1;3 3 3;0 2 0;0 2 2", "output": "0 0 0;0 2 0;0 2 0;0 3 0;0 0 0"}, {"input": "0 3 3;2 0 2;3 1 0;0 2 0;3 2 2", "output": "0 0 0;0 0 0;0 1 0;0 3 0;0 0 0"}, {"input": "0 0 1;2 1 0;3 0 3;2 3 2;1 1 0", "output": "0 0 0;0 1 0;0 0 0;0 2 0;0 0 0"}, {"input": "2 0 0;1 3 3;1 0 3;3 0 2;0 1 3", "output": "0 0 0;0 2 0;0 0 0;0 0 0;0 0 0"}], "query_input": "2 3 0;1 0 3;2 2 1;1 1 1;0 1 0", "query_output": "0 0 0;0 0 0;0 3 0;0 1 0;0 0 0"}
{"task_id": "icgr-00346", "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": "1 2 4 0 1 4;2 1 4 0 2 2;3 3 0 3 3 4;4 3 1 4 0 2;4 3 3 4 0 1;0 0 0 1 3 2", "output": "2 4 4;4 4 4;4 4 3"}, {"input": "2 4 0 0 4 3;0 1 4 1 4 1;4 1 4 0 1 4;3 2 3 1 2 3;2 1 4 3 3 2;3 1 3 1 3 1", "output": "4 4 4;4 4 4;3 4 3"}, {"input": "3 3 4 2 2 1;0 0 4 1 2 1;4 0 1 4 3 4;2 4 0 0 2 4;0 2 1 3 3 0;2 4 2 4 3 0", "output": "3 4 2;4 4 4;4 4 3"}, {"input": "2 3 4 2 0 3;1 1 3 2 1 2;2 3 4 2 2 1;2 0 2 1 0 0;3 1 0 3 1 4;3 3 3 1 3 0", "output": "3 4 3;3 4 2;3 3 4"}], "query_input": "3 2 0 3 0 4;3 0 1 2 1 3;2 1 4 4 0 4;1 4 2 0 3 4;0 0 3 3 0 1;1 3 1 1 2 2", "query_output": "3 3 4;4 4 4;3 3 2"}
{"task_id": "icgr-00664", "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 3 3;2 3 0 3;2 3 0 3;3 3 3 2", "output": "1 1 1 0;1 2 1 0;1 2 1 0;0 1 1 1"}, {"input": "2 3 3 1;1 1 2 3;2 0 3 2;0 1 0 2", "output": "3 1 1 0;1 0 3 3;0 1 2 0;0 2 3 2"}, {"input": "3 2 1 0;0 2 3 3;3 2 0 2;1 1 1 0", "output": "2 3 0 1;1 1 0 2;0 2 0 1;2 3 3 3"}, {"input": "1 0 1 0;0 3 3 2;1 3 0 2;1 2 1 1", "output": "2 3 2 3;0 1 1 2;0 2 1 3;3 3 0 3"}], "query_input": "0 3 2 2;1 0 1 2;2 2 3 3;1 0 3 0", "query_output": "0 0 1 2;0 3 2 3;1 1 0 0;2 1 2 3"}
{"task_id": "icgr-00734", "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 3 1;1 4 4;0 1 0", "output": "4 3 1 4 3 1;1 4 4 1 4 4;0 1 0 0 1 0"}, {"input": "2 0 3;0 3 0;3 1 2", "output": "2 0 3 2 0 3;0 3 0 0 3 0;3 1 2 3 1 2"}], "query_input": "3 4 2;0 4 1;0 4 1", "query_output": "3 4 2 3 4 2;0 4 1 0 4 1;0 4 1 0 4 1"}
{"task_id": "icgr-00800", "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": "1 2 0;1 2 0;0 2 3", "output": "1 1 0;2 2 2;0 0 3"}, {"input": "0 3 2;3 3 3;3 3 0", "output": "0 3 3;3 3 3;2 3 0"}], "query_input": "3 2 3;0 0 2;0 1 0", "query_output": "3 0 0;2 0 1;3 2 0"}
{"task_id": "icgr-00208", "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": "2 2 5 4;4 0 0 5;5 4 3 5;4 4 1 3;2 4 5 0", "output": "1 1 1 1;0 1 1 0;3 1 1 4;1 1 1 4;1 1 1 1"}, {"input": "2 1 5 0;2 4 4 3;2 5 5 1;1 2 2 1;5 5 0 1", "output": "1 1 1 1;4 1 1 4;5 1 1 5;2 1 1 2;1 1 1 1"}], "query_input": "4 5 4 5;4 1 2 4;1 5 0 3;3 4 5 3;2 4 0 4", "query_output": "1 1 1 1;2 1 1 1;0 1 1 5;5 1 1 4;1 1 1 1"}
{"task_id": "icgr-00103", "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": 3, "support": [{"input": "0 1 3 2;2 4 4 2;4 3 0 2;3 3 2 3;0 3 0 4", "output": "0 0 0 0;0 4 4 0;0 0 3 0;0 2 3 0;0 0 0 0"}, {"input": "3 1 1 0;1 3 4 1;0 2 4 1;4 2 2 0;2 3 4 1", "output": "0 0 0 0;0 4 3 0;0 4 2 0;0 2 2 0;0 0 0 0"}, {"input": "3 3 2 3;4 4 4 1;2 2 3 1;1 3 0 3;1 1 3 0", "output": "0 0 0 0;0 4 4 0;0 3 2 0;0 0 3 0;0 0 0 0"}], "query_input": "0 4 1 3;0 0 4 1;1 0 3 1;1 2 0 1;2 1 1 1", "query_output": "0 0 0 0;0 4 0 0;0 3 0 0;0 0 2 0;0 0 0 0"}
{"task_id": "icgr-00778", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 4, "support": [{"input": "2 0 2;1 0 3;1 1 0;1 2 3;1 3 2", "output": "2 0 2;3 0 1;0 1 1;3 2 1;2 3 1"}, {"input": "1 2 2;1 0 3;1 2 3;3 3 0;2 3 1", "output": "2 2 1;3 0 1;3 2 1;0 3 3;1 3 2"}, {"input": "1 1 3;3 0 1;3 1 2;0 3 2;2 3 3", "output": "3 1 1;1 0 3;2 1 3;2 3 0;3 3 2"}, {"input": "2 1 0;1 3 3;3 3 3;3 3 0;3 2 0", "output": "0 1 2;3 3 1;3 3 3;0 3 3;0 2 3"}], "query_input": "3 2 1;3 1 2;2 1 2;0 2 3;3 2 0", "query_output": "1 2 3;2 1 3;2 1 2;3 2 0;0 2 3"}
{"task_id": "icgr-00817", "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": 4, "support": [{"input": "4 2 0;1 1 3;1 0 1;4 4 3;5 4 2", "output": "0 4 2;3 1 1;1 1 0;3 4 4;2 5 4"}, {"input": "4 2 5;5 3 0;1 0 4;5 4 0;4 3 1", "output": "5 4 2;0 5 3;4 1 0;0 5 4;1 4 3"}, {"input": "3 3 3;3 4 3;0 0 5;0 0 1;2 5 2", "output": "3 3 3;3 3 4;5 0 0;1 0 0;2 2 5"}, {"input": "1 1 2;4 2 4;4 1 5;1 5 5;0 2 0", "output": "2 1 1;4 4 2;5 4 1;5 1 5;0 0 2"}], "query_input": "4 0 4;0 1 0;1 4 1;3 3 3;3 1 1", "query_output": "4 4 0;0 0 1;1 1 4;3 3 3;1 3 1"}
{"task_id": "icgr-00936", "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": 3, "support": [{"input": "4 3 2 3;1 0 3 0;2 4 1 0", "output": "4 4 4 4;4 0 3 4;4 4 4 4"}, {"input": "3 1 3 1;0 4 4 0;4 4 2 1", "output": "4 4 4 4;4 4 4 4;4 4 4 4"}, {"input": "0 4 2 2;1 4 0 4;1 3 4 3", "output": "4 4 4 4;4 4 0 4;4 4 4 4"}], "query_input": "1 2 1 3;2 3 3 3;3 0 2 3", "query_output": "4 4 4 4;4 3 3 4;4 4 4 4"}
{"task_id": "icgr-00483", "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": 3, "num_support": 4, "support": [{"input": "3 5 5;0 3 3;2 5 2", "output": "5 5 5;5 3 5;5 5 5"}, {"input": "4 3 0;5 2 2;1 0 1", "output": "5 5 5;5 2 5;5 5 5"}, {"input": "3 5 4;5 5 5;5 2 4", "output": "5 5 5;5 5 5;5 5 5"}, {"input": "5 2 2;5 5 1;1 0 4", "output": "5 5 5;5 5 5;5 5 5"}], "query_input": "4 5 4;1 2 4;3 5 0", "query_output": "5 5 5;5 2 5;5 5 5"}
{"task_id": "icgr-00064", "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": 3, "grid_w": 5, "num_support": 3, "support": [{"input": "5 3 4 5 4;5 0 0 2 0;5 5 5 0 5", "output": "5 5 5 0 5;5 0 0 3 0;5 2 4 5 4"}, {"input": "4 4 5 4 1;1 0 0 3 1;3 5 5 0 1", "output": "2 5 5 0 1;1 0 0 2 1;4 4 5 4 1"}, {"input": "0 3 0 2 0;5 5 5 1 3;2 3 4 1 2", "output": "3 2 4 1 3;5 5 5 1 2;0 2 0 3 0"}], "query_input": "1 2 1 5 3;1 4 3 0 4;1 1 1 5 1", "query_output": "1 1 1 5 1;1 4 2 0 4;1 3 1 5 2"}
{"task_id": "icgr-00353", "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": 4, "support": [{"input": "2 2 0 3 0;0 1 2 4 2;0 1 0 2 2", "output": "3 3 3 3 3;3 1 2 4 3;3 3 3 3 3"}, {"input": "2 1 0 1 3;2 1 4 1 1;4 1 2 2 3", "output": "3 3 3 3 3;3 1 4 1 3;3 3 3 3 3"}, {"input": "2 4 0 0 2;4 4 2 2 3;1 4 1 2 3", "output": "3 3 3 3 3;3 4 2 2 3;3 3 3 3 3"}, {"input": "2 4 3 1 2;4 1 4 3 1;3 4 4 1 2", "output": "3 3 3 3 3;3 1 4 3 3;3 3 3 3 3"}], "query_input": "3 3 2 0 4;0 3 2 3 2;1 3 0 3 3", "query_output": "3 3 3 3 3;3 3 2 3 3;3 3 3 3 3"}
{"task_id": "icgr-00146", "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": 4, "support": [{"input": "3 5 4;0 5 0;2 3 1;0 3 5", "output": "3 5 4;0 5 0;2 3 1;0 3 5"}, {"input": "0 1 0;1 3 5;1 3 3;1 2 0", "output": "0 1 0;1 3 5;1 3 3;1 2 0"}, {"input": "3 0 5;4 2 1;0 0 5;1 5 1", "output": "3 0 5;4 2 1;0 0 5;1 5 1"}, {"input": "4 0 4;1 4 0;2 4 5;0 3 3", "output": "4 0 4;1 4 0;2 4 5;0 3 3"}], "query_input": "2 1 0;4 4 4;5 0 0;3 0 1", "query_output": "2 1 0;4 4 4;5 0 0;3 0 1"}
{"task_id": "icgr-00418", "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": 5, "num_support": 3, "support": [{"input": "2 2 3 2 4;3 0 0 4 3;4 3 1 5 3", "output": "5 5 5 5 5;5 3 0 0 5;5 5 5 5 5"}, {"input": "5 4 5 1 1;3 3 4 5 4;3 0 5 0 4", "output": "5 5 5 5 5;5 3 3 4 5;5 5 5 5 5"}, {"input": "1 3 3 5 3;5 5 1 4 0;1 4 5 1 0", "output": "5 5 5 5 5;5 5 5 1 5;5 5 5 5 5"}], "query_input": "3 3 2 0 1;4 5 3 4 1;5 1 4 3 1", "query_output": "5 5 5 5 5;5 4 5 3 5;5 5 5 5 5"}
{"task_id": "icgr-00923", "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": "2 2 0 4 3;1 3 0 2 4;2 5 2 0 4", "output": "3 4 0 2 2;4 2 0 3 1;4 0 2 5 2"}, {"input": "4 1 3 2 3;3 5 5 5 5;3 0 5 0 3", "output": "3 2 3 1 4;5 5 5 5 3;3 0 5 0 3"}, {"input": "1 1 0 2 0;3 0 3 3 2;4 4 2 2 4", "output": "0 2 0 1 1;2 3 3 0 3;4 2 2 4 4"}], "query_input": "3 4 1 1 3;2 0 3 2 5;4 4 1 3 2", "query_output": "3 1 1 4 3;5 2 3 0 2;2 3 1 4 4"}
{"task_id": "icgr-00929", "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": "3 3 3;0 0 1;0 2 2;0 0 2", "output": "3 3 3 3 3 3;0 0 1 0 0 1;0 2 2 0 2 2;0 0 2 0 0 2"}, {"input": "3 0 1;3 0 0;0 2 0;2 2 0", "output": "3 0 1 3 0 1;3 0 0 3 0 0;0 2 0 0 2 0;2 2 0 2 2 0"}], "query_input": "3 2 0;0 1 1;2 0 1;1 1 1", "query_output": "3 2 0 3 2 0;0 1 1 0 1 1;2 0 1 2 0 1;1 1 1 1 1 1"}
{"task_id": "icgr-00518", "rule": "flip_h", "rule_kind": "atomic", "rule_description": "Mirror the grid left-to-right.", "num_colors": 4, "grid_h": 5, "grid_w": 3, "num_support": 3, "support": [{"input": "1 2 1;2 3 0;2 0 1;1 3 1;2 2 3", "output": "1 2 1;0 3 2;1 0 2;1 3 1;3 2 2"}, {"input": "2 2 0;0 3 1;2 2 0;0 0 1;3 0 0", "output": "0 2 2;1 3 0;0 2 2;1 0 0;0 0 3"}, {"input": "1 0 1;1 0 2;1 1 2;2 0 1;2 2 0", "output": "1 0 1;2 0 1;2 1 1;1 0 2;0 2 2"}], "query_input": "1 1 2;0 3 0;3 3 1;0 3 2;0 2 1", "query_output": "2 1 1;0 3 0;1 3 3;2 3 0;1 2 0"}
{"task_id": "icgr-00754", "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": 3, "grid_w": 4, "num_support": 3, "support": [{"input": "3 0 1 1;3 2 1 1;0 0 3 3", "output": "3 3 0 0;0 2 1 1;0 3 1 1"}, {"input": "1 3 3 0;2 0 3 0;0 2 1 2", "output": "3 2 1 2;2 3 0 3;1 0 0 3"}, {"input": "2 3 1 2;3 1 0 3;1 1 3 2", "output": "1 1 0 2;0 1 3 0;2 0 1 2"}], "query_input": "2 0 2 3;3 0 1 0;0 1 0 0", "query_output": "3 1 3 3;0 3 1 3;2 3 2 0"}
{"task_id": "icgr-00137", "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": "0 2 4 0;0 4 3 2;1 5 3 4;3 5 1 2;1 5 3 4", "output": "3 3 3 3;3 4 3 3;3 5 3 3;3 5 1 3;3 3 3 3"}, {"input": "2 2 3 3;0 2 4 5;2 2 5 1;0 1 2 1;2 0 5 1", "output": "3 3 3 3;3 2 4 3;3 2 5 3;3 1 2 3;3 3 3 3"}, {"input": "4 0 3 5;1 0 2 0;1 3 1 0;4 0 3 0;0 2 2 0", "output": "3 3 3 3;3 0 2 3;3 3 1 3;3 0 3 3;3 3 3 3"}], "query_input": "5 5 0 2;4 1 4 0;5 2 3 3;2 2 2 5;3 0 1 1", "query_output": "3 3 3 3;3 1 4 3;3 2 3 3;3 2 2 3;3 3 3 3"}
{"task_id": "icgr-00517", "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": 5, "num_support": 4, "support": [{"input": "3 1 3 2 3;1 1 2 2 1;3 3 0 2 3", "output": "3 0 0 2 0;3 2 2 2 3;3 0 0 0 1"}, {"input": "0 3 1 0 2;1 1 0 2 1;2 1 1 1 0", "output": "1 3 1 0 2;3 2 2 2 1;2 1 3 2 2"}, {"input": "0 0 2 3 1;2 2 3 2 1;0 2 1 2 3", "output": "0 2 1 1 3;3 2 3 3 0;3 0 1 3 2"}, {"input": "3 1 3 0 0;3 0 3 3 1;3 3 3 3 1", "output": "1 1 0 2 0;0 2 0 1 0;0 2 0 0 0"}], "query_input": "2 3 3 1 3;3 2 1 2 0;1 0 1 0 0", "query_output": "2 0 3 0 0;3 1 0 3 2;1 1 2 1 2"}
{"task_id": "icgr-00905", "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": 3, "support": [{"input": "3 1 1 2 1;2 3 2 3 2;0 1 3 1 1;3 0 3 0 3;1 3 1 0 1", "output": "1 2 1 1 0;2 0 2 0 2;1 1 0 1 3;0 3 0 3 0;1 3 1 0 1"}, {"input": "3 0 0 3 3;0 0 1 2 0;2 0 2 3 0;0 3 0 3 0;1 1 1 2 3", "output": "0 0 3 3 0;3 2 1 3 3;3 0 2 3 2;3 0 3 0 3;0 2 1 1 1"}, {"input": "3 0 1 2 1;2 2 2 3 3;1 3 2 0 2;2 2 0 2 2;2 0 1 1 2", "output": "1 2 1 3 0;0 0 2 2 2;2 3 2 0 1;2 2 3 2 2;2 1 1 3 2"}], "query_input": "2 2 3 1 1;2 1 1 2 1;0 1 1 2 1;2 2 2 0 1;0 2 1 0 3", "query_output": "1 1 0 2 2;1 2 1 1 2;1 2 1 1 3;1 3 2 2 2;0 3 1 2 3"}
{"task_id": "icgr-00323", "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": 3, "grid_w": 3, "num_support": 3, "support": [{"input": "3 4 0;1 1 2;2 0 4", "output": "0 2 3;4 1 1;2 0 4"}, {"input": "1 4 0;0 2 0;0 5 4", "output": "0 2 1;0 4 0;2 5 0"}, {"input": "3 5 3;3 0 4;1 5 0", "output": "3 5 3;2 0 3;0 5 1"}], "query_input": "1 2 2;1 3 1;5 1 3", "query_output": "4 4 1;1 3 1;3 1 5"}
{"task_id": "icgr-00891", "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": 4, "num_support": 4, "support": [{"input": "0 0 2 2;1 1 4 3;0 0 4 4;0 0 0 3", "output": "1 1 1 1;1 1 0 1;1 4 0 1;1 1 1 1"}, {"input": "1 0 3 2;2 3 1 1;2 0 3 3;3 4 4 0", "output": "1 1 1 1;1 3 1 1;1 4 3 1;1 1 1 1"}, {"input": "1 4 3 0;0 2 4 1;3 1 3 2;2 3 4 1", "output": "1 1 1 1;1 2 0 1;1 1 3 1;1 1 1 1"}, {"input": "3 0 2 3;2 2 2 2;3 4 1 2;3 2 0 0", "output": "1 1 1 1;1 2 2 1;1 0 1 1;1 1 1 1"}], "query_input": "1 4 2 0;0 3 3 4;3 2 2 4;4 0 0 1", "query_output": "1 1 1 1;1 3 3 1;1 2 2 1;1 1 1 1"}
{"task_id": "icgr-00409", "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": 5, "num_support": 4, "support": [{"input": "1 2 0 3 3;1 3 2 1 2;1 1 0 3 1;2 0 3 1 1", "output": "3 0 2 1 1;3 1 0 3 0;3 3 2 1 3;0 2 1 3 3"}, {"input": "1 1 0 3 0;3 2 1 2 0;0 2 2 2 1;3 3 0 2 1", "output": "3 3 2 1 2;1 0 3 0 2;2 0 0 0 3;1 1 2 0 3"}, {"input": "0 1 1 2 1;3 3 0 0 0;3 1 0 1 3;0 2 1 3 1", "output": "2 3 3 0 3;1 1 2 2 2;1 3 2 3 1;2 0 3 1 3"}, {"input": "2 2 3 1 3;3 3 3 0 0;2 1 3 2 2;0 3 1 0 0", "output": "0 0 1 3 1;1 1 1 2 2;0 3 1 0 0;2 1 3 2 2"}], "query_input": "0 3 2 1 1;3 0 3 1 1;1 3 3 0 3;3 1 0 2 3", "query_output": "2 1 0 3 3;1 2 1 3 3;3 1 1 2 1;1 3 2 0 1"}
{"task_id": "icgr-00604", "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": 5, "num_support": 3, "support": [{"input": "0 1 0 5 2;3 1 3 0 0;2 3 1 0 4;2 2 2 5 2;5 2 3 4 4", "output": "2 0 1 0 3;0 5 1 5 0;4 2 5 1 0;2 2 2 2 3;4 3 2 5 4"}, {"input": "3 2 2 0 0;0 1 0 2 4;2 0 1 3 1;1 5 1 4 5;5 1 3 2 2", "output": "0 5 2 2 0;4 0 1 0 2;1 2 0 1 5;3 1 3 1 4;2 3 1 5 2"}, {"input": "5 2 4 1 4;2 5 2 4 4;3 5 1 1 1;5 4 3 2 1;4 0 5 1 0", "output": "4 3 2 4 1;4 2 3 2 4;1 5 3 1 1;1 3 4 5 2;0 4 0 3 1"}], "query_input": "4 3 0 0 1;0 4 1 2 0;5 0 0 1 5;1 4 0 5 3;0 2 5 5 0", "query_output": "1 4 5 0 0;0 0 4 1 2;3 3 0 0 1;5 1 4 0 3;0 0 2 3 3"}
{"task_id": "icgr-00095", "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": "2 4 4 3;2 1 2 0;4 2 1 4", "output": "2 4 4 3 2 4 4 3;2 1 2 0 2 1 2 0;4 2 1 4 4 2 1 4"}, {"input": "1 4 0 1;4 3 4 4;0 1 1 0", "output": "1 4 0 1 1 4 0 1;4 3 4 4 4 3 4 4;0 1 1 0 0 1 1 0"}], "query_input": "1 2 0 0;2 3 2 2;0 4 3 4", "query_output": "1 2 0 0 1 2 0 0;2 3 2 2 2 3 2 2;0 4 3 4 0 4 3 4"}
{"task_id": "icgr-00484", "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": "3 2 4 2;2 4 0 3;0 3 1 2;0 0 3 0", "output": "3 2 0 0;2 4 3 0;4 0 1 3;2 3 2 0"}, {"input": "1 3 2 0;3 3 2 3;3 1 0 4;2 3 3 2", "output": "1 3 3 2;3 3 1 3;2 2 0 3;0 3 4 2"}], "query_input": "3 1 4 0;2 2 1 1;2 2 4 2;4 3 2 2", "query_output": "3 2 2 4;1 2 2 3;4 1 4 2;0 1 2 2"}