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

Theorem fusgreghash2wspv 30963
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 30960. (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 30962 . . . . . 6 ((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) → (𝑀‘𝑣) = ∪ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)∪ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
43fveq2d 6909 . . . . 5 ((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) → (♯‘(𝑀‘𝑣)) = (♯‘∪ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)∪ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩}))
54adantr 486 . . . 4 (((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → (♯‘(𝑀‘𝑣)) = (♯‘∪ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)∪ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩}))
61eleq2i 2856 . . . . . . 7 (𝑣 ∈ 𝑉 ↔ 𝑣 ∈ (Vtx‘𝐺))
7 nbfiusgrfi 29983 . . . . . . 7 ((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ (Vtx‘𝐺)) → (𝐺 NeighbVtx 𝑣) ∈ Fin)
86, 7sylan2b 606 . . . . . 6 ((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) → (𝐺 NeighbVtx 𝑣) ∈ Fin)
98adantr 486 . . . . 5 (((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → (𝐺 NeighbVtx 𝑣) ∈ Fin)
10 eqid 2763 . . . . 5 ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}) = ((𝐺 NeighbVtx 𝑣) ∖ {𝑐})
11 snfi 9096 . . . . . 6 {⟨“𝑐𝑣𝑑”⟩} ∈ Fin
1211a1i 11 . . . . 5 ((((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) ∧ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐})) → {⟨“𝑐𝑣𝑑”⟩} ∈ Fin)
131nbgrssvtx 29950 . . . . . . . . . . 11 (𝐺 NeighbVtx 𝑣) ⊆ 𝑉
1413a1i 11 . . . . . . . . . 10 (((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → (𝐺 NeighbVtx 𝑣) ⊆ 𝑉)
1514ssdifd 4084 . . . . . . . . 9 (((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}) ⊆ (𝑉 ∖ {𝑐}))
16 iunss1 4969 . . . . . . . . 9 (((𝐺 NeighbVtx 𝑣) ∖ {𝑐}) ⊆ (𝑉 ∖ {𝑐}) → ∪ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} ⊆ ∪ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
1715, 16syl 18 . . . . . . . 8 (((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → ∪ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} ⊆ ∪ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
1817ralrimiva 3158 . . . . . . 7 ((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) → ∀𝑐 ∈ (𝐺 NeighbVtx 𝑣)∪ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} ⊆ ∪ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
19 simpr 490 . . . . . . . 8 ((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) → 𝑣 ∈ 𝑉)
20 s3iunsndisj 15147 . . . . . . . 8 (𝑣 ∈ 𝑉 → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣)∪ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
2119, 20syl 18 . . . . . . 7 ((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣)∪ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
22 disjss2 5076 . . . . . . 7 (∀𝑐 ∈ (𝐺 NeighbVtx 𝑣)∪ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} ⊆ ∪ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} → (Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣)∪ 𝑑 ∈ (𝑉 ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩} → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣)∪ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩}))
2318, 21, 22sylc 66 . . . . . 6 ((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣)∪ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
2423adantr 486 . . . . 5 (((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → Disj 𝑐 ∈ (𝐺 NeighbVtx 𝑣)∪ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
2519adantr 486 . . . . . . 7 (((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → 𝑣 ∈ 𝑉)
2625anim1ci 628 . . . . . 6 ((((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → (𝑐 ∈ (𝐺 NeighbVtx 𝑣) ∧ 𝑣 ∈ 𝑉))
27 s3sndisj 15146 . . . . . 6 ((𝑐 ∈ (𝐺 NeighbVtx 𝑣) ∧ 𝑣 ∈ 𝑉) → Disj 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
2826, 27syl 18 . . . . 5 ((((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)) → Disj 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩})
29 s3cli 15057 . . . . . 6 ⟨“𝑐𝑣𝑑”⟩ ∈ Word V
30 hashsng 14537 . . . . . 6 (⟨“𝑐𝑣𝑑”⟩ ∈ Word V → (♯‘{⟨“𝑐𝑣𝑑”⟩}) = 1)
3129, 30mp1i 14 . . . . 5 ((((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) ∧ 𝑐 ∈ (𝐺 NeighbVtx 𝑣) ∧ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐})) → (♯‘{⟨“𝑐𝑣𝑑”⟩}) = 1)
329, 10, 12, 24, 28, 31hash2iun1dif1 16017 . . . 4 (((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → (♯‘∪ 𝑐 ∈ (𝐺 NeighbVtx 𝑣)∪ 𝑑 ∈ ((𝐺 NeighbVtx 𝑣) ∖ {𝑐}){⟨“𝑐𝑣𝑑”⟩}) = ((♯‘(𝐺 NeighbVtx 𝑣)) · ((♯‘(𝐺 NeighbVtx 𝑣)) − 1)))
33 fusgrusgr 29930 . . . . . . 7 (𝐺 ∈ FinUSGraph → 𝐺 ∈ USGraph)
341hashnbusgrvd 30136 . . . . . . 7 ((𝐺 ∈ USGraph ∧ 𝑣 ∈ 𝑉) → (♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣))
3533, 34sylan 592 . . . . . 6 ((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) → (♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣))
36 id 23 . . . . . . 7 ((♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣) → (♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣))
37 oveq1 7447 . . . . . . 7 ((♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣) → ((♯‘(𝐺 NeighbVtx 𝑣)) − 1) = (((VtxDeg‘𝐺)‘𝑣) − 1))
3836, 37oveq12d 7458 . . . . . 6 ((♯‘(𝐺 NeighbVtx 𝑣)) = ((VtxDeg‘𝐺)‘𝑣) → ((♯‘(𝐺 NeighbVtx 𝑣)) · ((♯‘(𝐺 NeighbVtx 𝑣)) − 1)) = (((VtxDeg‘𝐺)‘𝑣) · (((VtxDeg‘𝐺)‘𝑣) − 1)))
3935, 38syl 18 . . . . 5 ((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) → ((♯‘(𝐺 NeighbVtx 𝑣)) · ((♯‘(𝐺 NeighbVtx 𝑣)) − 1)) = (((VtxDeg‘𝐺)‘𝑣) · (((VtxDeg‘𝐺)‘𝑣) − 1)))
40 id 23 . . . . . 6 (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → ((VtxDeg‘𝐺)‘𝑣) = 𝐾)
41 oveq1 7447 . . . . . 6 (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (((VtxDeg‘𝐺)‘𝑣) − 1) = (𝐾 − 1))
4240, 41oveq12d 7458 . . . . 5 (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (((VtxDeg‘𝐺)‘𝑣) · (((VtxDeg‘𝐺)‘𝑣) − 1)) = (𝐾 · (𝐾 − 1)))
4339, 42sylan9eq 2818 . . . 4 (((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → ((♯‘(𝐺 NeighbVtx 𝑣)) · ((♯‘(𝐺 NeighbVtx 𝑣)) − 1)) = (𝐾 · (𝐾 − 1)))
445, 32, 433eqtrd 2802 . . 3 (((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) ∧ ((VtxDeg‘𝐺)‘𝑣) = 𝐾) → (♯‘(𝑀‘𝑣)) = (𝐾 · (𝐾 − 1)))
4544ex 418 . 2 ((𝐺 ∈ FinUSGraph ∧ 𝑣 ∈ 𝑉) → (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (♯‘(𝑀‘𝑣)) = (𝐾 · (𝐾 − 1))))
4645ralrimiva 3158 1 (𝐺 ∈ FinUSGraph → ∀𝑣 ∈ 𝑉 (((VtxDeg‘𝐺)‘𝑣) = 𝐾 → (♯‘(𝑀‘𝑣)) = (𝐾 · (𝐾 − 1))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∧ w3a 1103   = wceq 1570   ∈ wcel 2147  ∀wral 3080  {crab 3416  Vcvv 3454   ⊆ wss 3900   ∖ cdif 4048  {csn 4588  ∪ ciun 4954  Disj wdisj 5073   ↦ cmpt 5189  ‘cfv 6555  (class class class)co 7440  Fincfn 8998  1c1 11225   · cmul 11229   − cmin 11565  2c2 12421  ♯chash 14498  Word cword 14682  ⟨“cs3 15018  Vtxcvtx 29601  USGraphcusgr 29757  FinUSGraphcfusgr 29924   NeighbVtx cnbgr 29940  VtxDegcvtxdg 30073   WSPathsN cwwspthsn 30444
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5235  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7772  ax-inf2 9666  ax-cnex 11280  ax-resscn 11281  ax-1cn 11282  ax-icn 11283  ax-addcl 11284  ax-addrcl 11285  ax-mulcl 11286  ax-mulrcl 11287  ax-mulcom 11288  ax-addass 11289  ax-mulass 11290  ax-distr 11291  ax-i2m1 11292  ax-1ne0 11293  ax-1rid 11294  ax-rnegex 11295  ax-rrecex 11296  ax-cnre 11297  ax-pre-lttri 11298  ax-pre-lttrn 11299  ax-pre-ltadd 11300  ax-pre-mulgt0 11301  ax-pre-sup 11302
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-ifp 1079  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-tp 4593  df-op 4839  df-uni 4871  df-int 4911  df-iun 4956  df-disj 5074  df-br 5107  df-opab 5171  df-mpt 5190  df-tr 5216  df-id 5550  df-eprel 5555  df-po 5563  df-so 5564  df-fr 5608  df-se 5609  df-we 5610  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-pred 6319  df-ord 6380  df-on 6381  df-lim 6382  df-suc 6383  df-iota 6509  df-fun 6557  df-fn 6558  df-f 6559  df-f1 6560  df-fo 6561  df-f1o 6562  df-fv 6563  df-isom 6564  df-riota 7397  df-ov 7443  df-oprab 7444  df-mpo 7445  df-om 7899  df-1st 8022  df-2nd 8023  df-frecs 8324  df-wrecs 8355  df-recs 8404  df-rdg 8443  df-1o 8501  df-2o 8502  df-oadd 8505  df-er 8742  df-map 8874  df-pm 8875  df-en 8999  df-dom 9000  df-sdom 9001  df-fin 9002  df-sup 9458  df-oi 9528  df-dju 10006  df-card 10044  df-pnf 11369  df-mnf 11370  df-xr 11371  df-ltxr 11372  df-le 11373  df-sub 11567  df-neg 11568  df-div 11998  df-nn 12360  df-2 12429  df-3 12430  df-n0 12631  df-xnn0 12704  df-z 12718  df-uz 12990  df-rp 13145  df-xadd 13266  df-fz 13664  df-fzo 13813  df-seq 14169  df-exp 14229  df-hash 14499  df-word 14683  df-concat 14740  df-s1 14767  df-s2 15024  df-s3 15025  df-cj 15292  df-re 15293  df-im 15294  df-sqrt 15428  df-abs 15429  df-clim 15681  df-sum 15880  df-vtx 29603  df-iedg 29604  df-edg 29653  df-uhgr 29663  df-ushgr 29664  df-upgr 29687  df-umgr 29688  df-uspgr 29758  df-usgr 29759  df-fusgr 29925  df-nbgr 29941  df-vtxdg 30074  df-wlks 30207  df-wlkson 30208  df-trls 30302  df-trlson 30303  df-pths 30326  df-spths 30327  df-pthson 30328  df-spthson 30329  df-wwlks 30446  df-wwlksn 30447  df-wwlksnon 30448  df-wspthsn 30449  df-wspthsnon 30450
This theorem is used by:  fusgreghash2wsp  30966
  Copyright terms: Public domain W3C validator