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

Theorem isuhgr 27411
Description: The predicate "is an undirected hypergraph." (Contributed by Alexander van der Vekens, 26-Dec-2017.) (Revised by AV, 9-Oct-2020.)
Hypotheses
Ref Expression
isuhgr.v 𝑉 = (Vtx‘𝐺)
isuhgr.e 𝐸 = (iEdg‘𝐺)
Assertion
Ref Expression
isuhgr (𝐺𝑈 → (𝐺 ∈ UHGraph ↔ 𝐸:dom 𝐸⟶(𝒫 𝑉 ∖ {∅})))

Proof of Theorem isuhgr
Dummy variables 𝑔 𝑣 𝑒 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-uhgr 27409 . . 3 UHGraph = {𝑔[(Vtx‘𝑔) / 𝑣][(iEdg‘𝑔) / 𝑒]𝑒:dom 𝑒⟶(𝒫 𝑣 ∖ {∅})}
21eleq2i 2831 . 2 (𝐺 ∈ UHGraph ↔ 𝐺 ∈ {𝑔[(Vtx‘𝑔) / 𝑣][(iEdg‘𝑔) / 𝑒]𝑒:dom 𝑒⟶(𝒫 𝑣 ∖ {∅})})
3 fveq2 6768 . . . . 5 ( = 𝐺 → (iEdg‘) = (iEdg‘𝐺))
4 isuhgr.e . . . . 5 𝐸 = (iEdg‘𝐺)
53, 4eqtr4di 2797 . . . 4 ( = 𝐺 → (iEdg‘) = 𝐸)
63dmeqd 5811 . . . . 5 ( = 𝐺 → dom (iEdg‘) = dom (iEdg‘𝐺))
74eqcomi 2748 . . . . . 6 (iEdg‘𝐺) = 𝐸
87dmeqi 5810 . . . . 5 dom (iEdg‘𝐺) = dom 𝐸
96, 8eqtrdi 2795 . . . 4 ( = 𝐺 → dom (iEdg‘) = dom 𝐸)
10 fveq2 6768 . . . . . . 7 ( = 𝐺 → (Vtx‘) = (Vtx‘𝐺))
11 isuhgr.v . . . . . . 7 𝑉 = (Vtx‘𝐺)
1210, 11eqtr4di 2797 . . . . . 6 ( = 𝐺 → (Vtx‘) = 𝑉)
1312pweqd 4557 . . . . 5 ( = 𝐺 → 𝒫 (Vtx‘) = 𝒫 𝑉)
1413difeq1d 4060 . . . 4 ( = 𝐺 → (𝒫 (Vtx‘) ∖ {∅}) = (𝒫 𝑉 ∖ {∅}))
155, 9, 14feq123d 6585 . . 3 ( = 𝐺 → ((iEdg‘):dom (iEdg‘)⟶(𝒫 (Vtx‘) ∖ {∅}) ↔ 𝐸:dom 𝐸⟶(𝒫 𝑉 ∖ {∅})))
16 fvexd 6783 . . . . 5 (𝑔 = → (Vtx‘𝑔) ∈ V)
17 fveq2 6768 . . . . 5 (𝑔 = → (Vtx‘𝑔) = (Vtx‘))
18 fvexd 6783 . . . . . 6 ((𝑔 = 𝑣 = (Vtx‘)) → (iEdg‘𝑔) ∈ V)
19 fveq2 6768 . . . . . . 7 (𝑔 = → (iEdg‘𝑔) = (iEdg‘))
2019adantr 480 . . . . . 6 ((𝑔 = 𝑣 = (Vtx‘)) → (iEdg‘𝑔) = (iEdg‘))
21 simpr 484 . . . . . . 7 (((𝑔 = 𝑣 = (Vtx‘)) ∧ 𝑒 = (iEdg‘)) → 𝑒 = (iEdg‘))
2221dmeqd 5811 . . . . . . 7 (((𝑔 = 𝑣 = (Vtx‘)) ∧ 𝑒 = (iEdg‘)) → dom 𝑒 = dom (iEdg‘))
23 simpr 484 . . . . . . . . . 10 ((𝑔 = 𝑣 = (Vtx‘)) → 𝑣 = (Vtx‘))
2423pweqd 4557 . . . . . . . . 9 ((𝑔 = 𝑣 = (Vtx‘)) → 𝒫 𝑣 = 𝒫 (Vtx‘))
2524difeq1d 4060 . . . . . . . 8 ((𝑔 = 𝑣 = (Vtx‘)) → (𝒫 𝑣 ∖ {∅}) = (𝒫 (Vtx‘) ∖ {∅}))
2625adantr 480 . . . . . . 7 (((𝑔 = 𝑣 = (Vtx‘)) ∧ 𝑒 = (iEdg‘)) → (𝒫 𝑣 ∖ {∅}) = (𝒫 (Vtx‘) ∖ {∅}))
2721, 22, 26feq123d 6585 . . . . . 6 (((𝑔 = 𝑣 = (Vtx‘)) ∧ 𝑒 = (iEdg‘)) → (𝑒:dom 𝑒⟶(𝒫 𝑣 ∖ {∅}) ↔ (iEdg‘):dom (iEdg‘)⟶(𝒫 (Vtx‘) ∖ {∅})))
2818, 20, 27sbcied2 3766 . . . . 5 ((𝑔 = 𝑣 = (Vtx‘)) → ([(iEdg‘𝑔) / 𝑒]𝑒:dom 𝑒⟶(𝒫 𝑣 ∖ {∅}) ↔ (iEdg‘):dom (iEdg‘)⟶(𝒫 (Vtx‘) ∖ {∅})))
2916, 17, 28sbcied2 3766 . . . 4 (𝑔 = → ([(Vtx‘𝑔) / 𝑣][(iEdg‘𝑔) / 𝑒]𝑒:dom 𝑒⟶(𝒫 𝑣 ∖ {∅}) ↔ (iEdg‘):dom (iEdg‘)⟶(𝒫 (Vtx‘) ∖ {∅})))
3029cbvabv 2812 . . 3 {𝑔[(Vtx‘𝑔) / 𝑣][(iEdg‘𝑔) / 𝑒]𝑒:dom 𝑒⟶(𝒫 𝑣 ∖ {∅})} = { ∣ (iEdg‘):dom (iEdg‘)⟶(𝒫 (Vtx‘) ∖ {∅})}
3115, 30elab2g 3612 . 2 (𝐺𝑈 → (𝐺 ∈ {𝑔[(Vtx‘𝑔) / 𝑣][(iEdg‘𝑔) / 𝑒]𝑒:dom 𝑒⟶(𝒫 𝑣 ∖ {∅})} ↔ 𝐸:dom 𝐸⟶(𝒫 𝑉 ∖ {∅})))
322, 31syl5bb 282 1 (𝐺𝑈 → (𝐺 ∈ UHGraph ↔ 𝐸:dom 𝐸⟶(𝒫 𝑉 ∖ {∅})))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1541  wcel 2109  {cab 2716  Vcvv 3430  [wsbc 3719  cdif 3888  c0 4261  𝒫 cpw 4538  {csn 4566  dom cdm 5588  wf 6426  cfv 6430  Vtxcvtx 27347  iEdgciedg 27348  UHGraphcuhgr 27407
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-ext 2710  ax-nul 5233
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-nf 1790  df-sb 2071  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-ral 3070  df-rex 3071  df-rab 3074  df-v 3432  df-sbc 3720  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-nul 4262  df-if 4465  df-pw 4540  df-sn 4567  df-pr 4569  df-op 4573  df-uni 4845  df-br 5079  df-opab 5141  df-rel 5595  df-cnv 5596  df-co 5597  df-dm 5598  df-rn 5599  df-iota 6388  df-fun 6432  df-fn 6433  df-f 6434  df-fv 6438  df-uhgr 27409
This theorem is referenced by:  uhgrf  27413  uhgreq12g  27416  ushgruhgr  27420  isuhgrop  27421  uhgr0e  27422  uhgr0  27424  uhgrun  27425  uhgrstrrepe  27429  incistruhgr  27430  upgruhgr  27453  subuhgr  27634
  Copyright terms: Public domain W3C validator