Step | Hyp | Ref
| Expression |
1 | | df-fib 32364 |
. . . 4
⊢ Fibci =
(〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1))))) |
2 | 1 | fveq1i 6775 |
. . 3
⊢
(Fibci‘(𝑁 +
1)) = ((〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1)))))‘(𝑁 + 1)) |
3 | 2 | a1i 11 |
. 2
⊢ (𝑁 ∈ ℕ →
(Fibci‘(𝑁 + 1)) =
((〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1)))))‘(𝑁 + 1))) |
4 | | nn0ex 12239 |
. . . 4
⊢
ℕ0 ∈ V |
5 | 4 | a1i 11 |
. . 3
⊢ (𝑁 ∈ ℕ →
ℕ0 ∈ V) |
6 | | 0nn0 12248 |
. . . . 5
⊢ 0 ∈
ℕ0 |
7 | 6 | a1i 11 |
. . . 4
⊢ (𝑁 ∈ ℕ → 0 ∈
ℕ0) |
8 | | 1nn0 12249 |
. . . . 5
⊢ 1 ∈
ℕ0 |
9 | 8 | a1i 11 |
. . . 4
⊢ (𝑁 ∈ ℕ → 1 ∈
ℕ0) |
10 | 7, 9 | s2cld 14584 |
. . 3
⊢ (𝑁 ∈ ℕ →
〈“01”〉 ∈ Word ℕ0) |
11 | | eqid 2738 |
. . 3
⊢ (Word
ℕ0 ∩ (◡♯
“
(ℤ≥‘(♯‘〈“01”〉)))) =
(Word ℕ0 ∩ (◡♯ “
(ℤ≥‘(♯‘〈“01”〉)))) |
12 | | fiblem 32365 |
. . . 4
⊢ (𝑤 ∈ (Word
ℕ0 ∩ (◡♯
“ (ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1)))):(Word ℕ0
∩ (◡♯ “
(ℤ≥‘(♯‘〈“01”〉))))⟶ℕ0 |
13 | 12 | a1i 11 |
. . 3
⊢ (𝑁 ∈ ℕ → (𝑤 ∈ (Word
ℕ0 ∩ (◡♯
“ (ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1)))):(Word ℕ0
∩ (◡♯ “
(ℤ≥‘(♯‘〈“01”〉))))⟶ℕ0) |
14 | | eluzp1p1 12610 |
. . . . 5
⊢ (𝑁 ∈
(ℤ≥‘1) → (𝑁 + 1) ∈
(ℤ≥‘(1 + 1))) |
15 | | nnuz 12621 |
. . . . 5
⊢ ℕ =
(ℤ≥‘1) |
16 | 14, 15 | eleq2s 2857 |
. . . 4
⊢ (𝑁 ∈ ℕ → (𝑁 + 1) ∈
(ℤ≥‘(1 + 1))) |
17 | | s2len 14602 |
. . . . . 6
⊢
(♯‘〈“01”〉) = 2 |
18 | | 1p1e2 12098 |
. . . . . 6
⊢ (1 + 1) =
2 |
19 | 17, 18 | eqtr4i 2769 |
. . . . 5
⊢
(♯‘〈“01”〉) = (1 + 1) |
20 | 19 | fveq2i 6777 |
. . . 4
⊢
(ℤ≥‘(♯‘〈“01”〉))
= (ℤ≥‘(1 + 1)) |
21 | 16, 20 | eleqtrrdi 2850 |
. . 3
⊢ (𝑁 ∈ ℕ → (𝑁 + 1) ∈
(ℤ≥‘(♯‘〈“01”〉))) |
22 | 5, 10, 11, 13, 21 | sseqp1 32362 |
. 2
⊢ (𝑁 ∈ ℕ →
((〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1)))))‘(𝑁 + 1)) = ((𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) −
1))))‘((〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1))))) ↾ (0..^(𝑁 + 1))))) |
23 | | id 22 |
. . . . . . 7
⊢ (𝑤 = 𝑡 → 𝑤 = 𝑡) |
24 | | fveq2 6774 |
. . . . . . . 8
⊢ (𝑤 = 𝑡 → (♯‘𝑤) = (♯‘𝑡)) |
25 | 24 | oveq1d 7290 |
. . . . . . 7
⊢ (𝑤 = 𝑡 → ((♯‘𝑤) − 2) = ((♯‘𝑡) − 2)) |
26 | 23, 25 | fveq12d 6781 |
. . . . . 6
⊢ (𝑤 = 𝑡 → (𝑤‘((♯‘𝑤) − 2)) = (𝑡‘((♯‘𝑡) − 2))) |
27 | 24 | oveq1d 7290 |
. . . . . . 7
⊢ (𝑤 = 𝑡 → ((♯‘𝑤) − 1) = ((♯‘𝑡) − 1)) |
28 | 23, 27 | fveq12d 6781 |
. . . . . 6
⊢ (𝑤 = 𝑡 → (𝑤‘((♯‘𝑤) − 1)) = (𝑡‘((♯‘𝑡) − 1))) |
29 | 26, 28 | oveq12d 7293 |
. . . . 5
⊢ (𝑤 = 𝑡 → ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1))) = ((𝑡‘((♯‘𝑡) − 2)) + (𝑡‘((♯‘𝑡) − 1)))) |
30 | 29 | cbvmptv 5187 |
. . . 4
⊢ (𝑤 ∈ (Word
ℕ0 ∩ (◡♯
“ (ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1)))) = (𝑡 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑡‘((♯‘𝑡) − 2)) + (𝑡‘((♯‘𝑡) − 1)))) |
31 | 30 | a1i 11 |
. . 3
⊢ (𝑁 ∈ ℕ → (𝑤 ∈ (Word
ℕ0 ∩ (◡♯
“ (ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1)))) = (𝑡 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑡‘((♯‘𝑡) − 2)) + (𝑡‘((♯‘𝑡) − 1))))) |
32 | | simpr 485 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 =
((〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1))))) ↾ (0..^(𝑁 + 1)))) → 𝑡 =
((〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1))))) ↾ (0..^(𝑁 + 1)))) |
33 | 1 | a1i 11 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 =
((〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1))))) ↾ (0..^(𝑁 + 1)))) → Fibci =
(〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1)))))) |
34 | 33 | reseq1d 5890 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 =
((〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1))))) ↾ (0..^(𝑁 + 1)))) → (Fibci ↾
(0..^(𝑁 + 1))) =
((〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1))))) ↾ (0..^(𝑁 + 1)))) |
35 | 32, 34 | eqtr4d 2781 |
. . . 4
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 =
((〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1))))) ↾ (0..^(𝑁 + 1)))) → 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) |
36 | | simpr 485 |
. . . . . . . . . . 11
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) |
37 | 36 | fveq2d 6778 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) →
(♯‘𝑡) =
(♯‘(Fibci ↾ (0..^(𝑁 + 1))))) |
38 | 5, 10, 11, 13 | sseqf 32359 |
. . . . . . . . . . . . 13
⊢ (𝑁 ∈ ℕ →
(〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) −
1))))):ℕ0⟶ℕ0) |
39 | 1 | a1i 11 |
. . . . . . . . . . . . . 14
⊢ (𝑁 ∈ ℕ → Fibci =
(〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1)))))) |
40 | 39 | feq1d 6585 |
. . . . . . . . . . . . 13
⊢ (𝑁 ∈ ℕ →
(Fibci:ℕ0⟶ℕ0 ↔
(〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) −
1))))):ℕ0⟶ℕ0)) |
41 | 38, 40 | mpbird 256 |
. . . . . . . . . . . 12
⊢ (𝑁 ∈ ℕ →
Fibci:ℕ0⟶ℕ0) |
42 | | nnnn0 12240 |
. . . . . . . . . . . . 13
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℕ0) |
43 | 42, 9 | nn0addcld 12297 |
. . . . . . . . . . . 12
⊢ (𝑁 ∈ ℕ → (𝑁 + 1) ∈
ℕ0) |
44 | 5, 41, 43 | subiwrdlen 32353 |
. . . . . . . . . . 11
⊢ (𝑁 ∈ ℕ →
(♯‘(Fibci ↾ (0..^(𝑁 + 1)))) = (𝑁 + 1)) |
45 | 44 | adantr 481 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) →
(♯‘(Fibci ↾ (0..^(𝑁 + 1)))) = (𝑁 + 1)) |
46 | 37, 45 | eqtrd 2778 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) →
(♯‘𝑡) = (𝑁 + 1)) |
47 | 46 | oveq1d 7290 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) →
((♯‘𝑡) −
2) = ((𝑁 + 1) −
2)) |
48 | | nncn 11981 |
. . . . . . . . . . 11
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℂ) |
49 | | 1cnd 10970 |
. . . . . . . . . . 11
⊢ (𝑁 ∈ ℕ → 1 ∈
ℂ) |
50 | | 2cnd 12051 |
. . . . . . . . . . 11
⊢ (𝑁 ∈ ℕ → 2 ∈
ℂ) |
51 | 48, 49, 50 | addsubassd 11352 |
. . . . . . . . . 10
⊢ (𝑁 ∈ ℕ → ((𝑁 + 1) − 2) = (𝑁 + (1 −
2))) |
52 | 48, 50, 49 | subsub2d 11361 |
. . . . . . . . . 10
⊢ (𝑁 ∈ ℕ → (𝑁 − (2 − 1)) = (𝑁 + (1 −
2))) |
53 | | 2m1e1 12099 |
. . . . . . . . . . . 12
⊢ (2
− 1) = 1 |
54 | 53 | oveq2i 7286 |
. . . . . . . . . . 11
⊢ (𝑁 − (2 − 1)) = (𝑁 − 1) |
55 | 54 | a1i 11 |
. . . . . . . . . 10
⊢ (𝑁 ∈ ℕ → (𝑁 − (2 − 1)) = (𝑁 − 1)) |
56 | 51, 52, 55 | 3eqtr2d 2784 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℕ → ((𝑁 + 1) − 2) = (𝑁 − 1)) |
57 | 56 | adantr 481 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → ((𝑁 + 1) − 2) = (𝑁 − 1)) |
58 | 47, 57 | eqtrd 2778 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) →
((♯‘𝑡) −
2) = (𝑁 −
1)) |
59 | 58 | fveq2d 6778 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → (𝑡‘((♯‘𝑡) − 2)) = (𝑡‘(𝑁 − 1))) |
60 | 36 | fveq1d 6776 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → (𝑡‘(𝑁 − 1)) = ((Fibci ↾ (0..^(𝑁 + 1)))‘(𝑁 − 1))) |
61 | | nnm1nn0 12274 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℕ → (𝑁 − 1) ∈
ℕ0) |
62 | | peano2nn 11985 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℕ → (𝑁 + 1) ∈
ℕ) |
63 | | nnre 11980 |
. . . . . . . . . . 11
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℝ) |
64 | | 2re 12047 |
. . . . . . . . . . . . 13
⊢ 2 ∈
ℝ |
65 | 64 | a1i 11 |
. . . . . . . . . . . 12
⊢ (𝑁 ∈ ℕ → 2 ∈
ℝ) |
66 | 63, 65 | readdcld 11004 |
. . . . . . . . . . 11
⊢ (𝑁 ∈ ℕ → (𝑁 + 2) ∈
ℝ) |
67 | | 1red 10976 |
. . . . . . . . . . 11
⊢ (𝑁 ∈ ℕ → 1 ∈
ℝ) |
68 | | 2rp 12735 |
. . . . . . . . . . . . 13
⊢ 2 ∈
ℝ+ |
69 | 68 | a1i 11 |
. . . . . . . . . . . 12
⊢ (𝑁 ∈ ℕ → 2 ∈
ℝ+) |
70 | 63, 69 | ltaddrpd 12805 |
. . . . . . . . . . 11
⊢ (𝑁 ∈ ℕ → 𝑁 < (𝑁 + 2)) |
71 | 63, 66, 67, 70 | ltsub1dd 11587 |
. . . . . . . . . 10
⊢ (𝑁 ∈ ℕ → (𝑁 − 1) < ((𝑁 + 2) −
1)) |
72 | 48, 50, 49 | addsubassd 11352 |
. . . . . . . . . . 11
⊢ (𝑁 ∈ ℕ → ((𝑁 + 2) − 1) = (𝑁 + (2 −
1))) |
73 | 53 | oveq2i 7286 |
. . . . . . . . . . 11
⊢ (𝑁 + (2 − 1)) = (𝑁 + 1) |
74 | 72, 73 | eqtrdi 2794 |
. . . . . . . . . 10
⊢ (𝑁 ∈ ℕ → ((𝑁 + 2) − 1) = (𝑁 + 1)) |
75 | 71, 74 | breqtrd 5100 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℕ → (𝑁 − 1) < (𝑁 + 1)) |
76 | | elfzo0 13428 |
. . . . . . . . 9
⊢ ((𝑁 − 1) ∈ (0..^(𝑁 + 1)) ↔ ((𝑁 − 1) ∈
ℕ0 ∧ (𝑁 + 1) ∈ ℕ ∧ (𝑁 − 1) < (𝑁 + 1))) |
77 | 61, 62, 75, 76 | syl3anbrc 1342 |
. . . . . . . 8
⊢ (𝑁 ∈ ℕ → (𝑁 − 1) ∈ (0..^(𝑁 + 1))) |
78 | 77 | adantr 481 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → (𝑁 − 1) ∈ (0..^(𝑁 + 1))) |
79 | | fvres 6793 |
. . . . . . 7
⊢ ((𝑁 − 1) ∈ (0..^(𝑁 + 1)) → ((Fibci ↾
(0..^(𝑁 + 1)))‘(𝑁 − 1)) =
(Fibci‘(𝑁 −
1))) |
80 | 78, 79 | syl 17 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → ((Fibci ↾
(0..^(𝑁 + 1)))‘(𝑁 − 1)) =
(Fibci‘(𝑁 −
1))) |
81 | 59, 60, 80 | 3eqtrd 2782 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → (𝑡‘((♯‘𝑡) − 2)) =
(Fibci‘(𝑁 −
1))) |
82 | 46 | oveq1d 7290 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) →
((♯‘𝑡) −
1) = ((𝑁 + 1) −
1)) |
83 | | simpl 483 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → 𝑁 ∈
ℕ) |
84 | 83 | nncnd 11989 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → 𝑁 ∈
ℂ) |
85 | | 1cnd 10970 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → 1 ∈
ℂ) |
86 | 84, 85 | pncand 11333 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → ((𝑁 + 1) − 1) = 𝑁) |
87 | 82, 86 | eqtrd 2778 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) →
((♯‘𝑡) −
1) = 𝑁) |
88 | 87 | fveq2d 6778 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → (𝑡‘((♯‘𝑡) − 1)) = (𝑡‘𝑁)) |
89 | 36 | fveq1d 6776 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → (𝑡‘𝑁) = ((Fibci ↾ (0..^(𝑁 + 1)))‘𝑁)) |
90 | | nn0fz0 13354 |
. . . . . . . . . 10
⊢ (𝑁 ∈ ℕ0
↔ 𝑁 ∈ (0...𝑁)) |
91 | 42, 90 | sylib 217 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℕ → 𝑁 ∈ (0...𝑁)) |
92 | | nnz 12342 |
. . . . . . . . . 10
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℤ) |
93 | | fzval3 13456 |
. . . . . . . . . 10
⊢ (𝑁 ∈ ℤ →
(0...𝑁) = (0..^(𝑁 + 1))) |
94 | 92, 93 | syl 17 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℕ →
(0...𝑁) = (0..^(𝑁 + 1))) |
95 | 91, 94 | eleqtrd 2841 |
. . . . . . . 8
⊢ (𝑁 ∈ ℕ → 𝑁 ∈ (0..^(𝑁 + 1))) |
96 | 95 | adantr 481 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → 𝑁 ∈ (0..^(𝑁 + 1))) |
97 | | fvres 6793 |
. . . . . . 7
⊢ (𝑁 ∈ (0..^(𝑁 + 1)) → ((Fibci ↾ (0..^(𝑁 + 1)))‘𝑁) = (Fibci‘𝑁)) |
98 | 96, 97 | syl 17 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → ((Fibci ↾
(0..^(𝑁 + 1)))‘𝑁) = (Fibci‘𝑁)) |
99 | 88, 89, 98 | 3eqtrd 2782 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → (𝑡‘((♯‘𝑡) − 1)) =
(Fibci‘𝑁)) |
100 | 81, 99 | oveq12d 7293 |
. . . 4
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 = (Fibci ↾ (0..^(𝑁 + 1)))) → ((𝑡‘((♯‘𝑡) − 2)) + (𝑡‘((♯‘𝑡) − 1))) =
((Fibci‘(𝑁 −
1)) + (Fibci‘𝑁))) |
101 | 35, 100 | syldan 591 |
. . 3
⊢ ((𝑁 ∈ ℕ ∧ 𝑡 =
((〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1))))) ↾ (0..^(𝑁 + 1)))) → ((𝑡‘((♯‘𝑡) − 2)) + (𝑡‘((♯‘𝑡) − 1))) =
((Fibci‘(𝑁 −
1)) + (Fibci‘𝑁))) |
102 | 39 | reseq1d 5890 |
. . . 4
⊢ (𝑁 ∈ ℕ → (Fibci
↾ (0..^(𝑁 + 1))) =
((〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1))))) ↾ (0..^(𝑁 + 1)))) |
103 | 5, 41, 43 | subiwrd 32352 |
. . . . 5
⊢ (𝑁 ∈ ℕ → (Fibci
↾ (0..^(𝑁 + 1)))
∈ Word ℕ0) |
104 | | ovex 7308 |
. . . . . . . . 9
⊢
(〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1))))) ∈ V |
105 | 1, 104 | eqeltri 2835 |
. . . . . . . 8
⊢ Fibci
∈ V |
106 | 105 | resex 5939 |
. . . . . . 7
⊢ (Fibci
↾ (0..^(𝑁 + 1)))
∈ V |
107 | 106 | a1i 11 |
. . . . . 6
⊢ (𝑁 ∈ ℕ → (Fibci
↾ (0..^(𝑁 + 1)))
∈ V) |
108 | 18 | fveq2i 6777 |
. . . . . . . 8
⊢
(ℤ≥‘(1 + 1)) =
(ℤ≥‘2) |
109 | 16, 108 | eleqtrdi 2849 |
. . . . . . 7
⊢ (𝑁 ∈ ℕ → (𝑁 + 1) ∈
(ℤ≥‘2)) |
110 | 44, 109 | eqeltrd 2839 |
. . . . . 6
⊢ (𝑁 ∈ ℕ →
(♯‘(Fibci ↾ (0..^(𝑁 + 1)))) ∈
(ℤ≥‘2)) |
111 | | hashf 14052 |
. . . . . . 7
⊢
♯:V⟶(ℕ0 ∪ {+∞}) |
112 | | ffn 6600 |
. . . . . . 7
⊢
(♯:V⟶(ℕ0 ∪ {+∞}) → ♯
Fn V) |
113 | | elpreima 6935 |
. . . . . . 7
⊢ (♯
Fn V → ((Fibci ↾ (0..^(𝑁 + 1))) ∈ (◡♯ “
(ℤ≥‘2)) ↔ ((Fibci ↾ (0..^(𝑁 + 1))) ∈ V ∧
(♯‘(Fibci ↾ (0..^(𝑁 + 1)))) ∈
(ℤ≥‘2)))) |
114 | 111, 112,
113 | mp2b 10 |
. . . . . 6
⊢ ((Fibci
↾ (0..^(𝑁 + 1)))
∈ (◡♯ “
(ℤ≥‘2)) ↔ ((Fibci ↾ (0..^(𝑁 + 1))) ∈ V ∧
(♯‘(Fibci ↾ (0..^(𝑁 + 1)))) ∈
(ℤ≥‘2))) |
115 | 107, 110,
114 | sylanbrc 583 |
. . . . 5
⊢ (𝑁 ∈ ℕ → (Fibci
↾ (0..^(𝑁 + 1)))
∈ (◡♯ “
(ℤ≥‘2))) |
116 | 103, 115 | elind 4128 |
. . . 4
⊢ (𝑁 ∈ ℕ → (Fibci
↾ (0..^(𝑁 + 1)))
∈ (Word ℕ0 ∩ (◡♯ “
(ℤ≥‘2)))) |
117 | 102, 116 | eqeltrrd 2840 |
. . 3
⊢ (𝑁 ∈ ℕ →
((〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1))))) ↾ (0..^(𝑁 + 1))) ∈ (Word
ℕ0 ∩ (◡♯
“ (ℤ≥‘2)))) |
118 | | ovex 7308 |
. . . 4
⊢
((Fibci‘(𝑁
− 1)) + (Fibci‘𝑁)) ∈ V |
119 | 118 | a1i 11 |
. . 3
⊢ (𝑁 ∈ ℕ →
((Fibci‘(𝑁 −
1)) + (Fibci‘𝑁))
∈ V) |
120 | 31, 101, 117, 119 | fvmptd 6882 |
. 2
⊢ (𝑁 ∈ ℕ → ((𝑤 ∈ (Word
ℕ0 ∩ (◡♯
“ (ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) −
1))))‘((〈“01”〉seqstr(𝑤 ∈ (Word ℕ0 ∩
(◡♯ “
(ℤ≥‘2))) ↦ ((𝑤‘((♯‘𝑤) − 2)) + (𝑤‘((♯‘𝑤) − 1))))) ↾ (0..^(𝑁 + 1)))) = ((Fibci‘(𝑁 − 1)) +
(Fibci‘𝑁))) |
121 | 3, 22, 120 | 3eqtrd 2782 |
1
⊢ (𝑁 ∈ ℕ →
(Fibci‘(𝑁 + 1)) =
((Fibci‘(𝑁 −
1)) + (Fibci‘𝑁))) |