FA-5971 / Solid geometry / Open access
Spherical cap area divided by pi · case 01
The cap is mistaken for a flat disk based on cap height.
ROOT CAUSE
The cap is mistaken for a flat disk based on cap height.
VERIFIED REPAIR
Apply the specified mathematical contract directly, preserving all terms and boundary cases: return 2*R*h
Unsuccessful approach: A hemisphere area is returned regardless of cap height.
Case contract
Nonnegative integer dimensions; exact products and ordinary Python real division. Quantities named divided by pi or pi-squared deliberately omit that factor from the returned result. R>=0 and 0<=h<=2*R; return curved cap surface area divided by pi, excluding the flat base. Exact operational definition: 2*R*h
Why this case matters
Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Solid 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(R, h):
return h*h
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (3, 1)', solve(*(3, 1)), 6)
check('fixture 2: (3, 3)', solve(*(3, 3)), 18)
check('fixture 3: (4, 0)', solve(*(4, 0)), 0)
check('fixture 4: (2, 4)', solve(*(2, 4)), 16)
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: (3, 1) | 1 | 6 | Failed |
| fixture 2: (3, 3) | 9 | 18 | Failed |
| fixture 3: (4, 0) | 0 | 0 | Passed |
| fixture 4: (2, 4) | 16 | 16 | Passed |
SHA-256 / 9e3dfed40c9e37b4d1bda96732a0e1108312e905e64b039423224864d83d5d3a
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(R, h):
return 2*R*R
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (3, 1)', solve(*(3, 1)), 6)
check('fixture 2: (3, 3)', solve(*(3, 3)), 18)
check('fixture 3: (4, 0)', solve(*(4, 0)), 0)
check('fixture 4: (2, 4)', solve(*(2, 4)), 16)
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: (3, 1) | 18 | 6 | Failed |
| fixture 2: (3, 3) | 18 | 18 | Passed |
| fixture 3: (4, 0) | 32 | 0 | Failed |
| fixture 4: (2, 4) | 8 | 16 | Failed |
SHA-256 / 7b57084a2a8b03fbc77f98749b85a3914943b08e31e829ff7d2d2ecb72b6f7d2
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(R, h):
return 2*R*h
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (3, 1)', solve(*(3, 1)), 6)
check('fixture 2: (3, 3)', solve(*(3, 3)), 18)
check('fixture 3: (4, 0)', solve(*(4, 0)), 0)
check('fixture 4: (2, 4)', solve(*(2, 4)), 16)
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: (3, 1) | 6 | 6 | Passed |
| fixture 2: (3, 3) | 18 | 18 | Passed |
| fixture 3: (4, 0) | 0 | 0 | Passed |
| fixture 4: (2, 4) | 16 | 16 | Passed |
SHA-256 / 4b3731290ec49116317bcfd6a8651ad831a233accef60f209c57406f11393be2
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.112693+00:00.
Case digest / 381798a2fd74e596b2631fd007a83bf325048148ff77d207d6410f39fe9689b1