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

Theorem cusgredg 30035
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 30034 . 2 (𝐺 ∈ ComplUSGraph ↔ (𝐺 ∈ USGraph ∧ ∀𝑣 ∈ 𝑉 ∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸))
4 usgredgss 29770 . . . . 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 14660 . . . . 5 (𝑝 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ ∃𝑦 ∈ 𝑉 ∃𝑧 ∈ 𝑉 (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧}))
10 sneq 4594 . . . . . . . . . . . . . . 15 (𝑣 = 𝑦 → {𝑣} = {𝑦})
1110difeq2d 4066 . . . . . . . . . . . . . 14 (𝑣 = 𝑦 → (𝑉 ∖ {𝑣}) = (𝑉 ∖ {𝑦}))
12 preq2 4695 . . . . . . . . . . . . . . 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 4748 . . . . . . . . . . . 12 (𝑧 ∈ (𝑉 ∖ {𝑦}) ↔ (𝑧 ∈ 𝑉 ∧ 𝑧 ≠ 𝑦))
2321, 22sylibr 237 . . . . . . . . . . 11 (((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) ∧ (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧})) → 𝑧 ∈ (𝑉 ∖ {𝑦}))
24 preq1 4694 . . . . . . . . . . . . 13 (𝑛 = 𝑧 → {𝑛, 𝑦} = {𝑧, 𝑦})
2524eleq1d 2849 . . . . . . . . . . . 12 (𝑛 = 𝑧 → ({𝑛, 𝑦} ∈ 𝐸 ↔ {𝑧, 𝑦} ∈ 𝐸))
2625rspcv 3576 . . . . . . . . . . 11 (𝑧 ∈ (𝑉 ∖ {𝑦}) → (∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸 → {𝑧, 𝑦} ∈ 𝐸))
2723, 26syl 18 . . . . . . . . . 10 (((𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉) ∧ (𝑦 ≠ 𝑧 ∧ 𝑝 = {𝑦, 𝑧})) → (∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸 → {𝑧, 𝑦} ∈ 𝐸))
28 id 23 . . . . . . . . . . . . . . . 16 (𝑝 = {𝑦, 𝑧} → 𝑝 = {𝑦, 𝑧})
29 prcom 4693 . . . . . . . . . . . . . . . 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 6558  2c2 12424  ♯chash 14501  Vtxcvtx 29604  Edgcedg 29655  USGraphcusgr 29760  ComplUSGraphccusgr 30021
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 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7775  ax-cnex 11283  ax-resscn 11284  ax-1cn 11285  ax-icn 11286  ax-addcl 11287  ax-addrcl 11288  ax-mulcl 11289  ax-mulrcl 11290  ax-mulcom 11291  ax-addass 11292  ax-mulass 11293  ax-distr 11294  ax-i2m1 11295  ax-1ne0 11296  ax-1rid 11297  ax-rnegex 11298  ax-rrecex 11299  ax-cnre 11300  ax-pre-lttri 11301  ax-pre-lttrn 11302  ax-pre-ltadd 11303  ax-pre-mulgt0 11304
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 4839  df-uni 4871  df-int 4911  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-tr 5216  df-id 5550  df-eprel 5555  df-po 5563  df-so 5564  df-fr 5608  df-we 5610  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-pred 6322  df-ord 6383  df-on 6384  df-lim 6385  df-suc 6386  df-iota 6512  df-fun 6560  df-fn 6561  df-f 6562  df-f1 6563  df-fo 6564  df-f1o 6565  df-fv 6566  df-riota 7400  df-ov 7446  df-oprab 7447  df-mpo 7448  df-om 7902  df-1st 8025  df-2nd 8026  df-frecs 8327  df-wrecs 8358  df-recs 8407  df-rdg 8446  df-1o 8504  df-2o 8505  df-oadd 8508  df-er 8745  df-en 9002  df-dom 9003  df-sdom 9004  df-fin 9005  df-dju 10009  df-card 10047  df-pnf 11372  df-mnf 11373  df-xr 11374  df-ltxr 11375  df-le 11376  df-sub 11570  df-neg 11571  df-nn 12363  df-2 12432  df-n0 12634  df-xnn0 12707  df-z 12721  df-uz 12993  df-fz 13667  df-hash 14502  df-edg 29656  df-upgr 29690  df-umgr 29691  df-usgr 29762  df-nbgr 29944  df-uvtx 29997  df-cplgr 30022  df-cusgr 30023
This theorem is used by:  cusgrfilem1  30066
  Copyright terms: Public domain W3C validator