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

Theorem cusgredg 30081
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 30080 . 2 (𝐺 ∈ ComplUSGraph ↔ (𝐺 ∈ USGraph ∧ ∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸))
4 usgredgss 29816 . . . . 5 (𝐺 ∈ USGraph → (Edg‘𝐺) ⊆ {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2})
51pweqi 4578 . . . . . 6 𝒫 𝑉 = 𝒫 (Vtx‘𝐺)
65rabeqi 3431 . . . . 5 {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} = {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2}
74, 2, 63sstr4g 3968 . . . 4 (𝐺 ∈ USGraph → 𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
87adantr 486 . . 3 ((𝐺 ∈ USGraph ∧ ∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸) → 𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
9 elss2prb 14684 . . . . 5 (𝑝 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ ∃𝑦 ∈ 𝑉 ∃𝑧 ∈ 𝑉 (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧}))
10 sneq 4596 . . . . . . . . . . . . . . 15 (𝑣 = 𝑦 → {𝑣} = {𝑦})
1110difeq2d 4068 . . . . . . . . . . . . . 14 (𝑣 = 𝑦 → (𝑉 ∖ {𝑣}) = (𝑉 ∖ {𝑦}))
12 preq2 4700 . . . . . . . . . . . . . . 15 (𝑣 = 𝑦 → {𝑛, 𝑣} = {𝑛, 𝑦})
1312eleq1d 2855 . . . . . . . . . . . . . 14 (𝑣 = 𝑦 → ({𝑛, 𝑣} ∈ 𝐸 ↔ {𝑛, 𝑦} ∈ 𝐸))
1411, 13raleqbidv 3341 . . . . . . . . . . . . 13 (𝑣 = 𝑦 → (∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 ↔ ∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸))
1514rspcv 3578 . . . . . . . . . . . 12 (𝑦 ∈ 𝑉 → (∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → ∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸))
1615adantr 486 . . . . . . . . . . 11 ((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) → (∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → ∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸))
1716adantr 486 . . . . . . . . . 10 (((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) ∧ (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧})) → (∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → ∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸))
18 simpr 490 . . . . . . . . . . . . 13 ((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) → 𝑧 ∈ 𝑉)
19 necom 3018 . . . . . . . . . . . . . 14 (𝑦 ≠ 𝑧 ↔ 𝑧 ≠ 𝑦)
2019birani 509 . . . . . . . . . . . . 13 ((𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧}) → 𝑧 ≠ 𝑦)
2118, 20anim12i 625 . . . . . . . . . . . 12 (((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) ∧ (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧})) → (𝑧 ∈ 𝑉 ∧ 𝑧 ≠ 𝑦))
22 eldifsn 4753 . . . . . . . . . . . 12 (𝑧 ∈ (𝑉 ∖ {𝑦}) ↔ (𝑧 ∈ 𝑉 ∧ 𝑧 ≠ 𝑦))
2321, 22sylibr 237 . . . . . . . . . . 11 (((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) ∧ (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧})) → 𝑧 ∈ (𝑉 ∖ {𝑦}))
24 preq1 4699 . . . . . . . . . . . . 13 (𝑛 = 𝑧 → {𝑛, 𝑦} = {𝑧, 𝑦})
2524eleq1d 2855 . . . . . . . . . . . 12 (𝑛 = 𝑧 → ({𝑛, 𝑦} ∈ 𝐸 ↔ {𝑧, 𝑦} ∈ 𝐸))
2625rspcv 3578 . . . . . . . . . . 11 (𝑧 ∈ (𝑉 ∖ {𝑦}) → (∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸 → {𝑧, 𝑦} ∈ 𝐸))
2723, 26syl 18 . . . . . . . . . 10 (((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) ∧ (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧})) → (∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸 → {𝑧, 𝑦} ∈ 𝐸))
28 id 23 . . . . . . . . . . . . . . . 16 (𝑝 = {𝑦, 𝑧} → 𝑝 = {𝑦, 𝑧})
29 prcom 4698 . . . . . . . . . . . . . . . 16 {𝑦, 𝑧} = {𝑧, 𝑦}
3028, 29eqtr2di 2821 . . . . . . . . . . . . . . 15 (𝑝 = {𝑦, 𝑧} → {𝑧, 𝑦} = 𝑝)
3130eleq1d 2855 . . . . . . . . . . . . . 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 3214 . . . . . . 7 (∃𝑦 ∈ 𝑉 ∃𝑧 ∈ 𝑉 (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧}) → (∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → (𝐺 ∈ USGraph → 𝑝 ∈ 𝐸)))
3938com13 89 . . . . . 6 (𝐺 ∈ USGraph → (∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → (∃𝑦 ∈ 𝑉 ∃𝑧 ∈ 𝑉 (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧}) → 𝑝 ∈ 𝐸)))
4039imp 412 . . . . 5 ((𝐺 ∈ USGraph ∧ ∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸) → (∃𝑦 ∈ 𝑉 ∃𝑧 ∈ 𝑉 (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧}) → 𝑝 ∈ 𝐸))
419, 40biimtrid 245 . . . 4 ((𝐺 ∈ USGraph ∧ ∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸) → (𝑝 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} → 𝑝 ∈ 𝐸))
4241ssrdv 3921 . . 3 ((𝐺 ∈ USGraph ∧ ∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸) → {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ⊆ 𝐸)
438, 42eqssd 3932 . 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 1572   ∈ wcel 2151   ≠ wne 2965  ∀wral 3086  ∃wrex 3096  {crab 3418   ⊆ wss 3902   ∖ cdif 4050  𝒫 cpw 4562  {csn 4590  {cpr 4592  ‘cfv 6573  2c2 12447  ♯chash 14525  Vtxcvtx 29650  Edgcedg 29701  USGraphcusgr 29806  ComplUSGraphccusgr 30067
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-sep 5258  ax-nul 5269  ax-pow 5337  ax-pr 5401  ax-un 7793  ax-cnex 11305  ax-resscn 11306  ax-1cn 11307  ax-icn 11308  ax-addcl 11309  ax-addrcl 11310  ax-mulcl 11311  ax-mulrcl 11312  ax-mulcom 11313  ax-addass 11314  ax-mulass 11315  ax-distr 11316  ax-i2m1 11317  ax-1ne0 11318  ax-1rid 11319  ax-rnegex 11320  ax-rrecex 11321  ax-cnre 11322  ax-pre-lttri 11323  ax-pre-lttrn 11324  ax-pre-ltadd 11325  ax-pre-mulgt0 11326
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 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-nel 3072  df-ral 3087  df-rex 3097  df-reu 3372  df-rab 3419  df-v 3458  df-sbc 3745  df-csb 3854  df-ss 3903  df-pss 4019  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-pw 4564  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-int 4916  df-iun 4961  df-br 5112  df-opab 5177  df-mpt 5196  df-tr 5222  df-id 5556  df-eprel 5561  df-po 5569  df-so 5570  df-fr 5614  df-we 5616  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-pred 6337  df-ord 6398  df-on 6399  df-lim 6400  df-suc 6401  df-iota 6527  df-fun 6575  df-fn 6576  df-f 6577  df-f1 6578  df-fo 6579  df-f1o 6580  df-fv 6581  df-riota 7418  df-ov 7464  df-oprab 7465  df-mpo 7466  df-om 7922  df-1st 8045  df-2nd 8046  df-frecs 8347  df-wrecs 8378  df-recs 8427  df-rdg 8466  df-1o 8524  df-2o 8525  df-oadd 8528  df-er 8765  df-en 9022  df-dom 9023  df-sdom 9024  df-fin 9025  df-dju 10029  df-card 10067  df-pnf 11394  df-mnf 11395  df-xr 11396  df-ltxr 11397  df-le 11398  df-sub 11592  df-neg 11593  df-nn 12386  df-2 12455  df-n0 12657  df-xnn0 12730  df-z 12744  df-uz 13016  df-fz 13690  df-hash 14526  df-edg 29702  df-upgr 29736  df-umgr 29737  df-usgr 29808  df-nbgr 29990  df-uvtx 30043  df-cplgr 30068  df-cusgr 30069
This theorem is used by:  cusgrfilem1  30112
  Copyright terms: Public domain W3C validator