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

Theorem uhgr0vb 26137
Description: The null graph, with no vertices, is a hypergraph if and only if the edge function is empty. (Contributed by Alexander van der Vekens, 27-Dec-2017.) (Revised by AV, 9-Oct-2020.)
Assertion
Ref Expression
uhgr0vb ((𝐺𝑊 ∧ (Vtx‘𝐺) = ∅) → (𝐺 ∈ UHGraph ↔ (iEdg‘𝐺) = ∅))

Proof of Theorem uhgr0vb
StepHypRef Expression
1 eqid 2748 . . . 4 (Vtx‘𝐺) = (Vtx‘𝐺)
2 eqid 2748 . . . 4 (iEdg‘𝐺) = (iEdg‘𝐺)
31, 2uhgrf 26127 . . 3 (𝐺 ∈ UHGraph → (iEdg‘𝐺):dom (iEdg‘𝐺)⟶(𝒫 (Vtx‘𝐺) ∖ {∅}))
4 pweq 4293 . . . . . . . 8 ((Vtx‘𝐺) = ∅ → 𝒫 (Vtx‘𝐺) = 𝒫 ∅)
54difeq1d 3858 . . . . . . 7 ((Vtx‘𝐺) = ∅ → (𝒫 (Vtx‘𝐺) ∖ {∅}) = (𝒫 ∅ ∖ {∅}))
6 pw0 4476 . . . . . . . . 9 𝒫 ∅ = {∅}
76difeq1i 3855 . . . . . . . 8 (𝒫 ∅ ∖ {∅}) = ({∅} ∖ {∅})
8 difid 4079 . . . . . . . 8 ({∅} ∖ {∅}) = ∅
97, 8eqtri 2770 . . . . . . 7 (𝒫 ∅ ∖ {∅}) = ∅
105, 9syl6eq 2798 . . . . . 6 ((Vtx‘𝐺) = ∅ → (𝒫 (Vtx‘𝐺) ∖ {∅}) = ∅)
1110adantl 473 . . . . 5 ((𝐺𝑊 ∧ (Vtx‘𝐺) = ∅) → (𝒫 (Vtx‘𝐺) ∖ {∅}) = ∅)
1211feq3d 6181 . . . 4 ((𝐺𝑊 ∧ (Vtx‘𝐺) = ∅) → ((iEdg‘𝐺):dom (iEdg‘𝐺)⟶(𝒫 (Vtx‘𝐺) ∖ {∅}) ↔ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶∅))
13 f00 6236 . . . . 5 ((iEdg‘𝐺):dom (iEdg‘𝐺)⟶∅ ↔ ((iEdg‘𝐺) = ∅ ∧ dom (iEdg‘𝐺) = ∅))
1413simplbi 478 . . . 4 ((iEdg‘𝐺):dom (iEdg‘𝐺)⟶∅ → (iEdg‘𝐺) = ∅)
1512, 14syl6bi 243 . . 3 ((𝐺𝑊 ∧ (Vtx‘𝐺) = ∅) → ((iEdg‘𝐺):dom (iEdg‘𝐺)⟶(𝒫 (Vtx‘𝐺) ∖ {∅}) → (iEdg‘𝐺) = ∅))
163, 15syl5 34 . 2 ((𝐺𝑊 ∧ (Vtx‘𝐺) = ∅) → (𝐺 ∈ UHGraph → (iEdg‘𝐺) = ∅))
17 simpl 474 . . . . 5 ((𝐺𝑊 ∧ (iEdg‘𝐺) = ∅) → 𝐺𝑊)
18 simpr 479 . . . . 5 ((𝐺𝑊 ∧ (iEdg‘𝐺) = ∅) → (iEdg‘𝐺) = ∅)
1917, 18uhgr0e 26136 . . . 4 ((𝐺𝑊 ∧ (iEdg‘𝐺) = ∅) → 𝐺 ∈ UHGraph)
2019ex 449 . . 3 (𝐺𝑊 → ((iEdg‘𝐺) = ∅ → 𝐺 ∈ UHGraph))
2120adantr 472 . 2 ((𝐺𝑊 ∧ (Vtx‘𝐺) = ∅) → ((iEdg‘𝐺) = ∅ → 𝐺 ∈ UHGraph))
2216, 21impbid 202 1 ((𝐺𝑊 ∧ (Vtx‘𝐺) = ∅) → (𝐺 ∈ UHGraph ↔ (iEdg‘𝐺) = ∅))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 383   = wceq 1620  wcel 2127  cdif 3700  c0 4046  𝒫 cpw 4290  {csn 4309  dom cdm 5254  wf 6033  cfv 6037  Vtxcvtx 26044  iEdgciedg 26045  UHGraphcuhgr 26121
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1859  ax-4 1874  ax-5 1976  ax-6 2042  ax-7 2078  ax-9 2136  ax-10 2156  ax-11 2171  ax-12 2184  ax-13 2379  ax-ext 2728  ax-sep 4921  ax-nul 4929  ax-pr 5043
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3an 1074  df-tru 1623  df-ex 1842  df-nf 1847  df-sb 2035  df-eu 2599  df-mo 2600  df-clab 2735  df-cleq 2741  df-clel 2744  df-nfc 2879  df-ral 3043  df-rex 3044  df-rab 3047  df-v 3330  df-sbc 3565  df-dif 3706  df-un 3708  df-in 3710  df-ss 3717  df-nul 4047  df-if 4219  df-pw 4292  df-sn 4310  df-pr 4312  df-op 4316  df-uni 4577  df-br 4793  df-opab 4853  df-id 5162  df-xp 5260  df-rel 5261  df-cnv 5262  df-co 5263  df-dm 5264  df-rn 5265  df-iota 6000  df-fun 6039  df-fn 6040  df-f 6041  df-fv 6045  df-uhgr 26123
This theorem is referenced by:  usgr0vb  26299  uhgr0v0e  26300  0uhgrsubgr  26341  finsumvtxdg2size  26627  0uhgrrusgr  26655  frgr0v  27386  frgruhgr0v  27388
  Copyright terms: Public domain W3C validator