{"abstract":"The exact colex combination rank result violates the stated contract at colex origin offset.","category":"Numerics","checks":8,"contract":"Input strictly increasing selected nonnegative integers; zero-based colex rank=sum choose(a_i,i+1).","evaluation_group":"s3-numerics-colex-combination-rank","failed_approach":"The partial repair max(0,rank-1) still violates the colex origin offset invariant.","family":"s3-numerics-colex-combination-rank-colex-origin-offset","id":"FA-15161","implementations":{"attempt":{"sha256":"477c9303d80b72f961e7d46e0896aa6be41525e53ec9b5a9f7b157f141f770fc","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport itertools\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    a=x;rank=0\n    for i in range(len(a)):\n     top=a[i];bottom=i+1\n     term=math.comb(top,bottom) if 0<=bottom<=top else 0\n     rank=rank+term\n    return max(0,rank-1)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([0], 0), ([1], 1), ([4, 5, 6, 7, 8], 125), ([0], 0), ([0, 1], 0), ([0], 0), ([1], 1), ([2], 2)], [([0], 0), ([0, 2], 1), ([0], 0), ([4, 5, 6, 7, 8], 125), ([0, 3], 3), ([1, 2], 2), ([1, 3], 4), ([2, 3], 5)], [([1], 1), ([2], 2), ([0], 0), ([4, 5, 6, 7, 8], 125), ([0, 4], 6), ([1, 2], 2), ([1, 3], 4), ([1, 4], 7)], [([0, 1], 0), ([0, 3], 3), ([0], 0), ([4, 5, 6, 7, 8], 125), ([0, 1, 2, 3], 0), ([0, 1, 2, 4], 1), ([0, 1, 3, 4], 2), ([0, 2, 3, 4], 3)], [([0], 0), ([2, 3], 5), ([0], 0), ([4, 5, 6, 7, 8], 125), ([1, 2], 2), ([1, 3], 4), ([1, 4], 7), ([1, 5], 11)]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"explicit 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":"ec2b9a2cc04a2337b175b51e4db075e98d41f2df549ccccbd125730ffaa2a548","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport itertools\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    a=x;rank=0\n    for i in range(len(a)):\n     top=a[i];bottom=i+1\n     term=math.comb(top,bottom) if 0<=bottom<=top else 0\n     rank=rank+term\n    return rank+1\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([0], 0), ([1], 1), ([4, 5, 6, 7, 8], 125), ([0], 0), ([0, 1], 0), ([0], 0), ([1], 1), ([2], 2)], [([0], 0), ([0, 2], 1), ([0], 0), ([4, 5, 6, 7, 8], 125), ([0, 3], 3), ([1, 2], 2), ([1, 3], 4), ([2, 3], 5)], [([1], 1), ([2], 2), ([0], 0), ([4, 5, 6, 7, 8], 125), ([0, 4], 6), ([1, 2], 2), ([1, 3], 4), ([1, 4], 7)], [([0, 1], 0), ([0, 3], 3), ([0], 0), ([4, 5, 6, 7, 8], 125), ([0, 1, 2, 3], 0), ([0, 1, 2, 4], 1), ([0, 1, 3, 4], 2), ([0, 2, 3, 4], 3)], [([0], 0), ([2, 3], 5), ([0], 0), ([4, 5, 6, 7, 8], 125), ([1, 2], 2), ([1, 3], 4), ([1, 4], 7), ([1, 5], 11)]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"explicit 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":"0c2ae4845e6dbf9e82042ac37b0cd915c3593647bc697c4d98d15c3417095503","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport itertools\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    a=x;rank=0\n    for i in range(len(a)):\n     top=a[i];bottom=i+1\n     term=math.comb(top,bottom) if 0<=bottom<=top else 0\n     rank=rank+term\n    return rank\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([0], 0), ([1], 1), ([4, 5, 6, 7, 8], 125), ([0], 0), ([0, 1], 0), ([0], 0), ([1], 1), ([2], 2)], [([0], 0), ([0, 2], 1), ([0], 0), ([4, 5, 6, 7, 8], 125), ([0, 3], 3), ([1, 2], 2), ([1, 3], 4), ([2, 3], 5)], [([1], 1), ([2], 2), ([0], 0), ([4, 5, 6, 7, 8], 125), ([0, 4], 6), ([1, 2], 2), ([1, 3], 4), ([1, 4], 7)], [([0, 1], 0), ([0, 3], 3), ([0], 0), ([4, 5, 6, 7, 8], 125), ([0, 1, 2, 3], 0), ([0, 1, 2, 4], 1), ([0, 1, 3, 4], 2), ([0, 2, 3, 4], 3)], [([0], 0), ([2, 3], 5), ([0], 0), ([4, 5, 6, 7, 8], 125), ([1, 2], 2), ([1, 3], 4), ([1, 4], 7), ([1, 5], 11)]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"explicit 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. Inputs are restricted to the explicit contract; this is not a production algebra library. 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":"s3-numerics-colex-combination-rank-colex-origin-offset","generated_at":"2026-09-29T14:39:23.972521+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Exact discrete arithmetic with observable algorithmic state; no floating point approximation is used.","repair":"Use rank at the colex origin offset step.","root_cause":"The colex origin offset step uses rank+1 instead of rank.","sha256":"5cbe5cb89f2359d24d35c2a96b57b2fd1989e5c52b0037d9dc4f04a498e1c596","title":"Colex combination rank: colex origin offset · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":50.089,"exit_code":1,"observations":[{"actual":0,"check":"explicit oracle 0","expected":0,"passed":true},{"actual":0,"check":"explicit oracle 1","expected":1,"passed":false},{"actual":124,"check":"explicit oracle 2","expected":125,"passed":false},{"actual":0,"check":"explicit oracle 3","expected":0,"passed":true},{"actual":0,"check":"explicit oracle 4","expected":0,"passed":true},{"actual":0,"check":"explicit oracle 5","expected":0,"passed":true},{"actual":0,"check":"explicit oracle 6","expected":1,"passed":false},{"actual":1,"check":"explicit oracle 7","expected":2,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"explicit oracle 1\", \"actual\": 0, \"expected\": 1, \"passed\": false}, {\"check\": \"explicit oracle 2\", \"actual\": 124, \"expected\": 125, \"passed\": false}, {\"check\": \"explicit oracle 3\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"explicit oracle 4\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"explicit oracle 5\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"explicit oracle 6\", \"actual\": 0, \"expected\": 1, \"passed\": false}, {\"check\": \"explicit oracle 7\", \"actual\": 1, \"expected\": 2, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":46.238,"exit_code":1,"observations":[{"actual":1,"check":"explicit oracle 0","expected":0,"passed":false},{"actual":2,"check":"explicit oracle 1","expected":1,"passed":false},{"actual":126,"check":"explicit oracle 2","expected":125,"passed":false},{"actual":1,"check":"explicit oracle 3","expected":0,"passed":false},{"actual":1,"check":"explicit oracle 4","expected":0,"passed":false},{"actual":1,"check":"explicit oracle 5","expected":0,"passed":false},{"actual":2,"check":"explicit oracle 6","expected":1,"passed":false},{"actual":3,"check":"explicit oracle 7","expected":2,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": 1, \"expected\": 0, \"passed\": false}, {\"check\": \"explicit oracle 1\", \"actual\": 2, \"expected\": 1, \"passed\": false}, {\"check\": \"explicit oracle 2\", \"actual\": 126, \"expected\": 125, \"passed\": false}, {\"check\": \"explicit oracle 3\", \"actual\": 1, \"expected\": 0, \"passed\": false}, {\"check\": \"explicit oracle 4\", \"actual\": 1, \"expected\": 0, \"passed\": false}, {\"check\": \"explicit oracle 5\", \"actual\": 1, \"expected\": 0, \"passed\": false}, {\"check\": \"explicit oracle 6\", \"actual\": 2, \"expected\": 1, \"passed\": false}, {\"check\": \"explicit oracle 7\", \"actual\": 3, \"expected\": 2, \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":45.183,"exit_code":0,"observations":[{"actual":0,"check":"explicit oracle 0","expected":0,"passed":true},{"actual":1,"check":"explicit oracle 1","expected":1,"passed":true},{"actual":125,"check":"explicit oracle 2","expected":125,"passed":true},{"actual":0,"check":"explicit oracle 3","expected":0,"passed":true},{"actual":0,"check":"explicit oracle 4","expected":0,"passed":true},{"actual":0,"check":"explicit oracle 5","expected":0,"passed":true},{"actual":1,"check":"explicit oracle 6","expected":1,"passed":true},{"actual":2,"check":"explicit oracle 7","expected":2,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"explicit oracle 1\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"explicit oracle 2\", \"actual\": 125, \"expected\": 125, \"passed\": true}, {\"check\": \"explicit oracle 3\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"explicit oracle 4\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"explicit oracle 5\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"explicit oracle 6\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"explicit oracle 7\", \"actual\": 2, \"expected\": 2, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}