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

Theorem frcond1 28630
Description: The friendship condition: any two (different) vertices in a friendship graph have a unique common neighbor. (Contributed by Alexander van der Vekens, 19-Dec-2017.) (Revised by AV, 29-Mar-2021.)
Hypotheses
Ref Expression
frcond1.v 𝑉 = (Vtx‘𝐺)
frcond1.e 𝐸 = (Edg‘𝐺)
Assertion
Ref Expression
frcond1 (𝐺 ∈ FriendGraph → ((𝐴𝑉𝐶𝑉𝐴𝐶) → ∃!𝑏𝑉 {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸))
Distinct variable groups:   𝐴,𝑏   𝐶,𝑏   𝐸,𝑏   𝐺,𝑏   𝑉,𝑏

Proof of Theorem frcond1
Dummy variables 𝑘 𝑙 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 frcond1.v . . 3 𝑉 = (Vtx‘𝐺)
2 frcond1.e . . 3 𝐸 = (Edg‘𝐺)
31, 2isfrgr 28624 . 2 (𝐺 ∈ FriendGraph ↔ (𝐺 ∈ USGraph ∧ ∀𝑘𝑉𝑙 ∈ (𝑉 ∖ {𝑘})∃!𝑏𝑉 {{𝑏, 𝑘}, {𝑏, 𝑙}} ⊆ 𝐸))
4 preq2 4670 . . . . . . 7 (𝑘 = 𝐴 → {𝑏, 𝑘} = {𝑏, 𝐴})
54preq1d 4675 . . . . . 6 (𝑘 = 𝐴 → {{𝑏, 𝑘}, {𝑏, 𝑙}} = {{𝑏, 𝐴}, {𝑏, 𝑙}})
65sseq1d 3952 . . . . 5 (𝑘 = 𝐴 → ({{𝑏, 𝑘}, {𝑏, 𝑙}} ⊆ 𝐸 ↔ {{𝑏, 𝐴}, {𝑏, 𝑙}} ⊆ 𝐸))
76reubidv 3323 . . . 4 (𝑘 = 𝐴 → (∃!𝑏𝑉 {{𝑏, 𝑘}, {𝑏, 𝑙}} ⊆ 𝐸 ↔ ∃!𝑏𝑉 {{𝑏, 𝐴}, {𝑏, 𝑙}} ⊆ 𝐸))
8 preq2 4670 . . . . . . 7 (𝑙 = 𝐶 → {𝑏, 𝑙} = {𝑏, 𝐶})
98preq2d 4676 . . . . . 6 (𝑙 = 𝐶 → {{𝑏, 𝐴}, {𝑏, 𝑙}} = {{𝑏, 𝐴}, {𝑏, 𝐶}})
109sseq1d 3952 . . . . 5 (𝑙 = 𝐶 → ({{𝑏, 𝐴}, {𝑏, 𝑙}} ⊆ 𝐸 ↔ {{𝑏, 𝐴}, {𝑏, 𝐶}} ⊆ 𝐸))
1110reubidv 3323 . . . 4 (𝑙 = 𝐶 → (∃!𝑏𝑉 {{𝑏, 𝐴}, {𝑏, 𝑙}} ⊆ 𝐸 ↔ ∃!𝑏𝑉 {{𝑏, 𝐴}, {𝑏, 𝐶}} ⊆ 𝐸))
12 simp1 1135 . . . 4 ((𝐴𝑉𝐶𝑉𝐴𝐶) → 𝐴𝑉)
13 sneq 4571 . . . . . 6 (𝑘 = 𝐴 → {𝑘} = {𝐴})
1413difeq2d 4057 . . . . 5 (𝑘 = 𝐴 → (𝑉 ∖ {𝑘}) = (𝑉 ∖ {𝐴}))
1514adantl 482 . . . 4 (((𝐴𝑉𝐶𝑉𝐴𝐶) ∧ 𝑘 = 𝐴) → (𝑉 ∖ {𝑘}) = (𝑉 ∖ {𝐴}))
16 necom 2997 . . . . . . . 8 (𝐴𝐶𝐶𝐴)
1716biimpi 215 . . . . . . 7 (𝐴𝐶𝐶𝐴)
1817anim2i 617 . . . . . 6 ((𝐶𝑉𝐴𝐶) → (𝐶𝑉𝐶𝐴))
19183adant1 1129 . . . . 5 ((𝐴𝑉𝐶𝑉𝐴𝐶) → (𝐶𝑉𝐶𝐴))
20 eldifsn 4720 . . . . 5 (𝐶 ∈ (𝑉 ∖ {𝐴}) ↔ (𝐶𝑉𝐶𝐴))
2119, 20sylibr 233 . . . 4 ((𝐴𝑉𝐶𝑉𝐴𝐶) → 𝐶 ∈ (𝑉 ∖ {𝐴}))
227, 11, 12, 15, 21rspc2vd 3883 . . 3 ((𝐴𝑉𝐶𝑉𝐴𝐶) → (∀𝑘𝑉𝑙 ∈ (𝑉 ∖ {𝑘})∃!𝑏𝑉 {{𝑏, 𝑘}, {𝑏, 𝑙}} ⊆ 𝐸 → ∃!𝑏𝑉 {{𝑏, 𝐴}, {𝑏, 𝐶}} ⊆ 𝐸))
23 prcom 4668 . . . . . . 7 {𝑏, 𝐴} = {𝐴, 𝑏}
2423preq1i 4672 . . . . . 6 {{𝑏, 𝐴}, {𝑏, 𝐶}} = {{𝐴, 𝑏}, {𝑏, 𝐶}}
2524sseq1i 3949 . . . . 5 ({{𝑏, 𝐴}, {𝑏, 𝐶}} ⊆ 𝐸 ↔ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸)
2625reubii 3325 . . . 4 (∃!𝑏𝑉 {{𝑏, 𝐴}, {𝑏, 𝐶}} ⊆ 𝐸 ↔ ∃!𝑏𝑉 {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸)
2726biimpi 215 . . 3 (∃!𝑏𝑉 {{𝑏, 𝐴}, {𝑏, 𝐶}} ⊆ 𝐸 → ∃!𝑏𝑉 {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸)
2822, 27syl6com 37 . 2 (∀𝑘𝑉𝑙 ∈ (𝑉 ∖ {𝑘})∃!𝑏𝑉 {{𝑏, 𝑘}, {𝑏, 𝑙}} ⊆ 𝐸 → ((𝐴𝑉𝐶𝑉𝐴𝐶) → ∃!𝑏𝑉 {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸))
293, 28simplbiim 505 1 (𝐺 ∈ FriendGraph → ((𝐴𝑉𝐶𝑉𝐴𝐶) → ∃!𝑏𝑉 {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396  w3a 1086   = wceq 1539  wcel 2106  wne 2943  wral 3064  ∃!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-nul 5230
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-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  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:  frcond2  28631  frcond3  28633  4cyclusnfrgr  28656  frgrncvvdeqlem2  28664
  Copyright terms: Public domain W3C validator