{"abstract":"Self-divisors are included in the perfect-number equality.","category":"Number theory","checks":4,"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. Perfect number predicate. Exact operational definition: n>0 and sum(d for d in range(1,n) if n%d==0)==n","evaluation_group":"model-ce5de9a23588b207","failed_approach":"Omitting the unit divisor prevents true perfect numbers from matching.","family":"xn-perfect-number-predicate","id":"FA-5551","implementations":{"attempt":{"sha256":"d47ad3beeda93a034d1bb1bdd7f4f407285f1a43019b74b3ed3de2d04fb58e32","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport calendar\nimport statistics\nimport itertools\nfrom fractions import Fraction\nfrom datetime import date, datetime, timedelta, timezone\nfrom decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR\n\nN = 1\nobservations = []\ndef solve(n):\n    return sum(d for d in range(2,n) if n%d==0)==n\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1: (6,)', solve(*(6,)), True)\ncheck('fixture 2: (28,)', solve(*(28,)), True)\ncheck('fixture 3: (1,)', solve(*(1,)), False)\ncheck('fixture 4: (12,)', solve(*(12,)), False)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"ecaa7a229423576f4c23ac2f9814a7c3328319b08d282d63bcd61119e135870b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport calendar\nimport statistics\nimport itertools\nfrom fractions import Fraction\nfrom datetime import date, datetime, timedelta, timezone\nfrom decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR\n\nN = 1\nobservations = []\ndef solve(n):\n    return sum(d for d in range(1,n+1) if n%d==0)==n\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1: (6,)', solve(*(6,)), True)\ncheck('fixture 2: (28,)', solve(*(28,)), True)\ncheck('fixture 3: (1,)', solve(*(1,)), False)\ncheck('fixture 4: (12,)', solve(*(12,)), False)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"fixed":{"sha256":"def562ddcba5f19084a037cd69d8c65a4b136626ce8cb29c7f1a7264f78cb70b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport calendar\nimport statistics\nimport itertools\nfrom fractions import Fraction\nfrom datetime import date, datetime, timedelta, timezone\nfrom decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR\n\nN = 1\nobservations = []\ndef solve(n):\n    return n>0 and sum(d for d in range(1,n) if n%d==0)==n\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1: (6,)', solve(*(6,)), True)\ncheck('fixture 2: (28,)', solve(*(28,)), True)\ncheck('fixture 3: (1,)', solve(*(1,)), False)\ncheck('fixture 4: (12,)', solve(*(12,)), False)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":" 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.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"xn-perfect-number-predicate","generated_at":"2026-09-29T14:37:50.898273+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Number theory results depend on the stated convention.","repair":"Apply the specified mathematical contract directly, preserving all terms and boundary cases: return n>0 and sum(d for d in range(1,n) if n%d==0)==n","root_cause":"Self-divisors are included in the perfect-number equality.","sha256":"f98f0fdad2a78e8bb25b76e1f96e985ea75dad3aeae5f6f70b19759efda6ffa2","title":"Perfect number predicate · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":46.127,"exit_code":1,"observations":[{"actual":false,"check":"fixture 1: (6,)","expected":true,"passed":false},{"actual":false,"check":"fixture 2: (28,)","expected":true,"passed":false},{"actual":false,"check":"fixture 3: (1,)","expected":false,"passed":true},{"actual":false,"check":"fixture 4: (12,)","expected":false,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1: (6,)\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"fixture 2: (28,)\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"fixture 3: (1,)\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"fixture 4: (12,)\", \"actual\": false, \"expected\": false, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":48.239,"exit_code":1,"observations":[{"actual":false,"check":"fixture 1: (6,)","expected":true,"passed":false},{"actual":false,"check":"fixture 2: (28,)","expected":true,"passed":false},{"actual":true,"check":"fixture 3: (1,)","expected":false,"passed":false},{"actual":false,"check":"fixture 4: (12,)","expected":false,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1: (6,)\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"fixture 2: (28,)\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"fixture 3: (1,)\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"fixture 4: (12,)\", \"actual\": false, \"expected\": false, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":46.772,"exit_code":0,"observations":[{"actual":true,"check":"fixture 1: (6,)","expected":true,"passed":true},{"actual":true,"check":"fixture 2: (28,)","expected":true,"passed":true},{"actual":false,"check":"fixture 3: (1,)","expected":false,"passed":true},{"actual":false,"check":"fixture 4: (12,)","expected":false,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1: (6,)\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 2: (28,)\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 3: (1,)\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"fixture 4: (12,)\", \"actual\": false, \"expected\": false, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}