S001 · implies
Before
a=13; n=26≥2
After
compute gcd and a Bezout certificate before inversion
Conditions: none
Invertibility requires coprimality, after qualifying the modulus.
Step identifiers and dependencies
Rule: modular_domain · Uses: G001
Explore related knowledge and questions →
← Question derivation index · Original question batch
P1000-0387 · q-20261014-advance-20261103-r07-modular-inverse-0087
Use the original signed integer a=13 and modulus n=26≥2. Exact extended Euclid gives nonnegative g=gcd(a,n) and signed coefficients x,y satisfying a*x+n*y=g. An inverse exists exactly when g=1; normalize its representative to 0≤inverse<n. Uniqueness means one residue class modulo n, not a unique integer representative. This family excludes moduli 0 and 1 and does not use approximate division. Require gcd(a,n)>1. Give (a,n,gcd,inverse,exists?,nonunit_has_no_modular_inverse), with inverse=null.
G001 — Use the original signed integer a=13 and modulus n=26≥2. Exact extended Euclid gives nonnegative g=gcd(a,n) and signed coefficients x,y satisfying a*x+n*y=g. An inverse exists exactly when g=1; normalize its representative to 0≤inverse<n. Uniqueness means one residue class modulo n, not a unique integer representative. This family excludes moduli 0 and 1 and does not use approximate division. Require gcd(a,n)>1. Give (a,n,gcd,inverse,exists?,nonunit_has_no_modular_inverse), with inverse=null.When gcd(a,n)>1 the common divisor divides au+nv, so it cannot equal 1 and no inverse exists; null means absent.
Before
a=13; n=26≥2
After
compute gcd and a Bezout certificate before inversion
Conditions: none
Invertibility requires coprimality, after qualifying the modulus.
Rule: modular_domain · Uses: G001
Before
divide 13 by 26
After
13=0·26+13
Conditions: none
Continue with divisor and remainder; nonzero remainders decrease strictly.
Rule: euclidean_division · Uses: G001, S001
Before
divide 26 by 13
After
26=2·13+0
Conditions: none
Continue with divisor and remainder; nonzero remainders decrease strictly.
Rule: euclidean_division · Uses: G001, S002
Before
a·x := mul(13, 1)
After
a·x = 13
Conditions: none
Multiply by the original signed a.
Rule: exact_rational_arithmetic · Uses: G001, S003
Before
n·y := mul(26, 0)
After
n·y = 0
Conditions: none
Retain the modulus coefficient as well.
Rule: exact_rational_arithmetic · Uses: G001, S004
Before
Bezout value := sum(13, 0)
After
Bezout value = 13
Conditions: none
The two terms must sum to the final nonzero remainder, the gcd.
Rule: exact_rational_arithmetic · Uses: G001, S005
Before
gcd(13,26)=13>1
After
no u can satisfy a·u≡1 (mod n)
Conditions: none
An inverse would give au+nv=1, impossible because the common divisor g divides the left side but not1.
Rule: nonunit_obstruction · Uses: G001, S006
Before
inverse does not exist
After
inverse field=null; exists=false
Conditions: none
null denotes an absent inverse, not a fabricated inverse representative0.
Rule: undefined_inverse · Uses: G001, S007
S008 · premise_and_result_audit — Check integer identities, remainder bounds and gcd conditions; congruence is not integer equality.S007 · premise_and_result_audit — Check integer identities, remainder bounds and gcd conditions; congruence is not integer equality.S006 · premise_and_result_audit — Recompute Bezout value with exact rational arithmetic, not rounded decimals.S005 · premise_and_result_audit — Recompute n·y with exact rational arithmetic, not rounded decimals.S004 · premise_and_result_audit — Recompute a·x with exact rational arithmetic, not rounded decimals.S003 · premise_and_result_audit — Check integer identities, remainder bounds and gcd conditions; congruence is not integer equality.S002 · premise_and_result_audit — Check integer identities, remainder bounds and gcd conditions; congruence is not integer equality.S001 · premise_and_result_audit — Check integer identities, remainder bounds and gcd conditions; congruence is not integer equality.(13, 26, 13, null, No, nonunit_has_no_modular_inverse)
The full substitutions and premise audits recover the original answer, retaining its field order and verdict meanings.
Review date: 2026-10-26
Original questions, answers, step expressions, numeric ASTs and historical records are retained. Source candidate labels remain historical and are not overwritten as formal proof.
input commit: 0f7be61e2c22317a4075561dc822c87d881a50dboriginal question SHA-256: b674830744129304f4f3068f8a7024d22a2745878512c8a055cb6ab13f2cdeeacandidate record SHA-256: 936d739a73e1be0c802286e74840a954b2b7a61fb384fa5349bac4a420b7d731semantic review receipt SHA-256: 6c2c6d46aded7582a11ac41a8c0b3bdde2669a53bdb6e796eea2039994a02772question-first witness SHA-256: 77e43898df9efdbf8094ad81fe4ab91cf4b4bd82f481eb9b4699b73cb4da612bLean: NOT_RUN · human review: NOT_PERFORMED