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

Theorem usgruspgrb 27296
Description: A class is a simple graph iff it is a simple pseudograph without loops. (Contributed by AV, 18-Oct-2020.)
Assertion
Ref Expression
usgruspgrb (𝐺 ∈ USGraph ↔ (𝐺 ∈ USPGraph ∧ ∀𝑒 ∈ (Edg‘𝐺)(♯‘𝑒) = 2))
Distinct variable group:   𝑒,𝐺

Proof of Theorem usgruspgrb
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 usgruspgr 27293 . . 3 (𝐺 ∈ USGraph → 𝐺 ∈ USPGraph)
2 edgusgr 27275 . . . . 5 ((𝐺 ∈ USGraph ∧ 𝑒 ∈ (Edg‘𝐺)) → (𝑒 ∈ 𝒫 (Vtx‘𝐺) ∧ (♯‘𝑒) = 2))
32simprd 499 . . . 4 ((𝐺 ∈ USGraph ∧ 𝑒 ∈ (Edg‘𝐺)) → (♯‘𝑒) = 2)
43ralrimiva 3106 . . 3 (𝐺 ∈ USGraph → ∀𝑒 ∈ (Edg‘𝐺)(♯‘𝑒) = 2)
51, 4jca 515 . 2 (𝐺 ∈ USGraph → (𝐺 ∈ USPGraph ∧ ∀𝑒 ∈ (Edg‘𝐺)(♯‘𝑒) = 2))
6 edgval 27164 . . . . . . 7 (Edg‘𝐺) = ran (iEdg‘𝐺)
76a1i 11 . . . . . 6 (𝐺 ∈ USPGraph → (Edg‘𝐺) = ran (iEdg‘𝐺))
87raleqdv 3337 . . . . 5 (𝐺 ∈ USPGraph → (∀𝑒 ∈ (Edg‘𝐺)(♯‘𝑒) = 2 ↔ ∀𝑒 ∈ ran (iEdg‘𝐺)(♯‘𝑒) = 2))
9 eqid 2738 . . . . . . 7 (Vtx‘𝐺) = (Vtx‘𝐺)
10 eqid 2738 . . . . . . 7 (iEdg‘𝐺) = (iEdg‘𝐺)
119, 10uspgrf 27269 . . . . . 6 (𝐺 ∈ USPGraph → (iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2})
12 f1f 6633 . . . . . . . . . 10 ((iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} → (iEdg‘𝐺):dom (iEdg‘𝐺)⟶{𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2})
1312frnd 6571 . . . . . . . . 9 ((iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} → ran (iEdg‘𝐺) ⊆ {𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2})
14 ssel2 3909 . . . . . . . . . . . . . . 15 ((ran (iEdg‘𝐺) ⊆ {𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} ∧ 𝑦 ∈ ran (iEdg‘𝐺)) → 𝑦 ∈ {𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2})
1514expcom 417 . . . . . . . . . . . . . 14 (𝑦 ∈ ran (iEdg‘𝐺) → (ran (iEdg‘𝐺) ⊆ {𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} → 𝑦 ∈ {𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2}))
16 fveqeq2 6744 . . . . . . . . . . . . . . . 16 (𝑒 = 𝑦 → ((♯‘𝑒) = 2 ↔ (♯‘𝑦) = 2))
1716rspcv 3544 . . . . . . . . . . . . . . 15 (𝑦 ∈ ran (iEdg‘𝐺) → (∀𝑒 ∈ ran (iEdg‘𝐺)(♯‘𝑒) = 2 → (♯‘𝑦) = 2))
18 fveq2 6735 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝑦 → (♯‘𝑥) = (♯‘𝑦))
1918breq1d 5077 . . . . . . . . . . . . . . . . 17 (𝑥 = 𝑦 → ((♯‘𝑥) ≤ 2 ↔ (♯‘𝑦) ≤ 2))
2019elrab 3614 . . . . . . . . . . . . . . . 16 (𝑦 ∈ {𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} ↔ (𝑦 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∧ (♯‘𝑦) ≤ 2))
21 eldifi 4055 . . . . . . . . . . . . . . . . . . . 20 (𝑦 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) → 𝑦 ∈ 𝒫 (Vtx‘𝐺))
2221anim1i 618 . . . . . . . . . . . . . . . . . . 19 ((𝑦 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∧ (♯‘𝑦) = 2) → (𝑦 ∈ 𝒫 (Vtx‘𝐺) ∧ (♯‘𝑦) = 2))
23 fveqeq2 6744 . . . . . . . . . . . . . . . . . . . 20 (𝑥 = 𝑦 → ((♯‘𝑥) = 2 ↔ (♯‘𝑦) = 2))
2423elrab 3614 . . . . . . . . . . . . . . . . . . 19 (𝑦 ∈ {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2} ↔ (𝑦 ∈ 𝒫 (Vtx‘𝐺) ∧ (♯‘𝑦) = 2))
2522, 24sylibr 237 . . . . . . . . . . . . . . . . . 18 ((𝑦 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∧ (♯‘𝑦) = 2) → 𝑦 ∈ {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2})
2625ex 416 . . . . . . . . . . . . . . . . 17 (𝑦 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) → ((♯‘𝑦) = 2 → 𝑦 ∈ {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2}))
2726adantr 484 . . . . . . . . . . . . . . . 16 ((𝑦 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∧ (♯‘𝑦) ≤ 2) → ((♯‘𝑦) = 2 → 𝑦 ∈ {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2}))
2820, 27sylbi 220 . . . . . . . . . . . . . . 15 (𝑦 ∈ {𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} → ((♯‘𝑦) = 2 → 𝑦 ∈ {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2}))
2917, 28syl9 77 . . . . . . . . . . . . . 14 (𝑦 ∈ ran (iEdg‘𝐺) → (𝑦 ∈ {𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} → (∀𝑒 ∈ ran (iEdg‘𝐺)(♯‘𝑒) = 2 → 𝑦 ∈ {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2})))
3015, 29syld 47 . . . . . . . . . . . . 13 (𝑦 ∈ ran (iEdg‘𝐺) → (ran (iEdg‘𝐺) ⊆ {𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} → (∀𝑒 ∈ ran (iEdg‘𝐺)(♯‘𝑒) = 2 → 𝑦 ∈ {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2})))
3130com13 88 . . . . . . . . . . . 12 (∀𝑒 ∈ ran (iEdg‘𝐺)(♯‘𝑒) = 2 → (ran (iEdg‘𝐺) ⊆ {𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} → (𝑦 ∈ ran (iEdg‘𝐺) → 𝑦 ∈ {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2})))
3231imp 410 . . . . . . . . . . 11 ((∀𝑒 ∈ ran (iEdg‘𝐺)(♯‘𝑒) = 2 ∧ ran (iEdg‘𝐺) ⊆ {𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2}) → (𝑦 ∈ ran (iEdg‘𝐺) → 𝑦 ∈ {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2}))
3332ssrdv 3921 . . . . . . . . . 10 ((∀𝑒 ∈ ran (iEdg‘𝐺)(♯‘𝑒) = 2 ∧ ran (iEdg‘𝐺) ⊆ {𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2}) → ran (iEdg‘𝐺) ⊆ {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2})
3433ex 416 . . . . . . . . 9 (∀𝑒 ∈ ran (iEdg‘𝐺)(♯‘𝑒) = 2 → (ran (iEdg‘𝐺) ⊆ {𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} → ran (iEdg‘𝐺) ⊆ {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2}))
3513, 34mpan9 510 . . . . . . . 8 (((iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} ∧ ∀𝑒 ∈ ran (iEdg‘𝐺)(♯‘𝑒) = 2) → ran (iEdg‘𝐺) ⊆ {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2})
36 f1ssr 6640 . . . . . . . 8 (((iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} ∧ ran (iEdg‘𝐺) ⊆ {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2}) → (iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2})
3735, 36syldan 594 . . . . . . 7 (((iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} ∧ ∀𝑒 ∈ ran (iEdg‘𝐺)(♯‘𝑒) = 2) → (iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2})
3837ex 416 . . . . . 6 ((iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑥 ∈ (𝒫 (Vtx‘𝐺) ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} → (∀𝑒 ∈ ran (iEdg‘𝐺)(♯‘𝑒) = 2 → (iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2}))
3911, 38syl 17 . . . . 5 (𝐺 ∈ USPGraph → (∀𝑒 ∈ ran (iEdg‘𝐺)(♯‘𝑒) = 2 → (iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2}))
408, 39sylbid 243 . . . 4 (𝐺 ∈ USPGraph → (∀𝑒 ∈ (Edg‘𝐺)(♯‘𝑒) = 2 → (iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2}))
4140imp 410 . . 3 ((𝐺 ∈ USPGraph ∧ ∀𝑒 ∈ (Edg‘𝐺)(♯‘𝑒) = 2) → (iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2})
429, 10isusgrs 27271 . . . 4 (𝐺 ∈ USPGraph → (𝐺 ∈ USGraph ↔ (iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2}))
4342adantr 484 . . 3 ((𝐺 ∈ USPGraph ∧ ∀𝑒 ∈ (Edg‘𝐺)(♯‘𝑒) = 2) → (𝐺 ∈ USGraph ↔ (iEdg‘𝐺):dom (iEdg‘𝐺)–1-1→{𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2}))
4441, 43mpbird 260 . 2 ((𝐺 ∈ USPGraph ∧ ∀𝑒 ∈ (Edg‘𝐺)(♯‘𝑒) = 2) → 𝐺 ∈ USGraph)
455, 44impbii 212 1 (𝐺 ∈ USGraph ↔ (𝐺 ∈ USPGraph ∧ ∀𝑒 ∈ (Edg‘𝐺)(♯‘𝑒) = 2))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1543  wcel 2111  wral 3062  {crab 3066  cdif 3877  wss 3880  c0 4251  𝒫 cpw 4527  {csn 4555   class class class wbr 5067  dom cdm 5565  ran crn 5566  1-1wf1 6394  cfv 6397  cle 10892  2c2 11909  chash 13920  Vtxcvtx 27111  iEdgciedg 27112  Edgcedg 27162  USPGraphcuspgr 27263  USGraphcusgr 27264
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2159  ax-12 2176  ax-ext 2709  ax-sep 5206  ax-nul 5213  ax-pow 5272  ax-pr 5336  ax-un 7541  ax-cnex 10809  ax-resscn 10810  ax-1cn 10811  ax-icn 10812  ax-addcl 10813  ax-addrcl 10814  ax-mulcl 10815  ax-mulrcl 10816  ax-mulcom 10817  ax-addass 10818  ax-mulass 10819  ax-distr 10820  ax-i2m1 10821  ax-1ne0 10822  ax-1rid 10823  ax-rnegex 10824  ax-rrecex 10825  ax-cnre 10826  ax-pre-lttri 10827  ax-pre-lttrn 10828  ax-pre-ltadd 10829  ax-pre-mulgt0 10830
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3or 1090  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2072  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2887  df-ne 2942  df-nel 3048  df-ral 3067  df-rex 3068  df-reu 3069  df-rab 3071  df-v 3422  df-sbc 3709  df-csb 3826  df-dif 3883  df-un 3885  df-in 3887  df-ss 3897  df-pss 3899  df-nul 4252  df-if 4454  df-pw 4529  df-sn 4556  df-pr 4558  df-tp 4560  df-op 4562  df-uni 4834  df-int 4874  df-iun 4920  df-br 5068  df-opab 5130  df-mpt 5150  df-tr 5176  df-id 5469  df-eprel 5474  df-po 5482  df-so 5483  df-fr 5523  df-we 5525  df-xp 5571  df-rel 5572  df-cnv 5573  df-co 5574  df-dm 5575  df-rn 5576  df-res 5577  df-ima 5578  df-pred 6175  df-ord 6233  df-on 6234  df-lim 6235  df-suc 6236  df-iota 6355  df-fun 6399  df-fn 6400  df-f 6401  df-f1 6402  df-fo 6403  df-f1o 6404  df-fv 6405  df-riota 7188  df-ov 7234  df-oprab 7235  df-mpo 7236  df-om 7663  df-1st 7779  df-2nd 7780  df-wrecs 8067  df-recs 8128  df-rdg 8166  df-1o 8222  df-er 8411  df-en 8647  df-dom 8648  df-sdom 8649  df-fin 8650  df-card 9579  df-pnf 10893  df-mnf 10894  df-xr 10895  df-ltxr 10896  df-le 10897  df-sub 11088  df-neg 11089  df-nn 11855  df-2 11917  df-n0 12115  df-z 12201  df-uz 12463  df-fz 13120  df-hash 13921  df-edg 27163  df-uspgr 27265  df-usgr 27266
This theorem is referenced by:  usgr1e  27357
  Copyright terms: Public domain W3C validator