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

Theorem cplgrop 28694
Description: A complete graph represented by an ordered pair. (Contributed by AV, 10-Nov-2020.)
Assertion
Ref Expression
cplgrop (𝐺 ∈ ComplGraph → ⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩ ∈ ComplGraph)

Proof of Theorem cplgrop
Dummy variables 𝑒 𝑔 𝑛 𝑣 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqid 2733 . . . . . 6 (Vtx‘𝐺) = (Vtx‘𝐺)
2 eqid 2733 . . . . . 6 (Edg‘𝐺) = (Edg‘𝐺)
31, 2iscplgredg 28674 . . . . 5 (𝐺 ∈ ComplGraph → (𝐺 ∈ ComplGraph ↔ ∀𝑣 ∈ (Vtx‘𝐺)∀𝑛 ∈ ((Vtx‘𝐺) ∖ {𝑣})∃𝑒 ∈ (Edg‘𝐺){𝑣, 𝑛} ⊆ 𝑒))
4 edgval 28309 . . . . . . 7 (Edg‘𝐺) = ran (iEdg‘𝐺)
54a1i 11 . . . . . 6 (𝐺 ∈ ComplGraph → (Edg‘𝐺) = ran (iEdg‘𝐺))
6 simpl 484 . . . . . . . . . . . 12 (((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺)) → (Vtx‘𝑔) = (Vtx‘𝐺))
76adantl 483 . . . . . . . . . . 11 (((Edg‘𝐺) = ran (iEdg‘𝐺) ∧ ((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺))) → (Vtx‘𝑔) = (Vtx‘𝐺))
86difeq1d 4122 . . . . . . . . . . . . 13 (((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺)) → ((Vtx‘𝑔) ∖ {𝑣}) = ((Vtx‘𝐺) ∖ {𝑣}))
98adantl 483 . . . . . . . . . . . 12 (((Edg‘𝐺) = ran (iEdg‘𝐺) ∧ ((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺))) → ((Vtx‘𝑔) ∖ {𝑣}) = ((Vtx‘𝐺) ∖ {𝑣}))
10 edgval 28309 . . . . . . . . . . . . . . . 16 (Edg‘𝑔) = ran (iEdg‘𝑔)
11 simpr 486 . . . . . . . . . . . . . . . . 17 (((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺)) → (iEdg‘𝑔) = (iEdg‘𝐺))
1211rneqd 5938 . . . . . . . . . . . . . . . 16 (((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺)) → ran (iEdg‘𝑔) = ran (iEdg‘𝐺))
1310, 12eqtrid 2785 . . . . . . . . . . . . . . 15 (((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺)) → (Edg‘𝑔) = ran (iEdg‘𝐺))
1413adantl 483 . . . . . . . . . . . . . 14 (((Edg‘𝐺) = ran (iEdg‘𝐺) ∧ ((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺))) → (Edg‘𝑔) = ran (iEdg‘𝐺))
15 simpl 484 . . . . . . . . . . . . . 14 (((Edg‘𝐺) = ran (iEdg‘𝐺) ∧ ((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺))) → (Edg‘𝐺) = ran (iEdg‘𝐺))
1614, 15eqtr4d 2776 . . . . . . . . . . . . 13 (((Edg‘𝐺) = ran (iEdg‘𝐺) ∧ ((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺))) → (Edg‘𝑔) = (Edg‘𝐺))
1716rexeqdv 3327 . . . . . . . . . . . 12 (((Edg‘𝐺) = ran (iEdg‘𝐺) ∧ ((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺))) → (∃𝑒 ∈ (Edg‘𝑔){𝑣, 𝑛} ⊆ 𝑒 ↔ ∃𝑒 ∈ (Edg‘𝐺){𝑣, 𝑛} ⊆ 𝑒))
189, 17raleqbidv 3343 . . . . . . . . . . 11 (((Edg‘𝐺) = ran (iEdg‘𝐺) ∧ ((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺))) → (∀𝑛 ∈ ((Vtx‘𝑔) ∖ {𝑣})∃𝑒 ∈ (Edg‘𝑔){𝑣, 𝑛} ⊆ 𝑒 ↔ ∀𝑛 ∈ ((Vtx‘𝐺) ∖ {𝑣})∃𝑒 ∈ (Edg‘𝐺){𝑣, 𝑛} ⊆ 𝑒))
197, 18raleqbidv 3343 . . . . . . . . . 10 (((Edg‘𝐺) = ran (iEdg‘𝐺) ∧ ((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺))) → (∀𝑣 ∈ (Vtx‘𝑔)∀𝑛 ∈ ((Vtx‘𝑔) ∖ {𝑣})∃𝑒 ∈ (Edg‘𝑔){𝑣, 𝑛} ⊆ 𝑒 ↔ ∀𝑣 ∈ (Vtx‘𝐺)∀𝑛 ∈ ((Vtx‘𝐺) ∖ {𝑣})∃𝑒 ∈ (Edg‘𝐺){𝑣, 𝑛} ⊆ 𝑒))
2019biimpar 479 . . . . . . . . 9 ((((Edg‘𝐺) = ran (iEdg‘𝐺) ∧ ((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺))) ∧ ∀𝑣 ∈ (Vtx‘𝐺)∀𝑛 ∈ ((Vtx‘𝐺) ∖ {𝑣})∃𝑒 ∈ (Edg‘𝐺){𝑣, 𝑛} ⊆ 𝑒) → ∀𝑣 ∈ (Vtx‘𝑔)∀𝑛 ∈ ((Vtx‘𝑔) ∖ {𝑣})∃𝑒 ∈ (Edg‘𝑔){𝑣, 𝑛} ⊆ 𝑒)
21 eqid 2733 . . . . . . . . . . 11 (Vtx‘𝑔) = (Vtx‘𝑔)
22 eqid 2733 . . . . . . . . . . 11 (Edg‘𝑔) = (Edg‘𝑔)
2321, 22iscplgredg 28674 . . . . . . . . . 10 (𝑔 ∈ V → (𝑔 ∈ ComplGraph ↔ ∀𝑣 ∈ (Vtx‘𝑔)∀𝑛 ∈ ((Vtx‘𝑔) ∖ {𝑣})∃𝑒 ∈ (Edg‘𝑔){𝑣, 𝑛} ⊆ 𝑒))
2423elv 3481 . . . . . . . . 9 (𝑔 ∈ ComplGraph ↔ ∀𝑣 ∈ (Vtx‘𝑔)∀𝑛 ∈ ((Vtx‘𝑔) ∖ {𝑣})∃𝑒 ∈ (Edg‘𝑔){𝑣, 𝑛} ⊆ 𝑒)
2520, 24sylibr 233 . . . . . . . 8 ((((Edg‘𝐺) = ran (iEdg‘𝐺) ∧ ((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺))) ∧ ∀𝑣 ∈ (Vtx‘𝐺)∀𝑛 ∈ ((Vtx‘𝐺) ∖ {𝑣})∃𝑒 ∈ (Edg‘𝐺){𝑣, 𝑛} ⊆ 𝑒) → 𝑔 ∈ ComplGraph)
2625expcom 415 . . . . . . 7 (∀𝑣 ∈ (Vtx‘𝐺)∀𝑛 ∈ ((Vtx‘𝐺) ∖ {𝑣})∃𝑒 ∈ (Edg‘𝐺){𝑣, 𝑛} ⊆ 𝑒 → (((Edg‘𝐺) = ran (iEdg‘𝐺) ∧ ((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺))) → 𝑔 ∈ ComplGraph))
2726expd 417 . . . . . 6 (∀𝑣 ∈ (Vtx‘𝐺)∀𝑛 ∈ ((Vtx‘𝐺) ∖ {𝑣})∃𝑒 ∈ (Edg‘𝐺){𝑣, 𝑛} ⊆ 𝑒 → ((Edg‘𝐺) = ran (iEdg‘𝐺) → (((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺)) → 𝑔 ∈ ComplGraph)))
285, 27syl5com 31 . . . . 5 (𝐺 ∈ ComplGraph → (∀𝑣 ∈ (Vtx‘𝐺)∀𝑛 ∈ ((Vtx‘𝐺) ∖ {𝑣})∃𝑒 ∈ (Edg‘𝐺){𝑣, 𝑛} ⊆ 𝑒 → (((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺)) → 𝑔 ∈ ComplGraph)))
293, 28sylbid 239 . . . 4 (𝐺 ∈ ComplGraph → (𝐺 ∈ ComplGraph → (((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺)) → 𝑔 ∈ ComplGraph)))
3029pm2.43i 52 . . 3 (𝐺 ∈ ComplGraph → (((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺)) → 𝑔 ∈ ComplGraph))
3130alrimiv 1931 . 2 (𝐺 ∈ ComplGraph → ∀𝑔(((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (iEdg‘𝑔) = (iEdg‘𝐺)) → 𝑔 ∈ ComplGraph))
32 fvexd 6907 . 2 (𝐺 ∈ ComplGraph → (Vtx‘𝐺) ∈ V)
33 fvexd 6907 . 2 (𝐺 ∈ ComplGraph → (iEdg‘𝐺) ∈ V)
3431, 32, 33gropeld 28293 1 (𝐺 ∈ ComplGraph → ⟨(Vtx‘𝐺), (iEdg‘𝐺)⟩ ∈ ComplGraph)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 397   = wceq 1542  wcel 2107  wral 3062  wrex 3071  Vcvv 3475  cdif 3946  wss 3949  {csn 4629  {cpr 4631  cop 4635  ran crn 5678  cfv 6544  Vtxcvtx 28256  iEdgciedg 28257  Edgcedg 28307  ComplGraphccplgr 28666
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2704  ax-sep 5300  ax-nul 5307  ax-pr 5428  ax-un 7725
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2535  df-eu 2564  df-clab 2711  df-cleq 2725  df-clel 2811  df-nfc 2886  df-ne 2942  df-ral 3063  df-rex 3072  df-rab 3434  df-v 3477  df-sbc 3779  df-csb 3895  df-dif 3952  df-un 3954  df-in 3956  df-ss 3966  df-nul 4324  df-if 4530  df-sn 4630  df-pr 4632  df-op 4636  df-uni 4910  df-iun 5000  df-br 5150  df-opab 5212  df-mpt 5233  df-id 5575  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-iota 6496  df-fun 6546  df-fv 6552  df-ov 7412  df-oprab 7413  df-mpo 7414  df-1st 7975  df-2nd 7976  df-vtx 28258  df-iedg 28259  df-edg 28308  df-nbgr 28590  df-uvtx 28643  df-cplgr 28668
This theorem is referenced by:  cusgrop  28695
  Copyright terms: Public domain W3C validator