Step | Hyp | Ref
| Expression |
1 | | wwlksnext.v |
. . . 4
⊢ 𝑉 = (Vtx‘𝐺) |
2 | 1 | wwlknbp 28108 |
. . 3
⊢ (𝑇 ∈ (𝑁 WWalksN 𝐺) → (𝐺 ∈ V ∧ 𝑁 ∈ ℕ0 ∧ 𝑇 ∈ Word 𝑉)) |
3 | | wwlksnext.e |
. . . . . . . . . . 11
⊢ 𝐸 = (Edg‘𝐺) |
4 | 1, 3 | wwlknp 28109 |
. . . . . . . . . 10
⊢ (𝑇 ∈ (𝑁 WWalksN 𝐺) → (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸)) |
5 | | simp1 1134 |
. . . . . . . . . . . . . . 15
⊢ ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) → 𝑇 ∈ Word 𝑉) |
6 | | simprl 767 |
. . . . . . . . . . . . . . 15
⊢ ((𝑁 ∈ ℕ0
∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → 𝑆 ∈ 𝑉) |
7 | | cats1un 14362 |
. . . . . . . . . . . . . . 15
⊢ ((𝑇 ∈ Word 𝑉 ∧ 𝑆 ∈ 𝑉) → (𝑇 ++ 〈“𝑆”〉) = (𝑇 ∪ {〈(♯‘𝑇), 𝑆〉})) |
8 | 5, 6, 7 | syl2an 595 |
. . . . . . . . . . . . . 14
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑇 ++ 〈“𝑆”〉) = (𝑇 ∪ {〈(♯‘𝑇), 𝑆〉})) |
9 | | opex 5373 |
. . . . . . . . . . . . . . . . . . 19
⊢
〈(♯‘𝑇), 𝑆〉 ∈ V |
10 | 9 | snnz 4709 |
. . . . . . . . . . . . . . . . . 18
⊢
{〈(♯‘𝑇), 𝑆〉} ≠ ∅ |
11 | 10 | neii 2944 |
. . . . . . . . . . . . . . . . 17
⊢ ¬
{〈(♯‘𝑇),
𝑆〉} =
∅ |
12 | 11 | intnan 486 |
. . . . . . . . . . . . . . . 16
⊢ ¬
(𝑇 = ∅ ∧
{〈(♯‘𝑇),
𝑆〉} =
∅) |
13 | | df-ne 2943 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝑇 ∪
{〈(♯‘𝑇),
𝑆〉}) ≠ ∅
↔ ¬ (𝑇 ∪
{〈(♯‘𝑇),
𝑆〉}) =
∅) |
14 | | un00 4373 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝑇 = ∅ ∧
{〈(♯‘𝑇),
𝑆〉} = ∅) ↔
(𝑇 ∪
{〈(♯‘𝑇),
𝑆〉}) =
∅) |
15 | 13, 14 | xchbinxr 334 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑇 ∪
{〈(♯‘𝑇),
𝑆〉}) ≠ ∅
↔ ¬ (𝑇 = ∅
∧ {〈(♯‘𝑇), 𝑆〉} = ∅)) |
16 | 12, 15 | mpbir 230 |
. . . . . . . . . . . . . . 15
⊢ (𝑇 ∪
{〈(♯‘𝑇),
𝑆〉}) ≠
∅ |
17 | 16 | a1i 11 |
. . . . . . . . . . . . . 14
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑇 ∪ {〈(♯‘𝑇), 𝑆〉}) ≠ ∅) |
18 | 8, 17 | eqnetrd 3010 |
. . . . . . . . . . . . 13
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑇 ++ 〈“𝑆”〉) ≠
∅) |
19 | | s1cl 14235 |
. . . . . . . . . . . . . . 15
⊢ (𝑆 ∈ 𝑉 → 〈“𝑆”〉 ∈ Word 𝑉) |
20 | 19 | ad2antrl 724 |
. . . . . . . . . . . . . 14
⊢ ((𝑁 ∈ ℕ0
∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → 〈“𝑆”〉 ∈ Word 𝑉) |
21 | | ccatcl 14205 |
. . . . . . . . . . . . . 14
⊢ ((𝑇 ∈ Word 𝑉 ∧ 〈“𝑆”〉 ∈ Word 𝑉) → (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉) |
22 | 5, 20, 21 | syl2an 595 |
. . . . . . . . . . . . 13
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉) |
23 | | simplrl 773 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → 𝑇 ∈ Word 𝑉) |
24 | | fzossfzop1 13393 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
⊢ (𝑁 ∈ ℕ0
→ (0..^𝑁) ⊆
(0..^(𝑁 +
1))) |
25 | 24 | ad2antrr 722 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ (((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (0..^𝑁) ⊆ (0..^(𝑁 + 1))) |
26 | 25 | sselda 3917 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → 𝑖 ∈ (0..^(𝑁 + 1))) |
27 | | oveq2 7263 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
⊢
((♯‘𝑇) =
(𝑁 + 1) →
(0..^(♯‘𝑇)) =
(0..^(𝑁 +
1))) |
28 | 27 | eleq2d 2824 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
⊢
((♯‘𝑇) =
(𝑁 + 1) → (𝑖 ∈
(0..^(♯‘𝑇))
↔ 𝑖 ∈ (0..^(𝑁 + 1)))) |
29 | 28 | adantl 481 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (𝑖 ∈ (0..^(♯‘𝑇)) ↔ 𝑖 ∈ (0..^(𝑁 + 1)))) |
30 | 29 | ad2antlr 723 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → (𝑖 ∈ (0..^(♯‘𝑇)) ↔ 𝑖 ∈ (0..^(𝑁 + 1)))) |
31 | 26, 30 | mpbird 256 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → 𝑖 ∈ (0..^(♯‘𝑇))) |
32 | | ccats1val1 14260 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((𝑇 ∈ Word 𝑉 ∧ 𝑖 ∈ (0..^(♯‘𝑇))) → ((𝑇 ++ 〈“𝑆”〉)‘𝑖) = (𝑇‘𝑖)) |
33 | 23, 31, 32 | syl2anc 583 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → ((𝑇 ++ 〈“𝑆”〉)‘𝑖) = (𝑇‘𝑖)) |
34 | | fzonn0p1p1 13394 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ (𝑖 ∈ (0..^𝑁) → (𝑖 + 1) ∈ (0..^(𝑁 + 1))) |
35 | 34 | adantl 481 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → (𝑖 + 1) ∈ (0..^(𝑁 + 1))) |
36 | 27 | adantl 481 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (0..^(♯‘𝑇)) = (0..^(𝑁 + 1))) |
37 | 36 | ad2antlr 723 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → (0..^(♯‘𝑇)) = (0..^(𝑁 + 1))) |
38 | 35, 37 | eleqtrrd 2842 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → (𝑖 + 1) ∈ (0..^(♯‘𝑇))) |
39 | | ccats1val1 14260 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((𝑇 ∈ Word 𝑉 ∧ (𝑖 + 1) ∈ (0..^(♯‘𝑇))) → ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1)) = (𝑇‘(𝑖 + 1))) |
40 | 23, 38, 39 | syl2anc 583 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1)) = (𝑇‘(𝑖 + 1))) |
41 | 33, 40 | preq12d 4674 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} = {(𝑇‘𝑖), (𝑇‘(𝑖 + 1))}) |
42 | 41 | exp31 419 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ ((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (𝑖 ∈ (0..^𝑁) → {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} = {(𝑇‘𝑖), (𝑇‘(𝑖 + 1))}))) |
43 | 42 | adantrr 713 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ ((𝑁 ∈ ℕ0
∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (𝑖 ∈ (0..^𝑁) → {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} = {(𝑇‘𝑖), (𝑇‘(𝑖 + 1))}))) |
44 | 43 | impcom 407 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑖 ∈ (0..^𝑁) → {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} = {(𝑇‘𝑖), (𝑇‘(𝑖 + 1))})) |
45 | 44 | imp 406 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢ ((((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) ∧ 𝑖 ∈ (0..^𝑁)) → {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} = {(𝑇‘𝑖), (𝑇‘(𝑖 + 1))}) |
46 | 45 | eleq1d 2823 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ ((((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) ∧ 𝑖 ∈ (0..^𝑁)) → ({((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸 ↔ {(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸)) |
47 | 46 | ralbidva 3119 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (∀𝑖 ∈ (0..^𝑁){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸 ↔ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸)) |
48 | 47 | exbiri 807 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → ((𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → (∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸 → ∀𝑖 ∈ (0..^𝑁){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸))) |
49 | 48 | com23 86 |
. . . . . . . . . . . . . . . . . 18
⊢ ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸 → ((𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ∀𝑖 ∈ (0..^𝑁){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸))) |
50 | 49 | 3impia 1115 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) → ((𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ∀𝑖 ∈ (0..^𝑁){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸)) |
51 | 50 | imp 406 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ (0..^𝑁){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) |
52 | | oveq1 7262 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢
((♯‘𝑇) =
(𝑁 + 1) →
((♯‘𝑇) −
1) = ((𝑁 + 1) −
1)) |
53 | 52 | adantl 481 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → ((♯‘𝑇) − 1) = ((𝑁 + 1) −
1)) |
54 | | nn0cn 12173 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ (𝑁 ∈ ℕ0
→ 𝑁 ∈
ℂ) |
55 | | 1cnd 10901 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ (𝑁 ∈ ℕ0
→ 1 ∈ ℂ) |
56 | 54, 55 | pncand 11263 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ (𝑁 ∈ ℕ0
→ ((𝑁 + 1) − 1)
= 𝑁) |
57 | 56 | adantl 481 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → ((𝑁 + 1) − 1) = 𝑁) |
58 | 53, 57 | sylan9eqr 2801 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → ((♯‘𝑇) − 1) = 𝑁) |
59 | 58 | fveq2d 6760 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (𝑇‘((♯‘𝑇) − 1)) = (𝑇‘𝑁)) |
60 | | lsw 14195 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ (𝑇 ∈ Word 𝑉 → (lastS‘𝑇) = (𝑇‘((♯‘𝑇) − 1))) |
61 | 60 | ad2antrl 724 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (lastS‘𝑇) = (𝑇‘((♯‘𝑇) − 1))) |
62 | | simprl 767 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑇 ∈ Word 𝑉) |
63 | | fzonn0p1 13392 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ (𝑁 ∈ ℕ0
→ 𝑁 ∈ (0..^(𝑁 + 1))) |
64 | 63 | ad2antlr 723 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑁 ∈ (0..^(𝑁 + 1))) |
65 | 27 | eleq2d 2824 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢
((♯‘𝑇) =
(𝑁 + 1) → (𝑁 ∈
(0..^(♯‘𝑇))
↔ 𝑁 ∈ (0..^(𝑁 + 1)))) |
66 | 65 | ad2antll 725 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (𝑁 ∈ (0..^(♯‘𝑇)) ↔ 𝑁 ∈ (0..^(𝑁 + 1)))) |
67 | 64, 66 | mpbird 256 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑁 ∈ (0..^(♯‘𝑇))) |
68 | | ccats1val1 14260 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((𝑇 ∈ Word 𝑉 ∧ 𝑁 ∈ (0..^(♯‘𝑇))) → ((𝑇 ++ 〈“𝑆”〉)‘𝑁) = (𝑇‘𝑁)) |
69 | 62, 67, 68 | syl2anc 583 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → ((𝑇 ++ 〈“𝑆”〉)‘𝑁) = (𝑇‘𝑁)) |
70 | 59, 61, 69 | 3eqtr4d 2788 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (lastS‘𝑇) = ((𝑇 ++ 〈“𝑆”〉)‘𝑁)) |
71 | | simpll 763 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑆 ∈ 𝑉) |
72 | | simprr 769 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (♯‘𝑇) = (𝑁 + 1)) |
73 | 72 | eqcomd 2744 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (𝑁 + 1) = (♯‘𝑇)) |
74 | | ccats1val2 14262 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((𝑇 ∈ Word 𝑉 ∧ 𝑆 ∈ 𝑉 ∧ (𝑁 + 1) = (♯‘𝑇)) → ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1)) = 𝑆) |
75 | 74 | eqcomd 2744 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ ((𝑇 ∈ Word 𝑉 ∧ 𝑆 ∈ 𝑉 ∧ (𝑁 + 1) = (♯‘𝑇)) → 𝑆 = ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))) |
76 | 62, 71, 73, 75 | syl3anc 1369 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑆 = ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))) |
77 | 70, 76 | preq12d 4674 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → {(lastS‘𝑇), 𝑆} = {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))}) |
78 | 77 | eleq1d 2823 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → ({(lastS‘𝑇), 𝑆} ∈ 𝐸 ↔ {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸)) |
79 | 78 | biimpcd 248 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢
({(lastS‘𝑇),
𝑆} ∈ 𝐸 → (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸)) |
80 | 79 | exp4c 432 |
. . . . . . . . . . . . . . . . . . . . 21
⊢
({(lastS‘𝑇),
𝑆} ∈ 𝐸 → (𝑆 ∈ 𝑉 → (𝑁 ∈ ℕ0 → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸)))) |
81 | 80 | impcom 407 |
. . . . . . . . . . . . . . . . . . . 20
⊢ ((𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑁 ∈ ℕ0 → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸))) |
82 | 81 | impcom 407 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((𝑁 ∈ ℕ0
∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸)) |
83 | 82 | impcom 407 |
. . . . . . . . . . . . . . . . . 18
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸) |
84 | 83 | 3adantl3 1166 |
. . . . . . . . . . . . . . . . 17
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸) |
85 | | fveq2 6756 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ (𝑖 = 𝑁 → ((𝑇 ++ 〈“𝑆”〉)‘𝑖) = ((𝑇 ++ 〈“𝑆”〉)‘𝑁)) |
86 | | fvoveq1 7278 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ (𝑖 = 𝑁 → ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1)) = ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))) |
87 | 85, 86 | preq12d 4674 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑖 = 𝑁 → {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} = {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))}) |
88 | 87 | eleq1d 2823 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑖 = 𝑁 → ({((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸 ↔ {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸)) |
89 | 88 | ralsng 4606 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝑁 ∈ ℕ0
→ (∀𝑖 ∈
{𝑁} {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸 ↔ {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸)) |
90 | 89 | ad2antrl 724 |
. . . . . . . . . . . . . . . . 17
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (∀𝑖 ∈ {𝑁} {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸 ↔ {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸)) |
91 | 84, 90 | mpbird 256 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ {𝑁} {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) |
92 | | ralunb 4121 |
. . . . . . . . . . . . . . . 16
⊢
(∀𝑖 ∈
((0..^𝑁) ∪ {𝑁}){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸 ↔ (∀𝑖 ∈ (0..^𝑁){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸 ∧ ∀𝑖 ∈ {𝑁} {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸)) |
93 | 51, 91, 92 | sylanbrc 582 |
. . . . . . . . . . . . . . 15
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ ((0..^𝑁) ∪ {𝑁}){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) |
94 | | elnn0uz 12552 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑁 ∈ ℕ0
↔ 𝑁 ∈
(ℤ≥‘0)) |
95 | | eluzfz2 13193 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑁 ∈
(ℤ≥‘0) → 𝑁 ∈ (0...𝑁)) |
96 | 94, 95 | sylbi 216 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑁 ∈ ℕ0
→ 𝑁 ∈ (0...𝑁)) |
97 | | fzelp1 13237 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑁 ∈ (0...𝑁) → 𝑁 ∈ (0...(𝑁 + 1))) |
98 | | fzosplit 13348 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑁 ∈ (0...(𝑁 + 1)) → (0..^(𝑁 + 1)) = ((0..^𝑁) ∪ (𝑁..^(𝑁 + 1)))) |
99 | 96, 97, 98 | 3syl 18 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝑁 ∈ ℕ0
→ (0..^(𝑁 + 1)) =
((0..^𝑁) ∪ (𝑁..^(𝑁 + 1)))) |
100 | | nn0z 12273 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑁 ∈ ℕ0
→ 𝑁 ∈
ℤ) |
101 | | fzosn 13386 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑁 ∈ ℤ → (𝑁..^(𝑁 + 1)) = {𝑁}) |
102 | 100, 101 | syl 17 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑁 ∈ ℕ0
→ (𝑁..^(𝑁 + 1)) = {𝑁}) |
103 | 102 | uneq2d 4093 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝑁 ∈ ℕ0
→ ((0..^𝑁) ∪
(𝑁..^(𝑁 + 1))) = ((0..^𝑁) ∪ {𝑁})) |
104 | 99, 103 | eqtrd 2778 |
. . . . . . . . . . . . . . . . 17
⊢ (𝑁 ∈ ℕ0
→ (0..^(𝑁 + 1)) =
((0..^𝑁) ∪ {𝑁})) |
105 | 104 | ad2antrl 724 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (0..^(𝑁 + 1)) = ((0..^𝑁) ∪ {𝑁})) |
106 | 105 | raleqdv 3339 |
. . . . . . . . . . . . . . 15
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (∀𝑖 ∈ (0..^(𝑁 + 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸 ↔ ∀𝑖 ∈ ((0..^𝑁) ∪ {𝑁}){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸)) |
107 | 93, 106 | mpbird 256 |
. . . . . . . . . . . . . 14
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ (0..^(𝑁 + 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) |
108 | | ccatlen 14206 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((𝑇 ∈ Word 𝑉 ∧ 〈“𝑆”〉 ∈ Word 𝑉) → (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((♯‘𝑇) +
(♯‘〈“𝑆”〉))) |
109 | 5, 20, 108 | syl2an 595 |
. . . . . . . . . . . . . . . . . 18
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((♯‘𝑇) +
(♯‘〈“𝑆”〉))) |
110 | 109 | oveq1d 7270 |
. . . . . . . . . . . . . . . . 17
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ((♯‘(𝑇 ++ 〈“𝑆”〉)) − 1) =
(((♯‘𝑇) +
(♯‘〈“𝑆”〉)) − 1)) |
111 | | simpl2 1190 |
. . . . . . . . . . . . . . . . . . 19
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (♯‘𝑇) = (𝑁 + 1)) |
112 | | s1len 14239 |
. . . . . . . . . . . . . . . . . . . 20
⊢
(♯‘〈“𝑆”〉) = 1 |
113 | 112 | a1i 11 |
. . . . . . . . . . . . . . . . . . 19
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (♯‘〈“𝑆”〉) =
1) |
114 | 111, 113 | oveq12d 7273 |
. . . . . . . . . . . . . . . . . 18
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ((♯‘𝑇) + (♯‘〈“𝑆”〉)) = ((𝑁 + 1) + 1)) |
115 | 114 | oveq1d 7270 |
. . . . . . . . . . . . . . . . 17
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (((♯‘𝑇) +
(♯‘〈“𝑆”〉)) − 1) = (((𝑁 + 1) + 1) −
1)) |
116 | | peano2nn0 12203 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑁 ∈ ℕ0
→ (𝑁 + 1) ∈
ℕ0) |
117 | 116 | nn0cnd 12225 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑁 ∈ ℕ0
→ (𝑁 + 1) ∈
ℂ) |
118 | 117, 55 | pncand 11263 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝑁 ∈ ℕ0
→ (((𝑁 + 1) + 1)
− 1) = (𝑁 +
1)) |
119 | 118 | ad2antrl 724 |
. . . . . . . . . . . . . . . . 17
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (((𝑁 + 1) + 1) − 1) = (𝑁 + 1)) |
120 | 110, 115,
119 | 3eqtrd 2782 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ((♯‘(𝑇 ++ 〈“𝑆”〉)) − 1) =
(𝑁 + 1)) |
121 | 120 | oveq2d 7271 |
. . . . . . . . . . . . . . 15
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (0..^((♯‘(𝑇 ++ 〈“𝑆”〉)) − 1)) =
(0..^(𝑁 +
1))) |
122 | 121 | raleqdv 3339 |
. . . . . . . . . . . . . 14
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (∀𝑖 ∈ (0..^((♯‘(𝑇 ++ 〈“𝑆”〉)) −
1)){((𝑇 ++
〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸 ↔ ∀𝑖 ∈ (0..^(𝑁 + 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸)) |
123 | 107, 122 | mpbird 256 |
. . . . . . . . . . . . 13
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ 〈“𝑆”〉)) −
1)){((𝑇 ++
〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) |
124 | 18, 22, 123 | 3jca 1126 |
. . . . . . . . . . . 12
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸)) |
125 | 109, 114 | eqtrd 2778 |
. . . . . . . . . . . 12
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)) |
126 | 124, 125 | jca 511 |
. . . . . . . . . . 11
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1))) |
127 | 126 | ex 412 |
. . . . . . . . . 10
⊢ ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) → ((𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → (((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)))) |
128 | 4, 127 | syl 17 |
. . . . . . . . 9
⊢ (𝑇 ∈ (𝑁 WWalksN 𝐺) → ((𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → (((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)))) |
129 | 128 | expd 415 |
. . . . . . . 8
⊢ (𝑇 ∈ (𝑁 WWalksN 𝐺) → (𝑁 ∈ ℕ0 → ((𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1))))) |
130 | 129 | impcom 407 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ0
∧ 𝑇 ∈ (𝑁 WWalksN 𝐺)) → ((𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)))) |
131 | 130 | adantll 710 |
. . . . . 6
⊢ (((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0)
∧ 𝑇 ∈ (𝑁 WWalksN 𝐺)) → ((𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)))) |
132 | | iswwlksn 28104 |
. . . . . . . . . 10
⊢ ((𝑁 + 1) ∈ ℕ0
→ ((𝑇 ++
〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ ((𝑇 ++ 〈“𝑆”〉) ∈ (WWalks‘𝐺) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)))) |
133 | 116, 132 | syl 17 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℕ0
→ ((𝑇 ++
〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ ((𝑇 ++ 〈“𝑆”〉) ∈ (WWalks‘𝐺) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)))) |
134 | 133 | adantl 481 |
. . . . . . . 8
⊢ ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0)
→ ((𝑇 ++
〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ ((𝑇 ++ 〈“𝑆”〉) ∈ (WWalks‘𝐺) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)))) |
135 | 1, 3 | iswwlks 28102 |
. . . . . . . . 9
⊢ ((𝑇 ++ 〈“𝑆”〉) ∈
(WWalks‘𝐺) ↔
((𝑇 ++ 〈“𝑆”〉) ≠ ∅
∧ (𝑇 ++
〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ 〈“𝑆”〉)) −
1)){((𝑇 ++
〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸)) |
136 | 135 | anbi1i 623 |
. . . . . . . 8
⊢ (((𝑇 ++ 〈“𝑆”〉) ∈
(WWalks‘𝐺) ∧
(♯‘(𝑇 ++
〈“𝑆”〉)) = ((𝑁 + 1) + 1)) ↔ (((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1))) |
137 | 134, 136 | bitrdi 286 |
. . . . . . 7
⊢ ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0)
→ ((𝑇 ++
〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ (((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)))) |
138 | 137 | adantr 480 |
. . . . . 6
⊢ (((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0)
∧ 𝑇 ∈ (𝑁 WWalksN 𝐺)) → ((𝑇 ++ 〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ (((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)))) |
139 | 131, 138 | sylibrd 258 |
. . . . 5
⊢ (((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0)
∧ 𝑇 ∈ (𝑁 WWalksN 𝐺)) → ((𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ 〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺))) |
140 | 139 | ex 412 |
. . . 4
⊢ ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0)
→ (𝑇 ∈ (𝑁 WWalksN 𝐺) → ((𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ 〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺)))) |
141 | 140 | 3adant3 1130 |
. . 3
⊢ ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0
∧ 𝑇 ∈ Word 𝑉) → (𝑇 ∈ (𝑁 WWalksN 𝐺) → ((𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ 〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺)))) |
142 | 2, 141 | mpcom 38 |
. 2
⊢ (𝑇 ∈ (𝑁 WWalksN 𝐺) → ((𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ 〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺))) |
143 | 142 | 3impib 1114 |
1
⊢ ((𝑇 ∈ (𝑁 WWalksN 𝐺) ∧ 𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ 〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺)) |