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

Theorem frgr2wwlkeu 30648
Description: For two different vertices in a friendship graph, there is exactly one third vertex being the middle vertex of a (simple) path/walk of length 2 between the two vertices. (Contributed by Alexander van der Vekens, 18-Feb-2018.) (Revised by AV, 12-May-2021.) (Proof shortened by AV, 4-Jan-2022.) (Revised by Ender Ting, 29-Jan-2026.)
Hypothesis
Ref Expression
frgr2wwlkeu.v 𝑉 = (Vtx‘𝐺)
Assertion
Ref Expression
frgr2wwlkeu ((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐵𝑉) ∧ 𝐴𝐵) → ∃!𝑐𝑉 ⟨“𝐴𝑐𝐵”⟩ ∈ (𝐴(2 WWalksNOn 𝐺)𝐵))
Distinct variable groups:   𝐴,𝑐   𝐵,𝑐   𝐺,𝑐   𝑉,𝑐

Proof of Theorem frgr2wwlkeu
StepHypRef Expression
1 df-3an 1103 . . . 4 ((𝐴𝑉𝐵𝑉𝐴𝐵) ↔ ((𝐴𝑉𝐵𝑉) ∧ 𝐴𝐵))
2 frgr2wwlkeu.v . . . . 5 𝑉 = (Vtx‘𝐺)
3 eqid 2770 . . . . 5 (Edg‘𝐺) = (Edg‘𝐺)
42, 3frcond2 30588 . . . 4 (𝐺 ∈ FriendGraph → ((𝐴𝑉𝐵𝑉𝐴𝐵) → ∃!𝑐𝑉 ({𝐴, 𝑐} ∈ (Edg‘𝐺) ∧ {𝑐, 𝐵} ∈ (Edg‘𝐺))))
51, 4biimtrrid 246 . . 3 (𝐺 ∈ FriendGraph → (((𝐴𝑉𝐵𝑉) ∧ 𝐴𝐵) → ∃!𝑐𝑉 ({𝐴, 𝑐} ∈ (Edg‘𝐺) ∧ {𝑐, 𝐵} ∈ (Edg‘𝐺))))
653impib 1132 . 2 ((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐵𝑉) ∧ 𝐴𝐵) → ∃!𝑐𝑉 ({𝐴, 𝑐} ∈ (Edg‘𝐺) ∧ {𝑐, 𝐵} ∈ (Edg‘𝐺)))
7 frgrusgr 30582 . . . . . 6 (𝐺 ∈ FriendGraph → 𝐺 ∈ USGraph)
8 id 23 . . . . . 6 (𝐺 ∈ USGraph → 𝐺 ∈ USGraph)
9 3anan32 1111 . . . . . . 7 ((𝐴𝑉𝑐𝑉𝐵𝑉) ↔ ((𝐴𝑉𝐵𝑉) ∧ 𝑐𝑉))
102, 3usgrwwlks2on 30277 . . . . . . . 8 ((𝐺 ∈ USGraph ∧ (𝐴𝑉𝑐𝑉𝐵𝑉)) → (⟨“𝐴𝑐𝐵”⟩ ∈ (𝐴(2 WWalksNOn 𝐺)𝐵) ↔ ({𝐴, 𝑐} ∈ (Edg‘𝐺) ∧ {𝑐, 𝐵} ∈ (Edg‘𝐺))))
1110ex 417 . . . . . . 7 (𝐺 ∈ USGraph → ((𝐴𝑉𝑐𝑉𝐵𝑉) → (⟨“𝐴𝑐𝐵”⟩ ∈ (𝐴(2 WWalksNOn 𝐺)𝐵) ↔ ({𝐴, 𝑐} ∈ (Edg‘𝐺) ∧ {𝑐, 𝐵} ∈ (Edg‘𝐺)))))
129, 11biimtrrid 246 . . . . . 6 (𝐺 ∈ USGraph → (((𝐴𝑉𝐵𝑉) ∧ 𝑐𝑉) → (⟨“𝐴𝑐𝐵”⟩ ∈ (𝐴(2 WWalksNOn 𝐺)𝐵) ↔ ({𝐴, 𝑐} ∈ (Edg‘𝐺) ∧ {𝑐, 𝐵} ∈ (Edg‘𝐺)))))
137, 8, 123syl 19 . . . . 5 (𝐺 ∈ FriendGraph → (((𝐴𝑉𝐵𝑉) ∧ 𝑐𝑉) → (⟨“𝐴𝑐𝐵”⟩ ∈ (𝐴(2 WWalksNOn 𝐺)𝐵) ↔ ({𝐴, 𝑐} ∈ (Edg‘𝐺) ∧ {𝑐, 𝐵} ∈ (Edg‘𝐺)))))
1413impl 460 . . . 4 (((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐵𝑉)) ∧ 𝑐𝑉) → (⟨“𝐴𝑐𝐵”⟩ ∈ (𝐴(2 WWalksNOn 𝐺)𝐵) ↔ ({𝐴, 𝑐} ∈ (Edg‘𝐺) ∧ {𝑐, 𝐵} ∈ (Edg‘𝐺))))
1514reubidva 3390 . . 3 ((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐵𝑉)) → (∃!𝑐𝑉 ⟨“𝐴𝑐𝐵”⟩ ∈ (𝐴(2 WWalksNOn 𝐺)𝐵) ↔ ∃!𝑐𝑉 ({𝐴, 𝑐} ∈ (Edg‘𝐺) ∧ {𝑐, 𝐵} ∈ (Edg‘𝐺))))
16153adant3 1148 . 2 ((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐵𝑉) ∧ 𝐴𝐵) → (∃!𝑐𝑉 ⟨“𝐴𝑐𝐵”⟩ ∈ (𝐴(2 WWalksNOn 𝐺)𝐵) ↔ ∃!𝑐𝑉 ({𝐴, 𝑐} ∈ (Edg‘𝐺) ∧ {𝑐, 𝐵} ∈ (Edg‘𝐺))))
176, 16mpbird 260 1 ((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐵𝑉) ∧ 𝐴𝐵) → ∃!𝑐𝑉 ⟨“𝐴𝑐𝐵”⟩ ∈ (𝐴(2 WWalksNOn 𝐺)𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 400  w3a 1101   = wceq 1568  wcel 2150  wne 2965  ∃!wreu 3374  {cpr 4596  cfv 6540  (class class class)co 7414  2c2 12298  ⟨“cs3 14882  Vtxcvtx 29316  Edgcedg 29367  USGraphcusgr 29469   WWalksNOn cwwlksnon 30146   FriendGraph cfrgr 30579
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1823  ax-4 1837  ax-5 1938  ax-6 1995  ax-7 2036  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2199  ax-12 2220  ax-ext 2742  ax-rep 5243  ax-sep 5262  ax-nul 5274  ax-pow 5340  ax-pr 5408  ax-un 7736  ax-cnex 11159  ax-resscn 11160  ax-1cn 11161  ax-icn 11162  ax-addcl 11163  ax-addrcl 11164  ax-mulcl 11165  ax-mulrcl 11166  ax-mulcom 11167  ax-addass 11168  ax-mulass 11169  ax-distr 11170  ax-i2m1 11171  ax-1ne0 11172  ax-1rid 11173  ax-rnegex 11174  ax-rrecex 11175  ax-cnre 11176  ax-pre-lttri 11177  ax-pre-lttrn 11178  ax-pre-ltadd 11179  ax-pre-mulgt0 11180
This theorem depends on definitions:  df-bi 210  df-an 401  df-or 861  df-ifp 1077  df-3or 1102  df-3an 1103  df-tru 1571  df-fal 1581  df-ex 1808  df-nf 1812  df-sb 2099  df-mo 2574  df-eu 2604  df-clab 2749  df-cleq 2762  df-clel 2845  df-nfc 2919  df-ne 2966  df-nel 3072  df-ral 3087  df-rex 3097  df-rmo 3376  df-reu 3377  df-rab 3424  df-v 3464  df-sbc 3753  df-csb 3862  df-dif 3916  df-un 3918  df-in 3920  df-ss 3930  df-pss 3933  df-nul 4295  df-if 4493  df-pw 4569  df-sn 4595  df-pr 4597  df-tp 4599  df-op 4601  df-uni 4878  df-int 4918  df-iun 4963  df-br 5115  df-opab 5179  df-mpt 5198  df-tr 5224  df-id 5560  df-eprel 5565  df-po 5573  df-so 5574  df-fr 5618  df-we 5620  df-xp 5671  df-rel 5672  df-cnv 5673  df-co 5674  df-dm 5675  df-rn 5676  df-res 5677  df-ima 5678  df-pred 6306  df-ord 6367  df-on 6368  df-lim 6369  df-suc 6370  df-iota 6496  df-fun 6542  df-fn 6543  df-f 6544  df-f1 6545  df-fo 6546  df-f1o 6547  df-fv 6548  df-riota 7371  df-ov 7417  df-oprab 7418  df-mpo 7419  df-om 7866  df-1st 7989  df-2nd 7990  df-frecs 8281  df-wrecs 8312  df-recs 8361  df-rdg 8400  df-1o 8456  df-2o 8457  df-oadd 8460  df-er 8697  df-map 8829  df-pm 8830  df-en 8947  df-dom 8948  df-sdom 8949  df-fin 8950  df-dju 9890  df-card 9928  df-pnf 11248  df-mnf 11249  df-xr 11250  df-ltxr 11251  df-le 11252  df-sub 11446  df-neg 11447  df-nn 12237  df-2 12306  df-3 12307  df-n0 12508  df-xnn0 12581  df-z 12595  df-uz 12866  df-fz 13539  df-fzo 13686  df-hash 14370  df-word 14554  df-concat 14611  df-s1 14637  df-s2 14888  df-s3 14889  df-edg 29368  df-uhgr 29378  df-upgr 29402  df-umgr 29403  df-uspgr 29470  df-usgr 29471  df-wlks 29919  df-wwlks 30149  df-wwlksn 30150  df-wwlksnon 30151  df-frgr 30580
This theorem is referenced by:  frgr2wwlkn0  30649  frgr2wwlk1  30650  frgr2wwlkeqm  30652
  Copyright terms: Public domain W3C validator