Proof of Theorem dignn0flhalf
Step | Hyp | Ref
| Expression |
1 | | eluzge2nn0 12556 |
. . . 4
⊢ (𝐴 ∈
(ℤ≥‘2) → 𝐴 ∈
ℕ0) |
2 | | nn0eo 45762 |
. . . 4
⊢ (𝐴 ∈ ℕ0
→ ((𝐴 / 2) ∈
ℕ0 ∨ ((𝐴 + 1) / 2) ∈
ℕ0)) |
3 | 1, 2 | syl 17 |
. . 3
⊢ (𝐴 ∈
(ℤ≥‘2) → ((𝐴 / 2) ∈ ℕ0 ∨
((𝐴 + 1) / 2) ∈
ℕ0)) |
4 | | dignn0ehalf 45851 |
. . . . . . 7
⊢ (((𝐴 / 2) ∈ ℕ0
∧ 𝐴 ∈
ℕ0 ∧ 𝐼
∈ ℕ0) → ((𝐼 + 1)(digit‘2)𝐴) = (𝐼(digit‘2)(𝐴 / 2))) |
5 | 1, 4 | syl3an2 1162 |
. . . . . 6
⊢ (((𝐴 / 2) ∈ ℕ0
∧ 𝐴 ∈
(ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → ((𝐼 + 1)(digit‘2)𝐴) = (𝐼(digit‘2)(𝐴 / 2))) |
6 | | eluzelz 12521 |
. . . . . . . . . 10
⊢ (𝐴 ∈
(ℤ≥‘2) → 𝐴 ∈ ℤ) |
7 | | nn0z 12273 |
. . . . . . . . . 10
⊢ ((𝐴 / 2) ∈ ℕ0
→ (𝐴 / 2) ∈
ℤ) |
8 | | zefldiv2 45764 |
. . . . . . . . . 10
⊢ ((𝐴 ∈ ℤ ∧ (𝐴 / 2) ∈ ℤ) →
(⌊‘(𝐴 / 2)) =
(𝐴 / 2)) |
9 | 6, 7, 8 | syl2anr 596 |
. . . . . . . . 9
⊢ (((𝐴 / 2) ∈ ℕ0
∧ 𝐴 ∈
(ℤ≥‘2)) → (⌊‘(𝐴 / 2)) = (𝐴 / 2)) |
10 | 9 | eqcomd 2744 |
. . . . . . . 8
⊢ (((𝐴 / 2) ∈ ℕ0
∧ 𝐴 ∈
(ℤ≥‘2)) → (𝐴 / 2) = (⌊‘(𝐴 / 2))) |
11 | 10 | 3adant3 1130 |
. . . . . . 7
⊢ (((𝐴 / 2) ∈ ℕ0
∧ 𝐴 ∈
(ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → (𝐴 / 2) = (⌊‘(𝐴 / 2))) |
12 | 11 | oveq2d 7271 |
. . . . . 6
⊢ (((𝐴 / 2) ∈ ℕ0
∧ 𝐴 ∈
(ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → (𝐼(digit‘2)(𝐴 / 2)) = (𝐼(digit‘2)(⌊‘(𝐴 / 2)))) |
13 | 5, 12 | eqtrd 2778 |
. . . . 5
⊢ (((𝐴 / 2) ∈ ℕ0
∧ 𝐴 ∈
(ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → ((𝐼 + 1)(digit‘2)𝐴) = (𝐼(digit‘2)(⌊‘(𝐴 / 2)))) |
14 | 13 | 3exp 1117 |
. . . 4
⊢ ((𝐴 / 2) ∈ ℕ0
→ (𝐴 ∈
(ℤ≥‘2) → (𝐼 ∈ ℕ0 → ((𝐼 + 1)(digit‘2)𝐴) = (𝐼(digit‘2)(⌊‘(𝐴 / 2)))))) |
15 | 6 | 3ad2ant2 1132 |
. . . . . . . 8
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → 𝐴 ∈
ℤ) |
16 | | simp2 1135 |
. . . . . . . . 9
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → 𝐴 ∈
(ℤ≥‘2)) |
17 | | simp1 1134 |
. . . . . . . . 9
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → ((𝐴 + 1) / 2) ∈
ℕ0) |
18 | | nno 16019 |
. . . . . . . . 9
⊢ ((𝐴 ∈
(ℤ≥‘2) ∧ ((𝐴 + 1) / 2) ∈ ℕ0)
→ ((𝐴 − 1) / 2)
∈ ℕ) |
19 | 16, 17, 18 | syl2anc 583 |
. . . . . . . 8
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → ((𝐴 − 1) / 2) ∈
ℕ) |
20 | | simp3 1136 |
. . . . . . . 8
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → 𝐼 ∈
ℕ0) |
21 | | dignn0flhalflem2 45850 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℤ ∧ ((𝐴 − 1) / 2) ∈ ℕ
∧ 𝐼 ∈
ℕ0) → (⌊‘(𝐴 / (2↑(𝐼 + 1)))) =
(⌊‘((⌊‘(𝐴 / 2)) / (2↑𝐼)))) |
22 | 15, 19, 20, 21 | syl3anc 1369 |
. . . . . . 7
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) →
(⌊‘(𝐴 /
(2↑(𝐼 + 1)))) =
(⌊‘((⌊‘(𝐴 / 2)) / (2↑𝐼)))) |
23 | 22 | oveq1d 7270 |
. . . . . 6
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) →
((⌊‘(𝐴 /
(2↑(𝐼 + 1)))) mod 2) =
((⌊‘((⌊‘(𝐴 / 2)) / (2↑𝐼))) mod 2)) |
24 | | 2nn 11976 |
. . . . . . . 8
⊢ 2 ∈
ℕ |
25 | 24 | a1i 11 |
. . . . . . 7
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → 2 ∈
ℕ) |
26 | | peano2nn0 12203 |
. . . . . . . 8
⊢ (𝐼 ∈ ℕ0
→ (𝐼 + 1) ∈
ℕ0) |
27 | 26 | 3ad2ant3 1133 |
. . . . . . 7
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → (𝐼 + 1) ∈
ℕ0) |
28 | | nn0rp0 13116 |
. . . . . . . . 9
⊢ (𝐴 ∈ ℕ0
→ 𝐴 ∈
(0[,)+∞)) |
29 | 1, 28 | syl 17 |
. . . . . . . 8
⊢ (𝐴 ∈
(ℤ≥‘2) → 𝐴 ∈ (0[,)+∞)) |
30 | 29 | 3ad2ant2 1132 |
. . . . . . 7
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → 𝐴 ∈
(0[,)+∞)) |
31 | | nn0digval 45834 |
. . . . . . 7
⊢ ((2
∈ ℕ ∧ (𝐼 +
1) ∈ ℕ0 ∧ 𝐴 ∈ (0[,)+∞)) → ((𝐼 + 1)(digit‘2)𝐴) = ((⌊‘(𝐴 / (2↑(𝐼 + 1)))) mod 2)) |
32 | 25, 27, 30, 31 | syl3anc 1369 |
. . . . . 6
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → ((𝐼 + 1)(digit‘2)𝐴) = ((⌊‘(𝐴 / (2↑(𝐼 + 1)))) mod 2)) |
33 | | eluzelre 12522 |
. . . . . . . . . . 11
⊢ (𝐴 ∈
(ℤ≥‘2) → 𝐴 ∈ ℝ) |
34 | 33 | rehalfcld 12150 |
. . . . . . . . . 10
⊢ (𝐴 ∈
(ℤ≥‘2) → (𝐴 / 2) ∈ ℝ) |
35 | 1 | nn0ge0d 12226 |
. . . . . . . . . . 11
⊢ (𝐴 ∈
(ℤ≥‘2) → 0 ≤ 𝐴) |
36 | | 2re 11977 |
. . . . . . . . . . . . 13
⊢ 2 ∈
ℝ |
37 | | 2pos 12006 |
. . . . . . . . . . . . 13
⊢ 0 <
2 |
38 | 36, 37 | pm3.2i 470 |
. . . . . . . . . . . 12
⊢ (2 ∈
ℝ ∧ 0 < 2) |
39 | 38 | a1i 11 |
. . . . . . . . . . 11
⊢ (𝐴 ∈
(ℤ≥‘2) → (2 ∈ ℝ ∧ 0 <
2)) |
40 | | divge0 11774 |
. . . . . . . . . . 11
⊢ (((𝐴 ∈ ℝ ∧ 0 ≤
𝐴) ∧ (2 ∈ ℝ
∧ 0 < 2)) → 0 ≤ (𝐴 / 2)) |
41 | 33, 35, 39, 40 | syl21anc 834 |
. . . . . . . . . 10
⊢ (𝐴 ∈
(ℤ≥‘2) → 0 ≤ (𝐴 / 2)) |
42 | | flge0nn0 13468 |
. . . . . . . . . 10
⊢ (((𝐴 / 2) ∈ ℝ ∧ 0
≤ (𝐴 / 2)) →
(⌊‘(𝐴 / 2))
∈ ℕ0) |
43 | 34, 41, 42 | syl2anc 583 |
. . . . . . . . 9
⊢ (𝐴 ∈
(ℤ≥‘2) → (⌊‘(𝐴 / 2)) ∈
ℕ0) |
44 | 43 | 3ad2ant2 1132 |
. . . . . . . 8
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) →
(⌊‘(𝐴 / 2))
∈ ℕ0) |
45 | | nn0rp0 13116 |
. . . . . . . 8
⊢
((⌊‘(𝐴 /
2)) ∈ ℕ0 → (⌊‘(𝐴 / 2)) ∈
(0[,)+∞)) |
46 | 44, 45 | syl 17 |
. . . . . . 7
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) →
(⌊‘(𝐴 / 2))
∈ (0[,)+∞)) |
47 | | nn0digval 45834 |
. . . . . . 7
⊢ ((2
∈ ℕ ∧ 𝐼
∈ ℕ0 ∧ (⌊‘(𝐴 / 2)) ∈ (0[,)+∞)) → (𝐼(digit‘2)(⌊‘(𝐴 / 2))) =
((⌊‘((⌊‘(𝐴 / 2)) / (2↑𝐼))) mod 2)) |
48 | 25, 20, 46, 47 | syl3anc 1369 |
. . . . . 6
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → (𝐼(digit‘2)(⌊‘(𝐴 / 2))) =
((⌊‘((⌊‘(𝐴 / 2)) / (2↑𝐼))) mod 2)) |
49 | 23, 32, 48 | 3eqtr4d 2788 |
. . . . 5
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → ((𝐼 + 1)(digit‘2)𝐴) = (𝐼(digit‘2)(⌊‘(𝐴 / 2)))) |
50 | 49 | 3exp 1117 |
. . . 4
⊢ (((𝐴 + 1) / 2) ∈
ℕ0 → (𝐴 ∈ (ℤ≥‘2)
→ (𝐼 ∈
ℕ0 → ((𝐼 + 1)(digit‘2)𝐴) = (𝐼(digit‘2)(⌊‘(𝐴 / 2)))))) |
51 | 14, 50 | jaoi 853 |
. . 3
⊢ (((𝐴 / 2) ∈ ℕ0
∨ ((𝐴 + 1) / 2) ∈
ℕ0) → (𝐴 ∈ (ℤ≥‘2)
→ (𝐼 ∈
ℕ0 → ((𝐼 + 1)(digit‘2)𝐴) = (𝐼(digit‘2)(⌊‘(𝐴 / 2)))))) |
52 | 3, 51 | mpcom 38 |
. 2
⊢ (𝐴 ∈
(ℤ≥‘2) → (𝐼 ∈ ℕ0 → ((𝐼 + 1)(digit‘2)𝐴) = (𝐼(digit‘2)(⌊‘(𝐴 / 2))))) |
53 | 52 | imp 406 |
1
⊢ ((𝐴 ∈
(ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → ((𝐼 + 1)(digit‘2)𝐴) = (𝐼(digit‘2)(⌊‘(𝐴 / 2)))) |