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

Theorem fusgreghash2wspv 28390
Description: According to statement 7 in [Huneke] p. 2: "For each vertex v, there are exactly ( k 2 ) paths with length two having v in the middle, ..." in a finite k-regular graph. For directed simple paths of length 2 represented by length 3 strings, we have again k*(k-1) such paths, see also comment of frgrhash2wsp 28387. (Contributed by Alexander van der Vekens, 10-Mar-2018.) (Revised by AV, 17-May-2021.) (Proof shortened by AV, 12-Feb-2022.)
Hypotheses
Ref Expression
frgrhash2wsp.v 𝑉 = (Vtx‘𝐺)
fusgreg2wsp.m 𝑀 = (𝑎𝑉 ↦ {𝑤 ∈ (2 WSPathsN 𝐺) ∣ (𝑤‘1) = 𝑎})
Assertion
Ref Expression
fusgreghash2wspv (𝐺 ∈ FinUSGraph → ∀𝑣𝑉 (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (♯‘(𝑀𝑣)) = (𝐾 · (𝐾 − 1))))
Distinct variable groups:   𝐺,𝑎   𝑉,𝑎   𝑤,𝐺,𝑎,𝑣
Allowed substitution hints:   𝐾(𝑤,𝑣,𝑎)   𝑀(𝑤,𝑣,𝑎)   𝑉(𝑤,𝑣)

