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

Theorem cusgrexi 30054
Description: An arbitrary set 𝑉 regarded as set of vertices together with the set of pairs of elements of this set regarded as edges is a complete simple graph. (Contributed by Alexander van der Vekens, 12-Jan-2018.) (Revised by AV, 5-Nov-2020.) (Proof shortened by AV, 14-Feb-2022.)
Hypothesis
Ref Expression
usgrexi.p 𝑃 = {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}
Assertion
Ref Expression
cusgrexi (𝑉 ∈ 𝑊 → ⟨𝑉, ( I ↾ 𝑃)⟩ ∈ ComplUSGraph)
Distinct variable groups:   𝑥,𝑉   𝑥,𝑃   𝑥,𝑊

Proof of Theorem cusgrexi
Dummy variables 𝑒 𝑛 𝑣 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 usgrexi.p . . 3 𝑃 = {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}
21usgrexi 30052 . 2 (𝑉 ∈ 𝑊 → ⟨𝑉, ( I ↾ 𝑃)⟩ ∈ USGraph)
31cusgrexilem1 30050 . . . . . . . . 9 (𝑉 ∈ 𝑊 → ( I ↾ 𝑃) ∈ V)
4 opvtxfv 29612 . . . . . . . . . 10 ((𝑉 ∈ 𝑊 ∧ ( I ↾ 𝑃) ∈ V) → (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩) = 𝑉)
54eqcomd 2769 . . . . . . . . 9 ((𝑉 ∈ 𝑊 ∧ ( I ↾ 𝑃) ∈ V) → 𝑉 = (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩))
63, 5mpdan 700 . . . . . . . 8 (𝑉 ∈ 𝑊 → 𝑉 = (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩))
76eleq2d 2850 . . . . . . 7 (𝑉 ∈ 𝑊 → (𝑣 ∈ 𝑉 ↔ 𝑣 ∈ (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩)))
87biimpa 482 . . . . . 6 ((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) → 𝑣 ∈ (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩))
9 eldifi 4070 . . . . . . . . . . . 12 (𝑛 ∈ (𝑉 ∖ {𝑣}) → 𝑛 ∈ 𝑉)
109adantl 487 . . . . . . . . . . 11 (((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) ∧ 𝑛 ∈ (𝑉 ∖ {𝑣})) → 𝑛 ∈ 𝑉)
113, 4mpdan 700 . . . . . . . . . . . . 13 (𝑉 ∈ 𝑊 → (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩) = 𝑉)
1211eleq2d 2850 . . . . . . . . . . . 12 (𝑉 ∈ 𝑊 → (𝑛 ∈ (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩) ↔ 𝑛 ∈ 𝑉))
1312ad2antrr 739 . . . . . . . . . . 11 (((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) ∧ 𝑛 ∈ (𝑉 ∖ {𝑣})) → (𝑛 ∈ (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩) ↔ 𝑛 ∈ 𝑉))
1410, 13mpbird 260 . . . . . . . . . 10 (((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) ∧ 𝑛 ∈ (𝑉 ∖ {𝑣})) → 𝑛 ∈ (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩))
15 simplr 781 . . . . . . . . . . 11 (((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) ∧ 𝑛 ∈ (𝑉 ∖ {𝑣})) → 𝑣 ∈ 𝑉)
1611eleq2d 2850 . . . . . . . . . . . 12 (𝑉 ∈ 𝑊 → (𝑣 ∈ (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩) ↔ 𝑣 ∈ 𝑉))
1716ad2antrr 739 . . . . . . . . . . 11 (((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) ∧ 𝑛 ∈ (𝑉 ∖ {𝑣})) → (𝑣 ∈ (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩) ↔ 𝑣 ∈ 𝑉))
1815, 17mpbird 260 . . . . . . . . . 10 (((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) ∧ 𝑛 ∈ (𝑉 ∖ {𝑣})) → 𝑣 ∈ (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩))
1914, 18jca 521 . . . . . . . . 9 (((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) ∧ 𝑛 ∈ (𝑉 ∖ {𝑣})) → (𝑛 ∈ (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩) ∧ 𝑣 ∈ (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩)))
20 eldifsni 4753 . . . . . . . . . 10 (𝑛 ∈ (𝑉 ∖ {𝑣}) → 𝑛 ≠ 𝑣)
2120adantl 487 . . . . . . . . 9 (((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) ∧ 𝑛 ∈ (𝑉 ∖ {𝑣})) → 𝑛 ≠ 𝑣)
221cusgrexilem2 30053 . . . . . . . . . 10 (((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) ∧ 𝑛 ∈ (𝑉 ∖ {𝑣})) → ∃𝑒 ∈ ran ( I ↾ 𝑃){𝑣, 𝑛} ⊆ 𝑒)
23 edgval 29657 . . . . . . . . . . . . 13 (Edg‘⟨𝑉, ( I ↾ 𝑃)⟩) = ran (iEdg‘⟨𝑉, ( I ↾ 𝑃)⟩)
24 opiedgfv 29615 . . . . . . . . . . . . . . 15 ((𝑉 ∈ 𝑊 ∧ ( I ↾ 𝑃) ∈ V) → (iEdg‘⟨𝑉, ( I ↾ 𝑃)⟩) = ( I ↾ 𝑃))
253, 24mpdan 700 . . . . . . . . . . . . . 14 (𝑉 ∈ 𝑊 → (iEdg‘⟨𝑉, ( I ↾ 𝑃)⟩) = ( I ↾ 𝑃))
2625rneqd 5927 . . . . . . . . . . . . 13 (𝑉 ∈ 𝑊 → ran (iEdg‘⟨𝑉, ( I ↾ 𝑃)⟩) = ran ( I ↾ 𝑃))
2723, 26eqtrid 2810 . . . . . . . . . . . 12 (𝑉 ∈ 𝑊 → (Edg‘⟨𝑉, ( I ↾ 𝑃)⟩) = ran ( I ↾ 𝑃))
2827rexeqdv 3324 . . . . . . . . . . 11 (𝑉 ∈ 𝑊 → (∃𝑒 ∈ (Edg‘⟨𝑉, ( I ↾ 𝑃)⟩){𝑣, 𝑛} ⊆ 𝑒 ↔ ∃𝑒 ∈ ran ( I ↾ 𝑃){𝑣, 𝑛} ⊆ 𝑒))
2928ad2antrr 739 . . . . . . . . . 10 (((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) ∧ 𝑛 ∈ (𝑉 ∖ {𝑣})) → (∃𝑒 ∈ (Edg‘⟨𝑉, ( I ↾ 𝑃)⟩){𝑣, 𝑛} ⊆ 𝑒 ↔ ∃𝑒 ∈ ran ( I ↾ 𝑃){𝑣, 𝑛} ⊆ 𝑒))
3022, 29mpbird 260 . . . . . . . . 9 (((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) ∧ 𝑛 ∈ (𝑉 ∖ {𝑣})) → ∃𝑒 ∈ (Edg‘⟨𝑉, ( I ↾ 𝑃)⟩){𝑣, 𝑛} ⊆ 𝑒)
31 eqid 2763 . . . . . . . . . 10 (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩) = (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩)
32 eqid 2763 . . . . . . . . . 10 (Edg‘⟨𝑉, ( I ↾ 𝑃)⟩) = (Edg‘⟨𝑉, ( I ↾ 𝑃)⟩)
3331, 32nbgrel 29951 . . . . . . . . 9 (𝑛 ∈ (⟨𝑉, ( I ↾ 𝑃)⟩ NeighbVtx 𝑣) ↔ ((𝑛 ∈ (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩) ∧ 𝑣 ∈ (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩)) ∧ 𝑛 ≠ 𝑣 ∧ ∃𝑒 ∈ (Edg‘⟨𝑉, ( I ↾ 𝑃)⟩){𝑣, 𝑛} ⊆ 𝑒))
3419, 21, 30, 33syl3anbrc 1362 . . . . . . . 8 (((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) ∧ 𝑛 ∈ (𝑉 ∖ {𝑣})) → 𝑛 ∈ (⟨𝑉, ( I ↾ 𝑃)⟩ NeighbVtx 𝑣))
3534ralrimiva 3158 . . . . . . 7 ((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) → ∀𝑛 ∈ (𝑉 ∖ {𝑣})𝑛 ∈ (⟨𝑉, ( I ↾ 𝑃)⟩ NeighbVtx 𝑣))
3611adantr 486 . . . . . . . 8 ((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) → (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩) = 𝑉)
3736difeq1d 4065 . . . . . . 7 ((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) → ((Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩) ∖ {𝑣}) = (𝑉 ∖ {𝑣}))
3835, 37raleqtrrdv 3327 . . . . . 6 ((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) → ∀𝑛 ∈ ((Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩) ∖ {𝑣})𝑛 ∈ (⟨𝑉, ( I ↾ 𝑃)⟩ NeighbVtx 𝑣))
3931uvtxel 29999 . . . . . 6 (𝑣 ∈ (UnivVtx‘⟨𝑉, ( I ↾ 𝑃)⟩) ↔ (𝑣 ∈ (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩) ∧ ∀𝑛 ∈ ((Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩) ∖ {𝑣})𝑛 ∈ (⟨𝑉, ( I ↾ 𝑃)⟩ NeighbVtx 𝑣)))
408, 38, 39sylanbrc 595 . . . . 5 ((𝑉 ∈ 𝑊 ∧ 𝑣 ∈ 𝑉) → 𝑣 ∈ (UnivVtx‘⟨𝑉, ( I ↾ 𝑃)⟩))
4140ralrimiva 3158 . . . 4 (𝑉 ∈ 𝑊 → ∀𝑣 ∈ 𝑉 𝑣 ∈ (UnivVtx‘⟨𝑉, ( I ↾ 𝑃)⟩))
4241, 11raleqtrrdv 3327 . . 3 (𝑉 ∈ 𝑊 → ∀𝑣 ∈ (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩)𝑣 ∈ (UnivVtx‘⟨𝑉, ( I ↾ 𝑃)⟩))
43 opex 5436 . . . 4 ⟨𝑉, ( I ↾ 𝑃)⟩ ∈ V
4431iscplgr 30026 . . . 4 (⟨𝑉, ( I ↾ 𝑃)⟩ ∈ V → (⟨𝑉, ( I ↾ 𝑃)⟩ ∈ ComplGraph ↔ ∀𝑣 ∈ (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩)𝑣 ∈ (UnivVtx‘⟨𝑉, ( I ↾ 𝑃)⟩)))
4543, 44mp1i 14 . . 3 (𝑉 ∈ 𝑊 → (⟨𝑉, ( I ↾ 𝑃)⟩ ∈ ComplGraph ↔ ∀𝑣 ∈ (Vtx‘⟨𝑉, ( I ↾ 𝑃)⟩)𝑣 ∈ (UnivVtx‘⟨𝑉, ( I ↾ 𝑃)⟩)))
4642, 45mpbird 260 . 2 (𝑉 ∈ 𝑊 → ⟨𝑉, ( I ↾ 𝑃)⟩ ∈ ComplGraph)
47 iscusgr 30029 . 2 (⟨𝑉, ( I ↾ 𝑃)⟩ ∈ ComplUSGraph ↔ (⟨𝑉, ( I ↾ 𝑃)⟩ ∈ USGraph ∧ ⟨𝑉, ( I ↾ 𝑃)⟩ ∈ ComplGraph))
482, 46, 47sylanbrc 595 1 (𝑉 ∈ 𝑊 → ⟨𝑉, ( I ↾ 𝑃)⟩ ∈ ComplUSGraph)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570   ∈ wcel 2147   ≠ wne 2959  ∀wral 3080  ∃wrex 3090  {crab 3416  Vcvv 3454   ⊆ wss 3900   ∖ cdif 4048  𝒫 cpw 4560  {csn 4588  {cpr 4590  ⟨cop 4838   I cid 5549  ran crn 5656   ↾ cres 5657  ‘cfv 6558  (class class class)co 7443  2c2 12424  ♯chash 14501  Vtxcvtx 29604  iEdgciedg 29605  Edgcedg 29655  USGraphcusgr 29760   NeighbVtx cnbgr 29943  UnivVtxcuvtx 29996  ComplGraphccplgr 30020  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-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-z 12721  df-uz 12993  df-fz 13667  df-hash 14502  df-vtx 29606  df-iedg 29607  df-edg 29656  df-usgr 29762  df-nbgr 29944  df-uvtx 29997  df-cplgr 30022  df-cusgr 30023
This theorem is used by:  cusgrexg  30055
  Copyright terms: Public domain W3C validator