Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  clnbgrsym Structured version   Visualization version   GIF version

Theorem clnbgrsym 47408
Description: In a graph, the closed neighborhood relation is symmetric: a vertex 𝑁 in a graph 𝐺 is a neighbor of a second vertex 𝐾 iff the second vertex 𝐾 is a neighbor of the first vertex 𝑁. (Contributed by AV, 10-May-2025.)
Assertion
Ref Expression
clnbgrsym (𝑁 ∈ (𝐺 ClNeighbVtx 𝐾) ↔ 𝐾 ∈ (𝐺 ClNeighbVtx 𝑁))

Proof of Theorem clnbgrsym
Dummy variable 𝑒 is distinct from all other variables.
StepHypRef Expression
1 ancom 459 . . 3 ((𝑁 ∈ (Vtx‘𝐺) ∧ 𝐾 ∈ (Vtx‘𝐺)) ↔ (𝐾 ∈ (Vtx‘𝐺) ∧ 𝑁 ∈ (Vtx‘𝐺)))
2 eqcom 2733 . . . 4 (𝑁 = 𝐾𝐾 = 𝑁)
3 prcom 4741 . . . . . 6 {𝐾, 𝑁} = {𝑁, 𝐾}
43sseq1i 4008 . . . . 5 ({𝐾, 𝑁} ⊆ 𝑒 ↔ {𝑁, 𝐾} ⊆ 𝑒)
54rexbii 3084 . . . 4 (∃𝑒 ∈ (Edg‘𝐺){𝐾, 𝑁} ⊆ 𝑒 ↔ ∃𝑒 ∈ (Edg‘𝐺){𝑁, 𝐾} ⊆ 𝑒)
62, 5orbi12i 912 . . 3 ((𝑁 = 𝐾 ∨ ∃𝑒 ∈ (Edg‘𝐺){𝐾, 𝑁} ⊆ 𝑒) ↔ (𝐾 = 𝑁 ∨ ∃𝑒 ∈ (Edg‘𝐺){𝑁, 𝐾} ⊆ 𝑒))
71, 6anbi12i 626 . 2 (((𝑁 ∈ (Vtx‘𝐺) ∧ 𝐾 ∈ (Vtx‘𝐺)) ∧ (𝑁 = 𝐾 ∨ ∃𝑒 ∈ (Edg‘𝐺){𝐾, 𝑁} ⊆ 𝑒)) ↔ ((𝐾 ∈ (Vtx‘𝐺) ∧ 𝑁 ∈ (Vtx‘𝐺)) ∧ (𝐾 = 𝑁 ∨ ∃𝑒 ∈ (Edg‘𝐺){𝑁, 𝐾} ⊆ 𝑒)))
8 eqid 2726 . . 3 (Vtx‘𝐺) = (Vtx‘𝐺)
9 eqid 2726 . . 3 (Edg‘𝐺) = (Edg‘𝐺)
108, 9clnbgrel 47399 . 2 (𝑁 ∈ (𝐺 ClNeighbVtx 𝐾) ↔ ((𝑁 ∈ (Vtx‘𝐺) ∧ 𝐾 ∈ (Vtx‘𝐺)) ∧ (𝑁 = 𝐾 ∨ ∃𝑒 ∈ (Edg‘𝐺){𝐾, 𝑁} ⊆ 𝑒)))
118, 9clnbgrel 47399 . 2 (𝐾 ∈ (𝐺 ClNeighbVtx 𝑁) ↔ ((𝐾 ∈ (Vtx‘𝐺) ∧ 𝑁 ∈ (Vtx‘𝐺)) ∧ (𝐾 = 𝑁 ∨ ∃𝑒 ∈ (Edg‘𝐺){𝑁, 𝐾} ⊆ 𝑒)))
127, 10, 113bitr4i 302 1 (𝑁 ∈ (𝐺 ClNeighbVtx 𝐾) ↔ 𝐾 ∈ (𝐺 ClNeighbVtx 𝑁))
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 394  wo 845   = wceq 1534  wcel 2099  wrex 3060  wss 3947  {cpr 4635  cfv 6554  (class class class)co 7424  Vtxcvtx 28932  Edgcedg 28983   ClNeighbVtx cclnbgr 47390
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1790  ax-4 1804  ax-5 1906  ax-6 1964  ax-7 2004  ax-8 2101  ax-9 2109  ax-10 2130  ax-11 2147  ax-12 2167  ax-ext 2697  ax-sep 5304  ax-nul 5311  ax-pr 5433  ax-un 7746
This theorem depends on definitions:  df-bi 206  df-an 395  df-or 846  df-3an 1086  df-tru 1537  df-fal 1547  df-ex 1775  df-nf 1779  df-sb 2061  df-mo 2529  df-eu 2558  df-clab 2704  df-cleq 2718  df-clel 2803  df-nfc 2878  df-ne 2931  df-ral 3052  df-rex 3061  df-rab 3420  df-v 3464  df-sbc 3777  df-csb 3893  df-dif 3950  df-un 3952  df-in 3954  df-ss 3964  df-nul 4326  df-if 4534  df-sn 4634  df-pr 4636  df-op 4640  df-uni 4914  df-iun 5003  df-br 5154  df-opab 5216  df-mpt 5237  df-id 5580  df-xp 5688  df-rel 5689  df-cnv 5690  df-co 5691  df-dm 5692  df-rn 5693  df-res 5694  df-ima 5695  df-iota 6506  df-fun 6556  df-fv 6562  df-ov 7427  df-oprab 7428  df-mpo 7429  df-1st 8003  df-2nd 8004  df-clnbgr 47391
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator