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

Theorem nbusgrvtxm1 27175
Description: If the number of neighbors of a vertex in a finite simple graph is the number of vertices of the graph minus 1, each vertex except the first mentioned vertex is a neighbor of this vertex. (Contributed by Alexander van der Vekens, 14-Jul-2018.) (Revised by AV, 16-Dec-2020.)
Hypothesis
Ref Expression
hashnbusgrnn0.v 𝑉 = (Vtx‘𝐺)
Assertion
Ref Expression
nbusgrvtxm1 ((𝐺 ∈ FinUSGraph ∧ 𝑈𝑉) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((𝑀𝑉𝑀𝑈) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈))))

Proof of Theorem nbusgrvtxm1
StepHypRef Expression
1 ax-1 6 . . 3 (𝑀 ∈ (𝐺 NeighbVtx 𝑈) → ((𝑀𝑉𝑀𝑈) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
212a1d 26 . 2 (𝑀 ∈ (𝐺 NeighbVtx 𝑈) → ((𝐺 ∈ FinUSGraph ∧ 𝑈𝑉) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((𝑀𝑉𝑀𝑈) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))))
3 simpr 488 . . . . . . . 8 ((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) → (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉))
43adantr 484 . . . . . . 7 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉))
5 simprl 770 . . . . . . 7 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → 𝑀𝑉)
6 simpr 488 . . . . . . . 8 ((𝑀𝑉𝑀𝑈) → 𝑀𝑈)
76adantl 485 . . . . . . 7 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → 𝑀𝑈)
8 df-nel 3119 . . . . . . . . . 10 (𝑀 ∉ (𝐺 NeighbVtx 𝑈) ↔ ¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈))
98biimpri 231 . . . . . . . . 9 𝑀 ∈ (𝐺 NeighbVtx 𝑈) → 𝑀 ∉ (𝐺 NeighbVtx 𝑈))
109adantr 484 . . . . . . . 8 ((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) → 𝑀 ∉ (𝐺 NeighbVtx 𝑈))
1110adantr 484 . . . . . . 7 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → 𝑀 ∉ (𝐺 NeighbVtx 𝑈))
12 hashnbusgrnn0.v . . . . . . . 8 𝑉 = (Vtx‘𝐺)
1312nbfusgrlevtxm2 27174 . . . . . . 7 (((𝐺 ∈ FinUSGraph ∧ 𝑈𝑉) ∧ (𝑀𝑉𝑀𝑈𝑀 ∉ (𝐺 NeighbVtx 𝑈))) → (♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2))
144, 5, 7, 11, 13syl13anc 1369 . . . . . 6 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → (♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2))
15 breq1 5055 . . . . . . . . 9 ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2) ↔ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2)))
1615adantl 485 . . . . . . . 8 ((((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) ∧ (♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1)) → ((♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2) ↔ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2)))
1712fusgrvtxfi 27115 . . . . . . . . . . . 12 (𝐺 ∈ FinUSGraph → 𝑉 ∈ Fin)
18 hashcl 13722 . . . . . . . . . . . 12 (𝑉 ∈ Fin → (♯‘𝑉) ∈ ℕ0)
19 nn0re 11903 . . . . . . . . . . . . 13 ((♯‘𝑉) ∈ ℕ0 → (♯‘𝑉) ∈ ℝ)
20 1red 10640 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → 1 ∈ ℝ)
21 2re 11708 . . . . . . . . . . . . . . . 16 2 ∈ ℝ
2221a1i 11 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → 2 ∈ ℝ)
23 id 22 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → (♯‘𝑉) ∈ ℝ)
24 1lt2 11805 . . . . . . . . . . . . . . . 16 1 < 2
2524a1i 11 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → 1 < 2)
2620, 22, 23, 25ltsub2dd 11251 . . . . . . . . . . . . . 14 ((♯‘𝑉) ∈ ℝ → ((♯‘𝑉) − 2) < ((♯‘𝑉) − 1))
2723, 22resubcld 11066 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → ((♯‘𝑉) − 2) ∈ ℝ)
28 peano2rem 10951 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → ((♯‘𝑉) − 1) ∈ ℝ)
2927, 28ltnled 10785 . . . . . . . . . . . . . 14 ((♯‘𝑉) ∈ ℝ → (((♯‘𝑉) − 2) < ((♯‘𝑉) − 1) ↔ ¬ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2)))
3026, 29mpbid 235 . . . . . . . . . . . . 13 ((♯‘𝑉) ∈ ℝ → ¬ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2))
3119, 30syl 17 . . . . . . . . . . . 12 ((♯‘𝑉) ∈ ℕ0 → ¬ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2))
3217, 18, 313syl 18 . . . . . . . . . . 11 (𝐺 ∈ FinUSGraph → ¬ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2))
3332pm2.21d 121 . . . . . . . . . 10 (𝐺 ∈ FinUSGraph → (((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
3433adantr 484 . . . . . . . . 9 ((𝐺 ∈ FinUSGraph ∧ 𝑈𝑉) → (((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
3534ad3antlr 730 . . . . . . . 8 ((((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) ∧ (♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1)) → (((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
3616, 35sylbid 243 . . . . . . 7 ((((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) ∧ (♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1)) → ((♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
3736ex 416 . . . . . 6 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈))))
3814, 37mpid 44 . . . . 5 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
3938ex 416 . . . 4 ((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) → ((𝑀𝑉𝑀𝑈) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈))))
4039com23 86 . . 3 ((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((𝑀𝑉𝑀𝑈) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈))))
4140ex 416 . 2 𝑀 ∈ (𝐺 NeighbVtx 𝑈) → ((𝐺 ∈ FinUSGraph ∧ 𝑈𝑉) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((𝑀𝑉𝑀𝑈) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))))
422, 41pm2.61i 185 1 ((𝐺 ∈ FinUSGraph ∧ 𝑈𝑉) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((𝑀𝑉𝑀𝑈) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399   = wceq 1538  wcel 2115  wne 3014  wnel 3118   class class class wbr 5052  cfv 6343  (class class class)co 7149  Fincfn 8505  cr 10534  1c1 10536   < clt 10673  cle 10674  cmin 10868  2c2 11689  0cn0 11894  chash 13695  Vtxcvtx 26795  FinUSGraphcfusgr 27112   NeighbVtx cnbgr 27128
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1912  ax-6 1971  ax-7 2016  ax-8 2117  ax-9 2125  ax-10 2146  ax-11 2162  ax-12 2179  ax-ext 2796  ax-rep 5176  ax-sep 5189  ax-nul 5196  ax-pow 5253  ax-pr 5317  ax-un 7455  ax-cnex 10591  ax-resscn 10592  ax-1cn 10593  ax-icn 10594  ax-addcl 10595  ax-addrcl 10596  ax-mulcl 10597  ax-mulrcl 10598  ax-mulcom 10599  ax-addass 10600  ax-mulass 10601  ax-distr 10602  ax-i2m1 10603  ax-1ne0 10604  ax-1rid 10605  ax-rnegex 10606  ax-rrecex 10607  ax-cnre 10608  ax-pre-lttri 10609  ax-pre-lttrn 10610  ax-pre-ltadd 10611  ax-pre-mulgt0 10612
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-fal 1551  df-ex 1782  df-nf 1786  df-sb 2071  df-mo 2624  df-eu 2655  df-clab 2803  df-cleq 2817  df-clel 2896  df-nfc 2964  df-ne 3015  df-nel 3119  df-ral 3138  df-rex 3139  df-reu 3140  df-rmo 3141  df-rab 3142  df-v 3482  df-sbc 3759  df-csb 3867  df-dif 3922  df-un 3924  df-in 3926  df-ss 3936  df-pss 3938  df-nul 4277  df-if 4451  df-pw 4524  df-sn 4551  df-pr 4553  df-tp 4555  df-op 4557  df-uni 4825  df-int 4863  df-iun 4907  df-br 5053  df-opab 5115  df-mpt 5133  df-tr 5159  df-id 5447  df-eprel 5452  df-po 5461  df-so 5462  df-fr 5501  df-we 5503  df-xp 5548  df-rel 5549  df-cnv 5550  df-co 5551  df-dm 5552  df-rn 5553  df-res 5554  df-ima 5555  df-pred 6135  df-ord 6181  df-on 6182  df-lim 6183  df-suc 6184  df-iota 6302  df-fun 6345  df-fn 6346  df-f 6347  df-f1 6348  df-fo 6349  df-f1o 6350  df-fv 6351  df-riota 7107  df-ov 7152  df-oprab 7153  df-mpo 7154  df-om 7575  df-1st 7684  df-2nd 7685  df-wrecs 7943  df-recs 8004  df-rdg 8042  df-1o 8098  df-oadd 8102  df-er 8285  df-en 8506  df-dom 8507  df-sdom 8508  df-fin 8509  df-dju 9327  df-card 9365  df-pnf 10675  df-mnf 10676  df-xr 10677  df-ltxr 10678  df-le 10679  df-sub 10870  df-neg 10871  df-nn 11635  df-2 11697  df-n0 11895  df-xnn0 11965  df-z 11979  df-uz 12241  df-fz 12895  df-hash 13696  df-fusgr 27113  df-nbgr 27129
This theorem is referenced by:  nbusgrvtxm1uvtx  27201
  Copyright terms: Public domain W3C validator