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

Theorem clwwlkvbij 28378
Description: There is a bijection between the set of closed walks of a fixed length 𝑁 on a fixed vertex 𝑋 represented by walks (as word) and the set of closed walks (as words) of the fixed length 𝑁 on the fixed vertex 𝑋. The difference between these two representations is that in the first case the fixed vertex is repeated at the end of the word, and in the second case it is not. (Contributed by Alexander van der Vekens, 29-Sep-2018.) (Revised by AV, 26-Apr-2021.) (Revised by AV, 7-Jul-2022.) (Proof shortened by AV, 2-Nov-2022.)
Assertion
Ref Expression
clwwlkvbij ((𝑋𝑉𝑁 ∈ ℕ) → ∃𝑓 𝑓:{𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ((lastS‘𝑤) = (𝑤‘0) ∧ (𝑤‘0) = 𝑋)}–1-1-onto→(𝑋(ClWWalksNOn‘𝐺)𝑁))
Distinct variable groups:   𝑓,𝐺,𝑤   𝑓,𝑁,𝑤   𝑓,𝑉   𝑓,𝑋,𝑤
Allowed substitution hint:   𝑉(𝑤)

Proof of Theorem clwwlkvbij
Dummy variables 𝑥 𝑦 𝑖 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ovex 7288 . . . . 5 (𝑁 WWalksN 𝐺) ∈ V
21mptrabex 7083 . . . 4 (𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ↦ (𝑤 prefix 𝑁)) ∈ V
32resex 5928 . . 3 ((𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ↦ (𝑤 prefix 𝑁)) ↾ {𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}) ∈ V
4 eqid 2738 . . . . . 6 (𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ↦ (𝑤 prefix 𝑁)) = (𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ↦ (𝑤 prefix 𝑁))
5 eqid 2738 . . . . . . 7 {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} = {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)}
65, 4clwwlkf1o 28316 . . . . . 6 (𝑁 ∈ ℕ → (𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ↦ (𝑤 prefix 𝑁)):{𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)}–1-1-onto→(𝑁 ClWWalksN 𝐺))
7 fveq1 6755 . . . . . . . . 9 (𝑦 = (𝑤 prefix 𝑁) → (𝑦‘0) = ((𝑤 prefix 𝑁)‘0))
87eqeq1d 2740 . . . . . . . 8 (𝑦 = (𝑤 prefix 𝑁) → ((𝑦‘0) = 𝑋 ↔ ((𝑤 prefix 𝑁)‘0) = 𝑋))
983ad2ant3 1133 . . . . . . 7 ((𝑁 ∈ ℕ ∧ 𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∧ 𝑦 = (𝑤 prefix 𝑁)) → ((𝑦‘0) = 𝑋 ↔ ((𝑤 prefix 𝑁)‘0) = 𝑋))
10 fveq2 6756 . . . . . . . . . . . . . 14 (𝑥 = 𝑤 → (lastS‘𝑥) = (lastS‘𝑤))
11 fveq1 6755 . . . . . . . . . . . . . 14 (𝑥 = 𝑤 → (𝑥‘0) = (𝑤‘0))
1210, 11eqeq12d 2754 . . . . . . . . . . . . 13 (𝑥 = 𝑤 → ((lastS‘𝑥) = (𝑥‘0) ↔ (lastS‘𝑤) = (𝑤‘0)))
1312elrab 3617 . . . . . . . . . . . 12 (𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ↔ (𝑤 ∈ (𝑁 WWalksN 𝐺) ∧ (lastS‘𝑤) = (𝑤‘0)))
14 eqid 2738 . . . . . . . . . . . . . . 15 (Vtx‘𝐺) = (Vtx‘𝐺)
15 eqid 2738 . . . . . . . . . . . . . . 15 (Edg‘𝐺) = (Edg‘𝐺)
1614, 15wwlknp 28109 . . . . . . . . . . . . . 14 (𝑤 ∈ (𝑁 WWalksN 𝐺) → (𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑤𝑖), (𝑤‘(𝑖 + 1))} ∈ (Edg‘𝐺)))
17 simpll 763 . . . . . . . . . . . . . . . . 17 (((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = (𝑁 + 1)) ∧ 𝑁 ∈ ℕ) → 𝑤 ∈ Word (Vtx‘𝐺))
18 nnz 12272 . . . . . . . . . . . . . . . . . . . . 21 (𝑁 ∈ ℕ → 𝑁 ∈ ℤ)
19 uzid 12526 . . . . . . . . . . . . . . . . . . . . 21 (𝑁 ∈ ℤ → 𝑁 ∈ (ℤ𝑁))
20 peano2uz 12570 . . . . . . . . . . . . . . . . . . . . 21 (𝑁 ∈ (ℤ𝑁) → (𝑁 + 1) ∈ (ℤ𝑁))
2118, 19, 203syl 18 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℕ → (𝑁 + 1) ∈ (ℤ𝑁))
22 elfz1end 13215 . . . . . . . . . . . . . . . . . . . . 21 (𝑁 ∈ ℕ ↔ 𝑁 ∈ (1...𝑁))
2322biimpi 215 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℕ → 𝑁 ∈ (1...𝑁))
24 fzss2 13225 . . . . . . . . . . . . . . . . . . . . 21 ((𝑁 + 1) ∈ (ℤ𝑁) → (1...𝑁) ⊆ (1...(𝑁 + 1)))
2524sselda 3917 . . . . . . . . . . . . . . . . . . . 20 (((𝑁 + 1) ∈ (ℤ𝑁) ∧ 𝑁 ∈ (1...𝑁)) → 𝑁 ∈ (1...(𝑁 + 1)))
2621, 23, 25syl2anc 583 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ ℕ → 𝑁 ∈ (1...(𝑁 + 1)))
2726adantl 481 . . . . . . . . . . . . . . . . . 18 (((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = (𝑁 + 1)) ∧ 𝑁 ∈ ℕ) → 𝑁 ∈ (1...(𝑁 + 1)))
28 oveq2 7263 . . . . . . . . . . . . . . . . . . . . 21 ((♯‘𝑤) = (𝑁 + 1) → (1...(♯‘𝑤)) = (1...(𝑁 + 1)))
2928eleq2d 2824 . . . . . . . . . . . . . . . . . . . 20 ((♯‘𝑤) = (𝑁 + 1) → (𝑁 ∈ (1...(♯‘𝑤)) ↔ 𝑁 ∈ (1...(𝑁 + 1))))
3029adantl 481 . . . . . . . . . . . . . . . . . . 19 ((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = (𝑁 + 1)) → (𝑁 ∈ (1...(♯‘𝑤)) ↔ 𝑁 ∈ (1...(𝑁 + 1))))
3130adantr 480 . . . . . . . . . . . . . . . . . 18 (((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = (𝑁 + 1)) ∧ 𝑁 ∈ ℕ) → (𝑁 ∈ (1...(♯‘𝑤)) ↔ 𝑁 ∈ (1...(𝑁 + 1))))
3227, 31mpbird 256 . . . . . . . . . . . . . . . . 17 (((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = (𝑁 + 1)) ∧ 𝑁 ∈ ℕ) → 𝑁 ∈ (1...(♯‘𝑤)))
3317, 32jca 511 . . . . . . . . . . . . . . . 16 (((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = (𝑁 + 1)) ∧ 𝑁 ∈ ℕ) → (𝑤 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (1...(♯‘𝑤))))
3433ex 412 . . . . . . . . . . . . . . 15 ((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = (𝑁 + 1)) → (𝑁 ∈ ℕ → (𝑤 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (1...(♯‘𝑤)))))
35343adant3 1130 . . . . . . . . . . . . . 14 ((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = (𝑁 + 1) ∧ ∀𝑖 ∈ (0..^𝑁){(𝑤𝑖), (𝑤‘(𝑖 + 1))} ∈ (Edg‘𝐺)) → (𝑁 ∈ ℕ → (𝑤 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (1...(♯‘𝑤)))))
3616, 35syl 17 . . . . . . . . . . . . 13 (𝑤 ∈ (𝑁 WWalksN 𝐺) → (𝑁 ∈ ℕ → (𝑤 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (1...(♯‘𝑤)))))
3736adantr 480 . . . . . . . . . . . 12 ((𝑤 ∈ (𝑁 WWalksN 𝐺) ∧ (lastS‘𝑤) = (𝑤‘0)) → (𝑁 ∈ ℕ → (𝑤 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (1...(♯‘𝑤)))))
3813, 37sylbi 216 . . . . . . . . . . 11 (𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} → (𝑁 ∈ ℕ → (𝑤 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (1...(♯‘𝑤)))))
3938impcom 407 . . . . . . . . . 10 ((𝑁 ∈ ℕ ∧ 𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)}) → (𝑤 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (1...(♯‘𝑤))))
40 pfxfv0 14333 . . . . . . . . . 10 ((𝑤 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (1...(♯‘𝑤))) → ((𝑤 prefix 𝑁)‘0) = (𝑤‘0))
4139, 40syl 17 . . . . . . . . 9 ((𝑁 ∈ ℕ ∧ 𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)}) → ((𝑤 prefix 𝑁)‘0) = (𝑤‘0))
4241eqeq1d 2740 . . . . . . . 8 ((𝑁 ∈ ℕ ∧ 𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)}) → (((𝑤 prefix 𝑁)‘0) = 𝑋 ↔ (𝑤‘0) = 𝑋))
43423adant3 1130 . . . . . . 7 ((𝑁 ∈ ℕ ∧ 𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∧ 𝑦 = (𝑤 prefix 𝑁)) → (((𝑤 prefix 𝑁)‘0) = 𝑋 ↔ (𝑤‘0) = 𝑋))
449, 43bitrd 278 . . . . . 6 ((𝑁 ∈ ℕ ∧ 𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∧ 𝑦 = (𝑤 prefix 𝑁)) → ((𝑦‘0) = 𝑋 ↔ (𝑤‘0) = 𝑋))
454, 6, 44f1oresrab 6981 . . . . 5 (𝑁 ∈ ℕ → ((𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ↦ (𝑤 prefix 𝑁)) ↾ {𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}):{𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}–1-1-onto→{𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ (𝑦‘0) = 𝑋})
4645adantl 481 . . . 4 ((𝑋𝑉𝑁 ∈ ℕ) → ((𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ↦ (𝑤 prefix 𝑁)) ↾ {𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}):{𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}–1-1-onto→{𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ (𝑦‘0) = 𝑋})
47 clwwlknon 28355 . . . . . 6 (𝑋(ClWWalksNOn‘𝐺)𝑁) = {𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ (𝑦‘0) = 𝑋}
4847a1i 11 . . . . 5 ((𝑋𝑉𝑁 ∈ ℕ) → (𝑋(ClWWalksNOn‘𝐺)𝑁) = {𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ (𝑦‘0) = 𝑋})
4948f1oeq3d 6697 . . . 4 ((𝑋𝑉𝑁 ∈ ℕ) → (((𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ↦ (𝑤 prefix 𝑁)) ↾ {𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}):{𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}–1-1-onto→(𝑋(ClWWalksNOn‘𝐺)𝑁) ↔ ((𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ↦ (𝑤 prefix 𝑁)) ↾ {𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}):{𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}–1-1-onto→{𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ (𝑦‘0) = 𝑋}))
5046, 49mpbird 256 . . 3 ((𝑋𝑉𝑁 ∈ ℕ) → ((𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ↦ (𝑤 prefix 𝑁)) ↾ {𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}):{𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}–1-1-onto→(𝑋(ClWWalksNOn‘𝐺)𝑁))
51 f1oeq1 6688 . . . 4 (𝑓 = ((𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ↦ (𝑤 prefix 𝑁)) ↾ {𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}) → (𝑓:{𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}–1-1-onto→(𝑋(ClWWalksNOn‘𝐺)𝑁) ↔ ((𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ↦ (𝑤 prefix 𝑁)) ↾ {𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}):{𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}–1-1-onto→(𝑋(ClWWalksNOn‘𝐺)𝑁)))
5251spcegv 3526 . . 3 (((𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ↦ (𝑤 prefix 𝑁)) ↾ {𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}) ∈ V → (((𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ↦ (𝑤 prefix 𝑁)) ↾ {𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}):{𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}–1-1-onto→(𝑋(ClWWalksNOn‘𝐺)𝑁) → ∃𝑓 𝑓:{𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}–1-1-onto→(𝑋(ClWWalksNOn‘𝐺)𝑁)))
533, 50, 52mpsyl 68 . 2 ((𝑋𝑉𝑁 ∈ ℕ) → ∃𝑓 𝑓:{𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}–1-1-onto→(𝑋(ClWWalksNOn‘𝐺)𝑁))
54 df-rab 3072 . . . . 5 {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ((lastS‘𝑤) = (𝑤‘0) ∧ (𝑤‘0) = 𝑋)} = {𝑤 ∣ (𝑤 ∈ (𝑁 WWalksN 𝐺) ∧ ((lastS‘𝑤) = (𝑤‘0) ∧ (𝑤‘0) = 𝑋))}
55 anass 468 . . . . . . 7 (((𝑤 ∈ (𝑁 WWalksN 𝐺) ∧ (lastS‘𝑤) = (𝑤‘0)) ∧ (𝑤‘0) = 𝑋) ↔ (𝑤 ∈ (𝑁 WWalksN 𝐺) ∧ ((lastS‘𝑤) = (𝑤‘0) ∧ (𝑤‘0) = 𝑋)))
5655bicomi 223 . . . . . 6 ((𝑤 ∈ (𝑁 WWalksN 𝐺) ∧ ((lastS‘𝑤) = (𝑤‘0) ∧ (𝑤‘0) = 𝑋)) ↔ ((𝑤 ∈ (𝑁 WWalksN 𝐺) ∧ (lastS‘𝑤) = (𝑤‘0)) ∧ (𝑤‘0) = 𝑋))
5756abbii 2809 . . . . 5 {𝑤 ∣ (𝑤 ∈ (𝑁 WWalksN 𝐺) ∧ ((lastS‘𝑤) = (𝑤‘0) ∧ (𝑤‘0) = 𝑋))} = {𝑤 ∣ ((𝑤 ∈ (𝑁 WWalksN 𝐺) ∧ (lastS‘𝑤) = (𝑤‘0)) ∧ (𝑤‘0) = 𝑋)}
5813bicomi 223 . . . . . . . 8 ((𝑤 ∈ (𝑁 WWalksN 𝐺) ∧ (lastS‘𝑤) = (𝑤‘0)) ↔ 𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)})
5958anbi1i 623 . . . . . . 7 (((𝑤 ∈ (𝑁 WWalksN 𝐺) ∧ (lastS‘𝑤) = (𝑤‘0)) ∧ (𝑤‘0) = 𝑋) ↔ (𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∧ (𝑤‘0) = 𝑋))
6059abbii 2809 . . . . . 6 {𝑤 ∣ ((𝑤 ∈ (𝑁 WWalksN 𝐺) ∧ (lastS‘𝑤) = (𝑤‘0)) ∧ (𝑤‘0) = 𝑋)} = {𝑤 ∣ (𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∧ (𝑤‘0) = 𝑋)}
61 df-rab 3072 . . . . . 6 {𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋} = {𝑤 ∣ (𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∧ (𝑤‘0) = 𝑋)}
6260, 61eqtr4i 2769 . . . . 5 {𝑤 ∣ ((𝑤 ∈ (𝑁 WWalksN 𝐺) ∧ (lastS‘𝑤) = (𝑤‘0)) ∧ (𝑤‘0) = 𝑋)} = {𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}
6354, 57, 623eqtri 2770 . . . 4 {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ((lastS‘𝑤) = (𝑤‘0) ∧ (𝑤‘0) = 𝑋)} = {𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}
64 f1oeq2 6689 . . . 4 ({𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ((lastS‘𝑤) = (𝑤‘0) ∧ (𝑤‘0) = 𝑋)} = {𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋} → (𝑓:{𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ((lastS‘𝑤) = (𝑤‘0) ∧ (𝑤‘0) = 𝑋)}–1-1-onto→(𝑋(ClWWalksNOn‘𝐺)𝑁) ↔ 𝑓:{𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}–1-1-onto→(𝑋(ClWWalksNOn‘𝐺)𝑁)))
6563, 64mp1i 13 . . 3 ((𝑋𝑉𝑁 ∈ ℕ) → (𝑓:{𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ((lastS‘𝑤) = (𝑤‘0) ∧ (𝑤‘0) = 𝑋)}–1-1-onto→(𝑋(ClWWalksNOn‘𝐺)𝑁) ↔ 𝑓:{𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}–1-1-onto→(𝑋(ClWWalksNOn‘𝐺)𝑁)))
6665exbidv 1925 . 2 ((𝑋𝑉𝑁 ∈ ℕ) → (∃𝑓 𝑓:{𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ((lastS‘𝑤) = (𝑤‘0) ∧ (𝑤‘0) = 𝑋)}–1-1-onto→(𝑋(ClWWalksNOn‘𝐺)𝑁) ↔ ∃𝑓 𝑓:{𝑤 ∈ {𝑥 ∈ (𝑁 WWalksN 𝐺) ∣ (lastS‘𝑥) = (𝑥‘0)} ∣ (𝑤‘0) = 𝑋}–1-1-onto→(𝑋(ClWWalksNOn‘𝐺)𝑁)))
6753, 66mpbird 256 1 ((𝑋𝑉𝑁 ∈ ℕ) → ∃𝑓 𝑓:{𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ((lastS‘𝑤) = (𝑤‘0) ∧ (𝑤‘0) = 𝑋)}–1-1-onto→(𝑋(ClWWalksNOn‘𝐺)𝑁))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wex 1783  wcel 2108  {cab 2715  wral 3063  {crab 3067  Vcvv 3422  {cpr 4560  cmpt 5153  cres 5582  1-1-ontowf1o 6417  cfv 6418  (class class class)co 7255  0cc0 10802  1c1 10803   + caddc 10805  cn 11903  cz 12249  cuz 12511  ...cfz 13168  ..^cfzo 13311  chash 13972  Word cword 14145  lastSclsw 14193   prefix cpfx 14311  Vtxcvtx 27269  Edgcedg 27320   WWalksN cwwlksn 28092   ClWWalksN cclwwlkn 28289  ClWWalksNOncclwwlknon 28352
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-oadd 8271  df-er 8456  df-map 8575  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-n0 12164  df-xnn0 12236  df-z 12250  df-uz 12512  df-rp 12660  df-fz 13169  df-fzo 13312  df-hash 13973  df-word 14146  df-lsw 14194  df-concat 14202  df-s1 14229  df-substr 14282  df-pfx 14312  df-wwlks 28096  df-wwlksn 28097  df-clwwlk 28247  df-clwwlkn 28290  df-clwwlknon 28353
This theorem is referenced by:  numclwwlkqhash  28640
  Copyright terms: Public domain W3C validator