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

Theorem usgredgsscusgredg 30185
Description: A simple graph is a subgraph of a complete simple graph. (Contributed by Alexander van der Vekens, 11-Jan-2018.) (Revised by AV, 13-Nov-2020.)
Hypotheses
Ref Expression
fusgrmaxsize.v 𝑉 = (Vtx‘𝐺)
fusgrmaxsize.e 𝐸 = (Edg‘𝐺)
usgrsscusgra.h 𝑉 = (Vtx‘𝐻)
usgrsscusgra.f 𝐹 = (Edg‘𝐻)
Assertion
Ref Expression
usgredgsscusgredg ((𝐺 ∈ USGraph ∧ 𝐻 ∈ ComplUSGraph) → 𝐸 ⊆ 𝐹)

Proof of Theorem usgredgsscusgredg
Dummy variables 𝑒 𝑎 𝑏 𝑘 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fusgrmaxsize.v . . . . 5 𝑉 = (Vtx‘𝐺)
2 fusgrmaxsize.e . . . . 5 𝐸 = (Edg‘𝐺)
31, 2usgredg 29925 . . . 4 ((𝐺 ∈ USGraph ∧ 𝑒 ∈ 𝐸) → ∃𝑎 ∈ 𝑉 ∃𝑏 ∈ 𝑉 (𝑎 ≠ 𝑏 ∧ 𝑒 = {𝑎, 𝑏}))
4 usgrsscusgra.h . . . . . . . 8 𝑉 = (Vtx‘𝐻)
5 usgrsscusgra.f . . . . . . . 8 𝐹 = (Edg‘𝐻)
64, 5iscusgredg 30149 . . . . . . 7 (𝐻 ∈ ComplUSGraph ↔ (𝐻 ∈ USGraph ∧ ∀𝑘 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑘}){𝑛, 𝑘} ∈ 𝐹))
7 sneq 4601 . . . . . . . . . . . . 13 (𝑘 = 𝑎 → {𝑘} = {𝑎})
87difeq2d 4073 . . . . . . . . . . . 12 (𝑘 = 𝑎 → (𝑉 ∖ {𝑘}) = (𝑉 ∖ {𝑎}))
9 preq2 4705 . . . . . . . . . . . . 13 (𝑘 = 𝑎 → {𝑛, 𝑘} = {𝑛, 𝑎})
109eleq1d 2860 . . . . . . . . . . . 12 (𝑘 = 𝑎 → ({𝑛, 𝑘} ∈ 𝐹 ↔ {𝑛, 𝑎} ∈ 𝐹))
118, 10raleqbidv 3346 . . . . . . . . . . 11 (𝑘 = 𝑎 → (∀𝑛 ∈ (𝑉 ∖ {𝑘}){𝑛, 𝑘} ∈ 𝐹 ↔ ∀𝑛 ∈ (𝑉 ∖ {𝑎}){𝑛, 𝑎} ∈ 𝐹))
1211rspcv 3583 . . . . . . . . . 10 (𝑎 ∈ 𝑉 → (∀𝑘 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑘}){𝑛, 𝑘} ∈ 𝐹 → ∀𝑛 ∈ (𝑉 ∖ {𝑎}){𝑛, 𝑎} ∈ 𝐹))
13 simpl 488 . . . . . . . . . . . . . . 15 ((𝑎 ≠ 𝑏 ∧ 𝑒 = {𝑎, 𝑏}) → 𝑎 ≠ 𝑏)
1413necomd 3025 . . . . . . . . . . . . . 14 ((𝑎 ≠ 𝑏 ∧ 𝑒 = {𝑎, 𝑏}) → 𝑏 ≠ 𝑎)
1514anim2i 629 . . . . . . . . . . . . 13 ((𝑏 ∈ 𝑉 ∧ (𝑎 ≠ 𝑏 ∧ 𝑒 = {𝑎, 𝑏})) → (𝑏 ∈ 𝑉 ∧ 𝑏 ≠ 𝑎))
16 eldifsn 4758 . . . . . . . . . . . . 13 (𝑏 ∈ (𝑉 ∖ {𝑎}) ↔ (𝑏 ∈ 𝑉 ∧ 𝑏 ≠ 𝑎))
1715, 16sylibr 237 . . . . . . . . . . . 12 ((𝑏 ∈ 𝑉 ∧ (𝑎 ≠ 𝑏 ∧ 𝑒 = {𝑎, 𝑏})) → 𝑏 ∈ (𝑉 ∖ {𝑎}))
18 preq1 4704 . . . . . . . . . . . . . 14 (𝑛 = 𝑏 → {𝑛, 𝑎} = {𝑏, 𝑎})
1918eleq1d 2860 . . . . . . . . . . . . 13 (𝑛 = 𝑏 → ({𝑛, 𝑎} ∈ 𝐹 ↔ {𝑏, 𝑎} ∈ 𝐹))
2019rspcv 3583 . . . . . . . . . . . 12 (𝑏 ∈ (𝑉 ∖ {𝑎}) → (∀𝑛 ∈ (𝑉 ∖ {𝑎}){𝑛, 𝑎} ∈ 𝐹 → {𝑏, 𝑎} ∈ 𝐹))
2117, 20syl 18 . . . . . . . . . . 11 ((𝑏 ∈ 𝑉 ∧ (𝑎 ≠ 𝑏 ∧ 𝑒 = {𝑎, 𝑏})) → (∀𝑛 ∈ (𝑉 ∖ {𝑎}){𝑛, 𝑎} ∈ 𝐹 → {𝑏, 𝑎} ∈ 𝐹))
22 prcom 4703 . . . . . . . . . . . . . . . 16 {𝑎, 𝑏} = {𝑏, 𝑎}
2322eqeq2i 2787 . . . . . . . . . . . . . . 15 (𝑒 = {𝑎, 𝑏} ↔ 𝑒 = {𝑏, 𝑎})
24 eqcom 2781 . . . . . . . . . . . . . . 15 (𝑒 = {𝑏, 𝑎} ↔ {𝑏, 𝑎} = 𝑒)
2523, 24sylbb 222 . . . . . . . . . . . . . 14 (𝑒 = {𝑎, 𝑏} → {𝑏, 𝑎} = 𝑒)
2625eleq1d 2860 . . . . . . . . . . . . 13 (𝑒 = {𝑎, 𝑏} → ({𝑏, 𝑎} ∈ 𝐹 ↔ 𝑒 ∈ 𝐹))
2726biimpd 232 . . . . . . . . . . . 12 (𝑒 = {𝑎, 𝑏} → ({𝑏, 𝑎} ∈ 𝐹 → 𝑒 ∈ 𝐹))
2827ad2antll 742 . . . . . . . . . . 11 ((𝑏 ∈ 𝑉 ∧ (𝑎 ≠ 𝑏 ∧ 𝑒 = {𝑎, 𝑏})) → ({𝑏, 𝑎} ∈ 𝐹 → 𝑒 ∈ 𝐹))
2921, 28syld 48 . . . . . . . . . 10 ((𝑏 ∈ 𝑉 ∧ (𝑎 ≠ 𝑏 ∧ 𝑒 = {𝑎, 𝑏})) → (∀𝑛 ∈ (𝑉 ∖ {𝑎}){𝑛, 𝑎} ∈ 𝐹 → 𝑒 ∈ 𝐹))
3012, 29syl9 78 . . . . . . . . 9 (𝑎 ∈ 𝑉 → ((𝑏 ∈ 𝑉 ∧ (𝑎 ≠ 𝑏 ∧ 𝑒 = {𝑎, 𝑏})) → (∀𝑘 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑘}){𝑛, 𝑘} ∈ 𝐹 → 𝑒 ∈ 𝐹)))
3130impl 461 . . . . . . . 8 (((𝑎 ∈ 𝑉 ∧ 𝑏 ∈ 𝑉) ∧ (𝑎 ≠ 𝑏 ∧ 𝑒 = {𝑎, 𝑏})) → (∀𝑘 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑘}){𝑛, 𝑘} ∈ 𝐹 → 𝑒 ∈ 𝐹))
3231adantld 496 . . . . . . 7 (((𝑎 ∈ 𝑉 ∧ 𝑏 ∈ 𝑉) ∧ (𝑎 ≠ 𝑏 ∧ 𝑒 = {𝑎, 𝑏})) → ((𝐻 ∈ USGraph ∧ ∀𝑘 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑘}){𝑛, 𝑘} ∈ 𝐹) → 𝑒 ∈ 𝐹))
336, 32biimtrid 245 . . . . . 6 (((𝑎 ∈ 𝑉 ∧ 𝑏 ∈ 𝑉) ∧ (𝑎 ≠ 𝑏 ∧ 𝑒 = {𝑎, 𝑏})) → (𝐻 ∈ ComplUSGraph → 𝑒 ∈ 𝐹))
3433ex 418 . . . . 5 ((𝑎 ∈ 𝑉 ∧ 𝑏 ∈ 𝑉) → ((𝑎 ≠ 𝑏 ∧ 𝑒 = {𝑎, 𝑏}) → (𝐻 ∈ ComplUSGraph → 𝑒 ∈ 𝐹)))
3534rexlimivv 3219 . . . 4 (∃𝑎 ∈ 𝑉 ∃𝑏 ∈ 𝑉 (𝑎 ≠ 𝑏 ∧ 𝑒 = {𝑎, 𝑏}) → (𝐻 ∈ ComplUSGraph → 𝑒 ∈ 𝐹))
363, 35syl 18 . . 3 ((𝐺 ∈ USGraph ∧ 𝑒 ∈ 𝐸) → (𝐻 ∈ ComplUSGraph → 𝑒 ∈ 𝐹))
3736impancom 457 . 2 ((𝐺 ∈ USGraph ∧ 𝐻 ∈ ComplUSGraph) → (𝑒 ∈ 𝐸 → 𝑒 ∈ 𝐹))
3837ssrdv 3926 1 ((𝐺 ∈ USGraph ∧ 𝐻 ∈ ComplUSGraph) → 𝐸 ⊆ 𝐹)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1572   ∈ wcel 2156   ≠ wne 2970  ∀wral 3091  ∃wrex 3101   ⊆ wss 3907   ∖ cdif 4055  {csn 4595  {cpr 4597  ‘cfv 6578  Vtxcvtx 29719  Edgcedg 29770  USGraphcusgr 29875  ComplUSGraphccusgr 30136
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-sep 5263  ax-nul 5274  ax-pow 5342  ax-pr 5406  ax-un 7799  ax-cnex 11311  ax-resscn 11312  ax-1cn 11313  ax-icn 11314  ax-addcl 11315  ax-addrcl 11316  ax-mulcl 11317  ax-mulrcl 11318  ax-mulcom 11319  ax-addass 11320  ax-mulass 11321  ax-distr 11322  ax-i2m1 11323  ax-1ne0 11324  ax-1rid 11325  ax-rnegex 11326  ax-rrecex 11327  ax-cnre 11328  ax-pre-lttri 11329  ax-pre-lttrn 11330  ax-pre-ltadd 11331  ax-pre-mulgt0 11332
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-nel 3077  df-ral 3092  df-rex 3102  df-reu 3377  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-pss 4024  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-pw 4569  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-int 4921  df-iun 4966  df-br 5117  df-opab 5182  df-mpt 5201  df-tr 5227  df-id 5561  df-eprel 5566  df-po 5574  df-so 5575  df-fr 5619  df-we 5621  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-pred 6342  df-ord 6403  df-on 6404  df-lim 6405  df-suc 6406  df-iota 6532  df-fun 6580  df-fn 6581  df-f 6582  df-f1 6583  df-fo 6584  df-f1o 6585  df-fv 6586  df-riota 7423  df-ov 7470  df-oprab 7471  df-mpo 7472  df-om 7928  df-1st 8051  df-2nd 8052  df-frecs 8353  df-wrecs 8384  df-recs 8433  df-rdg 8472  df-1o 8530  df-2o 8531  df-oadd 8534  df-er 8771  df-en 9028  df-dom 9029  df-sdom 9030  df-fin 9031  df-dju 10035  df-card 10073  df-pnf 11400  df-mnf 11401  df-xr 11402  df-ltxr 11403  df-le 11404  df-sub 11598  df-neg 11599  df-nn 12392  df-2 12461  df-n0 12663  df-xnn0 12736  df-z 12750  df-uz 13022  df-fz 13696  df-hash 14534  df-edg 29771  df-upgr 29805  df-umgr 29806  df-usgr 29877  df-nbgr 30059  df-uvtx 30112  df-cplgr 30137  df-cusgr 30138
This theorem is used by:  usgrsscusgr  30186  sizusglecusglem1  30187
  Copyright terms: Public domain W3C validator