Step | Hyp | Ref
| Expression |
1 | | wwlksnext.v |
. . . 4
⊢ 𝑉 = (Vtx‘𝐺) |
2 | 1 | wwlknbp 28216 |
. . 3
⊢ (𝑇 ∈ (𝑁 WWalksN 𝐺) → (𝐺 ∈ V ∧ 𝑁 ∈ ℕ0 ∧ 𝑇 ∈ Word 𝑉)) |
3 | | wwlksnext.e |
. . . . . . . . . . 11
⊢ 𝐸 = (Edg‘𝐺) |
4 | 1, 3 | wwlknp 28217 |
. . . . . . . . . 10
⊢ (𝑇 ∈ (𝑁 WWalksN 𝐺) → (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸)) |
5 | | simp1 1135 |
. . . . . . . . . . . . . . 15
⊢ ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) → 𝑇 ∈ Word 𝑉) |
6 | | simprl 768 |
. . . . . . . . . . . . . . 15
⊢ ((𝑁 ∈ ℕ0
∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → 𝑆 ∈ 𝑉) |
7 | | cats1un 14443 |
. . . . . . . . . . . . . . 15
⊢ ((𝑇 ∈ Word 𝑉 ∧ 𝑆 ∈ 𝑉) → (𝑇 ++ 〈“𝑆”〉) = (𝑇 ∪ {〈(♯‘𝑇), 𝑆〉})) |
8 | 5, 6, 7 | syl2an 596 |
. . . . . . . . . . . . . 14
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑇 ++ 〈“𝑆”〉) = (𝑇 ∪ {〈(♯‘𝑇), 𝑆〉})) |
9 | | opex 5380 |
. . . . . . . . . . . . . . . . . . 19
⊢
〈(♯‘𝑇), 𝑆〉 ∈ V |
10 | 9 | snnz 4713 |
. . . . . . . . . . . . . . . . . 18
⊢
{〈(♯‘𝑇), 𝑆〉} ≠ ∅ |
11 | 10 | neii 2946 |
. . . . . . . . . . . . . . . . 17
⊢ ¬
{〈(♯‘𝑇),
𝑆〉} =
∅ |
12 | 11 | intnan 487 |
. . . . . . . . . . . . . . . 16
⊢ ¬
(𝑇 = ∅ ∧
{〈(♯‘𝑇),
𝑆〉} =
∅) |
13 | | df-ne 2945 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝑇 ∪
{〈(♯‘𝑇),
𝑆〉}) ≠ ∅
↔ ¬ (𝑇 ∪
{〈(♯‘𝑇),
𝑆〉}) =
∅) |
14 | | un00 4377 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝑇 = ∅ ∧
{〈(♯‘𝑇),
𝑆〉} = ∅) ↔
(𝑇 ∪
{〈(♯‘𝑇),
𝑆〉}) =
∅) |
15 | 13, 14 | xchbinxr 335 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑇 ∪
{〈(♯‘𝑇),
𝑆〉}) ≠ ∅
↔ ¬ (𝑇 = ∅
∧ {〈(♯‘𝑇), 𝑆〉} = ∅)) |
16 | 12, 15 | mpbir 230 |
. . . . . . . . . . . . . . 15
⊢ (𝑇 ∪
{〈(♯‘𝑇),
𝑆〉}) ≠
∅ |
17 | 16 | a1i 11 |
. . . . . . . . . . . . . 14
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑇 ∪ {〈(♯‘𝑇), 𝑆〉}) ≠ ∅) |
18 | 8, 17 | eqnetrd 3012 |
. . . . . . . . . . . . 13
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑇 ++ 〈“𝑆”〉) ≠
∅) |
19 | | s1cl 14316 |
. . . . . . . . . . . . . . 15
⊢ (𝑆 ∈ 𝑉 → 〈“𝑆”〉 ∈ Word 𝑉) |
20 | 19 | ad2antrl 725 |
. . . . . . . . . . . . . 14
⊢ ((𝑁 ∈ ℕ0
∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → 〈“𝑆”〉 ∈ Word 𝑉) |
21 | | ccatcl 14286 |
. . . . . . . . . . . . . 14
⊢ ((𝑇 ∈ Word 𝑉 ∧ 〈“𝑆”〉 ∈ Word 𝑉) → (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉) |
22 | 5, 20, 21 | syl2an 596 |
. . . . . . . . . . . . 13
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉) |
23 | | simplrl 774 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → 𝑇 ∈ Word 𝑉) |
24 | | fzossfzop1 13474 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
⊢ (𝑁 ∈ ℕ0
→ (0..^𝑁) ⊆
(0..^(𝑁 +
1))) |
25 | 24 | ad2antrr 723 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ (((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (0..^𝑁) ⊆ (0..^(𝑁 + 1))) |
26 | 25 | sselda 3922 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → 𝑖 ∈ (0..^(𝑁 + 1))) |
27 | | oveq2 7292 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
⊢
((♯‘𝑇) =
(𝑁 + 1) →
(0..^(♯‘𝑇)) =
(0..^(𝑁 +
1))) |
28 | 27 | eleq2d 2825 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
⊢
((♯‘𝑇) =
(𝑁 + 1) → (𝑖 ∈
(0..^(♯‘𝑇))
↔ 𝑖 ∈ (0..^(𝑁 + 1)))) |
29 | 28 | adantl 482 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (𝑖 ∈ (0..^(♯‘𝑇)) ↔ 𝑖 ∈ (0..^(𝑁 + 1)))) |
30 | 29 | ad2antlr 724 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → (𝑖 ∈ (0..^(♯‘𝑇)) ↔ 𝑖 ∈ (0..^(𝑁 + 1)))) |
31 | 26, 30 | mpbird 256 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → 𝑖 ∈ (0..^(♯‘𝑇))) |
32 | | ccats1val1 14341 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((𝑇 ∈ Word 𝑉 ∧ 𝑖 ∈ (0..^(♯‘𝑇))) → ((𝑇 ++ 〈“𝑆”〉)‘𝑖) = (𝑇‘𝑖)) |
33 | 23, 31, 32 | syl2anc 584 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → ((𝑇 ++ 〈“𝑆”〉)‘𝑖) = (𝑇‘𝑖)) |
34 | | fzonn0p1p1 13475 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ (𝑖 ∈ (0..^𝑁) → (𝑖 + 1) ∈ (0..^(𝑁 + 1))) |
35 | 34 | adantl 482 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → (𝑖 + 1) ∈ (0..^(𝑁 + 1))) |
36 | 27 | adantl 482 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (0..^(♯‘𝑇)) = (0..^(𝑁 + 1))) |
37 | 36 | ad2antlr 724 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → (0..^(♯‘𝑇)) = (0..^(𝑁 + 1))) |
38 | 35, 37 | eleqtrrd 2843 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → (𝑖 + 1) ∈ (0..^(♯‘𝑇))) |
39 | | ccats1val1 14341 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((𝑇 ∈ Word 𝑉 ∧ (𝑖 + 1) ∈ (0..^(♯‘𝑇))) → ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1)) = (𝑇‘(𝑖 + 1))) |
40 | 23, 38, 39 | syl2anc 584 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1)) = (𝑇‘(𝑖 + 1))) |
41 | 33, 40 | preq12d 4678 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} = {(𝑇‘𝑖), (𝑇‘(𝑖 + 1))}) |
42 | 41 | exp31 420 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ ((𝑁 ∈ ℕ0
∧ 𝑆 ∈ 𝑉) → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (𝑖 ∈ (0..^𝑁) → {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} = {(𝑇‘𝑖), (𝑇‘(𝑖 + 1))}))) |
43 | 42 | adantrr 714 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ ((𝑁 ∈ ℕ0
∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (𝑖 ∈ (0..^𝑁) → {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} = {(𝑇‘𝑖), (𝑇‘(𝑖 + 1))}))) |
44 | 43 | impcom 408 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑖 ∈ (0..^𝑁) → {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} = {(𝑇‘𝑖), (𝑇‘(𝑖 + 1))})) |
45 | 44 | imp 407 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢ ((((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) ∧ 𝑖 ∈ (0..^𝑁)) → {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} = {(𝑇‘𝑖), (𝑇‘(𝑖 + 1))}) |
46 | 45 | eleq1d 2824 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ ((((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) ∧ 𝑖 ∈ (0..^𝑁)) → ({((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸 ↔ {(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸)) |
47 | 46 | ralbidva 3112 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (∀𝑖 ∈ (0..^𝑁){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸 ↔ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸)) |
48 | 47 | exbiri 808 |
. . . . . . . . . . . . . . . . . . 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 1116 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) → ((𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ∀𝑖 ∈ (0..^𝑁){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸)) |
51 | 50 | imp 407 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ (0..^𝑁){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) |
52 | | oveq1 7291 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢
((♯‘𝑇) =
(𝑁 + 1) →
((♯‘𝑇) −
1) = ((𝑁 + 1) −
1)) |
53 | 52 | adantl 482 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → ((♯‘𝑇) − 1) = ((𝑁 + 1) −
1)) |
54 | | nn0cn 12252 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ (𝑁 ∈ ℕ0
→ 𝑁 ∈
ℂ) |
55 | | 1cnd 10979 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ (𝑁 ∈ ℕ0
→ 1 ∈ ℂ) |
56 | 54, 55 | pncand 11342 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ (𝑁 ∈ ℕ0
→ ((𝑁 + 1) − 1)
= 𝑁) |
57 | 56 | adantl 482 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → ((𝑁 + 1) − 1) = 𝑁) |
58 | 53, 57 | sylan9eqr 2801 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → ((♯‘𝑇) − 1) = 𝑁) |
59 | 58 | fveq2d 6787 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (𝑇‘((♯‘𝑇) − 1)) = (𝑇‘𝑁)) |
60 | | lsw 14276 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ (𝑇 ∈ Word 𝑉 → (lastS‘𝑇) = (𝑇‘((♯‘𝑇) − 1))) |
61 | 60 | ad2antrl 725 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (lastS‘𝑇) = (𝑇‘((♯‘𝑇) − 1))) |
62 | | simprl 768 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑇 ∈ Word 𝑉) |
63 | | fzonn0p1 13473 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ (𝑁 ∈ ℕ0
→ 𝑁 ∈ (0..^(𝑁 + 1))) |
64 | 63 | ad2antlr 724 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑁 ∈ (0..^(𝑁 + 1))) |
65 | 27 | eleq2d 2825 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢
((♯‘𝑇) =
(𝑁 + 1) → (𝑁 ∈
(0..^(♯‘𝑇))
↔ 𝑁 ∈ (0..^(𝑁 + 1)))) |
66 | 65 | ad2antll 726 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (𝑁 ∈ (0..^(♯‘𝑇)) ↔ 𝑁 ∈ (0..^(𝑁 + 1)))) |
67 | 64, 66 | mpbird 256 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑁 ∈ (0..^(♯‘𝑇))) |
68 | | ccats1val1 14341 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((𝑇 ∈ Word 𝑉 ∧ 𝑁 ∈ (0..^(♯‘𝑇))) → ((𝑇 ++ 〈“𝑆”〉)‘𝑁) = (𝑇‘𝑁)) |
69 | 62, 67, 68 | syl2anc 584 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → ((𝑇 ++ 〈“𝑆”〉)‘𝑁) = (𝑇‘𝑁)) |
70 | 59, 61, 69 | 3eqtr4d 2789 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (lastS‘𝑇) = ((𝑇 ++ 〈“𝑆”〉)‘𝑁)) |
71 | | simpll 764 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑆 ∈ 𝑉) |
72 | | simprr 770 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (♯‘𝑇) = (𝑁 + 1)) |
73 | 72 | eqcomd 2745 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (𝑁 + 1) = (♯‘𝑇)) |
74 | | ccats1val2 14343 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((𝑇 ∈ Word 𝑉 ∧ 𝑆 ∈ 𝑉 ∧ (𝑁 + 1) = (♯‘𝑇)) → ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1)) = 𝑆) |
75 | 74 | eqcomd 2745 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ ((𝑇 ∈ Word 𝑉 ∧ 𝑆 ∈ 𝑉 ∧ (𝑁 + 1) = (♯‘𝑇)) → 𝑆 = ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))) |
76 | 62, 71, 73, 75 | syl3anc 1370 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑆 = ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))) |
77 | 70, 76 | preq12d 4678 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → {(lastS‘𝑇), 𝑆} = {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))}) |
78 | 77 | eleq1d 2824 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → ({(lastS‘𝑇), 𝑆} ∈ 𝐸 ↔ {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸)) |
79 | 78 | biimpcd 248 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢
({(lastS‘𝑇),
𝑆} ∈ 𝐸 → (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸)) |
80 | 79 | exp4c 433 |
. . . . . . . . . . . . . . . . . . . . 21
⊢
({(lastS‘𝑇),
𝑆} ∈ 𝐸 → (𝑆 ∈ 𝑉 → (𝑁 ∈ ℕ0 → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸)))) |
81 | 80 | impcom 408 |
. . . . . . . . . . . . . . . . . . . 20
⊢ ((𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑁 ∈ ℕ0 → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸))) |
82 | 81 | impcom 408 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((𝑁 ∈ ℕ0
∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸)) |
83 | 82 | impcom 408 |
. . . . . . . . . . . . . . . . . 18
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸) |
84 | 83 | 3adantl3 1167 |
. . . . . . . . . . . . . . . . 17
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸) |
85 | | fveq2 6783 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ (𝑖 = 𝑁 → ((𝑇 ++ 〈“𝑆”〉)‘𝑖) = ((𝑇 ++ 〈“𝑆”〉)‘𝑁)) |
86 | | fvoveq1 7307 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ (𝑖 = 𝑁 → ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1)) = ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))) |
87 | 85, 86 | preq12d 4678 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑖 = 𝑁 → {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} = {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))}) |
88 | 87 | eleq1d 2824 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑖 = 𝑁 → ({((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸 ↔ {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸)) |
89 | 88 | ralsng 4610 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝑁 ∈ ℕ0
→ (∀𝑖 ∈
{𝑁} {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸 ↔ {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸)) |
90 | 89 | ad2antrl 725 |
. . . . . . . . . . . . . . . . 17
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (∀𝑖 ∈ {𝑁} {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸 ↔ {((𝑇 ++ 〈“𝑆”〉)‘𝑁), ((𝑇 ++ 〈“𝑆”〉)‘(𝑁 + 1))} ∈ 𝐸)) |
91 | 84, 90 | mpbird 256 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ {𝑁} {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) |
92 | | ralunb 4126 |
. . . . . . . . . . . . . . . 16
⊢
(∀𝑖 ∈
((0..^𝑁) ∪ {𝑁}){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸 ↔ (∀𝑖 ∈ (0..^𝑁){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸 ∧ ∀𝑖 ∈ {𝑁} {((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸)) |
93 | 51, 91, 92 | sylanbrc 583 |
. . . . . . . . . . . . . . 15
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ ((0..^𝑁) ∪ {𝑁}){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) |
94 | | elnn0uz 12632 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑁 ∈ ℕ0
↔ 𝑁 ∈
(ℤ≥‘0)) |
95 | | eluzfz2 13273 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑁 ∈
(ℤ≥‘0) → 𝑁 ∈ (0...𝑁)) |
96 | 94, 95 | sylbi 216 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑁 ∈ ℕ0
→ 𝑁 ∈ (0...𝑁)) |
97 | | fzelp1 13317 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑁 ∈ (0...𝑁) → 𝑁 ∈ (0...(𝑁 + 1))) |
98 | | fzosplit 13429 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑁 ∈ (0...(𝑁 + 1)) → (0..^(𝑁 + 1)) = ((0..^𝑁) ∪ (𝑁..^(𝑁 + 1)))) |
99 | 96, 97, 98 | 3syl 18 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝑁 ∈ ℕ0
→ (0..^(𝑁 + 1)) =
((0..^𝑁) ∪ (𝑁..^(𝑁 + 1)))) |
100 | | nn0z 12352 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑁 ∈ ℕ0
→ 𝑁 ∈
ℤ) |
101 | | fzosn 13467 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑁 ∈ ℤ → (𝑁..^(𝑁 + 1)) = {𝑁}) |
102 | 100, 101 | syl 17 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑁 ∈ ℕ0
→ (𝑁..^(𝑁 + 1)) = {𝑁}) |
103 | 102 | uneq2d 4098 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝑁 ∈ ℕ0
→ ((0..^𝑁) ∪
(𝑁..^(𝑁 + 1))) = ((0..^𝑁) ∪ {𝑁})) |
104 | 99, 103 | eqtrd 2779 |
. . . . . . . . . . . . . . . . 17
⊢ (𝑁 ∈ ℕ0
→ (0..^(𝑁 + 1)) =
((0..^𝑁) ∪ {𝑁})) |
105 | 104 | ad2antrl 725 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (0..^(𝑁 + 1)) = ((0..^𝑁) ∪ {𝑁})) |
106 | 105 | raleqdv 3349 |
. . . . . . . . . . . . . . 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 14287 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((𝑇 ∈ Word 𝑉 ∧ 〈“𝑆”〉 ∈ Word 𝑉) → (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((♯‘𝑇) +
(♯‘〈“𝑆”〉))) |
109 | 5, 20, 108 | syl2an 596 |
. . . . . . . . . . . . . . . . . 18
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((♯‘𝑇) +
(♯‘〈“𝑆”〉))) |
110 | 109 | oveq1d 7299 |
. . . . . . . . . . . . . . . . 17
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ((♯‘(𝑇 ++ 〈“𝑆”〉)) − 1) =
(((♯‘𝑇) +
(♯‘〈“𝑆”〉)) − 1)) |
111 | | simpl2 1191 |
. . . . . . . . . . . . . . . . . . 19
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (♯‘𝑇) = (𝑁 + 1)) |
112 | | s1len 14320 |
. . . . . . . . . . . . . . . . . . . 20
⊢
(♯‘〈“𝑆”〉) = 1 |
113 | 112 | a1i 11 |
. . . . . . . . . . . . . . . . . . 19
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (♯‘〈“𝑆”〉) =
1) |
114 | 111, 113 | oveq12d 7302 |
. . . . . . . . . . . . . . . . . 18
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ((♯‘𝑇) + (♯‘〈“𝑆”〉)) = ((𝑁 + 1) + 1)) |
115 | 114 | oveq1d 7299 |
. . . . . . . . . . . . . . . . 17
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (((♯‘𝑇) +
(♯‘〈“𝑆”〉)) − 1) = (((𝑁 + 1) + 1) −
1)) |
116 | | peano2nn0 12282 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑁 ∈ ℕ0
→ (𝑁 + 1) ∈
ℕ0) |
117 | 116 | nn0cnd 12304 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑁 ∈ ℕ0
→ (𝑁 + 1) ∈
ℂ) |
118 | 117, 55 | pncand 11342 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝑁 ∈ ℕ0
→ (((𝑁 + 1) + 1)
− 1) = (𝑁 +
1)) |
119 | 118 | ad2antrl 725 |
. . . . . . . . . . . . . . . . 17
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (((𝑁 + 1) + 1) − 1) = (𝑁 + 1)) |
120 | 110, 115,
119 | 3eqtrd 2783 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ((♯‘(𝑇 ++ 〈“𝑆”〉)) − 1) =
(𝑁 + 1)) |
121 | 120 | oveq2d 7300 |
. . . . . . . . . . . . . . 15
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (0..^((♯‘(𝑇 ++ 〈“𝑆”〉)) − 1)) =
(0..^(𝑁 +
1))) |
122 | 121 | raleqdv 3349 |
. . . . . . . . . . . . . 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 1127 |
. . . . . . . . . . . 12
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸)) |
125 | 109, 114 | eqtrd 2779 |
. . . . . . . . . . . 12
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)) |
126 | 124, 125 | jca 512 |
. . . . . . . . . . 11
⊢ (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇‘𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1))) |
127 | 126 | ex 413 |
. . . . . . . . . 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 416 |
. . . . . . . 8
⊢ (𝑇 ∈ (𝑁 WWalksN 𝐺) → (𝑁 ∈ ℕ0 → ((𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1))))) |
130 | 129 | impcom 408 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ0
∧ 𝑇 ∈ (𝑁 WWalksN 𝐺)) → ((𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)))) |
131 | 130 | adantll 711 |
. . . . . 6
⊢ (((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0)
∧ 𝑇 ∈ (𝑁 WWalksN 𝐺)) → ((𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)))) |
132 | | iswwlksn 28212 |
. . . . . . . . . 10
⊢ ((𝑁 + 1) ∈ ℕ0
→ ((𝑇 ++
〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ ((𝑇 ++ 〈“𝑆”〉) ∈ (WWalks‘𝐺) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)))) |
133 | 116, 132 | syl 17 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℕ0
→ ((𝑇 ++
〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ ((𝑇 ++ 〈“𝑆”〉) ∈ (WWalks‘𝐺) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)))) |
134 | 133 | adantl 482 |
. . . . . . . 8
⊢ ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0)
→ ((𝑇 ++
〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ ((𝑇 ++ 〈“𝑆”〉) ∈ (WWalks‘𝐺) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)))) |
135 | 1, 3 | iswwlks 28210 |
. . . . . . . . 9
⊢ ((𝑇 ++ 〈“𝑆”〉) ∈
(WWalks‘𝐺) ↔
((𝑇 ++ 〈“𝑆”〉) ≠ ∅
∧ (𝑇 ++
〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ 〈“𝑆”〉)) −
1)){((𝑇 ++
〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸)) |
136 | 135 | anbi1i 624 |
. . . . . . . 8
⊢ (((𝑇 ++ 〈“𝑆”〉) ∈
(WWalks‘𝐺) ∧
(♯‘(𝑇 ++
〈“𝑆”〉)) = ((𝑁 + 1) + 1)) ↔ (((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1))) |
137 | 134, 136 | bitrdi 287 |
. . . . . . 7
⊢ ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0)
→ ((𝑇 ++
〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ (((𝑇 ++ 〈“𝑆”〉) ≠ ∅ ∧ (𝑇 ++ 〈“𝑆”〉) ∈ Word 𝑉 ∧ ∀𝑖 ∈
(0..^((♯‘(𝑇 ++
〈“𝑆”〉)) − 1)){((𝑇 ++ 〈“𝑆”〉)‘𝑖), ((𝑇 ++ 〈“𝑆”〉)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ 〈“𝑆”〉)) = ((𝑁 + 1) + 1)))) |
138 | 137 | adantr 481 |
. . . . . 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 413 |
. . . 4
⊢ ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0)
→ (𝑇 ∈ (𝑁 WWalksN 𝐺) → ((𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ 〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺)))) |
141 | 140 | 3adant3 1131 |
. . 3
⊢ ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0
∧ 𝑇 ∈ Word 𝑉) → (𝑇 ∈ (𝑁 WWalksN 𝐺) → ((𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ 〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺)))) |
142 | 2, 141 | mpcom 38 |
. 2
⊢ (𝑇 ∈ (𝑁 WWalksN 𝐺) → ((𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ 〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺))) |
143 | 142 | 3impib 1115 |
1
⊢ ((𝑇 ∈ (𝑁 WWalksN 𝐺) ∧ 𝑆 ∈ 𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ 〈“𝑆”〉) ∈ ((𝑁 + 1) WWalksN 𝐺)) |