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 35982
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 1155 . . 3 ((𝐺 ∈ ComplGraph ∧ 𝐴 ∈ 𝑉 ∧ 𝐵 ∈ (𝑉 ∖ {𝐴})) → 𝐴 ∈ 𝑉)
2 simp3 1156 . . 3 ((𝐺 ∈ ComplGraph ∧ 𝐴 ∈ 𝑉 ∧ 𝐵 ∈ (𝑉 ∖ {𝐴})) → 𝐵 ∈ (𝑉 ∖ {𝐴}))
3 eleq1 2848 . . . . . . 7 (𝑎 = 𝐴 → (𝑎 ∈ 𝑉 ↔ 𝐴 ∈ 𝑉))
4 sneq 4590 . . . . . . . . 9 (𝑎 = 𝐴 → {𝑎} = {𝐴})
54difeq2d 4063 . . . . . . . 8 (𝑎 = 𝐴 → (𝑉 ∖ {𝑎}) = (𝑉 ∖ {𝐴}))
65eleq2d 2846 . . . . . . 7 (𝑎 = 𝐴 → (𝑏 ∈ (𝑉 ∖ {𝑎}) ↔ 𝑏 ∈ (𝑉 ∖ {𝐴})))
73, 6anbi12d 644 . . . . . 6 (𝑎 = 𝐴 → ((𝑎 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝑎})) ↔ (𝐴 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝐴}))))
8 preq1 4690 . . . . . . . 8 (𝑎 = 𝐴 → {𝑎, 𝑏} = {𝐴, 𝑏})
98sseq1d 3939 . . . . . . 7 (𝑎 = 𝐴 → ({𝑎, 𝑏} ⊆ 𝑒 ↔ {𝐴, 𝑏} ⊆ 𝑒))
109rexbidv 3186 . . . . . 6 (𝑎 = 𝐴 → (∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒 ↔ ∃𝑒 ∈ 𝐸 {𝐴, 𝑏} ⊆ 𝑒))
117, 10imbi12d 347 . . . . 5 (𝑎 = 𝐴 → (((𝑎 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒) ↔ ((𝐴 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒 ∈ 𝐸 {𝐴, 𝑏} ⊆ 𝑒)))
12 eleq1 2848 . . . . . . 7 (𝑏 = 𝐵 → (𝑏 ∈ (𝑉 ∖ {𝐴}) ↔ 𝐵 ∈ (𝑉 ∖ {𝐴})))
1312anbi2d 642 . . . . . 6 (𝑏 = 𝐵 → ((𝐴 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝐴})) ↔ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ (𝑉 ∖ {𝐴}))))
14 preq2 4691 . . . . . . . 8 (𝑏 = 𝐵 → {𝐴, 𝑏} = {𝐴, 𝐵})
1514sseq1d 3939 . . . . . . 7 (𝑏 = 𝐵 → ({𝐴, 𝑏} ⊆ 𝑒 ↔ {𝐴, 𝐵} ⊆ 𝑒))
1615rexbidv 3186 . . . . . 6 (𝑏 = 𝐵 → (∃𝑒 ∈ 𝐸 {𝐴, 𝑏} ⊆ 𝑒 ↔ ∃𝑒 ∈ 𝐸 {𝐴, 𝐵} ⊆ 𝑒))
1713, 16imbi12d 347 . . . . 5 (𝑏 = 𝐵 → (((𝐴 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒 ∈ 𝐸 {𝐴, 𝑏} ⊆ 𝑒) ↔ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒 ∈ 𝐸 {𝐴, 𝐵} ⊆ 𝑒)))
1811, 17sylan9bb 519 . . . 4 ((𝑎 = 𝐴 ∧ 𝑏 = 𝐵) → (((𝑎 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒) ↔ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒 ∈ 𝐸 {𝐴, 𝐵} ⊆ 𝑒)))
19 cplgredgex.1 . . . . . . . 8 𝑉 = (Vtx‘𝐺)
20 cplgredgex.2 . . . . . . . 8 𝐸 = (Edg‘𝐺)
2119, 20iscplgredg 30004 . . . . . . 7 (𝐺 ∈ ComplGraph → (𝐺 ∈ ComplGraph ↔ ∀𝑎 ∈ 𝑉 ∀𝑏 ∈ (𝑉 ∖ {𝑎})∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒))
2221ibi 270 . . . . . 6 (𝐺 ∈ ComplGraph → ∀𝑎 ∈ 𝑉 ∀𝑏 ∈ (𝑉 ∖ {𝑎})∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒)
23 rsp2 3279 . . . . . 6 (∀𝑎 ∈ 𝑉 ∀𝑏 ∈ (𝑉 ∖ {𝑎})∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒 → ((𝑎 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒))
2422, 23syl 18 . . . . 5 (𝐺 ∈ ComplGraph → ((𝑎 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒))
25243ad2ant1 1151 . . . 4 ((𝐺 ∈ ComplGraph ∧ 𝐴 ∈ 𝑉 ∧ 𝐵 ∈ (𝑉 ∖ {𝐴})) → ((𝑎 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒))
261, 2, 18, 25vtocl2d 3523 . . 3 ((𝐺 ∈ ComplGraph ∧ 𝐴 ∈ 𝑉 ∧ 𝐵 ∈ (𝑉 ∖ {𝐴})) → ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒 ∈ 𝐸 {𝐴, 𝐵} ⊆ 𝑒))
271, 2, 26mp2and 712 . 2 ((𝐺 ∈ ComplGraph ∧ 𝐴 ∈ 𝑉 ∧ 𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒 ∈ 𝐸 {𝐴, 𝐵} ⊆ 𝑒)
28273expib 1140 1 (𝐺 ∈ ComplGraph → ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒 ∈ 𝐸 {𝐴, 𝐵} ⊆ 𝑒))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∧ w3a 1103   = wceq 1569   ∈ wcel 2144  ∀wral 3076  ∃wrex 3086   ⊆ wss 3895   ∖ cdif 4045  {csn 4584  {cpr 4586  ‘cfv 6539  Vtxcvtx 29580  Edgcedg 29631  ComplGraphccplgr 29996
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pr 5390  ax-un 7752
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-iota 6494  df-fun 6541  df-fv 6547  df-ov 7424  df-oprab 7425  df-mpo 7426  df-1st 8002  df-2nd 8003  df-nbgr 29920  df-uvtx 29973  df-cplgr 29998
This theorem is used by:  cusgredgex  35983
  Copyright terms: Public domain W3C validator