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

Theorem fusgreghash2wspv 28041
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 28038. (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 28040 . . . . . 6 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → (𝑀𝑣) = 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
43fveq2d 6667 . . . . 5 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → (♯‘(𝑀𝑣)) = (♯‘ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩}))
54adantr 481 . . . 4 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → (♯‘(𝑀𝑣)) = (♯‘ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩}))
61eleq2i 2901 . . . . . . 7 (𝑣𝑉𝑣 ∈ (Vtx‘𝐺))
7 nbfiusgrfi 27084 . . . . . . 7 ((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ (Vtx‘𝐺)) → (𝐺 NeighbVtx 𝑣) ∈ Fin)
86, 7sylan2b 593 . . . . . 6 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → (𝐺 NeighbVtx 𝑣) ∈ Fin)
98adantr 481 . . . . 5 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → (𝐺 NeighbVtx 𝑣) ∈ Fin)
10 eqid 2818 . . . . 5 ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}) = ((𝐺 NeighbVtx 𝑣) ∖ {𝑐})
11 snfi 8582 . . . . . 6 {⟨“𝑐𝑣𝑑”⟩} ∈ Fin
1211a1i 11 . . . . 5 ((((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) ∧ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐})) → {⟨“𝑐𝑣𝑑”⟩} ∈ Fin)
131nbgrssvtx 27051 . . . . . . . . . . 11 (𝐺 NeighbVtx 𝑣) ⊆ 𝑉
1413a1i 11 . . . . . . . . . 10 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → (𝐺 NeighbVtx 𝑣) ⊆ 𝑉)
1514ssdifd 4114 . . . . . . . . 9 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}) ⊆ (𝑉 ∖ {𝑐}))
16 iunss1 4924 . . . . . . . . 9 (((𝐺 NeighbVtx 𝑣) ∖ {𝑐}) ⊆ (𝑉 ∖ {𝑐}) → 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} ⊆ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
1715, 16syl 17 . . . . . . . 8 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} ⊆ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
1817ralrimiva 3179 . . . . . . 7 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → ∀𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} ⊆ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
19 simpr 485 . . . . . . . 8 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → 𝑣𝑉)
20 s3iunsndisj 14316 . . . . . . . 8 (𝑣𝑉Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
2119, 20syl 17 . . . . . . 7 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
22 disjss2 5025 . . . . . . 7 (∀𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} ⊆ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} → (Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩}))
2318, 21, 22sylc 65 . . . . . 6 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
2423adantr 481 . . . . 5 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
2519adantr 481 . . . . . . 7 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → 𝑣𝑉)
2625anim1ci 615 . . . . . 6 ((((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → (𝑐 ∈ (𝐺 NeighbVtx 𝑣) ∧ 𝑣𝑉))
27 s3sndisj 14315 . . . . . 6 ((𝑐 ∈ (𝐺 NeighbVtx 𝑣) ∧ 𝑣𝑉) → Disj 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
2826, 27syl 17 . . . . 5 ((((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → Disj 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
29 s3cli 14231 . . . . . 6 ⟨“𝑐𝑣𝑑”⟩ ∈ Word V
30 hashsng 13718 . . . . . 6 (⟨“𝑐𝑣𝑑”⟩ ∈ Word V → (♯‘{⟨“𝑐𝑣𝑑”⟩}) = 1)
3129, 30mp1i 13 . . . . 5 ((((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) ∧ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐})) → (♯‘{⟨“𝑐𝑣𝑑”⟩}) = 1)
329, 10, 12, 24, 28, 31hash2iun1dif1 15167 . . . 4 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → (♯‘ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩}) = ((♯‘(𝐺 NeighbVtx 𝑣)) · ((♯‘(𝐺 NeighbVtx 𝑣)) − 1)))
33 fusgrusgr 27031 . . . . . . 7 (𝐺 ∈ FinUSGraph → 𝐺 ∈ USGraph)
341hashnbusgrvd 27237 . . . . . . 7 ((𝐺 ∈ USGraph ∧ 𝑣𝑉) → (♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣))
3533, 34sylan 580 . . . . . 6 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → (♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣))
36 id 22 . . . . . . 7 ((♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣) → (♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣))
37 oveq1 7152 . . . . . . 7 ((♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣) → ((♯‘(𝐺 NeighbVtx 𝑣)) − 1) = (((VtxDeg‘𝐺)‘𝑣) − 1))
3836, 37oveq12d 7163 . . . . . 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 7152 . . . . . 6 (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (((VtxDeg‘𝐺)‘𝑣) − 1) = (𝐾 − 1))
4240, 41oveq12d 7163 . . . . 5 (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (((VtxDeg‘𝐺)‘𝑣) · (((VtxDeg‘𝐺)‘𝑣) − 1)) = (𝐾 · (𝐾 − 1)))
4339, 42sylan9eq 2873 . . . 4 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → ((♯‘(𝐺 NeighbVtx 𝑣)) · ((♯‘(𝐺 NeighbVtx 𝑣)) − 1)) = (𝐾 · (𝐾 − 1)))
445, 32, 433eqtrd 2857 . . 3 (((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → (♯‘(𝑀𝑣)) = (𝐾 · (𝐾 − 1)))
4544ex 413 . 2 ((𝐺 ∈ FinUSGraph ∧ 𝑣𝑉) → (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (♯‘(𝑀𝑣)) = (𝐾 · (𝐾 − 1))))
4645ralrimiva 3179 1 (𝐺 ∈ FinUSGraph → ∀𝑣𝑉 (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (♯‘(𝑀𝑣)) = (𝐾 · (𝐾 − 1))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396  w3a 1079   = wceq 1528  wcel 2105  wral 3135  {crab 3139  Vcvv 3492  cdif 3930  wss 3933  {csn 4557   ciun 4910  Disj wdisj 5022  cmpt 5137  cfv 6348  (class class class)co 7145  Fincfn 8497  1c1 10526   · cmul 10530  cmin 10858  2c2 11680  chash 13678  Word cword 13849  ⟨“cs3 14192  Vtxcvtx 26708  USGraphcusgr 26861  FinUSGraphcfusgr 27025   NeighbVtx cnbgr 27041  VtxDegcvtxdg 27174   WSPathsN cwwspthsn 27533
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-ext 2790  ax-rep 5181  ax-sep 5194  ax-nul 5201  ax-pow 5257  ax-pr 5320  ax-un 7450  ax-inf2 9092  ax-ac2 9873  ax-cnex 10581  ax-resscn 10582  ax-1cn 10583  ax-icn 10584  ax-addcl 10585  ax-addrcl 10586  ax-mulcl 10587  ax-mulrcl 10588  ax-mulcom 10589  ax-addass 10590  ax-mulass 10591  ax-distr 10592  ax-i2m1 10593  ax-1ne0 10594  ax-1rid 10595  ax-rnegex 10596  ax-rrecex 10597  ax-cnre 10598  ax-pre-lttri 10599  ax-pre-lttrn 10600  ax-pre-ltadd 10601  ax-pre-mulgt0 10602  ax-pre-sup 10603
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-ifp 1055  df-3or 1080  df-3an 1081  df-tru 1531  df-fal 1541  df-ex 1772  df-nf 1776  df-sb 2061  df-mo 2615  df-eu 2647  df-clab 2797  df-cleq 2811  df-clel 2890  df-nfc 2960  df-ne 3014  df-nel 3121  df-ral 3140  df-rex 3141  df-reu 3142  df-rmo 3143  df-rab 3144  df-v 3494  df-sbc 3770  df-csb 3881  df-dif 3936  df-un 3938  df-in 3940  df-ss 3949  df-pss 3951  df-nul 4289  df-if 4464  df-pw 4537  df-sn 4558  df-pr 4560  df-tp 4562  df-op 4564  df-uni 4831  df-int 4868  df-iun 4912  df-disj 5023  df-br 5058  df-opab 5120  df-mpt 5138  df-tr 5164  df-id 5453  df-eprel 5458  df-po 5467  df-so 5468  df-fr 5507  df-se 5508  df-we 5509  df-xp 5554  df-rel 5555  df-cnv 5556  df-co 5557  df-dm 5558  df-rn 5559  df-res 5560  df-ima 5561  df-pred 6141  df-ord 6187  df-on 6188  df-lim 6189  df-suc 6190  df-iota 6307  df-fun 6350  df-fn 6351  df-f 6352  df-f1 6353  df-fo 6354  df-f1o 6355  df-fv 6356  df-isom 6357  df-riota 7103  df-ov 7148  df-oprab 7149  df-mpo 7150  df-om 7570  df-1st 7678  df-2nd 7679  df-wrecs 7936  df-recs 7997  df-rdg 8035  df-1o 8091  df-2o 8092  df-oadd 8095  df-er 8278  df-map 8397  df-pm 8398  df-en 8498  df-dom 8499  df-sdom 8500  df-fin 8501  df-sup 8894  df-oi 8962  df-dju 9318  df-card 9356  df-ac 9530  df-pnf 10665  df-mnf 10666  df-xr 10667  df-ltxr 10668  df-le 10669  df-sub 10860  df-neg 10861  df-div 11286  df-nn 11627  df-2 11688  df-3 11689  df-n0 11886  df-xnn0 11956  df-z 11970  df-uz 12232  df-rp 12378  df-xadd 12496  df-fz 12881  df-fzo 13022  df-seq 13358  df-exp 13418  df-hash 13679  df-word 13850  df-concat 13911  df-s1 13938  df-s2 14198  df-s3 14199  df-cj 14446  df-re 14447  df-im 14448  df-sqrt 14582  df-abs 14583  df-clim 14833  df-sum 15031  df-vtx 26710  df-iedg 26711  df-edg 26760  df-uhgr 26770  df-ushgr 26771  df-upgr 26794  df-umgr 26795  df-uspgr 26862  df-usgr 26863  df-fusgr 27026  df-nbgr 27042  df-vtxdg 27175  df-wlks 27308  df-wlkson 27309  df-trls 27401  df-trlson 27402  df-pths 27424  df-spths 27425  df-pthson 27426  df-spthson 27427  df-wwlks 27535  df-wwlksn 27536  df-wwlksnon 27537  df-wspthsn 27538  df-wspthsnon 27539
This theorem is referenced by:  fusgreghash2wsp  28044
  Copyright terms: Public domain W3C validator