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 32367
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 1133 . . 3 ((𝐺 ∈ ComplGraph ∧ 𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → 𝐴𝑉)
2 simp3 1134 . . 3 ((𝐺 ∈ ComplGraph ∧ 𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → 𝐵 ∈ (𝑉 ∖ {𝐴}))
3 eleq1 2900 . . . . . . 7 (𝑎 = 𝐴 → (𝑎𝑉𝐴𝑉))
4 sneq 4577 . . . . . . . . 9 (𝑎 = 𝐴 → {𝑎} = {𝐴})
54difeq2d 4099 . . . . . . . 8 (𝑎 = 𝐴 → (𝑉 ∖ {𝑎}) = (𝑉 ∖ {𝐴}))
65eleq2d 2898 . . . . . . 7 (𝑎 = 𝐴 → (𝑏 ∈ (𝑉 ∖ {𝑎}) ↔ 𝑏 ∈ (𝑉 ∖ {𝐴})))
73, 6anbi12d 632 . . . . . 6 (𝑎 = 𝐴 → ((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) ↔ (𝐴𝑉𝑏 ∈ (𝑉 ∖ {𝐴}))))
8 preq1 4669 . . . . . . . 8 (𝑎 = 𝐴 → {𝑎, 𝑏} = {𝐴, 𝑏})
98sseq1d 3998 . . . . . . 7 (𝑎 = 𝐴 → ({𝑎, 𝑏} ⊆ 𝑒 ↔ {𝐴, 𝑏} ⊆ 𝑒))
109rexbidv 3297 . . . . . 6 (𝑎 = 𝐴 → (∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒 ↔ ∃𝑒𝐸 {𝐴, 𝑏} ⊆ 𝑒))
117, 10imbi12d 347 . . . . 5 (𝑎 = 𝐴 → (((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒) ↔ ((𝐴𝑉𝑏 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝑏} ⊆ 𝑒)))
12 eleq1 2900 . . . . . . 7 (𝑏 = 𝐵 → (𝑏 ∈ (𝑉 ∖ {𝐴}) ↔ 𝐵 ∈ (𝑉 ∖ {𝐴})))
1312anbi2d 630 . . . . . 6 (𝑏 = 𝐵 → ((𝐴𝑉𝑏 ∈ (𝑉 ∖ {𝐴})) ↔ (𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴}))))
14 preq2 4670 . . . . . . . 8 (𝑏 = 𝐵 → {𝐴, 𝑏} = {𝐴, 𝐵})
1514sseq1d 3998 . . . . . . 7 (𝑏 = 𝐵 → ({𝐴, 𝑏} ⊆ 𝑒 ↔ {𝐴, 𝐵} ⊆ 𝑒))
1615rexbidv 3297 . . . . . 6 (𝑏 = 𝐵 → (∃𝑒𝐸 {𝐴, 𝑏} ⊆ 𝑒 ↔ ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒))
1713, 16imbi12d 347 . . . . 5 (𝑏 = 𝐵 → (((𝐴𝑉𝑏 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝑏} ⊆ 𝑒) ↔ ((𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒)))
1811, 17sylan9bb 512 . . . 4 ((𝑎 = 𝐴𝑏 = 𝐵) → (((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒) ↔ ((𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒)))
19 cplgredgex.1 . . . . . . . 8 𝑉 = (Vtx‘𝐺)
20 cplgredgex.2 . . . . . . . 8 𝐸 = (Edg‘𝐺)
2119, 20iscplgredg 27199 . . . . . . 7 (𝐺 ∈ ComplGraph → (𝐺 ∈ ComplGraph ↔ ∀𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒))
2221ibi 269 . . . . . 6 (𝐺 ∈ ComplGraph → ∀𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒)
23 rsp2 3213 . . . . . 6 (∀𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒 → ((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒))
2422, 23syl 17 . . . . 5 (𝐺 ∈ ComplGraph → ((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒))
25243ad2ant1 1129 . . . 4 ((𝐺 ∈ ComplGraph ∧ 𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒))
261, 2, 18, 25vtocl2d 3557 . . 3 ((𝐺 ∈ ComplGraph ∧ 𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ((𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒))
271, 2, 26mp2and 697 . 2 ((𝐺 ∈ ComplGraph ∧ 𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒)
28273expib 1118 1 (𝐺 ∈ ComplGraph → ((𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398  w3a 1083   = wceq 1537  wcel 2114  wral 3138  wrex 3139  cdif 3933  wss 3936  {csn 4567  {cpr 4569  cfv 6355  Vtxcvtx 26781  Edgcedg 26832  ComplGraphccplgr 27191
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 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-sep 5203  ax-nul 5210  ax-pow 5266  ax-pr 5330  ax-un 7461
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-fal 1550  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3773  df-csb 3884  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4839  df-iun 4921  df-br 5067  df-opab 5129  df-mpt 5147  df-id 5460  df-xp 5561  df-rel 5562  df-cnv 5563  df-co 5564  df-dm 5565  df-rn 5566  df-res 5567  df-ima 5568  df-iota 6314  df-fun 6357  df-fv 6363  df-ov 7159  df-oprab 7160  df-mpo 7161  df-1st 7689  df-2nd 7690  df-nbgr 27115  df-uvtx 27168  df-cplgr 27193
This theorem is referenced by:  cusgredgex  32368
  Copyright terms: Public domain W3C validator