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

Theorem wwlksnext 27604
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 27553 . . 3 (𝑇 ∈ (𝑁 WWalksN 𝐺) → (𝐺 ∈ V ∧ 𝑁 ∈ ℕ0𝑇 ∈ Word 𝑉))
3 wwlksnext.e . . . . . . . . . . 11 𝐸 = (Edg‘𝐺)
41, 3wwlknp 27554 . . . . . . . . . 10 (𝑇 ∈ (𝑁 WWalksN 𝐺) → (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸))
5 simp1 1130 . . . . . . . . . . . . . . 15 ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) → 𝑇 ∈ Word 𝑉)
6 simprl 767 . . . . . . . . . . . . . . 15 ((𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → 𝑆𝑉)
7 cats1un 14078 . . . . . . . . . . . . . . 15 ((𝑇 ∈ Word 𝑉𝑆𝑉) → (𝑇 ++ ⟨“𝑆”⟩) = (𝑇 ∪ {⟨(♯‘𝑇), 𝑆⟩}))
85, 6, 7syl2an 595 . . . . . . . . . . . . . 14 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑇 ++ ⟨“𝑆”⟩) = (𝑇 ∪ {⟨(♯‘𝑇), 𝑆⟩}))
9 opex 5353 . . . . . . . . . . . . . . . . . . 19 ⟨(♯‘𝑇), 𝑆⟩ ∈ V
109snnz 4710 . . . . . . . . . . . . . . . . . 18 {⟨(♯‘𝑇), 𝑆⟩} ≠ ∅
1110neii 3023 . . . . . . . . . . . . . . . . 17 ¬ {⟨(♯‘𝑇), 𝑆⟩} = ∅
1211intnan 487 . . . . . . . . . . . . . . . 16 ¬ (𝑇 = ∅ ∧ {⟨(♯‘𝑇), 𝑆⟩} = ∅)
13 df-ne 3022 . . . . . . . . . . . . . . . . 17 ((𝑇 ∪ {⟨(♯‘𝑇), 𝑆⟩}) ≠ ∅ ↔ ¬ (𝑇 ∪ {⟨(♯‘𝑇), 𝑆⟩}) = ∅)
14 un00 4397 . . . . . . . . . . . . . . . . 17 ((𝑇 = ∅ ∧ {⟨(♯‘𝑇), 𝑆⟩} = ∅) ↔ (𝑇 ∪ {⟨(♯‘𝑇), 𝑆⟩}) = ∅)
1513, 14xchbinxr 336 . . . . . . . . . . . . . . . 16 ((𝑇 ∪ {⟨(♯‘𝑇), 𝑆⟩}) ≠ ∅ ↔ ¬ (𝑇 = ∅ ∧ {⟨(♯‘𝑇), 𝑆⟩} = ∅))
1612, 15mpbir 232 . . . . . . . . . . . . . . 15 (𝑇 ∪ {⟨(♯‘𝑇), 𝑆⟩}) ≠ ∅
1716a1i 11 . . . . . . . . . . . . . 14 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑇 ∪ {⟨(♯‘𝑇), 𝑆⟩}) ≠ ∅)
188, 17eqnetrd 3088 . . . . . . . . . . . . 13 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑇 ++ ⟨“𝑆”⟩) ≠ ∅)
19 s1cl 13951 . . . . . . . . . . . . . . 15 (𝑆𝑉 → ⟨“𝑆”⟩ ∈ Word 𝑉)
2019ad2antrl 724 . . . . . . . . . . . . . 14 ((𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ⟨“𝑆”⟩ ∈ Word 𝑉)
21 ccatcl 13921 . . . . . . . . . . . . . 14 ((𝑇 ∈ Word 𝑉 ∧ ⟨“𝑆”⟩ ∈ Word 𝑉) → (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉)
225, 20, 21syl2an 595 . . . . . . . . . . . . 13 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉)
23 simplrl 773 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → 𝑇 ∈ Word 𝑉)
24 fzossfzop1 13110 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑁 ∈ ℕ0 → (0..^𝑁) ⊆ (0..^(𝑁 + 1)))
2524ad2antrr 722 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (0..^𝑁) ⊆ (0..^(𝑁 + 1)))
2625sselda 3971 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → 𝑖 ∈ (0..^(𝑁 + 1)))
27 oveq2 7158 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((♯‘𝑇) = (𝑁 + 1) → (0..^(♯‘𝑇)) = (0..^(𝑁 + 1)))
2827eleq2d 2903 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((♯‘𝑇) = (𝑁 + 1) → (𝑖 ∈ (0..^(♯‘𝑇)) ↔ 𝑖 ∈ (0..^(𝑁 + 1))))
2928adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (𝑖 ∈ (0..^(♯‘𝑇)) ↔ 𝑖 ∈ (0..^(𝑁 + 1))))
3029ad2antlr 723 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → (𝑖 ∈ (0..^(♯‘𝑇)) ↔ 𝑖 ∈ (0..^(𝑁 + 1))))
3126, 30mpbird 258 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → 𝑖 ∈ (0..^(♯‘𝑇)))
32 ccats1val1 13976 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑇 ∈ Word 𝑉𝑖 ∈ (0..^(♯‘𝑇))) → ((𝑇 ++ ⟨“𝑆”⟩)‘𝑖) = (𝑇𝑖))
3323, 31, 32syl2anc 584 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → ((𝑇 ++ ⟨“𝑆”⟩)‘𝑖) = (𝑇𝑖))
34 fzonn0p1p1 13111 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑖 ∈ (0..^𝑁) → (𝑖 + 1) ∈ (0..^(𝑁 + 1)))
3534adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → (𝑖 + 1) ∈ (0..^(𝑁 + 1)))
3627adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (0..^(♯‘𝑇)) = (0..^(𝑁 + 1)))
3736ad2antlr 723 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → (0..^(♯‘𝑇)) = (0..^(𝑁 + 1)))
3835, 37eleqtrrd 2921 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → (𝑖 + 1) ∈ (0..^(♯‘𝑇)))
39 ccats1val1 13976 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑇 ∈ Word 𝑉 ∧ (𝑖 + 1) ∈ (0..^(♯‘𝑇))) → ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1)) = (𝑇‘(𝑖 + 1)))
4023, 38, 39syl2anc 584 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1)) = (𝑇‘(𝑖 + 1)))
4133, 40preq12d 4676 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((((𝑁 ∈ ℕ0𝑆𝑉) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) ∧ 𝑖 ∈ (0..^𝑁)) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} = {(𝑇𝑖), (𝑇‘(𝑖 + 1))})
4241exp31 420 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑁 ∈ ℕ0𝑆𝑉) → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (𝑖 ∈ (0..^𝑁) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} = {(𝑇𝑖), (𝑇‘(𝑖 + 1))})))
4342adantrr 713 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (𝑖 ∈ (0..^𝑁) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} = {(𝑇𝑖), (𝑇‘(𝑖 + 1))})))
4443impcom 408 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (𝑖 ∈ (0..^𝑁) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} = {(𝑇𝑖), (𝑇‘(𝑖 + 1))}))
4544imp 407 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) ∧ 𝑖 ∈ (0..^𝑁)) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} = {(𝑇𝑖), (𝑇‘(𝑖 + 1))})
4645eleq1d 2902 . . . . . . . . . . . . . . . . . . . . 21 ((((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) ∧ 𝑖 ∈ (0..^𝑁)) → ({((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ↔ {(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸))
4746ralbidva 3201 . . . . . . . . . . . . . . . . . . . 20 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (∀𝑖 ∈ (0..^𝑁){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ↔ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸))
4847exbiri 807 . . . . . . . . . . . . . . . . . . 19 ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → ((𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → (∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸 → ∀𝑖 ∈ (0..^𝑁){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸)))
4948com23 86 . . . . . . . . . . . . . . . . . 18 ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → (∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸 → ((𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ∀𝑖 ∈ (0..^𝑁){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸)))
50493impia 1111 . . . . . . . . . . . . . . . . 17 ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) → ((𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ∀𝑖 ∈ (0..^𝑁){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸))
5150imp 407 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ (0..^𝑁){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸)
52 oveq1 7157 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((♯‘𝑇) = (𝑁 + 1) → ((♯‘𝑇) − 1) = ((𝑁 + 1) − 1))
5352adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → ((♯‘𝑇) − 1) = ((𝑁 + 1) − 1))
54 nn0cn 11901 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑁 ∈ ℕ0𝑁 ∈ ℂ)
55 1cnd 10630 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑁 ∈ ℕ0 → 1 ∈ ℂ)
5654, 55pncand 10992 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑁 ∈ ℕ0 → ((𝑁 + 1) − 1) = 𝑁)
5756adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑆𝑉𝑁 ∈ ℕ0) → ((𝑁 + 1) − 1) = 𝑁)
5853, 57sylan9eqr 2883 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → ((♯‘𝑇) − 1) = 𝑁)
5958fveq2d 6673 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (𝑇‘((♯‘𝑇) − 1)) = (𝑇𝑁))
60 lsw 13911 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑇 ∈ Word 𝑉 → (lastS‘𝑇) = (𝑇‘((♯‘𝑇) − 1)))
6160ad2antrl 724 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (lastS‘𝑇) = (𝑇‘((♯‘𝑇) − 1)))
62 simprl 767 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑇 ∈ Word 𝑉)
63 fzonn0p1 13109 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑁 ∈ ℕ0𝑁 ∈ (0..^(𝑁 + 1)))
6463ad2antlr 723 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑁 ∈ (0..^(𝑁 + 1)))
6527eleq2d 2903 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((♯‘𝑇) = (𝑁 + 1) → (𝑁 ∈ (0..^(♯‘𝑇)) ↔ 𝑁 ∈ (0..^(𝑁 + 1))))
6665ad2antll 725 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (𝑁 ∈ (0..^(♯‘𝑇)) ↔ 𝑁 ∈ (0..^(𝑁 + 1))))
6764, 66mpbird 258 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑁 ∈ (0..^(♯‘𝑇)))
68 ccats1val1 13976 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑇 ∈ Word 𝑉𝑁 ∈ (0..^(♯‘𝑇))) → ((𝑇 ++ ⟨“𝑆”⟩)‘𝑁) = (𝑇𝑁))
6962, 67, 68syl2anc 584 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → ((𝑇 ++ ⟨“𝑆”⟩)‘𝑁) = (𝑇𝑁))
7059, 61, 693eqtr4d 2871 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (lastS‘𝑇) = ((𝑇 ++ ⟨“𝑆”⟩)‘𝑁))
71 simpll 763 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑆𝑉)
72 simprr 769 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (♯‘𝑇) = (𝑁 + 1))
7372eqcomd 2832 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → (𝑁 + 1) = (♯‘𝑇))
74 ccats1val2 13978 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑇 ∈ Word 𝑉𝑆𝑉 ∧ (𝑁 + 1) = (♯‘𝑇)) → ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1)) = 𝑆)
7574eqcomd 2832 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑇 ∈ Word 𝑉𝑆𝑉 ∧ (𝑁 + 1) = (♯‘𝑇)) → 𝑆 = ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1)))
7662, 71, 73, 75syl3anc 1365 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → 𝑆 = ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1)))
7770, 76preq12d 4676 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → {(lastS‘𝑇), 𝑆} = {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))})
7877eleq1d 2902 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → ({(lastS‘𝑇), 𝑆} ∈ 𝐸 ↔ {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸))
7978biimpcd 250 . . . . . . . . . . . . . . . . . . . . . 22 ({(lastS‘𝑇), 𝑆} ∈ 𝐸 → (((𝑆𝑉𝑁 ∈ ℕ0) ∧ (𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1))) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸))
8079exp4c 433 . . . . . . . . . . . . . . . . . . . . 21 ({(lastS‘𝑇), 𝑆} ∈ 𝐸 → (𝑆𝑉 → (𝑁 ∈ ℕ0 → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸))))
8180impcom 408 . . . . . . . . . . . . . . . . . . . 20 ((𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑁 ∈ ℕ0 → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸)))
8281impcom 408 . . . . . . . . . . . . . . . . . . 19 ((𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸)) → ((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸))
8382impcom 408 . . . . . . . . . . . . . . . . . 18 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1)) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸)
84833adantl3 1162 . . . . . . . . . . . . . . . . 17 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸)
85 fveq2 6669 . . . . . . . . . . . . . . . . . . . . 21 (𝑖 = 𝑁 → ((𝑇 ++ ⟨“𝑆”⟩)‘𝑖) = ((𝑇 ++ ⟨“𝑆”⟩)‘𝑁))
86 fvoveq1 7173 . . . . . . . . . . . . . . . . . . . . 21 (𝑖 = 𝑁 → ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1)) = ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1)))
8785, 86preq12d 4676 . . . . . . . . . . . . . . . . . . . 20 (𝑖 = 𝑁 → {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} = {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))})
8887eleq1d 2902 . . . . . . . . . . . . . . . . . . 19 (𝑖 = 𝑁 → ({((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ↔ {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸))
8988ralsng 4612 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ ℕ0 → (∀𝑖 ∈ {𝑁} {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ↔ {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸))
9089ad2antrl 724 . . . . . . . . . . . . . . . . 17 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (∀𝑖 ∈ {𝑁} {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ↔ {((𝑇 ++ ⟨“𝑆”⟩)‘𝑁), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑁 + 1))} ∈ 𝐸))
9184, 90mpbird 258 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ {𝑁} {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸)
92 ralunb 4171 . . . . . . . . . . . . . . . 16 (∀𝑖 ∈ ((0..^𝑁) ∪ {𝑁}){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ↔ (∀𝑖 ∈ (0..^𝑁){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ∧ ∀𝑖 ∈ {𝑁} {((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸))
9351, 91, 92sylanbrc 583 . . . . . . . . . . . . . . 15 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ ((0..^𝑁) ∪ {𝑁}){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸)
94 elnn0uz 12277 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℕ0𝑁 ∈ (ℤ‘0))
95 eluzfz2 12910 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ (ℤ‘0) → 𝑁 ∈ (0...𝑁))
9694, 95sylbi 218 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ ℕ0𝑁 ∈ (0...𝑁))
97 fzelp1 12954 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ (0...𝑁) → 𝑁 ∈ (0...(𝑁 + 1)))
98 fzosplit 13065 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ (0...(𝑁 + 1)) → (0..^(𝑁 + 1)) = ((0..^𝑁) ∪ (𝑁..^(𝑁 + 1))))
9996, 97, 983syl 18 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ ℕ0 → (0..^(𝑁 + 1)) = ((0..^𝑁) ∪ (𝑁..^(𝑁 + 1))))
100 nn0z 11999 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℕ0𝑁 ∈ ℤ)
101 fzosn 13103 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℤ → (𝑁..^(𝑁 + 1)) = {𝑁})
102100, 101syl 17 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ ℕ0 → (𝑁..^(𝑁 + 1)) = {𝑁})
103102uneq2d 4143 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ ℕ0 → ((0..^𝑁) ∪ (𝑁..^(𝑁 + 1))) = ((0..^𝑁) ∪ {𝑁}))
10499, 103eqtrd 2861 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ ℕ0 → (0..^(𝑁 + 1)) = ((0..^𝑁) ∪ {𝑁}))
105104ad2antrl 724 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (0..^(𝑁 + 1)) = ((0..^𝑁) ∪ {𝑁}))
106105raleqdv 3421 . . . . . . . . . . . . . . 15 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (∀𝑖 ∈ (0..^(𝑁 + 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ↔ ∀𝑖 ∈ ((0..^𝑁) ∪ {𝑁}){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸))
10793, 106mpbird 258 . . . . . . . . . . . . . 14 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ (0..^(𝑁 + 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸)
108 ccatlen 13922 . . . . . . . . . . . . . . . . . . 19 ((𝑇 ∈ Word 𝑉 ∧ ⟨“𝑆”⟩ ∈ Word 𝑉) → (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((♯‘𝑇) + (♯‘⟨“𝑆”⟩)))
1095, 20, 108syl2an 595 . . . . . . . . . . . . . . . . . 18 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((♯‘𝑇) + (♯‘⟨“𝑆”⟩)))
110109oveq1d 7165 . . . . . . . . . . . . . . . . 17 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1) = (((♯‘𝑇) + (♯‘⟨“𝑆”⟩)) − 1))
111 simpl2 1186 . . . . . . . . . . . . . . . . . . 19 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (♯‘𝑇) = (𝑁 + 1))
112 s1len 13955 . . . . . . . . . . . . . . . . . . . 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 11931 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ0)
117116nn0cnd 11951 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℂ)
118117, 55pncand 10992 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ ℕ0 → (((𝑁 + 1) + 1) − 1) = (𝑁 + 1))
119118ad2antrl 724 . . . . . . . . . . . . . . . . 17 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (((𝑁 + 1) + 1) − 1) = (𝑁 + 1))
120110, 115, 1193eqtrd 2865 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1) = (𝑁 + 1))
121120oveq2d 7166 . . . . . . . . . . . . . . 15 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)) = (0..^(𝑁 + 1)))
122121raleqdv 3421 . . . . . . . . . . . . . 14 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸 ↔ ∀𝑖 ∈ (0..^(𝑁 + 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸))
123107, 122mpbird 258 . . . . . . . . . . . . 13 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸)
12418, 22, 1233jca 1122 . . . . . . . . . . . 12 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → ((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸))
125109, 114eqtrd 2861 . . . . . . . . . . . 12 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))
126124, 125jca 512 . . . . . . . . . . 11 (((𝑇 ∈ Word 𝑉 ∧ (♯‘𝑇) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑇𝑖), (𝑇‘(𝑖 + 1))} ∈ 𝐸) ∧ (𝑁 ∈ ℕ0 ∧ (𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸))) → (((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1)))
127126ex 413 . . . . . . . . . 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 416 . . . . . . . 8 (𝑇 ∈ (𝑁 WWalksN 𝐺) → (𝑁 ∈ ℕ0 → ((𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1)))))
130129impcom 408 . . . . . . 7 ((𝑁 ∈ ℕ0𝑇 ∈ (𝑁 WWalksN 𝐺)) → ((𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))))
131130adantll 710 . . . . . 6 (((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0) ∧ 𝑇 ∈ (𝑁 WWalksN 𝐺)) → ((𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))))
132 iswwlksn 27549 . . . . . . . . . 10 ((𝑁 + 1) ∈ ℕ0 → ((𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ ((𝑇 ++ ⟨“𝑆”⟩) ∈ (WWalks‘𝐺) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))))
133116, 132syl 17 . . . . . . . . 9 (𝑁 ∈ ℕ0 → ((𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ ((𝑇 ++ ⟨“𝑆”⟩) ∈ (WWalks‘𝐺) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))))
134133adantl 482 . . . . . . . 8 ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0) → ((𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ ((𝑇 ++ ⟨“𝑆”⟩) ∈ (WWalks‘𝐺) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))))
1351, 3iswwlks 27547 . . . . . . . . 9 ((𝑇 ++ ⟨“𝑆”⟩) ∈ (WWalks‘𝐺) ↔ ((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸))
136135anbi1i 623 . . . . . . . 8 (((𝑇 ++ ⟨“𝑆”⟩) ∈ (WWalks‘𝐺) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1)) ↔ (((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1)))
137134, 136syl6bb 288 . . . . . . 7 ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0) → ((𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ (((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))))
138137adantr 481 . . . . . 6 (((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0) ∧ 𝑇 ∈ (𝑁 WWalksN 𝐺)) → ((𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ (((𝑇 ++ ⟨“𝑆”⟩) ≠ ∅ ∧ (𝑇 ++ ⟨“𝑆”⟩) ∈ Word 𝑉 ∧ ∀𝑖 ∈ (0..^((♯‘(𝑇 ++ ⟨“𝑆”⟩)) − 1)){((𝑇 ++ ⟨“𝑆”⟩)‘𝑖), ((𝑇 ++ ⟨“𝑆”⟩)‘(𝑖 + 1))} ∈ 𝐸) ∧ (♯‘(𝑇 ++ ⟨“𝑆”⟩)) = ((𝑁 + 1) + 1))))
139131, 138sylibrd 260 . . . . 5 (((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0) ∧ 𝑇 ∈ (𝑁 WWalksN 𝐺)) → ((𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺)))
140139ex 413 . . . 4 ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0) → (𝑇 ∈ (𝑁 WWalksN 𝐺) → ((𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺))))
1411403adant3 1126 . . 3 ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0𝑇 ∈ Word 𝑉) → (𝑇 ∈ (𝑁 WWalksN 𝐺) → ((𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺))))
1422, 141mpcom 38 . 2 (𝑇 ∈ (𝑁 WWalksN 𝐺) → ((𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺)))
1431423impib 1110 1 ((𝑇 ∈ (𝑁 WWalksN 𝐺) ∧ 𝑆𝑉 ∧ {(lastS‘𝑇), 𝑆} ∈ 𝐸) → (𝑇 ++ ⟨“𝑆”⟩) ∈ ((𝑁 + 1) WWalksN 𝐺))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 207  wa 396  w3a 1081   = wceq 1530  wcel 2107  wne 3021  wral 3143  Vcvv 3500  cun 3938  wss 3940  c0 4295  {csn 4564  {cpr 4566  cop 4570  cfv 6354  (class class class)co 7150  0cc0 10531  1c1 10532   + caddc 10534  cmin 10864  0cn0 11891  cz 11975  cuz 12237  ...cfz 12887  ..^cfzo 13028  chash 13685  Word cword 13856  lastSclsw 13909   ++ cconcat 13917  ⟨“cs1 13944  Vtxcvtx 26714  Edgcedg 26765  WWalkscwwlks 27536   WWalksN cwwlksn 27537
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1789  ax-4 1803  ax-5 1904  ax-6 1963  ax-7 2008  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2153  ax-12 2169  ax-ext 2798  ax-rep 5187  ax-sep 5200  ax-nul 5207  ax-pow 5263  ax-pr 5326  ax-un 7455  ax-cnex 10587  ax-resscn 10588  ax-1cn 10589  ax-icn 10590  ax-addcl 10591  ax-addrcl 10592  ax-mulcl 10593  ax-mulrcl 10594  ax-mulcom 10595  ax-addass 10596  ax-mulass 10597  ax-distr 10598  ax-i2m1 10599  ax-1ne0 10600  ax-1rid 10601  ax-rnegex 10602  ax-rrecex 10603  ax-cnre 10604  ax-pre-lttri 10605  ax-pre-lttrn 10606  ax-pre-ltadd 10607  ax-pre-mulgt0 10608
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 844  df-3or 1082  df-3an 1083  df-tru 1533  df-ex 1774  df-nf 1778  df-sb 2063  df-mo 2620  df-eu 2652  df-clab 2805  df-cleq 2819  df-clel 2898  df-nfc 2968  df-ne 3022  df-nel 3129  df-ral 3148  df-rex 3149  df-reu 3150  df-rab 3152  df-v 3502  df-sbc 3777  df-csb 3888  df-dif 3943  df-un 3945  df-in 3947  df-ss 3956  df-pss 3958  df-nul 4296  df-if 4471  df-pw 4544  df-sn 4565  df-pr 4567  df-tp 4569  df-op 4571  df-uni 4838  df-int 4875  df-iun 4919  df-br 5064  df-opab 5126  df-mpt 5144  df-tr 5170  df-id 5459  df-eprel 5464  df-po 5473  df-so 5474  df-fr 5513  df-we 5515  df-xp 5560  df-rel 5561  df-cnv 5562  df-co 5563  df-dm 5564  df-rn 5565  df-res 5566  df-ima 5567  df-pred 6147  df-ord 6193  df-on 6194  df-lim 6195  df-suc 6196  df-iota 6313  df-fun 6356  df-fn 6357  df-f 6358  df-f1 6359  df-fo 6360  df-f1o 6361  df-fv 6362  df-riota 7108  df-ov 7153  df-oprab 7154  df-mpo 7155  df-om 7574  df-1st 7685  df-2nd 7686  df-wrecs 7943  df-recs 8004  df-rdg 8042  df-1o 8098  df-oadd 8102  df-er 8284  df-map 8403  df-en 8504  df-dom 8505  df-sdom 8506  df-fin 8507  df-card 9362  df-pnf 10671  df-mnf 10672  df-xr 10673  df-ltxr 10674  df-le 10675  df-sub 10866  df-neg 10867  df-nn 11633  df-n0 11892  df-z 11976  df-uz 12238  df-fz 12888  df-fzo 13029  df-hash 13686  df-word 13857  df-lsw 13910  df-concat 13918  df-s1 13945  df-wwlks 27541  df-wwlksn 27542
This theorem is referenced by:  wwlksnextbi  27605  wwlksnextsurj  27611
  Copyright terms: Public domain W3C validator