FA-6101 / Polynomial arithmetic / Open access
Ascending polynomial evaluation · case 01
Ascending coefficients are evaluated as descending coefficients.
ROOT CAUSE
Ascending coefficients are evaluated as descending coefficients.
THE FAILURE
Ascending coefficients are evaluated as descending coefficients.
Unsuccessful approach: Every coefficient is assigned the first power.
Case contract
Integer coefficients in ascending power order and integer evaluation bounds; missing high-degree coefficients are zero. Rational outputs are reduced Fraction strings; the zero-polynomial degree is -1. Ascending polynomial evaluation. Exact operational definition: sum(c*x**i for i,c in enumerate(coeff))
Why this case matters
Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Polynomial arithmetic results depend on the stated convention.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import math
import calendar
import statistics
import itertools
from fractions import Fraction
from datetime import date, datetime, timedelta, timezone
from decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR
N = 1
observations = []
def solve(coeff, x):
return sum(c*x**i for i,c in enumerate(reversed(coeff)))
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: ([1, 2, 3], 2)', solve(*([1, 2, 3], 2)), 17)
check('fixture 2: ([4], 7)', solve(*([4], 7)), 4)
check('fixture 3: ([], 2)', solve(*([], 2)), 0)
check('fixture 4: ([0, 1], -3)', solve(*([0, 1], -3)), -3)
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 |
|---|---|---|---|
| fixture 1: ([1, 2, 3], 2) | 11 | 17 | Failed |
| fixture 2: ([4], 7) | 4 | 4 | Passed |
| fixture 3: ([], 2) | 0 | 0 | Passed |
| fixture 4: ([0, 1], -3) | 1 | -3 | Failed |
SHA-256 / ffe4b919ff71730eb51f9e3938b6b84c8d2b1727eb24ee95305f6f192565265e
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import math
import calendar
import statistics
import itertools
from fractions import Fraction
from datetime import date, datetime, timedelta, timezone
from decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR
N = 1
observations = []
def solve(coeff, x):
return sum(c*x for c in coeff)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: ([1, 2, 3], 2)', solve(*([1, 2, 3], 2)), 17)
check('fixture 2: ([4], 7)', solve(*([4], 7)), 4)
check('fixture 3: ([], 2)', solve(*([], 2)), 0)
check('fixture 4: ([0, 1], -3)', solve(*([0, 1], -3)), -3)
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 |
|---|---|---|---|
| fixture 1: ([1, 2, 3], 2) | 12 | 17 | Failed |
| fixture 2: ([4], 7) | 28 | 4 | Failed |
| fixture 3: ([], 2) | 0 | 0 | Passed |
| fixture 4: ([0, 1], -3) | -3 | -3 | Passed |
SHA-256 / ea7a8a6c797dc15463fb94a45fbfdebe28441ad1ad1124378bd534a5bcc1c20c
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 4 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
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:37:57.676395+00:00.
Case digest / 42cc08a43dfbbfe0e24161151a43dedb6b1bc48eb9811b908191aa1e46723001