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

Theorem frgr1v 27977
Description: Any graph with (at most) one vertex is a friendship graph. (Contributed by Alexander van der Vekens, 4-Oct-2017.) (Revised by AV, 29-Mar-2021.)
Assertion
Ref Expression
frgr1v ((𝐺 ∈ USGraph ∧ (Vtx‘𝐺) = {𝑁}) → 𝐺 ∈ FriendGraph )

Proof of Theorem frgr1v
Dummy variables 𝑘 𝑙 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 simpl 483 . 2 ((𝐺 ∈ USGraph ∧ (Vtx‘𝐺) = {𝑁}) → 𝐺 ∈ USGraph)
2 ral0 4452 . . . . 5 𝑙 ∈ ∅ ∃!𝑥 ∈ {𝑁} {{𝑥, 𝑁}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺)
3 sneq 4567 . . . . . . . . 9 (𝑘 = 𝑁 → {𝑘} = {𝑁})
43difeq2d 4096 . . . . . . . 8 (𝑘 = 𝑁 → ({𝑁} ∖ {𝑘}) = ({𝑁} ∖ {𝑁}))
5 difid 4327 . . . . . . . 8 ({𝑁} ∖ {𝑁}) = ∅
64, 5syl6eq 2869 . . . . . . 7 (𝑘 = 𝑁 → ({𝑁} ∖ {𝑘}) = ∅)
7 preq2 4662 . . . . . . . . . 10 (𝑘 = 𝑁 → {𝑥, 𝑘} = {𝑥, 𝑁})
87preq1d 4667 . . . . . . . . 9 (𝑘 = 𝑁 → {{𝑥, 𝑘}, {𝑥, 𝑙}} = {{𝑥, 𝑁}, {𝑥, 𝑙}})
98sseq1d 3995 . . . . . . . 8 (𝑘 = 𝑁 → ({{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺) ↔ {{𝑥, 𝑁}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺)))
109reubidv 3387 . . . . . . 7 (𝑘 = 𝑁 → (∃!𝑥 ∈ {𝑁} {{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺) ↔ ∃!𝑥 ∈ {𝑁} {{𝑥, 𝑁}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺)))
116, 10raleqbidv 3399 . . . . . 6 (𝑘 = 𝑁 → (∀𝑙 ∈ ({𝑁} ∖ {𝑘})∃!𝑥 ∈ {𝑁} {{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺) ↔ ∀𝑙 ∈ ∅ ∃!𝑥 ∈ {𝑁} {{𝑥, 𝑁}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺)))
1211ralsng 4605 . . . . 5 (𝑁 ∈ V → (∀𝑘 ∈ {𝑁}∀𝑙 ∈ ({𝑁} ∖ {𝑘})∃!𝑥 ∈ {𝑁} {{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺) ↔ ∀𝑙 ∈ ∅ ∃!𝑥 ∈ {𝑁} {{𝑥, 𝑁}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺)))
132, 12mpbiri 259 . . . 4 (𝑁 ∈ V → ∀𝑘 ∈ {𝑁}∀𝑙 ∈ ({𝑁} ∖ {𝑘})∃!𝑥 ∈ {𝑁} {{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺))
14 snprc 4645 . . . . 5 𝑁 ∈ V ↔ {𝑁} = ∅)
15 rzal 4449 . . . . 5 ({𝑁} = ∅ → ∀𝑘 ∈ {𝑁}∀𝑙 ∈ ({𝑁} ∖ {𝑘})∃!𝑥 ∈ {𝑁} {{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺))
1614, 15sylbi 218 . . . 4 𝑁 ∈ V → ∀𝑘 ∈ {𝑁}∀𝑙 ∈ ({𝑁} ∖ {𝑘})∃!𝑥 ∈ {𝑁} {{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺))
1713, 16pm2.61i 183 . . 3 𝑘 ∈ {𝑁}∀𝑙 ∈ ({𝑁} ∖ {𝑘})∃!𝑥 ∈ {𝑁} {{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺)
18 id 22 . . . . 5 ((Vtx‘𝐺) = {𝑁} → (Vtx‘𝐺) = {𝑁})
19 difeq1 4089 . . . . . 6 ((Vtx‘𝐺) = {𝑁} → ((Vtx‘𝐺) ∖ {𝑘}) = ({𝑁} ∖ {𝑘}))
20 reueq1 3405 . . . . . 6 ((Vtx‘𝐺) = {𝑁} → (∃!𝑥 ∈ (Vtx‘𝐺){{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺) ↔ ∃!𝑥 ∈ {𝑁} {{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺)))
2119, 20raleqbidv 3399 . . . . 5 ((Vtx‘𝐺) = {𝑁} → (∀𝑙 ∈ ((Vtx‘𝐺) ∖ {𝑘})∃!𝑥 ∈ (Vtx‘𝐺){{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺) ↔ ∀𝑙 ∈ ({𝑁} ∖ {𝑘})∃!𝑥 ∈ {𝑁} {{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺)))
2218, 21raleqbidv 3399 . . . 4 ((Vtx‘𝐺) = {𝑁} → (∀𝑘 ∈ (Vtx‘𝐺)∀𝑙 ∈ ((Vtx‘𝐺) ∖ {𝑘})∃!𝑥 ∈ (Vtx‘𝐺){{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺) ↔ ∀𝑘 ∈ {𝑁}∀𝑙 ∈ ({𝑁} ∖ {𝑘})∃!𝑥 ∈ {𝑁} {{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺)))
2322adantl 482 . . 3 ((𝐺 ∈ USGraph ∧ (Vtx‘𝐺) = {𝑁}) → (∀𝑘 ∈ (Vtx‘𝐺)∀𝑙 ∈ ((Vtx‘𝐺) ∖ {𝑘})∃!𝑥 ∈ (Vtx‘𝐺){{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺) ↔ ∀𝑘 ∈ {𝑁}∀𝑙 ∈ ({𝑁} ∖ {𝑘})∃!𝑥 ∈ {𝑁} {{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺)))
2417, 23mpbiri 259 . 2 ((𝐺 ∈ USGraph ∧ (Vtx‘𝐺) = {𝑁}) → ∀𝑘 ∈ (Vtx‘𝐺)∀𝑙 ∈ ((Vtx‘𝐺) ∖ {𝑘})∃!𝑥 ∈ (Vtx‘𝐺){{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺))
25 eqid 2818 . . 3 (Vtx‘𝐺) = (Vtx‘𝐺)
26 eqid 2818 . . 3 (Edg‘𝐺) = (Edg‘𝐺)
2725, 26isfrgr 27966 . 2 (𝐺 ∈ FriendGraph ↔ (𝐺 ∈ USGraph ∧ ∀𝑘 ∈ (Vtx‘𝐺)∀𝑙 ∈ ((Vtx‘𝐺) ∖ {𝑘})∃!𝑥 ∈ (Vtx‘𝐺){{𝑥, 𝑘}, {𝑥, 𝑙}} ⊆ (Edg‘𝐺)))
281, 24, 27sylanbrc 583 1 ((𝐺 ∈ USGraph ∧ (Vtx‘𝐺) = {𝑁}) → 𝐺 ∈ FriendGraph )
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 207  wa 396   = wceq 1528  wcel 2105  wral 3135  ∃!wreu 3137  Vcvv 3492  cdif 3930  wss 3933  c0 4288  {csn 4557  {cpr 4559  cfv 6348  Vtxcvtx 26708  Edgcedg 26759  USGraphcusgr 26861   FriendGraph cfrgr 27964
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-ext 2790  ax-nul 5201
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-3an 1081  df-tru 1531  df-ex 1772  df-nf 1776  df-sb 2061  df-mo 2615  df-eu 2647  df-clab 2797  df-cleq 2811  df-clel 2890  df-nfc 2960  df-ne 3014  df-ral 3140  df-rex 3141  df-reu 3142  df-rab 3144  df-v 3494  df-sbc 3770  df-dif 3936  df-un 3938  df-in 3940  df-ss 3949  df-nul 4289  df-if 4464  df-sn 4558  df-pr 4560  df-op 4564  df-uni 4831  df-br 5058  df-iota 6307  df-fv 6356  df-frgr 27965
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator