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 33082
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 1136 . . 3 ((𝐺 ∈ ComplGraph ∧ 𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → 𝐴𝑉)
2 simp3 1137 . . 3 ((𝐺 ∈ ComplGraph ∧ 𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → 𝐵 ∈ (𝑉 ∖ {𝐴}))
3 eleq1 2826 . . . . . . 7 (𝑎 = 𝐴 → (𝑎𝑉𝐴𝑉))
4 sneq 4571 . . . . . . . . 9 (𝑎 = 𝐴 → {𝑎} = {𝐴})
54difeq2d 4057 . . . . . . . 8 (𝑎 = 𝐴 → (𝑉 ∖ {𝑎}) = (𝑉 ∖ {𝐴}))
65eleq2d 2824 . . . . . . 7 (𝑎 = 𝐴 → (𝑏 ∈ (𝑉 ∖ {𝑎}) ↔ 𝑏 ∈ (𝑉 ∖ {𝐴})))
73, 6anbi12d 631 . . . . . 6 (𝑎 = 𝐴 → ((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) ↔ (𝐴𝑉𝑏 ∈ (𝑉 ∖ {𝐴}))))
8 preq1 4669 . . . . . . . 8 (𝑎 = 𝐴 → {𝑎, 𝑏} = {𝐴, 𝑏})
98sseq1d 3952 . . . . . . 7 (𝑎 = 𝐴 → ({𝑎, 𝑏} ⊆ 𝑒 ↔ {𝐴, 𝑏} ⊆ 𝑒))
109rexbidv 3226 . . . . . 6 (𝑎 = 𝐴 → (∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒 ↔ ∃𝑒𝐸 {𝐴, 𝑏} ⊆ 𝑒))
117, 10imbi12d 345 . . . . 5 (𝑎 = 𝐴 → (((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒) ↔ ((𝐴𝑉𝑏 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝑏} ⊆ 𝑒)))
12 eleq1 2826 . . . . . . 7 (𝑏 = 𝐵 → (𝑏 ∈ (𝑉 ∖ {𝐴}) ↔ 𝐵 ∈ (𝑉 ∖ {𝐴})))
1312anbi2d 629 . . . . . 6 (𝑏 = 𝐵 → ((𝐴𝑉𝑏 ∈ (𝑉 ∖ {𝐴})) ↔ (𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴}))))
14 preq2 4670 . . . . . . . 8 (𝑏 = 𝐵 → {𝐴, 𝑏} = {𝐴, 𝐵})
1514sseq1d 3952 . . . . . . 7 (𝑏 = 𝐵 → ({𝐴, 𝑏} ⊆ 𝑒 ↔ {𝐴, 𝐵} ⊆ 𝑒))
1615rexbidv 3226 . . . . . 6 (𝑏 = 𝐵 → (∃𝑒𝐸 {𝐴, 𝑏} ⊆ 𝑒 ↔ ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒))
1713, 16imbi12d 345 . . . . 5 (𝑏 = 𝐵 → (((𝐴𝑉𝑏 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝑏} ⊆ 𝑒) ↔ ((𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒)))
1811, 17sylan9bb 510 . . . 4 ((𝑎 = 𝐴𝑏 = 𝐵) → (((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒) ↔ ((𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒)))
19 cplgredgex.1 . . . . . . . 8 𝑉 = (Vtx‘𝐺)
20 cplgredgex.2 . . . . . . . 8 𝐸 = (Edg‘𝐺)
2119, 20iscplgredg 27784 . . . . . . 7 (𝐺 ∈ ComplGraph → (𝐺 ∈ ComplGraph ↔ ∀𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒))
2221ibi 266 . . . . . 6 (𝐺 ∈ ComplGraph → ∀𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒)
23 rsp2 3138 . . . . . 6 (∀𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒 → ((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒))
2422, 23syl 17 . . . . 5 (𝐺 ∈ ComplGraph → ((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒))
25243ad2ant1 1132 . . . 4 ((𝐺 ∈ ComplGraph ∧ 𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ((𝑎𝑉𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒𝐸 {𝑎, 𝑏} ⊆ 𝑒))
261, 2, 18, 25vtocl2d 3496 . . 3 ((𝐺 ∈ ComplGraph ∧ 𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ((𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒))
271, 2, 26mp2and 696 . 2 ((𝐺 ∈ ComplGraph ∧ 𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒)
28273expib 1121 1 (𝐺 ∈ ComplGraph → ((𝐴𝑉𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒𝐸 {𝐴, 𝐵} ⊆ 𝑒))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396  w3a 1086   = wceq 1539  wcel 2106  wral 3064  wrex 3065  cdif 3884  wss 3887  {csn 4561  {cpr 4563  cfv 6433  Vtxcvtx 27366  Edgcedg 27417  ComplGraphccplgr 27776
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 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6391  df-fun 6435  df-fv 6441  df-ov 7278  df-oprab 7279  df-mpo 7280  df-1st 7831  df-2nd 7832  df-nbgr 27700  df-uvtx 27753  df-cplgr 27778
This theorem is referenced by:  cusgredgex  33083
  Copyright terms: Public domain W3C validator