{"abstract":"The exact binary field inversion result violates the stated contract at polynomial Bezout update.","category":"Numerics","checks":8,"contract":"Input [a,irreducible bitmask], a nonzero with degree below modulus; return multiplicative inverse in binary field. Bounds: modulus degree is between two and six.","contract_signature":"x","evaluation_group":"s3-numerics-binary-field-inversion","failed_approach":"The partial repair g1+(g2<<j) still violates the polynomial Bezout update invariant.","family":"s3-numerics-binary-field-inversion-polynomial-Bezout-update","id":"FA-15656","implementations":{"attempt":{"sha256":"d1c3f380a7c0c39cb5094eb65224d630a593b53942542752eb0c735c34665b53","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,p=x;u=a;v=p;g1=1;g2=0\n    for _ in range(60):\n     if u==1:break\n     if u==0:return None\n     j=u.bit_length()-v.bit_length()\n     if j<0:\n      u,v=v,u;g1,g2=g2,g1;j=-j\n     u=u^(v<<j)\n     g1=g1+(g2<<j)\n    for _ in range(60):\n     if g1.bit_length()<p.bit_length():break\n     g1=g1^(p<<(g1.bit_length()-p.bit_length()))\n    return g1\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([2, 7], 3), ([7, 11], 4), ([1, 7], 1), ([63, 67], 32), ([3, 7], 2), ([1, 11], 1), ([2, 11], 5), ([3, 11], 6)], [([3, 7], 2), ([13, 19], 4), ([1, 7], 1), ([63, 67], 32), ([8, 19], 15), ([9, 19], 2), ([10, 19], 12), ([11, 19], 5)], [([2, 11], 5), ([10, 25], 11), ([1, 7], 1), ([63, 67], 32), ([11, 25], 10), ([12, 25], 2), ([13, 25], 9), ([14, 25], 7)], [([3, 11], 6), ([8, 31], 4), ([1, 7], 1), ([63, 67], 32), ([12, 31], 13), ([13, 31], 12), ([14, 31], 11), ([15, 31], 2)], [([4, 11], 7), ([13, 31], 12), ([1, 7], 1), ([63, 67], 32), ([14, 37], 6), ([15, 37], 13), ([16, 37], 11), ([17, 37], 24)]]\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":"9b7cd16bc3a917ff09b347ba2a2ca9270919f5465e6244087fc5ae0fee63f1bb","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,p=x;u=a;v=p;g1=1;g2=0\n    for _ in range(60):\n     if u==1:break\n     if u==0:return None\n     j=u.bit_length()-v.bit_length()\n     if j<0:\n      u,v=v,u;g1,g2=g2,g1;j=-j\n     u=u^(v<<j)\n     g1=g1^(g2>>j)\n    for _ in range(60):\n     if g1.bit_length()<p.bit_length():break\n     g1=g1^(p<<(g1.bit_length()-p.bit_length()))\n    return g1\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([2, 7], 3), ([7, 11], 4), ([1, 7], 1), ([63, 67], 32), ([3, 7], 2), ([1, 11], 1), ([2, 11], 5), ([3, 11], 6)], [([3, 7], 2), ([13, 19], 4), ([1, 7], 1), ([63, 67], 32), ([8, 19], 15), ([9, 19], 2), ([10, 19], 12), ([11, 19], 5)], [([2, 11], 5), ([10, 25], 11), ([1, 7], 1), ([63, 67], 32), ([11, 25], 10), ([12, 25], 2), ([13, 25], 9), ([14, 25], 7)], [([3, 11], 6), ([8, 31], 4), ([1, 7], 1), ([63, 67], 32), ([12, 31], 13), ([13, 31], 12), ([14, 31], 11), ([15, 31], 2)], [([4, 11], 7), ([13, 31], 12), ([1, 7], 1), ([63, 67], 32), ([14, 37], 6), ([15, 37], 13), ([16, 37], 11), ([17, 37], 24)]]\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-binary-field-inversion-polynomial-Bezout-update","generated_at":"2026-09-29T14:39:28.776713+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.","root_cause":"The polynomial Bezout update step uses g1^(g2>>j) instead of g1^(g2<<j).","sha256":"950d74fd943a61d9ca1a4ced0a325065545c7e14d966d26d6f9a3daa2585d08b","title":"Binary field inversion: polynomial Bezout update · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":42.004,"exit_code":1,"observations":[{"actual":3,"check":"explicit oracle 0","expected":3,"passed":true},{"actual":1,"check":"explicit oracle 1","expected":4,"passed":false},{"actual":1,"check":"explicit oracle 2","expected":1,"passed":true},{"actual":29,"check":"explicit oracle 3","expected":32,"passed":false},{"actual":2,"check":"explicit oracle 4","expected":2,"passed":true},{"actual":1,"check":"explicit oracle 5","expected":1,"passed":true},{"actual":5,"check":"explicit oracle 6","expected":5,"passed":true},{"actual":6,"check":"explicit oracle 7","expected":6,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": 3, \"expected\": 3, \"passed\": true}, {\"check\": \"explicit oracle 1\", \"actual\": 1, \"expected\": 4, \"passed\": false}, {\"check\": \"explicit oracle 2\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"explicit oracle 3\", \"actual\": 29, \"expected\": 32, \"passed\": false}, {\"check\": \"explicit oracle 4\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"explicit oracle 5\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"explicit oracle 6\", \"actual\": 5, \"expected\": 5, \"passed\": true}, {\"check\": \"explicit oracle 7\", \"actual\": 6, \"expected\": 6, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.942,"exit_code":1,"observations":[{"actual":1,"check":"explicit oracle 0","expected":3,"passed":false},{"actual":0,"check":"explicit oracle 1","expected":4,"passed":false},{"actual":1,"check":"explicit oracle 2","expected":1,"passed":true},{"actual":0,"check":"explicit oracle 3","expected":32,"passed":false},{"actual":0,"check":"explicit oracle 4","expected":2,"passed":false},{"actual":1,"check":"explicit oracle 5","expected":1,"passed":true},{"actual":1,"check":"explicit oracle 6","expected":5,"passed":false},{"actual":0,"check":"explicit oracle 7","expected":6,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": 1, \"expected\": 3, \"passed\": false}, {\"check\": \"explicit oracle 1\", \"actual\": 0, \"expected\": 4, \"passed\": false}, {\"check\": \"explicit oracle 2\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"explicit oracle 3\", \"actual\": 0, \"expected\": 32, \"passed\": false}, {\"check\": \"explicit oracle 4\", \"actual\": 0, \"expected\": 2, \"passed\": false}, {\"check\": \"explicit oracle 5\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"explicit oracle 6\", \"actual\": 1, \"expected\": 5, \"passed\": false}, {\"check\": \"explicit oracle 7\", \"actual\": 0, \"expected\": 6, \"passed\": false}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}