FA-6006 / Linear algebra / Open access
Vector hadamard product · case 01
Elementwise addition replaces multiplication.
ROOT CAUSE
Elementwise addition replaces multiplication.
VERIFIED REPAIR
Apply the specified mathematical contract directly, preserving all terms and boundary cases: return [x*y for x,y in zip(a,b)]
Unsuccessful approach: A scalar dot product is broadcast into every coordinate.
Case contract
Integer matrix/vector entries, rectangular rows, compatible multiplication dimensions, and square matrices for determinant, trace, inverse, symmetry and characteristic-polynomial operations. Rational matrix outputs are reduced Fraction strings. Vector hadamard product. Exact operational definition: [x*y for x,y in zip(a,b)]
Why this case matters
Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Linear algebra 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(a, b):
return [x+y for x,y in zip(a,b)]
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])), [3, 8])
check('fixture 2: ([1, -1], [1, 1])', solve(*([1, -1], [1, 1])), [1, -1])
check('fixture 3: ([], [])', solve(*([], [])), [])
check('fixture 4: ([0, 2], [5, 0])', solve(*([0, 2], [5, 0])), [0, 0])
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, 4]) | [4, 6] | [3, 8] | Failed |
| fixture 2: ([1, -1], [1, 1]) | [2, 0] | [1, -1] | Failed |
| fixture 3: ([], []) | [] | [] | Passed |
| fixture 4: ([0, 2], [5, 0]) | [5, 2] | [0, 0] | Failed |
SHA-256 / a9ba5b634cca2ae0d4ecf9b756197fbc868cccb7ab3c7b955d63354b23bf5efb
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(a, b):
return [sum(x*y for x,y in zip(a,b))]*len(a)
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])), [3, 8])
check('fixture 2: ([1, -1], [1, 1])', solve(*([1, -1], [1, 1])), [1, -1])
check('fixture 3: ([], [])', solve(*([], [])), [])
check('fixture 4: ([0, 2], [5, 0])', solve(*([0, 2], [5, 0])), [0, 0])
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, 4]) | [11, 11] | [3, 8] | Failed |
| fixture 2: ([1, -1], [1, 1]) | [0, 0] | [1, -1] | Failed |
| fixture 3: ([], []) | [] | [] | Passed |
| fixture 4: ([0, 2], [5, 0]) | [0, 0] | [0, 0] | Passed |
SHA-256 / b05db5dc300aa6547e6945b188140088067d3c48c58b886c479c6699b8efbffd
3 / The verified repair
Exit 0"""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(a, b):
return [x*y for x,y in zip(a,b)]
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])), [3, 8])
check('fixture 2: ([1, -1], [1, 1])', solve(*([1, -1], [1, 1])), [1, -1])
check('fixture 3: ([], [])', solve(*([], [])), [])
check('fixture 4: ([0, 2], [5, 0])', solve(*([0, 2], [5, 0])), [0, 0])
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, 4]) | [3, 8] | [3, 8] | Passed |
| fixture 2: ([1, -1], [1, 1]) | [1, -1] | [1, -1] | Passed |
| fixture 3: ([], []) | [] | [] | Passed |
| fixture 4: ([0, 2], [5, 0]) | [0, 0] | [0, 0] | Passed |
SHA-256 / 94a773640f634d8156364128114b6ca290024f4e82f24b8d240eb3ce21b42e0e
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:56.252322+00:00.
Case digest / 92e7b34cb5322dfba210ddcfd97c70876c9022bd8987ff16a08f4f787213262c