FAILURE MAP
← Case archive

FA-6151 / Polynomial arithmetic / Open access

Polynomial even part · case 01

Removing odd positions compresses the remaining powers.

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

ROOT CAUSE

Removing odd positions compresses the remaining powers.

THE FAILURE

Removing odd positions compresses the remaining powers.

Unsuccessful approach: Parity selects the odd part instead of the even part.

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. Polynomial even part. Exact operational definition: [c if i%2==0 else 0 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):
    return [c for i,c in enumerate(coeff) if i%2==0]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: ([1, 2, 3, 4],)', solve(*([1, 2, 3, 4],)), [1, 0, 3, 0])
check('fixture 2: ([0, 1],)', solve(*([0, 1],)), [0, 0])
check('fixture 3: ([5],)', solve(*([5],)), [5])
check('fixture 4: ([],)', solve(*([],)), [])
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, 4],)[1, 3][1, 0, 3, 0]Failed
fixture 2: ([0, 1],)[0][0, 0]Failed
fixture 3: ([5],)[5][5]Passed
fixture 4: ([],)[][]Passed

SHA-256 / e1d49f25c1cfcc2e13344b455f8d8450a6f5fc76e35b798e106313b046554714

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 [c if i%2 else 0 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, 4],)', solve(*([1, 2, 3, 4],)), [1, 0, 3, 0])
check('fixture 2: ([0, 1],)', solve(*([0, 1],)), [0, 0])
check('fixture 3: ([5],)', solve(*([5],)), [5])
check('fixture 4: ([],)', solve(*([],)), [])
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, 4],)[0, 2, 0, 4][1, 0, 3, 0]Failed
fixture 2: ([0, 1],)[0, 1][0, 0]Failed
fixture 3: ([5],)[0][5]Failed
fixture 4: ([],)[][]Passed

SHA-256 / e4b5bd7c948b35fbef7820638c86ae713b4cf20bc2f76c78be75ef036d348022

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

Case digest / 6203d260698708e9df3fd87c9a3887295678e91f97696ad5ff6aa427afb3575b