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

Theorem subuhgr 27080
Description: A subgraph of a hypergraph is a hypergraph. (Contributed by AV, 16-Nov-2020.) (Proof shortened by AV, 21-Nov-2020.)
Assertion
Ref Expression
subuhgr ((𝐺 ∈ UHGraph ∧ 𝑆 SubGraph 𝐺) → 𝑆 ∈ UHGraph)

Proof of Theorem subuhgr
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 eqid 2801 . . . 4 (Vtx‘𝑆) = (Vtx‘𝑆)
2 eqid 2801 . . . 4 (Vtx‘𝐺) = (Vtx‘𝐺)
3 eqid 2801 . . . 4 (iEdg‘𝑆) = (iEdg‘𝑆)
4 eqid 2801 . . . 4 (iEdg‘𝐺) = (iEdg‘𝐺)
5 eqid 2801 . . . 4 (Edg‘𝑆) = (Edg‘𝑆)
61, 2, 3, 4, 5subgrprop2 27068 . . 3 (𝑆 SubGraph 𝐺 → ((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)))
7 subgruhgrfun 27076 . . . . . . . . 9 ((𝐺 ∈ UHGraph ∧ 𝑆 SubGraph 𝐺) → Fun (iEdg‘𝑆))
87ancoms 462 . . . . . . . 8 ((𝑆 SubGraph 𝐺𝐺 ∈ UHGraph) → Fun (iEdg‘𝑆))
98adantl 485 . . . . . . 7 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ UHGraph)) → Fun (iEdg‘𝑆))
109funfnd 6359 . . . . . 6 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ UHGraph)) → (iEdg‘𝑆) Fn dom (iEdg‘𝑆))
11 simplrr 777 . . . . . . . . 9 (((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ UHGraph)) ∧ 𝑥 ∈ dom (iEdg‘𝑆)) → 𝐺 ∈ UHGraph)
12 simplrl 776 . . . . . . . . 9 (((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ UHGraph)) ∧ 𝑥 ∈ dom (iEdg‘𝑆)) → 𝑆 SubGraph 𝐺)
13 simpr 488 . . . . . . . . 9 (((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ UHGraph)) ∧ 𝑥 ∈ dom (iEdg‘𝑆)) → 𝑥 ∈ dom (iEdg‘𝑆))
141, 3, 11, 12, 13subgruhgredgd 27078 . . . . . . . 8 (((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ UHGraph)) ∧ 𝑥 ∈ dom (iEdg‘𝑆)) → ((iEdg‘𝑆)‘𝑥) ∈ (𝒫 (Vtx‘𝑆) ∖ {∅}))
1514ralrimiva 3152 . . . . . . 7 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ UHGraph)) → ∀𝑥 ∈ dom (iEdg‘𝑆)((iEdg‘𝑆)‘𝑥) ∈ (𝒫 (Vtx‘𝑆) ∖ {∅}))
16 fnfvrnss 6865 . . . . . . 7 (((iEdg‘𝑆) Fn dom (iEdg‘𝑆) ∧ ∀𝑥 ∈ dom (iEdg‘𝑆)((iEdg‘𝑆)‘𝑥) ∈ (𝒫 (Vtx‘𝑆) ∖ {∅})) → ran (iEdg‘𝑆) ⊆ (𝒫 (Vtx‘𝑆) ∖ {∅}))
1710, 15, 16syl2anc 587 . . . . . 6 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ UHGraph)) → ran (iEdg‘𝑆) ⊆ (𝒫 (Vtx‘𝑆) ∖ {∅}))
18 df-f 6332 . . . . . 6 ((iEdg‘𝑆):dom (iEdg‘𝑆)⟶(𝒫 (Vtx‘𝑆) ∖ {∅}) ↔ ((iEdg‘𝑆) Fn dom (iEdg‘𝑆) ∧ ran (iEdg‘𝑆) ⊆ (𝒫 (Vtx‘𝑆) ∖ {∅})))
1910, 17, 18sylanbrc 586 . . . . 5 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ UHGraph)) → (iEdg‘𝑆):dom (iEdg‘𝑆)⟶(𝒫 (Vtx‘𝑆) ∖ {∅}))
20 subgrv 27064 . . . . . . . 8 (𝑆 SubGraph 𝐺 → (𝑆 ∈ V ∧ 𝐺 ∈ V))
211, 3isuhgr 26857 . . . . . . . . 9 (𝑆 ∈ V → (𝑆 ∈ UHGraph ↔ (iEdg‘𝑆):dom (iEdg‘𝑆)⟶(𝒫 (Vtx‘𝑆) ∖ {∅})))
2221adantr 484 . . . . . . . 8 ((𝑆 ∈ V ∧ 𝐺 ∈ V) → (𝑆 ∈ UHGraph ↔ (iEdg‘𝑆):dom (iEdg‘𝑆)⟶(𝒫 (Vtx‘𝑆) ∖ {∅})))
2320, 22syl 17 . . . . . . 7 (𝑆 SubGraph 𝐺 → (𝑆 ∈ UHGraph ↔ (iEdg‘𝑆):dom (iEdg‘𝑆)⟶(𝒫 (Vtx‘𝑆) ∖ {∅})))
2423adantr 484 . . . . . 6 ((𝑆 SubGraph 𝐺𝐺 ∈ UHGraph) → (𝑆 ∈ UHGraph ↔ (iEdg‘𝑆):dom (iEdg‘𝑆)⟶(𝒫 (Vtx‘𝑆) ∖ {∅})))
2524adantl 485 . . . . 5 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ UHGraph)) → (𝑆 ∈ UHGraph ↔ (iEdg‘𝑆):dom (iEdg‘𝑆)⟶(𝒫 (Vtx‘𝑆) ∖ {∅})))
2619, 25mpbird 260 . . . 4 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ UHGraph)) → 𝑆 ∈ UHGraph)
2726ex 416 . . 3 (((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) → ((𝑆 SubGraph 𝐺𝐺 ∈ UHGraph) → 𝑆 ∈ UHGraph))
286, 27syl 17 . 2 (𝑆 SubGraph 𝐺 → ((𝑆 SubGraph 𝐺𝐺 ∈ UHGraph) → 𝑆 ∈ UHGraph))
2928anabsi8 671 1 ((𝐺 ∈ UHGraph ∧ 𝑆 SubGraph 𝐺) → 𝑆 ∈ UHGraph)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  w3a 1084  wcel 2112  wral 3109  Vcvv 3444  cdif 3881  wss 3884  c0 4246  𝒫 cpw 4500  {csn 4528   class class class wbr 5033  dom cdm 5523  ran crn 5524  Fun wfun 6322   Fn wfn 6323  wf 6324  cfv 6328  Vtxcvtx 26793  iEdgciedg 26794  Edgcedg 26844  UHGraphcuhgr 26853   SubGraph csubgr 27061
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2159  ax-12 2176  ax-ext 2773  ax-sep 5170  ax-nul 5177  ax-pow 5234  ax-pr 5298  ax-un 7445
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2601  df-eu 2632  df-clab 2780  df-cleq 2794  df-clel 2873  df-nfc 2941  df-ne 2991  df-ral 3114  df-rex 3115  df-rab 3118  df-v 3446  df-sbc 3724  df-dif 3887  df-un 3889  df-in 3891  df-ss 3901  df-nul 4247  df-if 4429  df-pw 4502  df-sn 4529  df-pr 4531  df-op 4535  df-uni 4804  df-br 5034  df-opab 5096  df-mpt 5114  df-id 5428  df-xp 5529  df-rel 5530  df-cnv 5531  df-co 5532  df-dm 5533  df-rn 5534  df-res 5535  df-iota 6287  df-fun 6330  df-fn 6331  df-f 6332  df-fv 6336  df-edg 26845  df-uhgr 26855  df-subgr 27062
This theorem is referenced by:  uhgrspan  27086
  Copyright terms: Public domain W3C validator