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

Theorem cusgredg 30062
Description: In a complete simple graph, the edges are all the pairs of different vertices. (Contributed by Alexander van der Vekens, 12-Jan-2018.) (Revised by AV, 1-Nov-2020.)
Hypotheses
Ref Expression
iscusgrvtx.v 𝑉 = (Vtx‘𝐺)
iscusgredg.v 𝐸 = (Edg‘𝐺)
Assertion
Ref Expression
cusgredg (𝐺 ∈ ComplUSGraph → 𝐸 = {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
Distinct variable groups:   𝑥,𝐺   𝑥,𝑉
Allowed substitution hint:   𝐸(𝑥)

Proof of Theorem cusgredg
Dummy variables 𝑣 𝑛 𝑝 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 iscusgrvtx.v . . 3 𝑉 = (Vtx‘𝐺)
2 iscusgredg.v . . 3 𝐸 = (Edg‘𝐺)
31, 2iscusgredg 30061 . 2 (𝐺 ∈ ComplUSGraph ↔ (𝐺 ∈ USGraph ∧ ∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸))
4 usgredgss 29797 . . . . 5 (𝐺 ∈ USGraph → (Edg‘𝐺) ⊆ {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2})
51pweqi 4576 . . . . . 6 𝒫 𝑉 = 𝒫 (Vtx‘𝐺)
65rabeqi 3429 . . . . 5 {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} = {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2}
74, 2, 63sstr4g 3966 . . . 4 (𝐺 ∈ USGraph → 𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
87adantr 486 . . 3 ((𝐺 ∈ USGraph ∧ ∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸) → 𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
9 elss2prb 14674 . . . . 5 (𝑝 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ ∃𝑦 ∈ 𝑉 ∃𝑧 ∈ 𝑉 (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧}))
10 sneq 4594 . . . . . . . . . . . . . . 15 (𝑣 = 𝑦 → {𝑣} = {𝑦})
1110difeq2d 4066 . . . . . . . . . . . . . 14 (𝑣 = 𝑦 → (𝑉 ∖ {𝑣}) = (𝑉 ∖ {𝑦}))
12 preq2 4697 . . . . . . . . . . . . . . 15 (𝑣 = 𝑦 → {𝑛, 𝑣} = {𝑛, 𝑦})
1312eleq1d 2849 . . . . . . . . . . . . . 14 (𝑣 = 𝑦 → ({𝑛, 𝑣} ∈ 𝐸 ↔ {𝑛, 𝑦} ∈ 𝐸))
1411, 13raleqbidv 3338 . . . . . . . . . . . . 13 (𝑣 = 𝑦 → (∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 ↔ ∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸))
1514rspcv 3576 . . . . . . . . . . . 12 (𝑦 ∈ 𝑉 → (∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → ∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸))
1615adantr 486 . . . . . . . . . . 11 ((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) → (∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → ∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸))
1716adantr 486 . . . . . . . . . 10 (((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) ∧ (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧})) → (∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → ∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸))
18 simpr 490 . . . . . . . . . . . . 13 ((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) → 𝑧 ∈ 𝑉)
19 necom 3012 . . . . . . . . . . . . . 14 (𝑦 ≠ 𝑧 ↔ 𝑧 ≠ 𝑦)
2019birani 509 . . . . . . . . . . . . 13 ((𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧}) → 𝑧 ≠ 𝑦)
2118, 20anim12i 625 . . . . . . . . . . . 12 (((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) ∧ (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧})) → (𝑧 ∈ 𝑉 ∧ 𝑧 ≠ 𝑦))
22 eldifsn 4750 . . . . . . . . . . . 12 (𝑧 ∈ (𝑉 ∖ {𝑦}) ↔ (𝑧 ∈ 𝑉 ∧ 𝑧 ≠ 𝑦))
2321, 22sylibr 237 . . . . . . . . . . 11 (((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) ∧ (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧})) → 𝑧 ∈ (𝑉 ∖ {𝑦}))
24 preq1 4696 . . . . . . . . . . . . 13 (𝑛 = 𝑧 → {𝑛, 𝑦} = {𝑧, 𝑦})
2524eleq1d 2849 . . . . . . . . . . . 12 (𝑛 = 𝑧 → ({𝑛, 𝑦} ∈ 𝐸 ↔ {𝑧, 𝑦} ∈ 𝐸))
2625rspcv 3576 . . . . . . . . . . 11 (𝑧 ∈ (𝑉 ∖ {𝑦}) → (∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸 → {𝑧, 𝑦} ∈ 𝐸))
2723, 26syl 18 . . . . . . . . . 10 (((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) ∧ (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧})) → (∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸 → {𝑧, 𝑦} ∈ 𝐸))
28 id 23 . . . . . . . . . . . . . . . 16 (𝑝 = {𝑦, 𝑧} → 𝑝 = {𝑦, 𝑧})
29 prcom 4695 . . . . . . . . . . . . . . . 16 {𝑦, 𝑧} = {𝑧, 𝑦}
3028, 29eqtr2di 2815 . . . . . . . . . . . . . . 15 (𝑝 = {𝑦, 𝑧} → {𝑧, 𝑦} = 𝑝)
3130eleq1d 2849 . . . . . . . . . . . . . 14 (𝑝 = {𝑦, 𝑧} → ({𝑧, 𝑦} ∈ 𝐸 ↔ 𝑝 ∈ 𝐸))
3231biimpd 232 . . . . . . . . . . . . 13 (𝑝 = {𝑦, 𝑧} → ({𝑧, 𝑦} ∈ 𝐸 → 𝑝 ∈ 𝐸))
3332a1d 26 . . . . . . . . . . . 12 (𝑝 = {𝑦, 𝑧} → (𝐺 ∈ USGraph → ({𝑧, 𝑦} ∈ 𝐸 → 𝑝 ∈ 𝐸)))
3433ad2antll 742 . . . . . . . . . . 11 (((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) ∧ (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧})) → (𝐺 ∈ USGraph → ({𝑧, 𝑦} ∈ 𝐸 → 𝑝 ∈ 𝐸)))
3534com23 87 . . . . . . . . . 10 (((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) ∧ (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧})) → ({𝑧, 𝑦} ∈ 𝐸 → (𝐺 ∈ USGraph → 𝑝 ∈ 𝐸)))
3617, 27, 353syld 61 . . . . . . . . 9 (((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) ∧ (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧})) → (∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → (𝐺 ∈ USGraph → 𝑝 ∈ 𝐸)))
3736ex 418 . . . . . . . 8 ((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) → ((𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧}) → (∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → (𝐺 ∈ USGraph → 𝑝 ∈ 𝐸))))
3837rexlimivv 3208 . . . . . . 7 (∃𝑦 ∈ 𝑉 ∃𝑧 ∈ 𝑉 (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧}) → (∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → (𝐺 ∈ USGraph → 𝑝 ∈ 𝐸)))
3938com13 89 . . . . . 6 (𝐺 ∈ USGraph → (∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → (∃𝑦 ∈ 𝑉 ∃𝑧 ∈ 𝑉 (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧}) → 𝑝 ∈ 𝐸)))
4039imp 412 . . . . 5 ((𝐺 ∈ USGraph ∧ ∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸) → (∃𝑦 ∈ 𝑉 ∃𝑧 ∈ 𝑉 (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧}) → 𝑝 ∈ 𝐸))
419, 40biimtrid 245 . . . 4 ((𝐺 ∈ USGraph ∧ ∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸) → (𝑝 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} → 𝑝 ∈ 𝐸))
4241ssrdv 3919 . . 3 ((𝐺 ∈ USGraph ∧ ∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸) → {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ⊆ 𝐸)
438, 42eqssd 3930 . 2 ((𝐺 ∈ USGraph ∧ ∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸) → 𝐸 = {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
443, 43sylbi 220 1 (𝐺 ∈ ComplUSGraph → 𝐸 = {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2147   ≠ wne 2959  ∀wral 3080  ∃wrex 3090  {crab 3416   ⊆ wss 3900   ∖ cdif 4048  𝒫 cpw 4560  {csn 4588  {cpr 4590  ‘cfv 6566  2c2 12437  ♯chash 14515  Vtxcvtx 29631  Edgcedg 29682  USGraphcusgr 29787  ComplUSGraphccusgr 30048
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5255  ax-nul 5266  ax-pow 5334  ax-pr 5398  ax-un 7783  ax-cnex 11295  ax-resscn 11296  ax-1cn 11297  ax-icn 11298  ax-addcl 11299  ax-addrcl 11300  ax-mulcl 11301  ax-mulrcl 11302  ax-mulcom 11303  ax-addass 11304  ax-mulass 11305  ax-distr 11306  ax-i2m1 11307  ax-1ne0 11308  ax-1rid 11309  ax-rnegex 11310  ax-rrecex 11311  ax-cnre 11312  ax-pre-lttri 11313  ax-pre-lttrn 11314  ax-pre-ltadd 11315  ax-pre-mulgt0 11316
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4841  df-uni 4873  df-int 4913  df-iun 4958  df-br 5109  df-opab 5174  df-mpt 5193  df-tr 5219  df-id 5553  df-eprel 5558  df-po 5566  df-so 5567  df-fr 5611  df-we 5613  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-pred 6330  df-ord 6391  df-on 6392  df-lim 6393  df-suc 6394  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-riota 7408  df-ov 7454  df-oprab 7455  df-mpo 7456  df-om 7912  df-1st 8035  df-2nd 8036  df-frecs 8337  df-wrecs 8368  df-recs 8417  df-rdg 8456  df-1o 8514  df-2o 8515  df-oadd 8518  df-er 8755  df-en 9012  df-dom 9013  df-sdom 9014  df-fin 9015  df-dju 10019  df-card 10057  df-pnf 11384  df-mnf 11385  df-xr 11386  df-ltxr 11387  df-le 11388  df-sub 11582  df-neg 11583  df-nn 12376  df-2 12445  df-n0 12647  df-xnn0 12720  df-z 12734  df-uz 13006  df-fz 13680  df-hash 14516  df-edg 29683  df-upgr 29717  df-umgr 29718  df-usgr 29789  df-nbgr 29971  df-uvtx 30024  df-cplgr 30049  df-cusgr 30050
This theorem is used by:  cusgrfilem1  30093
  Copyright terms: Public domain W3C validator