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

Theorem rusgrnumwwlkb0 27262
Description: Induction base 0 for rusgrnumwwlk 27267. Here, we do not need the regularity of the graph yet. (Contributed by Alexander van der Vekens, 24-Jul-2018.) (Revised by AV, 7-May-2021.)
Hypotheses
Ref Expression
rusgrnumwwlk.v 𝑉 = (Vtx‘𝐺)
rusgrnumwwlk.l 𝐿 = (𝑣𝑉, 𝑛 ∈ ℕ0 ↦ (♯‘{𝑤 ∈ (𝑛 WWalksN 𝐺) ∣ (𝑤‘0) = 𝑣}))
Assertion
Ref Expression
rusgrnumwwlkb0 ((𝐺 ∈ USPGraph ∧ 𝑃𝑉) → (𝑃𝐿0) = 1)
Distinct variable groups:   𝑛,𝐺,𝑣,𝑤   𝑃,𝑛,𝑣,𝑤   𝑛,𝑉,𝑣,𝑤
Allowed substitution hints:   𝐿(𝑤,𝑣,𝑛)

Proof of Theorem rusgrnumwwlkb0
StepHypRef Expression
1 simpr 478 . . 3 ((𝐺 ∈ USPGraph ∧ 𝑃𝑉) → 𝑃𝑉)
2 0nn0 11597 . . 3 0 ∈ ℕ0
3 rusgrnumwwlk.v . . . 4 𝑉 = (Vtx‘𝐺)
4 rusgrnumwwlk.l . . . 4 𝐿 = (𝑣𝑉, 𝑛 ∈ ℕ0 ↦ (♯‘{𝑤 ∈ (𝑛 WWalksN 𝐺) ∣ (𝑤‘0) = 𝑣}))
53, 4rusgrnumwwlklem 27261 . . 3 ((𝑃𝑉 ∧ 0 ∈ ℕ0) → (𝑃𝐿0) = (♯‘{𝑤 ∈ (0 WWalksN 𝐺) ∣ (𝑤‘0) = 𝑃}))
61, 2, 5sylancl 581 . 2 ((𝐺 ∈ USPGraph ∧ 𝑃𝑉) → (𝑃𝐿0) = (♯‘{𝑤 ∈ (0 WWalksN 𝐺) ∣ (𝑤‘0) = 𝑃}))
7 df-rab 3098 . . . . 5 {𝑤 ∈ (0 WWalksN 𝐺) ∣ (𝑤‘0) = 𝑃} = {𝑤 ∣ (𝑤 ∈ (0 WWalksN 𝐺) ∧ (𝑤‘0) = 𝑃)}
87a1i 11 . . . 4 ((𝐺 ∈ USPGraph ∧ 𝑃𝑉) → {𝑤 ∈ (0 WWalksN 𝐺) ∣ (𝑤‘0) = 𝑃} = {𝑤 ∣ (𝑤 ∈ (0 WWalksN 𝐺) ∧ (𝑤‘0) = 𝑃)})
9 wwlksn0s 27118 . . . . . . . . 9 (0 WWalksN 𝐺) = {𝑤 ∈ Word (Vtx‘𝐺) ∣ (♯‘𝑤) = 1}
109a1i 11 . . . . . . . 8 ((𝐺 ∈ USPGraph ∧ 𝑃𝑉) → (0 WWalksN 𝐺) = {𝑤 ∈ Word (Vtx‘𝐺) ∣ (♯‘𝑤) = 1})
1110eleq2d 2864 . . . . . . 7 ((𝐺 ∈ USPGraph ∧ 𝑃𝑉) → (𝑤 ∈ (0 WWalksN 𝐺) ↔ 𝑤 ∈ {𝑤 ∈ Word (Vtx‘𝐺) ∣ (♯‘𝑤) = 1}))
12 rabid 3297 . . . . . . 7 (𝑤 ∈ {𝑤 ∈ Word (Vtx‘𝐺) ∣ (♯‘𝑤) = 1} ↔ (𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = 1))
1311, 12syl6bb 279 . . . . . 6 ((𝐺 ∈ USPGraph ∧ 𝑃𝑉) → (𝑤 ∈ (0 WWalksN 𝐺) ↔ (𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = 1)))
1413anbi1d 624 . . . . 5 ((𝐺 ∈ USPGraph ∧ 𝑃𝑉) → ((𝑤 ∈ (0 WWalksN 𝐺) ∧ (𝑤‘0) = 𝑃) ↔ ((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = 1) ∧ (𝑤‘0) = 𝑃)))
1514abbidv 2918 . . . 4 ((𝐺 ∈ USPGraph ∧ 𝑃𝑉) → {𝑤 ∣ (𝑤 ∈ (0 WWalksN 𝐺) ∧ (𝑤‘0) = 𝑃)} = {𝑤 ∣ ((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = 1) ∧ (𝑤‘0) = 𝑃)})
16 wrdl1s1 13634 . . . . . . . . 9 (𝑃 ∈ (Vtx‘𝐺) → (𝑣 = ⟨“𝑃”⟩ ↔ (𝑣 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑣) = 1 ∧ (𝑣‘0) = 𝑃)))
17 df-3an 1110 . . . . . . . . 9 ((𝑣 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑣) = 1 ∧ (𝑣‘0) = 𝑃) ↔ ((𝑣 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑣) = 1) ∧ (𝑣‘0) = 𝑃))
1816, 17syl6rbb 280 . . . . . . . 8 (𝑃 ∈ (Vtx‘𝐺) → (((𝑣 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑣) = 1) ∧ (𝑣‘0) = 𝑃) ↔ 𝑣 = ⟨“𝑃”⟩))
19 vex 3388 . . . . . . . . 9 𝑣 ∈ V
20 eleq1w 2861 . . . . . . . . . . 11 (𝑤 = 𝑣 → (𝑤 ∈ Word (Vtx‘𝐺) ↔ 𝑣 ∈ Word (Vtx‘𝐺)))
21 fveqeq2 6420 . . . . . . . . . . 11 (𝑤 = 𝑣 → ((♯‘𝑤) = 1 ↔ (♯‘𝑣) = 1))
2220, 21anbi12d 625 . . . . . . . . . 10 (𝑤 = 𝑣 → ((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = 1) ↔ (𝑣 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑣) = 1)))
23 fveq1 6410 . . . . . . . . . . 11 (𝑤 = 𝑣 → (𝑤‘0) = (𝑣‘0))
2423eqeq1d 2801 . . . . . . . . . 10 (𝑤 = 𝑣 → ((𝑤‘0) = 𝑃 ↔ (𝑣‘0) = 𝑃))
2522, 24anbi12d 625 . . . . . . . . 9 (𝑤 = 𝑣 → (((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = 1) ∧ (𝑤‘0) = 𝑃) ↔ ((𝑣 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑣) = 1) ∧ (𝑣‘0) = 𝑃)))
2619, 25elab 3542 . . . . . . . 8 (𝑣 ∈ {𝑤 ∣ ((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = 1) ∧ (𝑤‘0) = 𝑃)} ↔ ((𝑣 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑣) = 1) ∧ (𝑣‘0) = 𝑃))
27 velsn 4384 . . . . . . . 8 (𝑣 ∈ {⟨“𝑃”⟩} ↔ 𝑣 = ⟨“𝑃”⟩)
2818, 26, 273bitr4g 306 . . . . . . 7 (𝑃 ∈ (Vtx‘𝐺) → (𝑣 ∈ {𝑤 ∣ ((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = 1) ∧ (𝑤‘0) = 𝑃)} ↔ 𝑣 ∈ {⟨“𝑃”⟩}))
2928, 3eleq2s 2896 . . . . . 6 (𝑃𝑉 → (𝑣 ∈ {𝑤 ∣ ((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = 1) ∧ (𝑤‘0) = 𝑃)} ↔ 𝑣 ∈ {⟨“𝑃”⟩}))
3029eqrdv 2797 . . . . 5 (𝑃𝑉 → {𝑤 ∣ ((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = 1) ∧ (𝑤‘0) = 𝑃)} = {⟨“𝑃”⟩})
3130adantl 474 . . . 4 ((𝐺 ∈ USPGraph ∧ 𝑃𝑉) → {𝑤 ∣ ((𝑤 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑤) = 1) ∧ (𝑤‘0) = 𝑃)} = {⟨“𝑃”⟩})
328, 15, 313eqtrd 2837 . . 3 ((𝐺 ∈ USPGraph ∧ 𝑃𝑉) → {𝑤 ∈ (0 WWalksN 𝐺) ∣ (𝑤‘0) = 𝑃} = {⟨“𝑃”⟩})
3332fveq2d 6415 . 2 ((𝐺 ∈ USPGraph ∧ 𝑃𝑉) → (♯‘{𝑤 ∈ (0 WWalksN 𝐺) ∣ (𝑤‘0) = 𝑃}) = (♯‘{⟨“𝑃”⟩}))
34 s1cl 13622 . . . 4 (𝑃𝑉 → ⟨“𝑃”⟩ ∈ Word 𝑉)
35 hashsng 13409 . . . 4 (⟨“𝑃”⟩ ∈ Word 𝑉 → (♯‘{⟨“𝑃”⟩}) = 1)
3634, 35syl 17 . . 3 (𝑃𝑉 → (♯‘{⟨“𝑃”⟩}) = 1)
3736adantl 474 . 2 ((𝐺 ∈ USPGraph ∧ 𝑃𝑉) → (♯‘{⟨“𝑃”⟩}) = 1)
386, 33, 373eqtrd 2837 1 ((𝐺 ∈ USPGraph ∧ 𝑃𝑉) → (𝑃𝐿0) = 1)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 198  wa 385  w3a 1108   = wceq 1653  wcel 2157  {cab 2785  {crab 3093  {csn 4368  cfv 6101  (class class class)co 6878  cmpt2 6880  0cc0 10224  1c1 10225  0cn0 11580  chash 13370  Word cword 13534  ⟨“cs1 13615  Vtxcvtx 26231  USPGraphcuspgr 26384   WWalksN cwwlksn 27077
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1891  ax-4 1905  ax-5 2006  ax-6 2072  ax-7 2107  ax-8 2159  ax-9 2166  ax-10 2185  ax-11 2200  ax-12 2213  ax-13 2377  ax-ext 2777  ax-rep 4964  ax-sep 4975  ax-nul 4983  ax-pow 5035  ax-pr 5097  ax-un 7183  ax-cnex 10280  ax-resscn 10281  ax-1cn 10282  ax-icn 10283  ax-addcl 10284  ax-addrcl 10285  ax-mulcl 10286  ax-mulrcl 10287  ax-mulcom 10288  ax-addass 10289  ax-mulass 10290  ax-distr 10291  ax-i2m1 10292  ax-1ne0 10293  ax-1rid 10294  ax-rnegex 10295  ax-rrecex 10296  ax-cnre 10297  ax-pre-lttri 10298  ax-pre-lttrn 10299  ax-pre-ltadd 10300  ax-pre-mulgt0 10301
This theorem depends on definitions:  df-bi 199  df-an 386  df-or 875  df-3or 1109  df-3an 1110  df-tru 1657  df-ex 1876  df-nf 1880  df-sb 2065  df-mo 2591  df-eu 2609  df-clab 2786  df-cleq 2792  df-clel 2795  df-nfc 2930  df-ne 2972  df-nel 3075  df-ral 3094  df-rex 3095  df-reu 3096  df-rab 3098  df-v 3387  df-sbc 3634  df-csb 3729  df-dif 3772  df-un 3774  df-in 3776  df-ss 3783  df-pss 3785  df-nul 4116  df-if 4278  df-pw 4351  df-sn 4369  df-pr 4371  df-tp 4373  df-op 4375  df-uni 4629  df-int 4668  df-iun 4712  df-br 4844  df-opab 4906  df-mpt 4923  df-tr 4946  df-id 5220  df-eprel 5225  df-po 5233  df-so 5234  df-fr 5271  df-we 5273  df-xp 5318  df-rel 5319  df-cnv 5320  df-co 5321  df-dm 5322  df-rn 5323  df-res 5324  df-ima 5325  df-pred 5898  df-ord 5944  df-on 5945  df-lim 5946  df-suc 5947  df-iota 6064  df-fun 6103  df-fn 6104  df-f 6105  df-f1 6106  df-fo 6107  df-f1o 6108  df-fv 6109  df-riota 6839  df-ov 6881  df-oprab 6882  df-mpt2 6883  df-om 7300  df-1st 7401  df-2nd 7402  df-wrecs 7645  df-recs 7707  df-rdg 7745  df-1o 7799  df-oadd 7803  df-er 7982  df-map 8097  df-pm 8098  df-en 8196  df-dom 8197  df-sdom 8198  df-fin 8199  df-card 9051  df-pnf 10365  df-mnf 10366  df-xr 10367  df-ltxr 10368  df-le 10369  df-sub 10558  df-neg 10559  df-nn 11313  df-n0 11581  df-xnn0 11653  df-z 11667  df-uz 11931  df-fz 12581  df-fzo 12721  df-hash 13371  df-word 13535  df-s1 13616  df-wwlks 27081  df-wwlksn 27082
This theorem is referenced by:  rusgrnumwwlk  27267
  Copyright terms: Public domain W3C validator