{"abstract":"The exact hensel simple root lift result violates the stated contract at lifting exponent count.","category":"Numerics","checks":8,"contract":"Input [coefficients,p,r,k], p prime, r root mod p with nonzero derivative, k>=1; return unique root mod p^k congruent r mod p.","evaluation_group":"s3-numerics-hensel-simple-root-lift","failed_approach":"The partial repair range(1,k-1) still violates the lifting exponent count invariant.","family":"s3-numerics-hensel-simple-root-lift-lifting-exponent-count","id":"FA-15491","implementations":{"attempt":{"sha256":"75f9f6c357fe58d266f92ba8237f26453f36b59731008f55dce3e91a33e71e2a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport itertools\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    coeff,p,r,k=x\n    mod=p;r%=p\n    for _ in range(1,k-1):\n     value=sum(c*r**i for i,c in enumerate(coeff))\n     derivative=sum(i*coeff[i]*r**(i-1) for i in range(1,len(coeff)))\n     if derivative%p==0:return None\n     correction=(-(value//mod)*pow(derivative,-1,p))%p\n     r=r+mod*correction\n     mod=mod*p\n     r%=mod\n    return [r,mod]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([[1, 1, 1], 7, 2, 1], [2, 7]), ([[1, 1, 1], 7, 2, 2], [30, 49]), ([[2, 3, 1], 13, 12, 5], [371292, 371293]), ([[1, 1, 1], 7, 2, 3], [324, 343]), ([[1, 1, 1], 7, 2, 4], [1353, 2401]), ([[1, 1, 1], 7, 2, 5], [1353, 16807]), ([[1, 1, 1], 7, 4, 1], [4, 7]), ([[1, 1, 1], 7, 4, 2], [18, 49])], [([[1, 1, 1], 7, 2, 2], [30, 49]), ([[1, 1, 1], 7, 2, 5], [1353, 16807]), ([[1, 1, 1], 7, 2, 1], [2, 7]), ([[2, 3, 1], 13, 12, 5], [371292, 371293]), ([[1, 1, 1], 13, 9, 3], [1036, 2197]), ([[1, 1, 1], 13, 9, 4], [7627, 28561]), ([[1, 1, 1], 13, 9, 5], [150432, 371293]), ([[-2, 0, 1], 7, 3, 1], [3, 7])], [([[1, 1, 1], 7, 2, 3], [324, 343]), ([[1, 1, 1], 7, 4, 4], [1047, 2401]), ([[1, 1, 1], 7, 2, 1], [2, 7]), ([[2, 3, 1], 13, 12, 5], [371292, 371293]), ([[-1, 1, 1], 11, 3, 5], [77234, 161051]), ([[-1, 1, 1], 11, 7, 1], [7, 11]), ([[-1, 1, 1], 11, 7, 2], [84, 121]), ([[-1, 1, 1], 11, 7, 3], [1294, 1331])], [([[1, 1, 1], 7, 2, 4], [1353, 2401]), ([[1, 1, 1], 13, 3, 3], [1160, 2197]), ([[1, 1, 1], 7, 2, 1], [2, 7]), ([[2, 3, 1], 13, 12, 5], [371292, 371293]), ([[-3, 1, 2], 7, 1, 2], [1, 49]), ([[-3, 1, 2], 7, 1, 3], [1, 343]), ([[-3, 1, 2], 7, 1, 4], [1, 2401]), ([[-3, 1, 2], 7, 1, 5], [1, 16807])], [([[1, 1, 1], 7, 2, 5], [1353, 16807]), ([[1, 1, 1], 13, 9, 2], [22, 169]), ([[1, 1, 1], 7, 2, 1], [2, 7]), ([[2, 3, 1], 13, 12, 5], [371292, 371293]), ([[-3, 1, 2], 11, 4, 4], [7319, 14641]), ([[-3, 1, 2], 11, 4, 5], [80524, 161051]), ([[-3, 1, 2], 13, 1, 1], [1, 13]), ([[-3, 1, 2], 13, 1, 2], [1, 169])]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"explicit oracle %d\" % i, solve(args), expected)\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":"ca936c7aa754a6ed31902e49cdb040286a7b8a75b86d8628f4af132d052e746a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport itertools\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    coeff,p,r,k=x\n    mod=p;r%=p\n    for _ in range(k):\n     value=sum(c*r**i for i,c in enumerate(coeff))\n     derivative=sum(i*coeff[i]*r**(i-1) for i in range(1,len(coeff)))\n     if derivative%p==0:return None\n     correction=(-(value//mod)*pow(derivative,-1,p))%p\n     r=r+mod*correction\n     mod=mod*p\n     r%=mod\n    return [r,mod]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([[1, 1, 1], 7, 2, 1], [2, 7]), ([[1, 1, 1], 7, 2, 2], [30, 49]), ([[2, 3, 1], 13, 12, 5], [371292, 371293]), ([[1, 1, 1], 7, 2, 3], [324, 343]), ([[1, 1, 1], 7, 2, 4], [1353, 2401]), ([[1, 1, 1], 7, 2, 5], [1353, 16807]), ([[1, 1, 1], 7, 4, 1], [4, 7]), ([[1, 1, 1], 7, 4, 2], [18, 49])], [([[1, 1, 1], 7, 2, 2], [30, 49]), ([[1, 1, 1], 7, 2, 5], [1353, 16807]), ([[1, 1, 1], 7, 2, 1], [2, 7]), ([[2, 3, 1], 13, 12, 5], [371292, 371293]), ([[1, 1, 1], 13, 9, 3], [1036, 2197]), ([[1, 1, 1], 13, 9, 4], [7627, 28561]), ([[1, 1, 1], 13, 9, 5], [150432, 371293]), ([[-2, 0, 1], 7, 3, 1], [3, 7])], [([[1, 1, 1], 7, 2, 3], [324, 343]), ([[1, 1, 1], 7, 4, 4], [1047, 2401]), ([[1, 1, 1], 7, 2, 1], [2, 7]), ([[2, 3, 1], 13, 12, 5], [371292, 371293]), ([[-1, 1, 1], 11, 3, 5], [77234, 161051]), ([[-1, 1, 1], 11, 7, 1], [7, 11]), ([[-1, 1, 1], 11, 7, 2], [84, 121]), ([[-1, 1, 1], 11, 7, 3], [1294, 1331])], [([[1, 1, 1], 7, 2, 4], [1353, 2401]), ([[1, 1, 1], 13, 3, 3], [1160, 2197]), ([[1, 1, 1], 7, 2, 1], [2, 7]), ([[2, 3, 1], 13, 12, 5], [371292, 371293]), ([[-3, 1, 2], 7, 1, 2], [1, 49]), ([[-3, 1, 2], 7, 1, 3], [1, 343]), ([[-3, 1, 2], 7, 1, 4], [1, 2401]), ([[-3, 1, 2], 7, 1, 5], [1, 16807])], [([[1, 1, 1], 7, 2, 5], [1353, 16807]), ([[1, 1, 1], 13, 9, 2], [22, 169]), ([[1, 1, 1], 7, 2, 1], [2, 7]), ([[2, 3, 1], 13, 12, 5], [371292, 371293]), ([[-3, 1, 2], 11, 4, 4], [7319, 14641]), ([[-3, 1, 2], 11, 4, 5], [80524, 161051]), ([[-3, 1, 2], 13, 1, 1], [1, 13]), ([[-3, 1, 2], 13, 1, 2], [1, 169])]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"explicit oracle %d\" % i, solve(args), expected)\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":"35ea38ea207b0fb7cdf3f32ea6c437c35cf79cf06f8d7032af2a52cfb397ed23","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport itertools\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    coeff,p,r,k=x\n    mod=p;r%=p\n    for _ in range(1,k):\n     value=sum(c*r**i for i,c in enumerate(coeff))\n     derivative=sum(i*coeff[i]*r**(i-1) for i in range(1,len(coeff)))\n     if derivative%p==0:return None\n     correction=(-(value//mod)*pow(derivative,-1,p))%p\n     r=r+mod*correction\n     mod=mod*p\n     r%=mod\n    return [r,mod]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([[1, 1, 1], 7, 2, 1], [2, 7]), ([[1, 1, 1], 7, 2, 2], [30, 49]), ([[2, 3, 1], 13, 12, 5], [371292, 371293]), ([[1, 1, 1], 7, 2, 3], [324, 343]), ([[1, 1, 1], 7, 2, 4], [1353, 2401]), ([[1, 1, 1], 7, 2, 5], [1353, 16807]), ([[1, 1, 1], 7, 4, 1], [4, 7]), ([[1, 1, 1], 7, 4, 2], [18, 49])], [([[1, 1, 1], 7, 2, 2], [30, 49]), ([[1, 1, 1], 7, 2, 5], [1353, 16807]), ([[1, 1, 1], 7, 2, 1], [2, 7]), ([[2, 3, 1], 13, 12, 5], [371292, 371293]), ([[1, 1, 1], 13, 9, 3], [1036, 2197]), ([[1, 1, 1], 13, 9, 4], [7627, 28561]), ([[1, 1, 1], 13, 9, 5], [150432, 371293]), ([[-2, 0, 1], 7, 3, 1], [3, 7])], [([[1, 1, 1], 7, 2, 3], [324, 343]), ([[1, 1, 1], 7, 4, 4], [1047, 2401]), ([[1, 1, 1], 7, 2, 1], [2, 7]), ([[2, 3, 1], 13, 12, 5], [371292, 371293]), ([[-1, 1, 1], 11, 3, 5], [77234, 161051]), ([[-1, 1, 1], 11, 7, 1], [7, 11]), ([[-1, 1, 1], 11, 7, 2], [84, 121]), ([[-1, 1, 1], 11, 7, 3], [1294, 1331])], [([[1, 1, 1], 7, 2, 4], [1353, 2401]), ([[1, 1, 1], 13, 3, 3], [1160, 2197]), ([[1, 1, 1], 7, 2, 1], [2, 7]), ([[2, 3, 1], 13, 12, 5], [371292, 371293]), ([[-3, 1, 2], 7, 1, 2], [1, 49]), ([[-3, 1, 2], 7, 1, 3], [1, 343]), ([[-3, 1, 2], 7, 1, 4], [1, 2401]), ([[-3, 1, 2], 7, 1, 5], [1, 16807])], [([[1, 1, 1], 7, 2, 5], [1353, 16807]), ([[1, 1, 1], 13, 9, 2], [22, 169]), ([[1, 1, 1], 7, 2, 1], [2, 7]), ([[2, 3, 1], 13, 12, 5], [371292, 371293]), ([[-3, 1, 2], 11, 4, 4], [7319, 14641]), ([[-3, 1, 2], 11, 4, 5], [80524, 161051]), ([[-3, 1, 2], 13, 1, 1], [1, 13]), ([[-3, 1, 2], 13, 1, 2], [1, 169])]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"explicit oracle %d\" % i, solve(args), expected)\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":"A deterministic bounded teaching model. Inputs are restricted to the explicit contract; this is not a production algebra library. 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":"s3-numerics-hensel-simple-root-lift-lifting-exponent-count","generated_at":"2026-09-29T14:39:27.366138+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Exact discrete arithmetic with observable algorithmic state; no floating point approximation is used.","repair":"Use range(1,k) at the lifting exponent count step.","root_cause":"The lifting exponent count step uses range(k) instead of range(1,k).","sha256":"bf1c7f0b314e0314c0b55564594fa6fc9bbf9d51b03a87da6b9d656960bd703d","title":"Hensel simple root lift: lifting exponent count · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":44.427,"exit_code":1,"observations":[{"actual":[2,7],"check":"explicit oracle 0","expected":[2,7],"passed":true},{"actual":[2,7],"check":"explicit oracle 1","expected":[30,49],"passed":false},{"actual":[28560,28561],"check":"explicit oracle 2","expected":[371292,371293],"passed":false},{"actual":[30,49],"check":"explicit oracle 3","expected":[324,343],"passed":false},{"actual":[324,343],"check":"explicit oracle 4","expected":[1353,2401],"passed":false},{"actual":[1353,2401],"check":"explicit oracle 5","expected":[1353,16807],"passed":false},{"actual":[4,7],"check":"explicit oracle 6","expected":[4,7],"passed":true},{"actual":[4,7],"check":"explicit oracle 7","expected":[18,49],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": [2, 7], \"expected\": [2, 7], \"passed\": true}, {\"check\": \"explicit oracle 1\", \"actual\": [2, 7], \"expected\": [30, 49], \"passed\": false}, {\"check\": \"explicit oracle 2\", \"actual\": [28560, 28561], \"expected\": [371292, 371293], \"passed\": false}, {\"check\": \"explicit oracle 3\", \"actual\": [30, 49], \"expected\": [324, 343], \"passed\": false}, {\"check\": \"explicit oracle 4\", \"actual\": [324, 343], \"expected\": [1353, 2401], \"passed\": false}, {\"check\": \"explicit oracle 5\", \"actual\": [1353, 2401], \"expected\": [1353, 16807], \"passed\": false}, {\"check\": \"explicit oracle 6\", \"actual\": [4, 7], \"expected\": [4, 7], \"passed\": true}, {\"check\": \"explicit oracle 7\", \"actual\": [4, 7], \"expected\": [18, 49], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.76,"exit_code":1,"observations":[{"actual":[30,49],"check":"explicit oracle 0","expected":[2,7],"passed":false},{"actual":[324,343],"check":"explicit oracle 1","expected":[30,49],"passed":false},{"actual":[4826808,4826809],"check":"explicit oracle 2","expected":[371292,371293],"passed":false},{"actual":[1353,2401],"check":"explicit oracle 3","expected":[324,343],"passed":false},{"actual":[1353,16807],"check":"explicit oracle 4","expected":[1353,2401],"passed":false},{"actual":[34967,117649],"check":"explicit oracle 5","expected":[1353,16807],"passed":false},{"actual":[18,49],"check":"explicit oracle 6","expected":[4,7],"passed":false},{"actual":[18,343],"check":"explicit oracle 7","expected":[18,49],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": [30, 49], \"expected\": [2, 7], \"passed\": false}, {\"check\": \"explicit oracle 1\", \"actual\": [324, 343], \"expected\": [30, 49], \"passed\": false}, {\"check\": \"explicit oracle 2\", \"actual\": [4826808, 4826809], \"expected\": [371292, 371293], \"passed\": false}, {\"check\": \"explicit oracle 3\", \"actual\": [1353, 2401], \"expected\": [324, 343], \"passed\": false}, {\"check\": \"explicit oracle 4\", \"actual\": [1353, 16807], \"expected\": [1353, 2401], \"passed\": false}, {\"check\": \"explicit oracle 5\", \"actual\": [34967, 117649], \"expected\": [1353, 16807], \"passed\": false}, {\"check\": \"explicit oracle 6\", \"actual\": [18, 49], \"expected\": [4, 7], \"passed\": false}, {\"check\": \"explicit oracle 7\", \"actual\": [18, 343], \"expected\": [18, 49], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":42.354,"exit_code":0,"observations":[{"actual":[2,7],"check":"explicit oracle 0","expected":[2,7],"passed":true},{"actual":[30,49],"check":"explicit oracle 1","expected":[30,49],"passed":true},{"actual":[371292,371293],"check":"explicit oracle 2","expected":[371292,371293],"passed":true},{"actual":[324,343],"check":"explicit oracle 3","expected":[324,343],"passed":true},{"actual":[1353,2401],"check":"explicit oracle 4","expected":[1353,2401],"passed":true},{"actual":[1353,16807],"check":"explicit oracle 5","expected":[1353,16807],"passed":true},{"actual":[4,7],"check":"explicit oracle 6","expected":[4,7],"passed":true},{"actual":[18,49],"check":"explicit oracle 7","expected":[18,49],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": [2, 7], \"expected\": [2, 7], \"passed\": true}, {\"check\": \"explicit oracle 1\", \"actual\": [30, 49], \"expected\": [30, 49], \"passed\": true}, {\"check\": \"explicit oracle 2\", \"actual\": [371292, 371293], \"expected\": [371292, 371293], \"passed\": true}, {\"check\": \"explicit oracle 3\", \"actual\": [324, 343], \"expected\": [324, 343], \"passed\": true}, {\"check\": \"explicit oracle 4\", \"actual\": [1353, 2401], \"expected\": [1353, 2401], \"passed\": true}, {\"check\": \"explicit oracle 5\", \"actual\": [1353, 16807], \"expected\": [1353, 16807], \"passed\": true}, {\"check\": \"explicit oracle 6\", \"actual\": [4, 7], \"expected\": [4, 7], \"passed\": true}, {\"check\": \"explicit oracle 7\", \"actual\": [18, 49], \"expected\": [18, 49], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}