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

Theorem nbuhgr2vtx1edgblem 26648
Description: Lemma for nbuhgr2vtx1edgb 26649. This reverse direction of nbgr2vtx1edg 26647 only holds for classes whose edges are subsets of the set of vertices, which is the property of hypergraphs. (Contributed by AV, 2-Nov-2020.) (Proof shortened by AV, 13-Feb-2022.)
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 . . . 4 𝑉 = (Vtx‘𝐺)
2 nbgr2vtx1edg.e . . . 4 𝐸 = (Edg‘𝐺)
31, 2nbgrel 26637 . . 3 (𝑎 ∈ (𝐺 NeighbVtx 𝑏) ↔ ((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏 ∧ ∃𝑒𝐸 {𝑏, 𝑎} ⊆ 𝑒))
42eleq2i 2898 . . . . . . . . . 10 (𝑒𝐸𝑒 ∈ (Edg‘𝐺))
5 edguhgr 26427 . . . . . . . . . 10 ((𝐺 ∈ UHGraph ∧ 𝑒 ∈ (Edg‘𝐺)) → 𝑒 ∈ 𝒫 (Vtx‘𝐺))
64, 5sylan2b 587 . . . . . . . . 9 ((𝐺 ∈ UHGraph ∧ 𝑒𝐸) → 𝑒 ∈ 𝒫 (Vtx‘𝐺))
71eqeq1i 2830 . . . . . . . . . . . . 13 (𝑉 = {𝑎, 𝑏} ↔ (Vtx‘𝐺) = {𝑎, 𝑏})
8 pweq 4381 . . . . . . . . . . . . . . 15 ((Vtx‘𝐺) = {𝑎, 𝑏} → 𝒫 (Vtx‘𝐺) = 𝒫 {𝑎, 𝑏})
98eleq2d 2892 . . . . . . . . . . . . . 14 ((Vtx‘𝐺) = {𝑎, 𝑏} → (𝑒 ∈ 𝒫 (Vtx‘𝐺) ↔ 𝑒 ∈ 𝒫 {𝑎, 𝑏}))
10 selpw 4385 . . . . . . . . . . . . . 14 (𝑒 ∈ 𝒫 {𝑎, 𝑏} ↔ 𝑒 ⊆ {𝑎, 𝑏})
119, 10syl6bb 279 . . . . . . . . . . . . 13 ((Vtx‘𝐺) = {𝑎, 𝑏} → (𝑒 ∈ 𝒫 (Vtx‘𝐺) ↔ 𝑒 ⊆ {𝑎, 𝑏}))
127, 11sylbi 209 . . . . . . . . . . . 12 (𝑉 = {𝑎, 𝑏} → (𝑒 ∈ 𝒫 (Vtx‘𝐺) ↔ 𝑒 ⊆ {𝑎, 𝑏}))
1312adantl 475 . . . . . . . . . . 11 (((𝐺 ∈ UHGraph ∧ 𝑒𝐸) ∧ 𝑉 = {𝑎, 𝑏}) → (𝑒 ∈ 𝒫 (Vtx‘𝐺) ↔ 𝑒 ⊆ {𝑎, 𝑏}))
14 prcom 4485 . . . . . . . . . . . . . . 15 {𝑏, 𝑎} = {𝑎, 𝑏}
1514sseq1i 3854 . . . . . . . . . . . . . 14 ({𝑏, 𝑎} ⊆ 𝑒 ↔ {𝑎, 𝑏} ⊆ 𝑒)
16 eqss 3842 . . . . . . . . . . . . . . . 16 ({𝑎, 𝑏} = 𝑒 ↔ ({𝑎, 𝑏} ⊆ 𝑒𝑒 ⊆ {𝑎, 𝑏}))
17 eleq1a 2901 . . . . . . . . . . . . . . . . . 18 (𝑒𝐸 → ({𝑎, 𝑏} = 𝑒 → {𝑎, 𝑏} ∈ 𝐸))
1817a1i 11 . . . . . . . . . . . . . . . . 17 (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → (𝑒𝐸 → ({𝑎, 𝑏} = 𝑒 → {𝑎, 𝑏} ∈ 𝐸)))
1918com13 88 . . . . . . . . . . . . . . . 16 ({𝑎, 𝑏} = 𝑒 → (𝑒𝐸 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸)))
2016, 19sylbir 227 . . . . . . . . . . . . . . 15 (({𝑎, 𝑏} ⊆ 𝑒𝑒 ⊆ {𝑎, 𝑏}) → (𝑒𝐸 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸)))
2120ex 403 . . . . . . . . . . . . . 14 ({𝑎, 𝑏} ⊆ 𝑒 → (𝑒 ⊆ {𝑎, 𝑏} → (𝑒𝐸 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸))))
2215, 21sylbi 209 . . . . . . . . . . . . 13 ({𝑏, 𝑎} ⊆ 𝑒 → (𝑒 ⊆ {𝑎, 𝑏} → (𝑒𝐸 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸))))
2322com13 88 . . . . . . . . . . . 12 (𝑒𝐸 → (𝑒 ⊆ {𝑎, 𝑏} → ({𝑏, 𝑎} ⊆ 𝑒 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸))))
2423ad2antlr 718 . . . . . . . . . . 11 (((𝐺 ∈ UHGraph ∧ 𝑒𝐸) ∧ 𝑉 = {𝑎, 𝑏}) → (𝑒 ⊆ {𝑎, 𝑏} → ({𝑏, 𝑎} ⊆ 𝑒 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸))))
2513, 24sylbid 232 . . . . . . . . . 10 (((𝐺 ∈ UHGraph ∧ 𝑒𝐸) ∧ 𝑉 = {𝑎, 𝑏}) → (𝑒 ∈ 𝒫 (Vtx‘𝐺) → ({𝑏, 𝑎} ⊆ 𝑒 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸))))
2625ex 403 . . . . . . . . 9 ((𝐺 ∈ UHGraph ∧ 𝑒𝐸) → (𝑉 = {𝑎, 𝑏} → (𝑒 ∈ 𝒫 (Vtx‘𝐺) → ({𝑏, 𝑎} ⊆ 𝑒 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸)))))
276, 26mpid 44 . . . . . . . 8 ((𝐺 ∈ UHGraph ∧ 𝑒𝐸) → (𝑉 = {𝑎, 𝑏} → ({𝑏, 𝑎} ⊆ 𝑒 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸))))
2827impancom 445 . . . . . . 7 ((𝐺 ∈ UHGraph ∧ 𝑉 = {𝑎, 𝑏}) → (𝑒𝐸 → ({𝑏, 𝑎} ⊆ 𝑒 → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → {𝑎, 𝑏} ∈ 𝐸))))
2928com14 96 . . . . . 6 (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → (𝑒𝐸 → ({𝑏, 𝑎} ⊆ 𝑒 → ((𝐺 ∈ UHGraph ∧ 𝑉 = {𝑎, 𝑏}) → {𝑎, 𝑏} ∈ 𝐸))))
3029rexlimdv 3239 . . . . 5 (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏) → (∃𝑒𝐸 {𝑏, 𝑎} ⊆ 𝑒 → ((𝐺 ∈ UHGraph ∧ 𝑉 = {𝑎, 𝑏}) → {𝑎, 𝑏} ∈ 𝐸)))
31303impia 1149 . . . 4 (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏 ∧ ∃𝑒𝐸 {𝑏, 𝑎} ⊆ 𝑒) → ((𝐺 ∈ UHGraph ∧ 𝑉 = {𝑎, 𝑏}) → {𝑎, 𝑏} ∈ 𝐸))
3231com12 32 . . 3 ((𝐺 ∈ UHGraph ∧ 𝑉 = {𝑎, 𝑏}) → (((𝑎𝑉𝑏𝑉) ∧ 𝑎𝑏 ∧ ∃𝑒𝐸 {𝑏, 𝑎} ⊆ 𝑒) → {𝑎, 𝑏} ∈ 𝐸))
333, 32syl5bi 234 . 2 ((𝐺 ∈ UHGraph ∧ 𝑉 = {𝑎, 𝑏}) → (𝑎 ∈ (𝐺 NeighbVtx 𝑏) → {𝑎, 𝑏} ∈ 𝐸))
34333impia 1149 1 ((𝐺 ∈ UHGraph ∧ 𝑉 = {𝑎, 𝑏} ∧ 𝑎 ∈ (𝐺 NeighbVtx 𝑏)) → {𝑎, 𝑏} ∈ 𝐸)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 198  wa 386  w3a 1111   = wceq 1656  wcel 2164  wne 2999  wrex 3118  wss 3798  𝒫 cpw 4378  {cpr 4399  cfv 6123  (class class class)co 6905  Vtxcvtx 26294  Edgcedg 26345  UHGraphcuhgr 26354   NeighbVtx cnbgr 26629
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1894  ax-4 1908  ax-5 2009  ax-6 2075  ax-7 2112  ax-8 2166  ax-9 2173  ax-10 2192  ax-11 2207  ax-12 2220  ax-13 2389  ax-ext 2803  ax-sep 5005  ax-nul 5013  ax-pow 5065  ax-pr 5127  ax-un 7209
This theorem depends on definitions:  df-bi 199  df-an 387  df-or 879  df-3an 1113  df-tru 1660  df-fal 1670  df-ex 1879  df-nf 1883  df-sb 2068  df-mo 2605  df-eu 2640  df-clab 2812  df-cleq 2818  df-clel 2821  df-nfc 2958  df-ne 3000  df-ral 3122  df-rex 3123  df-rab 3126  df-v 3416  df-sbc 3663  df-csb 3758  df-dif 3801  df-un 3803  df-in 3805  df-ss 3812  df-nul 4145  df-if 4307  df-pw 4380  df-sn 4398  df-pr 4400  df-op 4404  df-uni 4659  df-iun 4742  df-br 4874  df-opab 4936  df-mpt 4953  df-id 5250  df-xp 5348  df-rel 5349  df-cnv 5350  df-co 5351  df-dm 5352  df-rn 5353  df-res 5354  df-ima 5355  df-iota 6086  df-fun 6125  df-fn 6126  df-f 6127  df-fv 6131  df-ov 6908  df-oprab 6909  df-mpt2 6910  df-1st 7428  df-2nd 7429  df-edg 26346  df-uhgr 26356  df-nbgr 26630
This theorem is referenced by:  nbuhgr2vtx1edgb  26649
  Copyright terms: Public domain W3C validator