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

Theorem frcond1 28531
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 28525 . 2 (𝐺 ∈ FriendGraph ↔ (𝐺 ∈ USGraph ∧ ∀𝑘𝑉𝑙 ∈ (𝑉 ∖ {𝑘})∃!𝑏𝑉 {{𝑏, 𝑘}, {𝑏, 𝑙}} ⊆ 𝐸))
4 preq2 4667 . . . . . . 7 (𝑘 = 𝐴 → {𝑏, 𝑘} = {𝑏, 𝐴})
54preq1d 4672 . . . . . 6 (𝑘 = 𝐴 → {{𝑏, 𝑘}, {𝑏, 𝑙}} = {{𝑏, 𝐴}, {𝑏, 𝑙}})
65sseq1d 3948 . . . . 5 (𝑘 = 𝐴 → ({{𝑏, 𝑘}, {𝑏, 𝑙}} ⊆ 𝐸 ↔ {{𝑏, 𝐴}, {𝑏, 𝑙}} ⊆ 𝐸))
76reubidv 3315 . . . 4 (𝑘 = 𝐴 → (∃!𝑏𝑉 {{𝑏, 𝑘}, {𝑏, 𝑙}} ⊆ 𝐸 ↔ ∃!𝑏𝑉 {{𝑏, 𝐴}, {𝑏, 𝑙}} ⊆ 𝐸))
8 preq2 4667 . . . . . . 7 (𝑙 = 𝐶 → {𝑏, 𝑙} = {𝑏, 𝐶})
98preq2d 4673 . . . . . 6 (𝑙 = 𝐶 → {{𝑏, 𝐴}, {𝑏, 𝑙}} = {{𝑏, 𝐴}, {𝑏, 𝐶}})
109sseq1d 3948 . . . . 5 (𝑙 = 𝐶 → ({{𝑏, 𝐴}, {𝑏, 𝑙}} ⊆ 𝐸 ↔ {{𝑏, 𝐴}, {𝑏, 𝐶}} ⊆ 𝐸))
1110reubidv 3315 . . . 4 (𝑙 = 𝐶 → (∃!𝑏𝑉 {{𝑏, 𝐴}, {𝑏, 𝑙}} ⊆ 𝐸 ↔ ∃!𝑏𝑉 {{𝑏, 𝐴}, {𝑏, 𝐶}} ⊆ 𝐸))
12 simp1 1134 . . . 4 ((𝐴𝑉𝐶𝑉𝐴𝐶) → 𝐴𝑉)
13 sneq 4568 . . . . . 6 (𝑘 = 𝐴 → {𝑘} = {𝐴})
1413difeq2d 4053 . . . . 5 (𝑘 = 𝐴 → (𝑉 ∖ {𝑘}) = (𝑉 ∖ {𝐴}))
1514adantl 481 . . . 4 (((𝐴𝑉𝐶𝑉𝐴𝐶) ∧ 𝑘 = 𝐴) → (𝑉 ∖ {𝑘}) = (𝑉 ∖ {𝐴}))
16 necom 2996 . . . . . . . 8 (𝐴𝐶𝐶𝐴)
1716biimpi 215 . . . . . . 7 (𝐴𝐶𝐶𝐴)
1817anim2i 616 . . . . . 6 ((𝐶𝑉𝐴𝐶) → (𝐶𝑉𝐶𝐴))
19183adant1 1128 . . . . 5 ((𝐴𝑉𝐶𝑉𝐴𝐶) → (𝐶𝑉𝐶𝐴))
20 eldifsn 4717 . . . . 5 (𝐶 ∈ (𝑉 ∖ {𝐴}) ↔ (𝐶𝑉𝐶𝐴))
2119, 20sylibr 233 . . . 4 ((𝐴𝑉𝐶𝑉𝐴𝐶) → 𝐶 ∈ (𝑉 ∖ {𝐴}))
227, 11, 12, 15, 21rspc2vd 3879 . . 3 ((𝐴𝑉𝐶𝑉𝐴𝐶) → (∀𝑘𝑉𝑙 ∈ (𝑉 ∖ {𝑘})∃!𝑏𝑉 {{𝑏, 𝑘}, {𝑏, 𝑙}} ⊆ 𝐸 → ∃!𝑏𝑉 {{𝑏, 𝐴}, {𝑏, 𝐶}} ⊆ 𝐸))
23 prcom 4665 . . . . . . 7 {𝑏, 𝐴} = {𝐴, 𝑏}
2423preq1i 4669 . . . . . 6 {{𝑏, 𝐴}, {𝑏, 𝐶}} = {{𝐴, 𝑏}, {𝑏, 𝐶}}
2524sseq1i 3945 . . . . 5 ({{𝑏, 𝐴}, {𝑏, 𝐶}} ⊆ 𝐸 ↔ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸)
2625reubii 3317 . . . 4 (∃!𝑏𝑉 {{𝑏, 𝐴}, {𝑏, 𝐶}} ⊆ 𝐸 ↔ ∃!𝑏𝑉 {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸)
2726biimpi 215 . . 3 (∃!𝑏𝑉 {{𝑏, 𝐴}, {𝑏, 𝐶}} ⊆ 𝐸 → ∃!𝑏𝑉 {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸)
2822, 27syl6com 37 . 2 (∀𝑘𝑉𝑙 ∈ (𝑉 ∖ {𝑘})∃!𝑏𝑉 {{𝑏, 𝑘}, {𝑏, 𝑙}} ⊆ 𝐸 → ((𝐴𝑉𝐶𝑉𝐴𝐶) → ∃!𝑏𝑉 {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸))
293, 28simplbiim 504 1 (𝐺 ∈ FriendGraph → ((𝐴𝑉𝐶𝑉𝐴𝐶) → ∃!𝑏𝑉 {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  w3a 1085   = wceq 1539  wcel 2108  wne 2942  wral 3063  ∃!wreu 3065  cdif 3880  wss 3883  {csn 4558  {cpr 4560  cfv 6418  Vtxcvtx 27269  Edgcedg 27320  USGraphcusgr 27422   FriendGraph cfrgr 28523
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-nul 5225
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-iota 6376  df-fv 6426  df-frgr 28524
This theorem is referenced by:  frcond2  28532  frcond3  28534  4cyclusnfrgr  28557  frgrncvvdeqlem2  28565
  Copyright terms: Public domain W3C validator