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

Theorem upgrun 26903
Description: The union 𝑈 of two pseudographs 𝐺 and 𝐻 with the same vertex set 𝑉 is a pseudograph with the vertex 𝑉 and the union (𝐸𝐹) of the (indexed) edges. (Contributed by AV, 12-Oct-2020.) (Revised by AV, 24-Oct-2021.)
Hypotheses
Ref Expression
upgrun.g (𝜑𝐺 ∈ UPGraph)
upgrun.h (𝜑𝐻 ∈ UPGraph)
upgrun.e 𝐸 = (iEdg‘𝐺)
upgrun.f 𝐹 = (iEdg‘𝐻)
upgrun.vg 𝑉 = (Vtx‘𝐺)
upgrun.vh (𝜑 → (Vtx‘𝐻) = 𝑉)
upgrun.i (𝜑 → (dom 𝐸 ∩ dom 𝐹) = ∅)
upgrun.u (𝜑𝑈𝑊)
upgrun.v (𝜑 → (Vtx‘𝑈) = 𝑉)
upgrun.un (𝜑 → (iEdg‘𝑈) = (𝐸𝐹))
Assertion
Ref Expression
upgrun (𝜑𝑈 ∈ UPGraph)

Proof of Theorem upgrun
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 upgrun.g . . . . 5 (𝜑𝐺 ∈ UPGraph)
2 upgrun.vg . . . . . 6 𝑉 = (Vtx‘𝐺)
3 upgrun.e . . . . . 6 𝐸 = (iEdg‘𝐺)
42, 3upgrf 26871 . . . . 5 (𝐺 ∈ UPGraph → 𝐸:dom 𝐸⟶{𝑥 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑥) ≤ 2})
51, 4syl 17 . . . 4 (𝜑𝐸:dom 𝐸⟶{𝑥 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑥) ≤ 2})
6 upgrun.h . . . . . 6 (𝜑𝐻 ∈ UPGraph)
7 eqid 2821 . . . . . . 7 (Vtx‘𝐻) = (Vtx‘𝐻)
8 upgrun.f . . . . . . 7 𝐹 = (iEdg‘𝐻)
97, 8upgrf 26871 . . . . . 6 (𝐻 ∈ UPGraph → 𝐹:dom 𝐹⟶{𝑥 ∈ (𝒫 (Vtx‘𝐻) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2})
106, 9syl 17 . . . . 5 (𝜑𝐹:dom 𝐹⟶{𝑥 ∈ (𝒫 (Vtx‘𝐻) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2})
11 upgrun.vh . . . . . . . . . 10 (𝜑 → (Vtx‘𝐻) = 𝑉)
1211eqcomd 2827 . . . . . . . . 9 (𝜑𝑉 = (Vtx‘𝐻))
1312pweqd 4558 . . . . . . . 8 (𝜑 → 𝒫 𝑉 = 𝒫 (Vtx‘𝐻))
1413difeq1d 4098 . . . . . . 7 (𝜑 → (𝒫 𝑉 ∖ {∅}) = (𝒫 (Vtx‘𝐻) ∖ {∅}))
1514rabeqdv 3484 . . . . . 6 (𝜑 → {𝑥 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} = {𝑥 ∈ (𝒫 (Vtx‘𝐻) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2})
1615feq3d 6501 . . . . 5 (𝜑 → (𝐹:dom 𝐹⟶{𝑥 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} ↔ 𝐹:dom 𝐹⟶{𝑥 ∈ (𝒫 (Vtx‘𝐻) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2}))
1710, 16mpbird 259 . . . 4 (𝜑𝐹:dom 𝐹⟶{𝑥 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑥) ≤ 2})
18 upgrun.i . . . 4 (𝜑 → (dom 𝐸 ∩ dom 𝐹) = ∅)
195, 17, 18fun2d 6542 . . 3 (𝜑 → (𝐸𝐹):(dom 𝐸 ∪ dom 𝐹)⟶{𝑥 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑥) ≤ 2})
20 upgrun.un . . . 4 (𝜑 → (iEdg‘𝑈) = (𝐸𝐹))
2120dmeqd 5774 . . . . 5 (𝜑 → dom (iEdg‘𝑈) = dom (𝐸𝐹))
22 dmun 5779 . . . . 5 dom (𝐸𝐹) = (dom 𝐸 ∪ dom 𝐹)
2321, 22syl6eq 2872 . . . 4 (𝜑 → dom (iEdg‘𝑈) = (dom 𝐸 ∪ dom 𝐹))
24 upgrun.v . . . . . . 7 (𝜑 → (Vtx‘𝑈) = 𝑉)
2524pweqd 4558 . . . . . 6 (𝜑 → 𝒫 (Vtx‘𝑈) = 𝒫 𝑉)
2625difeq1d 4098 . . . . 5 (𝜑 → (𝒫 (Vtx‘𝑈) ∖ {∅}) = (𝒫 𝑉 ∖ {∅}))
2726rabeqdv 3484 . . . 4 (𝜑 → {𝑥 ∈ (𝒫 (Vtx‘𝑈) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} = {𝑥 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑥) ≤ 2})
2820, 23, 27feq123d 6503 . . 3 (𝜑 → ((iEdg‘𝑈):dom (iEdg‘𝑈)⟶{𝑥 ∈ (𝒫 (Vtx‘𝑈) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} ↔ (𝐸𝐹):(dom 𝐸 ∪ dom 𝐹)⟶{𝑥 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑥) ≤ 2}))
2919, 28mpbird 259 . 2 (𝜑 → (iEdg‘𝑈):dom (iEdg‘𝑈)⟶{𝑥 ∈ (𝒫 (Vtx‘𝑈) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2})
30 upgrun.u . . 3 (𝜑𝑈𝑊)
31 eqid 2821 . . . 4 (Vtx‘𝑈) = (Vtx‘𝑈)
32 eqid 2821 . . . 4 (iEdg‘𝑈) = (iEdg‘𝑈)
3331, 32isupgr 26869 . . 3 (𝑈𝑊 → (𝑈 ∈ UPGraph ↔ (iEdg‘𝑈):dom (iEdg‘𝑈)⟶{𝑥 ∈ (𝒫 (Vtx‘𝑈) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2}))
3430, 33syl 17 . 2 (𝜑 → (𝑈 ∈ UPGraph ↔ (iEdg‘𝑈):dom (iEdg‘𝑈)⟶{𝑥 ∈ (𝒫 (Vtx‘𝑈) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2}))
3529, 34mpbird 259 1 (𝜑𝑈 ∈ UPGraph)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208   = wceq 1537  wcel 2114  {crab 3142  cdif 3933  cun 3934  cin 3935  c0 4291  𝒫 cpw 4539  {csn 4567   class class class wbr 5066  dom cdm 5555  wf 6351  cfv 6355  cle 10676  2c2 11693  chash 13691  Vtxcvtx 26781  iEdgciedg 26782  UPGraphcupgr 26865
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-sep 5203  ax-nul 5210  ax-pr 5330
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3773  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-pw 4541  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4839  df-br 5067  df-opab 5129  df-id 5460  df-rel 5562  df-cnv 5563  df-co 5564  df-dm 5565  df-rn 5566  df-iota 6314  df-fun 6357  df-fn 6358  df-f 6359  df-fv 6363  df-upgr 26867
This theorem is referenced by:  upgrunop  26904  uspgrun  26970
  Copyright terms: Public domain W3C validator