FAILURE MAP
← Case archive

FA-5876 / Planar geometry / Open access

Axis aligned point containment closed · case 01

Strict comparisons exclude the closed boundary.

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

ROOT CAUSE

Strict comparisons exclude the closed boundary.

VERIFIED REPAIR

Apply the specified mathematical contract directly, preserving all terms and boundary cases: return box[0]<=p[0]<=box[2] and box[1]<=p[1]<=box[3]

Unsuccessful approach: An OR admits points outside one required coordinate interval.

Case contract

Integer coordinates and lengths, with exact arithmetic except for indicated division results. Lengths are nonnegative. Rectangles are (xmin,ymin,xmax,ymax) with ordered bounds; coordinate vectors have matching dimensions. Axis aligned point containment closed. Exact operational definition: box[0]<=p[0]<=box[2] and box[1]<=p[1]<=box[3]

Why this case matters

Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Planar geometry 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(p, box):
    return box[0]<p[0]<box[2] and box[1]<p[1]<box[3]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: ((0, 0), (0, 0, 2, 2))', solve(*((0, 0), (0, 0, 2, 2))), True)
check('fixture 2: ((1, 1), (0, 0, 2, 2))', solve(*((1, 1), (0, 0, 2, 2))), True)
check('fixture 3: ((3, 1), (0, 0, 2, 2))', solve(*((3, 1), (0, 0, 2, 2))), False)
check('fixture 4: ((2, 2), (0, 0, 2, 2))', solve(*((2, 2), (0, 0, 2, 2))), True)
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: ((0, 0), (0, 0, 2, 2))FalseTrueFailed
fixture 2: ((1, 1), (0, 0, 2, 2))TrueTruePassed
fixture 3: ((3, 1), (0, 0, 2, 2))FalseFalsePassed
fixture 4: ((2, 2), (0, 0, 2, 2))FalseTrueFailed

SHA-256 / 26d856e1c41cf0f8fe1cd5ee6760b19c775acbc7d8f2bc24186152c21556f522

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(p, box):
    return box[0]<=p[0]<=box[2] or box[1]<=p[1]<=box[3]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: ((0, 0), (0, 0, 2, 2))', solve(*((0, 0), (0, 0, 2, 2))), True)
check('fixture 2: ((1, 1), (0, 0, 2, 2))', solve(*((1, 1), (0, 0, 2, 2))), True)
check('fixture 3: ((3, 1), (0, 0, 2, 2))', solve(*((3, 1), (0, 0, 2, 2))), False)
check('fixture 4: ((2, 2), (0, 0, 2, 2))', solve(*((2, 2), (0, 0, 2, 2))), True)
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: ((0, 0), (0, 0, 2, 2))TrueTruePassed
fixture 2: ((1, 1), (0, 0, 2, 2))TrueTruePassed
fixture 3: ((3, 1), (0, 0, 2, 2))TrueFalseFailed
fixture 4: ((2, 2), (0, 0, 2, 2))TrueTruePassed

SHA-256 / b74613173f8300170506a60027abb76a6b127b5f27230c35e7fa54ae90cff05f

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(p, box):
    return box[0]<=p[0]<=box[2] and box[1]<=p[1]<=box[3]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: ((0, 0), (0, 0, 2, 2))', solve(*((0, 0), (0, 0, 2, 2))), True)
check('fixture 2: ((1, 1), (0, 0, 2, 2))', solve(*((1, 1), (0, 0, 2, 2))), True)
check('fixture 3: ((3, 1), (0, 0, 2, 2))', solve(*((3, 1), (0, 0, 2, 2))), False)
check('fixture 4: ((2, 2), (0, 0, 2, 2))', solve(*((2, 2), (0, 0, 2, 2))), True)
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: ((0, 0), (0, 0, 2, 2))TrueTruePassed
fixture 2: ((1, 1), (0, 0, 2, 2))TrueTruePassed
fixture 3: ((3, 1), (0, 0, 2, 2))FalseFalsePassed
fixture 4: ((2, 2), (0, 0, 2, 2))TrueTruePassed

SHA-256 / d1c8ca7dd444fb95ef3e107116abcce044fdb1351d749c021669a90ff41f1d33

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

Case digest / 2e8db1ab3f3db15f082549590bf508499052ac9328c14dcd25f3a1a39855ee7e