FA-5556 / Number theory / Open access
Abundant number predicate · case 01
Perfect numbers are included at the abundance boundary.
ROOT CAUSE
Perfect numbers are included at the abundance boundary.
VERIFIED REPAIR
Apply the specified mathematical contract directly, preserving all terms and boundary cases: return sum(d for d in range(1,n) if n%d==0)>n
Unsuccessful approach: Including n makes deficient composites look abundant.
Case contract
Integer inputs; n is positive unless a zero or negative fixture explicitly extends that operation. A modulus is greater than one; p is prime; exponent k may be signed when an inverse exists. Abundant number predicate. Exact operational definition: sum(d for d in range(1,n) if n%d==0)>n
Why this case matters
Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Number theory 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(n):
return sum(d for d in range(1,n) if n%d==0)>=n
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (12,)', solve(*(12,)), True)
check('fixture 2: (6,)', solve(*(6,)), False)
check('fixture 3: (1,)', solve(*(1,)), False)
check('fixture 4: (8,)', solve(*(8,)), False)
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: (12,) | True | True | Passed |
| fixture 2: (6,) | True | False | Failed |
| fixture 3: (1,) | False | False | Passed |
| fixture 4: (8,) | False | False | Passed |
SHA-256 / 90834a1ec2fafa51d76a7491ea218f84d935fcf37968768ffe0e47d81b1dc8fd
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(n):
return sum(d for d in range(1,n+1) if n%d==0)>n
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (12,)', solve(*(12,)), True)
check('fixture 2: (6,)', solve(*(6,)), False)
check('fixture 3: (1,)', solve(*(1,)), False)
check('fixture 4: (8,)', solve(*(8,)), False)
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: (12,) | True | True | Passed |
| fixture 2: (6,) | True | False | Failed |
| fixture 3: (1,) | False | False | Passed |
| fixture 4: (8,) | True | False | Failed |
SHA-256 / ef5e57f064d96db409d509784b00eb22a9a451b2ee1a8d268b760f2338691808
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(n):
return sum(d for d in range(1,n) if n%d==0)>n
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (12,)', solve(*(12,)), True)
check('fixture 2: (6,)', solve(*(6,)), False)
check('fixture 3: (1,)', solve(*(1,)), False)
check('fixture 4: (8,)', solve(*(8,)), False)
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: (12,) | True | True | Passed |
| fixture 2: (6,) | False | False | Passed |
| fixture 3: (1,) | False | False | Passed |
| fixture 4: (8,) | False | False | Passed |
SHA-256 / 1f4a723d83145969b4867294fdf69cebaabee5e7f50a47057805390fd84ec4d8
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:50.909436+00:00.
Case digest / 05ef0dee0b396dbf946dfb9e0a669cc1bc3503c3d7d179a2413f6af97e622192