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

Theorem ausgrusgrb 26180
Description: The equivalence of the definitions of a simple graph. (Contributed by Alexander van der Vekens, 28-Aug-2017.) (Revised by AV, 14-Oct-2020.)
Hypothesis
Ref Expression
ausgr.1 𝐺 = {⟨𝑣, 𝑒⟩ ∣ 𝑒 ⊆ {𝑥 ∈ 𝒫 𝑣 ∣ (♯‘𝑥) = 2}}
Assertion
Ref Expression
ausgrusgrb ((𝑉𝑋𝐸𝑌) → (𝑉𝐺𝐸 ↔ ⟨𝑉, ( I ↾ 𝐸)⟩ ∈ USGraph))
Distinct variable groups:   𝑣,𝑒,𝑥,𝐸   𝑒,𝑉,𝑣,𝑥   𝑥,𝑋   𝑥,𝑌
Allowed substitution hints:   𝐺(𝑥,𝑣,𝑒)   𝑋(𝑣,𝑒)   𝑌(𝑣,𝑒)

Proof of Theorem ausgrusgrb
StepHypRef Expression
1 ausgr.1 . . 3 𝐺 = {⟨𝑣, 𝑒⟩ ∣ 𝑒 ⊆ {𝑥 ∈ 𝒫 𝑣 ∣ (♯‘𝑥) = 2}}
21isausgr 26179 . 2 ((𝑉𝑋𝐸𝑌) → (𝑉𝐺𝐸𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}))
3 f1oi 6287 . . . . 5 ( I ↾ 𝐸):𝐸1-1-onto𝐸
4 dff1o5 6259 . . . . . 6 (( I ↾ 𝐸):𝐸1-1-onto𝐸 ↔ (( I ↾ 𝐸):𝐸1-1𝐸 ∧ ran ( I ↾ 𝐸) = 𝐸))
5 f1ss 6219 . . . . . . . . . 10 ((( I ↾ 𝐸):𝐸1-1𝐸𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}) → ( I ↾ 𝐸):𝐸1-1→{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
6 dmresi 5567 . . . . . . . . . . . 12 dom ( I ↾ 𝐸) = 𝐸
76eqcomi 2733 . . . . . . . . . . 11 𝐸 = dom ( I ↾ 𝐸)
8 f1eq2 6210 . . . . . . . . . . 11 (𝐸 = dom ( I ↾ 𝐸) → (( I ↾ 𝐸):𝐸1-1→{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ ( I ↾ 𝐸):dom ( I ↾ 𝐸)–1-1→{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}))
97, 8ax-mp 5 . . . . . . . . . 10 (( I ↾ 𝐸):𝐸1-1→{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ ( I ↾ 𝐸):dom ( I ↾ 𝐸)–1-1→{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
105, 9sylib 208 . . . . . . . . 9 ((( I ↾ 𝐸):𝐸1-1𝐸𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}) → ( I ↾ 𝐸):dom ( I ↾ 𝐸)–1-1→{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
1110ex 449 . . . . . . . 8 (( I ↾ 𝐸):𝐸1-1𝐸 → (𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} → ( I ↾ 𝐸):dom ( I ↾ 𝐸)–1-1→{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}))
1211a1d 25 . . . . . . 7 (( I ↾ 𝐸):𝐸1-1𝐸 → ((𝑉𝑋𝐸𝑌) → (𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} → ( I ↾ 𝐸):dom ( I ↾ 𝐸)–1-1→{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})))
1312adantr 472 . . . . . 6 ((( I ↾ 𝐸):𝐸1-1𝐸 ∧ ran ( I ↾ 𝐸) = 𝐸) → ((𝑉𝑋𝐸𝑌) → (𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} → ( I ↾ 𝐸):dom ( I ↾ 𝐸)–1-1→{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})))
144, 13sylbi 207 . . . . 5 (( I ↾ 𝐸):𝐸1-1-onto𝐸 → ((𝑉𝑋𝐸𝑌) → (𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} → ( I ↾ 𝐸):dom ( I ↾ 𝐸)–1-1→{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})))
153, 14ax-mp 5 . . . 4 ((𝑉𝑋𝐸𝑌) → (𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} → ( I ↾ 𝐸):dom ( I ↾ 𝐸)–1-1→{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}))
16 df-f 6005 . . . . . 6 (( I ↾ 𝐸):dom ( I ↾ 𝐸)⟶{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ (( I ↾ 𝐸) Fn dom ( I ↾ 𝐸) ∧ ran ( I ↾ 𝐸) ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}))
17 rnresi 5589 . . . . . . . . . 10 ran ( I ↾ 𝐸) = 𝐸
1817sseq1i 3735 . . . . . . . . 9 (ran ( I ↾ 𝐸) ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ 𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
1918biimpi 206 . . . . . . . 8 (ran ( I ↾ 𝐸) ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} → 𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
2019a1d 25 . . . . . . 7 (ran ( I ↾ 𝐸) ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} → ((𝑉𝑋𝐸𝑌) → 𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}))
2120adantl 473 . . . . . 6 ((( I ↾ 𝐸) Fn dom ( I ↾ 𝐸) ∧ ran ( I ↾ 𝐸) ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}) → ((𝑉𝑋𝐸𝑌) → 𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}))
2216, 21sylbi 207 . . . . 5 (( I ↾ 𝐸):dom ( I ↾ 𝐸)⟶{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} → ((𝑉𝑋𝐸𝑌) → 𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}))
23 f1f 6214 . . . . 5 (( I ↾ 𝐸):dom ( I ↾ 𝐸)–1-1→{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} → ( I ↾ 𝐸):dom ( I ↾ 𝐸)⟶{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
2422, 23syl11 33 . . . 4 ((𝑉𝑋𝐸𝑌) → (( I ↾ 𝐸):dom ( I ↾ 𝐸)–1-1→{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} → 𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}))
2515, 24impbid 202 . . 3 ((𝑉𝑋𝐸𝑌) → (𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ ( I ↾ 𝐸):dom ( I ↾ 𝐸)–1-1→{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}))
26 resiexg 7219 . . . . 5 (𝐸𝑌 → ( I ↾ 𝐸) ∈ V)
27 opiedgfv 26007 . . . . 5 ((𝑉𝑋 ∧ ( I ↾ 𝐸) ∈ V) → (iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩) = ( I ↾ 𝐸))
2826, 27sylan2 492 . . . 4 ((𝑉𝑋𝐸𝑌) → (iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩) = ( I ↾ 𝐸))
2928dmeqd 5433 . . . 4 ((𝑉𝑋𝐸𝑌) → dom (iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩) = dom ( I ↾ 𝐸))
30 opvtxfv 26004 . . . . . . 7 ((𝑉𝑋 ∧ ( I ↾ 𝐸) ∈ V) → (Vtx‘⟨𝑉, ( I ↾ 𝐸)⟩) = 𝑉)
3126, 30sylan2 492 . . . . . 6 ((𝑉𝑋𝐸𝑌) → (Vtx‘⟨𝑉, ( I ↾ 𝐸)⟩) = 𝑉)
3231pweqd 4271 . . . . 5 ((𝑉𝑋𝐸𝑌) → 𝒫 (Vtx‘⟨𝑉, ( I ↾ 𝐸)⟩) = 𝒫 𝑉)
3332rabeqdv 3298 . . . 4 ((𝑉𝑋𝐸𝑌) → {𝑥 ∈ 𝒫 (Vtx‘⟨𝑉, ( I ↾ 𝐸)⟩) ∣ (♯‘𝑥) = 2} = {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
3428, 29, 33f1eq123d 6244 . . 3 ((𝑉𝑋𝐸𝑌) → ((iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩):dom (iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩)–1-1→{𝑥 ∈ 𝒫 (Vtx‘⟨𝑉, ( I ↾ 𝐸)⟩) ∣ (♯‘𝑥) = 2} ↔ ( I ↾ 𝐸):dom ( I ↾ 𝐸)–1-1→{𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}))
3525, 34bitr4d 271 . 2 ((𝑉𝑋𝐸𝑌) → (𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ (iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩):dom (iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩)–1-1→{𝑥 ∈ 𝒫 (Vtx‘⟨𝑉, ( I ↾ 𝐸)⟩) ∣ (♯‘𝑥) = 2}))
36 opex 5037 . . . . 5 𝑉, ( I ↾ 𝐸)⟩ ∈ V
37 eqid 2724 . . . . . 6 (Vtx‘⟨𝑉, ( I ↾ 𝐸)⟩) = (Vtx‘⟨𝑉, ( I ↾ 𝐸)⟩)
38 eqid 2724 . . . . . 6 (iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩) = (iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩)
3937, 38isusgrs 26171 . . . . 5 (⟨𝑉, ( I ↾ 𝐸)⟩ ∈ V → (⟨𝑉, ( I ↾ 𝐸)⟩ ∈ USGraph ↔ (iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩):dom (iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩)–1-1→{𝑥 ∈ 𝒫 (Vtx‘⟨𝑉, ( I ↾ 𝐸)⟩) ∣ (♯‘𝑥) = 2}))
4036, 39ax-mp 5 . . . 4 (⟨𝑉, ( I ↾ 𝐸)⟩ ∈ USGraph ↔ (iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩):dom (iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩)–1-1→{𝑥 ∈ 𝒫 (Vtx‘⟨𝑉, ( I ↾ 𝐸)⟩) ∣ (♯‘𝑥) = 2})
4140bicomi 214 . . 3 ((iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩):dom (iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩)–1-1→{𝑥 ∈ 𝒫 (Vtx‘⟨𝑉, ( I ↾ 𝐸)⟩) ∣ (♯‘𝑥) = 2} ↔ ⟨𝑉, ( I ↾ 𝐸)⟩ ∈ USGraph)
4241a1i 11 . 2 ((𝑉𝑋𝐸𝑌) → ((iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩):dom (iEdg‘⟨𝑉, ( I ↾ 𝐸)⟩)–1-1→{𝑥 ∈ 𝒫 (Vtx‘⟨𝑉, ( I ↾ 𝐸)⟩) ∣ (♯‘𝑥) = 2} ↔ ⟨𝑉, ( I ↾ 𝐸)⟩ ∈ USGraph))
432, 35, 423bitrd 294 1 ((𝑉𝑋𝐸𝑌) → (𝑉𝐺𝐸 ↔ ⟨𝑉, ( I ↾ 𝐸)⟩ ∈ USGraph))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 383   = wceq 1596  wcel 2103  {crab 3018  Vcvv 3304  wss 3680  𝒫 cpw 4266  cop 4291   class class class wbr 4760  {copab 4820   I cid 5127  dom cdm 5218  ran crn 5219  cres 5220   Fn wfn 5996  wf 5997  1-1wf1 5998  1-1-ontowf1o 6000  cfv 6001  2c2 11183  chash 13232  Vtxcvtx 25994  iEdgciedg 25995  USGraphcusgr 26164
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1835  ax-4 1850  ax-5 1952  ax-6 2018  ax-7 2054  ax-8 2105  ax-9 2112  ax-10 2132  ax-11 2147  ax-12 2160  ax-13 2355  ax-ext 2704  ax-sep 4889  ax-nul 4897  ax-pow 4948  ax-pr 5011  ax-un 7066  ax-cnex 10105  ax-resscn 10106  ax-1cn 10107  ax-icn 10108  ax-addcl 10109  ax-addrcl 10110  ax-mulcl 10111  ax-mulrcl 10112  ax-mulcom 10113  ax-addass 10114  ax-mulass 10115  ax-distr 10116  ax-i2m1 10117  ax-1ne0 10118  ax-1rid 10119  ax-rnegex 10120  ax-rrecex 10121  ax-cnre 10122  ax-pre-lttri 10123  ax-pre-lttrn 10124  ax-pre-ltadd 10125  ax-pre-mulgt0 10126
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1073  df-3an 1074  df-tru 1599  df-ex 1818  df-nf 1823  df-sb 2011  df-eu 2575  df-mo 2576  df-clab 2711  df-cleq 2717  df-clel 2720  df-nfc 2855  df-ne 2897  df-nel 3000  df-ral 3019  df-rex 3020  df-reu 3021  df-rab 3023  df-v 3306  df-sbc 3542  df-csb 3640  df-dif 3683  df-un 3685  df-in 3687  df-ss 3694  df-pss 3696  df-nul 4024  df-if 4195  df-pw 4268  df-sn 4286  df-pr 4288  df-tp 4290  df-op 4292  df-uni 4545  df-int 4584  df-iun 4630  df-br 4761  df-opab 4821  df-mpt 4838  df-tr 4861  df-id 5128  df-eprel 5133  df-po 5139  df-so 5140  df-fr 5177  df-we 5179  df-xp 5224  df-rel 5225  df-cnv 5226  df-co 5227  df-dm 5228  df-rn 5229  df-res 5230  df-ima 5231  df-pred 5793  df-ord 5839  df-on 5840  df-lim 5841  df-suc 5842  df-iota 5964  df-fun 6003  df-fn 6004  df-f 6005  df-f1 6006  df-fo 6007  df-f1o 6008  df-fv 6009  df-riota 6726  df-ov 6768  df-oprab 6769  df-mpt2 6770  df-om 7183  df-1st 7285  df-2nd 7286  df-wrecs 7527  df-recs 7588  df-rdg 7626  df-1o 7680  df-er 7862  df-en 8073  df-dom 8074  df-sdom 8075  df-fin 8076  df-card 8878  df-pnf 10189  df-mnf 10190  df-xr 10191  df-ltxr 10192  df-le 10193  df-sub 10381  df-neg 10382  df-nn 11134  df-2 11192  df-n0 11406  df-z 11491  df-uz 11801  df-fz 12441  df-hash 13233  df-vtx 25996  df-iedg 25997  df-usgr 26166
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator