Metamath Proof Explorer


Theorem evenm1odd

Description: The predecessor of an even number is odd. (Contributed by AV, 16-Jun-2020)

Ref Expression
Assertion evenm1odd Z Even Z 1 Odd

Proof

Step Hyp Ref Expression
1 evenz Z Even Z
2 peano2zm Z Z 1
3 1 2 syl Z Even Z 1
4 iseven Z Even Z Z 2
5 zcn Z Z
6 npcan1 Z Z - 1 + 1 = Z
7 5 6 syl Z Z - 1 + 1 = Z
8 7 eqcomd Z Z = Z - 1 + 1
9 8 oveq1d Z Z 2 = Z - 1 + 1 2
10 9 eleq1d Z Z 2 Z - 1 + 1 2
11 10 biimpa Z Z 2 Z - 1 + 1 2
12 4 11 sylbi Z Even Z - 1 + 1 2
13 isodd Z 1 Odd Z 1 Z - 1 + 1 2
14 3 12 13 sylanbrc Z Even Z 1 Odd