MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  nbuhgr2vtx1edgblem Structured version   Visualization version   GIF version

Theorem nbuhgr2vtx1edgblem 26247
Description: Lemma for nbuhgr2vtx1edgb 26248. This reverse direction of nbgr2vtx1edg 26246 only holds for classes whose edges are subsets of the set of vertices (hypergraphs!) (Contributed by AV, 2-Nov-2020.)
Hypotheses
Ref Expression
nbgr2vtx1edg.v 𝑉 = (Vtx‘𝐺)
nbgr2vtx1edg.e 𝐸 = (Edg‘𝐺)
Assertion
Ref Expression
nbuhgr2vtx1edgblem ((𝐺 ∈ UHGraph ∧ 𝑉 = {𝑎, 𝑏} ∧ 𝑎 ∈ (𝐺 NeighbVtx 𝑏)) → {𝑎, 𝑏} ∈ 𝐸)
Distinct variable groups:   𝐸,𝑎,𝑏   𝐺,𝑎,𝑏   𝑉,𝑎,𝑏

Proof of Theorem nbuhgr2vtx1edgblem
Dummy variable 𝑒 is distinct from all other variables.
StepHypRef Expression
1 nbgr2vtx1edg.v . . . . 5 𝑉 = (Vtx‘𝐺)
2 nbgr2vtx1edg.e . . . . 5 𝐸 = (Edg‘𝐺)
31, 2nbgrel 26238 . . . 4 (𝐺 ∈ UHGraph → (𝑎 ∈ (𝐺 NeighbVtx 𝑏) ↔ ((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏 ∧ ∃𝑒𝐸 {𝑏, 𝑎} ⊆ 𝑒)))
43adantr 481 . . 3 ((𝐺 ∈ UHGraph ∧ 𝑉 = {𝑎, 𝑏}) → (𝑎 ∈ (𝐺 NeighbVtx 𝑏) ↔ ((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏 ∧ ∃𝑒𝐸 {𝑏, 𝑎} ⊆ 𝑒)))
52eleq2i 2693 . . . . . . . . . 10 (𝑒𝐸𝑒 ∈ (Edg‘𝐺))
6 edguhgr 26024 . . . . . . . . . 10 ((𝐺 ∈ UHGraph ∧ 𝑒 ∈ (Edg‘𝐺)) → 𝑒 ∈ 𝒫 (Vtx‘𝐺))
75, 6sylan2b 492 . . . . . . . . 9 ((𝐺 ∈ UHGraph ∧ 𝑒𝐸) → 𝑒 ∈ 𝒫 (Vtx‘𝐺))
81eqeq1i 2627 . . . . . . . . . . . . 13 (𝑉 = {𝑎, 𝑏} ↔ (Vtx‘𝐺) = {𝑎, 𝑏})
9 pweq 4161 . . . . . . . . . . . . . . 15 ((Vtx‘𝐺) = {𝑎, 𝑏} → 𝒫 (Vtx‘𝐺) = 𝒫 {𝑎, 𝑏})
109eleq2d 2687 . . . . . . . . . . . . . 14 ((Vtx‘𝐺) = {𝑎, 𝑏} → (𝑒 ∈ 𝒫 (Vtx‘𝐺) ↔ 𝑒 ∈ 𝒫 {𝑎, 𝑏}))
11 selpw 4165 . . . . . . . . . . . . . 14 (𝑒 ∈ 𝒫 {𝑎, 𝑏} ↔ 𝑒 ⊆ {𝑎, 𝑏})
1210, 11syl6bb 276 . . . . . . . . . . . . 13 ((Vtx‘𝐺) = {𝑎, 𝑏} → (𝑒 ∈ 𝒫 (Vtx‘𝐺) ↔ 𝑒 ⊆ {𝑎, 𝑏}))
138, 12sylbi 207 . . . . . . . . . . . 12 (𝑉 = {𝑎, 𝑏} → (𝑒 ∈ 𝒫 (Vtx‘𝐺) ↔ 𝑒 ⊆ {𝑎, 𝑏}))
1413adantl 482 . . . . . . . . . . 11 (((𝐺 ∈ UHGraph ∧ 𝑒𝐸) ∧ 𝑉 = {𝑎, 𝑏}) → (𝑒 ∈ 𝒫 (Vtx‘𝐺) ↔ 𝑒 ⊆ {𝑎, 𝑏}))
15 prcom 4267 . . . . . . . . . . . . . . . 16 {𝑏, 𝑎} = {𝑎, 𝑏}
1615sseq1i 3629 . . . . . . . . . . . . . . 15 ({𝑏, 𝑎} ⊆ 𝑒 ↔ {𝑎, 𝑏} ⊆ 𝑒)
17 eqss 3618 . . . . . . . . . . . . . . . . 17 ({𝑎, 𝑏} = 𝑒 ↔ ({𝑎, 𝑏} ⊆ 𝑒𝑒 ⊆ {𝑎, 𝑏}))
18 eleq1a 2696 . . . . . . . . . . . . . . . . . . 19 (𝑒𝐸 → ({𝑎, 𝑏} = 𝑒 → {𝑎, 𝑏} ∈ 𝐸))
1918a1i 11 . . . . . . . . . . . . . . . . . 18 (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → (𝑒𝐸 → ({𝑎, 𝑏} = 𝑒 → {𝑎, 𝑏} ∈ 𝐸)))
2019com13 88 . . . . . . . . . . . . . . . . 17 ({𝑎, 𝑏} = 𝑒 → (𝑒𝐸 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸)))
2117, 20sylbir 225 . . . . . . . . . . . . . . . 16 (({𝑎, 𝑏} ⊆ 𝑒𝑒 ⊆ {𝑎, 𝑏}) → (𝑒𝐸 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸)))
2221ex 450 . . . . . . . . . . . . . . 15 ({𝑎, 𝑏} ⊆ 𝑒 → (𝑒 ⊆ {𝑎, 𝑏} → (𝑒𝐸 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸))))
2316, 22sylbi 207 . . . . . . . . . . . . . 14 ({𝑏, 𝑎} ⊆ 𝑒 → (𝑒 ⊆ {𝑎, 𝑏} → (𝑒𝐸 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸))))
2423com13 88 . . . . . . . . . . . . 13 (𝑒𝐸 → (𝑒 ⊆ {𝑎, 𝑏} → ({𝑏, 𝑎} ⊆ 𝑒 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸))))
2524adantl 482 . . . . . . . . . . . 12 ((𝐺 ∈ UHGraph ∧ 𝑒𝐸) → (𝑒 ⊆ {𝑎, 𝑏} → ({𝑏, 𝑎} ⊆ 𝑒 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸))))
2625adantr 481 . . . . . . . . . . 11 (((𝐺 ∈ UHGraph ∧ 𝑒𝐸) ∧ 𝑉 = {𝑎, 𝑏}) → (𝑒 ⊆ {𝑎, 𝑏} → ({𝑏, 𝑎} ⊆ 𝑒 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸))))
2714, 26sylbid 230 . . . . . . . . . 10 (((𝐺 ∈ UHGraph ∧ 𝑒𝐸) ∧ 𝑉 = {𝑎, 𝑏}) → (𝑒 ∈ 𝒫 (Vtx‘𝐺) → ({𝑏, 𝑎} ⊆ 𝑒 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸))))
2827ex 450 . . . . . . . . 9 ((𝐺 ∈ UHGraph ∧ 𝑒𝐸) → (𝑉 = {𝑎, 𝑏} → (𝑒 ∈ 𝒫 (Vtx‘𝐺) → ({𝑏, 𝑎} ⊆ 𝑒 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸)))))
297, 28mpid 44 . . . . . . . 8 ((𝐺 ∈ UHGraph ∧ 𝑒𝐸) → (𝑉 = {𝑎, 𝑏} → ({𝑏, 𝑎} ⊆ 𝑒 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸))))
3029impancom 456 . . . . . . 7 ((𝐺 ∈ UHGraph ∧ 𝑉 = {𝑎, 𝑏}) → (𝑒𝐸 → ({𝑏, 𝑎} ⊆ 𝑒 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸))))
3130com14 96 . . . . . 6 (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → (𝑒𝐸 → ({𝑏, 𝑎} ⊆ 𝑒 → ((𝐺 ∈ UHGraph ∧ 𝑉 = {𝑎, 𝑏}) → {𝑎, 𝑏} ∈ 𝐸))))
3231rexlimdv 3030 . . . . 5 (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → (∃𝑒𝐸 {𝑏, 𝑎} ⊆ 𝑒 → ((𝐺 ∈ UHGraph ∧ 𝑉 = {𝑎, 𝑏}) → {𝑎, 𝑏} ∈ 𝐸)))
33323impia 1261 . . . 4 (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏 ∧ ∃𝑒𝐸 {𝑏, 𝑎} ⊆ 𝑒) → ((𝐺 ∈ UHGraph ∧ 𝑉 = {𝑎, 𝑏}) → {𝑎, 𝑏} ∈ 𝐸))
3433com12 32 . . 3 ((𝐺 ∈ UHGraph ∧ 𝑉 = {𝑎, 𝑏}) → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏 ∧ ∃𝑒𝐸 {𝑏, 𝑎} ⊆ 𝑒) → {𝑎, 𝑏} ∈ 𝐸))
354, 34sylbid 230 . 2 ((𝐺 ∈ UHGraph ∧ 𝑉 = {𝑎, 𝑏}) → (𝑎 ∈ (𝐺 NeighbVtx 𝑏) → {𝑎, 𝑏} ∈ 𝐸))
36353impia 1261 1 ((𝐺 ∈ UHGraph ∧ 𝑉 = {𝑎, 𝑏} ∧ 𝑎 ∈ (𝐺 NeighbVtx 𝑏)) → {𝑎, 𝑏} ∈ 𝐸)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384  w3a 1037   = wceq 1483  wcel 1990  wne 2794  wrex 2913  wss 3574  𝒫 cpw 4158  {cpr 4179  cfv 5888  (class class class)co 6650  Vtxcvtx 25874  Edgcedg 25939   UHGraph cuhgr 25951   NeighbVtx cnbgr 26224
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-8 1992  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-sep 4781  ax-nul 4789  ax-pow 4843  ax-pr 4906  ax-un 6949
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1039  df-tru 1486  df-fal 1489  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-mo 2475  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ne 2795  df-ral 2917  df-rex 2918  df-rab 2921  df-v 3202  df-sbc 3436  df-csb 3534  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-nul 3916  df-if 4087  df-pw 4160  df-sn 4178  df-pr 4180  df-op 4184  df-uni 4437  df-iun 4522  df-br 4654  df-opab 4713  df-mpt 4730  df-id 5024  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-dm 5124  df-rn 5125  df-res 5126  df-ima 5127  df-iota 5851  df-fun 5890  df-fn 5891  df-f 5892  df-fv 5896  df-ov 6653  df-oprab 6654  df-mpt2 6655  df-1st 7168  df-2nd 7169  df-edg 25940  df-uhgr 25953  df-nbgr 26228
This theorem is referenced by:  nbuhgr2vtx1edgb  26248
  Copyright terms: Public domain W3C validator