Metamath Proof Explorer < Previous   Next > Nearby theorems Mirrors  >  Home  >  MPE Home  >  Th. List  >  wwlksnext Structured version   Visualization version   GIF version

Theorem wwlksnext 27778
 Description: Extension of a walk (as word) by adding an edge/vertex. (Contributed by Alexander van der Vekens, 4-Aug-2018.) (Revised by AV, 16-Apr-2021.)
Hypotheses
Ref Expression
wwlksnext.v 𝑉 = (Vtx‘𝐺)
wwlksnext.e 𝐸 = (Edg‘𝐺)
Assertion
Ref Expression
wwlksnext ((𝑇 ∈ (𝑁 WWalksN 𝐺) ∧ 𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺))

Proof of Theorem wwlksnext
Dummy variable 𝑖 is distinct from all other variables.
StepHypRef Expression
1 wwlksnext.v . . . 4 𝑉 = (Vtx‘𝐺)
21wwlknbp 27727 . . 3 (𝑇 ∈ (𝑁 WWalksN 𝐺) → (𝐺 ∈ V ∧ 𝑁 ∈ ℕ0𝑇 ∈ Word 𝑉))
3 wwlksnext.e . . . . . . . . . . 11 𝐸 = (Edg‘𝐺)
41, 3wwlknp 27728 . . . . . . . . . 10 (𝑇 ∈ (𝑁 WWalksN 𝐺) → (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸))
5 simp1 1133 . . . . . . . . . . . . . . 15 ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) → 𝑇 ∈ Word 𝑉)
6 simprl 770 . . . . . . . . . . . . . . 15 ((𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → 𝑆𝑉)
7 cats1un 14130 . . . . . . . . . . . . . . 15 ((𝑇 ∈ Word 𝑉𝑆𝑉) → (𝑇 ++ ⟨“𝑆”⟩) = (𝑇 ∪ {⟨(♯‘𝑇), 𝑆⟩}))
85, 6, 7syl2an 598 . . . . . . . . . . . . . 14 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑇 ++ ⟨“𝑆”⟩) = (𝑇 ∪ {⟨(♯‘𝑇), 𝑆⟩}))
9 opex 5324 . . . . . . . . . . . . . . . . . . 19 ⟨(♯‘𝑇), 𝑆⟩ ∈ V
109snnz 4669 . . . . . . . . . . . . . . . . . 18 {⟨(♯‘𝑇), 𝑆⟩} ≠ ∅
1110neii 2953 . . . . . . . . . . . . . . . . 17 ¬ {⟨(♯‘𝑇), 𝑆⟩} = ∅
1211intnan 490 . . . . . . . . . . . . . . . 16 ¬ (𝑇 = ∅ ∧ {⟨(♯‘𝑇), 𝑆⟩} = ∅)
13 df-ne 2952 . . . . . . . . . . . . . . . . 17 ((𝑇 ∪ {⟨(♯‘𝑇), 𝑆⟩}) ≠ ∅ ↔ ¬ (𝑇 ∪ {⟨(♯‘𝑇), 𝑆⟩}) = ∅)
14 un00 4339 . . . . . . . . . . . . . . . . 17 ((𝑇 = ∅ ∧ {⟨(♯‘𝑇), 𝑆⟩} = ∅) ↔ (𝑇 ∪ {⟨(♯‘𝑇), 𝑆⟩}) = ∅)
1513, 14xchbinxr 338 . . . . . . . . . . . . . . . 16 ((𝑇 ∪ {⟨(♯‘𝑇), 𝑆⟩}) ≠ ∅ ↔ ¬ (𝑇 = ∅ ∧ {⟨(♯‘𝑇), 𝑆⟩} = ∅))
1612, 15mpbir 234 . . . . . . . . . . . . . . 15 (𝑇 ∪ {⟨(♯‘𝑇), 𝑆⟩}) ≠ ∅
1716a1i 11 . . . . . . . . . . . . . 14 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑇 ∪ {⟨(♯‘𝑇), 𝑆⟩}) ≠ ∅)
188, 17eqnetrd 3018 . . . . . . . . . . . . 13 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑇 ++ ⟨“𝑆”⟩) ≠ ∅)
19 s1cl 14003 . . . . . . . . . . . . . . 15 (𝑆𝑉 → ⟨“𝑆”⟩ ∈ Word 𝑉)
2019ad2antrl 727 . . . . . . . . . . . . . 14 ((𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ⟨“𝑆”⟩ ∈ Word 𝑉)
21 ccatcl 13973 . . . . . . . . . . . . . 14 ((𝑇 ∈ Word 𝑉 ∧ ⟨“𝑆”⟩ ∈ Word 𝑉) → (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉)
225, 20, 21syl2an 598 . . . . . . . . . . . . 13 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉)
23 simplrl 776 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → 𝑇 ∈ Word 𝑉)
24 fzossfzop1 13164 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑁 ∈ ℕ0 → (0..^𝑁) ⊆ (0..^(𝑁 + 1)))
2524ad2antrr 725 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (0..^𝑁) ⊆ (0..^(𝑁 + 1)))
2625sselda 3892 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → 𝑖 ∈ (0..^(𝑁 + 1)))
27 oveq2 7158 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((♯‘𝑇) = (𝑁 + 1) → (0..^(♯‘𝑇)) = (0..^(𝑁 + 1)))
2827eleq2d 2837 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((♯‘𝑇) = (𝑁 + 1) → (𝑖 ∈ (0..^(♯‘𝑇)) ↔ 𝑖 ∈ (0..^(𝑁 + 1))))
2928adantl 485 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (𝑖 ∈ (0..^(♯‘𝑇)) ↔ 𝑖 ∈ (0..^(𝑁 + 1))))
3029ad2antlr 726 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → (𝑖 ∈ (0..^(♯‘𝑇)) ↔ 𝑖 ∈ (0..^(𝑁 + 1))))
3126, 30mpbird 260 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → 𝑖 ∈ (0..^(♯‘𝑇)))
32 ccats1val1 14028 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑇 ∈ Word 𝑉𝑖 ∈ (0..^(♯‘𝑇))) → ((𝑇 ++ ⟨“𝑆”⟩)‘𝑖) = (𝑇𝑖))
3323, 31, 32syl2anc 587 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → ((𝑇 ++ ⟨“𝑆”⟩)‘𝑖) = (𝑇𝑖))
34 fzonn0p1p1 13165 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑖 ∈ (0..^𝑁) → (𝑖 + 1) ∈ (0..^(𝑁 + 1)))
3534adantl 485 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → (𝑖 + 1) ∈ (0..^(𝑁 + 1)))
3627adantl 485 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (0..^(♯‘𝑇)) = (0..^(𝑁 + 1)))
3736ad2antlr 726 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → (0..^(♯‘𝑇)) = (0..^(𝑁 + 1)))
3835, 37eleqtrrd 2855 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → (𝑖 + 1) ∈ (0..^(♯‘𝑇)))
39 ccats1val1 14028 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑇 ∈ Word 𝑉 ∧ (𝑖 + 1) ∈ (0..^(♯‘𝑇))) → ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1)) = (𝑇‘(𝑖 + 1)))
4023, 38, 39syl2anc 587 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1)) = (𝑇‘(𝑖 + 1)))
4133, 40preq12d 4634 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} = {(𝑇𝑖), (𝑇‘(𝑖 + 1))})
4241exp31 423 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑁 ∈ ℕ0𝑆𝑉) → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (𝑖 ∈ (0..^𝑁) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} = {(𝑇𝑖), (𝑇‘(𝑖 + 1))})))
4342adantrr 716 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (𝑖 ∈ (0..^𝑁) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} = {(𝑇𝑖), (𝑇‘(𝑖 + 1))})))
4443impcom 411 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑖 ∈ (0..^𝑁) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} = {(𝑇𝑖), (𝑇‘(𝑖 + 1))}))
4544imp 410 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) ∧ 𝑖 ∈ (0..^𝑁)) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} = {(𝑇𝑖), (𝑇‘(𝑖 + 1))})
4645eleq1d 2836 . . . . . . . . . . . . . . . . . . . . 21 ((((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) ∧ 𝑖 ∈ (0..^𝑁)) → ({((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ↔ {(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸))
4746ralbidva 3125 . . . . . . . . . . . . . . . . . . . 20 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (∀𝑖 ∈ (0..^𝑁){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ↔ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸))
4847exbiri 810 . . . . . . . . . . . . . . . . . . 19 ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → ((𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → (∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸 → ∀𝑖 ∈ (0..^𝑁){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸)))
4948com23 86 . . . . . . . . . . . . . . . . . 18 ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸 → ((𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ∀𝑖 ∈ (0..^𝑁){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸)))
50493impia 1114 . . . . . . . . . . . . . . . . 17 ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) → ((𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ∀𝑖 ∈ (0..^𝑁){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸))
5150imp 410 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ (0..^𝑁){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸)
52 oveq1 7157 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((♯‘𝑇) = (𝑁 + 1) → ((♯‘𝑇) − 1) = ((𝑁 + 1) − 1))
5352adantl 485 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → ((♯‘𝑇) − 1) = ((𝑁 + 1) − 1))
54 nn0cn 11944 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑁 ∈ ℕ0𝑁 ∈ ℂ)
55 1cnd 10674 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑁 ∈ ℕ0 → 1 ∈ ℂ)
5654, 55pncand 11036 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑁 ∈ ℕ0 → ((𝑁 + 1) − 1) = 𝑁)
5756adantl 485 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑆𝑉𝑁 ∈ ℕ0) → ((𝑁 + 1) − 1) = 𝑁)
5853, 57sylan9eqr 2815 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → ((♯‘𝑇) − 1) = 𝑁)
5958fveq2d 6662 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (𝑇‘((♯‘𝑇) − 1)) = (𝑇𝑁))
60 lsw 13963 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑇 ∈ Word 𝑉 → (lastS‘𝑇) = (𝑇‘((♯‘𝑇) − 1)))
6160ad2antrl 727 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (lastS‘𝑇) = (𝑇‘((♯‘𝑇) − 1)))
62 simprl 770 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑇 ∈ Word 𝑉)
63 fzonn0p1 13163 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑁 ∈ ℕ0𝑁 ∈ (0..^(𝑁 + 1)))
6463ad2antlr 726 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑁 ∈ (0..^(𝑁 + 1)))
6527eleq2d 2837 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((♯‘𝑇) = (𝑁 + 1) → (𝑁 ∈ (0..^(♯‘𝑇)) ↔ 𝑁 ∈ (0..^(𝑁 + 1))))
6665ad2antll 728 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (𝑁 ∈ (0..^(♯‘𝑇)) ↔ 𝑁 ∈ (0..^(𝑁 + 1))))
6764, 66mpbird 260 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑁 ∈ (0..^(♯‘𝑇)))
68 ccats1val1 14028 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑇 ∈ Word 𝑉𝑁 ∈ (0..^(♯‘𝑇))) → ((𝑇 ++ ⟨“𝑆”⟩)‘𝑁) = (𝑇𝑁))
6962, 67, 68syl2anc 587 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → ((𝑇 ++ ⟨“𝑆”⟩)‘𝑁) = (𝑇𝑁))
7059, 61, 693eqtr4d 2803 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (lastS‘𝑇) = ((𝑇 ++ ⟨“𝑆”⟩)‘𝑁))
71 simpll 766 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑆𝑉)
72 simprr 772 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (♯‘𝑇) = (𝑁 + 1))
7372eqcomd 2764 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (𝑁 + 1) = (♯‘𝑇))
74 ccats1val2 14030 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑇 ∈ Word 𝑉𝑆𝑉 ∧ (𝑁 + 1) = (♯‘𝑇)) → ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1)) = 𝑆)
7574eqcomd 2764 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑇 ∈ Word 𝑉𝑆𝑉 ∧ (𝑁 + 1) = (♯‘𝑇)) → 𝑆 = ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1)))
7662, 71, 73, 75syl3anc 1368 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑆 = ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1)))
7770, 76preq12d 4634 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → {(lastS‘𝑇), 𝑆} = {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))})
7877eleq1d 2836 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → ({(lastS‘𝑇), 𝑆} ∈ 𝐸 ↔ {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸))
7978biimpcd 252 . . . . . . . . . . . . . . . . . . . . . 22 ({(lastS‘𝑇), 𝑆} ∈ 𝐸 → (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸))
8079exp4c 436 . . . . . . . . . . . . . . . . . . . . 21 ({(lastS‘𝑇), 𝑆} ∈ 𝐸 → (𝑆𝑉 → (𝑁 ∈ ℕ0 → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸))))
8180impcom 411 . . . . . . . . . . . . . . . . . . . 20 ((𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑁 ∈ ℕ0 → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸)))
8281impcom 411 . . . . . . . . . . . . . . . . . . 19 ((𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸))
8382impcom 411 . . . . . . . . . . . . . . . . . 18 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸)
84833adantl3 1165 . . . . . . . . . . . . . . . . 17 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸)
85 fveq2 6658 . . . . . . . . . . . . . . . . . . . . 21 (𝑖 = 𝑁 → ((𝑇 ++ ⟨“𝑆”⟩)‘𝑖) = ((𝑇 ++ ⟨“𝑆”⟩)‘𝑁))
86 fvoveq1 7173 . . . . . . . . . . . . . . . . . . . . 21 (𝑖 = 𝑁 → ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1)) = ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1)))
8785, 86preq12d 4634 . . . . . . . . . . . . . . . . . . . 20 (𝑖 = 𝑁 → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} = {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))})
8887eleq1d 2836 . . . . . . . . . . . . . . . . . . 19 (𝑖 = 𝑁 → ({((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ↔ {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸))
8988ralsng 4570 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ ℕ0 → (∀𝑖 ∈ {𝑁} {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ↔ {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸))
9089ad2antrl 727 . . . . . . . . . . . . . . . . 17 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (∀𝑖 ∈ {𝑁} {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ↔ {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸))
9184, 90mpbird 260 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ {𝑁} {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸)
92 ralunb 4096 . . . . . . . . . . . . . . . 16 (∀𝑖 ∈ ((0..^𝑁) ∪ {𝑁}){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ↔ (∀𝑖 ∈ (0..^𝑁){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ∧ ∀𝑖 ∈ {𝑁} {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸))
9351, 91, 92sylanbrc 586 . . . . . . . . . . . . . . 15 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ ((0..^𝑁) ∪ {𝑁}){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸)
94 elnn0uz 12323 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℕ0𝑁 ∈ (ℤ‘0))
95 eluzfz2 12964 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ (ℤ‘0) → 𝑁 ∈ (0...𝑁))
9694, 95sylbi 220 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ ℕ0𝑁 ∈ (0...𝑁))
97 fzelp1 13008 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ (0...𝑁) → 𝑁 ∈ (0...(𝑁 + 1)))
98 fzosplit 13119 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ (0...(𝑁 + 1)) → (0..^(𝑁 + 1)) = ((0..^𝑁) ∪ (𝑁..^(𝑁 + 1))))
9996, 97, 983syl 18 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ ℕ0 → (0..^(𝑁 + 1)) = ((0..^𝑁) ∪ (𝑁..^(𝑁 + 1))))
100 nn0z 12044 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℕ0𝑁 ∈ ℤ)
101 fzosn 13157 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℤ → (𝑁..^(𝑁 + 1)) = {𝑁})
102100, 101syl 17 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ ℕ0 → (𝑁..^(𝑁 + 1)) = {𝑁})
103102uneq2d 4068 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ ℕ0 → ((0..^𝑁) ∪ (𝑁..^(𝑁 + 1))) = ((0..^𝑁) ∪ {𝑁}))
10499, 103eqtrd 2793 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ ℕ0 → (0..^(𝑁 + 1)) = ((0..^𝑁) ∪ {𝑁}))
105104ad2antrl 727 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (0..^(𝑁 + 1)) = ((0..^𝑁) ∪ {𝑁}))
106105raleqdv 3329 . . . . . . . . . . . . . . 15 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (∀𝑖 ∈ (0..^(𝑁 + 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ↔ ∀𝑖 ∈ ((0..^𝑁) ∪ {𝑁}){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸))
10793, 106mpbird 260 . . . . . . . . . . . . . 14 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ (0..^(𝑁 + 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸)
108 ccatlen 13974 . . . . . . . . . . . . . . . . . . 19 ((𝑇 ∈ Word 𝑉 ∧ ⟨“𝑆”⟩ ∈ Word 𝑉) → (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((♯‘𝑇) + (♯‘⟨“𝑆”⟩)))
1095, 20, 108syl2an 598 . . . . . . . . . . . . . . . . . 18 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((♯‘𝑇) + (♯‘⟨“𝑆”⟩)))
110109oveq1d 7165 . . . . . . . . . . . . . . . . 17 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1) = (((♯‘𝑇) + (♯‘⟨“𝑆”⟩)) − 1))
111 simpl2 1189 . . . . . . . . . . . . . . . . . . 19 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (♯‘𝑇) = (𝑁 + 1))
112 s1len 14007 . . . . . . . . . . . . . . . . . . . 20 (♯‘⟨“𝑆”⟩) = 1
113112a1i 11 . . . . . . . . . . . . . . . . . . 19 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (♯‘⟨“𝑆”⟩) = 1)
114111, 113oveq12d 7168 . . . . . . . . . . . . . . . . . 18 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ((♯‘𝑇) + (♯‘⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))
115114oveq1d 7165 . . . . . . . . . . . . . . . . 17 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (((♯‘𝑇) + (♯‘⟨“𝑆”⟩)) − 1) = (((𝑁 + 1) + 1) − 1))
116 peano2nn0 11974 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ0)
117116nn0cnd 11996 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℂ)
118117, 55pncand 11036 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ ℕ0 → (((𝑁 + 1) + 1) − 1) = (𝑁 + 1))
119118ad2antrl 727 . . . . . . . . . . . . . . . . 17 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (((𝑁 + 1) + 1) − 1) = (𝑁 + 1))
120110, 115, 1193eqtrd 2797 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1) = (𝑁 + 1))
121120oveq2d 7166 . . . . . . . . . . . . . . 15 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)) = (0..^(𝑁 + 1)))
122121raleqdv 3329 . . . . . . . . . . . . . 14 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ↔ ∀𝑖 ∈ (0..^(𝑁 + 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸))
123107, 122mpbird 260 . . . . . . . . . . . . 13 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸)
12418, 22, 1233jca 1125 . . . . . . . . . . . 12 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸))
125109, 114eqtrd 2793 . . . . . . . . . . . 12 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))
126124, 125jca 515 . . . . . . . . . . 11 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1)))
127126ex 416 . . . . . . . . . 10 ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) → ((𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → (((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))))
1284, 127syl 17 . . . . . . . . 9 (𝑇 ∈ (𝑁 WWalksN 𝐺) → ((𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → (((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))))
129128expd 419 . . . . . . . 8 (𝑇 ∈ (𝑁 WWalksN 𝐺) → (𝑁 ∈ ℕ0 → ((𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1)))))
130129impcom 411 . . . . . . 7 ((𝑁 ∈ ℕ0𝑇 ∈ (𝑁 WWalksN 𝐺)) → ((𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))))
131130adantll 713 . . . . . 6 (((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0) ∧ 𝑇 ∈ (𝑁 WWalksN 𝐺)) → ((𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))))
132 iswwlksn 27723 . . . . . . . . . 10 ((𝑁 + 1) ∈ ℕ0 → ((𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ ((𝑇 ++ ⟨“𝑆”⟩) ∈ (WWalks‘𝐺) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))))
133116, 132syl 17 . . . . . . . . 9 (𝑁 ∈ ℕ0 → ((𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ ((𝑇 ++ ⟨“𝑆”⟩) ∈ (WWalks‘𝐺) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))))
134133adantl 485 . . . . . . . 8 ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0) → ((𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ ((𝑇 ++ ⟨“𝑆”⟩) ∈ (WWalks‘𝐺) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))))
1351, 3iswwlks 27721 . . . . . . . . 9 ((𝑇 ++ ⟨“𝑆”⟩) ∈ (WWalks‘𝐺) ↔ ((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸))
136135anbi1i 626 . . . . . . . 8 (((𝑇 ++ ⟨“𝑆”⟩) ∈ (WWalks‘𝐺) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1)) ↔ (((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1)))
137134, 136bitrdi 290 . . . . . . 7 ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0) → ((𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ (((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))))
138137adantr 484 . . . . . 6 (((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0) ∧ 𝑇 ∈ (𝑁 WWalksN 𝐺)) → ((𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ (((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))))
139131, 138sylibrd 262 . . . . 5 (((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0) ∧ 𝑇 ∈ (𝑁 WWalksN 𝐺)) → ((𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺)))
140139ex 416 . . . 4 ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0) → (𝑇 ∈ (𝑁 WWalksN 𝐺) → ((𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺))))
1411403adant3 1129 . . 3 ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0𝑇 ∈ Word 𝑉) → (𝑇 ∈ (𝑁 WWalksN 𝐺) → ((𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺))))
1422, 141mpcom 38 . 2 (𝑇 ∈ (𝑁 WWalksN 𝐺) → ((𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺)))
1431423impib 1113 1 ((𝑇 ∈ (𝑁 WWalksN 𝐺) ∧ 𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺))
 Colors of variables: wff setvar class Syntax hints:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 399   ∧ w3a 1084   = wceq 1538   ∈ wcel 2111   ≠ wne 2951  ∀wral 3070  Vcvv 3409   ∪ cun 3856   ⊆ wss 3858  ∅c0 4225  {csn 4522  {cpr 4524  ⟨cop 4528  ‘cfv 6335  (class class class)co 7150  0cc0 10575  1c1 10576   + caddc 10578   − cmin 10908  ℕ0cn0 11934  ℤcz 12020  ℤ≥cuz 12282  ...cfz 12939  ..^cfzo 13082  ♯chash 13740  Word cword 13913  lastSclsw 13961   ++ cconcat 13969  ⟨“cs1 13996  Vtxcvtx 26888  Edgcedg 26939  WWalkscwwlks 27710   WWalksN cwwlksn 27711 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2729  ax-rep 5156  ax-sep 5169  ax-nul 5176  ax-pow 5234  ax-pr 5298  ax-un 7459  ax-cnex 10631  ax-resscn 10632  ax-1cn 10633  ax-icn 10634  ax-addcl 10635  ax-addrcl 10636  ax-mulcl 10637  ax-mulrcl 10638  ax-mulcom 10639  ax-addass 10640  ax-mulass 10641  ax-distr 10642  ax-i2m1 10643  ax-1ne0 10644  ax-1rid 10645  ax-rnegex 10646  ax-rrecex 10647  ax-cnre 10648  ax-pre-lttri 10649  ax-pre-lttrn 10650  ax-pre-ltadd 10651  ax-pre-mulgt0 10652 This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-fal 1551  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2557  df-eu 2588  df-clab 2736  df-cleq 2750  df-clel 2830  df-nfc 2901  df-ne 2952  df-nel 3056  df-ral 3075  df-rex 3076  df-reu 3077  df-rab 3079  df-v 3411  df-sbc 3697  df-csb 3806  df-dif 3861  df-un 3863  df-in 3865  df-ss 3875  df-pss 3877  df-nul 4226  df-if 4421  df-pw 4496  df-sn 4523  df-pr 4525  df-tp 4527  df-op 4529  df-uni 4799  df-int 4839  df-iun 4885  df-br 5033  df-opab 5095  df-mpt 5113  df-tr 5139  df-id 5430  df-eprel 5435  df-po 5443  df-so 5444  df-fr 5483  df-we 5485  df-xp 5530  df-rel 5531  df-cnv 5532  df-co 5533  df-dm 5534  df-rn 5535  df-res 5536  df-ima 5537  df-pred 6126  df-ord 6172  df-on 6173  df-lim 6174  df-suc 6175  df-iota 6294  df-fun 6337  df-fn 6338  df-f 6339  df-f1 6340  df-fo 6341  df-f1o 6342  df-fv 6343  df-riota 7108  df-ov 7153  df-oprab 7154  df-mpo 7155  df-om 7580  df-1st 7693  df-2nd 7694  df-wrecs 7957  df-recs 8018  df-rdg 8056  df-1o 8112  df-er 8299  df-map 8418  df-en 8528  df-dom 8529  df-sdom 8530  df-fin 8531  df-card 9401  df-pnf 10715  df-mnf 10716  df-xr 10717  df-ltxr 10718  df-le 10719  df-sub 10910  df-neg 10911  df-nn 11675  df-n0 11935  df-z 12021  df-uz 12283  df-fz 12940  df-fzo 13083  df-hash 13741  df-word 13914  df-lsw 13962  df-concat 13970  df-s1 13997  df-wwlks 27715  df-wwlksn 27716 This theorem is referenced by:  wwlksnextbi  27779  wwlksnextsurj  27785
 Copyright terms: Public domain W3C validator