{"abstract":"A wrapped normal form such as [11,0,4] is returned as [11,12,16].","category":"Music interval and transposition theory","checks":8,"contract":"Input a list of integers (reduced mod 12, duplicates removed). Return the normal form: among all rotations of the ascending set, choose the one with the smallest span first-to-last, then smallest span first-to-penultimate, and so on toward the second element; a full tie picks the rotation starting on the lowest pitch class. Empty input returns []; non-integer input returns None.","evaluation_group":"w2-music-interval-normal-form","failed_approach":"Reducing only values above 12 still leaves a lifted 12 in the output.","family":"w2-music-interval-normal-form-reduced-output","id":"FA-81041","implementations":{"attempt":{"sha256":"096c0e04a9657a50e64b27f593d742fcc2b7a494abcaaf4b6717ae26a78ec613","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    if not isinstance(x, list) or not all(isinstance(v, int) for v in x):\n        return None\n    pcs = sorted(set(v % 12 for v in x))\n    if not pcs:\n        return []\n    n = len(pcs)\n    best = None\n    for r in range(n):\n        rot = pcs[r:] + [p + 12 for p in pcs[:r]]\n        key = [rot[-1] - rot[0]] + [rot[j] - rot[0] for j in range(n - 2, 0, -1)]\n        cand = (key, rot[0])\n        if best is None or cand < best[0]:\n            best = (cand, [p - 12 if p > 12 else p for p in rot])\n    return best[1]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([0, 4, 7], [0, 4, 7]), ([7, 4, 0], [0, 4, 7]), ([11, 0, 4], [11, 0, 4]), ([0, 1, 5, 6, 8], [0, 1, 5, 6, 8]), ([0, 2, 3, 6, 7, 9], [0, 2, 3, 6, 7, 9]), ([0, 1, 2, 5, 6, 7, 9], [0, 1, 2, 5, 6, 7, 9]), ([0, 1, 2, 4, 5, 7, 9, 10], [9, 10, 0, 1, 2, 4, 5, 7]), ([9, 0, 4, 4, 16], [9, 0, 4])], [([0, 1, 3, 5, 8, 9], [8, 9, 0, 1, 3, 5]), ([0, 2, 3, 6, 7, 9], [0, 2, 3, 6, 7, 9]), ([0, 1, 2, 5, 6, 7, 9], [0, 1, 2, 5, 6, 7, 9]), ([0, 4, 8], [0, 4, 8]), ([0, 3, 6, 9], [0, 3, 6, 9]), ([0, 6], [0, 6]), ([9, 0, 4, 4, 16], [9, 0, 4]), ([-1, 0, 1], [11, 0, 1])], [([0, 1, 2, 4, 5, 7, 9, 10], [9, 10, 0, 1, 2, 4, 5, 7]), ([0, 3, 6, 9], [0, 3, 6, 9]), ([0, 6], [0, 6]), ([2, 5, 9], [2, 5, 9]), ([10, 2, 5], [10, 2, 5]), ([1, 5, 8], [1, 5, 8]), ([0, 1, 4, 6], [0, 1, 4, 6]), ([0, 3, 7, 10], [7, 10, 0, 3])], [([11, 0, 4], [11, 0, 4]), ([9, 0, 4, 4, 16], [9, 0, 4]), ([1, 5, 8], [1, 5, 8]), ([11, 2, 6], [11, 2, 6]), ([0, 1, 4, 6], [0, 1, 4, 6]), ([0, 1, 3, 7], [0, 1, 3, 7]), ([5], [5]), ([], [])], [([0, 1, 3, 5, 8, 9], [8, 9, 0, 1, 3, 5]), ([10, 2, 5], [10, 2, 5]), ([5], [5]), ([], []), ([3, 15, 27], [3]), ([-1, 0, 1], [11, 0, 1]), ([0, 2, 4, 6, 8, 10], [0, 2, 4, 6, 8, 10]), ([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11])]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"oracle %d\" % i, solve(args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"09bfcc04555d3f50c4e0d2a405b2bebbd7d410067329c5adfcc01d0ed0651e8f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    if not isinstance(x, list) or not all(isinstance(v, int) for v in x):\n        return None\n    pcs = sorted(set(v % 12 for v in x))\n    if not pcs:\n        return []\n    n = len(pcs)\n    best = None\n    for r in range(n):\n        rot = pcs[r:] + [p + 12 for p in pcs[:r]]\n        key = [rot[-1] - rot[0]] + [rot[j] - rot[0] for j in range(n - 2, 0, -1)]\n        cand = (key, rot[0])\n        if best is None or cand < best[0]:\n            best = (cand, rot)\n    return best[1]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([0, 4, 7], [0, 4, 7]), ([7, 4, 0], [0, 4, 7]), ([11, 0, 4], [11, 0, 4]), ([0, 1, 5, 6, 8], [0, 1, 5, 6, 8]), ([0, 2, 3, 6, 7, 9], [0, 2, 3, 6, 7, 9]), ([0, 1, 2, 5, 6, 7, 9], [0, 1, 2, 5, 6, 7, 9]), ([0, 1, 2, 4, 5, 7, 9, 10], [9, 10, 0, 1, 2, 4, 5, 7]), ([9, 0, 4, 4, 16], [9, 0, 4])], [([0, 1, 3, 5, 8, 9], [8, 9, 0, 1, 3, 5]), ([0, 2, 3, 6, 7, 9], [0, 2, 3, 6, 7, 9]), ([0, 1, 2, 5, 6, 7, 9], [0, 1, 2, 5, 6, 7, 9]), ([0, 4, 8], [0, 4, 8]), ([0, 3, 6, 9], [0, 3, 6, 9]), ([0, 6], [0, 6]), ([9, 0, 4, 4, 16], [9, 0, 4]), ([-1, 0, 1], [11, 0, 1])], [([0, 1, 2, 4, 5, 7, 9, 10], [9, 10, 0, 1, 2, 4, 5, 7]), ([0, 3, 6, 9], [0, 3, 6, 9]), ([0, 6], [0, 6]), ([2, 5, 9], [2, 5, 9]), ([10, 2, 5], [10, 2, 5]), ([1, 5, 8], [1, 5, 8]), ([0, 1, 4, 6], [0, 1, 4, 6]), ([0, 3, 7, 10], [7, 10, 0, 3])], [([11, 0, 4], [11, 0, 4]), ([9, 0, 4, 4, 16], [9, 0, 4]), ([1, 5, 8], [1, 5, 8]), ([11, 2, 6], [11, 2, 6]), ([0, 1, 4, 6], [0, 1, 4, 6]), ([0, 1, 3, 7], [0, 1, 3, 7]), ([5], [5]), ([], [])], [([0, 1, 3, 5, 8, 9], [8, 9, 0, 1, 3, 5]), ([10, 2, 5], [10, 2, 5]), ([5], [5]), ([], []), ([3, 15, 27], [3]), ([-1, 0, 1], [11, 0, 1]), ([0, 2, 4, 6, 8, 10], [0, 2, 4, 6, 8, 10]), ([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11])]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"oracle %d\" % i, solve(args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"fixed":{"sha256":"7cb8e7802dba9487dbcd2edde564a7c52fbd507d329b7ed27ef99942c70804cf","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    if not isinstance(x, list) or not all(isinstance(v, int) for v in x):\n        return None\n    pcs = sorted(set(v % 12 for v in x))\n    if not pcs:\n        return []\n    n = len(pcs)\n    best = None\n    for r in range(n):\n        rot = pcs[r:] + [p + 12 for p in pcs[:r]]\n        key = [rot[-1] - rot[0]] + [rot[j] - rot[0] for j in range(n - 2, 0, -1)]\n        cand = (key, rot[0])\n        if best is None or cand < best[0]:\n            best = (cand, [p % 12 for p in rot])\n    return best[1]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([0, 4, 7], [0, 4, 7]), ([7, 4, 0], [0, 4, 7]), ([11, 0, 4], [11, 0, 4]), ([0, 1, 5, 6, 8], [0, 1, 5, 6, 8]), ([0, 2, 3, 6, 7, 9], [0, 2, 3, 6, 7, 9]), ([0, 1, 2, 5, 6, 7, 9], [0, 1, 2, 5, 6, 7, 9]), ([0, 1, 2, 4, 5, 7, 9, 10], [9, 10, 0, 1, 2, 4, 5, 7]), ([9, 0, 4, 4, 16], [9, 0, 4])], [([0, 1, 3, 5, 8, 9], [8, 9, 0, 1, 3, 5]), ([0, 2, 3, 6, 7, 9], [0, 2, 3, 6, 7, 9]), ([0, 1, 2, 5, 6, 7, 9], [0, 1, 2, 5, 6, 7, 9]), ([0, 4, 8], [0, 4, 8]), ([0, 3, 6, 9], [0, 3, 6, 9]), ([0, 6], [0, 6]), ([9, 0, 4, 4, 16], [9, 0, 4]), ([-1, 0, 1], [11, 0, 1])], [([0, 1, 2, 4, 5, 7, 9, 10], [9, 10, 0, 1, 2, 4, 5, 7]), ([0, 3, 6, 9], [0, 3, 6, 9]), ([0, 6], [0, 6]), ([2, 5, 9], [2, 5, 9]), ([10, 2, 5], [10, 2, 5]), ([1, 5, 8], [1, 5, 8]), ([0, 1, 4, 6], [0, 1, 4, 6]), ([0, 3, 7, 10], [7, 10, 0, 3])], [([11, 0, 4], [11, 0, 4]), ([9, 0, 4, 4, 16], [9, 0, 4]), ([1, 5, 8], [1, 5, 8]), ([11, 2, 6], [11, 2, 6]), ([0, 1, 4, 6], [0, 1, 4, 6]), ([0, 1, 3, 7], [0, 1, 3, 7]), ([5], [5]), ([], [])], [([0, 1, 3, 5, 8, 9], [8, 9, 0, 1, 3, 5]), ([10, 2, 5], [10, 2, 5]), ([5], [5]), ([], []), ([3, 15, 27], [3]), ([-1, 0, 1], [11, 0, 1]), ([0, 2, 4, 6, 8, 10], [0, 2, 4, 6, 8, 10]), ([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11])]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"oracle %d\" % i, solve(args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"A deterministic bounded teaching model with a stipulated toy contract; it is not a complete music notation or theory engine. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"w2-music-interval-normal-form-reduced-output","generated_at":"2026-09-29T14:49:59.302206+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Post-tonal analysis tools use normal form to compare and catalogue pitch-class sets.","repair":"Restore the reduced output step so that it reads `[p % 12 for p in rot]`.","root_cause":"The chosen rotation is returned with its octave-lifted working values instead of pitch classes.","sha256":"184c6bad151194bb50d384e6b2c5aa5dd9b24d4b1e2ab6a13ffb57bb1a8441e7","title":"Pitch-class set normal form (right-packed): normal form reports lifted pitch values · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.57,"exit_code":1,"observations":[{"actual":[0,4,7],"check":"oracle 0","expected":[0,4,7],"passed":true},{"actual":[0,4,7],"check":"oracle 1","expected":[0,4,7],"passed":true},{"actual":[11,12,4],"check":"oracle 2","expected":[11,0,4],"passed":false},{"actual":[0,1,5,6,8],"check":"oracle 3","expected":[0,1,5,6,8],"passed":true},{"actual":[0,2,3,6,7,9],"check":"oracle 4","expected":[0,2,3,6,7,9],"passed":true},{"actual":[0,1,2,5,6,7,9],"check":"oracle 5","expected":[0,1,2,5,6,7,9],"passed":true},{"actual":[9,10,12,1,2,4,5,7],"check":"oracle 6","expected":[9,10,0,1,2,4,5,7],"passed":false},{"actual":[9,12,4],"check":"oracle 7","expected":[9,0,4],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oracle 0\", \"actual\": [0, 4, 7], \"expected\": [0, 4, 7], \"passed\": true}, {\"check\": \"oracle 1\", \"actual\": [0, 4, 7], \"expected\": [0, 4, 7], \"passed\": true}, {\"check\": \"oracle 2\", \"actual\": [11, 12, 4], \"expected\": [11, 0, 4], \"passed\": false}, {\"check\": \"oracle 3\", \"actual\": [0, 1, 5, 6, 8], \"expected\": [0, 1, 5, 6, 8], \"passed\": true}, {\"check\": \"oracle 4\", \"actual\": [0, 2, 3, 6, 7, 9], \"expected\": [0, 2, 3, 6, 7, 9], \"passed\": true}, {\"check\": \"oracle 5\", \"actual\": [0, 1, 2, 5, 6, 7, 9], \"expected\": [0, 1, 2, 5, 6, 7, 9], \"passed\": true}, {\"check\": \"oracle 6\", \"actual\": [9, 10, 12, 1, 2, 4, 5, 7], \"expected\": [9, 10, 0, 1, 2, 4, 5, 7], \"passed\": false}, {\"check\": \"oracle 7\", \"actual\": [9, 12, 4], \"expected\": [9, 0, 4], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.918,"exit_code":1,"observations":[{"actual":[0,4,7],"check":"oracle 0","expected":[0,4,7],"passed":true},{"actual":[0,4,7],"check":"oracle 1","expected":[0,4,7],"passed":true},{"actual":[11,12,16],"check":"oracle 2","expected":[11,0,4],"passed":false},{"actual":[0,1,5,6,8],"check":"oracle 3","expected":[0,1,5,6,8],"passed":true},{"actual":[0,2,3,6,7,9],"check":"oracle 4","expected":[0,2,3,6,7,9],"passed":true},{"actual":[0,1,2,5,6,7,9],"check":"oracle 5","expected":[0,1,2,5,6,7,9],"passed":true},{"actual":[9,10,12,13,14,16,17,19],"check":"oracle 6","expected":[9,10,0,1,2,4,5,7],"passed":false},{"actual":[9,12,16],"check":"oracle 7","expected":[9,0,4],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oracle 0\", \"actual\": [0, 4, 7], \"expected\": [0, 4, 7], \"passed\": true}, {\"check\": \"oracle 1\", \"actual\": [0, 4, 7], \"expected\": [0, 4, 7], \"passed\": true}, {\"check\": \"oracle 2\", \"actual\": [11, 12, 16], \"expected\": [11, 0, 4], \"passed\": false}, {\"check\": \"oracle 3\", \"actual\": [0, 1, 5, 6, 8], \"expected\": [0, 1, 5, 6, 8], \"passed\": true}, {\"check\": \"oracle 4\", \"actual\": [0, 2, 3, 6, 7, 9], \"expected\": [0, 2, 3, 6, 7, 9], \"passed\": true}, {\"check\": \"oracle 5\", \"actual\": [0, 1, 2, 5, 6, 7, 9], \"expected\": [0, 1, 2, 5, 6, 7, 9], \"passed\": true}, {\"check\": \"oracle 6\", \"actual\": [9, 10, 12, 13, 14, 16, 17, 19], \"expected\": [9, 10, 0, 1, 2, 4, 5, 7], \"passed\": false}, {\"check\": \"oracle 7\", \"actual\": [9, 12, 16], \"expected\": [9, 0, 4], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.375,"exit_code":0,"observations":[{"actual":[0,4,7],"check":"oracle 0","expected":[0,4,7],"passed":true},{"actual":[0,4,7],"check":"oracle 1","expected":[0,4,7],"passed":true},{"actual":[11,0,4],"check":"oracle 2","expected":[11,0,4],"passed":true},{"actual":[0,1,5,6,8],"check":"oracle 3","expected":[0,1,5,6,8],"passed":true},{"actual":[0,2,3,6,7,9],"check":"oracle 4","expected":[0,2,3,6,7,9],"passed":true},{"actual":[0,1,2,5,6,7,9],"check":"oracle 5","expected":[0,1,2,5,6,7,9],"passed":true},{"actual":[9,10,0,1,2,4,5,7],"check":"oracle 6","expected":[9,10,0,1,2,4,5,7],"passed":true},{"actual":[9,0,4],"check":"oracle 7","expected":[9,0,4],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oracle 0\", \"actual\": [0, 4, 7], \"expected\": [0, 4, 7], \"passed\": true}, {\"check\": \"oracle 1\", \"actual\": [0, 4, 7], \"expected\": [0, 4, 7], \"passed\": true}, {\"check\": \"oracle 2\", \"actual\": [11, 0, 4], \"expected\": [11, 0, 4], \"passed\": true}, {\"check\": \"oracle 3\", \"actual\": [0, 1, 5, 6, 8], \"expected\": [0, 1, 5, 6, 8], \"passed\": true}, {\"check\": \"oracle 4\", \"actual\": [0, 2, 3, 6, 7, 9], \"expected\": [0, 2, 3, 6, 7, 9], \"passed\": true}, {\"check\": \"oracle 5\", \"actual\": [0, 1, 2, 5, 6, 7, 9], \"expected\": [0, 1, 2, 5, 6, 7, 9], \"passed\": true}, {\"check\": \"oracle 6\", \"actual\": [9, 10, 0, 1, 2, 4, 5, 7], \"expected\": [9, 10, 0, 1, 2, 4, 5, 7], \"passed\": true}, {\"check\": \"oracle 7\", \"actual\": [9, 0, 4], \"expected\": [9, 0, 4], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}