FA-14771 / Numerics / Open access
Rational generating recurrence: numerator coefficient alignment · case 01
The exact rational generating recurrence result violates the stated contract at numerator coefficient alignment.
ROOT CAUSE
The numerator coefficient alignment step uses P[n-1] if 0<n<=len(P) else 0 instead of P[n] if n<len(P) else 0.
THE FAILURE
The numerator coefficient alignment step uses P[n-1] if 0<n<=len(P) else 0 instead of P[n] if n<len(P) else 0.
Unsuccessful approach: The partial repair P[0] if P else 0 still violates the numerator coefficient alignment invariant.
Case contract
Input [P,Q,k] integer ascending arrays with Q[0]=1 and k>=0; return first k coefficients of formal series P/Q.
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):
P,Q,k=x
r=[]
for n in range(k):
v=P[n-1] if 0<n<=len(P) else 0
for j in range(1,min(n,len(Q)-1)+1):
v=v-Q[j]*r[n-j]
r.append(v)
return r
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[([[-1, -1], [1, -2, -2], 1], [-1]), ([[-1, -1], [1, -2, -2], 3], [-1, -3, -8]), ([[1, 1], [1, 2, 2], 8], [1, -1, 0, 2, -4, 4, 0, -8]), ([[-1, -1], [1, -2, -2], 2], [-1, -3]), ([[-1, -1], [1, -2, -2], 4], [-1, -3, -8, -22]), ([[-1, -1], [1, -2, -2], 5], [-1, -3, -8, -22, -60]), ([[-1, -1], [1, -2, -2], 6], [-1, -3, -8, -22, -60, -164]), ([[-1, -1], [1, -2, -2], 7], [-1, -3, -8, -22, -60, -164, -448])], [([[-1, -1], [1, -2, -2], 2], [-1, -3]), ([[-1, -1], [1, -2, -2], 6], [-1, -3, -8, -22, -60, -164]), ([[-1, -1], [1, -2, -2], 1], [-1]), ([[1, 1], [1, 2, 2], 8], [1, -1, 0, 2, -4, 4, 0, -8]), ([[-1, -1], [1, -2, 0], 2], [-1, -3]), ([[-1, -1], [1, -2, 0], 3], [-1, -3, -6]), ([[-1, -1], [1, -2, 0], 4], [-1, -3, -6, -12]), ([[-1, -1], [1, -2, 0], 5], [-1, -3, -6, -12, -24])], [([[-1, -1], [1, -2, -2], 3], [-1, -3, -8]), ([[-1, -1], [1, -2, -1], 3], [-1, -3, -7]), ([[-1, -1], [1, -2, -2], 1], [-1]), ([[1, 1], [1, 2, 2], 8], [1, -1, 0, 2, -4, 4, 0, -8]), ([[-1, -1], [1, -2, 2], 3], [-1, -3, -4]), ([[-1, -1], [1, -2, 2], 4], [-1, -3, -4, -2]), ([[-1, -1], [1, -2, 2], 5], [-1, -3, -4, -2, 4]), ([[-1, -1], [1, -2, 2], 6], [-1, -3, -4, -2, 4, 12])], [([[-1, -1], [1, -2, -2], 4], [-1, -3, -8, -22]), ([[-1, -1], [1, -2, -1], 6], [-1, -3, -7, -17, -41, -99]), ([[-1, -1], [1, -2, -2], 1], [-1]), ([[1, 1], [1, 2, 2], 8], [1, -1, 0, 2, -4, 4, 0, -8]), ([[-1, -1], [1, -1, -1], 4], [-1, -2, -3, -5]), ([[-1, -1], [1, -1, -1], 5], [-1, -2, -3, -5, -8]), ([[-1, -1], [1, -1, -1], 6], [-1, -2, -3, -5, -8, -13]), ([[-1, -1], [1, -1, -1], 7], [-1, -2, -3, -5, -8, -13, -21])], [([[-1, -1], [1, -2, -2], 5], [-1, -3, -8, -22, -60]), ([[-1, -1], [1, -2, 0], 3], [-1, -3, -6]), ([[-1, -1], [1, -2, -2], 1], [-1]), ([[1, 1], [1, 2, 2], 8], [1, -1, 0, 2, -4, 4, 0, -8]), ([[-1, -1], [1, -1, 1], 5], [-1, -2, -1, 1, 2]), ([[-1, -1], [1, -1, 1], 6], [-1, -2, -1, 1, 2, 1]), ([[-1, -1], [1, -1, 1], 7], [-1, -2, -1, 1, 2, 1, -1]), ([[-1, -1], [1, -1, 1], 8], [-1, -2, -1, 1, 2, 1, -1, -2])]]
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 | [0] | [-1] | Failed |
| explicit oracle 1 | [0, -1, -3] | [-1, -3, -8] | Failed |
| explicit oracle 2 | [0, 1, -1, 0, 2, -4, 4, 0] | [1, -1, 0, 2, -4, 4, 0, -8] | Failed |
| explicit oracle 3 | [0, -1] | [-1, -3] | Failed |
| explicit oracle 4 | [0, -1, -3, -8] | [-1, -3, -8, -22] | Failed |
| explicit oracle 5 | [0, -1, -3, -8, -22] | [-1, -3, -8, -22, -60] | Failed |
| explicit oracle 6 | [0, -1, -3, -8, -22, -60] | [-1, -3, -8, -22, -60, -164] | Failed |
| explicit oracle 7 | [0, -1, -3, -8, -22, -60, -164] | [-1, -3, -8, -22, -60, -164, -448] | Failed |
SHA-256 / 5d20cf217e8a90eae192ad03fbafcca78834a05b61fa08ef529340911a8ccb7d
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):
P,Q,k=x
r=[]
for n in range(k):
v=P[0] if P else 0
for j in range(1,min(n,len(Q)-1)+1):
v=v-Q[j]*r[n-j]
r.append(v)
return r
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[([[-1, -1], [1, -2, -2], 1], [-1]), ([[-1, -1], [1, -2, -2], 3], [-1, -3, -8]), ([[1, 1], [1, 2, 2], 8], [1, -1, 0, 2, -4, 4, 0, -8]), ([[-1, -1], [1, -2, -2], 2], [-1, -3]), ([[-1, -1], [1, -2, -2], 4], [-1, -3, -8, -22]), ([[-1, -1], [1, -2, -2], 5], [-1, -3, -8, -22, -60]), ([[-1, -1], [1, -2, -2], 6], [-1, -3, -8, -22, -60, -164]), ([[-1, -1], [1, -2, -2], 7], [-1, -3, -8, -22, -60, -164, -448])], [([[-1, -1], [1, -2, -2], 2], [-1, -3]), ([[-1, -1], [1, -2, -2], 6], [-1, -3, -8, -22, -60, -164]), ([[-1, -1], [1, -2, -2], 1], [-1]), ([[1, 1], [1, 2, 2], 8], [1, -1, 0, 2, -4, 4, 0, -8]), ([[-1, -1], [1, -2, 0], 2], [-1, -3]), ([[-1, -1], [1, -2, 0], 3], [-1, -3, -6]), ([[-1, -1], [1, -2, 0], 4], [-1, -3, -6, -12]), ([[-1, -1], [1, -2, 0], 5], [-1, -3, -6, -12, -24])], [([[-1, -1], [1, -2, -2], 3], [-1, -3, -8]), ([[-1, -1], [1, -2, -1], 3], [-1, -3, -7]), ([[-1, -1], [1, -2, -2], 1], [-1]), ([[1, 1], [1, 2, 2], 8], [1, -1, 0, 2, -4, 4, 0, -8]), ([[-1, -1], [1, -2, 2], 3], [-1, -3, -4]), ([[-1, -1], [1, -2, 2], 4], [-1, -3, -4, -2]), ([[-1, -1], [1, -2, 2], 5], [-1, -3, -4, -2, 4]), ([[-1, -1], [1, -2, 2], 6], [-1, -3, -4, -2, 4, 12])], [([[-1, -1], [1, -2, -2], 4], [-1, -3, -8, -22]), ([[-1, -1], [1, -2, -1], 6], [-1, -3, -7, -17, -41, -99]), ([[-1, -1], [1, -2, -2], 1], [-1]), ([[1, 1], [1, 2, 2], 8], [1, -1, 0, 2, -4, 4, 0, -8]), ([[-1, -1], [1, -1, -1], 4], [-1, -2, -3, -5]), ([[-1, -1], [1, -1, -1], 5], [-1, -2, -3, -5, -8]), ([[-1, -1], [1, -1, -1], 6], [-1, -2, -3, -5, -8, -13]), ([[-1, -1], [1, -1, -1], 7], [-1, -2, -3, -5, -8, -13, -21])], [([[-1, -1], [1, -2, -2], 5], [-1, -3, -8, -22, -60]), ([[-1, -1], [1, -2, 0], 3], [-1, -3, -6]), ([[-1, -1], [1, -2, -2], 1], [-1]), ([[1, 1], [1, 2, 2], 8], [1, -1, 0, 2, -4, 4, 0, -8]), ([[-1, -1], [1, -1, 1], 5], [-1, -2, -1, 1, 2]), ([[-1, -1], [1, -1, 1], 6], [-1, -2, -1, 1, 2, 1]), ([[-1, -1], [1, -1, 1], 7], [-1, -2, -1, 1, 2, 1, -1]), ([[-1, -1], [1, -1, 1], 8], [-1, -2, -1, 1, 2, 1, -1, -2])]]
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 | [-1] | [-1] | Passed |
| explicit oracle 1 | [-1, -3, -9] | [-1, -3, -8] | Failed |
| explicit oracle 2 | [1, -1, 1, 1, -3, 5, -3, -3] | [1, -1, 0, 2, -4, 4, 0, -8] | Failed |
| explicit oracle 3 | [-1, -3] | [-1, -3] | Passed |
| explicit oracle 4 | [-1, -3, -9, -25] | [-1, -3, -8, -22] | Failed |
| explicit oracle 5 | [-1, -3, -9, -25, -69] | [-1, -3, -8, -22, -60] | Failed |
| explicit oracle 6 | [-1, -3, -9, -25, -69, -189] | [-1, -3, -8, -22, -60, -164] | Failed |
| explicit oracle 7 | [-1, -3, -9, -25, -69, -189, -517] | [-1, -3, -8, -22, -60, -164, -448] | Failed |
SHA-256 / 61cb934e0681308933149c6c19dd959274c16aa205ed5bdb5585f361198a6d48
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:20.238396+00:00.
Case digest / 1d51c5717888781964f4e2acc56f833cc4565ee7a1bc65c2f861173a3f0928b5