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

Theorem 2pthfrgrrn 28646
Description: Between any two (different) vertices in a friendship graph is a 2-path (path of length 2), see Proposition 1(b) of [MertziosUnger] p. 153 : "A friendship graph G ..., as well as the distance between any two nodes in G is at most two". (Contributed by Alexander van der Vekens, 15-Nov-2017.) (Revised by AV, 1-Apr-2021.)
Hypotheses
Ref Expression
2pthfrgrrn.v 𝑉 = (Vtx‘𝐺)
2pthfrgrrn.e 𝐸 = (Edg‘𝐺)
Assertion
Ref Expression
2pthfrgrrn (𝐺 ∈ FriendGraph → ∀𝑎𝑉𝑐 ∈ (𝑉 ∖ {𝑎})∃𝑏𝑉 ({𝑎, 𝑏} ∈ 𝐸 ∧ {𝑏, 𝑐} ∈ 𝐸))
Distinct variable groups:   𝐸,𝑎,𝑏,𝑐   𝐺,𝑎,𝑏,𝑐   𝑉,𝑎,𝑏,𝑐

Proof of Theorem 2pthfrgrrn
StepHypRef Expression
1 2pthfrgrrn.v . . 3 𝑉 = (Vtx‘𝐺)
2 2pthfrgrrn.e . . 3 𝐸 = (Edg‘𝐺)
31, 2isfrgr 28624 . 2 (𝐺 ∈ FriendGraph ↔ (𝐺 ∈ USGraph ∧ ∀𝑎𝑉𝑐 ∈ (𝑉 ∖ {𝑎})∃!𝑏𝑉 {{𝑏, 𝑎}, {𝑏, 𝑐}} ⊆ 𝐸))
4 reurex 3362 . . . . . 6 (∃!𝑏𝑉 {{𝑏, 𝑎}, {𝑏, 𝑐}} ⊆ 𝐸 → ∃𝑏𝑉 {{𝑏, 𝑎}, {𝑏, 𝑐}} ⊆ 𝐸)
5 prcom 4668 . . . . . . . . . 10 {𝑎, 𝑏} = {𝑏, 𝑎}
65eleq1i 2829 . . . . . . . . 9 ({𝑎, 𝑏} ∈ 𝐸 ↔ {𝑏, 𝑎} ∈ 𝐸)
76anbi1i 624 . . . . . . . 8 (({𝑎, 𝑏} ∈ 𝐸 ∧ {𝑏, 𝑐} ∈ 𝐸) ↔ ({𝑏, 𝑎} ∈ 𝐸 ∧ {𝑏, 𝑐} ∈ 𝐸))
8 zfpair2 5353 . . . . . . . . 9 {𝑏, 𝑎} ∈ V
9 zfpair2 5353 . . . . . . . . 9 {𝑏, 𝑐} ∈ V
108, 9prss 4753 . . . . . . . 8 (({𝑏, 𝑎} ∈ 𝐸 ∧ {𝑏, 𝑐} ∈ 𝐸) ↔ {{𝑏, 𝑎}, {𝑏, 𝑐}} ⊆ 𝐸)
117, 10sylbbr 235 . . . . . . 7 ({{𝑏, 𝑎}, {𝑏, 𝑐}} ⊆ 𝐸 → ({𝑎, 𝑏} ∈ 𝐸 ∧ {𝑏, 𝑐} ∈ 𝐸))
1211reximi 3178 . . . . . 6 (∃𝑏𝑉 {{𝑏, 𝑎}, {𝑏, 𝑐}} ⊆ 𝐸 → ∃𝑏𝑉 ({𝑎, 𝑏} ∈ 𝐸 ∧ {𝑏, 𝑐} ∈ 𝐸))
134, 12syl 17 . . . . 5 (∃!𝑏𝑉 {{𝑏, 𝑎}, {𝑏, 𝑐}} ⊆ 𝐸 → ∃𝑏𝑉 ({𝑎, 𝑏} ∈ 𝐸 ∧ {𝑏, 𝑐} ∈ 𝐸))
1413a1i 11 . . . 4 ((𝐺 ∈ USGraph ∧ (𝑎𝑉𝑐 ∈ (𝑉 ∖ {𝑎}))) → (∃!𝑏𝑉 {{𝑏, 𝑎}, {𝑏, 𝑐}} ⊆ 𝐸 → ∃𝑏𝑉 ({𝑎, 𝑏} ∈ 𝐸 ∧ {𝑏, 𝑐} ∈ 𝐸)))
1514ralimdvva 3126 . . 3 (𝐺 ∈ USGraph → (∀𝑎𝑉𝑐 ∈ (𝑉 ∖ {𝑎})∃!𝑏𝑉 {{𝑏, 𝑎}, {𝑏, 𝑐}} ⊆ 𝐸 → ∀𝑎𝑉𝑐 ∈ (𝑉 ∖ {𝑎})∃𝑏𝑉 ({𝑎, 𝑏} ∈ 𝐸 ∧ {𝑏, 𝑐} ∈ 𝐸)))
1615imp 407 . 2 ((𝐺 ∈ USGraph ∧ ∀𝑎𝑉𝑐 ∈ (𝑉 ∖ {𝑎})∃!𝑏𝑉 {{𝑏, 𝑎}, {𝑏, 𝑐}} ⊆ 𝐸) → ∀𝑎𝑉𝑐 ∈ (𝑉 ∖ {𝑎})∃𝑏𝑉 ({𝑎, 𝑏} ∈ 𝐸 ∧ {𝑏, 𝑐} ∈ 𝐸))
173, 16sylbi 216 1 (𝐺 ∈ FriendGraph → ∀𝑎𝑉𝑐 ∈ (𝑉 ∖ {𝑎})∃𝑏𝑉 ({𝑎, 𝑏} ∈ 𝐸 ∧ {𝑏, 𝑐} ∈ 𝐸))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396   = wceq 1539  wcel 2106  wral 3064  wrex 3065  ∃!wreu 3066  cdif 3884  wss 3887  {csn 4561  {cpr 4563  cfv 6433  Vtxcvtx 27366  Edgcedg 27417  USGraphcusgr 27519   FriendGraph cfrgr 28622
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-iota 6391  df-fv 6441  df-frgr 28623
This theorem is referenced by:  2pthfrgrrn2  28647  3cyclfrgrrn1  28649
  Copyright terms: Public domain W3C validator