Users' Mathboxes Mathbox for BTernaryTau < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  cplgredgex Structured version   Visualization version   GIF version

Theorem cplgredgex 32386
Description: Any two (distinct) vertices in a complete graph are connected to each other by at least one edge. (Contributed by BTernaryTau, 2-Oct-2023.)
Hypotheses
Ref Expression
cplgredgex.1 𝑉 = (Vtx‘𝐺)
cplgredgex.2 𝐸 = (Edg‘𝐺)
Assertion
Ref Expression
cplgredgex (𝐺 ∈ ComplGraph → ((𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒))
Distinct variable groups:   𝐴,𝑒   𝐵,𝑒   𝑒,𝐸   𝑒,𝐺   𝑒,𝑉

Proof of Theorem cplgredgex
Dummy variables 𝑎 𝑏 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 simp2 1132 . . 3 ((𝐺 ∈ ComplGraph ∧ 𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → 𝐴𝑉)
2 simp3 1133 . . 3 ((𝐺 ∈ ComplGraph ∧ 𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → 𝐵 ∈ (𝑉 ∖ {𝐴}))
3 eleq1 2899 . . . . . . 7 (𝑎 = 𝐴 → (𝑎𝑉𝐴𝑉))
4 sneq 4570 . . . . . . . . 9 (𝑎 = 𝐴 → {𝑎} = {𝐴})
54difeq2d 4092 . . . . . . . 8 (𝑎 = 𝐴 → (𝑉 ∖ {𝑎}) = (𝑉 ∖ {𝐴}))
65eleq2d 2897 . . . . . . 7 (𝑎 = 𝐴 → (𝑏 ∈ (𝑉 ∖ {𝑎}) ↔ 𝑏 ∈ (𝑉 ∖ {𝐴})))
73, 6anbi12d 632 . . . . . 6 (𝑎 = 𝐴 → ((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) ↔ (𝐴𝑉𝑏 ∈ (𝑉 ∖ {𝐴}))))
8 preq1 4662 . . . . . . . 8 (𝑎 = 𝐴 → {𝑎, 𝑏} = {𝐴, 𝑏})
98sseq1d 3991 . . . . . . 7 (𝑎 = 𝐴 → ({𝑎, 𝑏} ⊆ 𝑒 ↔ {𝐴, 𝑏} ⊆ 𝑒))
109rexbidv 3296 . . . . . 6 (𝑎 = 𝐴 → (∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒 ↔ ∃𝑒𝐸 {𝐴, 𝑏} ⊆ 𝑒))
117, 10imbi12d 347 . . . . 5 (𝑎 = 𝐴 → (((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒) ↔ ((𝐴𝑉𝑏 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝑏} ⊆ 𝑒)))
12 eleq1 2899 . . . . . . 7 (𝑏 = 𝐵 → (𝑏 ∈ (𝑉 ∖ {𝐴}) ↔ 𝐵 ∈ (𝑉 ∖ {𝐴})))
1312anbi2d 630 . . . . . 6 (𝑏 = 𝐵 → ((𝐴𝑉𝑏 ∈ (𝑉 ∖ {𝐴})) ↔ (𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴}))))
14 preq2 4663 . . . . . . . 8 (𝑏 = 𝐵 → {𝐴, 𝑏} = {𝐴, 𝐵})
1514sseq1d 3991 . . . . . . 7 (𝑏 = 𝐵 → ({𝐴, 𝑏} ⊆ 𝑒 ↔ {𝐴, 𝐵} ⊆ 𝑒))
1615rexbidv 3296 . . . . . 6 (𝑏 = 𝐵 → (∃𝑒𝐸 {𝐴, 𝑏} ⊆ 𝑒 ↔ ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒))
1713, 16imbi12d 347 . . . . 5 (𝑏 = 𝐵 → (((𝐴𝑉𝑏 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝑏} ⊆ 𝑒) ↔ ((𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒)))
1811, 17sylan9bb 512 . . . 4 ((𝑎 = 𝐴𝑏 = 𝐵) → (((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒) ↔ ((𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒)))
19 cplgredgex.1 . . . . . . . 8 𝑉 = (Vtx‘𝐺)
20 cplgredgex.2 . . . . . . . 8 𝐸 = (Edg‘𝐺)
2119, 20iscplgredg 27195 . . . . . . 7 (𝐺 ∈ ComplGraph → (𝐺 ∈ ComplGraph ↔ ∀𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒))
2221ibi 269 . . . . . 6 (𝐺 ∈ ComplGraph → ∀𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒)
23 rsp2 3212 . . . . . 6 (∀𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒 → ((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒))
2422, 23syl 17 . . . . 5 (𝐺 ∈ ComplGraph → ((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒))
25243ad2ant1 1128 . . . 4 ((𝐺 ∈ ComplGraph ∧ 𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒))
261, 2, 18, 25vtocl2d 3554 . . 3 ((𝐺 ∈ ComplGraph ∧ 𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ((𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒))
271, 2, 26mp2and 697 . 2 ((𝐺 ∈ ComplGraph ∧ 𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒)
28273expib 1117 1 (𝐺 ∈ ComplGraph → ((𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398  w3a 1082   = wceq 1536  wcel 2113  wral 3137  wrex 3138  cdif 3926  wss 3929  {csn 4560  {cpr 4562  cfv 6348  Vtxcvtx 26777  Edgcedg 26828  ComplGraphccplgr 27187
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1969  ax-7 2014  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2160  ax-12 2176  ax-ext 2792  ax-sep 5196  ax-nul 5203  ax-pow 5259  ax-pr 5323  ax-un 7454
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1084  df-tru 1539  df-fal 1549  df-ex 1780  df-nf 1784  df-sb 2069  df-mo 2621  df-eu 2653  df-clab 2799  df-cleq 2813  df-clel 2892  df-nfc 2962  df-ne 3016  df-ral 3142  df-rex 3143  df-rab 3146  df-v 3493  df-sbc 3769  df-csb 3877  df-dif 3932  df-un 3934  df-in 3936  df-ss 3945  df-nul 4285  df-if 4461  df-sn 4561  df-pr 4563  df-op 4567  df-uni 4832  df-iun 4914  df-br 5060  df-opab 5122  df-mpt 5140  df-id 5453  df-xp 5554  df-rel 5555  df-cnv 5556  df-co 5557  df-dm 5558  df-rn 5559  df-res 5560  df-ima 5561  df-iota 6307  df-fun 6350  df-fv 6356  df-ov 7152  df-oprab 7153  df-mpo 7154  df-1st 7682  df-2nd 7683  df-nbgr 27111  df-uvtx 27164  df-cplgr 27189
This theorem is referenced by:  cusgredgex  32387
  Copyright terms: Public domain W3C validator