Proof of Theorem dignn0flhalf
Step | Hyp | Ref
| Expression |
1 | | eluzge2nn0 12627 |
. . . 4
⊢ (𝐴 ∈
(ℤ≥‘2) → 𝐴 ∈
ℕ0) |
2 | | nn0eo 45874 |
. . . 4
⊢ (𝐴 ∈ ℕ0
→ ((𝐴 / 2) ∈
ℕ0 ∨ ((𝐴 + 1) / 2) ∈
ℕ0)) |
3 | 1, 2 | syl 17 |
. . 3
⊢ (𝐴 ∈
(ℤ≥‘2) → ((𝐴 / 2) ∈ ℕ0 ∨
((𝐴 + 1) / 2) ∈
ℕ0)) |
4 | | dignn0ehalf 45963 |
. . . . . . 7
⊢ (((𝐴 / 2) ∈ ℕ0
∧ 𝐴 ∈
ℕ0 ∧ 𝐼
∈ ℕ0) → ((𝐼 + 1)(digit‘2)𝐴) = (𝐼(digit‘2)(𝐴 / 2))) |
5 | 1, 4 | syl3an2 1163 |
. . . . . 6
⊢ (((𝐴 / 2) ∈ ℕ0
∧ 𝐴 ∈
(ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → ((𝐼 + 1)(digit‘2)𝐴) = (𝐼(digit‘2)(𝐴 / 2))) |
6 | | eluzelz 12592 |
. . . . . . . . . 10
⊢ (𝐴 ∈
(ℤ≥‘2) → 𝐴 ∈ ℤ) |
7 | | nn0z 12343 |
. . . . . . . . . 10
⊢ ((𝐴 / 2) ∈ ℕ0
→ (𝐴 / 2) ∈
ℤ) |
8 | | zefldiv2 45876 |
. . . . . . . . . 10
⊢ ((𝐴 ∈ ℤ ∧ (𝐴 / 2) ∈ ℤ) →
(⌊‘(𝐴 / 2)) =
(𝐴 / 2)) |
9 | 6, 7, 8 | syl2anr 597 |
. . . . . . . . 9
⊢ (((𝐴 / 2) ∈ ℕ0
∧ 𝐴 ∈
(ℤ≥‘2)) → (⌊‘(𝐴 / 2)) = (𝐴 / 2)) |
10 | 9 | eqcomd 2744 |
. . . . . . . 8
⊢ (((𝐴 / 2) ∈ ℕ0
∧ 𝐴 ∈
(ℤ≥‘2)) → (𝐴 / 2) = (⌊‘(𝐴 / 2))) |
11 | 10 | 3adant3 1131 |
. . . . . . 7
⊢ (((𝐴 / 2) ∈ ℕ0
∧ 𝐴 ∈
(ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → (𝐴 / 2) = (⌊‘(𝐴 / 2))) |
12 | 11 | oveq2d 7291 |
. . . . . 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 1118 |
. . . 4
⊢ ((𝐴 / 2) ∈ ℕ0
→ (𝐴 ∈
(ℤ≥‘2) → (𝐼 ∈ ℕ0 → ((𝐼 + 1)(digit‘2)𝐴) = (𝐼(digit‘2)(⌊‘(𝐴 / 2)))))) |
15 | 6 | 3ad2ant2 1133 |
. . . . . . . 8
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → 𝐴 ∈
ℤ) |
16 | | simp2 1136 |
. . . . . . . . 9
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → 𝐴 ∈
(ℤ≥‘2)) |
17 | | simp1 1135 |
. . . . . . . . 9
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → ((𝐴 + 1) / 2) ∈
ℕ0) |
18 | | nno 16091 |
. . . . . . . . 9
⊢ ((𝐴 ∈
(ℤ≥‘2) ∧ ((𝐴 + 1) / 2) ∈ ℕ0)
→ ((𝐴 − 1) / 2)
∈ ℕ) |
19 | 16, 17, 18 | syl2anc 584 |
. . . . . . . 8
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → ((𝐴 − 1) / 2) ∈
ℕ) |
20 | | simp3 1137 |
. . . . . . . 8
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → 𝐼 ∈
ℕ0) |
21 | | dignn0flhalflem2 45962 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℤ ∧ ((𝐴 − 1) / 2) ∈ ℕ
∧ 𝐼 ∈
ℕ0) → (⌊‘(𝐴 / (2↑(𝐼 + 1)))) =
(⌊‘((⌊‘(𝐴 / 2)) / (2↑𝐼)))) |
22 | 15, 19, 20, 21 | syl3anc 1370 |
. . . . . . 7
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) →
(⌊‘(𝐴 /
(2↑(𝐼 + 1)))) =
(⌊‘((⌊‘(𝐴 / 2)) / (2↑𝐼)))) |
23 | 22 | oveq1d 7290 |
. . . . . 6
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) →
((⌊‘(𝐴 /
(2↑(𝐼 + 1)))) mod 2) =
((⌊‘((⌊‘(𝐴 / 2)) / (2↑𝐼))) mod 2)) |
24 | | 2nn 12046 |
. . . . . . . 8
⊢ 2 ∈
ℕ |
25 | 24 | a1i 11 |
. . . . . . 7
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → 2 ∈
ℕ) |
26 | | peano2nn0 12273 |
. . . . . . . 8
⊢ (𝐼 ∈ ℕ0
→ (𝐼 + 1) ∈
ℕ0) |
27 | 26 | 3ad2ant3 1134 |
. . . . . . 7
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → (𝐼 + 1) ∈
ℕ0) |
28 | | nn0rp0 13187 |
. . . . . . . . 9
⊢ (𝐴 ∈ ℕ0
→ 𝐴 ∈
(0[,)+∞)) |
29 | 1, 28 | syl 17 |
. . . . . . . 8
⊢ (𝐴 ∈
(ℤ≥‘2) → 𝐴 ∈ (0[,)+∞)) |
30 | 29 | 3ad2ant2 1133 |
. . . . . . 7
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → 𝐴 ∈
(0[,)+∞)) |
31 | | nn0digval 45946 |
. . . . . . 7
⊢ ((2
∈ ℕ ∧ (𝐼 +
1) ∈ ℕ0 ∧ 𝐴 ∈ (0[,)+∞)) → ((𝐼 + 1)(digit‘2)𝐴) = ((⌊‘(𝐴 / (2↑(𝐼 + 1)))) mod 2)) |
32 | 25, 27, 30, 31 | syl3anc 1370 |
. . . . . 6
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → ((𝐼 + 1)(digit‘2)𝐴) = ((⌊‘(𝐴 / (2↑(𝐼 + 1)))) mod 2)) |
33 | | eluzelre 12593 |
. . . . . . . . . . 11
⊢ (𝐴 ∈
(ℤ≥‘2) → 𝐴 ∈ ℝ) |
34 | 33 | rehalfcld 12220 |
. . . . . . . . . 10
⊢ (𝐴 ∈
(ℤ≥‘2) → (𝐴 / 2) ∈ ℝ) |
35 | 1 | nn0ge0d 12296 |
. . . . . . . . . . 11
⊢ (𝐴 ∈
(ℤ≥‘2) → 0 ≤ 𝐴) |
36 | | 2re 12047 |
. . . . . . . . . . . . 13
⊢ 2 ∈
ℝ |
37 | | 2pos 12076 |
. . . . . . . . . . . . 13
⊢ 0 <
2 |
38 | 36, 37 | pm3.2i 471 |
. . . . . . . . . . . 12
⊢ (2 ∈
ℝ ∧ 0 < 2) |
39 | 38 | a1i 11 |
. . . . . . . . . . 11
⊢ (𝐴 ∈
(ℤ≥‘2) → (2 ∈ ℝ ∧ 0 <
2)) |
40 | | divge0 11844 |
. . . . . . . . . . 11
⊢ (((𝐴 ∈ ℝ ∧ 0 ≤
𝐴) ∧ (2 ∈ ℝ
∧ 0 < 2)) → 0 ≤ (𝐴 / 2)) |
41 | 33, 35, 39, 40 | syl21anc 835 |
. . . . . . . . . 10
⊢ (𝐴 ∈
(ℤ≥‘2) → 0 ≤ (𝐴 / 2)) |
42 | | flge0nn0 13540 |
. . . . . . . . . 10
⊢ (((𝐴 / 2) ∈ ℝ ∧ 0
≤ (𝐴 / 2)) →
(⌊‘(𝐴 / 2))
∈ ℕ0) |
43 | 34, 41, 42 | syl2anc 584 |
. . . . . . . . 9
⊢ (𝐴 ∈
(ℤ≥‘2) → (⌊‘(𝐴 / 2)) ∈
ℕ0) |
44 | 43 | 3ad2ant2 1133 |
. . . . . . . 8
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) →
(⌊‘(𝐴 / 2))
∈ ℕ0) |
45 | | nn0rp0 13187 |
. . . . . . . 8
⊢
((⌊‘(𝐴 /
2)) ∈ ℕ0 → (⌊‘(𝐴 / 2)) ∈
(0[,)+∞)) |
46 | 44, 45 | syl 17 |
. . . . . . 7
⊢ ((((𝐴 + 1) / 2) ∈
ℕ0 ∧ 𝐴
∈ (ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) →
(⌊‘(𝐴 / 2))
∈ (0[,)+∞)) |
47 | | nn0digval 45946 |
. . . . . . 7
⊢ ((2
∈ ℕ ∧ 𝐼
∈ ℕ0 ∧ (⌊‘(𝐴 / 2)) ∈ (0[,)+∞)) → (𝐼(digit‘2)(⌊‘(𝐴 / 2))) =
((⌊‘((⌊‘(𝐴 / 2)) / (2↑𝐼))) mod 2)) |
48 | 25, 20, 46, 47 | syl3anc 1370 |
. . . . . 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 1118 |
. . . 4
⊢ (((𝐴 + 1) / 2) ∈
ℕ0 → (𝐴 ∈ (ℤ≥‘2)
→ (𝐼 ∈
ℕ0 → ((𝐼 + 1)(digit‘2)𝐴) = (𝐼(digit‘2)(⌊‘(𝐴 / 2)))))) |
51 | 14, 50 | jaoi 854 |
. . 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 407 |
1
⊢ ((𝐴 ∈
(ℤ≥‘2) ∧ 𝐼 ∈ ℕ0) → ((𝐼 + 1)(digit‘2)𝐴) = (𝐼(digit‘2)(⌊‘(𝐴 / 2)))) |