Metamath Proof Explorer


Theorem 0dig2pr01

Description: The integers 0 and 1 correspond to their last bit. (Contributed by AV, 28-May-2010)

Ref Expression
Assertion 0dig2pr01 N010digit2N=N

Proof

Step Hyp Ref Expression
1 elpri N01N=0N=1
2 2nn 2
3 0z 0
4 dig0 200digit20=0
5 2 3 4 mp2an 0digit20=0
6 oveq2 N=00digit2N=0digit20
7 id N=0N=0
8 5 6 7 3eqtr4a N=00digit2N=N
9 2z 2
10 uzid 222
11 0dig1 220digit21=1
12 9 10 11 mp2b 0digit21=1
13 oveq2 N=10digit2N=0digit21
14 id N=1N=1
15 12 13 14 3eqtr4a N=10digit2N=N
16 8 15 jaoi N=0N=10digit2N=N
17 1 16 syl N010digit2N=N