This is an inofficial mirror of http://metamath.tirix.org for personal testing of a visualizer extension only.
Description: Minus one modulo a positive integer is equal to the integer minus one. (Contributed by AV, 14-Jul-2021)
| Ref | Expression | ||
|---|---|---|---|
| Assertion | m1modnnsub1 |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | 1re | ||
| 2 | nnrp | ||
| 3 | negmod | ||
| 4 | 1 2 3 | sylancr | |
| 5 | nnre | ||
| 6 | peano2rem | ||
| 7 | 5 6 | syl | |
| 8 | nnm1ge0 | ||
| 9 | 5 | ltm1d | |
| 10 | modid | ||
| 11 | 7 2 8 9 10 | syl22anc | |
| 12 | 4 11 | eqtrd |