FAILURE MAP
← Case archive

FA-6106 / Polynomial arithmetic / Open access

Formal polynomial derivative · case 01

Power coefficients are not multiplied by their degree.

Verified by executionVariant 1 · 4 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

Power coefficients are not multiplied by their degree.

THE FAILURE

Power coefficients are not multiplied by their degree.

Unsuccessful approach: The constant is differentiated as though it had degree one.

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. Formal polynomial derivative. Exact operational definition: [i*c for i,c in enumerate(coeff) if i]

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):
    return coeff[1:]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: ([1, 2, 3],)', solve(*([1, 2, 3],)), [2, 6])
check('fixture 2: ([4],)', solve(*([4],)), [])
check('fixture 3: ([],)', solve(*([],)), [])
check('fixture 4: ([0, 0, 5, 2],)', solve(*([0, 0, 5, 2],)), [0, 10, 6])
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 fixtureActualExpectedOutcome
fixture 1: ([1, 2, 3],)[2, 3][2, 6]Failed
fixture 2: ([4],)[][]Passed
fixture 3: ([],)[][]Passed
fixture 4: ([0, 0, 5, 2],)[0, 5, 2][0, 10, 6]Failed

SHA-256 / f2b1df27b9183c625110f7910d6b1e634ec3eebd1adb159082a141c1bb6dc08e

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):
    return [(i+1)*c for i,c in enumerate(coeff)]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: ([1, 2, 3],)', solve(*([1, 2, 3],)), [2, 6])
check('fixture 2: ([4],)', solve(*([4],)), [])
check('fixture 3: ([],)', solve(*([],)), [])
check('fixture 4: ([0, 0, 5, 2],)', solve(*([0, 0, 5, 2],)), [0, 10, 6])
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 fixtureActualExpectedOutcome
fixture 1: ([1, 2, 3],)[1, 4, 9][2, 6]Failed
fixture 2: ([4],)[4][]Failed
fixture 3: ([],)[][]Passed
fixture 4: ([0, 0, 5, 2],)[0, 0, 15, 8][0, 10, 6]Failed

SHA-256 / c959b581868ce5cb1d99ca80af4ace08db726be56b51225fb4cb6a648d0e8e37

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.720830+00:00.

Case digest / e9be8dbc4e8a9719315e0f1a65602757f7c7d94c09b4d74e70d398842160f3a3