FA-14641 / Numerics / Open access
Polynomial taylor shift: source degree iteration · case 01
The exact polynomial taylor shift result violates the stated contract at source degree iteration.
ROOT CAUSE
The source degree iteration step uses range(n-1) instead of range(n).
THE FAILURE
The source degree iteration step uses range(n-1) instead of range(n).
Unsuccessful approach: The partial repair range(1,n) still violates the source degree iteration invariant.
Case contract
Input [A,h] ascending integer polynomial, integer h; return coefficients of A(t+h), preserving array length.
Why this case matters
Exact discrete arithmetic with observable algorithmic state; no floating point approximation is used.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import math
import itertools
from fractions import Fraction
N = 1
observations = []
def solve(x):
A,h=x
n=len(A);r=[0]*n
for i in range(n-1):
for j in range(i+1):
r[j]+=(A[i]) * (math.comb(i,j) if j<=i else 0) * (h**(i-j) if j<=i else 0)
return r
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[([[-1, -1, -1, -1], -2], [5, -9, 5, -1]), ([[2, 2, 2, 2], 2], [30, 34, 14, 2]), ([[-1, -1, -1, -1], -1], [0, -2, 2, -1]), ([[-1, -1, -1, -1], 0], [-1, -1, -1, -1]), ([[-1, -1, -1, -1], 1], [-4, -6, -4, -1]), ([[-1, -1, -1, -1], 2], [-15, -17, -7, -1]), ([[-1, -1, -1, 0], -2], [-3, 3, -1, 0]), ([[-1, -1, -1, 0], -1], [-1, 1, -1, 0])], [([[-1, -1, -1, -1], -1], [0, -2, 2, -1]), ([[-1, -1, -1, -1], 1], [-4, -6, -4, -1]), ([[-1, -1, -1, -1], -2], [5, -9, 5, -1]), ([[2, 2, 2, 2], 2], [30, 34, 14, 2]), ([[-1, -1, -1, 2], 0], [-1, -1, -1, 2]), ([[-1, -1, -1, 2], 1], [-1, 3, 5, 2]), ([[-1, -1, -1, 2], 2], [9, 19, 11, 2]), ([[-1, -1, 0, -1], -2], [9, -13, 6, -1])], [([[-1, -1, -1, -1], 0], [-1, -1, -1, -1]), ([[-1, -1, -1, 0], -1], [-1, 1, -1, 0]), ([[-1, -1, -1, -1], -2], [5, -9, 5, -1]), ([[2, 2, 2, 2], 2], [30, 34, 14, 2]), ([[-1, -1, 0, 1], 2], [5, 11, 6, 1]), ([[-1, -1, 0, 2], -2], [-15, 23, -12, 2]), ([[-1, -1, 0, 2], -1], [-2, 5, -6, 2]), ([[-1, -1, 0, 2], 0], [-1, -1, 0, 2])], [([[-1, -1, -1, -1], 1], [-4, -6, -4, -1]), ([[-1, -1, -1, 0], 2], [-7, -5, -1, 0]), ([[-1, -1, -1, -1], -2], [5, -9, 5, -1]), ([[2, 2, 2, 2], 2], [30, 34, 14, 2]), ([[-1, -1, 1, 1], -1], [0, 0, -2, 1]), ([[-1, -1, 1, 1], 0], [-1, -1, 1, 1]), ([[-1, -1, 1, 1], 1], [0, 4, 4, 1]), ([[-1, -1, 1, 1], 2], [9, 15, 7, 1])], [([[-1, -1, -1, -1], 2], [-15, -17, -7, -1]), ([[-1, -1, -1, 1], 0], [-1, -1, -1, 1]), ([[-1, -1, -1, -1], -2], [5, -9, 5, -1]), ([[2, 2, 2, 2], 2], [30, 34, 14, 2]), ([[-1, -1, 2, 0], 1], [0, 3, 2, 0]), ([[-1, -1, 2, 0], 2], [5, 7, 2, 0]), ([[-1, -1, 2, 1], -2], [1, 3, -4, 1]), ([[-1, -1, 2, 1], -1], [1, -2, -1, 1])]]
for i, (args, expected) in enumerate(fixtures[N-1]):
check("explicit oracle %d" % i, solve(args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| explicit oracle 0 | [-3, 3, -1, 0] | [5, -9, 5, -1] | Failed |
| explicit oracle 1 | [14, 10, 2, 0] | [30, 34, 14, 2] | Failed |
| explicit oracle 2 | [-1, 1, -1, 0] | [0, -2, 2, -1] | Failed |
| explicit oracle 3 | [-1, -1, -1, 0] | [-1, -1, -1, -1] | Failed |
| explicit oracle 4 | [-3, -3, -1, 0] | [-4, -6, -4, -1] | Failed |
| explicit oracle 5 | [-7, -5, -1, 0] | [-15, -17, -7, -1] | Failed |
| explicit oracle 6 | [-3, 3, -1, 0] | [-3, 3, -1, 0] | Passed |
| explicit oracle 7 | [-1, 1, -1, 0] | [-1, 1, -1, 0] | Passed |
SHA-256 / b0acb129207213ef20a25acc8aec57b48d0fc3217cf40c52da636f0b34cb5789
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import math
import itertools
from fractions import Fraction
N = 1
observations = []
def solve(x):
A,h=x
n=len(A);r=[0]*n
for i in range(1,n):
for j in range(i+1):
r[j]+=(A[i]) * (math.comb(i,j) if j<=i else 0) * (h**(i-j) if j<=i else 0)
return r
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[([[-1, -1, -1, -1], -2], [5, -9, 5, -1]), ([[2, 2, 2, 2], 2], [30, 34, 14, 2]), ([[-1, -1, -1, -1], -1], [0, -2, 2, -1]), ([[-1, -1, -1, -1], 0], [-1, -1, -1, -1]), ([[-1, -1, -1, -1], 1], [-4, -6, -4, -1]), ([[-1, -1, -1, -1], 2], [-15, -17, -7, -1]), ([[-1, -1, -1, 0], -2], [-3, 3, -1, 0]), ([[-1, -1, -1, 0], -1], [-1, 1, -1, 0])], [([[-1, -1, -1, -1], -1], [0, -2, 2, -1]), ([[-1, -1, -1, -1], 1], [-4, -6, -4, -1]), ([[-1, -1, -1, -1], -2], [5, -9, 5, -1]), ([[2, 2, 2, 2], 2], [30, 34, 14, 2]), ([[-1, -1, -1, 2], 0], [-1, -1, -1, 2]), ([[-1, -1, -1, 2], 1], [-1, 3, 5, 2]), ([[-1, -1, -1, 2], 2], [9, 19, 11, 2]), ([[-1, -1, 0, -1], -2], [9, -13, 6, -1])], [([[-1, -1, -1, -1], 0], [-1, -1, -1, -1]), ([[-1, -1, -1, 0], -1], [-1, 1, -1, 0]), ([[-1, -1, -1, -1], -2], [5, -9, 5, -1]), ([[2, 2, 2, 2], 2], [30, 34, 14, 2]), ([[-1, -1, 0, 1], 2], [5, 11, 6, 1]), ([[-1, -1, 0, 2], -2], [-15, 23, -12, 2]), ([[-1, -1, 0, 2], -1], [-2, 5, -6, 2]), ([[-1, -1, 0, 2], 0], [-1, -1, 0, 2])], [([[-1, -1, -1, -1], 1], [-4, -6, -4, -1]), ([[-1, -1, -1, 0], 2], [-7, -5, -1, 0]), ([[-1, -1, -1, -1], -2], [5, -9, 5, -1]), ([[2, 2, 2, 2], 2], [30, 34, 14, 2]), ([[-1, -1, 1, 1], -1], [0, 0, -2, 1]), ([[-1, -1, 1, 1], 0], [-1, -1, 1, 1]), ([[-1, -1, 1, 1], 1], [0, 4, 4, 1]), ([[-1, -1, 1, 1], 2], [9, 15, 7, 1])], [([[-1, -1, -1, -1], 2], [-15, -17, -7, -1]), ([[-1, -1, -1, 1], 0], [-1, -1, -1, 1]), ([[-1, -1, -1, -1], -2], [5, -9, 5, -1]), ([[2, 2, 2, 2], 2], [30, 34, 14, 2]), ([[-1, -1, 2, 0], 1], [0, 3, 2, 0]), ([[-1, -1, 2, 0], 2], [5, 7, 2, 0]), ([[-1, -1, 2, 1], -2], [1, 3, -4, 1]), ([[-1, -1, 2, 1], -1], [1, -2, -1, 1])]]
for i, (args, expected) in enumerate(fixtures[N-1]):
check("explicit oracle %d" % i, solve(args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| explicit oracle 0 | [6, -9, 5, -1] | [5, -9, 5, -1] | Failed |
| explicit oracle 1 | [28, 34, 14, 2] | [30, 34, 14, 2] | Failed |
| explicit oracle 2 | [1, -2, 2, -1] | [0, -2, 2, -1] | Failed |
| explicit oracle 3 | [0, -1, -1, -1] | [-1, -1, -1, -1] | Failed |
| explicit oracle 4 | [-3, -6, -4, -1] | [-4, -6, -4, -1] | Failed |
| explicit oracle 5 | [-14, -17, -7, -1] | [-15, -17, -7, -1] | Failed |
| explicit oracle 6 | [-2, 3, -1, 0] | [-3, 3, -1, 0] | Failed |
| explicit oracle 7 | [0, 1, -1, 0] | [-1, 1, -1, 0] | Failed |
SHA-256 / 67dbc92e19b62d00e95fb243f104ec660b879ebd282a219cf9d79ee7f673f059
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 8 recorded checks per implementation. The open-access tier publishes the failure and the unsuccessful fix; the repaired source that passes every check, and the observations that prove it, are available to members.
Every case sharing this mechanism uses the same contract and the same repair, so this one record is held back for all of them.
Member access is invitation-based. Sign in with your invited account to inspect the repair.
Sign in to the archive ↗Verification & scope
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.
Observations recorded using Python 3.12.14 at 2026-09-29T14:39:19.061602+00:00.
Case digest / f016eae2d758da428586901928607e7477669d87f6862e3f297e330192934020