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 35884
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 2849 . . . . . . 7 (𝑎 = 𝐴 → (𝑎 ∈ 𝑉 ↔ 𝐴 ∈ 𝑉))
4 sneq 4594 . . . . . . . . 9 (𝑎 = 𝐴 → {𝑎} = {𝐴})
54difeq2d 4074 . . . . . . . 8 (𝑎 = 𝐴 → (𝑉 ∖ {𝑎}) = (𝑉 ∖ {𝐴}))
65eleq2d 2847 . . . . . . 7 (𝑎 = 𝐴 → (𝑏 ∈ (𝑉 ∖ {𝑎}) ↔ 𝑏 ∈ (𝑉 ∖ {𝐴})))
73, 6anbi12d 644 . . . . . 6 (𝑎 = 𝐴 → ((𝑎 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝑎})) ↔ (𝐴 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝐴}))))
8 preq1 4694 . . . . . . . 8 (𝑎 = 𝐴 → {𝑎, 𝑏} = {𝐴, 𝑏})
98sseq1d 3962 . . . . . . 7 (𝑎 = 𝐴 → ({𝑎, 𝑏} ⊆ 𝑒 ↔ {𝐴, 𝑏} ⊆ 𝑒))
109rexbidv 3187 . . . . . 6 (𝑎 = 𝐴 → (∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒 ↔ ∃𝑒 ∈ 𝐸 {𝐴, 𝑏} ⊆ 𝑒))
117, 10imbi12d 347 . . . . 5 (𝑎 = 𝐴 → (((𝑎 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒) ↔ ((𝐴 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒 ∈ 𝐸 {𝐴, 𝑏} ⊆ 𝑒)))
12 eleq1 2849 . . . . . . 7 (𝑏 = 𝐵 → (𝑏 ∈ (𝑉 ∖ {𝐴}) ↔ 𝐵 ∈ (𝑉 ∖ {𝐴})))
1312anbi2d 642 . . . . . 6 (𝑏 = 𝐵 → ((𝐴 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝐴})) ↔ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ (𝑉 ∖ {𝐴}))))
14 preq2 4695 . . . . . . . 8 (𝑏 = 𝐵 → {𝐴, 𝑏} = {𝐴, 𝐵})
1514sseq1d 3962 . . . . . . 7 (𝑏 = 𝐵 → ({𝐴, 𝑏} ⊆ 𝑒 ↔ {𝐴, 𝐵} ⊆ 𝑒))
1615rexbidv 3187 . . . . . 6 (𝑏 = 𝐵 → (∃𝑒 ∈ 𝐸 {𝐴, 𝑏} ⊆ 𝑒 ↔ ∃𝑒 ∈ 𝐸 {𝐴, 𝐵} ⊆ 𝑒))
1713, 16imbi12d 347 . . . . 5 (𝑏 = 𝐵 → (((𝐴 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒 ∈ 𝐸 {𝐴, 𝑏} ⊆ 𝑒) ↔ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒 ∈ 𝐸 {𝐴, 𝐵} ⊆ 𝑒)))
1811, 17sylan9bb 519 . . . 4 ((𝑎 = 𝐴 ∧ 𝑏 = 𝐵) → (((𝑎 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒) ↔ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ (𝑉 ∖ {𝐴})) → ∃𝑒 ∈ 𝐸 {𝐴, 𝐵} ⊆ 𝑒)))
19 cplgredgex.1 . . . . . . . 8 𝑉 = (Vtx‘𝐺)
20 cplgredgex.2 . . . . . . . 8 𝐸 = (Edg‘𝐺)
2119, 20iscplgredg 29991 . . . . . . 7 (𝐺 ∈ ComplGraph → (𝐺 ∈ ComplGraph ↔ ∀𝑎 ∈ 𝑉 ∀𝑏 ∈ (𝑉 ∖ {𝑎})∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒))
2221ibi 270 . . . . . 6 (𝐺 ∈ ComplGraph → ∀𝑎 ∈ 𝑉 ∀𝑏 ∈ (𝑉 ∖ {𝑎})∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒)
23 rsp2 3280 . . . . . 6 (∀𝑎 ∈ 𝑉 ∀𝑏 ∈ (𝑉 ∖ {𝑎})∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒 → ((𝑎 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒))
2422, 23syl 18 . . . . 5 (𝐺 ∈ ComplGraph → ((𝑎 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒))
25243ad2ant1 1151 . . . 4 ((𝐺 ∈ ComplGraph ∧ 𝐴 ∈ 𝑉 ∧ 𝐵 ∈ (𝑉 ∖ {𝐴})) → ((𝑎 ∈ 𝑉 ∧ 𝑏 ∈ (𝑉 ∖ {𝑎})) → ∃𝑒 ∈ 𝐸 {𝑎, 𝑏} ⊆ 𝑒))
261, 2, 18, 25vtocl2d 3524 . . 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 1570   ∈ wcel 2145  ∀wral 3077  ∃wrex 3087   ∖ cdif 3896   ⊆ wss 3899  {csn 4584  {cpr 4586  ‘cfv 6537  Vtxcvtx 29567  Edgcedg 29618  ComplGraphccplgr 29983
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-nul 5260  ax-pr 5391  ax-un 7749
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-iota 6493  df-fun 6539  df-fv 6545  df-ov 7421  df-oprab 7422  df-mpo 7423  df-1st 7999  df-2nd 8000  df-nbgr 29907  df-uvtx 29960  df-cplgr 29985
This theorem is used by:  cusgredgex  35885
  Copyright terms: Public domain W3C validator