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

Theorem vtxval 25791
Description: The set of vertices of a graph. (Contributed by AV, 9-Jan-2020.) (Revised by AV, 21-Sep-2020.)
Assertion
Ref Expression
vtxval (Vtx‘𝐺) = if(𝐺 ∈ (V × V), (1st𝐺), (Base‘𝐺))

Proof of Theorem vtxval
Dummy variable 𝑔 is distinct from all other variables.
StepHypRef Expression
1 eleq1 2686 . . . 4 (𝑔 = 𝐺 → (𝑔 ∈ (V × V) ↔ 𝐺 ∈ (V × V)))
2 fveq2 6153 . . . 4 (𝑔 = 𝐺 → (1st𝑔) = (1st𝐺))
3 fveq2 6153 . . . 4 (𝑔 = 𝐺 → (Base‘𝑔) = (Base‘𝐺))
41, 2, 3ifbieq12d 4090 . . 3 (𝑔 = 𝐺 → if(𝑔 ∈ (V × V), (1st𝑔), (Base‘𝑔)) = if(𝐺 ∈ (V × V), (1st𝐺), (Base‘𝐺)))
5 df-vtx 25789 . . 3 Vtx = (𝑔 ∈ V ↦ if(𝑔 ∈ (V × V), (1st𝑔), (Base‘𝑔)))
6 fvex 6163 . . . 4 (1st𝐺) ∈ V
7 fvex 6163 . . . 4 (Base‘𝐺) ∈ V
86, 7ifex 4133 . . 3 if(𝐺 ∈ (V × V), (1st𝐺), (Base‘𝐺)) ∈ V
94, 5, 8fvmpt 6244 . 2 (𝐺 ∈ V → (Vtx‘𝐺) = if(𝐺 ∈ (V × V), (1st𝐺), (Base‘𝐺)))
10 fvprc 6147 . . 3 𝐺 ∈ V → (Base‘𝐺) = ∅)
11 prcnel 3207 . . . 4 𝐺 ∈ V → ¬ 𝐺 ∈ (V × V))
1211iffalsed 4074 . . 3 𝐺 ∈ V → if(𝐺 ∈ (V × V), (1st𝐺), (Base‘𝐺)) = (Base‘𝐺))
13 fvprc 6147 . . 3 𝐺 ∈ V → (Vtx‘𝐺) = ∅)
1410, 12, 133eqtr4rd 2666 . 2 𝐺 ∈ V → (Vtx‘𝐺) = if(𝐺 ∈ (V × V), (1st𝐺), (Base‘𝐺)))
159, 14pm2.61i 176 1 (Vtx‘𝐺) = if(𝐺 ∈ (V × V), (1st𝐺), (Base‘𝐺))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3   = wceq 1480  wcel 1987  Vcvv 3189  c0 3896  ifcif 4063   × cxp 5077  cfv 5852  1st c1st 7118  Basecbs 15788  Vtxcvtx 25787
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4746  ax-nul 4754  ax-pow 4808  ax-pr 4872
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ral 2912  df-rex 2913  df-rab 2916  df-v 3191  df-sbc 3422  df-dif 3562  df-un 3564  df-in 3566  df-ss 3573  df-nul 3897  df-if 4064  df-sn 4154  df-pr 4156  df-op 4160  df-uni 4408  df-br 4619  df-opab 4679  df-mpt 4680  df-id 4994  df-xp 5085  df-rel 5086  df-cnv 5087  df-co 5088  df-dm 5089  df-iota 5815  df-fun 5854  df-fv 5860  df-vtx 25789
This theorem is referenced by:  opvtxval  25796  funvtxdmge2val  25804  funvtxdm2val  25806  snstrvtxval  25842  vtxval0  25844
  Copyright terms: Public domain W3C validator