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

Theorem subusgr 26404
Description: A subgraph of a simple graph is a simple graph. (Contributed by AV, 16-Nov-2020.) (Proof shortened by AV, 27-Nov-2020.)
Assertion
Ref Expression
subusgr ((𝐺 ∈ USGraph ∧ 𝑆 SubGraph 𝐺) → 𝑆 ∈ USGraph)

Proof of Theorem subusgr
Dummy variables 𝑥 𝑒 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqid 2771 . . . 4 (Vtx‘𝑆) = (Vtx‘𝑆)
2 eqid 2771 . . . 4 (Vtx‘𝐺) = (Vtx‘𝐺)
3 eqid 2771 . . . 4 (iEdg‘𝑆) = (iEdg‘𝑆)
4 eqid 2771 . . . 4 (iEdg‘𝐺) = (iEdg‘𝐺)
5 eqid 2771 . . . 4 (Edg‘𝑆) = (Edg‘𝑆)
61, 2, 3, 4, 5subgrprop2 26389 . . 3 (𝑆 SubGraph 𝐺 → ((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)))
7 usgruhgr 26300 . . . . . . . . . . 11 (𝐺 ∈ USGraph → 𝐺 ∈ UHGraph)
8 subgruhgrfun 26397 . . . . . . . . . . 11 ((𝐺 ∈ UHGraph ∧ 𝑆 SubGraph 𝐺) → Fun (iEdg‘𝑆))
97, 8sylan 569 . . . . . . . . . 10 ((𝐺 ∈ USGraph ∧ 𝑆 SubGraph 𝐺) → Fun (iEdg‘𝑆))
109ancoms 446 . . . . . . . . 9 ((𝑆 SubGraph 𝐺𝐺 ∈ USGraph) → Fun (iEdg‘𝑆))
11 funfn 6060 . . . . . . . . 9 (Fun (iEdg‘𝑆) ↔ (iEdg‘𝑆) Fn dom (iEdg‘𝑆))
1210, 11sylib 208 . . . . . . . 8 ((𝑆 SubGraph 𝐺𝐺 ∈ USGraph) → (iEdg‘𝑆) Fn dom (iEdg‘𝑆))
1312adantl 467 . . . . . . 7 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ USGraph)) → (iEdg‘𝑆) Fn dom (iEdg‘𝑆))
14 simplrl 762 . . . . . . . . . 10 (((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ USGraph)) ∧ 𝑥 ∈ dom (iEdg‘𝑆)) → 𝑆 SubGraph 𝐺)
15 usgrumgr 26296 . . . . . . . . . . . . 13 (𝐺 ∈ USGraph → 𝐺 ∈ UMGraph)
1615adantl 467 . . . . . . . . . . . 12 ((𝑆 SubGraph 𝐺𝐺 ∈ USGraph) → 𝐺 ∈ UMGraph)
1716adantl 467 . . . . . . . . . . 11 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ USGraph)) → 𝐺 ∈ UMGraph)
1817adantr 466 . . . . . . . . . 10 (((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ USGraph)) ∧ 𝑥 ∈ dom (iEdg‘𝑆)) → 𝐺 ∈ UMGraph)
19 simpr 471 . . . . . . . . . 10 (((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ USGraph)) ∧ 𝑥 ∈ dom (iEdg‘𝑆)) → 𝑥 ∈ dom (iEdg‘𝑆))
201, 3subumgredg2 26400 . . . . . . . . . 10 ((𝑆 SubGraph 𝐺𝐺 ∈ UMGraph ∧ 𝑥 ∈ dom (iEdg‘𝑆)) → ((iEdg‘𝑆)‘𝑥) ∈ {𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2})
2114, 18, 19, 20syl3anc 1476 . . . . . . . . 9 (((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ USGraph)) ∧ 𝑥 ∈ dom (iEdg‘𝑆)) → ((iEdg‘𝑆)‘𝑥) ∈ {𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2})
2221ralrimiva 3115 . . . . . . . 8 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ USGraph)) → ∀𝑥 ∈ dom (iEdg‘𝑆)((iEdg‘𝑆)‘𝑥) ∈ {𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2})
23 fnfvrnss 6535 . . . . . . . 8 (((iEdg‘𝑆) Fn dom (iEdg‘𝑆) ∧ ∀𝑥 ∈ dom (iEdg‘𝑆)((iEdg‘𝑆)‘𝑥) ∈ {𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2}) → ran (iEdg‘𝑆) ⊆ {𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2})
2413, 22, 23syl2anc 573 . . . . . . 7 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ USGraph)) → ran (iEdg‘𝑆) ⊆ {𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2})
25 df-f 6034 . . . . . . 7 ((iEdg‘𝑆):dom (iEdg‘𝑆)⟶{𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2} ↔ ((iEdg‘𝑆) Fn dom (iEdg‘𝑆) ∧ ran (iEdg‘𝑆) ⊆ {𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2}))
2613, 24, 25sylanbrc 572 . . . . . 6 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ USGraph)) → (iEdg‘𝑆):dom (iEdg‘𝑆)⟶{𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2})
27 simp2 1131 . . . . . . . . 9 (((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) → (iEdg‘𝑆) ⊆ (iEdg‘𝐺))
282, 4usgrfs 26274 . . . . . . . . . . 11 (𝐺 ∈ USGraph → (iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑦 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑦) = 2})
29 df-f1 6035 . . . . . . . . . . . 12 ((iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑦 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑦) = 2} ↔ ((iEdg‘𝐺):dom (iEdg‘𝐺)⟶{𝑦 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑦) = 2} ∧ Fun (iEdg‘𝐺)))
30 ffun 6187 . . . . . . . . . . . . 13 ((iEdg‘𝐺):dom (iEdg‘𝐺)⟶{𝑦 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑦) = 2} → Fun (iEdg‘𝐺))
3130anim1i 602 . . . . . . . . . . . 12 (((iEdg‘𝐺):dom (iEdg‘𝐺)⟶{𝑦 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑦) = 2} ∧ Fun (iEdg‘𝐺)) → (Fun (iEdg‘𝐺) ∧ Fun (iEdg‘𝐺)))
3229, 31sylbi 207 . . . . . . . . . . 11 ((iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑦 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑦) = 2} → (Fun (iEdg‘𝐺) ∧ Fun (iEdg‘𝐺)))
3328, 32syl 17 . . . . . . . . . 10 (𝐺 ∈ USGraph → (Fun (iEdg‘𝐺) ∧ Fun (iEdg‘𝐺)))
3433adantl 467 . . . . . . . . 9 ((𝑆 SubGraph 𝐺𝐺 ∈ USGraph) → (Fun (iEdg‘𝐺) ∧ Fun (iEdg‘𝐺)))
3527, 34anim12ci 601 . . . . . . . 8 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ USGraph)) → ((Fun (iEdg‘𝐺) ∧ Fun (iEdg‘𝐺)) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺)))
36 df-3an 1073 . . . . . . . 8 ((Fun (iEdg‘𝐺) ∧ Fun (iEdg‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺)) ↔ ((Fun (iEdg‘𝐺) ∧ Fun (iEdg‘𝐺)) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺)))
3735, 36sylibr 224 . . . . . . 7 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ USGraph)) → (Fun (iEdg‘𝐺) ∧ Fun (iEdg‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺)))
38 f1ssf1 6310 . . . . . . 7 ((Fun (iEdg‘𝐺) ∧ Fun (iEdg‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺)) → Fun (iEdg‘𝑆))
3937, 38syl 17 . . . . . 6 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ USGraph)) → Fun (iEdg‘𝑆))
40 df-f1 6035 . . . . . 6 ((iEdg‘𝑆):dom (iEdg‘𝑆)–1-1→{𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2} ↔ ((iEdg‘𝑆):dom (iEdg‘𝑆)⟶{𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2} ∧ Fun (iEdg‘𝑆)))
4126, 39, 40sylanbrc 572 . . . . 5 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ USGraph)) → (iEdg‘𝑆):dom (iEdg‘𝑆)–1-1→{𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2})
42 subgrv 26385 . . . . . . . 8 (𝑆 SubGraph 𝐺 → (𝑆 ∈ V ∧ 𝐺 ∈ V))
431, 3isusgrs 26273 . . . . . . . . 9 (𝑆 ∈ V → (𝑆 ∈ USGraph ↔ (iEdg‘𝑆):dom (iEdg‘𝑆)–1-1→{𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2}))
4443adantr 466 . . . . . . . 8 ((𝑆 ∈ V ∧ 𝐺 ∈ V) → (𝑆 ∈ USGraph ↔ (iEdg‘𝑆):dom (iEdg‘𝑆)–1-1→{𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2}))
4542, 44syl 17 . . . . . . 7 (𝑆 SubGraph 𝐺 → (𝑆 ∈ USGraph ↔ (iEdg‘𝑆):dom (iEdg‘𝑆)–1-1→{𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2}))
4645adantr 466 . . . . . 6 ((𝑆 SubGraph 𝐺𝐺 ∈ USGraph) → (𝑆 ∈ USGraph ↔ (iEdg‘𝑆):dom (iEdg‘𝑆)–1-1→{𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2}))
4746adantl 467 . . . . 5 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ USGraph)) → (𝑆 ∈ USGraph ↔ (iEdg‘𝑆):dom (iEdg‘𝑆)–1-1→{𝑒 ∈ 𝒫 (Vtx‘𝑆) ∣ (♯‘𝑒) = 2}))
4841, 47mpbird 247 . . . 4 ((((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) ∧ (𝑆 SubGraph 𝐺𝐺 ∈ USGraph)) → 𝑆 ∈ USGraph)
4948ex 397 . . 3 (((Vtx‘𝑆) ⊆ (Vtx‘𝐺) ∧ (iEdg‘𝑆) ⊆ (iEdg‘𝐺) ∧ (Edg‘𝑆) ⊆ 𝒫 (Vtx‘𝑆)) → ((𝑆 SubGraph 𝐺𝐺 ∈ USGraph) → 𝑆 ∈ USGraph))
506, 49syl 17 . 2 (𝑆 SubGraph 𝐺 → ((𝑆 SubGraph 𝐺𝐺 ∈ USGraph) → 𝑆 ∈ USGraph))
5150anabsi8 651 1 ((𝐺 ∈ USGraph ∧ 𝑆 SubGraph 𝐺) → 𝑆 ∈ USGraph)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 382  w3a 1071   = wceq 1631  wcel 2145  wral 3061  {crab 3065  Vcvv 3351  wss 3723  𝒫 cpw 4298   class class class wbr 4787  ccnv 5249  dom cdm 5250  ran crn 5251  Fun wfun 6024   Fn wfn 6025  wf 6026  1-1wf1 6027  cfv 6030  2c2 11276  chash 13321  Vtxcvtx 26095  iEdgciedg 26096  Edgcedg 26160  UHGraphcuhgr 26172  UMGraphcumgr 26197  USGraphcusgr 26266   SubGraph csubgr 26382
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1870  ax-4 1885  ax-5 1991  ax-6 2057  ax-7 2093  ax-8 2147  ax-9 2154  ax-10 2174  ax-11 2190  ax-12 2203  ax-13 2408  ax-ext 2751  ax-sep 4916  ax-nul 4924  ax-pow 4975  ax-pr 5035  ax-un 7100  ax-cnex 10198  ax-resscn 10199  ax-1cn 10200  ax-icn 10201  ax-addcl 10202  ax-addrcl 10203  ax-mulcl 10204  ax-mulrcl 10205  ax-mulcom 10206  ax-addass 10207  ax-mulass 10208  ax-distr 10209  ax-i2m1 10210  ax-1ne0 10211  ax-1rid 10212  ax-rnegex 10213  ax-rrecex 10214  ax-cnre 10215  ax-pre-lttri 10216  ax-pre-lttrn 10217  ax-pre-ltadd 10218  ax-pre-mulgt0 10219
This theorem depends on definitions:  df-bi 197  df-an 383  df-or 837  df-3or 1072  df-3an 1073  df-tru 1634  df-ex 1853  df-nf 1858  df-sb 2050  df-eu 2622  df-mo 2623  df-clab 2758  df-cleq 2764  df-clel 2767  df-nfc 2902  df-ne 2944  df-nel 3047  df-ral 3066  df-rex 3067  df-reu 3068  df-rab 3070  df-v 3353  df-sbc 3588  df-csb 3683  df-dif 3726  df-un 3728  df-in 3730  df-ss 3737  df-pss 3739  df-nul 4064  df-if 4227  df-pw 4300  df-sn 4318  df-pr 4320  df-tp 4322  df-op 4324  df-uni 4576  df-int 4613  df-iun 4657  df-br 4788  df-opab 4848  df-mpt 4865  df-tr 4888  df-id 5158  df-eprel 5163  df-po 5171  df-so 5172  df-fr 5209  df-we 5211  df-xp 5256  df-rel 5257  df-cnv 5258  df-co 5259  df-dm 5260  df-rn 5261  df-res 5262  df-ima 5263  df-pred 5822  df-ord 5868  df-on 5869  df-lim 5870  df-suc 5871  df-iota 5993  df-fun 6032  df-fn 6033  df-f 6034  df-f1 6035  df-fo 6036  df-f1o 6037  df-fv 6038  df-riota 6757  df-ov 6799  df-oprab 6800  df-mpt2 6801  df-om 7217  df-1st 7319  df-2nd 7320  df-wrecs 7563  df-recs 7625  df-rdg 7663  df-1o 7717  df-er 7900  df-en 8114  df-dom 8115  df-sdom 8116  df-fin 8117  df-card 8969  df-pnf 10282  df-mnf 10283  df-xr 10284  df-ltxr 10285  df-le 10286  df-sub 10474  df-neg 10475  df-nn 11227  df-2 11285  df-n0 11500  df-z 11585  df-uz 11894  df-fz 12534  df-hash 13322  df-edg 26161  df-uhgr 26174  df-upgr 26198  df-umgr 26199  df-uspgr 26267  df-usgr 26268  df-subgr 26383
This theorem is referenced by:  usgrspan  26410
  Copyright terms: Public domain W3C validator