Description: The floor of an odd integer divided by 2 is equal to the integer first decreased by 1 and then divided by 2. (Contributed by AV, 7-Jun-2020)
Ref | Expression | ||
---|---|---|---|
Assertion | zofldiv2 | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | zcn | |
|
2 | npcan1 | |
|
3 | 2 | eqcomd | |
4 | 1 3 | syl | |
5 | 4 | oveq1d | |
6 | peano2zm | |
|
7 | 6 | zcnd | |
8 | 1cnd | |
|
9 | 2cnne0 | |
|
10 | 9 | a1i | |
11 | divdir | |
|
12 | 7 8 10 11 | syl3anc | |
13 | 5 12 | eqtrd | |
14 | 13 | fveq2d | |
15 | 14 | adantr | |
16 | halfge0 | |
|
17 | halflt1 | |
|
18 | 16 17 | pm3.2i | |
19 | zob | |
|
20 | 19 | biimpa | |
21 | halfre | |
|
22 | flbi2 | |
|
23 | 20 21 22 | sylancl | |
24 | 18 23 | mpbiri | |
25 | 15 24 | eqtrd | |