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

Theorem structtocusgr 29315
Description: Any (extensible) structure with a base set can be made a complete simple graph with the set of pairs of elements of the base set regarded as edges. (Contributed by AV, 10-Nov-2021.) (Revised by AV, 17-Nov-2021.) (Proof shortened by AV, 14-Feb-2022.)
Hypotheses
Ref Expression
structtousgr.p 𝑃 = {π‘₯ ∈ 𝒫 (Baseβ€˜π‘†) ∣ (β™―β€˜π‘₯) = 2}
structtousgr.s (πœ‘ β†’ 𝑆 Struct 𝑋)
structtousgr.g 𝐺 = (𝑆 sSet ⟨(.efβ€˜ndx), ( I β†Ύ 𝑃)⟩)
structtousgr.b (πœ‘ β†’ (Baseβ€˜ndx) ∈ dom 𝑆)
Assertion
Ref Expression
structtocusgr (πœ‘ β†’ 𝐺 ∈ ComplUSGraph)
Distinct variable groups:   π‘₯,𝐺   π‘₯,𝑃   π‘₯,𝑆   πœ‘,π‘₯
Allowed substitution hint:   𝑋(π‘₯)

Proof of Theorem structtocusgr
Dummy variables 𝑒 𝑛 𝑣 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 structtousgr.p . . 3 𝑃 = {π‘₯ ∈ 𝒫 (Baseβ€˜π‘†) ∣ (β™―β€˜π‘₯) = 2}
2 structtousgr.s . . 3 (πœ‘ β†’ 𝑆 Struct 𝑋)
3 structtousgr.g . . 3 𝐺 = (𝑆 sSet ⟨(.efβ€˜ndx), ( I β†Ύ 𝑃)⟩)
4 structtousgr.b . . 3 (πœ‘ β†’ (Baseβ€˜ndx) ∈ dom 𝑆)
51, 2, 3, 4structtousgr 29314 . 2 (πœ‘ β†’ 𝐺 ∈ USGraph)
6 simpr 483 . . . . 5 ((πœ‘ ∧ 𝑣 ∈ (Vtxβ€˜πΊ)) β†’ 𝑣 ∈ (Vtxβ€˜πΊ))
7 eldifi 4124 . . . . . . . 8 (𝑛 ∈ ((Vtxβ€˜πΊ) βˆ– {𝑣}) β†’ 𝑛 ∈ (Vtxβ€˜πΊ))
86, 7anim12ci 612 . . . . . . 7 (((πœ‘ ∧ 𝑣 ∈ (Vtxβ€˜πΊ)) ∧ 𝑛 ∈ ((Vtxβ€˜πΊ) βˆ– {𝑣})) β†’ (𝑛 ∈ (Vtxβ€˜πΊ) ∧ 𝑣 ∈ (Vtxβ€˜πΊ)))
9 eldifsni 4794 . . . . . . . 8 (𝑛 ∈ ((Vtxβ€˜πΊ) βˆ– {𝑣}) β†’ 𝑛 β‰  𝑣)
109adantl 480 . . . . . . 7 (((πœ‘ ∧ 𝑣 ∈ (Vtxβ€˜πΊ)) ∧ 𝑛 ∈ ((Vtxβ€˜πΊ) βˆ– {𝑣})) β†’ 𝑛 β‰  𝑣)
11 fvexd 6909 . . . . . . . . 9 (((πœ‘ ∧ 𝑣 ∈ (Vtxβ€˜πΊ)) ∧ 𝑛 ∈ ((Vtxβ€˜πΊ) βˆ– {𝑣})) β†’ (Baseβ€˜π‘†) ∈ V)
123fveq2i 6897 . . . . . . . . . . . . 13 (Vtxβ€˜πΊ) = (Vtxβ€˜(𝑆 sSet ⟨(.efβ€˜ndx), ( I β†Ύ 𝑃)⟩))
13 eqid 2725 . . . . . . . . . . . . . 14 (.efβ€˜ndx) = (.efβ€˜ndx)
14 fvex 6907 . . . . . . . . . . . . . . 15 (Baseβ€˜π‘†) ∈ V
151cusgrexilem1 29308 . . . . . . . . . . . . . . 15 ((Baseβ€˜π‘†) ∈ V β†’ ( I β†Ύ 𝑃) ∈ V)
1614, 15mp1i 13 . . . . . . . . . . . . . 14 (πœ‘ β†’ ( I β†Ύ 𝑃) ∈ V)
1713, 2, 4, 16setsvtx 28904 . . . . . . . . . . . . 13 (πœ‘ β†’ (Vtxβ€˜(𝑆 sSet ⟨(.efβ€˜ndx), ( I β†Ύ 𝑃)⟩)) = (Baseβ€˜π‘†))
1812, 17eqtrid 2777 . . . . . . . . . . . 12 (πœ‘ β†’ (Vtxβ€˜πΊ) = (Baseβ€˜π‘†))
1918eleq2d 2811 . . . . . . . . . . 11 (πœ‘ β†’ (𝑣 ∈ (Vtxβ€˜πΊ) ↔ 𝑣 ∈ (Baseβ€˜π‘†)))
2019biimpa 475 . . . . . . . . . 10 ((πœ‘ ∧ 𝑣 ∈ (Vtxβ€˜πΊ)) β†’ 𝑣 ∈ (Baseβ€˜π‘†))
2120adantr 479 . . . . . . . . 9 (((πœ‘ ∧ 𝑣 ∈ (Vtxβ€˜πΊ)) ∧ 𝑛 ∈ ((Vtxβ€˜πΊ) βˆ– {𝑣})) β†’ 𝑣 ∈ (Baseβ€˜π‘†))
2218difeq1d 4118 . . . . . . . . . . . . 13 (πœ‘ β†’ ((Vtxβ€˜πΊ) βˆ– {𝑣}) = ((Baseβ€˜π‘†) βˆ– {𝑣}))
2322eleq2d 2811 . . . . . . . . . . . 12 (πœ‘ β†’ (𝑛 ∈ ((Vtxβ€˜πΊ) βˆ– {𝑣}) ↔ 𝑛 ∈ ((Baseβ€˜π‘†) βˆ– {𝑣})))
2423biimpd 228 . . . . . . . . . . 11 (πœ‘ β†’ (𝑛 ∈ ((Vtxβ€˜πΊ) βˆ– {𝑣}) β†’ 𝑛 ∈ ((Baseβ€˜π‘†) βˆ– {𝑣})))
2524adantr 479 . . . . . . . . . 10 ((πœ‘ ∧ 𝑣 ∈ (Vtxβ€˜πΊ)) β†’ (𝑛 ∈ ((Vtxβ€˜πΊ) βˆ– {𝑣}) β†’ 𝑛 ∈ ((Baseβ€˜π‘†) βˆ– {𝑣})))
2625imp 405 . . . . . . . . 9 (((πœ‘ ∧ 𝑣 ∈ (Vtxβ€˜πΊ)) ∧ 𝑛 ∈ ((Vtxβ€˜πΊ) βˆ– {𝑣})) β†’ 𝑛 ∈ ((Baseβ€˜π‘†) βˆ– {𝑣}))
271cusgrexilem2 29311 . . . . . . . . 9 ((((Baseβ€˜π‘†) ∈ V ∧ 𝑣 ∈ (Baseβ€˜π‘†)) ∧ 𝑛 ∈ ((Baseβ€˜π‘†) βˆ– {𝑣})) β†’ βˆƒπ‘’ ∈ ran ( I β†Ύ 𝑃){𝑣, 𝑛} βŠ† 𝑒)
2811, 21, 26, 27syl21anc 836 . . . . . . . 8 (((πœ‘ ∧ 𝑣 ∈ (Vtxβ€˜πΊ)) ∧ 𝑛 ∈ ((Vtxβ€˜πΊ) βˆ– {𝑣})) β†’ βˆƒπ‘’ ∈ ran ( I β†Ύ 𝑃){𝑣, 𝑛} βŠ† 𝑒)
29 edgval 28918 . . . . . . . . . . 11 (Edgβ€˜πΊ) = ran (iEdgβ€˜πΊ)
303fveq2i 6897 . . . . . . . . . . . . 13 (iEdgβ€˜πΊ) = (iEdgβ€˜(𝑆 sSet ⟨(.efβ€˜ndx), ( I β†Ύ 𝑃)⟩))
3113, 2, 4, 16setsiedg 28905 . . . . . . . . . . . . 13 (πœ‘ β†’ (iEdgβ€˜(𝑆 sSet ⟨(.efβ€˜ndx), ( I β†Ύ 𝑃)⟩)) = ( I β†Ύ 𝑃))
3230, 31eqtrid 2777 . . . . . . . . . . . 12 (πœ‘ β†’ (iEdgβ€˜πΊ) = ( I β†Ύ 𝑃))
3332rneqd 5939 . . . . . . . . . . 11 (πœ‘ β†’ ran (iEdgβ€˜πΊ) = ran ( I β†Ύ 𝑃))
3429, 33eqtrid 2777 . . . . . . . . . 10 (πœ‘ β†’ (Edgβ€˜πΊ) = ran ( I β†Ύ 𝑃))
3534rexeqdv 3316 . . . . . . . . 9 (πœ‘ β†’ (βˆƒπ‘’ ∈ (Edgβ€˜πΊ){𝑣, 𝑛} βŠ† 𝑒 ↔ βˆƒπ‘’ ∈ ran ( I β†Ύ 𝑃){𝑣, 𝑛} βŠ† 𝑒))
3635ad2antrr 724 . . . . . . . 8 (((πœ‘ ∧ 𝑣 ∈ (Vtxβ€˜πΊ)) ∧ 𝑛 ∈ ((Vtxβ€˜πΊ) βˆ– {𝑣})) β†’ (βˆƒπ‘’ ∈ (Edgβ€˜πΊ){𝑣, 𝑛} βŠ† 𝑒 ↔ βˆƒπ‘’ ∈ ran ( I β†Ύ 𝑃){𝑣, 𝑛} βŠ† 𝑒))
3728, 36mpbird 256 . . . . . . 7 (((πœ‘ ∧ 𝑣 ∈ (Vtxβ€˜πΊ)) ∧ 𝑛 ∈ ((Vtxβ€˜πΊ) βˆ– {𝑣})) β†’ βˆƒπ‘’ ∈ (Edgβ€˜πΊ){𝑣, 𝑛} βŠ† 𝑒)
38 eqid 2725 . . . . . . . 8 (Vtxβ€˜πΊ) = (Vtxβ€˜πΊ)
39 eqid 2725 . . . . . . . 8 (Edgβ€˜πΊ) = (Edgβ€˜πΊ)
4038, 39nbgrel 29209 . . . . . . 7 (𝑛 ∈ (𝐺 NeighbVtx 𝑣) ↔ ((𝑛 ∈ (Vtxβ€˜πΊ) ∧ 𝑣 ∈ (Vtxβ€˜πΊ)) ∧ 𝑛 β‰  𝑣 ∧ βˆƒπ‘’ ∈ (Edgβ€˜πΊ){𝑣, 𝑛} βŠ† 𝑒))
418, 10, 37, 40syl3anbrc 1340 . . . . . 6 (((πœ‘ ∧ 𝑣 ∈ (Vtxβ€˜πΊ)) ∧ 𝑛 ∈ ((Vtxβ€˜πΊ) βˆ– {𝑣})) β†’ 𝑛 ∈ (𝐺 NeighbVtx 𝑣))
4241ralrimiva 3136 . . . . 5 ((πœ‘ ∧ 𝑣 ∈ (Vtxβ€˜πΊ)) β†’ βˆ€π‘› ∈ ((Vtxβ€˜πΊ) βˆ– {𝑣})𝑛 ∈ (𝐺 NeighbVtx 𝑣))
4338uvtxel 29257 . . . . 5 (𝑣 ∈ (UnivVtxβ€˜πΊ) ↔ (𝑣 ∈ (Vtxβ€˜πΊ) ∧ βˆ€π‘› ∈ ((Vtxβ€˜πΊ) βˆ– {𝑣})𝑛 ∈ (𝐺 NeighbVtx 𝑣)))
446, 42, 43sylanbrc 581 . . . 4 ((πœ‘ ∧ 𝑣 ∈ (Vtxβ€˜πΊ)) β†’ 𝑣 ∈ (UnivVtxβ€˜πΊ))
4544ralrimiva 3136 . . 3 (πœ‘ β†’ βˆ€π‘£ ∈ (Vtxβ€˜πΊ)𝑣 ∈ (UnivVtxβ€˜πΊ))
465elexd 3485 . . . 4 (πœ‘ β†’ 𝐺 ∈ V)
4738iscplgr 29284 . . . 4 (𝐺 ∈ V β†’ (𝐺 ∈ ComplGraph ↔ βˆ€π‘£ ∈ (Vtxβ€˜πΊ)𝑣 ∈ (UnivVtxβ€˜πΊ)))
4846, 47syl 17 . . 3 (πœ‘ β†’ (𝐺 ∈ ComplGraph ↔ βˆ€π‘£ ∈ (Vtxβ€˜πΊ)𝑣 ∈ (UnivVtxβ€˜πΊ)))
4945, 48mpbird 256 . 2 (πœ‘ β†’ 𝐺 ∈ ComplGraph)
50 iscusgr 29287 . 2 (𝐺 ∈ ComplUSGraph ↔ (𝐺 ∈ USGraph ∧ 𝐺 ∈ ComplGraph))
515, 49, 50sylanbrc 581 1 (πœ‘ β†’ 𝐺 ∈ ComplUSGraph)
Colors of variables: wff setvar class
Syntax hints:   β†’ wi 4   ↔ wb 205   ∧ wa 394   = wceq 1533   ∈ wcel 2098   β‰  wne 2930  βˆ€wral 3051  βˆƒwrex 3060  {crab 3419  Vcvv 3463   βˆ– cdif 3942   βŠ† wss 3945  π’« cpw 4603  {csn 4629  {cpr 4631  βŸ¨cop 4635   class class class wbr 5148   I cid 5574  dom cdm 5677  ran crn 5678   β†Ύ cres 5679  β€˜cfv 6547  (class class class)co 7417  2c2 12297  β™―chash 14321   Struct cstr 17114   sSet csts 17131  ndxcnx 17161  Basecbs 17179  .efcedgf 28855  Vtxcvtx 28865  iEdgciedg 28866  Edgcedg 28916  USGraphcusgr 29018   NeighbVtx cnbgr 29201  UnivVtxcuvtx 29254  ComplGraphccplgr 29278  ComplUSGraphccusgr 29279
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1789  ax-4 1803  ax-5 1905  ax-6 1963  ax-7 2003  ax-8 2100  ax-9 2108  ax-10 2129  ax-11 2146  ax-12 2166  ax-ext 2696  ax-sep 5299  ax-nul 5306  ax-pow 5364  ax-pr 5428  ax-un 7739  ax-cnex 11194  ax-resscn 11195  ax-1cn 11196  ax-icn 11197  ax-addcl 11198  ax-addrcl 11199  ax-mulcl 11200  ax-mulrcl 11201  ax-mulcom 11202  ax-addass 11203  ax-mulass 11204  ax-distr 11205  ax-i2m1 11206  ax-1ne0 11207  ax-1rid 11208  ax-rnegex 11209  ax-rrecex 11210  ax-cnre 11211  ax-pre-lttri 11212  ax-pre-lttrn 11213  ax-pre-ltadd 11214  ax-pre-mulgt0 11215
This theorem depends on definitions:  df-bi 206  df-an 395  df-or 846  df-3or 1085  df-3an 1086  df-tru 1536  df-fal 1546  df-ex 1774  df-nf 1778  df-sb 2060  df-mo 2528  df-eu 2557  df-clab 2703  df-cleq 2717  df-clel 2802  df-nfc 2877  df-ne 2931  df-nel 3037  df-ral 3052  df-rex 3061  df-reu 3365  df-rab 3420  df-v 3465  df-sbc 3775  df-csb 3891  df-dif 3948  df-un 3950  df-in 3952  df-ss 3962  df-pss 3965  df-nul 4324  df-if 4530  df-pw 4605  df-sn 4630  df-pr 4632  df-op 4636  df-uni 4909  df-int 4950  df-iun 4998  df-br 5149  df-opab 5211  df-mpt 5232  df-tr 5266  df-id 5575  df-eprel 5581  df-po 5589  df-so 5590  df-fr 5632  df-we 5634  df-xp 5683  df-rel 5684  df-cnv 5685  df-co 5686  df-dm 5687  df-rn 5688  df-res 5689  df-ima 5690  df-pred 6305  df-ord 6372  df-on 6373  df-lim 6374  df-suc 6375  df-iota 6499  df-fun 6549  df-fn 6550  df-f 6551  df-f1 6552  df-fo 6553  df-f1o 6554  df-fv 6555  df-riota 7373  df-ov 7420  df-oprab 7421  df-mpo 7422  df-om 7870  df-1st 7992  df-2nd 7993  df-frecs 8285  df-wrecs 8316  df-recs 8390  df-rdg 8429  df-1o 8485  df-oadd 8489  df-er 8723  df-en 8963  df-dom 8964  df-sdom 8965  df-fin 8966  df-dju 9924  df-card 9962  df-pnf 11280  df-mnf 11281  df-xr 11282  df-ltxr 11283  df-le 11284  df-sub 11476  df-neg 11477  df-nn 12243  df-2 12305  df-3 12306  df-4 12307  df-5 12308  df-6 12309  df-7 12310  df-8 12311  df-9 12312  df-n0 12503  df-xnn0 12575  df-z 12589  df-dec 12708  df-uz 12853  df-fz 13517  df-hash 14322  df-struct 17115  df-sets 17132  df-slot 17150  df-ndx 17162  df-base 17180  df-edgf 28856  df-vtx 28867  df-iedg 28868  df-edg 28917  df-usgr 29020  df-nbgr 29202  df-uvtx 29255  df-cplgr 29280  df-cusgr 29281
This theorem is referenced by:  cffldtocusgr  29316  cffldtocusgrOLD  29317
  Copyright terms: Public domain W3C validator