{"abstract":"The exact gf2 field multiplication result violates the stated contract at multiplier bit progression.","category":"Numerics","checks":8,"contract":"Input [a,b,irreducible polynomial bitmask], nonnegative field elements; return carryless product reduced by that monic polynomial.","evaluation_group":"s3-numerics-gf2-field-multiplication","failed_approach":"The partial repair b>>2 still violates the multiplier bit progression invariant.","family":"s3-numerics-gf2-field-multiplication-multiplier-bit-progression","id":"FA-15601","implementations":{"attempt":{"sha256":"bfc6d91376f8713b81dc3181a8ddd98ccd7eaff7042e496ca5511b6dce233280","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,b,poly=x;n=poly.bit_length()-1;out=0\n    for _ in range(n):\n     if b&1:out=out^a\n     b=b>>2\n     a<<=1\n     if a&(1<<n):a=a^poly\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([1, 2, 7], 2), ([0, 0, 7], 0), ([15, 15, 31], 8), ([0, 1, 7], 0), ([0, 2, 7], 0), ([0, 3, 7], 0), ([1, 0, 7], 0), ([1, 1, 7], 1)], [([1, 3, 7], 3), ([2, 3, 7], 1), ([0, 0, 7], 0), ([15, 15, 31], 8), ([0, 1, 11], 0), ([0, 2, 11], 0), ([0, 3, 11], 0), ([0, 4, 11], 0)], [([2, 2, 7], 3), ([1, 2, 11], 2), ([0, 0, 7], 0), ([15, 15, 31], 8), ([2, 2, 11], 4), ([2, 3, 11], 6), ([2, 4, 11], 3), ([2, 5, 11], 1)], [([2, 3, 7], 1), ([1, 5, 11], 5), ([0, 0, 7], 0), ([15, 15, 31], 8), ([4, 3, 11], 7), ([4, 4, 11], 6), ([4, 5, 11], 2), ([4, 6, 11], 5)], [([3, 2, 7], 1), ([2, 2, 11], 4), ([0, 0, 7], 0), ([15, 15, 31], 8), ([6, 4, 11], 5), ([6, 5, 11], 3), ([6, 6, 11], 2), ([6, 7, 11], 4)]]\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":"c544dcc59fe91d0c32d7aa12bdd28fdfb3ff1eb772045f58994ac6808f598da7","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,b,poly=x;n=poly.bit_length()-1;out=0\n    for _ in range(n):\n     if b&1:out=out^a\n     b=b<<1\n     a<<=1\n     if a&(1<<n):a=a^poly\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([1, 2, 7], 2), ([0, 0, 7], 0), ([15, 15, 31], 8), ([0, 1, 7], 0), ([0, 2, 7], 0), ([0, 3, 7], 0), ([1, 0, 7], 0), ([1, 1, 7], 1)], [([1, 3, 7], 3), ([2, 3, 7], 1), ([0, 0, 7], 0), ([15, 15, 31], 8), ([0, 1, 11], 0), ([0, 2, 11], 0), ([0, 3, 11], 0), ([0, 4, 11], 0)], [([2, 2, 7], 3), ([1, 2, 11], 2), ([0, 0, 7], 0), ([15, 15, 31], 8), ([2, 2, 11], 4), ([2, 3, 11], 6), ([2, 4, 11], 3), ([2, 5, 11], 1)], [([2, 3, 7], 1), ([1, 5, 11], 5), ([0, 0, 7], 0), ([15, 15, 31], 8), ([4, 3, 11], 7), ([4, 4, 11], 6), ([4, 5, 11], 2), ([4, 6, 11], 5)], [([3, 2, 7], 1), ([2, 2, 11], 4), ([0, 0, 7], 0), ([15, 15, 31], 8), ([6, 4, 11], 5), ([6, 5, 11], 3), ([6, 6, 11], 2), ([6, 7, 11], 4)]]\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":"e9ea5ef882cddedd8d416128d23ddf4ae319ce2558b94298c1bf2223b1a861bc","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,b,poly=x;n=poly.bit_length()-1;out=0\n    for _ in range(n):\n     if b&1:out=out^a\n     b=b>>1\n     a<<=1\n     if a&(1<<n):a=a^poly\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([1, 2, 7], 2), ([0, 0, 7], 0), ([15, 15, 31], 8), ([0, 1, 7], 0), ([0, 2, 7], 0), ([0, 3, 7], 0), ([1, 0, 7], 0), ([1, 1, 7], 1)], [([1, 3, 7], 3), ([2, 3, 7], 1), ([0, 0, 7], 0), ([15, 15, 31], 8), ([0, 1, 11], 0), ([0, 2, 11], 0), ([0, 3, 11], 0), ([0, 4, 11], 0)], [([2, 2, 7], 3), ([1, 2, 11], 2), ([0, 0, 7], 0), ([15, 15, 31], 8), ([2, 2, 11], 4), ([2, 3, 11], 6), ([2, 4, 11], 3), ([2, 5, 11], 1)], [([2, 3, 7], 1), ([1, 5, 11], 5), ([0, 0, 7], 0), ([15, 15, 31], 8), ([4, 3, 11], 7), ([4, 4, 11], 6), ([4, 5, 11], 2), ([4, 6, 11], 5)], [([3, 2, 7], 1), ([2, 2, 11], 4), ([0, 0, 7], 0), ([15, 15, 31], 8), ([6, 4, 11], 5), ([6, 5, 11], 3), ([6, 6, 11], 2), ([6, 7, 11], 4)]]\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-gf2-field-multiplication-multiplier-bit-progression","generated_at":"2026-09-29T14:39:28.370455+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 b>>1 at the multiplier bit progression step.","root_cause":"The multiplier bit progression step uses b<<1 instead of b>>1.","sha256":"eb2031ccfe68882ab6c0cab33a2bbb7fb58f5a4bf7a47a54ec60d90ec4da9594","title":"Gf2 field multiplication: multiplier bit progression · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":45.08,"exit_code":1,"observations":[{"actual":0,"check":"explicit oracle 0","expected":2,"passed":false},{"actual":0,"check":"explicit oracle 1","expected":0,"passed":true},{"actual":14,"check":"explicit oracle 2","expected":8,"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":0,"passed":true},{"actual":1,"check":"explicit oracle 7","expected":1,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": 0, \"expected\": 2, \"passed\": false}, {\"check\": \"explicit oracle 1\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"explicit oracle 2\", \"actual\": 14, \"expected\": 8, \"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\": 0, \"passed\": true}, {\"check\": \"explicit oracle 7\", \"actual\": 1, \"expected\": 1, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.82,"exit_code":1,"observations":[{"actual":0,"check":"explicit oracle 0","expected":2,"passed":false},{"actual":0,"check":"explicit oracle 1","expected":0,"passed":true},{"actual":15,"check":"explicit oracle 2","expected":8,"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":0,"passed":true},{"actual":1,"check":"explicit oracle 7","expected":1,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": 0, \"expected\": 2, \"passed\": false}, {\"check\": \"explicit oracle 1\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"explicit oracle 2\", \"actual\": 15, \"expected\": 8, \"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\": 0, \"passed\": true}, {\"check\": \"explicit oracle 7\", \"actual\": 1, \"expected\": 1, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.279,"exit_code":0,"observations":[{"actual":2,"check":"explicit oracle 0","expected":2,"passed":true},{"actual":0,"check":"explicit oracle 1","expected":0,"passed":true},{"actual":8,"check":"explicit oracle 2","expected":8,"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":0,"check":"explicit oracle 6","expected":0,"passed":true},{"actual":1,"check":"explicit oracle 7","expected":1,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"explicit oracle 1\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"explicit oracle 2\", \"actual\": 8, \"expected\": 8, \"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\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"explicit oracle 7\", \"actual\": 1, \"expected\": 1, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}