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

Theorem fusgreghash2wspv 28108
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 28105. (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 28107 . . . . . 6 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → (𝑀𝑣) = 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
43fveq2d 6668 . . . . 5 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → (♯‘(𝑀𝑣)) = (♯‘ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩}))
54adantr 483 . . . 4 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → (♯‘(𝑀𝑣)) = (♯‘ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩}))
61eleq2i 2904 . . . . . . 7 (𝑣𝑉𝑣 ∈ (Vtx‘𝐺))
7 nbfiusgrfi 27151 . . . . . . 7 ((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ (Vtx‘𝐺)) → (𝐺 NeighbVtx 𝑣) ∈ Fin)
86, 7sylan2b 595 . . . . . 6 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → (𝐺 NeighbVtx 𝑣) ∈ Fin)
98adantr 483 . . . . 5 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → (𝐺 NeighbVtx 𝑣) ∈ Fin)
10 eqid 2821 . . . . 5 ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}) = ((𝐺 NeighbVtx 𝑣) ∖ {𝑐})
11 snfi 8588 . . . . . 6 {⟨“𝑐𝑣𝑑”⟩} ∈ Fin
1211a1i 11 . . . . 5 ((((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) ∧ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐})) → {⟨“𝑐𝑣𝑑”⟩} ∈ Fin)
131nbgrssvtx 27118 . . . . . . . . . . 11 (𝐺 NeighbVtx 𝑣) ⊆ 𝑉
1413a1i 11 . . . . . . . . . 10 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → (𝐺 NeighbVtx 𝑣) ⊆ 𝑉)
1514ssdifd 4116 . . . . . . . . 9 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}) ⊆ (𝑉 ∖ {𝑐}))
16 iunss1 4925 . . . . . . . . 9 (((𝐺 NeighbVtx 𝑣) ∖ {𝑐}) ⊆ (𝑉 ∖ {𝑐}) → 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} ⊆ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
1715, 16syl 17 . . . . . . . 8 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} ⊆ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
1817ralrimiva 3182 . . . . . . 7 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → ∀𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} ⊆ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
19 simpr 487 . . . . . . . 8 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → 𝑣𝑉)
20 s3iunsndisj 14322 . . . . . . . 8 (𝑣𝑉Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
2119, 20syl 17 . . . . . . 7 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
22 disjss2 5026 . . . . . . 7 (∀𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} ⊆ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} → (Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩}))
2318, 21, 22sylc 65 . . . . . 6 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
2423adantr 483 . . . . 5 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
2519adantr 483 . . . . . . 7 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → 𝑣𝑉)
2625anim1ci 617 . . . . . 6 ((((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → (𝑐 ∈ (𝐺 NeighbVtx 𝑣) ∧ 𝑣𝑉))
27 s3sndisj 14321 . . . . . 6 ((𝑐 ∈ (𝐺 NeighbVtx 𝑣) ∧ 𝑣𝑉) → Disj 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
2826, 27syl 17 . . . . 5 ((((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → Disj 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
29 s3cli 14237 . . . . . 6 ⟨“𝑐𝑣𝑑”⟩ ∈ Word V
30 hashsng 13724 . . . . . 6 (⟨“𝑐𝑣𝑑”⟩ ∈ Word V → (♯‘{⟨“𝑐𝑣𝑑”⟩}) = 1)
3129, 30mp1i 13 . . . . 5 ((((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) ∧ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐})) → (♯‘{⟨“𝑐𝑣𝑑”⟩}) = 1)
329, 10, 12, 24, 28, 31hash2iun1dif1 15173 . . . 4 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → (♯‘ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩}) = ((♯‘(𝐺 NeighbVtx 𝑣)) · ((♯‘(𝐺 NeighbVtx 𝑣)) − 1)))
33 fusgrusgr 27098 . . . . . . 7 (𝐺 ∈ FinUSGraph → 𝐺 ∈ USGraph)
341hashnbusgrvd 27304 . . . . . . 7 ((𝐺 ∈ USGraph ∧ 𝑣𝑉) → (♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣))
3533, 34sylan 582 . . . . . 6 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → (♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣))
36 id 22 . . . . . . 7 ((♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣) → (♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣))
37 oveq1 7157 . . . . . . 7 ((♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣) → ((♯‘(𝐺 NeighbVtx 𝑣)) − 1) = (((VtxDeg‘𝐺)‘𝑣) − 1))
3836, 37oveq12d 7168 . . . . . 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 7157 . . . . . 6 (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (((VtxDeg‘𝐺)‘𝑣) − 1) = (𝐾 − 1))
4240, 41oveq12d 7168 . . . . 5 (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (((VtxDeg‘𝐺)‘𝑣) · (((VtxDeg‘𝐺)‘𝑣) − 1)) = (𝐾 · (𝐾 − 1)))
4339, 42sylan9eq 2876 . . . 4 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → ((♯‘(𝐺 NeighbVtx 𝑣)) · ((♯‘(𝐺 NeighbVtx 𝑣)) − 1)) = (𝐾 · (𝐾 − 1)))
445, 32, 433eqtrd 2860 . . 3 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → (♯‘(𝑀𝑣)) = (𝐾 · (𝐾 − 1)))
4544ex 415 . 2 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (♯‘(𝑀𝑣)) = (𝐾 · (𝐾 − 1))))
4645ralrimiva 3182 1 (𝐺 ∈ FinUSGraph → ∀𝑣𝑉 (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (♯‘(𝑀𝑣)) = (𝐾 · (𝐾 − 1))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398  w3a 1083   = wceq 1533  wcel 2110  wral 3138  {crab 3142  Vcvv 3494  cdif 3932  wss 3935  {csn 4560   ciun 4911  Disj wdisj 5023  cmpt 5138  cfv 6349  (class class class)co 7150  Fincfn 8503  1c1 10532   · cmul 10536  cmin 10864  2c2 11686  chash 13684  Word cword 13855  ⟨“cs3 14198  Vtxcvtx 26775  USGraphcusgr 26928  FinUSGraphcfusgr 27092   NeighbVtx cnbgr 27108  VtxDegcvtxdg 27241   WSPathsN cwwspthsn 27600
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-rep 5182  ax-sep 5195  ax-nul 5202  ax-pow 5258  ax-pr 5321  ax-un 7455  ax-inf2 9098  ax-ac2 9879  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  ax-pre-sup 10609
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-ifp 1058  df-3or 1084  df-3an 1085  df-tru 1536  df-fal 1546  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-nel 3124  df-ral 3143  df-rex 3144  df-reu 3145  df-rmo 3146  df-rab 3147  df-v 3496  df-sbc 3772  df-csb 3883  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-pss 3953  df-nul 4291  df-if 4467  df-pw 4540  df-sn 4561  df-pr 4563  df-tp 4565  df-op 4567  df-uni 4832  df-int 4869  df-iun 4913  df-disj 5024  df-br 5059  df-opab 5121  df-mpt 5139  df-tr 5165  df-id 5454  df-eprel 5459  df-po 5468  df-so 5469  df-fr 5508  df-se 5509  df-we 5510  df-xp 5555  df-rel 5556  df-cnv 5557  df-co 5558  df-dm 5559  df-rn 5560  df-res 5561  df-ima 5562  df-pred 6142  df-ord 6188  df-on 6189  df-lim 6190  df-suc 6191  df-iota 6308  df-fun 6351  df-fn 6352  df-f 6353  df-f1 6354  df-fo 6355  df-f1o 6356  df-fv 6357  df-isom 6358  df-riota 7108  df-ov 7153  df-oprab 7154  df-mpo 7155  df-om 7575  df-1st 7683  df-2nd 7684  df-wrecs 7941  df-recs 8002  df-rdg 8040  df-1o 8096  df-2o 8097  df-oadd 8100  df-er 8283  df-map 8402  df-pm 8403  df-en 8504  df-dom 8505  df-sdom 8506  df-fin 8507  df-sup 8900  df-oi 8968  df-dju 9324  df-card 9362  df-ac 9536  df-pnf 10671  df-mnf 10672  df-xr 10673  df-ltxr 10674  df-le 10675  df-sub 10866  df-neg 10867  df-div 11292  df-nn 11633  df-2 11694  df-3 11695  df-n0 11892  df-xnn0 11962  df-z 11976  df-uz 12238  df-rp 12384  df-xadd 12502  df-fz 12887  df-fzo 13028  df-seq 13364  df-exp 13424  df-hash 13685  df-word 13856  df-concat 13917  df-s1 13944  df-s2 14204  df-s3 14205  df-cj 14452  df-re 14453  df-im 14454  df-sqrt 14588  df-abs 14589  df-clim 14839  df-sum 15037  df-vtx 26777  df-iedg 26778  df-edg 26827  df-uhgr 26837  df-ushgr 26838  df-upgr 26861  df-umgr 26862  df-uspgr 26929  df-usgr 26930  df-fusgr 27093  df-nbgr 27109  df-vtxdg 27242  df-wlks 27375  df-wlkson 27376  df-trls 27468  df-trlson 27469  df-pths 27491  df-spths 27492  df-pthson 27493  df-spthson 27494  df-wwlks 27602  df-wwlksn 27603  df-wwlksnon 27604  df-wspthsn 27605  df-wspthsnon 27606
This theorem is referenced by:  fusgreghash2wsp  28111
  Copyright terms: Public domain W3C validator