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

Theorem cusgredg 27900
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 27899 . 2 (𝐺 ∈ ComplUSGraph ↔ (𝐺 ∈ USGraph ∧ ∀𝑣𝑉𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸))
4 usgredgss 27638 . . . . 5 (𝐺 ∈ USGraph → (Edg‘𝐺) ⊆ {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2})
51pweqi 4561 . . . . . 6 𝒫 𝑉 = 𝒫 (Vtx‘𝐺)
65rabeqi 3416 . . . . 5 {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} = {𝑥 ∈ 𝒫 (Vtx‘𝐺) ∣ (♯‘𝑥) = 2}
74, 2, 63sstr4g 3976 . . . 4 (𝐺 ∈ USGraph → 𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
87adantr 481 . . 3 ((𝐺 ∈ USGraph ∧ ∀𝑣𝑉𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸) → 𝐸 ⊆ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
9 elss2prb 14273 . . . . 5 (𝑝 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ ∃𝑦𝑉𝑧𝑉 (𝑦𝑧𝑝 = {𝑦, 𝑧}))
10 sneq 4581 . . . . . . . . . . . . . . 15 (𝑣 = 𝑦 → {𝑣} = {𝑦})
1110difeq2d 4068 . . . . . . . . . . . . . 14 (𝑣 = 𝑦 → (𝑉 ∖ {𝑣}) = (𝑉 ∖ {𝑦}))
12 preq2 4680 . . . . . . . . . . . . . . 15 (𝑣 = 𝑦 → {𝑛, 𝑣} = {𝑛, 𝑦})
1312eleq1d 2822 . . . . . . . . . . . . . 14 (𝑣 = 𝑦 → ({𝑛, 𝑣} ∈ 𝐸 ↔ {𝑛, 𝑦} ∈ 𝐸))
1411, 13raleqbidv 3316 . . . . . . . . . . . . 13 (𝑣 = 𝑦 → (∀𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 ↔ ∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸))
1514rspcv 3566 . . . . . . . . . . . 12 (𝑦𝑉 → (∀𝑣𝑉𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → ∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸))
1615adantr 481 . . . . . . . . . . 11 ((𝑦𝑉𝑧𝑉) → (∀𝑣𝑉𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → ∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸))
1716adantr 481 . . . . . . . . . 10 (((𝑦𝑉𝑧𝑉) ∧ (𝑦𝑧𝑝 = {𝑦, 𝑧})) → (∀𝑣𝑉𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → ∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸))
18 simpr 485 . . . . . . . . . . . . 13 ((𝑦𝑉𝑧𝑉) → 𝑧𝑉)
19 necom 2995 . . . . . . . . . . . . . . 15 (𝑦𝑧𝑧𝑦)
2019biimpi 215 . . . . . . . . . . . . . 14 (𝑦𝑧𝑧𝑦)
2120adantr 481 . . . . . . . . . . . . 13 ((𝑦𝑧𝑝 = {𝑦, 𝑧}) → 𝑧𝑦)
2218, 21anim12i 613 . . . . . . . . . . . 12 (((𝑦𝑉𝑧𝑉) ∧ (𝑦𝑧𝑝 = {𝑦, 𝑧})) → (𝑧𝑉𝑧𝑦))
23 eldifsn 4732 . . . . . . . . . . . 12 (𝑧 ∈ (𝑉 ∖ {𝑦}) ↔ (𝑧𝑉𝑧𝑦))
2422, 23sylibr 233 . . . . . . . . . . 11 (((𝑦𝑉𝑧𝑉) ∧ (𝑦𝑧𝑝 = {𝑦, 𝑧})) → 𝑧 ∈ (𝑉 ∖ {𝑦}))
25 preq1 4679 . . . . . . . . . . . . 13 (𝑛 = 𝑧 → {𝑛, 𝑦} = {𝑧, 𝑦})
2625eleq1d 2822 . . . . . . . . . . . 12 (𝑛 = 𝑧 → ({𝑛, 𝑦} ∈ 𝐸 ↔ {𝑧, 𝑦} ∈ 𝐸))
2726rspcv 3566 . . . . . . . . . . 11 (𝑧 ∈ (𝑉 ∖ {𝑦}) → (∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸 → {𝑧, 𝑦} ∈ 𝐸))
2824, 27syl 17 . . . . . . . . . 10 (((𝑦𝑉𝑧𝑉) ∧ (𝑦𝑧𝑝 = {𝑦, 𝑧})) → (∀𝑛 ∈ (𝑉 ∖ {𝑦}){𝑛, 𝑦} ∈ 𝐸 → {𝑧, 𝑦} ∈ 𝐸))
29 id 22 . . . . . . . . . . . . . . . 16 (𝑝 = {𝑦, 𝑧} → 𝑝 = {𝑦, 𝑧})
30 prcom 4678 . . . . . . . . . . . . . . . 16 {𝑦, 𝑧} = {𝑧, 𝑦}
3129, 30eqtr2di 2794 . . . . . . . . . . . . . . 15 (𝑝 = {𝑦, 𝑧} → {𝑧, 𝑦} = 𝑝)
3231eleq1d 2822 . . . . . . . . . . . . . 14 (𝑝 = {𝑦, 𝑧} → ({𝑧, 𝑦} ∈ 𝐸𝑝𝐸))
3332biimpd 228 . . . . . . . . . . . . 13 (𝑝 = {𝑦, 𝑧} → ({𝑧, 𝑦} ∈ 𝐸𝑝𝐸))
3433a1d 25 . . . . . . . . . . . 12 (𝑝 = {𝑦, 𝑧} → (𝐺 ∈ USGraph → ({𝑧, 𝑦} ∈ 𝐸𝑝𝐸)))
3534ad2antll 726 . . . . . . . . . . 11 (((𝑦𝑉𝑧𝑉) ∧ (𝑦𝑧𝑝 = {𝑦, 𝑧})) → (𝐺 ∈ USGraph → ({𝑧, 𝑦} ∈ 𝐸𝑝𝐸)))
3635com23 86 . . . . . . . . . 10 (((𝑦𝑉𝑧𝑉) ∧ (𝑦𝑧𝑝 = {𝑦, 𝑧})) → ({𝑧, 𝑦} ∈ 𝐸 → (𝐺 ∈ USGraph → 𝑝𝐸)))
3717, 28, 363syld 60 . . . . . . . . 9 (((𝑦𝑉𝑧𝑉) ∧ (𝑦𝑧𝑝 = {𝑦, 𝑧})) → (∀𝑣𝑉𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → (𝐺 ∈ USGraph → 𝑝𝐸)))
3837ex 413 . . . . . . . 8 ((𝑦𝑉𝑧𝑉) → ((𝑦𝑧𝑝 = {𝑦, 𝑧}) → (∀𝑣𝑉𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → (𝐺 ∈ USGraph → 𝑝𝐸))))
3938rexlimivv 3193 . . . . . . 7 (∃𝑦𝑉𝑧𝑉 (𝑦𝑧𝑝 = {𝑦, 𝑧}) → (∀𝑣𝑉𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → (𝐺 ∈ USGraph → 𝑝𝐸)))
4039com13 88 . . . . . 6 (𝐺 ∈ USGraph → (∀𝑣𝑉𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸 → (∃𝑦𝑉𝑧𝑉 (𝑦𝑧𝑝 = {𝑦, 𝑧}) → 𝑝𝐸)))
4140imp 407 . . . . 5 ((𝐺 ∈ USGraph ∧ ∀𝑣𝑉𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸) → (∃𝑦𝑉𝑧𝑉 (𝑦𝑧𝑝 = {𝑦, 𝑧}) → 𝑝𝐸))
429, 41biimtrid 241 . . . 4 ((𝐺 ∈ USGraph ∧ ∀𝑣𝑉𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸) → (𝑝 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} → 𝑝𝐸))
4342ssrdv 3937 . . 3 ((𝐺 ∈ USGraph ∧ ∀𝑣𝑉𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸) → {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ⊆ 𝐸)
448, 43eqssd 3948 . 2 ((𝐺 ∈ USGraph ∧ ∀𝑣𝑉𝑛 ∈ (𝑉 ∖ {𝑣}){𝑛, 𝑣} ∈ 𝐸) → 𝐸 = {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
453, 44sylbi 216 1 (𝐺 ∈ ComplUSGraph → 𝐸 = {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396   = wceq 1540  wcel 2105  wne 2941  wral 3062  wrex 3071  {crab 3404  cdif 3894  wss 3897  𝒫 cpw 4545  {csn 4571  {cpr 4573  cfv 6465  2c2 12101  chash 14117  Vtxcvtx 27475  Edgcedg 27526  USGraphcusgr 27628  ComplUSGraphccusgr 27886
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1912  ax-6 1970  ax-7 2010  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2153  ax-12 2170  ax-ext 2708  ax-sep 5238  ax-nul 5245  ax-pow 5303  ax-pr 5367  ax-un 7628  ax-cnex 11000  ax-resscn 11001  ax-1cn 11002  ax-icn 11003  ax-addcl 11004  ax-addrcl 11005  ax-mulcl 11006  ax-mulrcl 11007  ax-mulcom 11008  ax-addass 11009  ax-mulass 11010  ax-distr 11011  ax-i2m1 11012  ax-1ne0 11013  ax-1rid 11014  ax-rnegex 11015  ax-rrecex 11016  ax-cnre 11017  ax-pre-lttri 11018  ax-pre-lttrn 11019  ax-pre-ltadd 11020  ax-pre-mulgt0 11021
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1781  df-nf 1785  df-sb 2067  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2815  df-nfc 2887  df-ne 2942  df-nel 3048  df-ral 3063  df-rex 3072  df-reu 3351  df-rab 3405  df-v 3443  df-sbc 3727  df-csb 3843  df-dif 3900  df-un 3902  df-in 3904  df-ss 3914  df-pss 3916  df-nul 4268  df-if 4472  df-pw 4547  df-sn 4572  df-pr 4574  df-op 4578  df-uni 4851  df-int 4893  df-iun 4939  df-br 5088  df-opab 5150  df-mpt 5171  df-tr 5205  df-id 5507  df-eprel 5513  df-po 5521  df-so 5522  df-fr 5562  df-we 5564  df-xp 5613  df-rel 5614  df-cnv 5615  df-co 5616  df-dm 5617  df-rn 5618  df-res 5619  df-ima 5620  df-pred 6224  df-ord 6291  df-on 6292  df-lim 6293  df-suc 6294  df-iota 6417  df-fun 6467  df-fn 6468  df-f 6469  df-f1 6470  df-fo 6471  df-f1o 6472  df-fv 6473  df-riota 7272  df-ov 7318  df-oprab 7319  df-mpo 7320  df-om 7758  df-1st 7876  df-2nd 7877  df-frecs 8144  df-wrecs 8175  df-recs 8249  df-rdg 8288  df-1o 8344  df-2o 8345  df-oadd 8348  df-er 8546  df-en 8782  df-dom 8783  df-sdom 8784  df-fin 8785  df-dju 9730  df-card 9768  df-pnf 11084  df-mnf 11085  df-xr 11086  df-ltxr 11087  df-le 11088  df-sub 11280  df-neg 11281  df-nn 12047  df-2 12109  df-n0 12307  df-xnn0 12379  df-z 12393  df-uz 12656  df-fz 13313  df-hash 14118  df-edg 27527  df-upgr 27561  df-umgr 27562  df-usgr 27630  df-nbgr 27809  df-uvtx 27862  df-cplgr 27887  df-cusgr 27888
This theorem is referenced by:  cusgrfilem1  27931
  Copyright terms: Public domain W3C validator