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

Theorem upgrop 26034
Description: A pseudograph represented by an ordered pair. (Contributed by AV, 12-Dec-2021.)
Assertion
Ref Expression
upgrop (𝐺 ∈ UPGraph → ⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩ ∈ UPGraph)

Proof of Theorem upgrop
Dummy variable 𝑝 is distinct from all other variables.
StepHypRef Expression
1 eqid 2651 . . 3 (Vtx‘𝐺) = (Vtx‘𝐺)
2 eqid 2651 . . 3 (iEdg‘𝐺) = (iEdg‘𝐺)
31, 2upgrf 26026 . 2 (𝐺 ∈ UPGraph → (iEdg‘𝐺):dom (iEdg‘𝐺)⟶{𝑝 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (#‘𝑝) ≤ 2})
4 fvex 6239 . . . 4 (Vtx‘𝐺) ∈ V
5 fvex 6239 . . . 4 (iEdg‘𝐺) ∈ V
64, 5pm3.2i 470 . . 3 ((Vtx‘𝐺) ∈ V ∧ (iEdg‘𝐺) ∈ V)
7 opex 4962 . . . . 5 ⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩ ∈ V
8 eqid 2651 . . . . . 6 (Vtx‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩) = (Vtx‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩)
9 eqid 2651 . . . . . 6 (iEdg‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩) = (iEdg‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩)
108, 9isupgr 26024 . . . . 5 (⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩ ∈ V → (⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩ ∈ UPGraph ↔ (iEdg‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩):dom (iEdg‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩)⟶{𝑝 ∈ (𝒫 (Vtx‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩) ∖ {∅}) ∣ (#‘𝑝) ≤ 2}))
117, 10mp1i 13 . . . 4 (((Vtx‘𝐺) ∈ V ∧ (iEdg‘𝐺) ∈ V) → (⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩ ∈ UPGraph ↔ (iEdg‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩):dom (iEdg‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩)⟶{𝑝 ∈ (𝒫 (Vtx‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩) ∖ {∅}) ∣ (#‘𝑝) ≤ 2}))
12 opiedgfv 25932 . . . . 5 (((Vtx‘𝐺) ∈ V ∧ (iEdg‘𝐺) ∈ V) → (iEdg‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩) = (iEdg‘𝐺))
1312dmeqd 5358 . . . . 5 (((Vtx‘𝐺) ∈ V ∧ (iEdg‘𝐺) ∈ V) → dom (iEdg‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩) = dom (iEdg‘𝐺))
14 opvtxfv 25929 . . . . . . . 8 (((Vtx‘𝐺) ∈ V ∧ (iEdg‘𝐺) ∈ V) → (Vtx‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩) = (Vtx‘𝐺))
1514pweqd 4196 . . . . . . 7 (((Vtx‘𝐺) ∈ V ∧ (iEdg‘𝐺) ∈ V) → 𝒫 (Vtx‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩) = 𝒫 (Vtx‘𝐺))
1615difeq1d 3760 . . . . . 6 (((Vtx‘𝐺) ∈ V ∧ (iEdg‘𝐺) ∈ V) → (𝒫 (Vtx‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩) ∖ {∅}) = (𝒫 (Vtx‘𝐺) ∖ {∅}))
1716rabeqdv 3225 . . . . 5 (((Vtx‘𝐺) ∈ V ∧ (iEdg‘𝐺) ∈ V) → {𝑝 ∈ (𝒫 (Vtx‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩) ∖ {∅}) ∣ (#‘𝑝) ≤ 2} = {𝑝 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (#‘𝑝) ≤ 2})
1812, 13, 17feq123d 6072 . . . 4 (((Vtx‘𝐺) ∈ V ∧ (iEdg‘𝐺) ∈ V) → ((iEdg‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩):dom (iEdg‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩)⟶{𝑝 ∈ (𝒫 (Vtx‘⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩) ∖ {∅}) ∣ (#‘𝑝) ≤ 2} ↔ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶{𝑝 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (#‘𝑝) ≤ 2}))
1911, 18bitrd 268 . . 3 (((Vtx‘𝐺) ∈ V ∧ (iEdg‘𝐺) ∈ V) → (⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩ ∈ UPGraph ↔ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶{𝑝 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (#‘𝑝) ≤ 2}))
206, 19mp1i 13 . 2 (𝐺 ∈ UPGraph → (⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩ ∈ UPGraph ↔ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶{𝑝 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (#‘𝑝) ≤ 2}))
213, 20mpbird 247 1 (𝐺 ∈ UPGraph → ⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩ ∈ UPGraph)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 383  wcel 2030  {crab 2945  Vcvv 3231  cdif 3604  c0 3948  𝒫 cpw 4191  {csn 4210  cop 4216   class class class wbr 4685  dom cdm 5143  wf 5922  cfv 5926  cle 10113  2c2 11108  #chash 13157  Vtxcvtx 25919  iEdgciedg 25920  UPGraphcupgr 26020
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1762  ax-4 1777  ax-5 1879  ax-6 1945  ax-7 1981  ax-8 2032  ax-9 2039  ax-10 2059  ax-11 2074  ax-12 2087  ax-13 2282  ax-ext 2631  ax-sep 4814  ax-nul 4822  ax-pow 4873  ax-pr 4936  ax-un 6991
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3an 1056  df-tru 1526  df-ex 1745  df-nf 1750  df-sb 1938  df-eu 2502  df-mo 2503  df-clab 2638  df-cleq 2644  df-clel 2647  df-nfc 2782  df-ral 2946  df-rex 2947  df-rab 2950  df-v 3233  df-sbc 3469  df-dif 3610  df-un 3612  df-in 3614  df-ss 3621  df-nul 3949  df-if 4120  df-pw 4193  df-sn 4211  df-pr 4213  df-op 4217  df-uni 4469  df-br 4686  df-opab 4746  df-mpt 4763  df-id 5053  df-xp 5149  df-rel 5150  df-cnv 5151  df-co 5152  df-dm 5153  df-rn 5154  df-iota 5889  df-fun 5928  df-fn 5929  df-f 5930  df-fv 5934  df-1st 7210  df-2nd 7211  df-vtx 25921  df-iedg 25922  df-upgr 26022
This theorem is referenced by:  finsumvtxdg2size  26502
  Copyright terms: Public domain W3C validator