Description: A digit of a nonnegative integer N in a binary system is either 0 or 1. (Contributed by AV, 24-May-2020)
Ref | Expression | ||
---|---|---|---|
Assertion | dig2nn0 | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | 2nn | |
|
2 | 1 | a1i | |
3 | simpr | |
|
4 | nn0rp0 | |
|
5 | 4 | adantr | |
6 | digval | |
|
7 | 2 3 5 6 | syl3anc | |
8 | 2re | |
|
9 | 8 | a1i | |
10 | 2ne0 | |
|
11 | 10 | a1i | |
12 | znegcl | |
|
13 | 12 | adantl | |
14 | 9 11 13 | reexpclzd | |
15 | nn0re | |
|
16 | 15 | adantr | |
17 | 14 16 | remulcld | |
18 | 17 | flcld | |
19 | elmod2 | |
|
20 | 18 19 | syl | |
21 | 7 20 | eqeltrd | |