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

Theorem stgrnbgr0 49395
Description: All vertices of a star graph SN except the center are in the (open) neighborhood of the center. (Contributed by AV, 12-Sep-2025.)
Hypotheses
Ref Expression
stgrvtx0.g 𝐺 = (StarGr‘𝑁)
stgrvtx0.v 𝑉 = (Vtx‘𝐺)
Assertion
Ref Expression
stgrnbgr0 (𝑁 ∈ ℕ0 → (𝐺 NeighbVtx 0) = (𝑉 ∖ {0}))

Proof of Theorem stgrnbgr0
Dummy variables 𝑒 𝑥 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 stgrvtx0.g . . . 4 𝐺 = (StarGr‘𝑁)
2 stgrvtx0.v . . . 4 𝑉 = (Vtx‘𝐺)
31, 2stgrvtx0 49393 . . 3 (𝑁 ∈ ℕ0 → 0 ∈ 𝑉)
4 eqid 2766 . . . 4 (Edg‘𝐺) = (Edg‘𝐺)
52, 4dfnbgr2 29978 . . 3 (0 ∈ 𝑉 → (𝐺 NeighbVtx 0) = {𝑥 ∈ (𝑉 ∖ {0}) ∣ ∃𝑒 ∈ (Edg‘𝐺)(0 ∈ 𝑒 ∧ 𝑥 ∈ 𝑒)})
63, 5syl 18 . 2 (𝑁 ∈ ℕ0 → (𝐺 NeighbVtx 0) = {𝑥 ∈ (𝑉 ∖ {0}) ∣ ∃𝑒 ∈ (Edg‘𝐺)(0 ∈ 𝑒 ∧ 𝑥 ∈ 𝑒)})
7 eleq2 2856 . . . . 5 (𝑒 = {0, 𝑥} → (0 ∈ 𝑒 ↔ 0 ∈ {0, 𝑥}))
8 eleq2 2856 . . . . 5 (𝑒 = {0, 𝑥} → (𝑥 ∈ 𝑒 ↔ 𝑥 ∈ {0, 𝑥}))
97, 8anbi12d 644 . . . 4 (𝑒 = {0, 𝑥} → ((0 ∈ 𝑒 ∧ 𝑥 ∈ 𝑒) ↔ (0 ∈ {0, 𝑥} ∧ 𝑥 ∈ {0, 𝑥})))
10 0elfz 13798 . . . . . . 7 (𝑁 ∈ ℕ0 → 0 ∈ (0...𝑁))
1110adantr 486 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (𝑉 ∖ {0})) → 0 ∈ (0...𝑁))
12 fz1ssfz0 13797 . . . . . . 7 (1...𝑁) ⊆ (0...𝑁)
131fveq2i 6919 . . . . . . . . . . . 12 (Vtx‘𝐺) = (Vtx‘(StarGr‘𝑁))
142, 13eqtri 2789 . . . . . . . . . . 11 𝑉 = (Vtx‘(StarGr‘𝑁))
15 stgrvtx 49385 . . . . . . . . . . 11 (𝑁 ∈ ℕ0 → (Vtx‘(StarGr‘𝑁)) = (0...𝑁))
1614, 15eqtrid 2813 . . . . . . . . . 10 (𝑁 ∈ ℕ0 → 𝑉 = (0...𝑁))
1716difeq1d 4064 . . . . . . . . 9 (𝑁 ∈ ℕ0 → (𝑉 ∖ {0}) = ((0...𝑁) ∖ {0}))
18 fz0dif1 13780 . . . . . . . . . 10 (𝑁 ∈ ℕ0 → ((0...𝑁) ∖ {0}) = (1...𝑁))
1918eqimssd 3968 . . . . . . . . 9 (𝑁 ∈ ℕ0 → ((0...𝑁) ∖ {0}) ⊆ (1...𝑁))
2017, 19eqsstrd 3946 . . . . . . . 8 (𝑁 ∈ ℕ0 → (𝑉 ∖ {0}) ⊆ (1...𝑁))
2120sselda 3912 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (𝑉 ∖ {0})) → 𝑥 ∈ (1...𝑁))
2212, 21sselid 3910 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (𝑉 ∖ {0})) → 𝑥 ∈ (0...𝑁))
2311, 22prssd 4782 . . . . 5 ((𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (𝑉 ∖ {0})) → {0, 𝑥} ⊆ (0...𝑁))
24 preq2 4696 . . . . . . 7 (𝑛 = 𝑥 → {0, 𝑛} = {0, 𝑥})
2524eqeq2d 2777 . . . . . 6 (𝑛 = 𝑥 → ({0, 𝑥} = {0, 𝑛} ↔ {0, 𝑥} = {0, 𝑥}))
26 eqidd 2767 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (𝑉 ∖ {0})) → {0, 𝑥} = {0, 𝑥})
2725, 21, 26rspcedvdw 3582 . . . . 5 ((𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (𝑉 ∖ {0})) → ∃𝑛 ∈ (1...𝑁){0, 𝑥} = {0, 𝑛})
281fveq2i 6919 . . . . . . 7 (Edg‘𝐺) = (Edg‘(StarGr‘𝑁))
2928eleq2i 2859 . . . . . 6 ({0, 𝑥} ∈ (Edg‘𝐺) ↔ {0, 𝑥} ∈ (Edg‘(StarGr‘𝑁)))
30 stgredgel 49388 . . . . . . 7 (𝑁 ∈ ℕ0 → ({0, 𝑥} ∈ (Edg‘(StarGr‘𝑁)) ↔ ({0, 𝑥} ⊆ (0...𝑁) ∧ ∃𝑛 ∈ (1...𝑁){0, 𝑥} = {0, 𝑛})))
3130adantr 486 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (𝑉 ∖ {0})) → ({0, 𝑥} ∈ (Edg‘(StarGr‘𝑁)) ↔ ({0, 𝑥} ⊆ (0...𝑁) ∧ ∃𝑛 ∈ (1...𝑁){0, 𝑥} = {0, 𝑛})))
3229, 31bitrid 286 . . . . 5 ((𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (𝑉 ∖ {0})) → ({0, 𝑥} ∈ (Edg‘𝐺) ↔ ({0, 𝑥} ⊆ (0...𝑁) ∧ ∃𝑛 ∈ (1...𝑁){0, 𝑥} = {0, 𝑛})))
3323, 27, 32mpbir2and 726 . . . 4 ((𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (𝑉 ∖ {0})) → {0, 𝑥} ∈ (Edg‘𝐺))
34 prid2g 4723 . . . . . 6 (𝑥 ∈ (𝑉 ∖ {0}) → 𝑥 ∈ {0, 𝑥})
3534adantl 487 . . . . 5 ((𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (𝑉 ∖ {0})) → 𝑥 ∈ {0, 𝑥})
36 c0ex 11339 . . . . . 6 0 ∈ V
3736prid1 4724 . . . . 5 0 ∈ {0, 𝑥}
3835, 37jctil 529 . . . 4 ((𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (𝑉 ∖ {0})) → (0 ∈ {0, 𝑥} ∧ 𝑥 ∈ {0, 𝑥}))
399, 33, 38rspcedvdw 3582 . . 3 ((𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (𝑉 ∖ {0})) → ∃𝑒 ∈ (Edg‘𝐺)(0 ∈ 𝑒 ∧ 𝑥 ∈ 𝑒))
4039rabeqcda 3426 . 2 (𝑁 ∈ ℕ0 → {𝑥 ∈ (𝑉 ∖ {0}) ∣ ∃𝑒 ∈ (Edg‘𝐺)(0 ∈ 𝑒 ∧ 𝑥 ∈ 𝑒)} = (𝑉 ∖ {0}))
416, 40eqtrd 2801 1 (𝑁 ∈ ℕ0 → (𝐺 NeighbVtx 0) = (𝑉 ∖ {0}))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1572   ∈ wcel 2150  ∃wrex 3093  {crab 3415   ⊆ wss 3899   ∖ cdif 4047  {csn 4587  {cpr 4589  ‘cfv 6566  (class class class)co 7451  0cc0 11239  1c1 11240  ℕ0cn0 12646  ...cfz 13679  Vtxcvtx 29634  Edgcedg 29685   NeighbVtx cnbgr 29973  StarGrcstgr 49382
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-rep 5237  ax-sep 5254  ax-nul 5265  ax-pow 5333  ax-pr 5397  ax-un 7783  ax-cnex 11295  ax-resscn 11296  ax-1cn 11297  ax-icn 11298  ax-addcl 11299  ax-addrcl 11300  ax-mulcl 11301  ax-mulrcl 11302  ax-mulcom 11303  ax-addass 11304  ax-mulass 11305  ax-distr 11306  ax-i2m1 11307  ax-1ne0 11308  ax-1rid 11309  ax-rnegex 11310  ax-rrecex 11311  ax-cnre 11312  ax-pre-lttri 11313  ax-pre-lttrn 11314  ax-pre-ltadd 11315  ax-pre-mulgt0 11316
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2104  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ne 2963  df-nel 3069  df-ral 3084  df-rex 3094  df-reu 3369  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-pss 4016  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-pw 4561  df-sn 4588  df-pr 4590  df-op 4840  df-uni 4872  df-int 4912  df-iun 4957  df-br 5108  df-opab 5173  df-mpt 5192  df-tr 5218  df-id 5552  df-eprel 5557  df-po 5565  df-so 5566  df-fr 5610  df-we 5612  df-xp 5663  df-rel 5664  df-cnv 5665  df-co 5666  df-dm 5667  df-rn 5668  df-res 5669  df-ima 5670  df-pred 6330  df-ord 6391  df-on 6392  df-lim 6393  df-suc 6394  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-riota 7408  df-ov 7454  df-oprab 7455  df-mpo 7456  df-om 7912  df-1st 8035  df-2nd 8036  df-frecs 8337  df-wrecs 8368  df-recs 8417  df-rdg 8456  df-1o 8514  df-oadd 8518  df-er 8755  df-en 9012  df-dom 9013  df-sdom 9014  df-fin 9015  df-dju 10019  df-card 10057  df-pnf 11384  df-mnf 11385  df-xr 11386  df-ltxr 11387  df-le 11388  df-sub 11582  df-neg 11583  df-nn 12376  df-2 12445  df-3 12446  df-4 12447  df-5 12448  df-6 12449  df-7 12450  df-8 12451  df-9 12452  df-n0 12647  df-xnn0 12720  df-z 12734  df-dec 12855  df-uz 13006  df-fz 13680  df-hash 14516  df-struct 17372  df-slot 17407  df-ndx 17419  df-base 17435  df-edgf 29627  df-vtx 29636  df-iedg 29637  df-edg 29686  df-nbgr 29974  df-stgr 49383
This theorem is used by:  stgrclnbgr0  49396
  Copyright terms: Public domain W3C validator