Description: If a real number modulo a positive real number equals the positive real number decreased by 1, the real number increased by 1 modulo the positive real number equals 0. (Contributed by AV, 2-Nov-2018)
Ref | Expression | ||
---|---|---|---|
Assertion | modm1p1mod0 | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | 1re | |
|
2 | modaddmod | |
|
3 | 1 2 | mp3an2 | |
4 | 3 | eqcomd | |
5 | 4 | adantr | |
6 | oveq1 | |
|
7 | 6 | oveq1d | |
8 | rpcn | |
|
9 | npcan1 | |
|
10 | 8 9 | syl | |
11 | 10 | oveq1d | |
12 | modid0 | |
|
13 | 11 12 | eqtrd | |
14 | 13 | adantl | |
15 | 7 14 | sylan9eqr | |
16 | 5 15 | eqtrd | |
17 | 16 | ex | |