Commit 555129f
committed
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_gcd` to `Nat.exists_mul_mod_eq_gcd`, and `Nat.exists_mul_emod_eq_one_of_coprime` to `Nat.exists_mul_mod_eq_one_of_coprime`. This is since the `%` operator on naturals is only ever named `mod`, whereas `emod` is 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 of `exists_mul_mod_eq_one_of_coprime`.1 parent d7b5141 commit 555129f
File tree
4 files changed
+26
-14
lines changed- Archive/Imo
- Mathlib
- Data/Int
- GroupTheory
- RingTheory/RootsOfUnity
4 files changed
+26
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
140 | 139 | | |
141 | | - | |
142 | | - | |
143 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
150 | 162 | | |
151 | 163 | | |
152 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments