Metamath Proof Explorer


Theorem nneom

Description: A positive integer is even or odd. (Contributed by AV, 30-May-2020)

Ref Expression
Assertion nneom N N 2 N 1 2 0

Proof

Step Hyp Ref Expression
1 nneop N N 2 N + 1 2
2 nnnn0 N N 0
3 nnnn0 N + 1 2 N + 1 2 0
4 nn0o N 0 N + 1 2 0 N 1 2 0
5 2 3 4 syl2an N N + 1 2 N 1 2 0
6 5 ex N N + 1 2 N 1 2 0
7 6 orim2d N N 2 N + 1 2 N 2 N 1 2 0
8 1 7 mpd N N 2 N 1 2 0