Commit 2025-11-20 13:23 555129fb
View on Github →chore(Data/Int/GCD): review API (#31140) This PR makes a few changes, but they are very linked so a single PR seems easiest:
- Rename
Nat.exists_mul_emod_eq_gcdtoNat.exists_mul_mod_eq_gcd, andNat.exists_mul_emod_eq_one_of_coprimetoNat.exists_mul_mod_eq_one_of_coprime. This is since the%operator on naturals is only ever namedmod, whereasemodis reserved for the%operator on integers. - Strengthen the statements of those two to additionally deduce that
m < k. - Add
exists_mul_mod_eq_of_coprime, which is the non-one generalisation ofexists_mul_mod_eq_one_of_coprime.