{"abstract":"The exact forward difference newton basis result violates the stated contract at adjacent pair span.","category":"Numerics","checks":8,"contract":"Input nonempty integer sequence f(0)..f(n); return binomial-basis coefficients Delta^k f(0).","evaluation_group":"s3-numerics-forward-difference-newton-basis","failed_approach":"The partial repair range(1,len(row)-1) still violates the adjacent pair span invariant.","family":"s3-numerics-forward-difference-newton-basis-adjacent-pair-span","id":"FA-14731","implementations":{"attempt":{"sha256":"ad8129e3d73414370149e7ea7bb17178c90340e06180fc6651e0d14acab3568f","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    row=x[:];out=[]\n    for _ in range(len(x)):\n     if not row:break\n     out.append(row[0])\n     row=[row[i+1]-row[i] for i in range(1,len(row)-1)]\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([-1, -1, -1], [-1, 0, 0]), ([-1, -1], [-1, 0]), ([-1], [-1]), ([1, 1, 1, 1, 1], [1, 0, 0, 0, 0]), ([0], [0]), ([1], [1]), ([-1, 0], [-1, 1]), ([-1, 1], [-1, 2])], [([-1, -1, 0], [-1, 0, 1]), ([0, -1], [0, -1]), ([-1], [-1]), ([1, 1, 1, 1, 1], [1, 0, 0, 0, 0]), ([-1, 0, 1], [-1, 1, 0]), ([-1, 1, -1], [-1, 2, -4]), ([-1, 1, 0], [-1, 2, -3]), ([-1, 1, 1], [-1, 2, -2])], [([-1, -1, 1], [-1, 0, 2]), ([1, -1], [1, -2]), ([-1], [-1]), ([1, 1, 1, 1, 1], [1, 0, 0, 0, 0]), ([1, 0, 0], [1, -1, 1]), ([1, 0, 1], [1, -1, 2]), ([1, 1, -1], [1, 0, -2]), ([1, 1, 0], [1, 0, -1])], [([-1, 0, -1], [-1, 1, -2]), ([-1, -1, -1], [-1, 0, 0]), ([-1], [-1]), ([1, 1, 1, 1, 1], [1, 0, 0, 0, 0]), ([-1, 0, 0, -1], [-1, 1, -1, 0]), ([-1, 0, 0, 0], [-1, 1, -1, 1]), ([-1, 0, 0, 1], [-1, 1, -1, 2]), ([-1, 0, 1, -1], [-1, 1, 0, -3])], [([-1, 0, 0], [-1, 1, -1]), ([-1, 0, -1], [-1, 1, -2]), ([-1], [-1]), ([1, 1, 1, 1, 1], [1, 0, 0, 0, 0]), ([0, -1, -1, 1], [0, -1, 1, 1]), ([0, -1, 0, -1], [0, -1, 2, -4]), ([0, -1, 0, 0], [0, -1, 2, -3]), ([0, -1, 0, 1], [0, -1, 2, -2])]]\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":"110f5e9fa52e4fb5192bd10cf4d8507b267342bb41c131eabace374a755812ef","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    row=x[:];out=[]\n    for _ in range(len(x)):\n     if not row:break\n     out.append(row[0])\n     row=[row[i+1]-row[i] for i in range(0,len(row)-1,2)]\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([-1, -1, -1], [-1, 0, 0]), ([-1, -1], [-1, 0]), ([-1], [-1]), ([1, 1, 1, 1, 1], [1, 0, 0, 0, 0]), ([0], [0]), ([1], [1]), ([-1, 0], [-1, 1]), ([-1, 1], [-1, 2])], [([-1, -1, 0], [-1, 0, 1]), ([0, -1], [0, -1]), ([-1], [-1]), ([1, 1, 1, 1, 1], [1, 0, 0, 0, 0]), ([-1, 0, 1], [-1, 1, 0]), ([-1, 1, -1], [-1, 2, -4]), ([-1, 1, 0], [-1, 2, -3]), ([-1, 1, 1], [-1, 2, -2])], [([-1, -1, 1], [-1, 0, 2]), ([1, -1], [1, -2]), ([-1], [-1]), ([1, 1, 1, 1, 1], [1, 0, 0, 0, 0]), ([1, 0, 0], [1, -1, 1]), ([1, 0, 1], [1, -1, 2]), ([1, 1, -1], [1, 0, -2]), ([1, 1, 0], [1, 0, -1])], [([-1, 0, -1], [-1, 1, -2]), ([-1, -1, -1], [-1, 0, 0]), ([-1], [-1]), ([1, 1, 1, 1, 1], [1, 0, 0, 0, 0]), ([-1, 0, 0, -1], [-1, 1, -1, 0]), ([-1, 0, 0, 0], [-1, 1, -1, 1]), ([-1, 0, 0, 1], [-1, 1, -1, 2]), ([-1, 0, 1, -1], [-1, 1, 0, -3])], [([-1, 0, 0], [-1, 1, -1]), ([-1, 0, -1], [-1, 1, -2]), ([-1], [-1]), ([1, 1, 1, 1, 1], [1, 0, 0, 0, 0]), ([0, -1, -1, 1], [0, -1, 1, 1]), ([0, -1, 0, -1], [0, -1, 2, -4]), ([0, -1, 0, 0], [0, -1, 2, -3]), ([0, -1, 0, 1], [0, -1, 2, -2])]]\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":"ad0e77ffd62c606ed54fcfa9c3a00f70f77fcf70164af889ca2482db1eb8f000","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    row=x[:];out=[]\n    for _ in range(len(x)):\n     if not row:break\n     out.append(row[0])\n     row=[row[i+1]-row[i] for i in range(len(row)-1)]\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([-1, -1, -1], [-1, 0, 0]), ([-1, -1], [-1, 0]), ([-1], [-1]), ([1, 1, 1, 1, 1], [1, 0, 0, 0, 0]), ([0], [0]), ([1], [1]), ([-1, 0], [-1, 1]), ([-1, 1], [-1, 2])], [([-1, -1, 0], [-1, 0, 1]), ([0, -1], [0, -1]), ([-1], [-1]), ([1, 1, 1, 1, 1], [1, 0, 0, 0, 0]), ([-1, 0, 1], [-1, 1, 0]), ([-1, 1, -1], [-1, 2, -4]), ([-1, 1, 0], [-1, 2, -3]), ([-1, 1, 1], [-1, 2, -2])], [([-1, -1, 1], [-1, 0, 2]), ([1, -1], [1, -2]), ([-1], [-1]), ([1, 1, 1, 1, 1], [1, 0, 0, 0, 0]), ([1, 0, 0], [1, -1, 1]), ([1, 0, 1], [1, -1, 2]), ([1, 1, -1], [1, 0, -2]), ([1, 1, 0], [1, 0, -1])], [([-1, 0, -1], [-1, 1, -2]), ([-1, -1, -1], [-1, 0, 0]), ([-1], [-1]), ([1, 1, 1, 1, 1], [1, 0, 0, 0, 0]), ([-1, 0, 0, -1], [-1, 1, -1, 0]), ([-1, 0, 0, 0], [-1, 1, -1, 1]), ([-1, 0, 0, 1], [-1, 1, -1, 2]), ([-1, 0, 1, -1], [-1, 1, 0, -3])], [([-1, 0, 0], [-1, 1, -1]), ([-1, 0, -1], [-1, 1, -2]), ([-1], [-1]), ([1, 1, 1, 1, 1], [1, 0, 0, 0, 0]), ([0, -1, -1, 1], [0, -1, 1, 1]), ([0, -1, 0, -1], [0, -1, 2, -4]), ([0, -1, 0, 0], [0, -1, 2, -3]), ([0, -1, 0, 1], [0, -1, 2, -2])]]\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-forward-difference-newton-basis-adjacent-pair-span","generated_at":"2026-09-29T14:39:19.827141+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 range(len(row)-1) at the adjacent pair span step.","root_cause":"The adjacent pair span step uses range(0,len(row)-1,2) instead of range(len(row)-1).","sha256":"8f3560597083a352c01a54306cdf056fefb706a6c3fdea791f47fb7e8b4a9f53","title":"Forward difference newton basis: adjacent pair span · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":41.485,"exit_code":1,"observations":[{"actual":[-1,0],"check":"explicit oracle 0","expected":[-1,0,0],"passed":false},{"actual":[-1],"check":"explicit oracle 1","expected":[-1,0],"passed":false},{"actual":[-1],"check":"explicit oracle 2","expected":[-1],"passed":true},{"actual":[1,0,0],"check":"explicit oracle 3","expected":[1,0,0,0,0],"passed":false},{"actual":[0],"check":"explicit oracle 4","expected":[0],"passed":true},{"actual":[1],"check":"explicit oracle 5","expected":[1],"passed":true},{"actual":[-1],"check":"explicit oracle 6","expected":[-1,1],"passed":false},{"actual":[-1],"check":"explicit oracle 7","expected":[-1,2],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": [-1, 0], \"expected\": [-1, 0, 0], \"passed\": false}, {\"check\": \"explicit oracle 1\", \"actual\": [-1], \"expected\": [-1, 0], \"passed\": false}, {\"check\": \"explicit oracle 2\", \"actual\": [-1], \"expected\": [-1], \"passed\": true}, {\"check\": \"explicit oracle 3\", \"actual\": [1, 0, 0], \"expected\": [1, 0, 0, 0, 0], \"passed\": false}, {\"check\": \"explicit oracle 4\", \"actual\": [0], \"expected\": [0], \"passed\": true}, {\"check\": \"explicit oracle 5\", \"actual\": [1], \"expected\": [1], \"passed\": true}, {\"check\": \"explicit oracle 6\", \"actual\": [-1], \"expected\": [-1, 1], \"passed\": false}, {\"check\": \"explicit oracle 7\", \"actual\": [-1], \"expected\": [-1, 2], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":44.637,"exit_code":1,"observations":[{"actual":[-1,0],"check":"explicit oracle 0","expected":[-1,0,0],"passed":false},{"actual":[-1,0],"check":"explicit oracle 1","expected":[-1,0],"passed":true},{"actual":[-1],"check":"explicit oracle 2","expected":[-1],"passed":true},{"actual":[1,0,0],"check":"explicit oracle 3","expected":[1,0,0,0,0],"passed":false},{"actual":[0],"check":"explicit oracle 4","expected":[0],"passed":true},{"actual":[1],"check":"explicit oracle 5","expected":[1],"passed":true},{"actual":[-1,1],"check":"explicit oracle 6","expected":[-1,1],"passed":true},{"actual":[-1,2],"check":"explicit oracle 7","expected":[-1,2],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": [-1, 0], \"expected\": [-1, 0, 0], \"passed\": false}, {\"check\": \"explicit oracle 1\", \"actual\": [-1, 0], \"expected\": [-1, 0], \"passed\": true}, {\"check\": \"explicit oracle 2\", \"actual\": [-1], \"expected\": [-1], \"passed\": true}, {\"check\": \"explicit oracle 3\", \"actual\": [1, 0, 0], \"expected\": [1, 0, 0, 0, 0], \"passed\": false}, {\"check\": \"explicit oracle 4\", \"actual\": [0], \"expected\": [0], \"passed\": true}, {\"check\": \"explicit oracle 5\", \"actual\": [1], \"expected\": [1], \"passed\": true}, {\"check\": \"explicit oracle 6\", \"actual\": [-1, 1], \"expected\": [-1, 1], \"passed\": true}, {\"check\": \"explicit oracle 7\", \"actual\": [-1, 2], \"expected\": [-1, 2], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":40.936,"exit_code":0,"observations":[{"actual":[-1,0,0],"check":"explicit oracle 0","expected":[-1,0,0],"passed":true},{"actual":[-1,0],"check":"explicit oracle 1","expected":[-1,0],"passed":true},{"actual":[-1],"check":"explicit oracle 2","expected":[-1],"passed":true},{"actual":[1,0,0,0,0],"check":"explicit oracle 3","expected":[1,0,0,0,0],"passed":true},{"actual":[0],"check":"explicit oracle 4","expected":[0],"passed":true},{"actual":[1],"check":"explicit oracle 5","expected":[1],"passed":true},{"actual":[-1,1],"check":"explicit oracle 6","expected":[-1,1],"passed":true},{"actual":[-1,2],"check":"explicit oracle 7","expected":[-1,2],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": [-1, 0, 0], \"expected\": [-1, 0, 0], \"passed\": true}, {\"check\": \"explicit oracle 1\", \"actual\": [-1, 0], \"expected\": [-1, 0], \"passed\": true}, {\"check\": \"explicit oracle 2\", \"actual\": [-1], \"expected\": [-1], \"passed\": true}, {\"check\": \"explicit oracle 3\", \"actual\": [1, 0, 0, 0, 0], \"expected\": [1, 0, 0, 0, 0], \"passed\": true}, {\"check\": \"explicit oracle 4\", \"actual\": [0], \"expected\": [0], \"passed\": true}, {\"check\": \"explicit oracle 5\", \"actual\": [1], \"expected\": [1], \"passed\": true}, {\"check\": \"explicit oracle 6\", \"actual\": [-1, 1], \"expected\": [-1, 1], \"passed\": true}, {\"check\": \"explicit oracle 7\", \"actual\": [-1, 2], \"expected\": [-1, 2], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}