Proof of Theorem fusgreghash2wspv
Dummy variables 𝑐 𝑑 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 frgrhash2wsp.v . . . . . . 7 𝑉 = (Vtx‘𝐺)
2 fusgreg2wsp.m . . . . . . 7 𝑀 = (𝑎𝑉 ↦ {𝑤 ∈ (2 WSPathsN 𝐺) ∣ (𝑤‘1) = 𝑎})
31, 2fusgr2wsp2nb 28389 . . . . . 6 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → (𝑀𝑣) = 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
43fveq2d 6710 . . . . 5 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → (♯‘(𝑀𝑣)) = (♯‘ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩}))
54adantr 484 . . . 4 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → (♯‘(𝑀𝑣)) = (♯‘ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩}))
61eleq2i 2825 . . . . . . 7 (𝑣𝑉𝑣 ∈ (Vtx‘𝐺))
7 nbfiusgrfi 27435 . . . . . . 7 ((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ (Vtx‘𝐺)) → (𝐺 NeighbVtx 𝑣) ∈ Fin)
86, 7sylan2b 597 . . . . . 6 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → (𝐺 NeighbVtx 𝑣) ∈ Fin)
98adantr 484 . . . . 5 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → (𝐺 NeighbVtx 𝑣) ∈ Fin)
10 eqid 2734 . . . . 5 ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}) = ((𝐺 NeighbVtx 𝑣) ∖ {𝑐})
11 snfi 8710 . . . . . 6 {⟨“𝑐𝑣𝑑”⟩} ∈ Fin
1211a1i 11 . . . . 5 ((((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) ∧ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐})) → {⟨“𝑐𝑣𝑑”⟩} ∈ Fin)
131nbgrssvtx 27402 . . . . . . . . . . 11 (𝐺 NeighbVtx 𝑣) ⊆ 𝑉
1413a1i 11 . . . . . . . . . 10 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → (𝐺 NeighbVtx 𝑣) ⊆ 𝑉)
1514ssdifd 4045 . . . . . . . . 9 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}) ⊆ (𝑉 ∖ {𝑐}))
16 iunss1 4908 . . . . . . . . 9 (((𝐺 NeighbVtx 𝑣) ∖ {𝑐}) ⊆ (𝑉 ∖ {𝑐}) → 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} ⊆ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
1715, 16syl 17 . . . . . . . 8 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} ⊆ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
1817ralrimiva 3098 . . . . . . 7 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → ∀𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} ⊆ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
19 simpr 488 . . . . . . . 8 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → 𝑣𝑉)
20 s3iunsndisj 14514 . . . . . . . 8 (𝑣𝑉Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
2119, 20syl 17 . . . . . . 7 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
22 disjss2 5011 . . . . . . 7 (∀𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} ⊆ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} → (Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩}))
2318, 21, 22sylc 65 . . . . . 6 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
2423adantr 484 . . . . 5 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
2519adantr 484 . . . . . . 7 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → 𝑣𝑉)
2625anim1ci 619 . . . . . 6 ((((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → (𝑐 ∈ (𝐺 NeighbVtx 𝑣) ∧ 𝑣𝑉))
27 s3sndisj 14513 . . . . . 6 ((𝑐 ∈ (𝐺 NeighbVtx 𝑣) ∧ 𝑣𝑉) → Disj 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
2826, 27syl 17 . . . . 5 ((((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → Disj 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
29 s3cli 14429 . . . . . 6 ⟨“𝑐𝑣𝑑”⟩ ∈ Word V
30 hashsng 13919 . . . . . 6 (⟨“𝑐𝑣𝑑”⟩ ∈ Word V → (♯‘{⟨“𝑐𝑣𝑑”⟩}) = 1)
3129, 30mp1i 13 . . . . 5 ((((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) ∧ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐})) → (♯‘{⟨“𝑐𝑣𝑑”⟩}) = 1)
329, 10, 12, 24, 28, 31hash2iun1dif1 15369 . . . 4 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → (♯‘ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩}) = ((♯‘(𝐺 NeighbVtx 𝑣)) · ((♯‘(𝐺 NeighbVtx 𝑣)) − 1)))
33 fusgrusgr 27382 . . . . . . 7 (𝐺 ∈ FinUSGraph → 𝐺 ∈ USGraph)
341hashnbusgrvd 27588 . . . . . . 7 ((𝐺 ∈ USGraph ∧ 𝑣𝑉) → (♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣))
3533, 34sylan 583 . . . . . 6 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → (♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣))
36 id 22 . . . . . . 7 ((♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣) → (♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣))
37 oveq1 7209 . . . . . . 7 ((♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣) → ((♯‘(𝐺 NeighbVtx 𝑣)) − 1) = (((VtxDeg‘𝐺)‘𝑣) − 1))
3836, 37oveq12d 7220 . . . . . 6 ((♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣) → ((♯‘(𝐺 NeighbVtx 𝑣)) · ((♯‘(𝐺 NeighbVtx 𝑣)) − 1)) = (((VtxDeg‘𝐺)‘𝑣) · (((VtxDeg‘𝐺)‘𝑣) − 1)))
3935, 38syl 17 . . . . 5 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → ((♯‘(𝐺 NeighbVtx 𝑣)) · ((♯‘(𝐺 NeighbVtx 𝑣)) − 1)) = (((VtxDeg‘𝐺)‘𝑣) · (((VtxDeg‘𝐺)‘𝑣) − 1)))
40 id 22 . . . . . 6 (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → ((VtxDeg‘𝐺)‘𝑣) = 𝐾)
41 oveq1 7209 . . . . . 6 (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (((VtxDeg‘𝐺)‘𝑣) − 1) = (𝐾 − 1))
4240, 41oveq12d 7220 . . . . 5 (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (((VtxDeg‘𝐺)‘𝑣) · (((VtxDeg‘𝐺)‘𝑣) − 1)) = (𝐾 · (𝐾 − 1)))
4339, 42sylan9eq 2794 . . . 4 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → ((♯‘(𝐺 NeighbVtx 𝑣)) · ((♯‘(𝐺 NeighbVtx 𝑣)) − 1)) = (𝐾 · (𝐾 − 1)))
445, 32, 433eqtrd 2778 . . 3 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → (♯‘(𝑀𝑣)) = (𝐾 · (𝐾 − 1)))
4544ex 416 . 2 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (♯‘(𝑀𝑣)) = (𝐾 · (𝐾 − 1))))
4645ralrimiva 3098 1 (𝐺 ∈ FinUSGraph → ∀𝑣𝑉 (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (♯‘(𝑀𝑣)) = (𝐾 · (𝐾 − 1))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399  w3a 1089   = wceq 1543  wcel 2110  wral 3054  {crab 3058  Vcvv 3401  cdif 3854  wss 3857  {csn 4531   ciun 4894  Disj wdisj 5008  cmpt 5124  cfv 6369  (class class class)co 7202  Fincfn 8615  1c1 10713   · cmul 10717  cmin 11045  2c2 11868  chash 13879  Word cword 14052  ⟨“cs3 14390  Vtxcvtx 27059  USGraphcusgr 27212  FinUSGraphcfusgr 27376   NeighbVtx cnbgr 27392  VtxDegcvtxdg 27525   WSPathsN cwwspthsn 27884
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2706  ax-rep 5168  ax-sep 5181  ax-nul 5188  ax-pow 5247  ax-pr 5311  ax-un 7512  ax-inf2 9245  ax-ac2 10060  ax-cnex 10768  ax-resscn 10769  ax-1cn 10770  ax-icn 10771  ax-addcl 10772  ax-addrcl 10773  ax-mulcl 10774  ax-mulrcl 10775  ax-mulcom 10776  ax-addass 10777  ax-mulass 10778  ax-distr 10779  ax-i2m1 10780  ax-1ne0 10781  ax-1rid 10782  ax-rnegex 10783  ax-rrecex 10784  ax-cnre 10785  ax-pre-lttri 10786  ax-pre-lttrn 10787  ax-pre-ltadd 10788  ax-pre-mulgt0 10789  ax-pre-sup 10790
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-ifp 1064  df-3or 1090  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-mo 2537  df-eu 2566  df-clab 2713  df-cleq 2726  df-clel 2812  df-nfc 2882  df-ne 2936  df-nel 3040  df-ral 3059  df-rex 3060  df-reu 3061  df-rmo 3062  df-rab 3063  df-v 3403  df-sbc 3688  df-csb 3803  df-dif 3860  df-un 3862  df-in 3864  df-ss 3874  df-pss 3876  df-nul 4228  df-if 4430  df-pw 4505  df-sn 4532  df-pr 4534  df-tp 4536  df-op 4538  df-uni 4810  df-int 4850  df-iun 4896  df-disj 5009  df-br 5044  df-opab 5106  df-mpt 5125  df-tr 5151  df-id 5444  df-eprel 5449  df-po 5457  df-so 5458  df-fr 5498  df-se 5499  df-we 5500  df-xp 5546  df-rel 5547  df-cnv 5548  df-co 5549  df-dm 5550  df-rn 5551  df-res 5552  df-ima 5553  df-pred 6149  df-ord 6205  df-on 6206  df-lim 6207  df-suc 6208  df-iota 6327  df-fun 6371  df-fn 6372  df-f 6373  df-f1 6374  df-fo 6375  df-f1o 6376  df-fv 6377  df-isom 6378  df-riota 7159  df-ov 7205  df-oprab 7206  df-mpo 7207  df-om 7634  df-1st 7750  df-2nd 7751  df-wrecs 8036  df-recs 8097  df-rdg 8135  df-1o 8191  df-2o 8192  df-oadd 8195  df-er 8380  df-map 8499  df-pm 8500  df-en 8616  df-dom 8617  df-sdom 8618  df-fin 8619  df-sup 9047  df-oi 9115  df-dju 9500  df-card 9538  df-ac 9713  df-pnf 10852  df-mnf 10853  df-xr 10854  df-ltxr 10855  df-le 10856  df-sub 11047  df-neg 11048  df-div 11473  df-nn 11814  df-2 11876  df-3 11877  df-n0 12074  df-xnn0 12146  df-z 12160  df-uz 12422  df-rp 12570  df-xadd 12688  df-fz 13079  df-fzo 13222  df-seq 13558  df-exp 13619  df-hash 13880  df-word 14053  df-concat 14109  df-s1 14136  df-s2 14396  df-s3 14397  df-cj 14645  df-re 14646  df-im 14647  df-sqrt 14781  df-abs 14782  df-clim 15032  df-sum 15233  df-vtx 27061  df-iedg 27062  df-edg 27111  df-uhgr 27121  df-ushgr 27122  df-upgr 27145  df-umgr 27146  df-uspgr 27213  df-usgr 27214  df-fusgr 27377  df-nbgr 27393  df-vtxdg 27526  df-wlks 27659  df-wlkson 27660  df-trls 27752  df-trlson 27753  df-pths 27775  df-spths 27776  df-pthson 27777  df-spthson 27778  df-wwlks 27886  df-wwlksn 27887  df-wwlksnon 27888  df-wspthsn 27889  df-wspthsnon 27890
This theorem is referenced by:  fusgreghash2wsp  28393
  Copyright terms: Public domain W3C validator