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

Theorem wwlksnextwrd 27388
 Description: Lemma for wwlksnextbij 27398. (Contributed by Alexander van der Vekens, 5-Aug-2018.) (Revised by AV, 18-Apr-2021.) (Revised by AV, 27-Oct-2022.)
Hypotheses
Ref Expression
wwlksnextbij0.v 𝑉 = (Vtx‘𝐺)
wwlksnextbij0.e 𝐸 = (Edg‘𝐺)
wwlksnextbij0.d 𝐷 = {𝑤 ∈ Word 𝑉 ∣ ((♯‘𝑤) = (𝑁 + 2) ∧ (𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)}
Assertion
Ref Expression
wwlksnextwrd (𝑊 ∈ (𝑁 WWalksN 𝐺) → 𝐷 = {𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺) ∣ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)})
Distinct variable groups:   𝑤,𝐺   𝑤,𝑁   𝑤,𝑊
Allowed substitution hints:   𝐷(𝑤)   𝐸(𝑤)   𝑉(𝑤)

Proof of Theorem wwlksnextwrd
Dummy variable 𝑖 is distinct from all other variables.
StepHypRef Expression
1 wwlksnextbij0.d . 2 𝐷 = {𝑤 ∈ Word 𝑉 ∣ ((♯‘𝑤) = (𝑁 + 2) ∧ (𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)}
2 3anass 1076 . . . . 5 (((♯‘𝑤) = (𝑁 + 2) ∧ (𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸) ↔ ((♯‘𝑤) = (𝑁 + 2) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)))
32bianass 629 . . . 4 ((𝑤 ∈ Word 𝑉 ∧ ((♯‘𝑤) = (𝑁 + 2) ∧ (𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)) ↔ ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)))
4 wwlksnextbij0.v . . . . . . . . . . 11 𝑉 = (Vtx‘𝐺)
54wwlknbp 27328 . . . . . . . . . 10 (𝑊 ∈ (𝑁 WWalksN 𝐺) → (𝐺 ∈ V ∧ 𝑁 ∈ ℕ0𝑊 ∈ Word 𝑉))
6 simpl 475 . . . . . . . . . . . . . 14 ((𝑁 ∈ ℕ0 ∧ ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸))) → 𝑁 ∈ ℕ0)
7 simpl 475 . . . . . . . . . . . . . . . 16 ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) → 𝑤 ∈ Word 𝑉)
8 nn0re 11717 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℕ0𝑁 ∈ ℝ)
9 2re 11514 . . . . . . . . . . . . . . . . . . . . 21 2 ∈ ℝ
109a1i 11 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℕ0 → 2 ∈ ℝ)
11 nn0ge0 11734 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℕ0 → 0 ≤ 𝑁)
12 2pos 11550 . . . . . . . . . . . . . . . . . . . . 21 0 < 2
1312a1i 11 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℕ0 → 0 < 2)
148, 10, 11, 13addgegt0d 11014 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ ℕ0 → 0 < (𝑁 + 2))
1514adantr 473 . . . . . . . . . . . . . . . . . 18 ((𝑁 ∈ ℕ0 ∧ (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))) → 0 < (𝑁 + 2))
16 breq2 4933 . . . . . . . . . . . . . . . . . . 19 ((♯‘𝑤) = (𝑁 + 2) → (0 < (♯‘𝑤) ↔ 0 < (𝑁 + 2)))
1716ad2antll 716 . . . . . . . . . . . . . . . . . 18 ((𝑁 ∈ ℕ0 ∧ (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))) → (0 < (♯‘𝑤) ↔ 0 < (𝑁 + 2)))
1815, 17mpbird 249 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ ℕ0 ∧ (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))) → 0 < (♯‘𝑤))
19 hashgt0n0 13541 . . . . . . . . . . . . . . . . 17 ((𝑤 ∈ Word 𝑉 ∧ 0 < (♯‘𝑤)) → 𝑤 ≠ ∅)
207, 18, 19syl2an2 673 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ ℕ0 ∧ (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))) → 𝑤 ≠ ∅)
21 lswcl 13731 . . . . . . . . . . . . . . . 16 ((𝑤 ∈ Word 𝑉𝑤 ≠ ∅) → (lastS‘𝑤) ∈ 𝑉)
227, 20, 21syl2an2 673 . . . . . . . . . . . . . . 15 ((𝑁 ∈ ℕ0 ∧ (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))) → (lastS‘𝑤) ∈ 𝑉)
2322adantrr 704 . . . . . . . . . . . . . 14 ((𝑁 ∈ ℕ0 ∧ ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸))) → (lastS‘𝑤) ∈ 𝑉)
24 pfxcl 13859 . . . . . . . . . . . . . . . . . . . . 21 (𝑤 ∈ Word 𝑉 → (𝑤 prefix (𝑁 + 1)) ∈ Word 𝑉)
25 eleq1 2854 . . . . . . . . . . . . . . . . . . . . 21 (𝑊 = (𝑤 prefix (𝑁 + 1)) → (𝑊 ∈ Word 𝑉 ↔ (𝑤 prefix (𝑁 + 1)) ∈ Word 𝑉))
2624, 25syl5ibr 238 . . . . . . . . . . . . . . . . . . . 20 (𝑊 = (𝑤 prefix (𝑁 + 1)) → (𝑤 ∈ Word 𝑉𝑊 ∈ Word 𝑉))
2726eqcoms 2787 . . . . . . . . . . . . . . . . . . 19 ((𝑤 prefix (𝑁 + 1)) = 𝑊 → (𝑤 ∈ Word 𝑉𝑊 ∈ Word 𝑉))
2827adantr 473 . . . . . . . . . . . . . . . . . 18 (((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸) → (𝑤 ∈ Word 𝑉𝑊 ∈ Word 𝑉))
2928com12 32 . . . . . . . . . . . . . . . . 17 (𝑤 ∈ Word 𝑉 → (((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸) → 𝑊 ∈ Word 𝑉))
3029adantr 473 . . . . . . . . . . . . . . . 16 ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) → (((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸) → 𝑊 ∈ Word 𝑉))
3130imp 398 . . . . . . . . . . . . . . 15 (((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)) → 𝑊 ∈ Word 𝑉)
3231adantl 474 . . . . . . . . . . . . . 14 ((𝑁 ∈ ℕ0 ∧ ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸))) → 𝑊 ∈ Word 𝑉)
33 oveq1 6983 . . . . . . . . . . . . . . . . . 18 (𝑊 = (𝑤 prefix (𝑁 + 1)) → (𝑊 ++ ⟨“(lastS‘𝑤)”⟩) = ((𝑤 prefix (𝑁 + 1)) ++ ⟨“(lastS‘𝑤)”⟩))
3433eqcoms 2787 . . . . . . . . . . . . . . . . 17 ((𝑤 prefix (𝑁 + 1)) = 𝑊 → (𝑊 ++ ⟨“(lastS‘𝑤)”⟩) = ((𝑤 prefix (𝑁 + 1)) ++ ⟨“(lastS‘𝑤)”⟩))
3534adantr 473 . . . . . . . . . . . . . . . 16 (((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸) → (𝑊 ++ ⟨“(lastS‘𝑤)”⟩) = ((𝑤 prefix (𝑁 + 1)) ++ ⟨“(lastS‘𝑤)”⟩))
3635ad2antll 716 . . . . . . . . . . . . . . 15 ((𝑁 ∈ ℕ0 ∧ ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸))) → (𝑊 ++ ⟨“(lastS‘𝑤)”⟩) = ((𝑤 prefix (𝑁 + 1)) ++ ⟨“(lastS‘𝑤)”⟩))
37 oveq1 6983 . . . . . . . . . . . . . . . . . . . . 21 ((♯‘𝑤) = (𝑁 + 2) → ((♯‘𝑤) − 1) = ((𝑁 + 2) − 1))
3837adantl 474 . . . . . . . . . . . . . . . . . . . 20 ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) → ((♯‘𝑤) − 1) = ((𝑁 + 2) − 1))
39 nn0cn 11718 . . . . . . . . . . . . . . . . . . . . . 22 (𝑁 ∈ ℕ0𝑁 ∈ ℂ)
40 2cnd 11518 . . . . . . . . . . . . . . . . . . . . . 22 (𝑁 ∈ ℕ0 → 2 ∈ ℂ)
41 1cnd 10434 . . . . . . . . . . . . . . . . . . . . . 22 (𝑁 ∈ ℕ0 → 1 ∈ ℂ)
4239, 40, 41addsubassd 10818 . . . . . . . . . . . . . . . . . . . . 21 (𝑁 ∈ ℕ0 → ((𝑁 + 2) − 1) = (𝑁 + (2 − 1)))
43 2m1e1 11573 . . . . . . . . . . . . . . . . . . . . . . 23 (2 − 1) = 1
4443a1i 11 . . . . . . . . . . . . . . . . . . . . . 22 (𝑁 ∈ ℕ0 → (2 − 1) = 1)
4544oveq2d 6992 . . . . . . . . . . . . . . . . . . . . 21 (𝑁 ∈ ℕ0 → (𝑁 + (2 − 1)) = (𝑁 + 1))
4642, 45eqtrd 2815 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℕ0 → ((𝑁 + 2) − 1) = (𝑁 + 1))
4738, 46sylan9eqr 2837 . . . . . . . . . . . . . . . . . . 19 ((𝑁 ∈ ℕ0 ∧ (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))) → ((♯‘𝑤) − 1) = (𝑁 + 1))
4847oveq2d 6992 . . . . . . . . . . . . . . . . . 18 ((𝑁 ∈ ℕ0 ∧ (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))) → (𝑤 prefix ((♯‘𝑤) − 1)) = (𝑤 prefix (𝑁 + 1)))
4948oveq1d 6991 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ ℕ0 ∧ (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))) → ((𝑤 prefix ((♯‘𝑤) − 1)) ++ ⟨“(lastS‘𝑤)”⟩) = ((𝑤 prefix (𝑁 + 1)) ++ ⟨“(lastS‘𝑤)”⟩))
50 pfxlswccat 13902 . . . . . . . . . . . . . . . . . 18 ((𝑤 ∈ Word 𝑉𝑤 ≠ ∅) → ((𝑤 prefix ((♯‘𝑤) − 1)) ++ ⟨“(lastS‘𝑤)”⟩) = 𝑤)
517, 20, 50syl2an2 673 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ ℕ0 ∧ (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))) → ((𝑤 prefix ((♯‘𝑤) − 1)) ++ ⟨“(lastS‘𝑤)”⟩) = 𝑤)
5249, 51eqtr3d 2817 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ ℕ0 ∧ (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))) → ((𝑤 prefix (𝑁 + 1)) ++ ⟨“(lastS‘𝑤)”⟩) = 𝑤)
5352adantrr 704 . . . . . . . . . . . . . . 15 ((𝑁 ∈ ℕ0 ∧ ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸))) → ((𝑤 prefix (𝑁 + 1)) ++ ⟨“(lastS‘𝑤)”⟩) = 𝑤)
5436, 53eqtr2d 2816 . . . . . . . . . . . . . 14 ((𝑁 ∈ ℕ0 ∧ ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸))) → 𝑤 = (𝑊 ++ ⟨“(lastS‘𝑤)”⟩))
55 simprrr 769 . . . . . . . . . . . . . 14 ((𝑁 ∈ ℕ0 ∧ ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸))) → {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)
56 wwlksnextbij0.e . . . . . . . . . . . . . . 15 𝐸 = (Edg‘𝐺)
574, 56wwlksnextbi 27382 . . . . . . . . . . . . . 14 (((𝑁 ∈ ℕ0 ∧ (lastS‘𝑤) ∈ 𝑉) ∧ (𝑊 ∈ Word 𝑉𝑤 = (𝑊 ++ ⟨“(lastS‘𝑤)”⟩) ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)) → (𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ 𝑊 ∈ (𝑁 WWalksN 𝐺)))
586, 23, 32, 54, 55, 57syl23anc 1357 . . . . . . . . . . . . 13 ((𝑁 ∈ ℕ0 ∧ ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸))) → (𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺) ↔ 𝑊 ∈ (𝑁 WWalksN 𝐺)))
5958exbiri 798 . . . . . . . . . . . 12 (𝑁 ∈ ℕ0 → (((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)) → (𝑊 ∈ (𝑁 WWalksN 𝐺) → 𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺))))
6059com23 86 . . . . . . . . . . 11 (𝑁 ∈ ℕ0 → (𝑊 ∈ (𝑁 WWalksN 𝐺) → (((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)) → 𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺))))
61603ad2ant2 1114 . . . . . . . . . 10 ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0𝑊 ∈ Word 𝑉) → (𝑊 ∈ (𝑁 WWalksN 𝐺) → (((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)) → 𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺))))
625, 61mpcom 38 . . . . . . . . 9 (𝑊 ∈ (𝑁 WWalksN 𝐺) → (((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)) → 𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺)))
6362expcomd 409 . . . . . . . 8 (𝑊 ∈ (𝑁 WWalksN 𝐺) → (((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸) → ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) → 𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺))))
6463imp 398 . . . . . . 7 ((𝑊 ∈ (𝑁 WWalksN 𝐺) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)) → ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) → 𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺)))
654, 56wwlknp 27329 . . . . . . . . . . . 12 (𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺) → (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = ((𝑁 + 1) + 1) ∧ ∀𝑖 ∈ (0..^(𝑁 + 1)){(𝑤𝑖), (𝑤‘(𝑖 + 1))} ∈ 𝐸))
6639, 41, 41addassd 10462 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℕ0 → ((𝑁 + 1) + 1) = (𝑁 + (1 + 1)))
67 1p1e2 11572 . . . . . . . . . . . . . . . . . . . . . 22 (1 + 1) = 2
6867a1i 11 . . . . . . . . . . . . . . . . . . . . 21 (𝑁 ∈ ℕ0 → (1 + 1) = 2)
6968oveq2d 6992 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℕ0 → (𝑁 + (1 + 1)) = (𝑁 + 2))
7066, 69eqtrd 2815 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ ℕ0 → ((𝑁 + 1) + 1) = (𝑁 + 2))
7170eqeq2d 2789 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ ℕ0 → ((♯‘𝑤) = ((𝑁 + 1) + 1) ↔ (♯‘𝑤) = (𝑁 + 2)))
7271biimpd 221 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ ℕ0 → ((♯‘𝑤) = ((𝑁 + 1) + 1) → (♯‘𝑤) = (𝑁 + 2)))
7372adantr 473 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ ℕ0𝑊 ∈ Word 𝑉) → ((♯‘𝑤) = ((𝑁 + 1) + 1) → (♯‘𝑤) = (𝑁 + 2)))
7473com12 32 . . . . . . . . . . . . . . 15 ((♯‘𝑤) = ((𝑁 + 1) + 1) → ((𝑁 ∈ ℕ0𝑊 ∈ Word 𝑉) → (♯‘𝑤) = (𝑁 + 2)))
7574adantl 474 . . . . . . . . . . . . . 14 ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = ((𝑁 + 1) + 1)) → ((𝑁 ∈ ℕ0𝑊 ∈ Word 𝑉) → (♯‘𝑤) = (𝑁 + 2)))
76 simpl 475 . . . . . . . . . . . . . 14 ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = ((𝑁 + 1) + 1)) → 𝑤 ∈ Word 𝑉)
7775, 76jctild 518 . . . . . . . . . . . . 13 ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = ((𝑁 + 1) + 1)) → ((𝑁 ∈ ℕ0𝑊 ∈ Word 𝑉) → (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))))
78773adant3 1112 . . . . . . . . . . . 12 ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = ((𝑁 + 1) + 1) ∧ ∀𝑖 ∈ (0..^(𝑁 + 1)){(𝑤𝑖), (𝑤‘(𝑖 + 1))} ∈ 𝐸) → ((𝑁 ∈ ℕ0𝑊 ∈ Word 𝑉) → (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))))
7965, 78syl 17 . . . . . . . . . . 11 (𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺) → ((𝑁 ∈ ℕ0𝑊 ∈ Word 𝑉) → (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))))
8079com12 32 . . . . . . . . . 10 ((𝑁 ∈ ℕ0𝑊 ∈ Word 𝑉) → (𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺) → (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))))
81803adant1 1110 . . . . . . . . 9 ((𝐺 ∈ V ∧ 𝑁 ∈ ℕ0𝑊 ∈ Word 𝑉) → (𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺) → (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))))
825, 81syl 17 . . . . . . . 8 (𝑊 ∈ (𝑁 WWalksN 𝐺) → (𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺) → (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))))
8382adantr 473 . . . . . . 7 ((𝑊 ∈ (𝑁 WWalksN 𝐺) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)) → (𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺) → (𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2))))
8464, 83impbid 204 . . . . . 6 ((𝑊 ∈ (𝑁 WWalksN 𝐺) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)) → ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ↔ 𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺)))
8584ex 405 . . . . 5 (𝑊 ∈ (𝑁 WWalksN 𝐺) → (((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸) → ((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ↔ 𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺))))
8685pm5.32rd 570 . . . 4 (𝑊 ∈ (𝑁 WWalksN 𝐺) → (((𝑤 ∈ Word 𝑉 ∧ (♯‘𝑤) = (𝑁 + 2)) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)) ↔ (𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸))))
873, 86syl5bb 275 . . 3 (𝑊 ∈ (𝑁 WWalksN 𝐺) → ((𝑤 ∈ Word 𝑉 ∧ ((♯‘𝑤) = (𝑁 + 2) ∧ (𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)) ↔ (𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺) ∧ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸))))
8887rabbidva2 3401 . 2 (𝑊 ∈ (𝑁 WWalksN 𝐺) → {𝑤 ∈ Word 𝑉 ∣ ((♯‘𝑤) = (𝑁 + 2) ∧ (𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)} = {𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺) ∣ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)})
891, 88syl5eq 2827 1 (𝑊 ∈ (𝑁 WWalksN 𝐺) → 𝐷 = {𝑤 ∈ ((𝑁 + 1) WWalksN 𝐺) ∣ ((𝑤 prefix (𝑁 + 1)) = 𝑊 ∧ {(lastS‘𝑊), (lastS‘𝑤)} ∈ 𝐸)})
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ↔ wb 198   ∧ wa 387   ∧ w3a 1068   = wceq 1507   ∈ wcel 2050   ≠ wne 2968  ∀wral 3089  {crab 3093  Vcvv 3416  ∅c0 4179  {cpr 4443   class class class wbr 4929  ‘cfv 6188  (class class class)co 6976  ℝcr 10334  0cc0 10335  1c1 10336   + caddc 10338   < clt 10474   − cmin 10670  2c2 11495  ℕ0cn0 11707  ..^cfzo 12849  ♯chash 13505  Word cword 13672  lastSclsw 13725   ++ cconcat 13733  ⟨“cs1 13758   prefix cpfx 13852  Vtxcvtx 26484  Edgcedg 26535   WWalksN cwwlksn 27312 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1758  ax-4 1772  ax-5 1869  ax-6 1928  ax-7 1965  ax-8 2052  ax-9 2059  ax-10 2079  ax-11 2093  ax-12 2106  ax-13 2301  ax-ext 2751  ax-rep 5049  ax-sep 5060  ax-nul 5067  ax-pow 5119  ax-pr 5186  ax-un 7279  ax-cnex 10391  ax-resscn 10392  ax-1cn 10393  ax-icn 10394  ax-addcl 10395  ax-addrcl 10396  ax-mulcl 10397  ax-mulrcl 10398  ax-mulcom 10399  ax-addass 10400  ax-mulass 10401  ax-distr 10402  ax-i2m1 10403  ax-1ne0 10404  ax-1rid 10405  ax-rnegex 10406  ax-rrecex 10407  ax-cnre 10408  ax-pre-lttri 10409  ax-pre-lttrn 10410  ax-pre-ltadd 10411  ax-pre-mulgt0 10412 This theorem depends on definitions:  df-bi 199  df-an 388  df-or 834  df-3or 1069  df-3an 1070  df-tru 1510  df-ex 1743  df-nf 1747  df-sb 2016  df-mo 2547  df-eu 2584  df-clab 2760  df-cleq 2772  df-clel 2847  df-nfc 2919  df-ne 2969  df-nel 3075  df-ral 3094  df-rex 3095  df-reu 3096  df-rab 3098  df-v 3418  df-sbc 3683  df-csb 3788  df-dif 3833  df-un 3835  df-in 3837  df-ss 3844  df-pss 3846  df-nul 4180  df-if 4351  df-pw 4424  df-sn 4442  df-pr 4444  df-tp 4446  df-op 4448  df-uni 4713  df-int 4750  df-iun 4794  df-br 4930  df-opab 4992  df-mpt 5009  df-tr 5031  df-id 5312  df-eprel 5317  df-po 5326  df-so 5327  df-fr 5366  df-we 5368  df-xp 5413  df-rel 5414  df-cnv 5415  df-co 5416  df-dm 5417  df-rn 5418  df-res 5419  df-ima 5420  df-pred 5986  df-ord 6032  df-on 6033  df-lim 6034  df-suc 6035  df-iota 6152  df-fun 6190  df-fn 6191  df-f 6192  df-f1 6193  df-fo 6194  df-f1o 6195  df-fv 6196  df-riota 6937  df-ov 6979  df-oprab 6980  df-mpo 6981  df-om 7397  df-1st 7501  df-2nd 7502  df-wrecs 7750  df-recs 7812  df-rdg 7850  df-1o 7905  df-oadd 7909  df-er 8089  df-map 8208  df-en 8307  df-dom 8308  df-sdom 8309  df-fin 8310  df-card 9162  df-pnf 10476  df-mnf 10477  df-xr 10478  df-ltxr 10479  df-le 10480  df-sub 10672  df-neg 10673  df-nn 11440  df-2 11503  df-n0 11708  df-xnn0 11780  df-z 11794  df-uz 12059  df-fz 12709  df-fzo 12850  df-hash 13506  df-word 13673  df-lsw 13726  df-concat 13734  df-s1 13759  df-substr 13804  df-pfx 13853  df-wwlks 27316  df-wwlksn 27317 This theorem is referenced by:  wwlksnextsurj  27391  wwlksnextbij  27398
 Copyright terms: Public domain W3C validator